configure 675 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 1.0.0a.
  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='1.0.0a'
  496. PACKAGE_STRING='aria2c 1.0.0a'
  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. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. SQLITE3_LIBS
  646. SQLITE3_CPPFLAGS
  647. LIBGNUTLS_CONFIG
  648. LIBGNUTLS_CFLAGS
  649. LIBGNUTLS_LIBS
  650. LIBGCRYPT_CONFIG
  651. LIBGCRYPT_CFLAGS
  652. LIBGCRYPT_LIBS
  653. OPENSSL_LIBS
  654. OPENSSL_CFLAGS
  655. LIBCARES_LIBS
  656. LIBCARES_CPPFLAGS
  657. LIBARES_LIBS
  658. LIBARES_CPPFLAGS
  659. LIBZ_LIBS
  660. LIBZ_CPPFLAGS
  661. ENABLE_SSL_TRUE
  662. ENABLE_SSL_FALSE
  663. HAVE_LIBGNUTLS_TRUE
  664. HAVE_LIBGNUTLS_FALSE
  665. HAVE_LIBSSL_TRUE
  666. HAVE_LIBSSL_FALSE
  667. ENABLE_MESSAGE_DIGEST_TRUE
  668. ENABLE_MESSAGE_DIGEST_FALSE
  669. ENABLE_BITTORRENT_TRUE
  670. ENABLE_BITTORRENT_FALSE
  671. ENABLE_METALINK_TRUE
  672. ENABLE_METALINK_FALSE
  673. ENABLE_LIBXML2_TRUE
  674. ENABLE_LIBXML2_FALSE
  675. ENABLE_LIBEXPAT_TRUE
  676. ENABLE_LIBEXPAT_FALSE
  677. ENABLE_ASYNC_DNS_TRUE
  678. ENABLE_ASYNC_DNS_FALSE
  679. HAVE_LIBZ_TRUE
  680. HAVE_LIBZ_FALSE
  681. HAVE_SQLITE3_TRUE
  682. HAVE_SQLITE3_FALSE
  683. ALLOCA
  684. USE_NLS
  685. GETTEXT_MACRO_VERSION
  686. MSGFMT
  687. GMSGFMT
  688. MSGFMT_015
  689. GMSGFMT_015
  690. XGETTEXT
  691. XGETTEXT_015
  692. MSGMERGE
  693. XGETTEXT_EXTRA_OPTIONS
  694. GLIBC2
  695. CFLAG_VISIBILITY
  696. HAVE_VISIBILITY
  697. PRI_MACROS_BROKEN
  698. LIBPTH
  699. LTLIBPTH
  700. LIBPTH_PREFIX
  701. LIBTHREAD
  702. LTLIBTHREAD
  703. LIBMULTITHREAD
  704. LTLIBMULTITHREAD
  705. LIBICONV
  706. LTLIBICONV
  707. INTLBISON
  708. GLIBC21
  709. INTL_MACOSX_LIBS
  710. HAVE_POSIX_PRINTF
  711. HAVE_ASPRINTF
  712. HAVE_SNPRINTF
  713. HAVE_WPRINTF
  714. WOE32DLL
  715. WOE32
  716. WINDRES
  717. LTLIBC
  718. BUILD_INCLUDED_LIBINTL
  719. USE_INCLUDED_LIBINTL
  720. CATOBJEXT
  721. DATADIRNAME
  722. INSTOBJEXT
  723. GENCAT
  724. INTLOBJS
  725. INTL_LIBTOOL_SUFFIX_PREFIX
  726. INTLLIBS
  727. LIBINTL
  728. LTLIBINTL
  729. POSUB
  730. LIBOBJS
  731. HAVE_ASCTIME_R_TRUE
  732. HAVE_ASCTIME_R_FALSE
  733. HAVE_BASENAME_TRUE
  734. HAVE_BASENAME_FALSE
  735. HAVE_GAI_STRERROR_TRUE
  736. HAVE_GAI_STRERROR_FALSE
  737. HAVE_GETADDRINFO_TRUE
  738. HAVE_GETADDRINFO_FALSE
  739. HAVE_GETTIMEOFDAY_TRUE
  740. HAVE_GETTIMEOFDAY_FALSE
  741. HAVE_INET_ATON_TRUE
  742. HAVE_INET_ATON_FALSE
  743. HAVE_LOCALTIME_R_TRUE
  744. HAVE_LOCALTIME_R_FALSE
  745. HAVE_STRPTIME_TRUE
  746. HAVE_STRPTIME_FALSE
  747. HAVE_TIMEGM_TRUE
  748. HAVE_TIMEGM_FALSE
  749. LTLIBOBJS'
  750. ac_subst_files=''
  751. ac_precious_vars='build_alias
  752. host_alias
  753. target_alias
  754. CXX
  755. CXXFLAGS
  756. LDFLAGS
  757. LIBS
  758. CPPFLAGS
  759. CCC
  760. CC
  761. CFLAGS
  762. YACC
  763. YFLAGS
  764. CXXCPP'
  765. # Initialize some variables set by options.
  766. ac_init_help=
  767. ac_init_version=false
  768. # The variables have the same names as the options, with
  769. # dashes changed to underlines.
  770. cache_file=/dev/null
  771. exec_prefix=NONE
  772. no_create=
  773. no_recursion=
  774. prefix=NONE
  775. program_prefix=NONE
  776. program_suffix=NONE
  777. program_transform_name=s,x,x,
  778. silent=
  779. site=
  780. srcdir=
  781. verbose=
  782. x_includes=NONE
  783. x_libraries=NONE
  784. # Installation directory options.
  785. # These are left unexpanded so users can "make install exec_prefix=/foo"
  786. # and all the variables that are supposed to be based on exec_prefix
  787. # by default will actually change.
  788. # Use braces instead of parens because sh, perl, etc. also accept them.
  789. # (The list follows the same order as the GNU Coding Standards.)
  790. bindir='${exec_prefix}/bin'
  791. sbindir='${exec_prefix}/sbin'
  792. libexecdir='${exec_prefix}/libexec'
  793. datarootdir='${prefix}/share'
  794. datadir='${datarootdir}'
  795. sysconfdir='${prefix}/etc'
  796. sharedstatedir='${prefix}/com'
  797. localstatedir='${prefix}/var'
  798. includedir='${prefix}/include'
  799. oldincludedir='/usr/include'
  800. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  801. infodir='${datarootdir}/info'
  802. htmldir='${docdir}'
  803. dvidir='${docdir}'
  804. pdfdir='${docdir}'
  805. psdir='${docdir}'
  806. libdir='${exec_prefix}/lib'
  807. localedir='${datarootdir}/locale'
  808. mandir='${datarootdir}/man'
  809. ac_prev=
  810. ac_dashdash=
  811. for ac_option
  812. do
  813. # If the previous option needs an argument, assign it.
  814. if test -n "$ac_prev"; then
  815. eval $ac_prev=\$ac_option
  816. ac_prev=
  817. continue
  818. fi
  819. case $ac_option in
  820. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  821. *) ac_optarg=yes ;;
  822. esac
  823. # Accept the important Cygnus configure options, so we can diagnose typos.
  824. case $ac_dashdash$ac_option in
  825. --)
  826. ac_dashdash=yes ;;
  827. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  828. ac_prev=bindir ;;
  829. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  830. bindir=$ac_optarg ;;
  831. -build | --build | --buil | --bui | --bu)
  832. ac_prev=build_alias ;;
  833. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  834. build_alias=$ac_optarg ;;
  835. -cache-file | --cache-file | --cache-fil | --cache-fi \
  836. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  837. ac_prev=cache_file ;;
  838. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  839. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  840. cache_file=$ac_optarg ;;
  841. --config-cache | -C)
  842. cache_file=config.cache ;;
  843. -datadir | --datadir | --datadi | --datad)
  844. ac_prev=datadir ;;
  845. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  846. datadir=$ac_optarg ;;
  847. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  848. | --dataroo | --dataro | --datar)
  849. ac_prev=datarootdir ;;
  850. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  851. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  852. datarootdir=$ac_optarg ;;
  853. -disable-* | --disable-*)
  854. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  855. # Reject names that are not valid shell variable names.
  856. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  857. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  858. { (exit 1); exit 1; }; }
  859. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  860. eval enable_$ac_feature=no ;;
  861. -docdir | --docdir | --docdi | --doc | --do)
  862. ac_prev=docdir ;;
  863. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  864. docdir=$ac_optarg ;;
  865. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  866. ac_prev=dvidir ;;
  867. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  868. dvidir=$ac_optarg ;;
  869. -enable-* | --enable-*)
  870. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  871. # Reject names that are not valid shell variable names.
  872. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  873. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  874. { (exit 1); exit 1; }; }
  875. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  876. eval enable_$ac_feature=\$ac_optarg ;;
  877. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  878. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  879. | --exec | --exe | --ex)
  880. ac_prev=exec_prefix ;;
  881. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  882. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  883. | --exec=* | --exe=* | --ex=*)
  884. exec_prefix=$ac_optarg ;;
  885. -gas | --gas | --ga | --g)
  886. # Obsolete; use --with-gas.
  887. with_gas=yes ;;
  888. -help | --help | --hel | --he | -h)
  889. ac_init_help=long ;;
  890. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  891. ac_init_help=recursive ;;
  892. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  893. ac_init_help=short ;;
  894. -host | --host | --hos | --ho)
  895. ac_prev=host_alias ;;
  896. -host=* | --host=* | --hos=* | --ho=*)
  897. host_alias=$ac_optarg ;;
  898. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  899. ac_prev=htmldir ;;
  900. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  901. | --ht=*)
  902. htmldir=$ac_optarg ;;
  903. -includedir | --includedir | --includedi | --included | --include \
  904. | --includ | --inclu | --incl | --inc)
  905. ac_prev=includedir ;;
  906. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  907. | --includ=* | --inclu=* | --incl=* | --inc=*)
  908. includedir=$ac_optarg ;;
  909. -infodir | --infodir | --infodi | --infod | --info | --inf)
  910. ac_prev=infodir ;;
  911. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  912. infodir=$ac_optarg ;;
  913. -libdir | --libdir | --libdi | --libd)
  914. ac_prev=libdir ;;
  915. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  916. libdir=$ac_optarg ;;
  917. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  918. | --libexe | --libex | --libe)
  919. ac_prev=libexecdir ;;
  920. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  921. | --libexe=* | --libex=* | --libe=*)
  922. libexecdir=$ac_optarg ;;
  923. -localedir | --localedir | --localedi | --localed | --locale)
  924. ac_prev=localedir ;;
  925. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  926. localedir=$ac_optarg ;;
  927. -localstatedir | --localstatedir | --localstatedi | --localstated \
  928. | --localstate | --localstat | --localsta | --localst | --locals)
  929. ac_prev=localstatedir ;;
  930. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  931. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  932. localstatedir=$ac_optarg ;;
  933. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  934. ac_prev=mandir ;;
  935. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  936. mandir=$ac_optarg ;;
  937. -nfp | --nfp | --nf)
  938. # Obsolete; use --without-fp.
  939. with_fp=no ;;
  940. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  941. | --no-cr | --no-c | -n)
  942. no_create=yes ;;
  943. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  944. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  945. no_recursion=yes ;;
  946. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  947. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  948. | --oldin | --oldi | --old | --ol | --o)
  949. ac_prev=oldincludedir ;;
  950. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  951. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  952. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  953. oldincludedir=$ac_optarg ;;
  954. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  955. ac_prev=prefix ;;
  956. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  957. prefix=$ac_optarg ;;
  958. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  959. | --program-pre | --program-pr | --program-p)
  960. ac_prev=program_prefix ;;
  961. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  962. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  963. program_prefix=$ac_optarg ;;
  964. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  965. | --program-suf | --program-su | --program-s)
  966. ac_prev=program_suffix ;;
  967. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  968. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  969. program_suffix=$ac_optarg ;;
  970. -program-transform-name | --program-transform-name \
  971. | --program-transform-nam | --program-transform-na \
  972. | --program-transform-n | --program-transform- \
  973. | --program-transform | --program-transfor \
  974. | --program-transfo | --program-transf \
  975. | --program-trans | --program-tran \
  976. | --progr-tra | --program-tr | --program-t)
  977. ac_prev=program_transform_name ;;
  978. -program-transform-name=* | --program-transform-name=* \
  979. | --program-transform-nam=* | --program-transform-na=* \
  980. | --program-transform-n=* | --program-transform-=* \
  981. | --program-transform=* | --program-transfor=* \
  982. | --program-transfo=* | --program-transf=* \
  983. | --program-trans=* | --program-tran=* \
  984. | --progr-tra=* | --program-tr=* | --program-t=*)
  985. program_transform_name=$ac_optarg ;;
  986. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  987. ac_prev=pdfdir ;;
  988. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  989. pdfdir=$ac_optarg ;;
  990. -psdir | --psdir | --psdi | --psd | --ps)
  991. ac_prev=psdir ;;
  992. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  993. psdir=$ac_optarg ;;
  994. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  995. | -silent | --silent | --silen | --sile | --sil)
  996. silent=yes ;;
  997. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  998. ac_prev=sbindir ;;
  999. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1000. | --sbi=* | --sb=*)
  1001. sbindir=$ac_optarg ;;
  1002. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1003. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1004. | --sharedst | --shareds | --shared | --share | --shar \
  1005. | --sha | --sh)
  1006. ac_prev=sharedstatedir ;;
  1007. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1008. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1009. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1010. | --sha=* | --sh=*)
  1011. sharedstatedir=$ac_optarg ;;
  1012. -site | --site | --sit)
  1013. ac_prev=site ;;
  1014. -site=* | --site=* | --sit=*)
  1015. site=$ac_optarg ;;
  1016. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1017. ac_prev=srcdir ;;
  1018. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1019. srcdir=$ac_optarg ;;
  1020. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1021. | --syscon | --sysco | --sysc | --sys | --sy)
  1022. ac_prev=sysconfdir ;;
  1023. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1024. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1025. sysconfdir=$ac_optarg ;;
  1026. -target | --target | --targe | --targ | --tar | --ta | --t)
  1027. ac_prev=target_alias ;;
  1028. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1029. target_alias=$ac_optarg ;;
  1030. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1031. verbose=yes ;;
  1032. -version | --version | --versio | --versi | --vers | -V)
  1033. ac_init_version=: ;;
  1034. -with-* | --with-*)
  1035. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1038. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1039. { (exit 1); exit 1; }; }
  1040. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1041. eval with_$ac_package=\$ac_optarg ;;
  1042. -without-* | --without-*)
  1043. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1044. # Reject names that are not valid shell variable names.
  1045. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1046. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1047. { (exit 1); exit 1; }; }
  1048. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1049. eval with_$ac_package=no ;;
  1050. --x)
  1051. # Obsolete; use --with-x.
  1052. with_x=yes ;;
  1053. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1054. | --x-incl | --x-inc | --x-in | --x-i)
  1055. ac_prev=x_includes ;;
  1056. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1057. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1058. x_includes=$ac_optarg ;;
  1059. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1060. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1061. ac_prev=x_libraries ;;
  1062. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1063. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1064. x_libraries=$ac_optarg ;;
  1065. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1066. Try \`$0 --help' for more information." >&2
  1067. { (exit 1); exit 1; }; }
  1068. ;;
  1069. *=*)
  1070. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1071. # Reject names that are not valid shell variable names.
  1072. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1073. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1074. { (exit 1); exit 1; }; }
  1075. eval $ac_envvar=\$ac_optarg
  1076. export $ac_envvar ;;
  1077. *)
  1078. # FIXME: should be removed in autoconf 3.0.
  1079. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1080. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1081. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1082. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1083. ;;
  1084. esac
  1085. done
  1086. if test -n "$ac_prev"; then
  1087. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1088. { echo "$as_me: error: missing argument to $ac_option" >&2
  1089. { (exit 1); exit 1; }; }
  1090. fi
  1091. # Be sure to have absolute directory names.
  1092. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1093. datadir sysconfdir sharedstatedir localstatedir includedir \
  1094. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1095. libdir localedir mandir
  1096. do
  1097. eval ac_val=\$$ac_var
  1098. case $ac_val in
  1099. [\\/$]* | ?:[\\/]* ) continue;;
  1100. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1101. esac
  1102. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1103. { (exit 1); exit 1; }; }
  1104. done
  1105. # There might be people who depend on the old broken behavior: `$host'
  1106. # used to hold the argument of --host etc.
  1107. # FIXME: To remove some day.
  1108. build=$build_alias
  1109. host=$host_alias
  1110. target=$target_alias
  1111. # FIXME: To remove some day.
  1112. if test "x$host_alias" != x; then
  1113. if test "x$build_alias" = x; then
  1114. cross_compiling=maybe
  1115. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1116. If a cross compiler is detected then cross compile mode will be used." >&2
  1117. elif test "x$build_alias" != "x$host_alias"; then
  1118. cross_compiling=yes
  1119. fi
  1120. fi
  1121. ac_tool_prefix=
  1122. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1123. test "$silent" = yes && exec 6>/dev/null
  1124. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1125. ac_ls_di=`ls -di .` &&
  1126. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1127. { echo "$as_me: error: Working directory cannot be determined" >&2
  1128. { (exit 1); exit 1; }; }
  1129. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1130. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1131. { (exit 1); exit 1; }; }
  1132. # Find the source files, if location was not specified.
  1133. if test -z "$srcdir"; then
  1134. ac_srcdir_defaulted=yes
  1135. # Try the directory containing this script, then the parent directory.
  1136. ac_confdir=`$as_dirname -- "$0" ||
  1137. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1138. X"$0" : 'X\(//\)[^/]' \| \
  1139. X"$0" : 'X\(//\)$' \| \
  1140. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1141. echo X"$0" |
  1142. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\/\)[^/].*/{
  1147. s//\1/
  1148. q
  1149. }
  1150. /^X\(\/\/\)$/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\).*/{
  1155. s//\1/
  1156. q
  1157. }
  1158. s/.*/./; q'`
  1159. srcdir=$ac_confdir
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. srcdir=..
  1162. fi
  1163. else
  1164. ac_srcdir_defaulted=no
  1165. fi
  1166. if test ! -r "$srcdir/$ac_unique_file"; then
  1167. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1168. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1169. { (exit 1); exit 1; }; }
  1170. fi
  1171. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1172. ac_abs_confdir=`(
  1173. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1174. { (exit 1); exit 1; }; }
  1175. pwd)`
  1176. # When building in place, set srcdir=.
  1177. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1178. srcdir=.
  1179. fi
  1180. # Remove unnecessary trailing slashes from srcdir.
  1181. # Double slashes in file names in object file debugging info
  1182. # mess up M-x gdb in Emacs.
  1183. case $srcdir in
  1184. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1185. esac
  1186. for ac_var in $ac_precious_vars; do
  1187. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1188. eval ac_env_${ac_var}_value=\$${ac_var}
  1189. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1190. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1191. done
  1192. #
  1193. # Report the --help message.
  1194. #
  1195. if test "$ac_init_help" = "long"; then
  1196. # Omit some internal or obsolete options to make the list less imposing.
  1197. # This message is too long to be a string in the A/UX 3.1 sh.
  1198. cat <<_ACEOF
  1199. \`configure' configures aria2c 1.0.0a to adapt to many kinds of systems.
  1200. Usage: $0 [OPTION]... [VAR=VALUE]...
  1201. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1202. VAR=VALUE. See below for descriptions of some of the useful variables.
  1203. Defaults for the options are specified in brackets.
  1204. Configuration:
  1205. -h, --help display this help and exit
  1206. --help=short display options specific to this package
  1207. --help=recursive display the short help of all the included packages
  1208. -V, --version display version information and exit
  1209. -q, --quiet, --silent do not print \`checking...' messages
  1210. --cache-file=FILE cache test results in FILE [disabled]
  1211. -C, --config-cache alias for \`--cache-file=config.cache'
  1212. -n, --no-create do not create output files
  1213. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1214. Installation directories:
  1215. --prefix=PREFIX install architecture-independent files in PREFIX
  1216. [$ac_default_prefix]
  1217. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1218. [PREFIX]
  1219. By default, \`make install' will install all the files in
  1220. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1221. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1222. for instance \`--prefix=\$HOME'.
  1223. For better control, use the options below.
  1224. Fine tuning of the installation directories:
  1225. --bindir=DIR user executables [EPREFIX/bin]
  1226. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1227. --libexecdir=DIR program executables [EPREFIX/libexec]
  1228. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1229. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1230. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1231. --libdir=DIR object code libraries [EPREFIX/lib]
  1232. --includedir=DIR C header files [PREFIX/include]
  1233. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1234. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1235. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1236. --infodir=DIR info documentation [DATAROOTDIR/info]
  1237. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1238. --mandir=DIR man documentation [DATAROOTDIR/man]
  1239. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1240. --htmldir=DIR html documentation [DOCDIR]
  1241. --dvidir=DIR dvi documentation [DOCDIR]
  1242. --pdfdir=DIR pdf documentation [DOCDIR]
  1243. --psdir=DIR ps documentation [DOCDIR]
  1244. _ACEOF
  1245. cat <<\_ACEOF
  1246. Program names:
  1247. --program-prefix=PREFIX prepend PREFIX to installed program names
  1248. --program-suffix=SUFFIX append SUFFIX to installed program names
  1249. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1250. System types:
  1251. --build=BUILD configure for building on BUILD [guessed]
  1252. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1253. --target=TARGET configure for building compilers for TARGET [HOST]
  1254. _ACEOF
  1255. fi
  1256. if test -n "$ac_init_help"; then
  1257. case $ac_init_help in
  1258. short | recursive ) echo "Configuration of aria2c 1.0.0a:";;
  1259. esac
  1260. cat <<\_ACEOF
  1261. Optional Features:
  1262. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1263. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1264. --enable-bittorrent enable bittorrent support.
  1265. --enable-metalink enable metalink support.
  1266. --enable-epoll enable epoll support.
  1267. --disable-dependency-tracking speeds up one-time build
  1268. --enable-dependency-tracking do not reject slow dependency extractors
  1269. --disable-xmltest Do not try to compile and run a test LIBXML program
  1270. --disable-largefile omit support for large files
  1271. --disable-nls do not use Native Language Support
  1272. --enable-threads={posix|solaris|pth|win32}
  1273. specify multithreading API
  1274. --disable-threads build without multithread safety
  1275. --disable-rpath do not hardcode runtime library paths
  1276. Optional Packages:
  1277. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1278. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1279. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1280. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1281. --with-gnutls use gnutls if it is installed.
  1282. --with-openssl use openssl if it is installed.
  1283. --with-sqlite3 use sqlite3 if it is installed.
  1284. --with-libxml2 use libxml2 if it is installed.
  1285. --with-libexpat use libexpat if it is installed.
  1286. --with-libares use libares if it is installed.
  1287. --with-libcares use libcares if it is installed.
  1288. --with-libz use libz if it is installed.
  1289. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1290. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1291. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1292. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1293. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1294. --with-libgcrypt-prefix=PFX
  1295. prefix where LIBGCRYPT is installed (optional)
  1296. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1297. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1298. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1299. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1300. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1301. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1302. --without-libpth-prefix don't search for libpth in includedir and libdir
  1303. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1304. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1305. --with-included-gettext use the GNU gettext library included here
  1306. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1307. --without-libintl-prefix don't search for libintl in includedir and libdir
  1308. Some influential environment variables:
  1309. CXX C++ compiler command
  1310. CXXFLAGS C++ compiler flags
  1311. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1312. nonstandard directory <lib dir>
  1313. LIBS libraries to pass to the linker, e.g. -l<library>
  1314. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1315. you have headers in a nonstandard directory <include dir>
  1316. CC C compiler command
  1317. CFLAGS C compiler flags
  1318. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1319. the first program found out of: `bison -y', `byacc', `yacc'.
  1320. YFLAGS The list of arguments that will be passed by default to $YACC.
  1321. This script will default YFLAGS to the empty string to avoid a
  1322. default value of `-d' given by some make applications.
  1323. CXXCPP C++ preprocessor
  1324. Use these variables to override the choices made by `configure' or to help
  1325. it to find libraries and programs with nonstandard names/locations.
  1326. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1327. _ACEOF
  1328. ac_status=$?
  1329. fi
  1330. if test "$ac_init_help" = "recursive"; then
  1331. # If there are subdirs, report their specific --help.
  1332. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1333. test -d "$ac_dir" || continue
  1334. ac_builddir=.
  1335. case "$ac_dir" in
  1336. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1337. *)
  1338. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1339. # A ".." for each directory in $ac_dir_suffix.
  1340. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1341. case $ac_top_builddir_sub in
  1342. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1343. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1344. esac ;;
  1345. esac
  1346. ac_abs_top_builddir=$ac_pwd
  1347. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1348. # for backward compatibility:
  1349. ac_top_builddir=$ac_top_build_prefix
  1350. case $srcdir in
  1351. .) # We are building in place.
  1352. ac_srcdir=.
  1353. ac_top_srcdir=$ac_top_builddir_sub
  1354. ac_abs_top_srcdir=$ac_pwd ;;
  1355. [\\/]* | ?:[\\/]* ) # Absolute name.
  1356. ac_srcdir=$srcdir$ac_dir_suffix;
  1357. ac_top_srcdir=$srcdir
  1358. ac_abs_top_srcdir=$srcdir ;;
  1359. *) # Relative name.
  1360. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1361. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1362. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1363. esac
  1364. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1365. cd "$ac_dir" || { ac_status=$?; continue; }
  1366. # Check for guested configure.
  1367. if test -f "$ac_srcdir/configure.gnu"; then
  1368. echo &&
  1369. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1370. elif test -f "$ac_srcdir/configure"; then
  1371. echo &&
  1372. $SHELL "$ac_srcdir/configure" --help=recursive
  1373. else
  1374. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1375. fi || ac_status=$?
  1376. cd "$ac_pwd" || { ac_status=$?; break; }
  1377. done
  1378. fi
  1379. test -n "$ac_init_help" && exit $ac_status
  1380. if $ac_init_version; then
  1381. cat <<\_ACEOF
  1382. aria2c configure 1.0.0a
  1383. generated by GNU Autoconf 2.61
  1384. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1385. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1386. This configure script is free software; the Free Software Foundation
  1387. gives unlimited permission to copy, distribute and modify it.
  1388. _ACEOF
  1389. exit
  1390. fi
  1391. cat >config.log <<_ACEOF
  1392. This file contains any messages produced by compilers while
  1393. running configure, to aid debugging if configure makes a mistake.
  1394. It was created by aria2c $as_me 1.0.0a, which was
  1395. generated by GNU Autoconf 2.61. Invocation command line was
  1396. $ $0 $@
  1397. _ACEOF
  1398. exec 5>>config.log
  1399. {
  1400. cat <<_ASUNAME
  1401. ## --------- ##
  1402. ## Platform. ##
  1403. ## --------- ##
  1404. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1405. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1406. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1407. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1408. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1409. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1410. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1411. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1412. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1413. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1414. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1415. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1416. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1417. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1418. _ASUNAME
  1419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1420. for as_dir in $PATH
  1421. do
  1422. IFS=$as_save_IFS
  1423. test -z "$as_dir" && as_dir=.
  1424. echo "PATH: $as_dir"
  1425. done
  1426. IFS=$as_save_IFS
  1427. } >&5
  1428. cat >&5 <<_ACEOF
  1429. ## ----------- ##
  1430. ## Core tests. ##
  1431. ## ----------- ##
  1432. _ACEOF
  1433. # Keep a trace of the command line.
  1434. # Strip out --no-create and --no-recursion so they do not pile up.
  1435. # Strip out --silent because we don't want to record it for future runs.
  1436. # Also quote any args containing shell meta-characters.
  1437. # Make two passes to allow for proper duplicate-argument suppression.
  1438. ac_configure_args=
  1439. ac_configure_args0=
  1440. ac_configure_args1=
  1441. ac_must_keep_next=false
  1442. for ac_pass in 1 2
  1443. do
  1444. for ac_arg
  1445. do
  1446. case $ac_arg in
  1447. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1448. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1449. | -silent | --silent | --silen | --sile | --sil)
  1450. continue ;;
  1451. *\'*)
  1452. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1453. esac
  1454. case $ac_pass in
  1455. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1456. 2)
  1457. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1458. if test $ac_must_keep_next = true; then
  1459. ac_must_keep_next=false # Got value, back to normal.
  1460. else
  1461. case $ac_arg in
  1462. *=* | --config-cache | -C | -disable-* | --disable-* \
  1463. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1464. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1465. | -with-* | --with-* | -without-* | --without-* | --x)
  1466. case "$ac_configure_args0 " in
  1467. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1468. esac
  1469. ;;
  1470. -* ) ac_must_keep_next=true ;;
  1471. esac
  1472. fi
  1473. ac_configure_args="$ac_configure_args '$ac_arg'"
  1474. ;;
  1475. esac
  1476. done
  1477. done
  1478. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1479. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1480. # When interrupted or exit'd, cleanup temporary files, and complete
  1481. # config.log. We remove comments because anyway the quotes in there
  1482. # would cause problems or look ugly.
  1483. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1484. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1485. trap 'exit_status=$?
  1486. # Save into config.log some information that might help in debugging.
  1487. {
  1488. echo
  1489. cat <<\_ASBOX
  1490. ## ---------------- ##
  1491. ## Cache variables. ##
  1492. ## ---------------- ##
  1493. _ASBOX
  1494. echo
  1495. # The following way of writing the cache mishandles newlines in values,
  1496. (
  1497. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1498. eval ac_val=\$$ac_var
  1499. case $ac_val in #(
  1500. *${as_nl}*)
  1501. case $ac_var in #(
  1502. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1503. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1504. esac
  1505. case $ac_var in #(
  1506. _ | IFS | as_nl) ;; #(
  1507. *) $as_unset $ac_var ;;
  1508. esac ;;
  1509. esac
  1510. done
  1511. (set) 2>&1 |
  1512. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1513. *${as_nl}ac_space=\ *)
  1514. sed -n \
  1515. "s/'\''/'\''\\\\'\'''\''/g;
  1516. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1517. ;; #(
  1518. *)
  1519. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1520. ;;
  1521. esac |
  1522. sort
  1523. )
  1524. echo
  1525. cat <<\_ASBOX
  1526. ## ----------------- ##
  1527. ## Output variables. ##
  1528. ## ----------------- ##
  1529. _ASBOX
  1530. echo
  1531. for ac_var in $ac_subst_vars
  1532. do
  1533. eval ac_val=\$$ac_var
  1534. case $ac_val in
  1535. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1536. esac
  1537. echo "$ac_var='\''$ac_val'\''"
  1538. done | sort
  1539. echo
  1540. if test -n "$ac_subst_files"; then
  1541. cat <<\_ASBOX
  1542. ## ------------------- ##
  1543. ## File substitutions. ##
  1544. ## ------------------- ##
  1545. _ASBOX
  1546. echo
  1547. for ac_var in $ac_subst_files
  1548. do
  1549. eval ac_val=\$$ac_var
  1550. case $ac_val in
  1551. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1552. esac
  1553. echo "$ac_var='\''$ac_val'\''"
  1554. done | sort
  1555. echo
  1556. fi
  1557. if test -s confdefs.h; then
  1558. cat <<\_ASBOX
  1559. ## ----------- ##
  1560. ## confdefs.h. ##
  1561. ## ----------- ##
  1562. _ASBOX
  1563. echo
  1564. cat confdefs.h
  1565. echo
  1566. fi
  1567. test "$ac_signal" != 0 &&
  1568. echo "$as_me: caught signal $ac_signal"
  1569. echo "$as_me: exit $exit_status"
  1570. } >&5
  1571. rm -f core *.core core.conftest.* &&
  1572. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1573. exit $exit_status
  1574. ' 0
  1575. for ac_signal in 1 2 13 15; do
  1576. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1577. done
  1578. ac_signal=0
  1579. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1580. rm -f -r conftest* confdefs.h
  1581. # Predefined preprocessor variables.
  1582. cat >>confdefs.h <<_ACEOF
  1583. #define PACKAGE_NAME "$PACKAGE_NAME"
  1584. _ACEOF
  1585. cat >>confdefs.h <<_ACEOF
  1586. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1587. _ACEOF
  1588. cat >>confdefs.h <<_ACEOF
  1589. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1590. _ACEOF
  1591. cat >>confdefs.h <<_ACEOF
  1592. #define PACKAGE_STRING "$PACKAGE_STRING"
  1593. _ACEOF
  1594. cat >>confdefs.h <<_ACEOF
  1595. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1596. _ACEOF
  1597. # Let the site file select an alternate cache file if it wants to.
  1598. # Prefer explicitly selected file to automatically selected ones.
  1599. if test -n "$CONFIG_SITE"; then
  1600. set x "$CONFIG_SITE"
  1601. elif test "x$prefix" != xNONE; then
  1602. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1603. else
  1604. set x "$ac_default_prefix/share/config.site" \
  1605. "$ac_default_prefix/etc/config.site"
  1606. fi
  1607. shift
  1608. for ac_site_file
  1609. do
  1610. if test -r "$ac_site_file"; then
  1611. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1612. echo "$as_me: loading site script $ac_site_file" >&6;}
  1613. sed 's/^/| /' "$ac_site_file" >&5
  1614. . "$ac_site_file"
  1615. fi
  1616. done
  1617. if test -r "$cache_file"; then
  1618. # Some versions of bash will fail to source /dev/null (special
  1619. # files actually), so we avoid doing that.
  1620. if test -f "$cache_file"; then
  1621. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1622. echo "$as_me: loading cache $cache_file" >&6;}
  1623. case $cache_file in
  1624. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1625. *) . "./$cache_file";;
  1626. esac
  1627. fi
  1628. else
  1629. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1630. echo "$as_me: creating cache $cache_file" >&6;}
  1631. >$cache_file
  1632. fi
  1633. gt_needs="$gt_needs "
  1634. ac_header_list="$ac_header_list sys/time.h"
  1635. ac_header_list="$ac_header_list unistd.h"
  1636. ac_func_list="$ac_func_list alarm"
  1637. # Check that the precious variables saved in the cache have kept the same
  1638. # value.
  1639. ac_cache_corrupted=false
  1640. for ac_var in $ac_precious_vars; do
  1641. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1642. eval ac_new_set=\$ac_env_${ac_var}_set
  1643. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1644. eval ac_new_val=\$ac_env_${ac_var}_value
  1645. case $ac_old_set,$ac_new_set in
  1646. set,)
  1647. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1648. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1649. ac_cache_corrupted=: ;;
  1650. ,set)
  1651. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1652. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1653. ac_cache_corrupted=: ;;
  1654. ,);;
  1655. *)
  1656. if test "x$ac_old_val" != "x$ac_new_val"; then
  1657. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1658. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1659. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1660. echo "$as_me: former value: $ac_old_val" >&2;}
  1661. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1662. echo "$as_me: current value: $ac_new_val" >&2;}
  1663. ac_cache_corrupted=:
  1664. fi;;
  1665. esac
  1666. # Pass precious variables to config.status.
  1667. if test "$ac_new_set" = set; then
  1668. case $ac_new_val in
  1669. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1670. *) ac_arg=$ac_var=$ac_new_val ;;
  1671. esac
  1672. case " $ac_configure_args " in
  1673. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1674. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1675. esac
  1676. fi
  1677. done
  1678. if $ac_cache_corrupted; then
  1679. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1680. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1681. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1682. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1683. { (exit 1); exit 1; }; }
  1684. fi
  1685. ac_ext=c
  1686. ac_cpp='$CPP $CPPFLAGS'
  1687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1690. ac_aux_dir=
  1691. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1692. if test -f "$ac_dir/install-sh"; then
  1693. ac_aux_dir=$ac_dir
  1694. ac_install_sh="$ac_aux_dir/install-sh -c"
  1695. break
  1696. elif test -f "$ac_dir/install.sh"; then
  1697. ac_aux_dir=$ac_dir
  1698. ac_install_sh="$ac_aux_dir/install.sh -c"
  1699. break
  1700. elif test -f "$ac_dir/shtool"; then
  1701. ac_aux_dir=$ac_dir
  1702. ac_install_sh="$ac_aux_dir/shtool install -c"
  1703. break
  1704. fi
  1705. done
  1706. if test -z "$ac_aux_dir"; then
  1707. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1708. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1709. { (exit 1); exit 1; }; }
  1710. fi
  1711. # These three variables are undocumented and unsupported,
  1712. # and are intended to be withdrawn in a future Autoconf release.
  1713. # They can cause serious problems if a builder's source tree is in a directory
  1714. # whose full name contains unusual characters.
  1715. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1716. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1717. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1718. # Make sure we can run config.sub.
  1719. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1720. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1721. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1722. { (exit 1); exit 1; }; }
  1723. { echo "$as_me:$LINENO: checking build system type" >&5
  1724. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1725. if test "${ac_cv_build+set}" = set; then
  1726. echo $ECHO_N "(cached) $ECHO_C" >&6
  1727. else
  1728. ac_build_alias=$build_alias
  1729. test "x$ac_build_alias" = x &&
  1730. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1731. test "x$ac_build_alias" = x &&
  1732. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1733. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1734. { (exit 1); exit 1; }; }
  1735. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1736. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1737. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1738. { (exit 1); exit 1; }; }
  1739. fi
  1740. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1741. echo "${ECHO_T}$ac_cv_build" >&6; }
  1742. case $ac_cv_build in
  1743. *-*-*) ;;
  1744. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1745. echo "$as_me: error: invalid value of canonical build" >&2;}
  1746. { (exit 1); exit 1; }; };;
  1747. esac
  1748. build=$ac_cv_build
  1749. ac_save_IFS=$IFS; IFS='-'
  1750. set x $ac_cv_build
  1751. shift
  1752. build_cpu=$1
  1753. build_vendor=$2
  1754. shift; shift
  1755. # Remember, the first character of IFS is used to create $*,
  1756. # except with old shells:
  1757. build_os=$*
  1758. IFS=$ac_save_IFS
  1759. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1760. { echo "$as_me:$LINENO: checking host system type" >&5
  1761. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1762. if test "${ac_cv_host+set}" = set; then
  1763. echo $ECHO_N "(cached) $ECHO_C" >&6
  1764. else
  1765. if test "x$host_alias" = x; then
  1766. ac_cv_host=$ac_cv_build
  1767. else
  1768. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1769. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1770. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1771. { (exit 1); exit 1; }; }
  1772. fi
  1773. fi
  1774. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1775. echo "${ECHO_T}$ac_cv_host" >&6; }
  1776. case $ac_cv_host in
  1777. *-*-*) ;;
  1778. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1779. echo "$as_me: error: invalid value of canonical host" >&2;}
  1780. { (exit 1); exit 1; }; };;
  1781. esac
  1782. host=$ac_cv_host
  1783. ac_save_IFS=$IFS; IFS='-'
  1784. set x $ac_cv_host
  1785. shift
  1786. host_cpu=$1
  1787. host_vendor=$2
  1788. shift; shift
  1789. # Remember, the first character of IFS is used to create $*,
  1790. # except with old shells:
  1791. host_os=$*
  1792. IFS=$ac_save_IFS
  1793. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1794. { echo "$as_me:$LINENO: checking target system type" >&5
  1795. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1796. if test "${ac_cv_target+set}" = set; then
  1797. echo $ECHO_N "(cached) $ECHO_C" >&6
  1798. else
  1799. if test "x$target_alias" = x; then
  1800. ac_cv_target=$ac_cv_host
  1801. else
  1802. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1803. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1804. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1805. { (exit 1); exit 1; }; }
  1806. fi
  1807. fi
  1808. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1809. echo "${ECHO_T}$ac_cv_target" >&6; }
  1810. case $ac_cv_target in
  1811. *-*-*) ;;
  1812. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1813. echo "$as_me: error: invalid value of canonical target" >&2;}
  1814. { (exit 1); exit 1; }; };;
  1815. esac
  1816. target=$ac_cv_target
  1817. ac_save_IFS=$IFS; IFS='-'
  1818. set x $ac_cv_target
  1819. shift
  1820. target_cpu=$1
  1821. target_vendor=$2
  1822. shift; shift
  1823. # Remember, the first character of IFS is used to create $*,
  1824. # except with old shells:
  1825. target_os=$*
  1826. IFS=$ac_save_IFS
  1827. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1828. # The aliases save the names the user supplied, while $host etc.
  1829. # will get canonicalized.
  1830. test -n "$target_alias" &&
  1831. test "$program_prefix$program_suffix$program_transform_name" = \
  1832. NONENONEs,x,x, &&
  1833. program_prefix=${target_alias}-
  1834. am__api_version='1.10'
  1835. # Find a good install program. We prefer a C program (faster),
  1836. # so one script is as good as another. But avoid the broken or
  1837. # incompatible versions:
  1838. # SysV /etc/install, /usr/sbin/install
  1839. # SunOS /usr/etc/install
  1840. # IRIX /sbin/install
  1841. # AIX /bin/install
  1842. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1843. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1844. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1845. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1846. # OS/2's system install, which has a completely different semantic
  1847. # ./install, which can be erroneously created by make from ./install.sh.
  1848. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1849. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1850. if test -z "$INSTALL"; then
  1851. if test "${ac_cv_path_install+set}" = set; then
  1852. echo $ECHO_N "(cached) $ECHO_C" >&6
  1853. else
  1854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1855. for as_dir in $PATH
  1856. do
  1857. IFS=$as_save_IFS
  1858. test -z "$as_dir" && as_dir=.
  1859. # Account for people who put trailing slashes in PATH elements.
  1860. case $as_dir/ in
  1861. ./ | .// | /cC/* | \
  1862. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1863. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1864. /usr/ucb/* ) ;;
  1865. *)
  1866. # OSF1 and SCO ODT 3.0 have their own names for install.
  1867. # Don't use installbsd from OSF since it installs stuff as root
  1868. # by default.
  1869. for ac_prog in ginstall scoinst install; do
  1870. for ac_exec_ext in '' $ac_executable_extensions; do
  1871. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1872. if test $ac_prog = install &&
  1873. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1874. # AIX install. It has an incompatible calling convention.
  1875. :
  1876. elif test $ac_prog = install &&
  1877. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1878. # program-specific install script used by HP pwplus--don't use.
  1879. :
  1880. else
  1881. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1882. break 3
  1883. fi
  1884. fi
  1885. done
  1886. done
  1887. ;;
  1888. esac
  1889. done
  1890. IFS=$as_save_IFS
  1891. fi
  1892. if test "${ac_cv_path_install+set}" = set; then
  1893. INSTALL=$ac_cv_path_install
  1894. else
  1895. # As a last resort, use the slow shell script. Don't cache a
  1896. # value for INSTALL within a source directory, because that will
  1897. # break other packages using the cache if that directory is
  1898. # removed, or if the value is a relative name.
  1899. INSTALL=$ac_install_sh
  1900. fi
  1901. fi
  1902. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1903. echo "${ECHO_T}$INSTALL" >&6; }
  1904. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1905. # It thinks the first close brace ends the variable substitution.
  1906. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1907. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1908. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1909. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1910. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1911. # Just in case
  1912. sleep 1
  1913. echo timestamp > conftest.file
  1914. # Do `set' in a subshell so we don't clobber the current shell's
  1915. # arguments. Must try -L first in case configure is actually a
  1916. # symlink; some systems play weird games with the mod time of symlinks
  1917. # (eg FreeBSD returns the mod time of the symlink's containing
  1918. # directory).
  1919. if (
  1920. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1921. if test "$*" = "X"; then
  1922. # -L didn't work.
  1923. set X `ls -t $srcdir/configure conftest.file`
  1924. fi
  1925. rm -f conftest.file
  1926. if test "$*" != "X $srcdir/configure conftest.file" \
  1927. && test "$*" != "X conftest.file $srcdir/configure"; then
  1928. # If neither matched, then we have a broken ls. This can happen
  1929. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1930. # broken ls alias from the environment. This has actually
  1931. # happened. Such a system could not be considered "sane".
  1932. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1933. alias in your environment" >&5
  1934. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1935. alias in your environment" >&2;}
  1936. { (exit 1); exit 1; }; }
  1937. fi
  1938. test "$2" = conftest.file
  1939. )
  1940. then
  1941. # Ok.
  1942. :
  1943. else
  1944. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1945. Check your system clock" >&5
  1946. echo "$as_me: error: newly created file is older than distributed files!
  1947. Check your system clock" >&2;}
  1948. { (exit 1); exit 1; }; }
  1949. fi
  1950. { echo "$as_me:$LINENO: result: yes" >&5
  1951. echo "${ECHO_T}yes" >&6; }
  1952. test "$program_prefix" != NONE &&
  1953. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1954. # Use a double $ so make ignores it.
  1955. test "$program_suffix" != NONE &&
  1956. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1957. # Double any \ or $. echo might interpret backslashes.
  1958. # By default was `s,x,x', remove it if useless.
  1959. cat <<\_ACEOF >conftest.sed
  1960. s/[\\$]/&&/g;s/;s,x,x,$//
  1961. _ACEOF
  1962. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1963. rm -f conftest.sed
  1964. # expand $ac_aux_dir to an absolute path
  1965. am_aux_dir=`cd $ac_aux_dir && pwd`
  1966. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1967. # Use eval to expand $SHELL
  1968. if eval "$MISSING --run true"; then
  1969. am_missing_run="$MISSING --run "
  1970. else
  1971. am_missing_run=
  1972. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1973. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1974. fi
  1975. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1976. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1977. if test -z "$MKDIR_P"; then
  1978. if test "${ac_cv_path_mkdir+set}" = set; then
  1979. echo $ECHO_N "(cached) $ECHO_C" >&6
  1980. else
  1981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1982. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1983. do
  1984. IFS=$as_save_IFS
  1985. test -z "$as_dir" && as_dir=.
  1986. for ac_prog in mkdir gmkdir; do
  1987. for ac_exec_ext in '' $ac_executable_extensions; do
  1988. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1989. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1990. 'mkdir (GNU coreutils) '* | \
  1991. 'mkdir (coreutils) '* | \
  1992. 'mkdir (fileutils) '4.1*)
  1993. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1994. break 3;;
  1995. esac
  1996. done
  1997. done
  1998. done
  1999. IFS=$as_save_IFS
  2000. fi
  2001. if test "${ac_cv_path_mkdir+set}" = set; then
  2002. MKDIR_P="$ac_cv_path_mkdir -p"
  2003. else
  2004. # As a last resort, use the slow shell script. Don't cache a
  2005. # value for MKDIR_P within a source directory, because that will
  2006. # break other packages using the cache if that directory is
  2007. # removed, or if the value is a relative name.
  2008. test -d ./--version && rmdir ./--version
  2009. MKDIR_P="$ac_install_sh -d"
  2010. fi
  2011. fi
  2012. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2013. echo "${ECHO_T}$MKDIR_P" >&6; }
  2014. mkdir_p="$MKDIR_P"
  2015. case $mkdir_p in
  2016. [\\/$]* | ?:[\\/]*) ;;
  2017. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2018. esac
  2019. for ac_prog in gawk mawk nawk awk
  2020. do
  2021. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2022. set dummy $ac_prog; ac_word=$2
  2023. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2024. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2025. if test "${ac_cv_prog_AWK+set}" = set; then
  2026. echo $ECHO_N "(cached) $ECHO_C" >&6
  2027. else
  2028. if test -n "$AWK"; then
  2029. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2030. else
  2031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2032. for as_dir in $PATH
  2033. do
  2034. IFS=$as_save_IFS
  2035. test -z "$as_dir" && as_dir=.
  2036. for ac_exec_ext in '' $ac_executable_extensions; do
  2037. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2038. ac_cv_prog_AWK="$ac_prog"
  2039. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2040. break 2
  2041. fi
  2042. done
  2043. done
  2044. IFS=$as_save_IFS
  2045. fi
  2046. fi
  2047. AWK=$ac_cv_prog_AWK
  2048. if test -n "$AWK"; then
  2049. { echo "$as_me:$LINENO: result: $AWK" >&5
  2050. echo "${ECHO_T}$AWK" >&6; }
  2051. else
  2052. { echo "$as_me:$LINENO: result: no" >&5
  2053. echo "${ECHO_T}no" >&6; }
  2054. fi
  2055. test -n "$AWK" && break
  2056. done
  2057. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2058. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2059. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2060. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2061. echo $ECHO_N "(cached) $ECHO_C" >&6
  2062. else
  2063. cat >conftest.make <<\_ACEOF
  2064. SHELL = /bin/sh
  2065. all:
  2066. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2067. _ACEOF
  2068. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2069. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2070. *@@@%%%=?*=@@@%%%*)
  2071. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2072. *)
  2073. eval ac_cv_prog_make_${ac_make}_set=no;;
  2074. esac
  2075. rm -f conftest.make
  2076. fi
  2077. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2078. { echo "$as_me:$LINENO: result: yes" >&5
  2079. echo "${ECHO_T}yes" >&6; }
  2080. SET_MAKE=
  2081. else
  2082. { echo "$as_me:$LINENO: result: no" >&5
  2083. echo "${ECHO_T}no" >&6; }
  2084. SET_MAKE="MAKE=${MAKE-make}"
  2085. fi
  2086. rm -rf .tst 2>/dev/null
  2087. mkdir .tst 2>/dev/null
  2088. if test -d .tst; then
  2089. am__leading_dot=.
  2090. else
  2091. am__leading_dot=_
  2092. fi
  2093. rmdir .tst 2>/dev/null
  2094. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2095. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2096. # is not polluted with repeated "-I."
  2097. am__isrc=' -I$(srcdir)'
  2098. # test to see if srcdir already configured
  2099. if test -f $srcdir/config.status; then
  2100. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2101. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2102. { (exit 1); exit 1; }; }
  2103. fi
  2104. fi
  2105. # test whether we have cygpath
  2106. if test -z "$CYGPATH_W"; then
  2107. if (cygpath --version) >/dev/null 2>/dev/null; then
  2108. CYGPATH_W='cygpath -w'
  2109. else
  2110. CYGPATH_W=echo
  2111. fi
  2112. fi
  2113. # Define the identity of the package.
  2114. PACKAGE='aria2c'
  2115. VERSION='1.0.0a'
  2116. cat >>confdefs.h <<_ACEOF
  2117. #define PACKAGE "$PACKAGE"
  2118. _ACEOF
  2119. cat >>confdefs.h <<_ACEOF
  2120. #define VERSION "$VERSION"
  2121. _ACEOF
  2122. # Some tools Automake needs.
  2123. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2124. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2125. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2126. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2127. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2128. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2129. # Installed binaries are usually stripped using `strip' when the user
  2130. # run `make install-strip'. However `strip' might not be the right
  2131. # tool to use in cross-compilation environments, therefore Automake
  2132. # will honor the `STRIP' environment variable to overrule this program.
  2133. if test "$cross_compiling" != no; then
  2134. if test -n "$ac_tool_prefix"; then
  2135. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2136. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2137. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2138. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2139. if test "${ac_cv_prog_STRIP+set}" = set; then
  2140. echo $ECHO_N "(cached) $ECHO_C" >&6
  2141. else
  2142. if test -n "$STRIP"; then
  2143. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2144. else
  2145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2146. for as_dir in $PATH
  2147. do
  2148. IFS=$as_save_IFS
  2149. test -z "$as_dir" && as_dir=.
  2150. for ac_exec_ext in '' $ac_executable_extensions; do
  2151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2152. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2153. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2154. break 2
  2155. fi
  2156. done
  2157. done
  2158. IFS=$as_save_IFS
  2159. fi
  2160. fi
  2161. STRIP=$ac_cv_prog_STRIP
  2162. if test -n "$STRIP"; then
  2163. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2164. echo "${ECHO_T}$STRIP" >&6; }
  2165. else
  2166. { echo "$as_me:$LINENO: result: no" >&5
  2167. echo "${ECHO_T}no" >&6; }
  2168. fi
  2169. fi
  2170. if test -z "$ac_cv_prog_STRIP"; then
  2171. ac_ct_STRIP=$STRIP
  2172. # Extract the first word of "strip", so it can be a program name with args.
  2173. set dummy strip; ac_word=$2
  2174. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2175. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2176. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2177. echo $ECHO_N "(cached) $ECHO_C" >&6
  2178. else
  2179. if test -n "$ac_ct_STRIP"; then
  2180. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2181. else
  2182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2183. for as_dir in $PATH
  2184. do
  2185. IFS=$as_save_IFS
  2186. test -z "$as_dir" && as_dir=.
  2187. for ac_exec_ext in '' $ac_executable_extensions; do
  2188. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2189. ac_cv_prog_ac_ct_STRIP="strip"
  2190. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2191. break 2
  2192. fi
  2193. done
  2194. done
  2195. IFS=$as_save_IFS
  2196. fi
  2197. fi
  2198. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2199. if test -n "$ac_ct_STRIP"; then
  2200. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2201. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2202. else
  2203. { echo "$as_me:$LINENO: result: no" >&5
  2204. echo "${ECHO_T}no" >&6; }
  2205. fi
  2206. if test "x$ac_ct_STRIP" = x; then
  2207. STRIP=":"
  2208. else
  2209. case $cross_compiling:$ac_tool_warned in
  2210. yes:)
  2211. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2212. whose name does not start with the host triplet. If you think this
  2213. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2214. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2215. whose name does not start with the host triplet. If you think this
  2216. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2217. ac_tool_warned=yes ;;
  2218. esac
  2219. STRIP=$ac_ct_STRIP
  2220. fi
  2221. else
  2222. STRIP="$ac_cv_prog_STRIP"
  2223. fi
  2224. fi
  2225. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2226. # We need awk for the "check" target. The system "awk" is bad on
  2227. # some platforms.
  2228. # Always define AMTAR for backward compatibility.
  2229. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2230. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2231. # Check whether --with-cppunit-prefix was given.
  2232. if test "${with_cppunit_prefix+set}" = set; then
  2233. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2234. else
  2235. cppunit_config_prefix=""
  2236. fi
  2237. # Check whether --with-cppunit-exec-prefix was given.
  2238. if test "${with_cppunit_exec_prefix+set}" = set; then
  2239. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2240. else
  2241. cppunit_config_exec_prefix=""
  2242. fi
  2243. if test x$cppunit_config_exec_prefix != x ; then
  2244. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2245. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2246. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2247. fi
  2248. fi
  2249. if test x$cppunit_config_prefix != x ; then
  2250. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2251. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2252. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2253. fi
  2254. fi
  2255. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2256. set dummy cppunit-config; ac_word=$2
  2257. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2258. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2259. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2260. echo $ECHO_N "(cached) $ECHO_C" >&6
  2261. else
  2262. case $CPPUNIT_CONFIG in
  2263. [\\/]* | ?:[\\/]*)
  2264. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2265. ;;
  2266. *)
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. for ac_exec_ext in '' $ac_executable_extensions; do
  2273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2274. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2275. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2276. break 2
  2277. fi
  2278. done
  2279. done
  2280. IFS=$as_save_IFS
  2281. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2282. ;;
  2283. esac
  2284. fi
  2285. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2286. if test -n "$CPPUNIT_CONFIG"; then
  2287. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2288. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2289. else
  2290. { echo "$as_me:$LINENO: result: no" >&5
  2291. echo "${ECHO_T}no" >&6; }
  2292. fi
  2293. cppunit_version_min=1.10.2
  2294. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2295. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2296. no_cppunit=""
  2297. if test "$CPPUNIT_CONFIG" = "no" ; then
  2298. { echo "$as_me:$LINENO: result: no" >&5
  2299. echo "${ECHO_T}no" >&6; }
  2300. no_cppunit=yes
  2301. else
  2302. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2303. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2304. cppunit_version=`$CPPUNIT_CONFIG --version`
  2305. cppunit_major_version=`echo $cppunit_version | \
  2306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2307. cppunit_minor_version=`echo $cppunit_version | \
  2308. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2309. cppunit_micro_version=`echo $cppunit_version | \
  2310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2311. cppunit_major_min=`echo $cppunit_version_min | \
  2312. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2313. if test "x${cppunit_major_min}" = "x" ; then
  2314. cppunit_major_min=0
  2315. fi
  2316. cppunit_minor_min=`echo $cppunit_version_min | \
  2317. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2318. if test "x${cppunit_minor_min}" = "x" ; then
  2319. cppunit_minor_min=0
  2320. fi
  2321. cppunit_micro_min=`echo $cppunit_version_min | \
  2322. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2323. if test "x${cppunit_micro_min}" = "x" ; then
  2324. cppunit_micro_min=0
  2325. fi
  2326. cppunit_version_proper=`expr \
  2327. $cppunit_major_version \> $cppunit_major_min \| \
  2328. $cppunit_major_version \= $cppunit_major_min \& \
  2329. $cppunit_minor_version \> $cppunit_minor_min \| \
  2330. $cppunit_major_version \= $cppunit_major_min \& \
  2331. $cppunit_minor_version \= $cppunit_minor_min \& \
  2332. $cppunit_micro_version \>= $cppunit_micro_min `
  2333. if test "$cppunit_version_proper" = "1" ; then
  2334. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2335. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2336. else
  2337. { echo "$as_me:$LINENO: result: no" >&5
  2338. echo "${ECHO_T}no" >&6; }
  2339. no_cppunit=yes
  2340. fi
  2341. fi
  2342. if test "x$no_cppunit" = x ; then
  2343. :
  2344. else
  2345. CPPUNIT_CFLAGS=""
  2346. CPPUNIT_LIBS=""
  2347. :
  2348. fi
  2349. ac_config_headers="$ac_config_headers config.h"
  2350. case "$target" in
  2351. *mingw*|*cygwin*)
  2352. WINSOCK_LIBS="-lws2_32 -lpthread"
  2353. ;;
  2354. esac
  2355. cat >>confdefs.h <<_ACEOF
  2356. #define TARGET "$target"
  2357. _ACEOF
  2358. # Set localedir
  2359. localedir=${datadir}/locale
  2360. # Checks for arguments.
  2361. # Check whether --with-gnutls was given.
  2362. if test "${with_gnutls+set}" = set; then
  2363. withval=$with_gnutls; with_gnutls=$withval
  2364. else
  2365. with_gnutls=yes
  2366. fi
  2367. # Check whether --with-openssl was given.
  2368. if test "${with_openssl+set}" = set; then
  2369. withval=$with_openssl; with_openssl=$withval
  2370. else
  2371. with_openssl=yes
  2372. fi
  2373. # Check whether --with-sqlite3 was given.
  2374. if test "${with_sqlite3+set}" = set; then
  2375. withval=$with_sqlite3; with_sqlite3=$withval
  2376. else
  2377. with_sqlite3=yes
  2378. fi
  2379. # Check whether --with-libxml2 was given.
  2380. if test "${with_libxml2+set}" = set; then
  2381. withval=$with_libxml2; with_libxml2=$withval
  2382. else
  2383. with_libxml2=yes
  2384. fi
  2385. # Check whether --with-libexpat was given.
  2386. if test "${with_libexpat+set}" = set; then
  2387. withval=$with_libexpat; with_libexpat=$withval
  2388. else
  2389. with_libexpat=yes
  2390. fi
  2391. # Check whether --with-libares was given.
  2392. if test "${with_libares+set}" = set; then
  2393. withval=$with_libares; with_libares=$withval
  2394. else
  2395. with_libares=yes
  2396. fi
  2397. # Check whether --with-libcares was given.
  2398. if test "${with_libcares+set}" = set; then
  2399. withval=$with_libcares; with_libcares=$withval
  2400. else
  2401. with_libcares=yes
  2402. fi
  2403. # Check whether --with-libz was given.
  2404. if test "${with_libz+set}" = set; then
  2405. withval=$with_libz; with_libz=$withval
  2406. else
  2407. with_libz=yes
  2408. fi
  2409. # Check whether --enable-bittorrent was given.
  2410. if test "${enable_bittorrent+set}" = set; then
  2411. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2412. else
  2413. enable_bittorrent=yes
  2414. fi
  2415. # Check whether --enable-metalink was given.
  2416. if test "${enable_metalink+set}" = set; then
  2417. enableval=$enable_metalink; enable_metalink=$enableval
  2418. else
  2419. enable_metalink=yes
  2420. fi
  2421. # Check whether --enable-epoll was given.
  2422. if test "${enable_epoll+set}" = set; then
  2423. enableval=$enable_epoll; enable_epoll=$enableval
  2424. else
  2425. enable_epoll=yes
  2426. fi
  2427. # Checks for programs.
  2428. ac_ext=cpp
  2429. ac_cpp='$CXXCPP $CPPFLAGS'
  2430. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2431. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2432. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2433. if test -z "$CXX"; then
  2434. if test -n "$CCC"; then
  2435. CXX=$CCC
  2436. else
  2437. if test -n "$ac_tool_prefix"; then
  2438. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2439. do
  2440. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2441. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2442. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2443. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2444. if test "${ac_cv_prog_CXX+set}" = set; then
  2445. echo $ECHO_N "(cached) $ECHO_C" >&6
  2446. else
  2447. if test -n "$CXX"; then
  2448. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2449. else
  2450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2451. for as_dir in $PATH
  2452. do
  2453. IFS=$as_save_IFS
  2454. test -z "$as_dir" && as_dir=.
  2455. for ac_exec_ext in '' $ac_executable_extensions; do
  2456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2457. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2458. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2459. break 2
  2460. fi
  2461. done
  2462. done
  2463. IFS=$as_save_IFS
  2464. fi
  2465. fi
  2466. CXX=$ac_cv_prog_CXX
  2467. if test -n "$CXX"; then
  2468. { echo "$as_me:$LINENO: result: $CXX" >&5
  2469. echo "${ECHO_T}$CXX" >&6; }
  2470. else
  2471. { echo "$as_me:$LINENO: result: no" >&5
  2472. echo "${ECHO_T}no" >&6; }
  2473. fi
  2474. test -n "$CXX" && break
  2475. done
  2476. fi
  2477. if test -z "$CXX"; then
  2478. ac_ct_CXX=$CXX
  2479. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2480. do
  2481. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2482. set dummy $ac_prog; ac_word=$2
  2483. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2484. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2485. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2486. echo $ECHO_N "(cached) $ECHO_C" >&6
  2487. else
  2488. if test -n "$ac_ct_CXX"; then
  2489. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2490. else
  2491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2492. for as_dir in $PATH
  2493. do
  2494. IFS=$as_save_IFS
  2495. test -z "$as_dir" && as_dir=.
  2496. for ac_exec_ext in '' $ac_executable_extensions; do
  2497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2498. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2499. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2500. break 2
  2501. fi
  2502. done
  2503. done
  2504. IFS=$as_save_IFS
  2505. fi
  2506. fi
  2507. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2508. if test -n "$ac_ct_CXX"; then
  2509. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2510. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2511. else
  2512. { echo "$as_me:$LINENO: result: no" >&5
  2513. echo "${ECHO_T}no" >&6; }
  2514. fi
  2515. test -n "$ac_ct_CXX" && break
  2516. done
  2517. if test "x$ac_ct_CXX" = x; then
  2518. CXX="g++"
  2519. else
  2520. case $cross_compiling:$ac_tool_warned in
  2521. yes:)
  2522. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2523. whose name does not start with the host triplet. If you think this
  2524. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2525. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2526. whose name does not start with the host triplet. If you think this
  2527. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2528. ac_tool_warned=yes ;;
  2529. esac
  2530. CXX=$ac_ct_CXX
  2531. fi
  2532. fi
  2533. fi
  2534. fi
  2535. # Provide some information about the compiler.
  2536. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2537. ac_compiler=`set X $ac_compile; echo $2`
  2538. { (ac_try="$ac_compiler --version >&5"
  2539. case "(($ac_try" in
  2540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2541. *) ac_try_echo=$ac_try;;
  2542. esac
  2543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2544. (eval "$ac_compiler --version >&5") 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }
  2548. { (ac_try="$ac_compiler -v >&5"
  2549. case "(($ac_try" in
  2550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2551. *) ac_try_echo=$ac_try;;
  2552. esac
  2553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2554. (eval "$ac_compiler -v >&5") 2>&5
  2555. ac_status=$?
  2556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2557. (exit $ac_status); }
  2558. { (ac_try="$ac_compiler -V >&5"
  2559. case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2564. (eval "$ac_compiler -V >&5") 2>&5
  2565. ac_status=$?
  2566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2567. (exit $ac_status); }
  2568. cat >conftest.$ac_ext <<_ACEOF
  2569. /* confdefs.h. */
  2570. _ACEOF
  2571. cat confdefs.h >>conftest.$ac_ext
  2572. cat >>conftest.$ac_ext <<_ACEOF
  2573. /* end confdefs.h. */
  2574. int
  2575. main ()
  2576. {
  2577. ;
  2578. return 0;
  2579. }
  2580. _ACEOF
  2581. ac_clean_files_save=$ac_clean_files
  2582. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2583. # Try to create an executable without -o first, disregard a.out.
  2584. # It will help us diagnose broken compilers, and finding out an intuition
  2585. # of exeext.
  2586. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2587. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2588. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2589. #
  2590. # List of possible output files, starting from the most likely.
  2591. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2592. # only as a last resort. b.out is created by i960 compilers.
  2593. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2594. #
  2595. # The IRIX 6 linker writes into existing files which may not be
  2596. # executable, retaining their permissions. Remove them first so a
  2597. # subsequent execution test works.
  2598. ac_rmfiles=
  2599. for ac_file in $ac_files
  2600. do
  2601. case $ac_file in
  2602. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2603. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2604. esac
  2605. done
  2606. rm -f $ac_rmfiles
  2607. if { (ac_try="$ac_link_default"
  2608. case "(($ac_try" in
  2609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2610. *) ac_try_echo=$ac_try;;
  2611. esac
  2612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2613. (eval "$ac_link_default") 2>&5
  2614. ac_status=$?
  2615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2616. (exit $ac_status); }; then
  2617. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2618. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2619. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2620. # so that the user can short-circuit this test for compilers unknown to
  2621. # Autoconf.
  2622. for ac_file in $ac_files ''
  2623. do
  2624. test -f "$ac_file" || continue
  2625. case $ac_file in
  2626. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2627. ;;
  2628. [ab].out )
  2629. # We found the default executable, but exeext='' is most
  2630. # certainly right.
  2631. break;;
  2632. *.* )
  2633. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2634. then :; else
  2635. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2636. fi
  2637. # We set ac_cv_exeext here because the later test for it is not
  2638. # safe: cross compilers may not add the suffix if given an `-o'
  2639. # argument, so we may need to know it at that point already.
  2640. # Even if this section looks crufty: it has the advantage of
  2641. # actually working.
  2642. break;;
  2643. * )
  2644. break;;
  2645. esac
  2646. done
  2647. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2648. else
  2649. ac_file=''
  2650. fi
  2651. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2652. echo "${ECHO_T}$ac_file" >&6; }
  2653. if test -z "$ac_file"; then
  2654. echo "$as_me: failed program was:" >&5
  2655. sed 's/^/| /' conftest.$ac_ext >&5
  2656. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2657. See \`config.log' for more details." >&5
  2658. echo "$as_me: error: C++ compiler cannot create executables
  2659. See \`config.log' for more details." >&2;}
  2660. { (exit 77); exit 77; }; }
  2661. fi
  2662. ac_exeext=$ac_cv_exeext
  2663. # Check that the compiler produces executables we can run. If not, either
  2664. # the compiler is broken, or we cross compile.
  2665. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2666. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2667. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2668. # If not cross compiling, check that we can run a simple program.
  2669. if test "$cross_compiling" != yes; then
  2670. if { ac_try='./$ac_file'
  2671. { (case "(($ac_try" in
  2672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2673. *) ac_try_echo=$ac_try;;
  2674. esac
  2675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2676. (eval "$ac_try") 2>&5
  2677. ac_status=$?
  2678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2679. (exit $ac_status); }; }; then
  2680. cross_compiling=no
  2681. else
  2682. if test "$cross_compiling" = maybe; then
  2683. cross_compiling=yes
  2684. else
  2685. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2686. If you meant to cross compile, use \`--host'.
  2687. See \`config.log' for more details." >&5
  2688. echo "$as_me: error: cannot run C++ compiled programs.
  2689. If you meant to cross compile, use \`--host'.
  2690. See \`config.log' for more details." >&2;}
  2691. { (exit 1); exit 1; }; }
  2692. fi
  2693. fi
  2694. fi
  2695. { echo "$as_me:$LINENO: result: yes" >&5
  2696. echo "${ECHO_T}yes" >&6; }
  2697. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2698. ac_clean_files=$ac_clean_files_save
  2699. # Check that the compiler produces executables we can run. If not, either
  2700. # the compiler is broken, or we cross compile.
  2701. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2702. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2703. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2704. echo "${ECHO_T}$cross_compiling" >&6; }
  2705. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2706. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2707. if { (ac_try="$ac_link"
  2708. case "(($ac_try" in
  2709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2710. *) ac_try_echo=$ac_try;;
  2711. esac
  2712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2713. (eval "$ac_link") 2>&5
  2714. ac_status=$?
  2715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2716. (exit $ac_status); }; then
  2717. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2718. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2719. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2720. # `rm'.
  2721. for ac_file in conftest.exe conftest conftest.*; do
  2722. test -f "$ac_file" || continue
  2723. case $ac_file in
  2724. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2725. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2726. break;;
  2727. * ) break;;
  2728. esac
  2729. done
  2730. else
  2731. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2732. See \`config.log' for more details." >&5
  2733. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2734. See \`config.log' for more details." >&2;}
  2735. { (exit 1); exit 1; }; }
  2736. fi
  2737. rm -f conftest$ac_cv_exeext
  2738. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2739. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2740. rm -f conftest.$ac_ext
  2741. EXEEXT=$ac_cv_exeext
  2742. ac_exeext=$EXEEXT
  2743. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2744. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2745. if test "${ac_cv_objext+set}" = set; then
  2746. echo $ECHO_N "(cached) $ECHO_C" >&6
  2747. else
  2748. cat >conftest.$ac_ext <<_ACEOF
  2749. /* confdefs.h. */
  2750. _ACEOF
  2751. cat confdefs.h >>conftest.$ac_ext
  2752. cat >>conftest.$ac_ext <<_ACEOF
  2753. /* end confdefs.h. */
  2754. int
  2755. main ()
  2756. {
  2757. ;
  2758. return 0;
  2759. }
  2760. _ACEOF
  2761. rm -f conftest.o conftest.obj
  2762. if { (ac_try="$ac_compile"
  2763. case "(($ac_try" in
  2764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2765. *) ac_try_echo=$ac_try;;
  2766. esac
  2767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2768. (eval "$ac_compile") 2>&5
  2769. ac_status=$?
  2770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2771. (exit $ac_status); }; then
  2772. for ac_file in conftest.o conftest.obj conftest.*; do
  2773. test -f "$ac_file" || continue;
  2774. case $ac_file in
  2775. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2776. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2777. break;;
  2778. esac
  2779. done
  2780. else
  2781. echo "$as_me: failed program was:" >&5
  2782. sed 's/^/| /' conftest.$ac_ext >&5
  2783. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2784. See \`config.log' for more details." >&5
  2785. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2786. See \`config.log' for more details." >&2;}
  2787. { (exit 1); exit 1; }; }
  2788. fi
  2789. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2790. fi
  2791. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2792. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2793. OBJEXT=$ac_cv_objext
  2794. ac_objext=$OBJEXT
  2795. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2796. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2797. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2798. echo $ECHO_N "(cached) $ECHO_C" >&6
  2799. else
  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. #ifndef __GNUC__
  2810. choke me
  2811. #endif
  2812. ;
  2813. return 0;
  2814. }
  2815. _ACEOF
  2816. rm -f conftest.$ac_objext
  2817. if { (ac_try="$ac_compile"
  2818. case "(($ac_try" in
  2819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2820. *) ac_try_echo=$ac_try;;
  2821. esac
  2822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2823. (eval "$ac_compile") 2>conftest.er1
  2824. ac_status=$?
  2825. grep -v '^ *+' conftest.er1 >conftest.err
  2826. rm -f conftest.er1
  2827. cat conftest.err >&5
  2828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2829. (exit $ac_status); } && {
  2830. test -z "$ac_cxx_werror_flag" ||
  2831. test ! -s conftest.err
  2832. } && test -s conftest.$ac_objext; then
  2833. ac_compiler_gnu=yes
  2834. else
  2835. echo "$as_me: failed program was:" >&5
  2836. sed 's/^/| /' conftest.$ac_ext >&5
  2837. ac_compiler_gnu=no
  2838. fi
  2839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2840. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2841. fi
  2842. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2843. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2844. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2845. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2846. ac_save_CXXFLAGS=$CXXFLAGS
  2847. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2848. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2849. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2850. echo $ECHO_N "(cached) $ECHO_C" >&6
  2851. else
  2852. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2853. ac_cxx_werror_flag=yes
  2854. ac_cv_prog_cxx_g=no
  2855. CXXFLAGS="-g"
  2856. cat >conftest.$ac_ext <<_ACEOF
  2857. /* confdefs.h. */
  2858. _ACEOF
  2859. cat confdefs.h >>conftest.$ac_ext
  2860. cat >>conftest.$ac_ext <<_ACEOF
  2861. /* end confdefs.h. */
  2862. int
  2863. main ()
  2864. {
  2865. ;
  2866. return 0;
  2867. }
  2868. _ACEOF
  2869. rm -f conftest.$ac_objext
  2870. if { (ac_try="$ac_compile"
  2871. case "(($ac_try" in
  2872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2873. *) ac_try_echo=$ac_try;;
  2874. esac
  2875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2876. (eval "$ac_compile") 2>conftest.er1
  2877. ac_status=$?
  2878. grep -v '^ *+' conftest.er1 >conftest.err
  2879. rm -f conftest.er1
  2880. cat conftest.err >&5
  2881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2882. (exit $ac_status); } && {
  2883. test -z "$ac_cxx_werror_flag" ||
  2884. test ! -s conftest.err
  2885. } && test -s conftest.$ac_objext; then
  2886. ac_cv_prog_cxx_g=yes
  2887. else
  2888. echo "$as_me: failed program was:" >&5
  2889. sed 's/^/| /' conftest.$ac_ext >&5
  2890. CXXFLAGS=""
  2891. cat >conftest.$ac_ext <<_ACEOF
  2892. /* confdefs.h. */
  2893. _ACEOF
  2894. cat confdefs.h >>conftest.$ac_ext
  2895. cat >>conftest.$ac_ext <<_ACEOF
  2896. /* end confdefs.h. */
  2897. int
  2898. main ()
  2899. {
  2900. ;
  2901. return 0;
  2902. }
  2903. _ACEOF
  2904. rm -f conftest.$ac_objext
  2905. if { (ac_try="$ac_compile"
  2906. case "(($ac_try" in
  2907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2908. *) ac_try_echo=$ac_try;;
  2909. esac
  2910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2911. (eval "$ac_compile") 2>conftest.er1
  2912. ac_status=$?
  2913. grep -v '^ *+' conftest.er1 >conftest.err
  2914. rm -f conftest.er1
  2915. cat conftest.err >&5
  2916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2917. (exit $ac_status); } && {
  2918. test -z "$ac_cxx_werror_flag" ||
  2919. test ! -s conftest.err
  2920. } && test -s conftest.$ac_objext; then
  2921. :
  2922. else
  2923. echo "$as_me: failed program was:" >&5
  2924. sed 's/^/| /' conftest.$ac_ext >&5
  2925. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2926. CXXFLAGS="-g"
  2927. cat >conftest.$ac_ext <<_ACEOF
  2928. /* confdefs.h. */
  2929. _ACEOF
  2930. cat confdefs.h >>conftest.$ac_ext
  2931. cat >>conftest.$ac_ext <<_ACEOF
  2932. /* end confdefs.h. */
  2933. int
  2934. main ()
  2935. {
  2936. ;
  2937. return 0;
  2938. }
  2939. _ACEOF
  2940. rm -f conftest.$ac_objext
  2941. if { (ac_try="$ac_compile"
  2942. case "(($ac_try" in
  2943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2944. *) ac_try_echo=$ac_try;;
  2945. esac
  2946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2947. (eval "$ac_compile") 2>conftest.er1
  2948. ac_status=$?
  2949. grep -v '^ *+' conftest.er1 >conftest.err
  2950. rm -f conftest.er1
  2951. cat conftest.err >&5
  2952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); } && {
  2954. test -z "$ac_cxx_werror_flag" ||
  2955. test ! -s conftest.err
  2956. } && test -s conftest.$ac_objext; then
  2957. ac_cv_prog_cxx_g=yes
  2958. else
  2959. echo "$as_me: failed program was:" >&5
  2960. sed 's/^/| /' conftest.$ac_ext >&5
  2961. fi
  2962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2963. fi
  2964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2965. fi
  2966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2967. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2968. fi
  2969. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2970. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2971. if test "$ac_test_CXXFLAGS" = set; then
  2972. CXXFLAGS=$ac_save_CXXFLAGS
  2973. elif test $ac_cv_prog_cxx_g = yes; then
  2974. if test "$GXX" = yes; then
  2975. CXXFLAGS="-g -O2"
  2976. else
  2977. CXXFLAGS="-g"
  2978. fi
  2979. else
  2980. if test "$GXX" = yes; then
  2981. CXXFLAGS="-O2"
  2982. else
  2983. CXXFLAGS=
  2984. fi
  2985. fi
  2986. ac_ext=c
  2987. ac_cpp='$CPP $CPPFLAGS'
  2988. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2989. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2990. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2991. DEPDIR="${am__leading_dot}deps"
  2992. ac_config_commands="$ac_config_commands depfiles"
  2993. am_make=${MAKE-make}
  2994. cat > confinc << 'END'
  2995. am__doit:
  2996. @echo done
  2997. .PHONY: am__doit
  2998. END
  2999. # If we don't find an include directive, just comment out the code.
  3000. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3001. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3002. am__include="#"
  3003. am__quote=
  3004. _am_result=none
  3005. # First try GNU make style include.
  3006. echo "include confinc" > confmf
  3007. # We grep out `Entering directory' and `Leaving directory'
  3008. # messages which can occur if `w' ends up in MAKEFLAGS.
  3009. # In particular we don't look at `^make:' because GNU make might
  3010. # be invoked under some other name (usually "gmake"), in which
  3011. # case it prints its new name instead of `make'.
  3012. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3013. am__include=include
  3014. am__quote=
  3015. _am_result=GNU
  3016. fi
  3017. # Now try BSD make style include.
  3018. if test "$am__include" = "#"; then
  3019. echo '.include "confinc"' > confmf
  3020. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3021. am__include=.include
  3022. am__quote="\""
  3023. _am_result=BSD
  3024. fi
  3025. fi
  3026. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3027. echo "${ECHO_T}$_am_result" >&6; }
  3028. rm -f confinc confmf
  3029. # Check whether --enable-dependency-tracking was given.
  3030. if test "${enable_dependency_tracking+set}" = set; then
  3031. enableval=$enable_dependency_tracking;
  3032. fi
  3033. if test "x$enable_dependency_tracking" != xno; then
  3034. am_depcomp="$ac_aux_dir/depcomp"
  3035. AMDEPBACKSLASH='\'
  3036. fi
  3037. if test "x$enable_dependency_tracking" != xno; then
  3038. AMDEP_TRUE=
  3039. AMDEP_FALSE='#'
  3040. else
  3041. AMDEP_TRUE='#'
  3042. AMDEP_FALSE=
  3043. fi
  3044. depcc="$CXX" am_compiler_list=
  3045. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3046. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3047. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3048. echo $ECHO_N "(cached) $ECHO_C" >&6
  3049. else
  3050. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3051. # We make a subdir and do the tests there. Otherwise we can end up
  3052. # making bogus files that we don't know about and never remove. For
  3053. # instance it was reported that on HP-UX the gcc test will end up
  3054. # making a dummy file named `D' -- because `-MD' means `put the output
  3055. # in D'.
  3056. mkdir conftest.dir
  3057. # Copy depcomp to subdir because otherwise we won't find it if we're
  3058. # using a relative directory.
  3059. cp "$am_depcomp" conftest.dir
  3060. cd conftest.dir
  3061. # We will build objects and dependencies in a subdirectory because
  3062. # it helps to detect inapplicable dependency modes. For instance
  3063. # both Tru64's cc and ICC support -MD to output dependencies as a
  3064. # side effect of compilation, but ICC will put the dependencies in
  3065. # the current directory while Tru64 will put them in the object
  3066. # directory.
  3067. mkdir sub
  3068. am_cv_CXX_dependencies_compiler_type=none
  3069. if test "$am_compiler_list" = ""; then
  3070. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3071. fi
  3072. for depmode in $am_compiler_list; do
  3073. # Setup a source with many dependencies, because some compilers
  3074. # like to wrap large dependency lists on column 80 (with \), and
  3075. # we should not choose a depcomp mode which is confused by this.
  3076. #
  3077. # We need to recreate these files for each test, as the compiler may
  3078. # overwrite some of them when testing with obscure command lines.
  3079. # This happens at least with the AIX C compiler.
  3080. : > sub/conftest.c
  3081. for i in 1 2 3 4 5 6; do
  3082. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3083. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3084. # Solaris 8's {/usr,}/bin/sh.
  3085. touch sub/conftst$i.h
  3086. done
  3087. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3088. case $depmode in
  3089. nosideeffect)
  3090. # after this tag, mechanisms are not by side-effect, so they'll
  3091. # only be used when explicitly requested
  3092. if test "x$enable_dependency_tracking" = xyes; then
  3093. continue
  3094. else
  3095. break
  3096. fi
  3097. ;;
  3098. none) break ;;
  3099. esac
  3100. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3101. # mode. It turns out that the SunPro C++ compiler does not properly
  3102. # handle `-M -o', and we need to detect this.
  3103. if depmode=$depmode \
  3104. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3105. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3106. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3107. >/dev/null 2>conftest.err &&
  3108. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3109. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3110. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3111. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3112. # icc doesn't choke on unknown options, it will just issue warnings
  3113. # or remarks (even with -Werror). So we grep stderr for any message
  3114. # that says an option was ignored or not supported.
  3115. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3116. # icc: Command line warning: ignoring option '-M'; no argument required
  3117. # The diagnosis changed in icc 8.0:
  3118. # icc: Command line remark: option '-MP' not supported
  3119. if (grep 'ignoring option' conftest.err ||
  3120. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3121. am_cv_CXX_dependencies_compiler_type=$depmode
  3122. break
  3123. fi
  3124. fi
  3125. done
  3126. cd ..
  3127. rm -rf conftest.dir
  3128. else
  3129. am_cv_CXX_dependencies_compiler_type=none
  3130. fi
  3131. fi
  3132. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3133. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3134. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3135. if
  3136. test "x$enable_dependency_tracking" != xno \
  3137. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3138. am__fastdepCXX_TRUE=
  3139. am__fastdepCXX_FALSE='#'
  3140. else
  3141. am__fastdepCXX_TRUE='#'
  3142. am__fastdepCXX_FALSE=
  3143. fi
  3144. ac_ext=c
  3145. ac_cpp='$CPP $CPPFLAGS'
  3146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3149. if test -n "$ac_tool_prefix"; then
  3150. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3151. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3152. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3153. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3154. if test "${ac_cv_prog_CC+set}" = set; then
  3155. echo $ECHO_N "(cached) $ECHO_C" >&6
  3156. else
  3157. if test -n "$CC"; then
  3158. ac_cv_prog_CC="$CC" # Let the user override the test.
  3159. else
  3160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3161. for as_dir in $PATH
  3162. do
  3163. IFS=$as_save_IFS
  3164. test -z "$as_dir" && as_dir=.
  3165. for ac_exec_ext in '' $ac_executable_extensions; do
  3166. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3167. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3168. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3169. break 2
  3170. fi
  3171. done
  3172. done
  3173. IFS=$as_save_IFS
  3174. fi
  3175. fi
  3176. CC=$ac_cv_prog_CC
  3177. if test -n "$CC"; then
  3178. { echo "$as_me:$LINENO: result: $CC" >&5
  3179. echo "${ECHO_T}$CC" >&6; }
  3180. else
  3181. { echo "$as_me:$LINENO: result: no" >&5
  3182. echo "${ECHO_T}no" >&6; }
  3183. fi
  3184. fi
  3185. if test -z "$ac_cv_prog_CC"; then
  3186. ac_ct_CC=$CC
  3187. # Extract the first word of "gcc", so it can be a program name with args.
  3188. set dummy gcc; ac_word=$2
  3189. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3190. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3191. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3192. echo $ECHO_N "(cached) $ECHO_C" >&6
  3193. else
  3194. if test -n "$ac_ct_CC"; then
  3195. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3196. else
  3197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3198. for as_dir in $PATH
  3199. do
  3200. IFS=$as_save_IFS
  3201. test -z "$as_dir" && as_dir=.
  3202. for ac_exec_ext in '' $ac_executable_extensions; do
  3203. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3204. ac_cv_prog_ac_ct_CC="gcc"
  3205. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3206. break 2
  3207. fi
  3208. done
  3209. done
  3210. IFS=$as_save_IFS
  3211. fi
  3212. fi
  3213. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3214. if test -n "$ac_ct_CC"; then
  3215. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3216. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3217. else
  3218. { echo "$as_me:$LINENO: result: no" >&5
  3219. echo "${ECHO_T}no" >&6; }
  3220. fi
  3221. if test "x$ac_ct_CC" = x; then
  3222. CC=""
  3223. else
  3224. case $cross_compiling:$ac_tool_warned in
  3225. yes:)
  3226. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3227. whose name does not start with the host triplet. If you think this
  3228. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3229. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3230. whose name does not start with the host triplet. If you think this
  3231. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3232. ac_tool_warned=yes ;;
  3233. esac
  3234. CC=$ac_ct_CC
  3235. fi
  3236. else
  3237. CC="$ac_cv_prog_CC"
  3238. fi
  3239. if test -z "$CC"; then
  3240. if test -n "$ac_tool_prefix"; then
  3241. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3242. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3243. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3244. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3245. if test "${ac_cv_prog_CC+set}" = set; then
  3246. echo $ECHO_N "(cached) $ECHO_C" >&6
  3247. else
  3248. if test -n "$CC"; then
  3249. ac_cv_prog_CC="$CC" # Let the user override the test.
  3250. else
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3258. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3259. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3260. break 2
  3261. fi
  3262. done
  3263. done
  3264. IFS=$as_save_IFS
  3265. fi
  3266. fi
  3267. CC=$ac_cv_prog_CC
  3268. if test -n "$CC"; then
  3269. { echo "$as_me:$LINENO: result: $CC" >&5
  3270. echo "${ECHO_T}$CC" >&6; }
  3271. else
  3272. { echo "$as_me:$LINENO: result: no" >&5
  3273. echo "${ECHO_T}no" >&6; }
  3274. fi
  3275. fi
  3276. fi
  3277. if test -z "$CC"; then
  3278. # Extract the first word of "cc", so it can be a program name with args.
  3279. set dummy cc; ac_word=$2
  3280. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3282. if test "${ac_cv_prog_CC+set}" = set; then
  3283. echo $ECHO_N "(cached) $ECHO_C" >&6
  3284. else
  3285. if test -n "$CC"; then
  3286. ac_cv_prog_CC="$CC" # Let the user override the test.
  3287. else
  3288. ac_prog_rejected=no
  3289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3290. for as_dir in $PATH
  3291. do
  3292. IFS=$as_save_IFS
  3293. test -z "$as_dir" && as_dir=.
  3294. for ac_exec_ext in '' $ac_executable_extensions; do
  3295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3296. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3297. ac_prog_rejected=yes
  3298. continue
  3299. fi
  3300. ac_cv_prog_CC="cc"
  3301. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3302. break 2
  3303. fi
  3304. done
  3305. done
  3306. IFS=$as_save_IFS
  3307. if test $ac_prog_rejected = yes; then
  3308. # We found a bogon in the path, so make sure we never use it.
  3309. set dummy $ac_cv_prog_CC
  3310. shift
  3311. if test $# != 0; then
  3312. # We chose a different compiler from the bogus one.
  3313. # However, it has the same basename, so the bogon will be chosen
  3314. # first if we set CC to just the basename; use the full file name.
  3315. shift
  3316. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3317. fi
  3318. fi
  3319. fi
  3320. fi
  3321. CC=$ac_cv_prog_CC
  3322. if test -n "$CC"; then
  3323. { echo "$as_me:$LINENO: result: $CC" >&5
  3324. echo "${ECHO_T}$CC" >&6; }
  3325. else
  3326. { echo "$as_me:$LINENO: result: no" >&5
  3327. echo "${ECHO_T}no" >&6; }
  3328. fi
  3329. fi
  3330. if test -z "$CC"; then
  3331. if test -n "$ac_tool_prefix"; then
  3332. for ac_prog in cl.exe
  3333. do
  3334. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3335. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3336. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3337. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3338. if test "${ac_cv_prog_CC+set}" = set; then
  3339. echo $ECHO_N "(cached) $ECHO_C" >&6
  3340. else
  3341. if test -n "$CC"; then
  3342. ac_cv_prog_CC="$CC" # Let the user override the test.
  3343. else
  3344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3345. for as_dir in $PATH
  3346. do
  3347. IFS=$as_save_IFS
  3348. test -z "$as_dir" && as_dir=.
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3351. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3352. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3353. break 2
  3354. fi
  3355. done
  3356. done
  3357. IFS=$as_save_IFS
  3358. fi
  3359. fi
  3360. CC=$ac_cv_prog_CC
  3361. if test -n "$CC"; then
  3362. { echo "$as_me:$LINENO: result: $CC" >&5
  3363. echo "${ECHO_T}$CC" >&6; }
  3364. else
  3365. { echo "$as_me:$LINENO: result: no" >&5
  3366. echo "${ECHO_T}no" >&6; }
  3367. fi
  3368. test -n "$CC" && break
  3369. done
  3370. fi
  3371. if test -z "$CC"; then
  3372. ac_ct_CC=$CC
  3373. for ac_prog in cl.exe
  3374. do
  3375. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3376. set dummy $ac_prog; ac_word=$2
  3377. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3378. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3379. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3380. echo $ECHO_N "(cached) $ECHO_C" >&6
  3381. else
  3382. if test -n "$ac_ct_CC"; then
  3383. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3384. else
  3385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3386. for as_dir in $PATH
  3387. do
  3388. IFS=$as_save_IFS
  3389. test -z "$as_dir" && as_dir=.
  3390. for ac_exec_ext in '' $ac_executable_extensions; do
  3391. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3392. ac_cv_prog_ac_ct_CC="$ac_prog"
  3393. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3394. break 2
  3395. fi
  3396. done
  3397. done
  3398. IFS=$as_save_IFS
  3399. fi
  3400. fi
  3401. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3402. if test -n "$ac_ct_CC"; then
  3403. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3404. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3405. else
  3406. { echo "$as_me:$LINENO: result: no" >&5
  3407. echo "${ECHO_T}no" >&6; }
  3408. fi
  3409. test -n "$ac_ct_CC" && break
  3410. done
  3411. if test "x$ac_ct_CC" = x; then
  3412. CC=""
  3413. else
  3414. case $cross_compiling:$ac_tool_warned in
  3415. yes:)
  3416. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3417. whose name does not start with the host triplet. If you think this
  3418. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3419. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3420. whose name does not start with the host triplet. If you think this
  3421. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3422. ac_tool_warned=yes ;;
  3423. esac
  3424. CC=$ac_ct_CC
  3425. fi
  3426. fi
  3427. fi
  3428. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3429. See \`config.log' for more details." >&5
  3430. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3431. See \`config.log' for more details." >&2;}
  3432. { (exit 1); exit 1; }; }
  3433. # Provide some information about the compiler.
  3434. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3435. ac_compiler=`set X $ac_compile; echo $2`
  3436. { (ac_try="$ac_compiler --version >&5"
  3437. case "(($ac_try" in
  3438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3439. *) ac_try_echo=$ac_try;;
  3440. esac
  3441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3442. (eval "$ac_compiler --version >&5") 2>&5
  3443. ac_status=$?
  3444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3445. (exit $ac_status); }
  3446. { (ac_try="$ac_compiler -v >&5"
  3447. case "(($ac_try" in
  3448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3449. *) ac_try_echo=$ac_try;;
  3450. esac
  3451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3452. (eval "$ac_compiler -v >&5") 2>&5
  3453. ac_status=$?
  3454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3455. (exit $ac_status); }
  3456. { (ac_try="$ac_compiler -V >&5"
  3457. case "(($ac_try" in
  3458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3459. *) ac_try_echo=$ac_try;;
  3460. esac
  3461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3462. (eval "$ac_compiler -V >&5") 2>&5
  3463. ac_status=$?
  3464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3465. (exit $ac_status); }
  3466. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3467. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3468. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3469. echo $ECHO_N "(cached) $ECHO_C" >&6
  3470. else
  3471. cat >conftest.$ac_ext <<_ACEOF
  3472. /* confdefs.h. */
  3473. _ACEOF
  3474. cat confdefs.h >>conftest.$ac_ext
  3475. cat >>conftest.$ac_ext <<_ACEOF
  3476. /* end confdefs.h. */
  3477. int
  3478. main ()
  3479. {
  3480. #ifndef __GNUC__
  3481. choke me
  3482. #endif
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. rm -f conftest.$ac_objext
  3488. if { (ac_try="$ac_compile"
  3489. case "(($ac_try" in
  3490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3491. *) ac_try_echo=$ac_try;;
  3492. esac
  3493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3494. (eval "$ac_compile") 2>conftest.er1
  3495. ac_status=$?
  3496. grep -v '^ *+' conftest.er1 >conftest.err
  3497. rm -f conftest.er1
  3498. cat conftest.err >&5
  3499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3500. (exit $ac_status); } && {
  3501. test -z "$ac_c_werror_flag" ||
  3502. test ! -s conftest.err
  3503. } && test -s conftest.$ac_objext; then
  3504. ac_compiler_gnu=yes
  3505. else
  3506. echo "$as_me: failed program was:" >&5
  3507. sed 's/^/| /' conftest.$ac_ext >&5
  3508. ac_compiler_gnu=no
  3509. fi
  3510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3511. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3512. fi
  3513. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3514. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3515. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3516. ac_test_CFLAGS=${CFLAGS+set}
  3517. ac_save_CFLAGS=$CFLAGS
  3518. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3519. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3520. if test "${ac_cv_prog_cc_g+set}" = set; then
  3521. echo $ECHO_N "(cached) $ECHO_C" >&6
  3522. else
  3523. ac_save_c_werror_flag=$ac_c_werror_flag
  3524. ac_c_werror_flag=yes
  3525. ac_cv_prog_cc_g=no
  3526. CFLAGS="-g"
  3527. cat >conftest.$ac_ext <<_ACEOF
  3528. /* confdefs.h. */
  3529. _ACEOF
  3530. cat confdefs.h >>conftest.$ac_ext
  3531. cat >>conftest.$ac_ext <<_ACEOF
  3532. /* end confdefs.h. */
  3533. int
  3534. main ()
  3535. {
  3536. ;
  3537. return 0;
  3538. }
  3539. _ACEOF
  3540. rm -f conftest.$ac_objext
  3541. if { (ac_try="$ac_compile"
  3542. case "(($ac_try" in
  3543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3544. *) ac_try_echo=$ac_try;;
  3545. esac
  3546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3547. (eval "$ac_compile") 2>conftest.er1
  3548. ac_status=$?
  3549. grep -v '^ *+' conftest.er1 >conftest.err
  3550. rm -f conftest.er1
  3551. cat conftest.err >&5
  3552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3553. (exit $ac_status); } && {
  3554. test -z "$ac_c_werror_flag" ||
  3555. test ! -s conftest.err
  3556. } && test -s conftest.$ac_objext; then
  3557. ac_cv_prog_cc_g=yes
  3558. else
  3559. echo "$as_me: failed program was:" >&5
  3560. sed 's/^/| /' conftest.$ac_ext >&5
  3561. CFLAGS=""
  3562. cat >conftest.$ac_ext <<_ACEOF
  3563. /* confdefs.h. */
  3564. _ACEOF
  3565. cat confdefs.h >>conftest.$ac_ext
  3566. cat >>conftest.$ac_ext <<_ACEOF
  3567. /* end confdefs.h. */
  3568. int
  3569. main ()
  3570. {
  3571. ;
  3572. return 0;
  3573. }
  3574. _ACEOF
  3575. rm -f conftest.$ac_objext
  3576. if { (ac_try="$ac_compile"
  3577. case "(($ac_try" in
  3578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3579. *) ac_try_echo=$ac_try;;
  3580. esac
  3581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3582. (eval "$ac_compile") 2>conftest.er1
  3583. ac_status=$?
  3584. grep -v '^ *+' conftest.er1 >conftest.err
  3585. rm -f conftest.er1
  3586. cat conftest.err >&5
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); } && {
  3589. test -z "$ac_c_werror_flag" ||
  3590. test ! -s conftest.err
  3591. } && test -s conftest.$ac_objext; then
  3592. :
  3593. else
  3594. echo "$as_me: failed program was:" >&5
  3595. sed 's/^/| /' conftest.$ac_ext >&5
  3596. ac_c_werror_flag=$ac_save_c_werror_flag
  3597. CFLAGS="-g"
  3598. cat >conftest.$ac_ext <<_ACEOF
  3599. /* confdefs.h. */
  3600. _ACEOF
  3601. cat confdefs.h >>conftest.$ac_ext
  3602. cat >>conftest.$ac_ext <<_ACEOF
  3603. /* end confdefs.h. */
  3604. int
  3605. main ()
  3606. {
  3607. ;
  3608. return 0;
  3609. }
  3610. _ACEOF
  3611. rm -f conftest.$ac_objext
  3612. if { (ac_try="$ac_compile"
  3613. case "(($ac_try" in
  3614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3615. *) ac_try_echo=$ac_try;;
  3616. esac
  3617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3618. (eval "$ac_compile") 2>conftest.er1
  3619. ac_status=$?
  3620. grep -v '^ *+' conftest.er1 >conftest.err
  3621. rm -f conftest.er1
  3622. cat conftest.err >&5
  3623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3624. (exit $ac_status); } && {
  3625. test -z "$ac_c_werror_flag" ||
  3626. test ! -s conftest.err
  3627. } && test -s conftest.$ac_objext; then
  3628. ac_cv_prog_cc_g=yes
  3629. else
  3630. echo "$as_me: failed program was:" >&5
  3631. sed 's/^/| /' conftest.$ac_ext >&5
  3632. fi
  3633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3634. fi
  3635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3636. fi
  3637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3638. ac_c_werror_flag=$ac_save_c_werror_flag
  3639. fi
  3640. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3641. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3642. if test "$ac_test_CFLAGS" = set; then
  3643. CFLAGS=$ac_save_CFLAGS
  3644. elif test $ac_cv_prog_cc_g = yes; then
  3645. if test "$GCC" = yes; then
  3646. CFLAGS="-g -O2"
  3647. else
  3648. CFLAGS="-g"
  3649. fi
  3650. else
  3651. if test "$GCC" = yes; then
  3652. CFLAGS="-O2"
  3653. else
  3654. CFLAGS=
  3655. fi
  3656. fi
  3657. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3658. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3659. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3660. echo $ECHO_N "(cached) $ECHO_C" >&6
  3661. else
  3662. ac_cv_prog_cc_c89=no
  3663. ac_save_CC=$CC
  3664. cat >conftest.$ac_ext <<_ACEOF
  3665. /* confdefs.h. */
  3666. _ACEOF
  3667. cat confdefs.h >>conftest.$ac_ext
  3668. cat >>conftest.$ac_ext <<_ACEOF
  3669. /* end confdefs.h. */
  3670. #include <stdarg.h>
  3671. #include <stdio.h>
  3672. #include <sys/types.h>
  3673. #include <sys/stat.h>
  3674. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3675. struct buf { int x; };
  3676. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3677. static char *e (p, i)
  3678. char **p;
  3679. int i;
  3680. {
  3681. return p[i];
  3682. }
  3683. static char *f (char * (*g) (char **, int), char **p, ...)
  3684. {
  3685. char *s;
  3686. va_list v;
  3687. va_start (v,p);
  3688. s = g (p, va_arg (v,int));
  3689. va_end (v);
  3690. return s;
  3691. }
  3692. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3693. function prototypes and stuff, but not '\xHH' hex character constants.
  3694. These don't provoke an error unfortunately, instead are silently treated
  3695. as 'x'. The following induces an error, until -std is added to get
  3696. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3697. array size at least. It's necessary to write '\x00'==0 to get something
  3698. that's true only with -std. */
  3699. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3700. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3701. inside strings and character constants. */
  3702. #define FOO(x) 'x'
  3703. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3704. int test (int i, double x);
  3705. struct s1 {int (*f) (int a);};
  3706. struct s2 {int (*f) (double a);};
  3707. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3708. int argc;
  3709. char **argv;
  3710. int
  3711. main ()
  3712. {
  3713. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3714. ;
  3715. return 0;
  3716. }
  3717. _ACEOF
  3718. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3719. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3720. do
  3721. CC="$ac_save_CC $ac_arg"
  3722. rm -f conftest.$ac_objext
  3723. if { (ac_try="$ac_compile"
  3724. case "(($ac_try" in
  3725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3726. *) ac_try_echo=$ac_try;;
  3727. esac
  3728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3729. (eval "$ac_compile") 2>conftest.er1
  3730. ac_status=$?
  3731. grep -v '^ *+' conftest.er1 >conftest.err
  3732. rm -f conftest.er1
  3733. cat conftest.err >&5
  3734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3735. (exit $ac_status); } && {
  3736. test -z "$ac_c_werror_flag" ||
  3737. test ! -s conftest.err
  3738. } && test -s conftest.$ac_objext; then
  3739. ac_cv_prog_cc_c89=$ac_arg
  3740. else
  3741. echo "$as_me: failed program was:" >&5
  3742. sed 's/^/| /' conftest.$ac_ext >&5
  3743. fi
  3744. rm -f core conftest.err conftest.$ac_objext
  3745. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3746. done
  3747. rm -f conftest.$ac_ext
  3748. CC=$ac_save_CC
  3749. fi
  3750. # AC_CACHE_VAL
  3751. case "x$ac_cv_prog_cc_c89" in
  3752. x)
  3753. { echo "$as_me:$LINENO: result: none needed" >&5
  3754. echo "${ECHO_T}none needed" >&6; } ;;
  3755. xno)
  3756. { echo "$as_me:$LINENO: result: unsupported" >&5
  3757. echo "${ECHO_T}unsupported" >&6; } ;;
  3758. *)
  3759. CC="$CC $ac_cv_prog_cc_c89"
  3760. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3761. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3762. esac
  3763. ac_ext=c
  3764. ac_cpp='$CPP $CPPFLAGS'
  3765. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3766. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3767. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3768. depcc="$CC" am_compiler_list=
  3769. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3770. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3771. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3772. echo $ECHO_N "(cached) $ECHO_C" >&6
  3773. else
  3774. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3775. # We make a subdir and do the tests there. Otherwise we can end up
  3776. # making bogus files that we don't know about and never remove. For
  3777. # instance it was reported that on HP-UX the gcc test will end up
  3778. # making a dummy file named `D' -- because `-MD' means `put the output
  3779. # in D'.
  3780. mkdir conftest.dir
  3781. # Copy depcomp to subdir because otherwise we won't find it if we're
  3782. # using a relative directory.
  3783. cp "$am_depcomp" conftest.dir
  3784. cd conftest.dir
  3785. # We will build objects and dependencies in a subdirectory because
  3786. # it helps to detect inapplicable dependency modes. For instance
  3787. # both Tru64's cc and ICC support -MD to output dependencies as a
  3788. # side effect of compilation, but ICC will put the dependencies in
  3789. # the current directory while Tru64 will put them in the object
  3790. # directory.
  3791. mkdir sub
  3792. am_cv_CC_dependencies_compiler_type=none
  3793. if test "$am_compiler_list" = ""; then
  3794. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3795. fi
  3796. for depmode in $am_compiler_list; do
  3797. # Setup a source with many dependencies, because some compilers
  3798. # like to wrap large dependency lists on column 80 (with \), and
  3799. # we should not choose a depcomp mode which is confused by this.
  3800. #
  3801. # We need to recreate these files for each test, as the compiler may
  3802. # overwrite some of them when testing with obscure command lines.
  3803. # This happens at least with the AIX C compiler.
  3804. : > sub/conftest.c
  3805. for i in 1 2 3 4 5 6; do
  3806. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3807. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3808. # Solaris 8's {/usr,}/bin/sh.
  3809. touch sub/conftst$i.h
  3810. done
  3811. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3812. case $depmode in
  3813. nosideeffect)
  3814. # after this tag, mechanisms are not by side-effect, so they'll
  3815. # only be used when explicitly requested
  3816. if test "x$enable_dependency_tracking" = xyes; then
  3817. continue
  3818. else
  3819. break
  3820. fi
  3821. ;;
  3822. none) break ;;
  3823. esac
  3824. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3825. # mode. It turns out that the SunPro C++ compiler does not properly
  3826. # handle `-M -o', and we need to detect this.
  3827. if depmode=$depmode \
  3828. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3829. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3830. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3831. >/dev/null 2>conftest.err &&
  3832. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3833. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3834. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3835. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3836. # icc doesn't choke on unknown options, it will just issue warnings
  3837. # or remarks (even with -Werror). So we grep stderr for any message
  3838. # that says an option was ignored or not supported.
  3839. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3840. # icc: Command line warning: ignoring option '-M'; no argument required
  3841. # The diagnosis changed in icc 8.0:
  3842. # icc: Command line remark: option '-MP' not supported
  3843. if (grep 'ignoring option' conftest.err ||
  3844. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3845. am_cv_CC_dependencies_compiler_type=$depmode
  3846. break
  3847. fi
  3848. fi
  3849. done
  3850. cd ..
  3851. rm -rf conftest.dir
  3852. else
  3853. am_cv_CC_dependencies_compiler_type=none
  3854. fi
  3855. fi
  3856. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3857. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3858. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3859. if
  3860. test "x$enable_dependency_tracking" != xno \
  3861. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3862. am__fastdepCC_TRUE=
  3863. am__fastdepCC_FALSE='#'
  3864. else
  3865. am__fastdepCC_TRUE='#'
  3866. am__fastdepCC_FALSE=
  3867. fi
  3868. # Find a good install program. We prefer a C program (faster),
  3869. # so one script is as good as another. But avoid the broken or
  3870. # incompatible versions:
  3871. # SysV /etc/install, /usr/sbin/install
  3872. # SunOS /usr/etc/install
  3873. # IRIX /sbin/install
  3874. # AIX /bin/install
  3875. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3876. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3877. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3878. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3879. # OS/2's system install, which has a completely different semantic
  3880. # ./install, which can be erroneously created by make from ./install.sh.
  3881. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3882. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3883. if test -z "$INSTALL"; then
  3884. if test "${ac_cv_path_install+set}" = set; then
  3885. echo $ECHO_N "(cached) $ECHO_C" >&6
  3886. else
  3887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3888. for as_dir in $PATH
  3889. do
  3890. IFS=$as_save_IFS
  3891. test -z "$as_dir" && as_dir=.
  3892. # Account for people who put trailing slashes in PATH elements.
  3893. case $as_dir/ in
  3894. ./ | .// | /cC/* | \
  3895. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3896. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3897. /usr/ucb/* ) ;;
  3898. *)
  3899. # OSF1 and SCO ODT 3.0 have their own names for install.
  3900. # Don't use installbsd from OSF since it installs stuff as root
  3901. # by default.
  3902. for ac_prog in ginstall scoinst install; do
  3903. for ac_exec_ext in '' $ac_executable_extensions; do
  3904. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3905. if test $ac_prog = install &&
  3906. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3907. # AIX install. It has an incompatible calling convention.
  3908. :
  3909. elif test $ac_prog = install &&
  3910. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3911. # program-specific install script used by HP pwplus--don't use.
  3912. :
  3913. else
  3914. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3915. break 3
  3916. fi
  3917. fi
  3918. done
  3919. done
  3920. ;;
  3921. esac
  3922. done
  3923. IFS=$as_save_IFS
  3924. fi
  3925. if test "${ac_cv_path_install+set}" = set; then
  3926. INSTALL=$ac_cv_path_install
  3927. else
  3928. # As a last resort, use the slow shell script. Don't cache a
  3929. # value for INSTALL within a source directory, because that will
  3930. # break other packages using the cache if that directory is
  3931. # removed, or if the value is a relative name.
  3932. INSTALL=$ac_install_sh
  3933. fi
  3934. fi
  3935. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3936. echo "${ECHO_T}$INSTALL" >&6; }
  3937. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3938. # It thinks the first close brace ends the variable substitution.
  3939. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3940. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3941. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3942. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3943. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3944. if test -z "$MKDIR_P"; then
  3945. if test "${ac_cv_path_mkdir+set}" = set; then
  3946. echo $ECHO_N "(cached) $ECHO_C" >&6
  3947. else
  3948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3949. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3950. do
  3951. IFS=$as_save_IFS
  3952. test -z "$as_dir" && as_dir=.
  3953. for ac_prog in mkdir gmkdir; do
  3954. for ac_exec_ext in '' $ac_executable_extensions; do
  3955. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3956. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3957. 'mkdir (GNU coreutils) '* | \
  3958. 'mkdir (coreutils) '* | \
  3959. 'mkdir (fileutils) '4.1*)
  3960. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3961. break 3;;
  3962. esac
  3963. done
  3964. done
  3965. done
  3966. IFS=$as_save_IFS
  3967. fi
  3968. if test "${ac_cv_path_mkdir+set}" = set; then
  3969. MKDIR_P="$ac_cv_path_mkdir -p"
  3970. else
  3971. # As a last resort, use the slow shell script. Don't cache a
  3972. # value for MKDIR_P within a source directory, because that will
  3973. # break other packages using the cache if that directory is
  3974. # removed, or if the value is a relative name.
  3975. test -d ./--version && rmdir ./--version
  3976. MKDIR_P="$ac_install_sh -d"
  3977. fi
  3978. fi
  3979. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3980. echo "${ECHO_T}$MKDIR_P" >&6; }
  3981. if test -n "$ac_tool_prefix"; then
  3982. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3983. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3984. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3985. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3986. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3987. echo $ECHO_N "(cached) $ECHO_C" >&6
  3988. else
  3989. if test -n "$RANLIB"; then
  3990. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3991. else
  3992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3993. for as_dir in $PATH
  3994. do
  3995. IFS=$as_save_IFS
  3996. test -z "$as_dir" && as_dir=.
  3997. for ac_exec_ext in '' $ac_executable_extensions; do
  3998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3999. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4000. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4001. break 2
  4002. fi
  4003. done
  4004. done
  4005. IFS=$as_save_IFS
  4006. fi
  4007. fi
  4008. RANLIB=$ac_cv_prog_RANLIB
  4009. if test -n "$RANLIB"; then
  4010. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4011. echo "${ECHO_T}$RANLIB" >&6; }
  4012. else
  4013. { echo "$as_me:$LINENO: result: no" >&5
  4014. echo "${ECHO_T}no" >&6; }
  4015. fi
  4016. fi
  4017. if test -z "$ac_cv_prog_RANLIB"; then
  4018. ac_ct_RANLIB=$RANLIB
  4019. # Extract the first word of "ranlib", so it can be a program name with args.
  4020. set dummy ranlib; ac_word=$2
  4021. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4022. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4023. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4024. echo $ECHO_N "(cached) $ECHO_C" >&6
  4025. else
  4026. if test -n "$ac_ct_RANLIB"; then
  4027. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4028. else
  4029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4030. for as_dir in $PATH
  4031. do
  4032. IFS=$as_save_IFS
  4033. test -z "$as_dir" && as_dir=.
  4034. for ac_exec_ext in '' $ac_executable_extensions; do
  4035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4036. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4037. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4038. break 2
  4039. fi
  4040. done
  4041. done
  4042. IFS=$as_save_IFS
  4043. fi
  4044. fi
  4045. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4046. if test -n "$ac_ct_RANLIB"; then
  4047. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4048. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4049. else
  4050. { echo "$as_me:$LINENO: result: no" >&5
  4051. echo "${ECHO_T}no" >&6; }
  4052. fi
  4053. if test "x$ac_ct_RANLIB" = x; then
  4054. RANLIB=":"
  4055. else
  4056. case $cross_compiling:$ac_tool_warned in
  4057. yes:)
  4058. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4059. whose name does not start with the host triplet. If you think this
  4060. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4061. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4062. whose name does not start with the host triplet. If you think this
  4063. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4064. ac_tool_warned=yes ;;
  4065. esac
  4066. RANLIB=$ac_ct_RANLIB
  4067. fi
  4068. else
  4069. RANLIB="$ac_cv_prog_RANLIB"
  4070. fi
  4071. for ac_prog in 'bison -y' byacc
  4072. do
  4073. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4074. set dummy $ac_prog; ac_word=$2
  4075. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4076. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4077. if test "${ac_cv_prog_YACC+set}" = set; then
  4078. echo $ECHO_N "(cached) $ECHO_C" >&6
  4079. else
  4080. if test -n "$YACC"; then
  4081. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4082. else
  4083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4084. for as_dir in $PATH
  4085. do
  4086. IFS=$as_save_IFS
  4087. test -z "$as_dir" && as_dir=.
  4088. for ac_exec_ext in '' $ac_executable_extensions; do
  4089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4090. ac_cv_prog_YACC="$ac_prog"
  4091. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4092. break 2
  4093. fi
  4094. done
  4095. done
  4096. IFS=$as_save_IFS
  4097. fi
  4098. fi
  4099. YACC=$ac_cv_prog_YACC
  4100. if test -n "$YACC"; then
  4101. { echo "$as_me:$LINENO: result: $YACC" >&5
  4102. echo "${ECHO_T}$YACC" >&6; }
  4103. else
  4104. { echo "$as_me:$LINENO: result: no" >&5
  4105. echo "${ECHO_T}no" >&6; }
  4106. fi
  4107. test -n "$YACC" && break
  4108. done
  4109. test -n "$YACC" || YACC="yacc"
  4110. # Setting language choice
  4111. ac_ext=cpp
  4112. ac_cpp='$CXXCPP $CPPFLAGS'
  4113. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4114. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4115. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4116. # Check for GNU library
  4117. cat >>confdefs.h <<\_ACEOF
  4118. #define _GNU_SOURCE 1
  4119. _ACEOF
  4120. # Enable system extensions
  4121. ac_ext=cpp
  4122. ac_cpp='$CXXCPP $CPPFLAGS'
  4123. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4124. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4125. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4126. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4127. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4128. if test -z "$CXXCPP"; then
  4129. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4130. echo $ECHO_N "(cached) $ECHO_C" >&6
  4131. else
  4132. # Double quotes because CXXCPP needs to be expanded
  4133. for CXXCPP in "$CXX -E" "/lib/cpp"
  4134. do
  4135. ac_preproc_ok=false
  4136. for ac_cxx_preproc_warn_flag in '' yes
  4137. do
  4138. # Use a header file that comes with gcc, so configuring glibc
  4139. # with a fresh cross-compiler works.
  4140. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4141. # <limits.h> exists even on freestanding compilers.
  4142. # On the NeXT, cc -E runs the code through the compiler's parser,
  4143. # not just through cpp. "Syntax error" is here to catch this case.
  4144. cat >conftest.$ac_ext <<_ACEOF
  4145. /* confdefs.h. */
  4146. _ACEOF
  4147. cat confdefs.h >>conftest.$ac_ext
  4148. cat >>conftest.$ac_ext <<_ACEOF
  4149. /* end confdefs.h. */
  4150. #ifdef __STDC__
  4151. # include <limits.h>
  4152. #else
  4153. # include <assert.h>
  4154. #endif
  4155. Syntax error
  4156. _ACEOF
  4157. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4158. case "(($ac_try" in
  4159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4160. *) ac_try_echo=$ac_try;;
  4161. esac
  4162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4163. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4164. ac_status=$?
  4165. grep -v '^ *+' conftest.er1 >conftest.err
  4166. rm -f conftest.er1
  4167. cat conftest.err >&5
  4168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4169. (exit $ac_status); } >/dev/null && {
  4170. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4171. test ! -s conftest.err
  4172. }; then
  4173. :
  4174. else
  4175. echo "$as_me: failed program was:" >&5
  4176. sed 's/^/| /' conftest.$ac_ext >&5
  4177. # Broken: fails on valid input.
  4178. continue
  4179. fi
  4180. rm -f conftest.err conftest.$ac_ext
  4181. # OK, works on sane cases. Now check whether nonexistent headers
  4182. # can be detected and how.
  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. #include <ac_nonexistent.h>
  4190. _ACEOF
  4191. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4192. case "(($ac_try" in
  4193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4194. *) ac_try_echo=$ac_try;;
  4195. esac
  4196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4197. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4198. ac_status=$?
  4199. grep -v '^ *+' conftest.er1 >conftest.err
  4200. rm -f conftest.er1
  4201. cat conftest.err >&5
  4202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4203. (exit $ac_status); } >/dev/null && {
  4204. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4205. test ! -s conftest.err
  4206. }; then
  4207. # Broken: success on invalid input.
  4208. continue
  4209. else
  4210. echo "$as_me: failed program was:" >&5
  4211. sed 's/^/| /' conftest.$ac_ext >&5
  4212. # Passes both tests.
  4213. ac_preproc_ok=:
  4214. break
  4215. fi
  4216. rm -f conftest.err conftest.$ac_ext
  4217. done
  4218. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4219. rm -f conftest.err conftest.$ac_ext
  4220. if $ac_preproc_ok; then
  4221. break
  4222. fi
  4223. done
  4224. ac_cv_prog_CXXCPP=$CXXCPP
  4225. fi
  4226. CXXCPP=$ac_cv_prog_CXXCPP
  4227. else
  4228. ac_cv_prog_CXXCPP=$CXXCPP
  4229. fi
  4230. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4231. echo "${ECHO_T}$CXXCPP" >&6; }
  4232. ac_preproc_ok=false
  4233. for ac_cxx_preproc_warn_flag in '' yes
  4234. do
  4235. # Use a header file that comes with gcc, so configuring glibc
  4236. # with a fresh cross-compiler works.
  4237. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4238. # <limits.h> exists even on freestanding compilers.
  4239. # On the NeXT, cc -E runs the code through the compiler's parser,
  4240. # not just through cpp. "Syntax error" is here to catch this case.
  4241. cat >conftest.$ac_ext <<_ACEOF
  4242. /* confdefs.h. */
  4243. _ACEOF
  4244. cat confdefs.h >>conftest.$ac_ext
  4245. cat >>conftest.$ac_ext <<_ACEOF
  4246. /* end confdefs.h. */
  4247. #ifdef __STDC__
  4248. # include <limits.h>
  4249. #else
  4250. # include <assert.h>
  4251. #endif
  4252. Syntax error
  4253. _ACEOF
  4254. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4255. case "(($ac_try" in
  4256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4257. *) ac_try_echo=$ac_try;;
  4258. esac
  4259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4260. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4261. ac_status=$?
  4262. grep -v '^ *+' conftest.er1 >conftest.err
  4263. rm -f conftest.er1
  4264. cat conftest.err >&5
  4265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4266. (exit $ac_status); } >/dev/null && {
  4267. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4268. test ! -s conftest.err
  4269. }; then
  4270. :
  4271. else
  4272. echo "$as_me: failed program was:" >&5
  4273. sed 's/^/| /' conftest.$ac_ext >&5
  4274. # Broken: fails on valid input.
  4275. continue
  4276. fi
  4277. rm -f conftest.err conftest.$ac_ext
  4278. # OK, works on sane cases. Now check whether nonexistent headers
  4279. # can be detected and how.
  4280. cat >conftest.$ac_ext <<_ACEOF
  4281. /* confdefs.h. */
  4282. _ACEOF
  4283. cat confdefs.h >>conftest.$ac_ext
  4284. cat >>conftest.$ac_ext <<_ACEOF
  4285. /* end confdefs.h. */
  4286. #include <ac_nonexistent.h>
  4287. _ACEOF
  4288. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4289. case "(($ac_try" in
  4290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4291. *) ac_try_echo=$ac_try;;
  4292. esac
  4293. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4294. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4295. ac_status=$?
  4296. grep -v '^ *+' conftest.er1 >conftest.err
  4297. rm -f conftest.er1
  4298. cat conftest.err >&5
  4299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4300. (exit $ac_status); } >/dev/null && {
  4301. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4302. test ! -s conftest.err
  4303. }; then
  4304. # Broken: success on invalid input.
  4305. continue
  4306. else
  4307. echo "$as_me: failed program was:" >&5
  4308. sed 's/^/| /' conftest.$ac_ext >&5
  4309. # Passes both tests.
  4310. ac_preproc_ok=:
  4311. break
  4312. fi
  4313. rm -f conftest.err conftest.$ac_ext
  4314. done
  4315. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4316. rm -f conftest.err conftest.$ac_ext
  4317. if $ac_preproc_ok; then
  4318. :
  4319. else
  4320. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4321. See \`config.log' for more details." >&5
  4322. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4323. See \`config.log' for more details." >&2;}
  4324. { (exit 1); exit 1; }; }
  4325. fi
  4326. ac_ext=cpp
  4327. ac_cpp='$CXXCPP $CPPFLAGS'
  4328. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4329. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4330. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4331. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4332. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4333. if test "${ac_cv_path_GREP+set}" = set; then
  4334. echo $ECHO_N "(cached) $ECHO_C" >&6
  4335. else
  4336. # Extract the first word of "grep ggrep" to use in msg output
  4337. if test -z "$GREP"; then
  4338. set dummy grep ggrep; ac_prog_name=$2
  4339. if test "${ac_cv_path_GREP+set}" = set; then
  4340. echo $ECHO_N "(cached) $ECHO_C" >&6
  4341. else
  4342. ac_path_GREP_found=false
  4343. # Loop through the user's path and test for each of PROGNAME-LIST
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4346. do
  4347. IFS=$as_save_IFS
  4348. test -z "$as_dir" && as_dir=.
  4349. for ac_prog in grep ggrep; do
  4350. for ac_exec_ext in '' $ac_executable_extensions; do
  4351. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4352. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4353. # Check for GNU ac_path_GREP and select it if it is found.
  4354. # Check for GNU $ac_path_GREP
  4355. case `"$ac_path_GREP" --version 2>&1` in
  4356. *GNU*)
  4357. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4358. *)
  4359. ac_count=0
  4360. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4361. while :
  4362. do
  4363. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4364. mv "conftest.tmp" "conftest.in"
  4365. cp "conftest.in" "conftest.nl"
  4366. echo 'GREP' >> "conftest.nl"
  4367. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4368. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4369. ac_count=`expr $ac_count + 1`
  4370. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4371. # Best one so far, save it but keep looking for a better one
  4372. ac_cv_path_GREP="$ac_path_GREP"
  4373. ac_path_GREP_max=$ac_count
  4374. fi
  4375. # 10*(2^10) chars as input seems more than enough
  4376. test $ac_count -gt 10 && break
  4377. done
  4378. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4379. esac
  4380. $ac_path_GREP_found && break 3
  4381. done
  4382. done
  4383. done
  4384. IFS=$as_save_IFS
  4385. fi
  4386. GREP="$ac_cv_path_GREP"
  4387. if test -z "$GREP"; then
  4388. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4389. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4390. { (exit 1); exit 1; }; }
  4391. fi
  4392. else
  4393. ac_cv_path_GREP=$GREP
  4394. fi
  4395. fi
  4396. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4397. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4398. GREP="$ac_cv_path_GREP"
  4399. { echo "$as_me:$LINENO: checking for egrep" >&5
  4400. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4401. if test "${ac_cv_path_EGREP+set}" = set; then
  4402. echo $ECHO_N "(cached) $ECHO_C" >&6
  4403. else
  4404. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4405. then ac_cv_path_EGREP="$GREP -E"
  4406. else
  4407. # Extract the first word of "egrep" to use in msg output
  4408. if test -z "$EGREP"; then
  4409. set dummy egrep; ac_prog_name=$2
  4410. if test "${ac_cv_path_EGREP+set}" = set; then
  4411. echo $ECHO_N "(cached) $ECHO_C" >&6
  4412. else
  4413. ac_path_EGREP_found=false
  4414. # Loop through the user's path and test for each of PROGNAME-LIST
  4415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4416. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4417. do
  4418. IFS=$as_save_IFS
  4419. test -z "$as_dir" && as_dir=.
  4420. for ac_prog in egrep; do
  4421. for ac_exec_ext in '' $ac_executable_extensions; do
  4422. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4423. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4424. # Check for GNU ac_path_EGREP and select it if it is found.
  4425. # Check for GNU $ac_path_EGREP
  4426. case `"$ac_path_EGREP" --version 2>&1` in
  4427. *GNU*)
  4428. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4429. *)
  4430. ac_count=0
  4431. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4432. while :
  4433. do
  4434. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4435. mv "conftest.tmp" "conftest.in"
  4436. cp "conftest.in" "conftest.nl"
  4437. echo 'EGREP' >> "conftest.nl"
  4438. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4439. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4440. ac_count=`expr $ac_count + 1`
  4441. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4442. # Best one so far, save it but keep looking for a better one
  4443. ac_cv_path_EGREP="$ac_path_EGREP"
  4444. ac_path_EGREP_max=$ac_count
  4445. fi
  4446. # 10*(2^10) chars as input seems more than enough
  4447. test $ac_count -gt 10 && break
  4448. done
  4449. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4450. esac
  4451. $ac_path_EGREP_found && break 3
  4452. done
  4453. done
  4454. done
  4455. IFS=$as_save_IFS
  4456. fi
  4457. EGREP="$ac_cv_path_EGREP"
  4458. if test -z "$EGREP"; then
  4459. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4460. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4461. { (exit 1); exit 1; }; }
  4462. fi
  4463. else
  4464. ac_cv_path_EGREP=$EGREP
  4465. fi
  4466. fi
  4467. fi
  4468. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4469. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4470. EGREP="$ac_cv_path_EGREP"
  4471. { echo "$as_me:$LINENO: checking for AIX" >&5
  4472. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4473. cat >conftest.$ac_ext <<_ACEOF
  4474. /* confdefs.h. */
  4475. _ACEOF
  4476. cat confdefs.h >>conftest.$ac_ext
  4477. cat >>conftest.$ac_ext <<_ACEOF
  4478. /* end confdefs.h. */
  4479. #ifdef _AIX
  4480. yes
  4481. #endif
  4482. _ACEOF
  4483. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4484. $EGREP "yes" >/dev/null 2>&1; then
  4485. { echo "$as_me:$LINENO: result: yes" >&5
  4486. echo "${ECHO_T}yes" >&6; }
  4487. cat >>confdefs.h <<\_ACEOF
  4488. #define _ALL_SOURCE 1
  4489. _ACEOF
  4490. else
  4491. { echo "$as_me:$LINENO: result: no" >&5
  4492. echo "${ECHO_T}no" >&6; }
  4493. fi
  4494. rm -f conftest*
  4495. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4496. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4497. if test "${ac_cv_header_stdc+set}" = set; then
  4498. echo $ECHO_N "(cached) $ECHO_C" >&6
  4499. else
  4500. cat >conftest.$ac_ext <<_ACEOF
  4501. /* confdefs.h. */
  4502. _ACEOF
  4503. cat confdefs.h >>conftest.$ac_ext
  4504. cat >>conftest.$ac_ext <<_ACEOF
  4505. /* end confdefs.h. */
  4506. #include <stdlib.h>
  4507. #include <stdarg.h>
  4508. #include <string.h>
  4509. #include <float.h>
  4510. int
  4511. main ()
  4512. {
  4513. ;
  4514. return 0;
  4515. }
  4516. _ACEOF
  4517. rm -f conftest.$ac_objext
  4518. if { (ac_try="$ac_compile"
  4519. case "(($ac_try" in
  4520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4521. *) ac_try_echo=$ac_try;;
  4522. esac
  4523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4524. (eval "$ac_compile") 2>conftest.er1
  4525. ac_status=$?
  4526. grep -v '^ *+' conftest.er1 >conftest.err
  4527. rm -f conftest.er1
  4528. cat conftest.err >&5
  4529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4530. (exit $ac_status); } && {
  4531. test -z "$ac_cxx_werror_flag" ||
  4532. test ! -s conftest.err
  4533. } && test -s conftest.$ac_objext; then
  4534. ac_cv_header_stdc=yes
  4535. else
  4536. echo "$as_me: failed program was:" >&5
  4537. sed 's/^/| /' conftest.$ac_ext >&5
  4538. ac_cv_header_stdc=no
  4539. fi
  4540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4541. if test $ac_cv_header_stdc = yes; then
  4542. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. #include <string.h>
  4550. _ACEOF
  4551. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4552. $EGREP "memchr" >/dev/null 2>&1; then
  4553. :
  4554. else
  4555. ac_cv_header_stdc=no
  4556. fi
  4557. rm -f conftest*
  4558. fi
  4559. if test $ac_cv_header_stdc = yes; then
  4560. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4561. cat >conftest.$ac_ext <<_ACEOF
  4562. /* confdefs.h. */
  4563. _ACEOF
  4564. cat confdefs.h >>conftest.$ac_ext
  4565. cat >>conftest.$ac_ext <<_ACEOF
  4566. /* end confdefs.h. */
  4567. #include <stdlib.h>
  4568. _ACEOF
  4569. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4570. $EGREP "free" >/dev/null 2>&1; then
  4571. :
  4572. else
  4573. ac_cv_header_stdc=no
  4574. fi
  4575. rm -f conftest*
  4576. fi
  4577. if test $ac_cv_header_stdc = yes; then
  4578. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4579. if test "$cross_compiling" = yes; then
  4580. :
  4581. else
  4582. cat >conftest.$ac_ext <<_ACEOF
  4583. /* confdefs.h. */
  4584. _ACEOF
  4585. cat confdefs.h >>conftest.$ac_ext
  4586. cat >>conftest.$ac_ext <<_ACEOF
  4587. /* end confdefs.h. */
  4588. #include <ctype.h>
  4589. #include <stdlib.h>
  4590. #if ((' ' & 0x0FF) == 0x020)
  4591. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4592. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4593. #else
  4594. # define ISLOWER(c) \
  4595. (('a' <= (c) && (c) <= 'i') \
  4596. || ('j' <= (c) && (c) <= 'r') \
  4597. || ('s' <= (c) && (c) <= 'z'))
  4598. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4599. #endif
  4600. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4601. int
  4602. main ()
  4603. {
  4604. int i;
  4605. for (i = 0; i < 256; i++)
  4606. if (XOR (islower (i), ISLOWER (i))
  4607. || toupper (i) != TOUPPER (i))
  4608. return 2;
  4609. return 0;
  4610. }
  4611. _ACEOF
  4612. rm -f conftest$ac_exeext
  4613. if { (ac_try="$ac_link"
  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_link") 2>&5
  4620. ac_status=$?
  4621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4622. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4623. { (case "(($ac_try" in
  4624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4625. *) ac_try_echo=$ac_try;;
  4626. esac
  4627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4628. (eval "$ac_try") 2>&5
  4629. ac_status=$?
  4630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4631. (exit $ac_status); }; }; then
  4632. :
  4633. else
  4634. echo "$as_me: program exited with status $ac_status" >&5
  4635. echo "$as_me: failed program was:" >&5
  4636. sed 's/^/| /' conftest.$ac_ext >&5
  4637. ( exit $ac_status )
  4638. ac_cv_header_stdc=no
  4639. fi
  4640. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4641. fi
  4642. fi
  4643. fi
  4644. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4645. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4646. if test $ac_cv_header_stdc = yes; then
  4647. cat >>confdefs.h <<\_ACEOF
  4648. #define STDC_HEADERS 1
  4649. _ACEOF
  4650. fi
  4651. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4652. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4653. inttypes.h stdint.h unistd.h
  4654. do
  4655. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4656. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4657. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4658. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4659. echo $ECHO_N "(cached) $ECHO_C" >&6
  4660. else
  4661. cat >conftest.$ac_ext <<_ACEOF
  4662. /* confdefs.h. */
  4663. _ACEOF
  4664. cat confdefs.h >>conftest.$ac_ext
  4665. cat >>conftest.$ac_ext <<_ACEOF
  4666. /* end confdefs.h. */
  4667. $ac_includes_default
  4668. #include <$ac_header>
  4669. _ACEOF
  4670. rm -f conftest.$ac_objext
  4671. if { (ac_try="$ac_compile"
  4672. case "(($ac_try" in
  4673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4674. *) ac_try_echo=$ac_try;;
  4675. esac
  4676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4677. (eval "$ac_compile") 2>conftest.er1
  4678. ac_status=$?
  4679. grep -v '^ *+' conftest.er1 >conftest.err
  4680. rm -f conftest.er1
  4681. cat conftest.err >&5
  4682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4683. (exit $ac_status); } && {
  4684. test -z "$ac_cxx_werror_flag" ||
  4685. test ! -s conftest.err
  4686. } && test -s conftest.$ac_objext; then
  4687. eval "$as_ac_Header=yes"
  4688. else
  4689. echo "$as_me: failed program was:" >&5
  4690. sed 's/^/| /' conftest.$ac_ext >&5
  4691. eval "$as_ac_Header=no"
  4692. fi
  4693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4694. fi
  4695. ac_res=`eval echo '${'$as_ac_Header'}'`
  4696. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4697. echo "${ECHO_T}$ac_res" >&6; }
  4698. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4699. cat >>confdefs.h <<_ACEOF
  4700. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4701. _ACEOF
  4702. fi
  4703. done
  4704. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4705. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4706. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4707. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4708. echo $ECHO_N "(cached) $ECHO_C" >&6
  4709. fi
  4710. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4711. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4712. else
  4713. # Is the header compilable?
  4714. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4715. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4716. cat >conftest.$ac_ext <<_ACEOF
  4717. /* confdefs.h. */
  4718. _ACEOF
  4719. cat confdefs.h >>conftest.$ac_ext
  4720. cat >>conftest.$ac_ext <<_ACEOF
  4721. /* end confdefs.h. */
  4722. $ac_includes_default
  4723. #include <minix/config.h>
  4724. _ACEOF
  4725. rm -f conftest.$ac_objext
  4726. if { (ac_try="$ac_compile"
  4727. case "(($ac_try" in
  4728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4729. *) ac_try_echo=$ac_try;;
  4730. esac
  4731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4732. (eval "$ac_compile") 2>conftest.er1
  4733. ac_status=$?
  4734. grep -v '^ *+' conftest.er1 >conftest.err
  4735. rm -f conftest.er1
  4736. cat conftest.err >&5
  4737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4738. (exit $ac_status); } && {
  4739. test -z "$ac_cxx_werror_flag" ||
  4740. test ! -s conftest.err
  4741. } && test -s conftest.$ac_objext; then
  4742. ac_header_compiler=yes
  4743. else
  4744. echo "$as_me: failed program was:" >&5
  4745. sed 's/^/| /' conftest.$ac_ext >&5
  4746. ac_header_compiler=no
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4749. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4750. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4751. # Is the header present?
  4752. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4753. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4754. cat >conftest.$ac_ext <<_ACEOF
  4755. /* confdefs.h. */
  4756. _ACEOF
  4757. cat confdefs.h >>conftest.$ac_ext
  4758. cat >>conftest.$ac_ext <<_ACEOF
  4759. /* end confdefs.h. */
  4760. #include <minix/config.h>
  4761. _ACEOF
  4762. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4763. case "(($ac_try" in
  4764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4765. *) ac_try_echo=$ac_try;;
  4766. esac
  4767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4768. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4769. ac_status=$?
  4770. grep -v '^ *+' conftest.er1 >conftest.err
  4771. rm -f conftest.er1
  4772. cat conftest.err >&5
  4773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4774. (exit $ac_status); } >/dev/null && {
  4775. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4776. test ! -s conftest.err
  4777. }; then
  4778. ac_header_preproc=yes
  4779. else
  4780. echo "$as_me: failed program was:" >&5
  4781. sed 's/^/| /' conftest.$ac_ext >&5
  4782. ac_header_preproc=no
  4783. fi
  4784. rm -f conftest.err conftest.$ac_ext
  4785. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4786. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4787. # So? What about this header?
  4788. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4789. yes:no: )
  4790. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4791. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4792. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4793. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4794. ac_header_preproc=yes
  4795. ;;
  4796. no:yes:* )
  4797. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4798. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4799. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4800. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4801. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4802. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4803. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4804. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4805. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4806. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4807. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4808. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4809. ( cat <<\_ASBOX
  4810. ## ----------------------------------------------- ##
  4811. ## Report this to t-tujikawa@users.sourceforge.net ##
  4812. ## ----------------------------------------------- ##
  4813. _ASBOX
  4814. ) | sed "s/^/$as_me: WARNING: /" >&2
  4815. ;;
  4816. esac
  4817. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4818. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4819. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4820. echo $ECHO_N "(cached) $ECHO_C" >&6
  4821. else
  4822. ac_cv_header_minix_config_h=$ac_header_preproc
  4823. fi
  4824. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4825. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4826. fi
  4827. if test $ac_cv_header_minix_config_h = yes; then
  4828. MINIX=yes
  4829. else
  4830. MINIX=
  4831. fi
  4832. if test "$MINIX" = yes; then
  4833. cat >>confdefs.h <<\_ACEOF
  4834. #define _POSIX_SOURCE 1
  4835. _ACEOF
  4836. cat >>confdefs.h <<\_ACEOF
  4837. #define _POSIX_1_SOURCE 2
  4838. _ACEOF
  4839. cat >>confdefs.h <<\_ACEOF
  4840. #define _MINIX 1
  4841. _ACEOF
  4842. fi
  4843. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4844. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4845. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4846. echo $ECHO_N "(cached) $ECHO_C" >&6
  4847. else
  4848. cat >conftest.$ac_ext <<_ACEOF
  4849. /* confdefs.h. */
  4850. _ACEOF
  4851. cat confdefs.h >>conftest.$ac_ext
  4852. cat >>conftest.$ac_ext <<_ACEOF
  4853. /* end confdefs.h. */
  4854. # define __EXTENSIONS__ 1
  4855. $ac_includes_default
  4856. int
  4857. main ()
  4858. {
  4859. ;
  4860. return 0;
  4861. }
  4862. _ACEOF
  4863. rm -f conftest.$ac_objext
  4864. if { (ac_try="$ac_compile"
  4865. case "(($ac_try" in
  4866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4867. *) ac_try_echo=$ac_try;;
  4868. esac
  4869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4870. (eval "$ac_compile") 2>conftest.er1
  4871. ac_status=$?
  4872. grep -v '^ *+' conftest.er1 >conftest.err
  4873. rm -f conftest.er1
  4874. cat conftest.err >&5
  4875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4876. (exit $ac_status); } && {
  4877. test -z "$ac_cxx_werror_flag" ||
  4878. test ! -s conftest.err
  4879. } && test -s conftest.$ac_objext; then
  4880. ac_cv_safe_to_define___extensions__=yes
  4881. else
  4882. echo "$as_me: failed program was:" >&5
  4883. sed 's/^/| /' conftest.$ac_ext >&5
  4884. ac_cv_safe_to_define___extensions__=no
  4885. fi
  4886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4887. fi
  4888. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4889. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4890. test $ac_cv_safe_to_define___extensions__ = yes &&
  4891. cat >>confdefs.h <<\_ACEOF
  4892. #define __EXTENSIONS__ 1
  4893. _ACEOF
  4894. cat >>confdefs.h <<\_ACEOF
  4895. #define _POSIX_PTHREAD_SEMANTICS 1
  4896. _ACEOF
  4897. cat >>confdefs.h <<\_ACEOF
  4898. #define _TANDEM_SOURCE 1
  4899. _ACEOF
  4900. # Checks for libraries.
  4901. if test "x$with_libxml2" = "xyes"; then
  4902. # Check whether --with-xml-prefix was given.
  4903. if test "${with_xml_prefix+set}" = set; then
  4904. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4905. else
  4906. xml_config_prefix=""
  4907. fi
  4908. # Check whether --with-xml-exec-prefix was given.
  4909. if test "${with_xml_exec_prefix+set}" = set; then
  4910. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4911. else
  4912. xml_config_exec_prefix=""
  4913. fi
  4914. # Check whether --enable-xmltest was given.
  4915. if test "${enable_xmltest+set}" = set; then
  4916. enableval=$enable_xmltest;
  4917. else
  4918. enable_xmltest=yes
  4919. fi
  4920. if test x$xml_config_exec_prefix != x ; then
  4921. xml_config_args="$xml_config_args"
  4922. if test x${XML2_CONFIG+set} != xset ; then
  4923. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4924. fi
  4925. fi
  4926. if test x$xml_config_prefix != x ; then
  4927. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4928. if test x${XML2_CONFIG+set} != xset ; then
  4929. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4930. fi
  4931. fi
  4932. # Extract the first word of "xml2-config", so it can be a program name with args.
  4933. set dummy xml2-config; ac_word=$2
  4934. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4935. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4936. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4937. echo $ECHO_N "(cached) $ECHO_C" >&6
  4938. else
  4939. case $XML2_CONFIG in
  4940. [\\/]* | ?:[\\/]*)
  4941. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4942. ;;
  4943. *)
  4944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4945. for as_dir in $PATH
  4946. do
  4947. IFS=$as_save_IFS
  4948. test -z "$as_dir" && as_dir=.
  4949. for ac_exec_ext in '' $ac_executable_extensions; do
  4950. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4951. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4952. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4953. break 2
  4954. fi
  4955. done
  4956. done
  4957. IFS=$as_save_IFS
  4958. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4959. ;;
  4960. esac
  4961. fi
  4962. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4963. if test -n "$XML2_CONFIG"; then
  4964. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4965. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4966. else
  4967. { echo "$as_me:$LINENO: result: no" >&5
  4968. echo "${ECHO_T}no" >&6; }
  4969. fi
  4970. min_xml_version=2.6.24
  4971. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4972. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4973. no_xml=""
  4974. if test "$XML2_CONFIG" = "no" ; then
  4975. no_xml=yes
  4976. else
  4977. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4978. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4979. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4980. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4981. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4982. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4983. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4984. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4985. if test "x$enable_xmltest" = "xyes" ; then
  4986. ac_save_CPPFLAGS="$CPPFLAGS"
  4987. ac_save_LIBS="$LIBS"
  4988. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4989. LIBS="$XML_LIBS $LIBS"
  4990. rm -f conf.xmltest
  4991. if test "$cross_compiling" = yes; then
  4992. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4993. else
  4994. cat >conftest.$ac_ext <<_ACEOF
  4995. /* confdefs.h. */
  4996. _ACEOF
  4997. cat confdefs.h >>conftest.$ac_ext
  4998. cat >>conftest.$ac_ext <<_ACEOF
  4999. /* end confdefs.h. */
  5000. #include <stdlib.h>
  5001. #include <stdio.h>
  5002. #include <string.h>
  5003. #include <libxml/xmlversion.h>
  5004. int
  5005. main()
  5006. {
  5007. int xml_major_version, xml_minor_version, xml_micro_version;
  5008. int major, minor, micro;
  5009. char *tmp_version;
  5010. system("touch conf.xmltest");
  5011. /* Capture xml2-config output via autoconf/configure variables */
  5012. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5013. tmp_version = (char *)strdup("$min_xml_version");
  5014. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5015. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5016. exit(1);
  5017. }
  5018. free(tmp_version);
  5019. /* Capture the version information from the header files */
  5020. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5021. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5022. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5023. exit(1);
  5024. }
  5025. free(tmp_version);
  5026. /* Compare xml2-config output to the libxml headers */
  5027. if ((xml_major_version != $xml_config_major_version) ||
  5028. (xml_minor_version != $xml_config_minor_version) ||
  5029. (xml_micro_version != $xml_config_micro_version))
  5030. {
  5031. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5032. xml_major_version, xml_minor_version, xml_micro_version);
  5033. printf("*** xml2-config (version %d.%d.%d)\n",
  5034. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5035. return 1;
  5036. }
  5037. /* Compare the headers to the library to make sure we match */
  5038. /* Less than ideal -- doesn't provide us with return value feedback,
  5039. * only exits if there's a serious mismatch between header and library.
  5040. */
  5041. LIBXML_TEST_VERSION;
  5042. /* Test that the library is greater than our minimum version */
  5043. if ((xml_major_version > major) ||
  5044. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5045. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5046. (xml_micro_version >= micro)))
  5047. {
  5048. return 0;
  5049. }
  5050. else
  5051. {
  5052. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5053. xml_major_version, xml_minor_version, xml_micro_version);
  5054. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5055. major, minor, micro);
  5056. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5057. printf("***\n");
  5058. printf("*** If you have already installed a sufficiently new version, this error\n");
  5059. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5060. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5061. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5062. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5063. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5064. printf("*** so that the correct libraries are found at run-time))\n");
  5065. }
  5066. return 1;
  5067. }
  5068. _ACEOF
  5069. rm -f conftest$ac_exeext
  5070. if { (ac_try="$ac_link"
  5071. case "(($ac_try" in
  5072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5073. *) ac_try_echo=$ac_try;;
  5074. esac
  5075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5076. (eval "$ac_link") 2>&5
  5077. ac_status=$?
  5078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5079. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5080. { (case "(($ac_try" in
  5081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5082. *) ac_try_echo=$ac_try;;
  5083. esac
  5084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5085. (eval "$ac_try") 2>&5
  5086. ac_status=$?
  5087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. (exit $ac_status); }; }; then
  5089. :
  5090. else
  5091. echo "$as_me: program exited with status $ac_status" >&5
  5092. echo "$as_me: failed program was:" >&5
  5093. sed 's/^/| /' conftest.$ac_ext >&5
  5094. ( exit $ac_status )
  5095. no_xml=yes
  5096. fi
  5097. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5098. fi
  5099. CPPFLAGS="$ac_save_CPPFLAGS"
  5100. LIBS="$ac_save_LIBS"
  5101. fi
  5102. fi
  5103. if test "x$no_xml" = x ; then
  5104. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5105. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5106. have_libxml2=yes
  5107. else
  5108. { echo "$as_me:$LINENO: result: no" >&5
  5109. echo "${ECHO_T}no" >&6; }
  5110. if test "$XML2_CONFIG" = "no" ; then
  5111. echo "*** The xml2-config script installed by LIBXML could not be found"
  5112. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5113. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5114. echo "*** full path to xml2-config."
  5115. else
  5116. if test -f conf.xmltest ; then
  5117. :
  5118. else
  5119. echo "*** Could not run libxml test program, checking why..."
  5120. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5121. LIBS="$LIBS $XML_LIBS"
  5122. cat >conftest.$ac_ext <<_ACEOF
  5123. /* confdefs.h. */
  5124. _ACEOF
  5125. cat confdefs.h >>conftest.$ac_ext
  5126. cat >>conftest.$ac_ext <<_ACEOF
  5127. /* end confdefs.h. */
  5128. #include <libxml/xmlversion.h>
  5129. #include <stdio.h>
  5130. int
  5131. main ()
  5132. {
  5133. LIBXML_TEST_VERSION; return 0;
  5134. ;
  5135. return 0;
  5136. }
  5137. _ACEOF
  5138. rm -f conftest.$ac_objext conftest$ac_exeext
  5139. if { (ac_try="$ac_link"
  5140. case "(($ac_try" in
  5141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5142. *) ac_try_echo=$ac_try;;
  5143. esac
  5144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5145. (eval "$ac_link") 2>conftest.er1
  5146. ac_status=$?
  5147. grep -v '^ *+' conftest.er1 >conftest.err
  5148. rm -f conftest.er1
  5149. cat conftest.err >&5
  5150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151. (exit $ac_status); } && {
  5152. test -z "$ac_cxx_werror_flag" ||
  5153. test ! -s conftest.err
  5154. } && test -s conftest$ac_exeext &&
  5155. $as_test_x conftest$ac_exeext; then
  5156. echo "*** The test program compiled, but did not run. This usually means"
  5157. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5158. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5159. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5160. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5161. echo "*** is required on your system"
  5162. echo "***"
  5163. echo "*** If you have an old version installed, it is best to remove it, although"
  5164. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5165. else
  5166. echo "$as_me: failed program was:" >&5
  5167. sed 's/^/| /' conftest.$ac_ext >&5
  5168. echo "*** The test program failed to compile or link. See the file config.log for the"
  5169. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5170. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5171. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5172. fi
  5173. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5174. conftest$ac_exeext conftest.$ac_ext
  5175. CPPFLAGS="$ac_save_CPPFLAGS"
  5176. LIBS="$ac_save_LIBS"
  5177. fi
  5178. fi
  5179. XML_CPPFLAGS=""
  5180. XML_LIBS=""
  5181. :
  5182. fi
  5183. rm -f conf.xmltest
  5184. if test "x$have_libxml2" = "xyes"; then
  5185. cat >>confdefs.h <<\_ACEOF
  5186. #define HAVE_LIBXML2 1
  5187. _ACEOF
  5188. fi
  5189. fi
  5190. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5191. # Check whether --with-libexpat-prefix was given.
  5192. if test "${with_libexpat_prefix+set}" = set; then
  5193. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5194. else
  5195. libexpat_prefix=""
  5196. fi
  5197. if test "x$libexpat_prefix" = "x"; then
  5198. libexpat_prefix="/usr"
  5199. fi
  5200. libexpat_prefix_lib=$libexpat_prefix/lib
  5201. libexpat_prefix_include=$libexpat_prefix/include
  5202. LIBS_save=$LIBS
  5203. CPPFLAGS_save=$CPPFLAGS
  5204. LIBS="-L$libexpat_prefix_lib $LIBS"
  5205. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5206. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5207. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5208. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5209. echo $ECHO_N "(cached) $ECHO_C" >&6
  5210. else
  5211. ac_check_lib_save_LIBS=$LIBS
  5212. LIBS="-lexpat $LIBS"
  5213. cat >conftest.$ac_ext <<_ACEOF
  5214. /* confdefs.h. */
  5215. _ACEOF
  5216. cat confdefs.h >>conftest.$ac_ext
  5217. cat >>conftest.$ac_ext <<_ACEOF
  5218. /* end confdefs.h. */
  5219. /* Override any GCC internal prototype to avoid an error.
  5220. Use char because int might match the return type of a GCC
  5221. builtin and then its argument prototype would still apply. */
  5222. #ifdef __cplusplus
  5223. extern "C"
  5224. #endif
  5225. char XML_ParserCreate ();
  5226. int
  5227. main ()
  5228. {
  5229. return XML_ParserCreate ();
  5230. ;
  5231. return 0;
  5232. }
  5233. _ACEOF
  5234. rm -f conftest.$ac_objext conftest$ac_exeext
  5235. if { (ac_try="$ac_link"
  5236. case "(($ac_try" in
  5237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5238. *) ac_try_echo=$ac_try;;
  5239. esac
  5240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5241. (eval "$ac_link") 2>conftest.er1
  5242. ac_status=$?
  5243. grep -v '^ *+' conftest.er1 >conftest.err
  5244. rm -f conftest.er1
  5245. cat conftest.err >&5
  5246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5247. (exit $ac_status); } && {
  5248. test -z "$ac_cxx_werror_flag" ||
  5249. test ! -s conftest.err
  5250. } && test -s conftest$ac_exeext &&
  5251. $as_test_x conftest$ac_exeext; then
  5252. ac_cv_lib_expat_XML_ParserCreate=yes
  5253. else
  5254. echo "$as_me: failed program was:" >&5
  5255. sed 's/^/| /' conftest.$ac_ext >&5
  5256. ac_cv_lib_expat_XML_ParserCreate=no
  5257. fi
  5258. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5259. conftest$ac_exeext conftest.$ac_ext
  5260. LIBS=$ac_check_lib_save_LIBS
  5261. fi
  5262. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5263. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5264. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5265. have_libexpat=yes
  5266. fi
  5267. if test "x$have_libexpat" = "xyes"; then
  5268. cat >>confdefs.h <<\_ACEOF
  5269. #define HAVE_LIBEXPAT 1
  5270. _ACEOF
  5271. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5272. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5273. fi
  5274. LIBS=$LIBS_save
  5275. CPPFLAGS=$CPPFLAGS_save
  5276. fi
  5277. if test "x$with_sqlite3" = "xyes"; then
  5278. # Check whether --with-sqlite3-prefix was given.
  5279. if test "${with_sqlite3_prefix+set}" = set; then
  5280. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5281. else
  5282. sqlite3_prefix=""
  5283. fi
  5284. if test "x$sqlite3_prefix" = "x"; then
  5285. sqlite3_prefix="/usr"
  5286. fi
  5287. LIBS_save=$LIBS
  5288. CPPFLAGS_save=$CPPFLAGS
  5289. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5290. if test -x $PKG_CONFIG; then
  5291. { echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5292. echo $ECHO_N "checking checking availability of sqlite3 using pkg-config... $ECHO_C" >&6; }
  5293. $PKG_CONFIG --exists sqlite3
  5294. if test "$?" = "0"; then
  5295. # Use pkg-config to detect LIBS and CFLAGS
  5296. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5297. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5298. LIBS="$SQLITE3_LIBS $LIBS"
  5299. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5300. have_sqlite3=yes
  5301. { echo "$as_me:$LINENO: result: yes" >&5
  5302. echo "${ECHO_T}yes" >&6; }
  5303. else
  5304. { echo "$as_me:$LINENO: result: no" >&5
  5305. echo "${ECHO_T}no" >&6; }
  5306. fi
  5307. fi
  5308. if test "x$have_sqlite3" != "xyes"; then
  5309. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5310. sqlite3_prefix_include=$sqlite3_prefix/include
  5311. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5312. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5313. { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5314. echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
  5315. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5316. echo $ECHO_N "(cached) $ECHO_C" >&6
  5317. else
  5318. ac_check_lib_save_LIBS=$LIBS
  5319. LIBS="-lsqlite3 $LIBS"
  5320. cat >conftest.$ac_ext <<_ACEOF
  5321. /* confdefs.h. */
  5322. _ACEOF
  5323. cat confdefs.h >>conftest.$ac_ext
  5324. cat >>conftest.$ac_ext <<_ACEOF
  5325. /* end confdefs.h. */
  5326. /* Override any GCC internal prototype to avoid an error.
  5327. Use char because int might match the return type of a GCC
  5328. builtin and then its argument prototype would still apply. */
  5329. #ifdef __cplusplus
  5330. extern "C"
  5331. #endif
  5332. char sqlite3_open ();
  5333. int
  5334. main ()
  5335. {
  5336. return sqlite3_open ();
  5337. ;
  5338. return 0;
  5339. }
  5340. _ACEOF
  5341. rm -f conftest.$ac_objext conftest$ac_exeext
  5342. if { (ac_try="$ac_link"
  5343. case "(($ac_try" in
  5344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5345. *) ac_try_echo=$ac_try;;
  5346. esac
  5347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5348. (eval "$ac_link") 2>conftest.er1
  5349. ac_status=$?
  5350. grep -v '^ *+' conftest.er1 >conftest.err
  5351. rm -f conftest.er1
  5352. cat conftest.err >&5
  5353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5354. (exit $ac_status); } && {
  5355. test -z "$ac_cxx_werror_flag" ||
  5356. test ! -s conftest.err
  5357. } && test -s conftest$ac_exeext &&
  5358. $as_test_x conftest$ac_exeext; then
  5359. ac_cv_lib_sqlite3_sqlite3_open=yes
  5360. else
  5361. echo "$as_me: failed program was:" >&5
  5362. sed 's/^/| /' conftest.$ac_ext >&5
  5363. ac_cv_lib_sqlite3_sqlite3_open=no
  5364. fi
  5365. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5366. conftest$ac_exeext conftest.$ac_ext
  5367. LIBS=$ac_check_lib_save_LIBS
  5368. fi
  5369. { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5370. echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5371. if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
  5372. have_sqlite3=yes
  5373. fi
  5374. if test "x$have_sqlite3" = "xyes"; then
  5375. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5376. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5377. fi
  5378. fi
  5379. if test "x$have_sqlite3" = "xyes"; then
  5380. for ac_func in sqlite3_open_v2
  5381. do
  5382. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5383. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5384. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5385. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5386. echo $ECHO_N "(cached) $ECHO_C" >&6
  5387. else
  5388. cat >conftest.$ac_ext <<_ACEOF
  5389. /* confdefs.h. */
  5390. _ACEOF
  5391. cat confdefs.h >>conftest.$ac_ext
  5392. cat >>conftest.$ac_ext <<_ACEOF
  5393. /* end confdefs.h. */
  5394. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5395. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5396. #define $ac_func innocuous_$ac_func
  5397. /* System header to define __stub macros and hopefully few prototypes,
  5398. which can conflict with char $ac_func (); below.
  5399. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5400. <limits.h> exists even on freestanding compilers. */
  5401. #ifdef __STDC__
  5402. # include <limits.h>
  5403. #else
  5404. # include <assert.h>
  5405. #endif
  5406. #undef $ac_func
  5407. /* Override any GCC internal prototype to avoid an error.
  5408. Use char because int might match the return type of a GCC
  5409. builtin and then its argument prototype would still apply. */
  5410. #ifdef __cplusplus
  5411. extern "C"
  5412. #endif
  5413. char $ac_func ();
  5414. /* The GNU C library defines this for functions which it implements
  5415. to always fail with ENOSYS. Some functions are actually named
  5416. something starting with __ and the normal name is an alias. */
  5417. #if defined __stub_$ac_func || defined __stub___$ac_func
  5418. choke me
  5419. #endif
  5420. int
  5421. main ()
  5422. {
  5423. return $ac_func ();
  5424. ;
  5425. return 0;
  5426. }
  5427. _ACEOF
  5428. rm -f conftest.$ac_objext conftest$ac_exeext
  5429. if { (ac_try="$ac_link"
  5430. case "(($ac_try" in
  5431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5432. *) ac_try_echo=$ac_try;;
  5433. esac
  5434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5435. (eval "$ac_link") 2>conftest.er1
  5436. ac_status=$?
  5437. grep -v '^ *+' conftest.er1 >conftest.err
  5438. rm -f conftest.er1
  5439. cat conftest.err >&5
  5440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5441. (exit $ac_status); } && {
  5442. test -z "$ac_cxx_werror_flag" ||
  5443. test ! -s conftest.err
  5444. } && test -s conftest$ac_exeext &&
  5445. $as_test_x conftest$ac_exeext; then
  5446. eval "$as_ac_var=yes"
  5447. else
  5448. echo "$as_me: failed program was:" >&5
  5449. sed 's/^/| /' conftest.$ac_ext >&5
  5450. eval "$as_ac_var=no"
  5451. fi
  5452. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5453. conftest$ac_exeext conftest.$ac_ext
  5454. fi
  5455. ac_res=`eval echo '${'$as_ac_var'}'`
  5456. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5457. echo "${ECHO_T}$ac_res" >&6; }
  5458. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5459. cat >>confdefs.h <<_ACEOF
  5460. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5461. _ACEOF
  5462. fi
  5463. done
  5464. cat >>confdefs.h <<\_ACEOF
  5465. #define HAVE_SQLITE3 1
  5466. _ACEOF
  5467. fi
  5468. LIBS=$LIBS_save
  5469. CPPFLAGS=$CPPFLAGS_save
  5470. fi
  5471. if test "x$with_gnutls" = "xyes"; then
  5472. # Check whether --with-libgnutls-prefix was given.
  5473. if test "${with_libgnutls_prefix+set}" = set; then
  5474. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5475. else
  5476. libgnutls_config_prefix=""
  5477. fi
  5478. if test x$libgnutls_config_prefix != x ; then
  5479. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5480. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5481. fi
  5482. fi
  5483. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5484. set dummy libgnutls-config; ac_word=$2
  5485. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5486. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5487. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5488. echo $ECHO_N "(cached) $ECHO_C" >&6
  5489. else
  5490. case $LIBGNUTLS_CONFIG in
  5491. [\\/]* | ?:[\\/]*)
  5492. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5493. ;;
  5494. *)
  5495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5496. for as_dir in $PATH
  5497. do
  5498. IFS=$as_save_IFS
  5499. test -z "$as_dir" && as_dir=.
  5500. for ac_exec_ext in '' $ac_executable_extensions; do
  5501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5502. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5503. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5504. break 2
  5505. fi
  5506. done
  5507. done
  5508. IFS=$as_save_IFS
  5509. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5510. ;;
  5511. esac
  5512. fi
  5513. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5514. if test -n "$LIBGNUTLS_CONFIG"; then
  5515. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5516. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5517. else
  5518. { echo "$as_me:$LINENO: result: no" >&5
  5519. echo "${ECHO_T}no" >&6; }
  5520. fi
  5521. min_libgnutls_version=1.2.9
  5522. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5523. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5524. no_libgnutls=""
  5525. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5526. no_libgnutls=yes
  5527. else
  5528. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5529. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5530. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5531. ac_save_CFLAGS="$CFLAGS"
  5532. ac_save_LIBS="$LIBS"
  5533. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5534. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5535. rm -f conf.libgnutlstest
  5536. if test "$cross_compiling" = yes; then
  5537. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5538. else
  5539. cat >conftest.$ac_ext <<_ACEOF
  5540. /* confdefs.h. */
  5541. _ACEOF
  5542. cat confdefs.h >>conftest.$ac_ext
  5543. cat >>conftest.$ac_ext <<_ACEOF
  5544. /* end confdefs.h. */
  5545. #include <stdio.h>
  5546. #include <stdlib.h>
  5547. #include <string.h>
  5548. #include <gnutls/gnutls.h>
  5549. int
  5550. main ()
  5551. {
  5552. system ("touch conf.libgnutlstest");
  5553. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5554. {
  5555. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5556. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5557. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5558. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5559. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5560. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5561. printf("*** required on your system.\n");
  5562. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5563. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5564. printf("*** before re-running configure\n");
  5565. }
  5566. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5567. {
  5568. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5569. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5570. }
  5571. else
  5572. {
  5573. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5574. {
  5575. return 0;
  5576. }
  5577. else
  5578. {
  5579. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5580. gnutls_check_version(NULL) );
  5581. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5582. "$min_libgnutls_version" );
  5583. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5584. printf("*** \n");
  5585. printf("*** If you have already installed a sufficiently new version, this error\n");
  5586. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5587. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5588. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5589. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5590. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5591. printf("*** so that the correct libraries are found at run-time))\n");
  5592. }
  5593. }
  5594. return 1;
  5595. }
  5596. _ACEOF
  5597. rm -f conftest$ac_exeext
  5598. if { (ac_try="$ac_link"
  5599. case "(($ac_try" in
  5600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5601. *) ac_try_echo=$ac_try;;
  5602. esac
  5603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5604. (eval "$ac_link") 2>&5
  5605. ac_status=$?
  5606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5607. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5608. { (case "(($ac_try" in
  5609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5610. *) ac_try_echo=$ac_try;;
  5611. esac
  5612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5613. (eval "$ac_try") 2>&5
  5614. ac_status=$?
  5615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5616. (exit $ac_status); }; }; then
  5617. :
  5618. else
  5619. echo "$as_me: program exited with status $ac_status" >&5
  5620. echo "$as_me: failed program was:" >&5
  5621. sed 's/^/| /' conftest.$ac_ext >&5
  5622. ( exit $ac_status )
  5623. no_libgnutls=yes
  5624. fi
  5625. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5626. fi
  5627. CFLAGS="$ac_save_CFLAGS"
  5628. LIBS="$ac_save_LIBS"
  5629. fi
  5630. if test "x$no_libgnutls" = x ; then
  5631. { echo "$as_me:$LINENO: result: yes" >&5
  5632. echo "${ECHO_T}yes" >&6; }
  5633. have_libgnutls=yes
  5634. else
  5635. if test -f conf.libgnutlstest ; then
  5636. :
  5637. else
  5638. { echo "$as_me:$LINENO: result: no" >&5
  5639. echo "${ECHO_T}no" >&6; }
  5640. fi
  5641. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5642. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5643. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5644. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5645. echo "*** full path to libgnutls-config."
  5646. else
  5647. if test -f conf.libgnutlstest ; then
  5648. :
  5649. else
  5650. echo "*** Could not run libgnutls test program, checking why..."
  5651. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5652. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5653. cat >conftest.$ac_ext <<_ACEOF
  5654. /* confdefs.h. */
  5655. _ACEOF
  5656. cat confdefs.h >>conftest.$ac_ext
  5657. cat >>conftest.$ac_ext <<_ACEOF
  5658. /* end confdefs.h. */
  5659. #include <stdio.h>
  5660. #include <stdlib.h>
  5661. #include <string.h>
  5662. #include <gnutls/gnutls.h>
  5663. int
  5664. main ()
  5665. {
  5666. return !!gnutls_check_version(NULL);
  5667. ;
  5668. return 0;
  5669. }
  5670. _ACEOF
  5671. rm -f conftest.$ac_objext conftest$ac_exeext
  5672. if { (ac_try="$ac_link"
  5673. case "(($ac_try" in
  5674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5675. *) ac_try_echo=$ac_try;;
  5676. esac
  5677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5678. (eval "$ac_link") 2>conftest.er1
  5679. ac_status=$?
  5680. grep -v '^ *+' conftest.er1 >conftest.err
  5681. rm -f conftest.er1
  5682. cat conftest.err >&5
  5683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5684. (exit $ac_status); } && {
  5685. test -z "$ac_cxx_werror_flag" ||
  5686. test ! -s conftest.err
  5687. } && test -s conftest$ac_exeext &&
  5688. $as_test_x conftest$ac_exeext; then
  5689. echo "*** The test program compiled, but did not run. This usually means"
  5690. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5691. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5692. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5693. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5694. echo "*** is required on your system"
  5695. echo "***"
  5696. echo "*** If you have an old version installed, it is best to remove it, although"
  5697. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5698. echo "***"
  5699. else
  5700. echo "$as_me: failed program was:" >&5
  5701. sed 's/^/| /' conftest.$ac_ext >&5
  5702. echo "*** The test program failed to compile or link. See the file config.log for the"
  5703. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5704. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5705. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5706. fi
  5707. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5708. conftest$ac_exeext conftest.$ac_ext
  5709. CFLAGS="$ac_save_CFLAGS"
  5710. LIBS="$ac_save_LIBS"
  5711. fi
  5712. fi
  5713. LIBGNUTLS_CFLAGS=""
  5714. LIBGNUTLS_LIBS=""
  5715. :
  5716. fi
  5717. rm -f conf.libgnutlstest
  5718. if test "x$have_libgnutls" = "xyes"; then
  5719. cat >>confdefs.h <<\_ACEOF
  5720. #define HAVE_LIBGNUTLS 1
  5721. _ACEOF
  5722. fi
  5723. fi
  5724. if test "x$have_libgnutls" = "xyes"; then
  5725. # Check whether --with-libgcrypt-prefix was given.
  5726. if test "${with_libgcrypt_prefix+set}" = set; then
  5727. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5728. else
  5729. libgcrypt_config_prefix=""
  5730. fi
  5731. if test x$libgcrypt_config_prefix != x ; then
  5732. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5733. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5734. fi
  5735. fi
  5736. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5737. set dummy libgcrypt-config; ac_word=$2
  5738. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5739. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5740. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5741. echo $ECHO_N "(cached) $ECHO_C" >&6
  5742. else
  5743. case $LIBGCRYPT_CONFIG in
  5744. [\\/]* | ?:[\\/]*)
  5745. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5746. ;;
  5747. *)
  5748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5749. for as_dir in $PATH
  5750. do
  5751. IFS=$as_save_IFS
  5752. test -z "$as_dir" && as_dir=.
  5753. for ac_exec_ext in '' $ac_executable_extensions; do
  5754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5755. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5756. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5757. break 2
  5758. fi
  5759. done
  5760. done
  5761. IFS=$as_save_IFS
  5762. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5763. ;;
  5764. esac
  5765. fi
  5766. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5767. if test -n "$LIBGCRYPT_CONFIG"; then
  5768. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5769. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5770. else
  5771. { echo "$as_me:$LINENO: result: no" >&5
  5772. echo "${ECHO_T}no" >&6; }
  5773. fi
  5774. tmp=1.2.2
  5775. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5776. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5777. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5778. else
  5779. req_libgcrypt_api=0
  5780. min_libgcrypt_version="$tmp"
  5781. fi
  5782. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5783. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5784. ok=no
  5785. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5786. req_major=`echo $min_libgcrypt_version | \
  5787. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5788. req_minor=`echo $min_libgcrypt_version | \
  5789. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5790. req_micro=`echo $min_libgcrypt_version | \
  5791. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5792. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5793. major=`echo $libgcrypt_config_version | \
  5794. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5795. minor=`echo $libgcrypt_config_version | \
  5796. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5797. micro=`echo $libgcrypt_config_version | \
  5798. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5799. if test "$major" -gt "$req_major"; then
  5800. ok=yes
  5801. else
  5802. if test "$major" -eq "$req_major"; then
  5803. if test "$minor" -gt "$req_minor"; then
  5804. ok=yes
  5805. else
  5806. if test "$minor" -eq "$req_minor"; then
  5807. if test "$micro" -ge "$req_micro"; then
  5808. ok=yes
  5809. fi
  5810. fi
  5811. fi
  5812. fi
  5813. fi
  5814. fi
  5815. if test $ok = yes; then
  5816. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5817. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5818. else
  5819. { echo "$as_me:$LINENO: result: no" >&5
  5820. echo "${ECHO_T}no" >&6; }
  5821. fi
  5822. if test $ok = yes; then
  5823. # If we have a recent libgcrypt, we should also check that the
  5824. # API is compatible
  5825. if test "$req_libgcrypt_api" -gt 0 ; then
  5826. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5827. if test "$tmp" -gt 0 ; then
  5828. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5829. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5830. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5831. { echo "$as_me:$LINENO: result: okay" >&5
  5832. echo "${ECHO_T}okay" >&6; }
  5833. else
  5834. ok=no
  5835. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5836. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5837. fi
  5838. fi
  5839. fi
  5840. fi
  5841. if test $ok = yes; then
  5842. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5843. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5844. have_libgcrypt=yes
  5845. else
  5846. LIBGCRYPT_CFLAGS=""
  5847. LIBGCRYPT_LIBS=""
  5848. :
  5849. fi
  5850. if test "x$have_libgcrypt" = "xyes"; then
  5851. cat >>confdefs.h <<\_ACEOF
  5852. #define HAVE_LIBGCRYPT 1
  5853. _ACEOF
  5854. fi
  5855. fi
  5856. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5857. # Check whether --with-openssl-prefix was given.
  5858. if test "${with_openssl_prefix+set}" = set; then
  5859. withval=$with_openssl_prefix; openssl_prefix=$withval
  5860. else
  5861. openssl_prefix=""
  5862. fi
  5863. if test "x$openssl_prefix" = "x"; then
  5864. openssl_prefix="/usr/local"
  5865. fi
  5866. LIBS_save=$LIBS
  5867. CPPFLAGS_save=$CPPFLAGS
  5868. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  5869. if test -x $PKG_CONFIG; then
  5870. { echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  5871. echo $ECHO_N "checking checking availability of openssl using pkg-config... $ECHO_C" >&6; }
  5872. $PKG_CONFIG --exists openssl
  5873. if test "$?" = "0"; then
  5874. # Use pkg-config to detect LIBS and CFLAGS
  5875. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  5876. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5877. LIBS="$OPENSSL_LIBS $LIBS"
  5878. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  5879. have_openssl=yes
  5880. { echo "$as_me:$LINENO: result: yes" >&5
  5881. echo "${ECHO_T}yes" >&6; }
  5882. else
  5883. { echo "$as_me:$LINENO: result: no" >&5
  5884. echo "${ECHO_T}no" >&6; }
  5885. fi
  5886. fi
  5887. if test "x$have_openssl" != "xyes"; then
  5888. openssl_prefix_lib=$openssl_prefix/lib
  5889. openssl_prefix_include=$openssl_prefix/include
  5890. LIBS="-L$openssl_prefix_lib $LIBS"
  5891. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5892. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5893. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5894. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5895. echo $ECHO_N "(cached) $ECHO_C" >&6
  5896. else
  5897. ac_check_lib_save_LIBS=$LIBS
  5898. LIBS="-lssl $LIBS"
  5899. cat >conftest.$ac_ext <<_ACEOF
  5900. /* confdefs.h. */
  5901. _ACEOF
  5902. cat confdefs.h >>conftest.$ac_ext
  5903. cat >>conftest.$ac_ext <<_ACEOF
  5904. /* end confdefs.h. */
  5905. /* Override any GCC internal prototype to avoid an error.
  5906. Use char because int might match the return type of a GCC
  5907. builtin and then its argument prototype would still apply. */
  5908. #ifdef __cplusplus
  5909. extern "C"
  5910. #endif
  5911. char SSL_library_init ();
  5912. int
  5913. main ()
  5914. {
  5915. return SSL_library_init ();
  5916. ;
  5917. return 0;
  5918. }
  5919. _ACEOF
  5920. rm -f conftest.$ac_objext conftest$ac_exeext
  5921. if { (ac_try="$ac_link"
  5922. case "(($ac_try" in
  5923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5924. *) ac_try_echo=$ac_try;;
  5925. esac
  5926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5927. (eval "$ac_link") 2>conftest.er1
  5928. ac_status=$?
  5929. grep -v '^ *+' conftest.er1 >conftest.err
  5930. rm -f conftest.er1
  5931. cat conftest.err >&5
  5932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5933. (exit $ac_status); } && {
  5934. test -z "$ac_cxx_werror_flag" ||
  5935. test ! -s conftest.err
  5936. } && test -s conftest$ac_exeext &&
  5937. $as_test_x conftest$ac_exeext; then
  5938. ac_cv_lib_ssl_SSL_library_init=yes
  5939. else
  5940. echo "$as_me: failed program was:" >&5
  5941. sed 's/^/| /' conftest.$ac_ext >&5
  5942. ac_cv_lib_ssl_SSL_library_init=no
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5945. conftest$ac_exeext conftest.$ac_ext
  5946. LIBS=$ac_check_lib_save_LIBS
  5947. fi
  5948. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5949. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5950. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5951. have_openssl=yes LIBS="-lssl $LIBS"
  5952. fi
  5953. if test "x$have_openssl" = "xyes"; then
  5954. have_openssl=no
  5955. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5956. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5957. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5958. echo $ECHO_N "(cached) $ECHO_C" >&6
  5959. else
  5960. ac_check_lib_save_LIBS=$LIBS
  5961. LIBS="-lcrypto $LIBS"
  5962. cat >conftest.$ac_ext <<_ACEOF
  5963. /* confdefs.h. */
  5964. _ACEOF
  5965. cat confdefs.h >>conftest.$ac_ext
  5966. cat >>conftest.$ac_ext <<_ACEOF
  5967. /* end confdefs.h. */
  5968. int
  5969. main ()
  5970. {
  5971. return main ();
  5972. ;
  5973. return 0;
  5974. }
  5975. _ACEOF
  5976. rm -f conftest.$ac_objext conftest$ac_exeext
  5977. if { (ac_try="$ac_link"
  5978. case "(($ac_try" in
  5979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5980. *) ac_try_echo=$ac_try;;
  5981. esac
  5982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5983. (eval "$ac_link") 2>conftest.er1
  5984. ac_status=$?
  5985. grep -v '^ *+' conftest.er1 >conftest.err
  5986. rm -f conftest.er1
  5987. cat conftest.err >&5
  5988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5989. (exit $ac_status); } && {
  5990. test -z "$ac_cxx_werror_flag" ||
  5991. test ! -s conftest.err
  5992. } && test -s conftest$ac_exeext &&
  5993. $as_test_x conftest$ac_exeext; then
  5994. ac_cv_lib_crypto_main=yes
  5995. else
  5996. echo "$as_me: failed program was:" >&5
  5997. sed 's/^/| /' conftest.$ac_ext >&5
  5998. ac_cv_lib_crypto_main=no
  5999. fi
  6000. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6001. conftest$ac_exeext conftest.$ac_ext
  6002. LIBS=$ac_check_lib_save_LIBS
  6003. fi
  6004. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6005. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  6006. if test $ac_cv_lib_crypto_main = yes; then
  6007. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6008. fi
  6009. if test "x$have_openssl" = "xyes"; then
  6010. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6011. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6012. fi
  6013. fi
  6014. fi
  6015. if test "x$have_openssl" = "xyes"; then
  6016. cat >>confdefs.h <<\_ACEOF
  6017. #define HAVE_LIBSSL 1
  6018. _ACEOF
  6019. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6020. for ac_func in EVP_DigestInit_ex
  6021. do
  6022. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6023. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6024. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6025. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6026. echo $ECHO_N "(cached) $ECHO_C" >&6
  6027. else
  6028. cat >conftest.$ac_ext <<_ACEOF
  6029. /* confdefs.h. */
  6030. _ACEOF
  6031. cat confdefs.h >>conftest.$ac_ext
  6032. cat >>conftest.$ac_ext <<_ACEOF
  6033. /* end confdefs.h. */
  6034. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6035. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6036. #define $ac_func innocuous_$ac_func
  6037. /* System header to define __stub macros and hopefully few prototypes,
  6038. which can conflict with char $ac_func (); below.
  6039. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6040. <limits.h> exists even on freestanding compilers. */
  6041. #ifdef __STDC__
  6042. # include <limits.h>
  6043. #else
  6044. # include <assert.h>
  6045. #endif
  6046. #undef $ac_func
  6047. /* Override any GCC internal prototype to avoid an error.
  6048. Use char because int might match the return type of a GCC
  6049. builtin and then its argument prototype would still apply. */
  6050. #ifdef __cplusplus
  6051. extern "C"
  6052. #endif
  6053. char $ac_func ();
  6054. /* The GNU C library defines this for functions which it implements
  6055. to always fail with ENOSYS. Some functions are actually named
  6056. something starting with __ and the normal name is an alias. */
  6057. #if defined __stub_$ac_func || defined __stub___$ac_func
  6058. choke me
  6059. #endif
  6060. int
  6061. main ()
  6062. {
  6063. return $ac_func ();
  6064. ;
  6065. return 0;
  6066. }
  6067. _ACEOF
  6068. rm -f conftest.$ac_objext conftest$ac_exeext
  6069. if { (ac_try="$ac_link"
  6070. case "(($ac_try" in
  6071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6072. *) ac_try_echo=$ac_try;;
  6073. esac
  6074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6075. (eval "$ac_link") 2>conftest.er1
  6076. ac_status=$?
  6077. grep -v '^ *+' conftest.er1 >conftest.err
  6078. rm -f conftest.er1
  6079. cat conftest.err >&5
  6080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6081. (exit $ac_status); } && {
  6082. test -z "$ac_cxx_werror_flag" ||
  6083. test ! -s conftest.err
  6084. } && test -s conftest$ac_exeext &&
  6085. $as_test_x conftest$ac_exeext; then
  6086. eval "$as_ac_var=yes"
  6087. else
  6088. echo "$as_me: failed program was:" >&5
  6089. sed 's/^/| /' conftest.$ac_ext >&5
  6090. eval "$as_ac_var=no"
  6091. fi
  6092. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6093. conftest$ac_exeext conftest.$ac_ext
  6094. fi
  6095. ac_res=`eval echo '${'$as_ac_var'}'`
  6096. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6097. echo "${ECHO_T}$ac_res" >&6; }
  6098. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6099. cat >>confdefs.h <<_ACEOF
  6100. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6101. _ACEOF
  6102. have_digestinit_ex=yes
  6103. fi
  6104. done
  6105. if test "x$have_digestinit_ex" = "x"; then
  6106. cat >>confdefs.h <<\_ACEOF
  6107. #define HAVE_OLD_LIBSSL 1
  6108. _ACEOF
  6109. fi
  6110. # search for sha256 support
  6111. for ac_func in EVP_sha256
  6112. do
  6113. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6114. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6115. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6116. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6117. echo $ECHO_N "(cached) $ECHO_C" >&6
  6118. else
  6119. cat >conftest.$ac_ext <<_ACEOF
  6120. /* confdefs.h. */
  6121. _ACEOF
  6122. cat confdefs.h >>conftest.$ac_ext
  6123. cat >>conftest.$ac_ext <<_ACEOF
  6124. /* end confdefs.h. */
  6125. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6126. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6127. #define $ac_func innocuous_$ac_func
  6128. /* System header to define __stub macros and hopefully few prototypes,
  6129. which can conflict with char $ac_func (); below.
  6130. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6131. <limits.h> exists even on freestanding compilers. */
  6132. #ifdef __STDC__
  6133. # include <limits.h>
  6134. #else
  6135. # include <assert.h>
  6136. #endif
  6137. #undef $ac_func
  6138. /* Override any GCC internal prototype to avoid an error.
  6139. Use char because int might match the return type of a GCC
  6140. builtin and then its argument prototype would still apply. */
  6141. #ifdef __cplusplus
  6142. extern "C"
  6143. #endif
  6144. char $ac_func ();
  6145. /* The GNU C library defines this for functions which it implements
  6146. to always fail with ENOSYS. Some functions are actually named
  6147. something starting with __ and the normal name is an alias. */
  6148. #if defined __stub_$ac_func || defined __stub___$ac_func
  6149. choke me
  6150. #endif
  6151. int
  6152. main ()
  6153. {
  6154. return $ac_func ();
  6155. ;
  6156. return 0;
  6157. }
  6158. _ACEOF
  6159. rm -f conftest.$ac_objext conftest$ac_exeext
  6160. if { (ac_try="$ac_link"
  6161. case "(($ac_try" in
  6162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6163. *) ac_try_echo=$ac_try;;
  6164. esac
  6165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6166. (eval "$ac_link") 2>conftest.er1
  6167. ac_status=$?
  6168. grep -v '^ *+' conftest.er1 >conftest.err
  6169. rm -f conftest.er1
  6170. cat conftest.err >&5
  6171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6172. (exit $ac_status); } && {
  6173. test -z "$ac_cxx_werror_flag" ||
  6174. test ! -s conftest.err
  6175. } && test -s conftest$ac_exeext &&
  6176. $as_test_x conftest$ac_exeext; then
  6177. eval "$as_ac_var=yes"
  6178. else
  6179. echo "$as_me: failed program was:" >&5
  6180. sed 's/^/| /' conftest.$ac_ext >&5
  6181. eval "$as_ac_var=no"
  6182. fi
  6183. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6184. conftest$ac_exeext conftest.$ac_ext
  6185. fi
  6186. ac_res=`eval echo '${'$as_ac_var'}'`
  6187. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6188. echo "${ECHO_T}$ac_res" >&6; }
  6189. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6190. cat >>confdefs.h <<_ACEOF
  6191. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6192. _ACEOF
  6193. fi
  6194. done
  6195. fi
  6196. LIBS=$LIBS_save
  6197. CPPFLAGS=$CPPFLAGS_save
  6198. fi
  6199. if test "x$with_libcares" = "xyes"; then
  6200. # Check whether --with-libcares-prefix was given.
  6201. if test "${with_libcares_prefix+set}" = set; then
  6202. withval=$with_libcares_prefix; libcares_prefix=$withval
  6203. else
  6204. libcares_prefix=""
  6205. fi
  6206. if test "x$libcares_prefix" = "x"; then
  6207. libcares_prefix="/usr"
  6208. fi
  6209. libcares_prefix_lib=$libcares_prefix/lib
  6210. libcares_prefix_include=$libcares_prefix/include
  6211. LIBS_save=$LIBS
  6212. CPPFLAGS_save=$CPPFLAGS
  6213. LIBS="-L$libcares_prefix_lib $LIBS"
  6214. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6215. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6216. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6217. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6218. echo $ECHO_N "(cached) $ECHO_C" >&6
  6219. else
  6220. ac_check_lib_save_LIBS=$LIBS
  6221. LIBS="-lcares $LIBS"
  6222. cat >conftest.$ac_ext <<_ACEOF
  6223. /* confdefs.h. */
  6224. _ACEOF
  6225. cat confdefs.h >>conftest.$ac_ext
  6226. cat >>conftest.$ac_ext <<_ACEOF
  6227. /* end confdefs.h. */
  6228. /* Override any GCC internal prototype to avoid an error.
  6229. Use char because int might match the return type of a GCC
  6230. builtin and then its argument prototype would still apply. */
  6231. #ifdef __cplusplus
  6232. extern "C"
  6233. #endif
  6234. char ares_init ();
  6235. int
  6236. main ()
  6237. {
  6238. return ares_init ();
  6239. ;
  6240. return 0;
  6241. }
  6242. _ACEOF
  6243. rm -f conftest.$ac_objext conftest$ac_exeext
  6244. if { (ac_try="$ac_link"
  6245. case "(($ac_try" in
  6246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6247. *) ac_try_echo=$ac_try;;
  6248. esac
  6249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6250. (eval "$ac_link") 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } && {
  6257. test -z "$ac_cxx_werror_flag" ||
  6258. test ! -s conftest.err
  6259. } && test -s conftest$ac_exeext &&
  6260. $as_test_x conftest$ac_exeext; then
  6261. ac_cv_lib_cares_ares_init=yes
  6262. else
  6263. echo "$as_me: failed program was:" >&5
  6264. sed 's/^/| /' conftest.$ac_ext >&5
  6265. ac_cv_lib_cares_ares_init=no
  6266. fi
  6267. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6268. conftest$ac_exeext conftest.$ac_ext
  6269. LIBS=$ac_check_lib_save_LIBS
  6270. fi
  6271. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6272. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6273. if test $ac_cv_lib_cares_ares_init = yes; then
  6274. have_libcares=yes
  6275. fi
  6276. if test "x$have_libcares" != "xyes"; then
  6277. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6278. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6279. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6280. echo $ECHO_N "(cached) $ECHO_C" >&6
  6281. else
  6282. ac_check_lib_save_LIBS=$LIBS
  6283. LIBS="-lcares -lrt $LIBS"
  6284. cat >conftest.$ac_ext <<_ACEOF
  6285. /* confdefs.h. */
  6286. _ACEOF
  6287. cat confdefs.h >>conftest.$ac_ext
  6288. cat >>conftest.$ac_ext <<_ACEOF
  6289. /* end confdefs.h. */
  6290. /* Override any GCC internal prototype to avoid an error.
  6291. Use char because int might match the return type of a GCC
  6292. builtin and then its argument prototype would still apply. */
  6293. #ifdef __cplusplus
  6294. extern "C"
  6295. #endif
  6296. char ares_init ();
  6297. int
  6298. main ()
  6299. {
  6300. return ares_init ();
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. rm -f conftest.$ac_objext conftest$ac_exeext
  6306. if { (ac_try="$ac_link"
  6307. case "(($ac_try" in
  6308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6309. *) ac_try_echo=$ac_try;;
  6310. esac
  6311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6312. (eval "$ac_link") 2>conftest.er1
  6313. ac_status=$?
  6314. grep -v '^ *+' conftest.er1 >conftest.err
  6315. rm -f conftest.er1
  6316. cat conftest.err >&5
  6317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6318. (exit $ac_status); } && {
  6319. test -z "$ac_cxx_werror_flag" ||
  6320. test ! -s conftest.err
  6321. } && test -s conftest$ac_exeext &&
  6322. $as_test_x conftest$ac_exeext; then
  6323. ac_cv_lib_cares_ares_init=yes
  6324. else
  6325. echo "$as_me: failed program was:" >&5
  6326. sed 's/^/| /' conftest.$ac_ext >&5
  6327. ac_cv_lib_cares_ares_init=no
  6328. fi
  6329. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6330. conftest$ac_exeext conftest.$ac_ext
  6331. LIBS=$ac_check_lib_save_LIBS
  6332. fi
  6333. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6334. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6335. if test $ac_cv_lib_cares_ares_init = yes; then
  6336. have_libcares=yes need_librt=yes
  6337. fi
  6338. fi
  6339. if test "x$have_libcares" = "xyes"; then
  6340. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6341. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6342. cat >conftest.$ac_ext <<_ACEOF
  6343. /* confdefs.h. */
  6344. _ACEOF
  6345. cat confdefs.h >>conftest.$ac_ext
  6346. cat >>conftest.$ac_ext <<_ACEOF
  6347. /* end confdefs.h. */
  6348. #include <ares.h>
  6349. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6350. int
  6351. main ()
  6352. {
  6353. ares_channel channel;
  6354. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6355. ;
  6356. return 0;
  6357. }
  6358. _ACEOF
  6359. rm -f conftest.$ac_objext
  6360. if { (ac_try="$ac_compile"
  6361. case "(($ac_try" in
  6362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6363. *) ac_try_echo=$ac_try;;
  6364. esac
  6365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6366. (eval "$ac_compile") 2>conftest.er1
  6367. ac_status=$?
  6368. grep -v '^ *+' conftest.er1 >conftest.err
  6369. rm -f conftest.er1
  6370. cat conftest.err >&5
  6371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6372. (exit $ac_status); } && {
  6373. test -z "$ac_cxx_werror_flag" ||
  6374. test ! -s conftest.err
  6375. } && test -s conftest.$ac_objext; then
  6376. have_libcares1_5=yes
  6377. else
  6378. echo "$as_me: failed program was:" >&5
  6379. sed 's/^/| /' conftest.$ac_ext >&5
  6380. have_libcares1_5=no
  6381. fi
  6382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6383. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6384. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6385. if test "x$have_libcares1_5" = "xyes"; then
  6386. cat >>confdefs.h <<\_ACEOF
  6387. #define HAVE_LIBCARES1_5 1
  6388. _ACEOF
  6389. fi
  6390. cat >>confdefs.h <<\_ACEOF
  6391. #define HAVE_LIBCARES 1
  6392. _ACEOF
  6393. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6394. if test "x$need_librt" = "xyes"; then
  6395. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6396. fi
  6397. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6398. fi
  6399. LIBS=$LIBS_save
  6400. CPPFLAGS=$CPPFLAGS_save
  6401. fi
  6402. if test "x$have_libcares" = "x"; then
  6403. if test "x$with_libares" = "xyes"; then
  6404. # Check whether --with-libares-prefix was given.
  6405. if test "${with_libares_prefix+set}" = set; then
  6406. withval=$with_libares_prefix; libares_prefix=$withval
  6407. else
  6408. libares_prefix=""
  6409. fi
  6410. if test "x$libares_prefix" = "x"; then
  6411. libares_prefix="/usr"
  6412. fi
  6413. libares_prefix_lib=$libares_prefix/lib
  6414. libares_prefix_include=$libares_prefix/include
  6415. LIBS_save=$LIBS
  6416. CPPFLAGS_save=$CPPFLAGS
  6417. LIBS="-L$libares_prefix_lib $LIBS"
  6418. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6419. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6420. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6421. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6422. echo $ECHO_N "(cached) $ECHO_C" >&6
  6423. else
  6424. ac_check_lib_save_LIBS=$LIBS
  6425. LIBS="-lares $LIBS"
  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. /* Override any GCC internal prototype to avoid an error.
  6433. Use char because int might match the return type of a GCC
  6434. builtin and then its argument prototype would still apply. */
  6435. #ifdef __cplusplus
  6436. extern "C"
  6437. #endif
  6438. char ares_init ();
  6439. int
  6440. main ()
  6441. {
  6442. return ares_init ();
  6443. ;
  6444. return 0;
  6445. }
  6446. _ACEOF
  6447. rm -f conftest.$ac_objext conftest$ac_exeext
  6448. if { (ac_try="$ac_link"
  6449. case "(($ac_try" in
  6450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6451. *) ac_try_echo=$ac_try;;
  6452. esac
  6453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6454. (eval "$ac_link") 2>conftest.er1
  6455. ac_status=$?
  6456. grep -v '^ *+' conftest.er1 >conftest.err
  6457. rm -f conftest.er1
  6458. cat conftest.err >&5
  6459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6460. (exit $ac_status); } && {
  6461. test -z "$ac_cxx_werror_flag" ||
  6462. test ! -s conftest.err
  6463. } && test -s conftest$ac_exeext &&
  6464. $as_test_x conftest$ac_exeext; then
  6465. ac_cv_lib_ares_ares_init=yes
  6466. else
  6467. echo "$as_me: failed program was:" >&5
  6468. sed 's/^/| /' conftest.$ac_ext >&5
  6469. ac_cv_lib_ares_ares_init=no
  6470. fi
  6471. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6472. conftest$ac_exeext conftest.$ac_ext
  6473. LIBS=$ac_check_lib_save_LIBS
  6474. fi
  6475. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6476. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6477. if test $ac_cv_lib_ares_ares_init = yes; then
  6478. have_libares=yes
  6479. fi
  6480. if test "x$have_libares" = "xyes"; then
  6481. cat >>confdefs.h <<\_ACEOF
  6482. #define HAVE_LIBARES 1
  6483. _ACEOF
  6484. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6485. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6486. fi
  6487. LIBS=$LIBS_save
  6488. CPPFLAGS=$CPPFLAGS_save
  6489. fi
  6490. fi
  6491. # Check availability of libz
  6492. if test "x$with_libz" = "xyes"; then
  6493. # Check whether --with-libz-prefix was given.
  6494. if test "${with_libz_prefix+set}" = set; then
  6495. withval=$with_libz_prefix; libz_prefix=$withval
  6496. else
  6497. libz_prefix=""
  6498. fi
  6499. if test "x$libz_prefix" = "x"; then
  6500. libz_prefix="/usr"
  6501. fi
  6502. libz_prefix_lib=$libz_prefix/lib
  6503. libz_prefix_include=$libz_prefix/include
  6504. LIBS_save=$LIBS
  6505. CPPFLAGS_save=$CPPFLAGS
  6506. LIBS="-L$libz_prefix_lib $LIBS"
  6507. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6508. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6509. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6510. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6511. echo $ECHO_N "(cached) $ECHO_C" >&6
  6512. else
  6513. ac_check_lib_save_LIBS=$LIBS
  6514. LIBS="-lz $LIBS"
  6515. cat >conftest.$ac_ext <<_ACEOF
  6516. /* confdefs.h. */
  6517. _ACEOF
  6518. cat confdefs.h >>conftest.$ac_ext
  6519. cat >>conftest.$ac_ext <<_ACEOF
  6520. /* end confdefs.h. */
  6521. /* Override any GCC internal prototype to avoid an error.
  6522. Use char because int might match the return type of a GCC
  6523. builtin and then its argument prototype would still apply. */
  6524. #ifdef __cplusplus
  6525. extern "C"
  6526. #endif
  6527. char zlibVersion ();
  6528. int
  6529. main ()
  6530. {
  6531. return zlibVersion ();
  6532. ;
  6533. return 0;
  6534. }
  6535. _ACEOF
  6536. rm -f conftest.$ac_objext conftest$ac_exeext
  6537. if { (ac_try="$ac_link"
  6538. case "(($ac_try" in
  6539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6540. *) ac_try_echo=$ac_try;;
  6541. esac
  6542. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6543. (eval "$ac_link") 2>conftest.er1
  6544. ac_status=$?
  6545. grep -v '^ *+' conftest.er1 >conftest.err
  6546. rm -f conftest.er1
  6547. cat conftest.err >&5
  6548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6549. (exit $ac_status); } && {
  6550. test -z "$ac_cxx_werror_flag" ||
  6551. test ! -s conftest.err
  6552. } && test -s conftest$ac_exeext &&
  6553. $as_test_x conftest$ac_exeext; then
  6554. ac_cv_lib_z_zlibVersion=yes
  6555. else
  6556. echo "$as_me: failed program was:" >&5
  6557. sed 's/^/| /' conftest.$ac_ext >&5
  6558. ac_cv_lib_z_zlibVersion=no
  6559. fi
  6560. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6561. conftest$ac_exeext conftest.$ac_ext
  6562. LIBS=$ac_check_lib_save_LIBS
  6563. fi
  6564. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6565. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6566. if test $ac_cv_lib_z_zlibVersion = yes; then
  6567. have_libz=yes
  6568. fi
  6569. if test "x$have_libz" = "xyes"; then
  6570. cat >>confdefs.h <<\_ACEOF
  6571. #define HAVE_LIBZ 1
  6572. _ACEOF
  6573. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6574. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6575. fi
  6576. LIBS=$LIBS_save
  6577. CPPFLAGS=$CPPFLAGS_save
  6578. fi
  6579. # Define variables based on the result of the checks for libraries.
  6580. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6581. cat >>confdefs.h <<\_ACEOF
  6582. #define ENABLE_SSL 1
  6583. _ACEOF
  6584. if true; then
  6585. ENABLE_SSL_TRUE=
  6586. ENABLE_SSL_FALSE='#'
  6587. else
  6588. ENABLE_SSL_TRUE='#'
  6589. ENABLE_SSL_FALSE=
  6590. fi
  6591. else
  6592. if false; then
  6593. ENABLE_SSL_TRUE=
  6594. ENABLE_SSL_FALSE='#'
  6595. else
  6596. ENABLE_SSL_TRUE='#'
  6597. ENABLE_SSL_FALSE=
  6598. fi
  6599. fi
  6600. if test "x$have_libgnutls" = "xyes" ; then
  6601. HAVE_LIBGNUTLS_TRUE=
  6602. HAVE_LIBGNUTLS_FALSE='#'
  6603. else
  6604. HAVE_LIBGNUTLS_TRUE='#'
  6605. HAVE_LIBGNUTLS_FALSE=
  6606. fi
  6607. if test "x$have_openssl" = "xyes" ; then
  6608. HAVE_LIBSSL_TRUE=
  6609. HAVE_LIBSSL_FALSE='#'
  6610. else
  6611. HAVE_LIBSSL_TRUE='#'
  6612. HAVE_LIBSSL_FALSE=
  6613. fi
  6614. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6615. cat >>confdefs.h <<\_ACEOF
  6616. #define ENABLE_MESSAGE_DIGEST 1
  6617. _ACEOF
  6618. if true; then
  6619. ENABLE_MESSAGE_DIGEST_TRUE=
  6620. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6621. else
  6622. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6623. ENABLE_MESSAGE_DIGEST_FALSE=
  6624. fi
  6625. enable_message_digest=yes
  6626. else
  6627. if false; then
  6628. ENABLE_MESSAGE_DIGEST_TRUE=
  6629. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6630. else
  6631. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6632. ENABLE_MESSAGE_DIGEST_FALSE=
  6633. fi
  6634. fi
  6635. if test "x$enable_bittorrent" = "xyes" &&
  6636. test "x$enable_message_digest" = "xyes"; then
  6637. cat >>confdefs.h <<\_ACEOF
  6638. #define ENABLE_BITTORRENT 1
  6639. _ACEOF
  6640. if true; then
  6641. ENABLE_BITTORRENT_TRUE=
  6642. ENABLE_BITTORRENT_FALSE='#'
  6643. else
  6644. ENABLE_BITTORRENT_TRUE='#'
  6645. ENABLE_BITTORRENT_FALSE=
  6646. fi
  6647. else
  6648. enable_bittorrent=no
  6649. if false; then
  6650. ENABLE_BITTORRENT_TRUE=
  6651. ENABLE_BITTORRENT_FALSE='#'
  6652. else
  6653. ENABLE_BITTORRENT_TRUE='#'
  6654. ENABLE_BITTORRENT_FALSE=
  6655. fi
  6656. fi
  6657. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6658. test "x$enable_metalink" = "xyes"; then
  6659. cat >>confdefs.h <<\_ACEOF
  6660. #define ENABLE_METALINK 1
  6661. _ACEOF
  6662. if true; then
  6663. ENABLE_METALINK_TRUE=
  6664. ENABLE_METALINK_FALSE='#'
  6665. else
  6666. ENABLE_METALINK_TRUE='#'
  6667. ENABLE_METALINK_FALSE=
  6668. fi
  6669. else
  6670. enable_metalink=no
  6671. if false; then
  6672. ENABLE_METALINK_TRUE=
  6673. ENABLE_METALINK_FALSE='#'
  6674. else
  6675. ENABLE_METALINK_TRUE='#'
  6676. ENABLE_METALINK_FALSE=
  6677. fi
  6678. fi
  6679. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6680. ENABLE_LIBXML2_TRUE=
  6681. ENABLE_LIBXML2_FALSE='#'
  6682. else
  6683. ENABLE_LIBXML2_TRUE='#'
  6684. ENABLE_LIBXML2_FALSE=
  6685. fi
  6686. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6687. ENABLE_LIBEXPAT_TRUE=
  6688. ENABLE_LIBEXPAT_FALSE='#'
  6689. else
  6690. ENABLE_LIBEXPAT_TRUE='#'
  6691. ENABLE_LIBEXPAT_FALSE=
  6692. fi
  6693. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6694. cat >>confdefs.h <<\_ACEOF
  6695. #define ENABLE_ASYNC_DNS 1
  6696. _ACEOF
  6697. if true; then
  6698. ENABLE_ASYNC_DNS_TRUE=
  6699. ENABLE_ASYNC_DNS_FALSE='#'
  6700. else
  6701. ENABLE_ASYNC_DNS_TRUE='#'
  6702. ENABLE_ASYNC_DNS_FALSE=
  6703. fi
  6704. else
  6705. if false; then
  6706. ENABLE_ASYNC_DNS_TRUE=
  6707. ENABLE_ASYNC_DNS_FALSE='#'
  6708. else
  6709. ENABLE_ASYNC_DNS_TRUE='#'
  6710. ENABLE_ASYNC_DNS_FALSE=
  6711. fi
  6712. fi
  6713. # Set conditional for libz
  6714. if test "x$have_libz" = "xyes"; then
  6715. HAVE_LIBZ_TRUE=
  6716. HAVE_LIBZ_FALSE='#'
  6717. else
  6718. HAVE_LIBZ_TRUE='#'
  6719. HAVE_LIBZ_FALSE=
  6720. fi
  6721. # Set conditional for sqlite3
  6722. if test "x$have_sqlite3" = "xyes"; then
  6723. HAVE_SQLITE3_TRUE=
  6724. HAVE_SQLITE3_FALSE='#'
  6725. else
  6726. HAVE_SQLITE3_TRUE='#'
  6727. HAVE_SQLITE3_FALSE=
  6728. fi
  6729. # Checks for header files.
  6730. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6731. # for constant arguments. Useless!
  6732. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6733. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6734. if test "${ac_cv_working_alloca_h+set}" = set; then
  6735. echo $ECHO_N "(cached) $ECHO_C" >&6
  6736. else
  6737. cat >conftest.$ac_ext <<_ACEOF
  6738. /* confdefs.h. */
  6739. _ACEOF
  6740. cat confdefs.h >>conftest.$ac_ext
  6741. cat >>conftest.$ac_ext <<_ACEOF
  6742. /* end confdefs.h. */
  6743. #include <alloca.h>
  6744. int
  6745. main ()
  6746. {
  6747. char *p = (char *) alloca (2 * sizeof (int));
  6748. if (p) return 0;
  6749. ;
  6750. return 0;
  6751. }
  6752. _ACEOF
  6753. rm -f conftest.$ac_objext conftest$ac_exeext
  6754. if { (ac_try="$ac_link"
  6755. case "(($ac_try" in
  6756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6757. *) ac_try_echo=$ac_try;;
  6758. esac
  6759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6760. (eval "$ac_link") 2>conftest.er1
  6761. ac_status=$?
  6762. grep -v '^ *+' conftest.er1 >conftest.err
  6763. rm -f conftest.er1
  6764. cat conftest.err >&5
  6765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6766. (exit $ac_status); } && {
  6767. test -z "$ac_cxx_werror_flag" ||
  6768. test ! -s conftest.err
  6769. } && test -s conftest$ac_exeext &&
  6770. $as_test_x conftest$ac_exeext; then
  6771. ac_cv_working_alloca_h=yes
  6772. else
  6773. echo "$as_me: failed program was:" >&5
  6774. sed 's/^/| /' conftest.$ac_ext >&5
  6775. ac_cv_working_alloca_h=no
  6776. fi
  6777. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6778. conftest$ac_exeext conftest.$ac_ext
  6779. fi
  6780. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6781. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6782. if test $ac_cv_working_alloca_h = yes; then
  6783. cat >>confdefs.h <<\_ACEOF
  6784. #define HAVE_ALLOCA_H 1
  6785. _ACEOF
  6786. fi
  6787. { echo "$as_me:$LINENO: checking for alloca" >&5
  6788. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6789. if test "${ac_cv_func_alloca_works+set}" = set; then
  6790. echo $ECHO_N "(cached) $ECHO_C" >&6
  6791. else
  6792. cat >conftest.$ac_ext <<_ACEOF
  6793. /* confdefs.h. */
  6794. _ACEOF
  6795. cat confdefs.h >>conftest.$ac_ext
  6796. cat >>conftest.$ac_ext <<_ACEOF
  6797. /* end confdefs.h. */
  6798. #ifdef __GNUC__
  6799. # define alloca __builtin_alloca
  6800. #else
  6801. # ifdef _MSC_VER
  6802. # include <malloc.h>
  6803. # define alloca _alloca
  6804. # else
  6805. # ifdef HAVE_ALLOCA_H
  6806. # include <alloca.h>
  6807. # else
  6808. # ifdef _AIX
  6809. #pragma alloca
  6810. # else
  6811. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6812. char *alloca ();
  6813. # endif
  6814. # endif
  6815. # endif
  6816. # endif
  6817. #endif
  6818. int
  6819. main ()
  6820. {
  6821. char *p = (char *) alloca (1);
  6822. if (p) return 0;
  6823. ;
  6824. return 0;
  6825. }
  6826. _ACEOF
  6827. rm -f conftest.$ac_objext conftest$ac_exeext
  6828. if { (ac_try="$ac_link"
  6829. case "(($ac_try" in
  6830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6831. *) ac_try_echo=$ac_try;;
  6832. esac
  6833. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6834. (eval "$ac_link") 2>conftest.er1
  6835. ac_status=$?
  6836. grep -v '^ *+' conftest.er1 >conftest.err
  6837. rm -f conftest.er1
  6838. cat conftest.err >&5
  6839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6840. (exit $ac_status); } && {
  6841. test -z "$ac_cxx_werror_flag" ||
  6842. test ! -s conftest.err
  6843. } && test -s conftest$ac_exeext &&
  6844. $as_test_x conftest$ac_exeext; then
  6845. ac_cv_func_alloca_works=yes
  6846. else
  6847. echo "$as_me: failed program was:" >&5
  6848. sed 's/^/| /' conftest.$ac_ext >&5
  6849. ac_cv_func_alloca_works=no
  6850. fi
  6851. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6852. conftest$ac_exeext conftest.$ac_ext
  6853. fi
  6854. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6855. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6856. if test $ac_cv_func_alloca_works = yes; then
  6857. cat >>confdefs.h <<\_ACEOF
  6858. #define HAVE_ALLOCA 1
  6859. _ACEOF
  6860. else
  6861. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6862. # that cause trouble. Some versions do not even contain alloca or
  6863. # contain a buggy version. If you still want to use their alloca,
  6864. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6865. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6866. cat >>confdefs.h <<\_ACEOF
  6867. #define C_ALLOCA 1
  6868. _ACEOF
  6869. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6870. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6871. if test "${ac_cv_os_cray+set}" = set; then
  6872. echo $ECHO_N "(cached) $ECHO_C" >&6
  6873. else
  6874. cat >conftest.$ac_ext <<_ACEOF
  6875. /* confdefs.h. */
  6876. _ACEOF
  6877. cat confdefs.h >>conftest.$ac_ext
  6878. cat >>conftest.$ac_ext <<_ACEOF
  6879. /* end confdefs.h. */
  6880. #if defined CRAY && ! defined CRAY2
  6881. webecray
  6882. #else
  6883. wenotbecray
  6884. #endif
  6885. _ACEOF
  6886. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6887. $EGREP "webecray" >/dev/null 2>&1; then
  6888. ac_cv_os_cray=yes
  6889. else
  6890. ac_cv_os_cray=no
  6891. fi
  6892. rm -f conftest*
  6893. fi
  6894. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6895. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6896. if test $ac_cv_os_cray = yes; then
  6897. for ac_func in _getb67 GETB67 getb67; do
  6898. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6899. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6900. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6901. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6902. echo $ECHO_N "(cached) $ECHO_C" >&6
  6903. else
  6904. cat >conftest.$ac_ext <<_ACEOF
  6905. /* confdefs.h. */
  6906. _ACEOF
  6907. cat confdefs.h >>conftest.$ac_ext
  6908. cat >>conftest.$ac_ext <<_ACEOF
  6909. /* end confdefs.h. */
  6910. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6911. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6912. #define $ac_func innocuous_$ac_func
  6913. /* System header to define __stub macros and hopefully few prototypes,
  6914. which can conflict with char $ac_func (); below.
  6915. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6916. <limits.h> exists even on freestanding compilers. */
  6917. #ifdef __STDC__
  6918. # include <limits.h>
  6919. #else
  6920. # include <assert.h>
  6921. #endif
  6922. #undef $ac_func
  6923. /* Override any GCC internal prototype to avoid an error.
  6924. Use char because int might match the return type of a GCC
  6925. builtin and then its argument prototype would still apply. */
  6926. #ifdef __cplusplus
  6927. extern "C"
  6928. #endif
  6929. char $ac_func ();
  6930. /* The GNU C library defines this for functions which it implements
  6931. to always fail with ENOSYS. Some functions are actually named
  6932. something starting with __ and the normal name is an alias. */
  6933. #if defined __stub_$ac_func || defined __stub___$ac_func
  6934. choke me
  6935. #endif
  6936. int
  6937. main ()
  6938. {
  6939. return $ac_func ();
  6940. ;
  6941. return 0;
  6942. }
  6943. _ACEOF
  6944. rm -f conftest.$ac_objext conftest$ac_exeext
  6945. if { (ac_try="$ac_link"
  6946. case "(($ac_try" in
  6947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6948. *) ac_try_echo=$ac_try;;
  6949. esac
  6950. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6951. (eval "$ac_link") 2>conftest.er1
  6952. ac_status=$?
  6953. grep -v '^ *+' conftest.er1 >conftest.err
  6954. rm -f conftest.er1
  6955. cat conftest.err >&5
  6956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6957. (exit $ac_status); } && {
  6958. test -z "$ac_cxx_werror_flag" ||
  6959. test ! -s conftest.err
  6960. } && test -s conftest$ac_exeext &&
  6961. $as_test_x conftest$ac_exeext; then
  6962. eval "$as_ac_var=yes"
  6963. else
  6964. echo "$as_me: failed program was:" >&5
  6965. sed 's/^/| /' conftest.$ac_ext >&5
  6966. eval "$as_ac_var=no"
  6967. fi
  6968. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6969. conftest$ac_exeext conftest.$ac_ext
  6970. fi
  6971. ac_res=`eval echo '${'$as_ac_var'}'`
  6972. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6973. echo "${ECHO_T}$ac_res" >&6; }
  6974. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6975. cat >>confdefs.h <<_ACEOF
  6976. #define CRAY_STACKSEG_END $ac_func
  6977. _ACEOF
  6978. break
  6979. fi
  6980. done
  6981. fi
  6982. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6983. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6984. if test "${ac_cv_c_stack_direction+set}" = set; then
  6985. echo $ECHO_N "(cached) $ECHO_C" >&6
  6986. else
  6987. if test "$cross_compiling" = yes; then
  6988. ac_cv_c_stack_direction=0
  6989. else
  6990. cat >conftest.$ac_ext <<_ACEOF
  6991. /* confdefs.h. */
  6992. _ACEOF
  6993. cat confdefs.h >>conftest.$ac_ext
  6994. cat >>conftest.$ac_ext <<_ACEOF
  6995. /* end confdefs.h. */
  6996. $ac_includes_default
  6997. int
  6998. find_stack_direction ()
  6999. {
  7000. static char *addr = 0;
  7001. auto char dummy;
  7002. if (addr == 0)
  7003. {
  7004. addr = &dummy;
  7005. return find_stack_direction ();
  7006. }
  7007. else
  7008. return (&dummy > addr) ? 1 : -1;
  7009. }
  7010. int
  7011. main ()
  7012. {
  7013. return find_stack_direction () < 0;
  7014. }
  7015. _ACEOF
  7016. rm -f conftest$ac_exeext
  7017. if { (ac_try="$ac_link"
  7018. case "(($ac_try" in
  7019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7020. *) ac_try_echo=$ac_try;;
  7021. esac
  7022. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7023. (eval "$ac_link") 2>&5
  7024. ac_status=$?
  7025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7026. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7027. { (case "(($ac_try" in
  7028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7029. *) ac_try_echo=$ac_try;;
  7030. esac
  7031. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7032. (eval "$ac_try") 2>&5
  7033. ac_status=$?
  7034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7035. (exit $ac_status); }; }; then
  7036. ac_cv_c_stack_direction=1
  7037. else
  7038. echo "$as_me: program exited with status $ac_status" >&5
  7039. echo "$as_me: failed program was:" >&5
  7040. sed 's/^/| /' conftest.$ac_ext >&5
  7041. ( exit $ac_status )
  7042. ac_cv_c_stack_direction=-1
  7043. fi
  7044. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7045. fi
  7046. fi
  7047. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7048. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  7049. cat >>confdefs.h <<_ACEOF
  7050. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7051. _ACEOF
  7052. fi
  7053. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7054. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  7055. if test "${ac_cv_header_stdc+set}" = set; then
  7056. echo $ECHO_N "(cached) $ECHO_C" >&6
  7057. else
  7058. cat >conftest.$ac_ext <<_ACEOF
  7059. /* confdefs.h. */
  7060. _ACEOF
  7061. cat confdefs.h >>conftest.$ac_ext
  7062. cat >>conftest.$ac_ext <<_ACEOF
  7063. /* end confdefs.h. */
  7064. #include <stdlib.h>
  7065. #include <stdarg.h>
  7066. #include <string.h>
  7067. #include <float.h>
  7068. int
  7069. main ()
  7070. {
  7071. ;
  7072. return 0;
  7073. }
  7074. _ACEOF
  7075. rm -f conftest.$ac_objext
  7076. if { (ac_try="$ac_compile"
  7077. case "(($ac_try" in
  7078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7079. *) ac_try_echo=$ac_try;;
  7080. esac
  7081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7082. (eval "$ac_compile") 2>conftest.er1
  7083. ac_status=$?
  7084. grep -v '^ *+' conftest.er1 >conftest.err
  7085. rm -f conftest.er1
  7086. cat conftest.err >&5
  7087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7088. (exit $ac_status); } && {
  7089. test -z "$ac_cxx_werror_flag" ||
  7090. test ! -s conftest.err
  7091. } && test -s conftest.$ac_objext; then
  7092. ac_cv_header_stdc=yes
  7093. else
  7094. echo "$as_me: failed program was:" >&5
  7095. sed 's/^/| /' conftest.$ac_ext >&5
  7096. ac_cv_header_stdc=no
  7097. fi
  7098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7099. if test $ac_cv_header_stdc = yes; then
  7100. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7101. cat >conftest.$ac_ext <<_ACEOF
  7102. /* confdefs.h. */
  7103. _ACEOF
  7104. cat confdefs.h >>conftest.$ac_ext
  7105. cat >>conftest.$ac_ext <<_ACEOF
  7106. /* end confdefs.h. */
  7107. #include <string.h>
  7108. _ACEOF
  7109. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7110. $EGREP "memchr" >/dev/null 2>&1; then
  7111. :
  7112. else
  7113. ac_cv_header_stdc=no
  7114. fi
  7115. rm -f conftest*
  7116. fi
  7117. if test $ac_cv_header_stdc = yes; then
  7118. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7119. cat >conftest.$ac_ext <<_ACEOF
  7120. /* confdefs.h. */
  7121. _ACEOF
  7122. cat confdefs.h >>conftest.$ac_ext
  7123. cat >>conftest.$ac_ext <<_ACEOF
  7124. /* end confdefs.h. */
  7125. #include <stdlib.h>
  7126. _ACEOF
  7127. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7128. $EGREP "free" >/dev/null 2>&1; then
  7129. :
  7130. else
  7131. ac_cv_header_stdc=no
  7132. fi
  7133. rm -f conftest*
  7134. fi
  7135. if test $ac_cv_header_stdc = yes; then
  7136. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7137. if test "$cross_compiling" = yes; then
  7138. :
  7139. else
  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. #include <ctype.h>
  7147. #include <stdlib.h>
  7148. #if ((' ' & 0x0FF) == 0x020)
  7149. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7150. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7151. #else
  7152. # define ISLOWER(c) \
  7153. (('a' <= (c) && (c) <= 'i') \
  7154. || ('j' <= (c) && (c) <= 'r') \
  7155. || ('s' <= (c) && (c) <= 'z'))
  7156. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7157. #endif
  7158. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7159. int
  7160. main ()
  7161. {
  7162. int i;
  7163. for (i = 0; i < 256; i++)
  7164. if (XOR (islower (i), ISLOWER (i))
  7165. || toupper (i) != TOUPPER (i))
  7166. return 2;
  7167. return 0;
  7168. }
  7169. _ACEOF
  7170. rm -f conftest$ac_exeext
  7171. if { (ac_try="$ac_link"
  7172. case "(($ac_try" in
  7173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7174. *) ac_try_echo=$ac_try;;
  7175. esac
  7176. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7177. (eval "$ac_link") 2>&5
  7178. ac_status=$?
  7179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7180. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7181. { (case "(($ac_try" in
  7182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7183. *) ac_try_echo=$ac_try;;
  7184. esac
  7185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7186. (eval "$ac_try") 2>&5
  7187. ac_status=$?
  7188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7189. (exit $ac_status); }; }; then
  7190. :
  7191. else
  7192. echo "$as_me: program exited with status $ac_status" >&5
  7193. echo "$as_me: failed program was:" >&5
  7194. sed 's/^/| /' conftest.$ac_ext >&5
  7195. ( exit $ac_status )
  7196. ac_cv_header_stdc=no
  7197. fi
  7198. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7199. fi
  7200. fi
  7201. fi
  7202. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7203. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7204. if test $ac_cv_header_stdc = yes; then
  7205. cat >>confdefs.h <<\_ACEOF
  7206. #define STDC_HEADERS 1
  7207. _ACEOF
  7208. fi
  7209. case "$target" in
  7210. *mingw*)
  7211. for ac_header in winsock2.h \
  7212. ws2tcpip.h
  7213. do
  7214. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7215. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7216. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7217. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7218. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7219. echo $ECHO_N "(cached) $ECHO_C" >&6
  7220. fi
  7221. ac_res=`eval echo '${'$as_ac_Header'}'`
  7222. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7223. echo "${ECHO_T}$ac_res" >&6; }
  7224. else
  7225. # Is the header compilable?
  7226. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7227. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7228. cat >conftest.$ac_ext <<_ACEOF
  7229. /* confdefs.h. */
  7230. _ACEOF
  7231. cat confdefs.h >>conftest.$ac_ext
  7232. cat >>conftest.$ac_ext <<_ACEOF
  7233. /* end confdefs.h. */
  7234. $ac_includes_default
  7235. #include <$ac_header>
  7236. _ACEOF
  7237. rm -f conftest.$ac_objext
  7238. if { (ac_try="$ac_compile"
  7239. case "(($ac_try" in
  7240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7241. *) ac_try_echo=$ac_try;;
  7242. esac
  7243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7244. (eval "$ac_compile") 2>conftest.er1
  7245. ac_status=$?
  7246. grep -v '^ *+' conftest.er1 >conftest.err
  7247. rm -f conftest.er1
  7248. cat conftest.err >&5
  7249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7250. (exit $ac_status); } && {
  7251. test -z "$ac_cxx_werror_flag" ||
  7252. test ! -s conftest.err
  7253. } && test -s conftest.$ac_objext; then
  7254. ac_header_compiler=yes
  7255. else
  7256. echo "$as_me: failed program was:" >&5
  7257. sed 's/^/| /' conftest.$ac_ext >&5
  7258. ac_header_compiler=no
  7259. fi
  7260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7261. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7262. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7263. # Is the header present?
  7264. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7265. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7266. cat >conftest.$ac_ext <<_ACEOF
  7267. /* confdefs.h. */
  7268. _ACEOF
  7269. cat confdefs.h >>conftest.$ac_ext
  7270. cat >>conftest.$ac_ext <<_ACEOF
  7271. /* end confdefs.h. */
  7272. #include <$ac_header>
  7273. _ACEOF
  7274. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7275. case "(($ac_try" in
  7276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7277. *) ac_try_echo=$ac_try;;
  7278. esac
  7279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7280. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7281. ac_status=$?
  7282. grep -v '^ *+' conftest.er1 >conftest.err
  7283. rm -f conftest.er1
  7284. cat conftest.err >&5
  7285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7286. (exit $ac_status); } >/dev/null && {
  7287. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7288. test ! -s conftest.err
  7289. }; then
  7290. ac_header_preproc=yes
  7291. else
  7292. echo "$as_me: failed program was:" >&5
  7293. sed 's/^/| /' conftest.$ac_ext >&5
  7294. ac_header_preproc=no
  7295. fi
  7296. rm -f conftest.err conftest.$ac_ext
  7297. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7298. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7299. # So? What about this header?
  7300. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7301. yes:no: )
  7302. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7303. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7304. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7305. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7306. ac_header_preproc=yes
  7307. ;;
  7308. no:yes:* )
  7309. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7310. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7311. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7312. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7313. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7314. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7315. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7316. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7317. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7318. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7319. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7320. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7321. ( cat <<\_ASBOX
  7322. ## ----------------------------------------------- ##
  7323. ## Report this to t-tujikawa@users.sourceforge.net ##
  7324. ## ----------------------------------------------- ##
  7325. _ASBOX
  7326. ) | sed "s/^/$as_me: WARNING: /" >&2
  7327. ;;
  7328. esac
  7329. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7330. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7331. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7332. echo $ECHO_N "(cached) $ECHO_C" >&6
  7333. else
  7334. eval "$as_ac_Header=\$ac_header_preproc"
  7335. fi
  7336. ac_res=`eval echo '${'$as_ac_Header'}'`
  7337. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7338. echo "${ECHO_T}$ac_res" >&6; }
  7339. fi
  7340. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7341. cat >>confdefs.h <<_ACEOF
  7342. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7343. _ACEOF
  7344. fi
  7345. done
  7346. ;;
  7347. esac
  7348. for ac_header in argz.h \
  7349. arpa/inet.h \
  7350. fcntl.h \
  7351. float.h \
  7352. inttypes.h \
  7353. io.h \
  7354. langinfo.h \
  7355. libintl.h \
  7356. limits.h \
  7357. locale.h \
  7358. malloc.h \
  7359. netdb.h \
  7360. netinet/in.h \
  7361. stddef.h \
  7362. stdint.h \
  7363. stdio_ext.h \
  7364. stdlib.h \
  7365. string.h \
  7366. strings.h \
  7367. sys/ioctl.h \
  7368. sys/param.h \
  7369. sys/socket.h \
  7370. sys/time.h \
  7371. termios.h \
  7372. unistd.h \
  7373. wchar.h
  7374. do
  7375. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7376. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7377. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7378. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7379. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7380. echo $ECHO_N "(cached) $ECHO_C" >&6
  7381. fi
  7382. ac_res=`eval echo '${'$as_ac_Header'}'`
  7383. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7384. echo "${ECHO_T}$ac_res" >&6; }
  7385. else
  7386. # Is the header compilable?
  7387. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7388. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7389. cat >conftest.$ac_ext <<_ACEOF
  7390. /* confdefs.h. */
  7391. _ACEOF
  7392. cat confdefs.h >>conftest.$ac_ext
  7393. cat >>conftest.$ac_ext <<_ACEOF
  7394. /* end confdefs.h. */
  7395. $ac_includes_default
  7396. #include <$ac_header>
  7397. _ACEOF
  7398. rm -f conftest.$ac_objext
  7399. if { (ac_try="$ac_compile"
  7400. case "(($ac_try" in
  7401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7402. *) ac_try_echo=$ac_try;;
  7403. esac
  7404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7405. (eval "$ac_compile") 2>conftest.er1
  7406. ac_status=$?
  7407. grep -v '^ *+' conftest.er1 >conftest.err
  7408. rm -f conftest.er1
  7409. cat conftest.err >&5
  7410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7411. (exit $ac_status); } && {
  7412. test -z "$ac_cxx_werror_flag" ||
  7413. test ! -s conftest.err
  7414. } && test -s conftest.$ac_objext; then
  7415. ac_header_compiler=yes
  7416. else
  7417. echo "$as_me: failed program was:" >&5
  7418. sed 's/^/| /' conftest.$ac_ext >&5
  7419. ac_header_compiler=no
  7420. fi
  7421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7422. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7423. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7424. # Is the header present?
  7425. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7426. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7427. cat >conftest.$ac_ext <<_ACEOF
  7428. /* confdefs.h. */
  7429. _ACEOF
  7430. cat confdefs.h >>conftest.$ac_ext
  7431. cat >>conftest.$ac_ext <<_ACEOF
  7432. /* end confdefs.h. */
  7433. #include <$ac_header>
  7434. _ACEOF
  7435. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7436. case "(($ac_try" in
  7437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7438. *) ac_try_echo=$ac_try;;
  7439. esac
  7440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7441. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7442. ac_status=$?
  7443. grep -v '^ *+' conftest.er1 >conftest.err
  7444. rm -f conftest.er1
  7445. cat conftest.err >&5
  7446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7447. (exit $ac_status); } >/dev/null && {
  7448. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7449. test ! -s conftest.err
  7450. }; then
  7451. ac_header_preproc=yes
  7452. else
  7453. echo "$as_me: failed program was:" >&5
  7454. sed 's/^/| /' conftest.$ac_ext >&5
  7455. ac_header_preproc=no
  7456. fi
  7457. rm -f conftest.err conftest.$ac_ext
  7458. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7459. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7460. # So? What about this header?
  7461. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7462. yes:no: )
  7463. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7464. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7465. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7466. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7467. ac_header_preproc=yes
  7468. ;;
  7469. no:yes:* )
  7470. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7471. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7472. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7473. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7474. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7475. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7476. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7477. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7478. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7479. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7480. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7481. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7482. ( cat <<\_ASBOX
  7483. ## ----------------------------------------------- ##
  7484. ## Report this to t-tujikawa@users.sourceforge.net ##
  7485. ## ----------------------------------------------- ##
  7486. _ASBOX
  7487. ) | sed "s/^/$as_me: WARNING: /" >&2
  7488. ;;
  7489. esac
  7490. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7491. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7492. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7493. echo $ECHO_N "(cached) $ECHO_C" >&6
  7494. else
  7495. eval "$as_ac_Header=\$ac_header_preproc"
  7496. fi
  7497. ac_res=`eval echo '${'$as_ac_Header'}'`
  7498. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7499. echo "${ECHO_T}$ac_res" >&6; }
  7500. fi
  7501. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7502. cat >>confdefs.h <<_ACEOF
  7503. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7504. _ACEOF
  7505. fi
  7506. done
  7507. # Checks for typedefs, structures, and compiler characteristics.
  7508. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7509. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7510. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7511. echo $ECHO_N "(cached) $ECHO_C" >&6
  7512. else
  7513. cat >conftest.$ac_ext <<_ACEOF
  7514. /* confdefs.h. */
  7515. _ACEOF
  7516. cat confdefs.h >>conftest.$ac_ext
  7517. cat >>conftest.$ac_ext <<_ACEOF
  7518. /* end confdefs.h. */
  7519. #include <stdbool.h>
  7520. #ifndef bool
  7521. "error: bool is not defined"
  7522. #endif
  7523. #ifndef false
  7524. "error: false is not defined"
  7525. #endif
  7526. #if false
  7527. "error: false is not 0"
  7528. #endif
  7529. #ifndef true
  7530. "error: true is not defined"
  7531. #endif
  7532. #if true != 1
  7533. "error: true is not 1"
  7534. #endif
  7535. #ifndef __bool_true_false_are_defined
  7536. "error: __bool_true_false_are_defined is not defined"
  7537. #endif
  7538. struct s { _Bool s: 1; _Bool t; } s;
  7539. char a[true == 1 ? 1 : -1];
  7540. char b[false == 0 ? 1 : -1];
  7541. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7542. char d[(bool) 0.5 == true ? 1 : -1];
  7543. bool e = &s;
  7544. char f[(_Bool) 0.0 == false ? 1 : -1];
  7545. char g[true];
  7546. char h[sizeof (_Bool)];
  7547. char i[sizeof s.t];
  7548. enum { j = false, k = true, l = false * true, m = true * 256 };
  7549. _Bool n[m];
  7550. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7551. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7552. # if defined __xlc__ || defined __GNUC__
  7553. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7554. reported by James Lemley on 2005-10-05; see
  7555. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7556. This test is not quite right, since xlc is allowed to
  7557. reject this program, as the initializer for xlcbug is
  7558. not one of the forms that C requires support for.
  7559. However, doing the test right would require a runtime
  7560. test, and that would make cross-compilation harder.
  7561. Let us hope that IBM fixes the xlc bug, and also adds
  7562. support for this kind of constant expression. In the
  7563. meantime, this test will reject xlc, which is OK, since
  7564. our stdbool.h substitute should suffice. We also test
  7565. this with GCC, where it should work, to detect more
  7566. quickly whether someone messes up the test in the
  7567. future. */
  7568. char digs[] = "0123456789";
  7569. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7570. # endif
  7571. /* Catch a bug in an HP-UX C compiler. See
  7572. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7573. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7574. */
  7575. _Bool q = true;
  7576. _Bool *pq = &q;
  7577. int
  7578. main ()
  7579. {
  7580. *pq |= q;
  7581. *pq |= ! q;
  7582. /* Refer to every declared value, to avoid compiler optimizations. */
  7583. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7584. + !m + !n + !o + !p + !q + !pq);
  7585. ;
  7586. return 0;
  7587. }
  7588. _ACEOF
  7589. rm -f conftest.$ac_objext
  7590. if { (ac_try="$ac_compile"
  7591. case "(($ac_try" in
  7592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7593. *) ac_try_echo=$ac_try;;
  7594. esac
  7595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7596. (eval "$ac_compile") 2>conftest.er1
  7597. ac_status=$?
  7598. grep -v '^ *+' conftest.er1 >conftest.err
  7599. rm -f conftest.er1
  7600. cat conftest.err >&5
  7601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7602. (exit $ac_status); } && {
  7603. test -z "$ac_cxx_werror_flag" ||
  7604. test ! -s conftest.err
  7605. } && test -s conftest.$ac_objext; then
  7606. ac_cv_header_stdbool_h=yes
  7607. else
  7608. echo "$as_me: failed program was:" >&5
  7609. sed 's/^/| /' conftest.$ac_ext >&5
  7610. ac_cv_header_stdbool_h=no
  7611. fi
  7612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7613. fi
  7614. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7615. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7616. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7617. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7618. if test "${ac_cv_type__Bool+set}" = set; then
  7619. echo $ECHO_N "(cached) $ECHO_C" >&6
  7620. else
  7621. cat >conftest.$ac_ext <<_ACEOF
  7622. /* confdefs.h. */
  7623. _ACEOF
  7624. cat confdefs.h >>conftest.$ac_ext
  7625. cat >>conftest.$ac_ext <<_ACEOF
  7626. /* end confdefs.h. */
  7627. $ac_includes_default
  7628. typedef _Bool ac__type_new_;
  7629. int
  7630. main ()
  7631. {
  7632. if ((ac__type_new_ *) 0)
  7633. return 0;
  7634. if (sizeof (ac__type_new_))
  7635. return 0;
  7636. ;
  7637. return 0;
  7638. }
  7639. _ACEOF
  7640. rm -f conftest.$ac_objext
  7641. if { (ac_try="$ac_compile"
  7642. case "(($ac_try" in
  7643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7644. *) ac_try_echo=$ac_try;;
  7645. esac
  7646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7647. (eval "$ac_compile") 2>conftest.er1
  7648. ac_status=$?
  7649. grep -v '^ *+' conftest.er1 >conftest.err
  7650. rm -f conftest.er1
  7651. cat conftest.err >&5
  7652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7653. (exit $ac_status); } && {
  7654. test -z "$ac_cxx_werror_flag" ||
  7655. test ! -s conftest.err
  7656. } && test -s conftest.$ac_objext; then
  7657. ac_cv_type__Bool=yes
  7658. else
  7659. echo "$as_me: failed program was:" >&5
  7660. sed 's/^/| /' conftest.$ac_ext >&5
  7661. ac_cv_type__Bool=no
  7662. fi
  7663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7664. fi
  7665. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7666. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7667. if test $ac_cv_type__Bool = yes; then
  7668. cat >>confdefs.h <<_ACEOF
  7669. #define HAVE__BOOL 1
  7670. _ACEOF
  7671. fi
  7672. if test $ac_cv_header_stdbool_h = yes; then
  7673. cat >>confdefs.h <<\_ACEOF
  7674. #define HAVE_STDBOOL_H 1
  7675. _ACEOF
  7676. fi
  7677. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7678. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7679. if test "${ac_cv_c_const+set}" = set; then
  7680. echo $ECHO_N "(cached) $ECHO_C" >&6
  7681. else
  7682. cat >conftest.$ac_ext <<_ACEOF
  7683. /* confdefs.h. */
  7684. _ACEOF
  7685. cat confdefs.h >>conftest.$ac_ext
  7686. cat >>conftest.$ac_ext <<_ACEOF
  7687. /* end confdefs.h. */
  7688. int
  7689. main ()
  7690. {
  7691. /* FIXME: Include the comments suggested by Paul. */
  7692. #ifndef __cplusplus
  7693. /* Ultrix mips cc rejects this. */
  7694. typedef int charset[2];
  7695. const charset cs;
  7696. /* SunOS 4.1.1 cc rejects this. */
  7697. char const *const *pcpcc;
  7698. char **ppc;
  7699. /* NEC SVR4.0.2 mips cc rejects this. */
  7700. struct point {int x, y;};
  7701. static struct point const zero = {0,0};
  7702. /* AIX XL C 1.02.0.0 rejects this.
  7703. It does not let you subtract one const X* pointer from another in
  7704. an arm of an if-expression whose if-part is not a constant
  7705. expression */
  7706. const char *g = "string";
  7707. pcpcc = &g + (g ? g-g : 0);
  7708. /* HPUX 7.0 cc rejects these. */
  7709. ++pcpcc;
  7710. ppc = (char**) pcpcc;
  7711. pcpcc = (char const *const *) ppc;
  7712. { /* SCO 3.2v4 cc rejects this. */
  7713. char *t;
  7714. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7715. *t++ = 0;
  7716. if (s) return 0;
  7717. }
  7718. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7719. int x[] = {25, 17};
  7720. const int *foo = &x[0];
  7721. ++foo;
  7722. }
  7723. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7724. typedef const int *iptr;
  7725. iptr p = 0;
  7726. ++p;
  7727. }
  7728. { /* AIX XL C 1.02.0.0 rejects this saying
  7729. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7730. struct s { int j; const int *ap[3]; };
  7731. struct s *b; b->j = 5;
  7732. }
  7733. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7734. const int foo = 10;
  7735. if (!foo) return 0;
  7736. }
  7737. return !cs[0] && !zero.x;
  7738. #endif
  7739. ;
  7740. return 0;
  7741. }
  7742. _ACEOF
  7743. rm -f conftest.$ac_objext
  7744. if { (ac_try="$ac_compile"
  7745. case "(($ac_try" in
  7746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7747. *) ac_try_echo=$ac_try;;
  7748. esac
  7749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7750. (eval "$ac_compile") 2>conftest.er1
  7751. ac_status=$?
  7752. grep -v '^ *+' conftest.er1 >conftest.err
  7753. rm -f conftest.er1
  7754. cat conftest.err >&5
  7755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7756. (exit $ac_status); } && {
  7757. test -z "$ac_cxx_werror_flag" ||
  7758. test ! -s conftest.err
  7759. } && test -s conftest.$ac_objext; then
  7760. ac_cv_c_const=yes
  7761. else
  7762. echo "$as_me: failed program was:" >&5
  7763. sed 's/^/| /' conftest.$ac_ext >&5
  7764. ac_cv_c_const=no
  7765. fi
  7766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7767. fi
  7768. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7769. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7770. if test $ac_cv_c_const = no; then
  7771. cat >>confdefs.h <<\_ACEOF
  7772. #define const
  7773. _ACEOF
  7774. fi
  7775. { echo "$as_me:$LINENO: checking for inline" >&5
  7776. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7777. if test "${ac_cv_c_inline+set}" = set; then
  7778. echo $ECHO_N "(cached) $ECHO_C" >&6
  7779. else
  7780. ac_cv_c_inline=no
  7781. for ac_kw in inline __inline__ __inline; do
  7782. cat >conftest.$ac_ext <<_ACEOF
  7783. /* confdefs.h. */
  7784. _ACEOF
  7785. cat confdefs.h >>conftest.$ac_ext
  7786. cat >>conftest.$ac_ext <<_ACEOF
  7787. /* end confdefs.h. */
  7788. #ifndef __cplusplus
  7789. typedef int foo_t;
  7790. static $ac_kw foo_t static_foo () {return 0; }
  7791. $ac_kw foo_t foo () {return 0; }
  7792. #endif
  7793. _ACEOF
  7794. rm -f conftest.$ac_objext
  7795. if { (ac_try="$ac_compile"
  7796. case "(($ac_try" in
  7797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7798. *) ac_try_echo=$ac_try;;
  7799. esac
  7800. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7801. (eval "$ac_compile") 2>conftest.er1
  7802. ac_status=$?
  7803. grep -v '^ *+' conftest.er1 >conftest.err
  7804. rm -f conftest.er1
  7805. cat conftest.err >&5
  7806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7807. (exit $ac_status); } && {
  7808. test -z "$ac_cxx_werror_flag" ||
  7809. test ! -s conftest.err
  7810. } && test -s conftest.$ac_objext; then
  7811. ac_cv_c_inline=$ac_kw
  7812. else
  7813. echo "$as_me: failed program was:" >&5
  7814. sed 's/^/| /' conftest.$ac_ext >&5
  7815. fi
  7816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7817. test "$ac_cv_c_inline" != no && break
  7818. done
  7819. fi
  7820. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7821. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7822. case $ac_cv_c_inline in
  7823. inline | yes) ;;
  7824. *)
  7825. case $ac_cv_c_inline in
  7826. no) ac_val=;;
  7827. *) ac_val=$ac_cv_c_inline;;
  7828. esac
  7829. cat >>confdefs.h <<_ACEOF
  7830. #ifndef __cplusplus
  7831. #define inline $ac_val
  7832. #endif
  7833. _ACEOF
  7834. ;;
  7835. esac
  7836. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7837. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7838. if test "${ac_cv_c_int16_t+set}" = set; then
  7839. echo $ECHO_N "(cached) $ECHO_C" >&6
  7840. else
  7841. ac_cv_c_int16_t=no
  7842. for ac_type in 'int16_t' 'int' 'long int' \
  7843. 'long long int' 'short int' 'signed char'; do
  7844. cat >conftest.$ac_ext <<_ACEOF
  7845. /* confdefs.h. */
  7846. _ACEOF
  7847. cat confdefs.h >>conftest.$ac_ext
  7848. cat >>conftest.$ac_ext <<_ACEOF
  7849. /* end confdefs.h. */
  7850. $ac_includes_default
  7851. int
  7852. main ()
  7853. {
  7854. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7855. test_array [0] = 0
  7856. ;
  7857. return 0;
  7858. }
  7859. _ACEOF
  7860. rm -f conftest.$ac_objext
  7861. if { (ac_try="$ac_compile"
  7862. case "(($ac_try" in
  7863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7864. *) ac_try_echo=$ac_try;;
  7865. esac
  7866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7867. (eval "$ac_compile") 2>conftest.er1
  7868. ac_status=$?
  7869. grep -v '^ *+' conftest.er1 >conftest.err
  7870. rm -f conftest.er1
  7871. cat conftest.err >&5
  7872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7873. (exit $ac_status); } && {
  7874. test -z "$ac_cxx_werror_flag" ||
  7875. test ! -s conftest.err
  7876. } && test -s conftest.$ac_objext; then
  7877. cat >conftest.$ac_ext <<_ACEOF
  7878. /* confdefs.h. */
  7879. _ACEOF
  7880. cat confdefs.h >>conftest.$ac_ext
  7881. cat >>conftest.$ac_ext <<_ACEOF
  7882. /* end confdefs.h. */
  7883. $ac_includes_default
  7884. int
  7885. main ()
  7886. {
  7887. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7888. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7889. test_array [0] = 0
  7890. ;
  7891. return 0;
  7892. }
  7893. _ACEOF
  7894. rm -f conftest.$ac_objext
  7895. if { (ac_try="$ac_compile"
  7896. case "(($ac_try" in
  7897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7898. *) ac_try_echo=$ac_try;;
  7899. esac
  7900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7901. (eval "$ac_compile") 2>conftest.er1
  7902. ac_status=$?
  7903. grep -v '^ *+' conftest.er1 >conftest.err
  7904. rm -f conftest.er1
  7905. cat conftest.err >&5
  7906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7907. (exit $ac_status); } && {
  7908. test -z "$ac_cxx_werror_flag" ||
  7909. test ! -s conftest.err
  7910. } && test -s conftest.$ac_objext; then
  7911. :
  7912. else
  7913. echo "$as_me: failed program was:" >&5
  7914. sed 's/^/| /' conftest.$ac_ext >&5
  7915. case $ac_type in
  7916. int16_t) ac_cv_c_int16_t=yes ;;
  7917. *) ac_cv_c_int16_t=$ac_type ;;
  7918. esac
  7919. fi
  7920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7921. else
  7922. echo "$as_me: failed program was:" >&5
  7923. sed 's/^/| /' conftest.$ac_ext >&5
  7924. fi
  7925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7926. test "$ac_cv_c_int16_t" != no && break
  7927. done
  7928. fi
  7929. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7930. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7931. case $ac_cv_c_int16_t in #(
  7932. no|yes) ;; #(
  7933. *)
  7934. cat >>confdefs.h <<_ACEOF
  7935. #define int16_t $ac_cv_c_int16_t
  7936. _ACEOF
  7937. ;;
  7938. esac
  7939. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7940. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7941. if test "${ac_cv_c_int32_t+set}" = set; then
  7942. echo $ECHO_N "(cached) $ECHO_C" >&6
  7943. else
  7944. ac_cv_c_int32_t=no
  7945. for ac_type in 'int32_t' 'int' 'long int' \
  7946. 'long long int' 'short int' 'signed char'; do
  7947. cat >conftest.$ac_ext <<_ACEOF
  7948. /* confdefs.h. */
  7949. _ACEOF
  7950. cat confdefs.h >>conftest.$ac_ext
  7951. cat >>conftest.$ac_ext <<_ACEOF
  7952. /* end confdefs.h. */
  7953. $ac_includes_default
  7954. int
  7955. main ()
  7956. {
  7957. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7958. test_array [0] = 0
  7959. ;
  7960. return 0;
  7961. }
  7962. _ACEOF
  7963. rm -f conftest.$ac_objext
  7964. if { (ac_try="$ac_compile"
  7965. case "(($ac_try" in
  7966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7967. *) ac_try_echo=$ac_try;;
  7968. esac
  7969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7970. (eval "$ac_compile") 2>conftest.er1
  7971. ac_status=$?
  7972. grep -v '^ *+' conftest.er1 >conftest.err
  7973. rm -f conftest.er1
  7974. cat conftest.err >&5
  7975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7976. (exit $ac_status); } && {
  7977. test -z "$ac_cxx_werror_flag" ||
  7978. test ! -s conftest.err
  7979. } && test -s conftest.$ac_objext; then
  7980. cat >conftest.$ac_ext <<_ACEOF
  7981. /* confdefs.h. */
  7982. _ACEOF
  7983. cat confdefs.h >>conftest.$ac_ext
  7984. cat >>conftest.$ac_ext <<_ACEOF
  7985. /* end confdefs.h. */
  7986. $ac_includes_default
  7987. int
  7988. main ()
  7989. {
  7990. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7991. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7992. test_array [0] = 0
  7993. ;
  7994. return 0;
  7995. }
  7996. _ACEOF
  7997. rm -f conftest.$ac_objext
  7998. if { (ac_try="$ac_compile"
  7999. case "(($ac_try" in
  8000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8001. *) ac_try_echo=$ac_try;;
  8002. esac
  8003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8004. (eval "$ac_compile") 2>conftest.er1
  8005. ac_status=$?
  8006. grep -v '^ *+' conftest.er1 >conftest.err
  8007. rm -f conftest.er1
  8008. cat conftest.err >&5
  8009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8010. (exit $ac_status); } && {
  8011. test -z "$ac_cxx_werror_flag" ||
  8012. test ! -s conftest.err
  8013. } && test -s conftest.$ac_objext; then
  8014. :
  8015. else
  8016. echo "$as_me: failed program was:" >&5
  8017. sed 's/^/| /' conftest.$ac_ext >&5
  8018. case $ac_type in
  8019. int32_t) ac_cv_c_int32_t=yes ;;
  8020. *) ac_cv_c_int32_t=$ac_type ;;
  8021. esac
  8022. fi
  8023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8024. else
  8025. echo "$as_me: failed program was:" >&5
  8026. sed 's/^/| /' conftest.$ac_ext >&5
  8027. fi
  8028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8029. test "$ac_cv_c_int32_t" != no && break
  8030. done
  8031. fi
  8032. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  8033. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  8034. case $ac_cv_c_int32_t in #(
  8035. no|yes) ;; #(
  8036. *)
  8037. cat >>confdefs.h <<_ACEOF
  8038. #define int32_t $ac_cv_c_int32_t
  8039. _ACEOF
  8040. ;;
  8041. esac
  8042. { echo "$as_me:$LINENO: checking for int64_t" >&5
  8043. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  8044. if test "${ac_cv_c_int64_t+set}" = set; then
  8045. echo $ECHO_N "(cached) $ECHO_C" >&6
  8046. else
  8047. ac_cv_c_int64_t=no
  8048. for ac_type in 'int64_t' 'int' 'long int' \
  8049. 'long long int' 'short int' 'signed char'; do
  8050. cat >conftest.$ac_ext <<_ACEOF
  8051. /* confdefs.h. */
  8052. _ACEOF
  8053. cat confdefs.h >>conftest.$ac_ext
  8054. cat >>conftest.$ac_ext <<_ACEOF
  8055. /* end confdefs.h. */
  8056. $ac_includes_default
  8057. int
  8058. main ()
  8059. {
  8060. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8061. test_array [0] = 0
  8062. ;
  8063. return 0;
  8064. }
  8065. _ACEOF
  8066. rm -f conftest.$ac_objext
  8067. if { (ac_try="$ac_compile"
  8068. case "(($ac_try" in
  8069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8070. *) ac_try_echo=$ac_try;;
  8071. esac
  8072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8073. (eval "$ac_compile") 2>conftest.er1
  8074. ac_status=$?
  8075. grep -v '^ *+' conftest.er1 >conftest.err
  8076. rm -f conftest.er1
  8077. cat conftest.err >&5
  8078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8079. (exit $ac_status); } && {
  8080. test -z "$ac_cxx_werror_flag" ||
  8081. test ! -s conftest.err
  8082. } && test -s conftest.$ac_objext; then
  8083. cat >conftest.$ac_ext <<_ACEOF
  8084. /* confdefs.h. */
  8085. _ACEOF
  8086. cat confdefs.h >>conftest.$ac_ext
  8087. cat >>conftest.$ac_ext <<_ACEOF
  8088. /* end confdefs.h. */
  8089. $ac_includes_default
  8090. int
  8091. main ()
  8092. {
  8093. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8094. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8095. test_array [0] = 0
  8096. ;
  8097. return 0;
  8098. }
  8099. _ACEOF
  8100. rm -f conftest.$ac_objext
  8101. if { (ac_try="$ac_compile"
  8102. case "(($ac_try" in
  8103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8104. *) ac_try_echo=$ac_try;;
  8105. esac
  8106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8107. (eval "$ac_compile") 2>conftest.er1
  8108. ac_status=$?
  8109. grep -v '^ *+' conftest.er1 >conftest.err
  8110. rm -f conftest.er1
  8111. cat conftest.err >&5
  8112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8113. (exit $ac_status); } && {
  8114. test -z "$ac_cxx_werror_flag" ||
  8115. test ! -s conftest.err
  8116. } && test -s conftest.$ac_objext; then
  8117. :
  8118. else
  8119. echo "$as_me: failed program was:" >&5
  8120. sed 's/^/| /' conftest.$ac_ext >&5
  8121. case $ac_type in
  8122. int64_t) ac_cv_c_int64_t=yes ;;
  8123. *) ac_cv_c_int64_t=$ac_type ;;
  8124. esac
  8125. fi
  8126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8127. else
  8128. echo "$as_me: failed program was:" >&5
  8129. sed 's/^/| /' conftest.$ac_ext >&5
  8130. fi
  8131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8132. test "$ac_cv_c_int64_t" != no && break
  8133. done
  8134. fi
  8135. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8136. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  8137. case $ac_cv_c_int64_t in #(
  8138. no|yes) ;; #(
  8139. *)
  8140. cat >>confdefs.h <<_ACEOF
  8141. #define int64_t $ac_cv_c_int64_t
  8142. _ACEOF
  8143. ;;
  8144. esac
  8145. { echo "$as_me:$LINENO: checking for int8_t" >&5
  8146. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  8147. if test "${ac_cv_c_int8_t+set}" = set; then
  8148. echo $ECHO_N "(cached) $ECHO_C" >&6
  8149. else
  8150. ac_cv_c_int8_t=no
  8151. for ac_type in 'int8_t' 'int' 'long int' \
  8152. 'long long int' 'short int' 'signed char'; do
  8153. cat >conftest.$ac_ext <<_ACEOF
  8154. /* confdefs.h. */
  8155. _ACEOF
  8156. cat confdefs.h >>conftest.$ac_ext
  8157. cat >>conftest.$ac_ext <<_ACEOF
  8158. /* end confdefs.h. */
  8159. $ac_includes_default
  8160. int
  8161. main ()
  8162. {
  8163. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8164. test_array [0] = 0
  8165. ;
  8166. return 0;
  8167. }
  8168. _ACEOF
  8169. rm -f conftest.$ac_objext
  8170. if { (ac_try="$ac_compile"
  8171. case "(($ac_try" in
  8172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8173. *) ac_try_echo=$ac_try;;
  8174. esac
  8175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8176. (eval "$ac_compile") 2>conftest.er1
  8177. ac_status=$?
  8178. grep -v '^ *+' conftest.er1 >conftest.err
  8179. rm -f conftest.er1
  8180. cat conftest.err >&5
  8181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8182. (exit $ac_status); } && {
  8183. test -z "$ac_cxx_werror_flag" ||
  8184. test ! -s conftest.err
  8185. } && test -s conftest.$ac_objext; then
  8186. cat >conftest.$ac_ext <<_ACEOF
  8187. /* confdefs.h. */
  8188. _ACEOF
  8189. cat confdefs.h >>conftest.$ac_ext
  8190. cat >>conftest.$ac_ext <<_ACEOF
  8191. /* end confdefs.h. */
  8192. $ac_includes_default
  8193. int
  8194. main ()
  8195. {
  8196. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8197. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8198. test_array [0] = 0
  8199. ;
  8200. return 0;
  8201. }
  8202. _ACEOF
  8203. rm -f conftest.$ac_objext
  8204. if { (ac_try="$ac_compile"
  8205. case "(($ac_try" in
  8206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8207. *) ac_try_echo=$ac_try;;
  8208. esac
  8209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8210. (eval "$ac_compile") 2>conftest.er1
  8211. ac_status=$?
  8212. grep -v '^ *+' conftest.er1 >conftest.err
  8213. rm -f conftest.er1
  8214. cat conftest.err >&5
  8215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8216. (exit $ac_status); } && {
  8217. test -z "$ac_cxx_werror_flag" ||
  8218. test ! -s conftest.err
  8219. } && test -s conftest.$ac_objext; then
  8220. :
  8221. else
  8222. echo "$as_me: failed program was:" >&5
  8223. sed 's/^/| /' conftest.$ac_ext >&5
  8224. case $ac_type in
  8225. int8_t) ac_cv_c_int8_t=yes ;;
  8226. *) ac_cv_c_int8_t=$ac_type ;;
  8227. esac
  8228. fi
  8229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8230. else
  8231. echo "$as_me: failed program was:" >&5
  8232. sed 's/^/| /' conftest.$ac_ext >&5
  8233. fi
  8234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8235. test "$ac_cv_c_int8_t" != no && break
  8236. done
  8237. fi
  8238. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8239. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  8240. case $ac_cv_c_int8_t in #(
  8241. no|yes) ;; #(
  8242. *)
  8243. cat >>confdefs.h <<_ACEOF
  8244. #define int8_t $ac_cv_c_int8_t
  8245. _ACEOF
  8246. ;;
  8247. esac
  8248. { echo "$as_me:$LINENO: checking for mode_t" >&5
  8249. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  8250. if test "${ac_cv_type_mode_t+set}" = set; then
  8251. echo $ECHO_N "(cached) $ECHO_C" >&6
  8252. else
  8253. cat >conftest.$ac_ext <<_ACEOF
  8254. /* confdefs.h. */
  8255. _ACEOF
  8256. cat confdefs.h >>conftest.$ac_ext
  8257. cat >>conftest.$ac_ext <<_ACEOF
  8258. /* end confdefs.h. */
  8259. $ac_includes_default
  8260. typedef mode_t ac__type_new_;
  8261. int
  8262. main ()
  8263. {
  8264. if ((ac__type_new_ *) 0)
  8265. return 0;
  8266. if (sizeof (ac__type_new_))
  8267. return 0;
  8268. ;
  8269. return 0;
  8270. }
  8271. _ACEOF
  8272. rm -f conftest.$ac_objext
  8273. if { (ac_try="$ac_compile"
  8274. case "(($ac_try" in
  8275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8276. *) ac_try_echo=$ac_try;;
  8277. esac
  8278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8279. (eval "$ac_compile") 2>conftest.er1
  8280. ac_status=$?
  8281. grep -v '^ *+' conftest.er1 >conftest.err
  8282. rm -f conftest.er1
  8283. cat conftest.err >&5
  8284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8285. (exit $ac_status); } && {
  8286. test -z "$ac_cxx_werror_flag" ||
  8287. test ! -s conftest.err
  8288. } && test -s conftest.$ac_objext; then
  8289. ac_cv_type_mode_t=yes
  8290. else
  8291. echo "$as_me: failed program was:" >&5
  8292. sed 's/^/| /' conftest.$ac_ext >&5
  8293. ac_cv_type_mode_t=no
  8294. fi
  8295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8296. fi
  8297. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8298. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  8299. if test $ac_cv_type_mode_t = yes; then
  8300. :
  8301. else
  8302. cat >>confdefs.h <<_ACEOF
  8303. #define mode_t int
  8304. _ACEOF
  8305. fi
  8306. { echo "$as_me:$LINENO: checking for off_t" >&5
  8307. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8308. if test "${ac_cv_type_off_t+set}" = set; then
  8309. echo $ECHO_N "(cached) $ECHO_C" >&6
  8310. else
  8311. cat >conftest.$ac_ext <<_ACEOF
  8312. /* confdefs.h. */
  8313. _ACEOF
  8314. cat confdefs.h >>conftest.$ac_ext
  8315. cat >>conftest.$ac_ext <<_ACEOF
  8316. /* end confdefs.h. */
  8317. $ac_includes_default
  8318. typedef off_t ac__type_new_;
  8319. int
  8320. main ()
  8321. {
  8322. if ((ac__type_new_ *) 0)
  8323. return 0;
  8324. if (sizeof (ac__type_new_))
  8325. return 0;
  8326. ;
  8327. return 0;
  8328. }
  8329. _ACEOF
  8330. rm -f conftest.$ac_objext
  8331. if { (ac_try="$ac_compile"
  8332. case "(($ac_try" in
  8333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8334. *) ac_try_echo=$ac_try;;
  8335. esac
  8336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8337. (eval "$ac_compile") 2>conftest.er1
  8338. ac_status=$?
  8339. grep -v '^ *+' conftest.er1 >conftest.err
  8340. rm -f conftest.er1
  8341. cat conftest.err >&5
  8342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8343. (exit $ac_status); } && {
  8344. test -z "$ac_cxx_werror_flag" ||
  8345. test ! -s conftest.err
  8346. } && test -s conftest.$ac_objext; then
  8347. ac_cv_type_off_t=yes
  8348. else
  8349. echo "$as_me: failed program was:" >&5
  8350. sed 's/^/| /' conftest.$ac_ext >&5
  8351. ac_cv_type_off_t=no
  8352. fi
  8353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8354. fi
  8355. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8356. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8357. if test $ac_cv_type_off_t = yes; then
  8358. :
  8359. else
  8360. cat >>confdefs.h <<_ACEOF
  8361. #define off_t long int
  8362. _ACEOF
  8363. fi
  8364. { echo "$as_me:$LINENO: checking for size_t" >&5
  8365. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8366. if test "${ac_cv_type_size_t+set}" = set; then
  8367. echo $ECHO_N "(cached) $ECHO_C" >&6
  8368. else
  8369. cat >conftest.$ac_ext <<_ACEOF
  8370. /* confdefs.h. */
  8371. _ACEOF
  8372. cat confdefs.h >>conftest.$ac_ext
  8373. cat >>conftest.$ac_ext <<_ACEOF
  8374. /* end confdefs.h. */
  8375. $ac_includes_default
  8376. typedef size_t ac__type_new_;
  8377. int
  8378. main ()
  8379. {
  8380. if ((ac__type_new_ *) 0)
  8381. return 0;
  8382. if (sizeof (ac__type_new_))
  8383. return 0;
  8384. ;
  8385. return 0;
  8386. }
  8387. _ACEOF
  8388. rm -f conftest.$ac_objext
  8389. if { (ac_try="$ac_compile"
  8390. case "(($ac_try" in
  8391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8392. *) ac_try_echo=$ac_try;;
  8393. esac
  8394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8395. (eval "$ac_compile") 2>conftest.er1
  8396. ac_status=$?
  8397. grep -v '^ *+' conftest.er1 >conftest.err
  8398. rm -f conftest.er1
  8399. cat conftest.err >&5
  8400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8401. (exit $ac_status); } && {
  8402. test -z "$ac_cxx_werror_flag" ||
  8403. test ! -s conftest.err
  8404. } && test -s conftest.$ac_objext; then
  8405. ac_cv_type_size_t=yes
  8406. else
  8407. echo "$as_me: failed program was:" >&5
  8408. sed 's/^/| /' conftest.$ac_ext >&5
  8409. ac_cv_type_size_t=no
  8410. fi
  8411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8412. fi
  8413. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8414. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8415. if test $ac_cv_type_size_t = yes; then
  8416. :
  8417. else
  8418. cat >>confdefs.h <<_ACEOF
  8419. #define size_t unsigned int
  8420. _ACEOF
  8421. fi
  8422. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8423. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8424. if test "${ac_cv_type_ssize_t+set}" = set; then
  8425. echo $ECHO_N "(cached) $ECHO_C" >&6
  8426. else
  8427. cat >conftest.$ac_ext <<_ACEOF
  8428. /* confdefs.h. */
  8429. _ACEOF
  8430. cat confdefs.h >>conftest.$ac_ext
  8431. cat >>conftest.$ac_ext <<_ACEOF
  8432. /* end confdefs.h. */
  8433. $ac_includes_default
  8434. typedef ssize_t ac__type_new_;
  8435. int
  8436. main ()
  8437. {
  8438. if ((ac__type_new_ *) 0)
  8439. return 0;
  8440. if (sizeof (ac__type_new_))
  8441. return 0;
  8442. ;
  8443. return 0;
  8444. }
  8445. _ACEOF
  8446. rm -f conftest.$ac_objext
  8447. if { (ac_try="$ac_compile"
  8448. case "(($ac_try" in
  8449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8450. *) ac_try_echo=$ac_try;;
  8451. esac
  8452. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8453. (eval "$ac_compile") 2>conftest.er1
  8454. ac_status=$?
  8455. grep -v '^ *+' conftest.er1 >conftest.err
  8456. rm -f conftest.er1
  8457. cat conftest.err >&5
  8458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8459. (exit $ac_status); } && {
  8460. test -z "$ac_cxx_werror_flag" ||
  8461. test ! -s conftest.err
  8462. } && test -s conftest.$ac_objext; then
  8463. ac_cv_type_ssize_t=yes
  8464. else
  8465. echo "$as_me: failed program was:" >&5
  8466. sed 's/^/| /' conftest.$ac_ext >&5
  8467. ac_cv_type_ssize_t=no
  8468. fi
  8469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8470. fi
  8471. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8472. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8473. if test $ac_cv_type_ssize_t = yes; then
  8474. :
  8475. else
  8476. cat >>confdefs.h <<_ACEOF
  8477. #define ssize_t int
  8478. _ACEOF
  8479. fi
  8480. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8481. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8482. if test "${ac_cv_header_time+set}" = set; then
  8483. echo $ECHO_N "(cached) $ECHO_C" >&6
  8484. else
  8485. cat >conftest.$ac_ext <<_ACEOF
  8486. /* confdefs.h. */
  8487. _ACEOF
  8488. cat confdefs.h >>conftest.$ac_ext
  8489. cat >>conftest.$ac_ext <<_ACEOF
  8490. /* end confdefs.h. */
  8491. #include <sys/types.h>
  8492. #include <sys/time.h>
  8493. #include <time.h>
  8494. int
  8495. main ()
  8496. {
  8497. if ((struct tm *) 0)
  8498. return 0;
  8499. ;
  8500. return 0;
  8501. }
  8502. _ACEOF
  8503. rm -f conftest.$ac_objext
  8504. if { (ac_try="$ac_compile"
  8505. case "(($ac_try" in
  8506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8507. *) ac_try_echo=$ac_try;;
  8508. esac
  8509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8510. (eval "$ac_compile") 2>conftest.er1
  8511. ac_status=$?
  8512. grep -v '^ *+' conftest.er1 >conftest.err
  8513. rm -f conftest.er1
  8514. cat conftest.err >&5
  8515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8516. (exit $ac_status); } && {
  8517. test -z "$ac_cxx_werror_flag" ||
  8518. test ! -s conftest.err
  8519. } && test -s conftest.$ac_objext; then
  8520. ac_cv_header_time=yes
  8521. else
  8522. echo "$as_me: failed program was:" >&5
  8523. sed 's/^/| /' conftest.$ac_ext >&5
  8524. ac_cv_header_time=no
  8525. fi
  8526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8527. fi
  8528. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8529. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8530. if test $ac_cv_header_time = yes; then
  8531. cat >>confdefs.h <<\_ACEOF
  8532. #define TIME_WITH_SYS_TIME 1
  8533. _ACEOF
  8534. fi
  8535. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8536. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8537. if test "${ac_cv_struct_tm+set}" = set; then
  8538. echo $ECHO_N "(cached) $ECHO_C" >&6
  8539. else
  8540. cat >conftest.$ac_ext <<_ACEOF
  8541. /* confdefs.h. */
  8542. _ACEOF
  8543. cat confdefs.h >>conftest.$ac_ext
  8544. cat >>conftest.$ac_ext <<_ACEOF
  8545. /* end confdefs.h. */
  8546. #include <sys/types.h>
  8547. #include <time.h>
  8548. int
  8549. main ()
  8550. {
  8551. struct tm tm;
  8552. int *p = &tm.tm_sec;
  8553. return !p;
  8554. ;
  8555. return 0;
  8556. }
  8557. _ACEOF
  8558. rm -f conftest.$ac_objext
  8559. if { (ac_try="$ac_compile"
  8560. case "(($ac_try" in
  8561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8562. *) ac_try_echo=$ac_try;;
  8563. esac
  8564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8565. (eval "$ac_compile") 2>conftest.er1
  8566. ac_status=$?
  8567. grep -v '^ *+' conftest.er1 >conftest.err
  8568. rm -f conftest.er1
  8569. cat conftest.err >&5
  8570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8571. (exit $ac_status); } && {
  8572. test -z "$ac_cxx_werror_flag" ||
  8573. test ! -s conftest.err
  8574. } && test -s conftest.$ac_objext; then
  8575. ac_cv_struct_tm=time.h
  8576. else
  8577. echo "$as_me: failed program was:" >&5
  8578. sed 's/^/| /' conftest.$ac_ext >&5
  8579. ac_cv_struct_tm=sys/time.h
  8580. fi
  8581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8582. fi
  8583. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8584. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8585. if test $ac_cv_struct_tm = sys/time.h; then
  8586. cat >>confdefs.h <<\_ACEOF
  8587. #define TM_IN_SYS_TIME 1
  8588. _ACEOF
  8589. fi
  8590. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8591. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8592. if test "${ac_cv_c_uint16_t+set}" = set; then
  8593. echo $ECHO_N "(cached) $ECHO_C" >&6
  8594. else
  8595. ac_cv_c_uint16_t=no
  8596. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8597. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8598. cat >conftest.$ac_ext <<_ACEOF
  8599. /* confdefs.h. */
  8600. _ACEOF
  8601. cat confdefs.h >>conftest.$ac_ext
  8602. cat >>conftest.$ac_ext <<_ACEOF
  8603. /* end confdefs.h. */
  8604. $ac_includes_default
  8605. int
  8606. main ()
  8607. {
  8608. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8609. test_array [0] = 0
  8610. ;
  8611. return 0;
  8612. }
  8613. _ACEOF
  8614. rm -f conftest.$ac_objext
  8615. if { (ac_try="$ac_compile"
  8616. case "(($ac_try" in
  8617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8618. *) ac_try_echo=$ac_try;;
  8619. esac
  8620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8621. (eval "$ac_compile") 2>conftest.er1
  8622. ac_status=$?
  8623. grep -v '^ *+' conftest.er1 >conftest.err
  8624. rm -f conftest.er1
  8625. cat conftest.err >&5
  8626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8627. (exit $ac_status); } && {
  8628. test -z "$ac_cxx_werror_flag" ||
  8629. test ! -s conftest.err
  8630. } && test -s conftest.$ac_objext; then
  8631. case $ac_type in
  8632. uint16_t) ac_cv_c_uint16_t=yes ;;
  8633. *) ac_cv_c_uint16_t=$ac_type ;;
  8634. esac
  8635. else
  8636. echo "$as_me: failed program was:" >&5
  8637. sed 's/^/| /' conftest.$ac_ext >&5
  8638. fi
  8639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8640. test "$ac_cv_c_uint16_t" != no && break
  8641. done
  8642. fi
  8643. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8644. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8645. case $ac_cv_c_uint16_t in #(
  8646. no|yes) ;; #(
  8647. *)
  8648. cat >>confdefs.h <<_ACEOF
  8649. #define uint16_t $ac_cv_c_uint16_t
  8650. _ACEOF
  8651. ;;
  8652. esac
  8653. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8654. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8655. if test "${ac_cv_c_uint32_t+set}" = set; then
  8656. echo $ECHO_N "(cached) $ECHO_C" >&6
  8657. else
  8658. ac_cv_c_uint32_t=no
  8659. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8660. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8661. cat >conftest.$ac_ext <<_ACEOF
  8662. /* confdefs.h. */
  8663. _ACEOF
  8664. cat confdefs.h >>conftest.$ac_ext
  8665. cat >>conftest.$ac_ext <<_ACEOF
  8666. /* end confdefs.h. */
  8667. $ac_includes_default
  8668. int
  8669. main ()
  8670. {
  8671. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8672. test_array [0] = 0
  8673. ;
  8674. return 0;
  8675. }
  8676. _ACEOF
  8677. rm -f conftest.$ac_objext
  8678. if { (ac_try="$ac_compile"
  8679. case "(($ac_try" in
  8680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8681. *) ac_try_echo=$ac_try;;
  8682. esac
  8683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8684. (eval "$ac_compile") 2>conftest.er1
  8685. ac_status=$?
  8686. grep -v '^ *+' conftest.er1 >conftest.err
  8687. rm -f conftest.er1
  8688. cat conftest.err >&5
  8689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8690. (exit $ac_status); } && {
  8691. test -z "$ac_cxx_werror_flag" ||
  8692. test ! -s conftest.err
  8693. } && test -s conftest.$ac_objext; then
  8694. case $ac_type in
  8695. uint32_t) ac_cv_c_uint32_t=yes ;;
  8696. *) ac_cv_c_uint32_t=$ac_type ;;
  8697. esac
  8698. else
  8699. echo "$as_me: failed program was:" >&5
  8700. sed 's/^/| /' conftest.$ac_ext >&5
  8701. fi
  8702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8703. test "$ac_cv_c_uint32_t" != no && break
  8704. done
  8705. fi
  8706. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8707. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8708. case $ac_cv_c_uint32_t in #(
  8709. no|yes) ;; #(
  8710. *)
  8711. cat >>confdefs.h <<\_ACEOF
  8712. #define _UINT32_T 1
  8713. _ACEOF
  8714. cat >>confdefs.h <<_ACEOF
  8715. #define uint32_t $ac_cv_c_uint32_t
  8716. _ACEOF
  8717. ;;
  8718. esac
  8719. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8720. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8721. if test "${ac_cv_c_uint64_t+set}" = set; then
  8722. echo $ECHO_N "(cached) $ECHO_C" >&6
  8723. else
  8724. ac_cv_c_uint64_t=no
  8725. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8726. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8727. cat >conftest.$ac_ext <<_ACEOF
  8728. /* confdefs.h. */
  8729. _ACEOF
  8730. cat confdefs.h >>conftest.$ac_ext
  8731. cat >>conftest.$ac_ext <<_ACEOF
  8732. /* end confdefs.h. */
  8733. $ac_includes_default
  8734. int
  8735. main ()
  8736. {
  8737. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8738. test_array [0] = 0
  8739. ;
  8740. return 0;
  8741. }
  8742. _ACEOF
  8743. rm -f conftest.$ac_objext
  8744. if { (ac_try="$ac_compile"
  8745. case "(($ac_try" in
  8746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8747. *) ac_try_echo=$ac_try;;
  8748. esac
  8749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8750. (eval "$ac_compile") 2>conftest.er1
  8751. ac_status=$?
  8752. grep -v '^ *+' conftest.er1 >conftest.err
  8753. rm -f conftest.er1
  8754. cat conftest.err >&5
  8755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8756. (exit $ac_status); } && {
  8757. test -z "$ac_cxx_werror_flag" ||
  8758. test ! -s conftest.err
  8759. } && test -s conftest.$ac_objext; then
  8760. case $ac_type in
  8761. uint64_t) ac_cv_c_uint64_t=yes ;;
  8762. *) ac_cv_c_uint64_t=$ac_type ;;
  8763. esac
  8764. else
  8765. echo "$as_me: failed program was:" >&5
  8766. sed 's/^/| /' conftest.$ac_ext >&5
  8767. fi
  8768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8769. test "$ac_cv_c_uint64_t" != no && break
  8770. done
  8771. fi
  8772. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8773. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8774. case $ac_cv_c_uint64_t in #(
  8775. no|yes) ;; #(
  8776. *)
  8777. cat >>confdefs.h <<\_ACEOF
  8778. #define _UINT64_T 1
  8779. _ACEOF
  8780. cat >>confdefs.h <<_ACEOF
  8781. #define uint64_t $ac_cv_c_uint64_t
  8782. _ACEOF
  8783. ;;
  8784. esac
  8785. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8786. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8787. if test "${ac_cv_c_uint8_t+set}" = set; then
  8788. echo $ECHO_N "(cached) $ECHO_C" >&6
  8789. else
  8790. ac_cv_c_uint8_t=no
  8791. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8792. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8793. cat >conftest.$ac_ext <<_ACEOF
  8794. /* confdefs.h. */
  8795. _ACEOF
  8796. cat confdefs.h >>conftest.$ac_ext
  8797. cat >>conftest.$ac_ext <<_ACEOF
  8798. /* end confdefs.h. */
  8799. $ac_includes_default
  8800. int
  8801. main ()
  8802. {
  8803. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8804. test_array [0] = 0
  8805. ;
  8806. return 0;
  8807. }
  8808. _ACEOF
  8809. rm -f conftest.$ac_objext
  8810. if { (ac_try="$ac_compile"
  8811. case "(($ac_try" in
  8812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8813. *) ac_try_echo=$ac_try;;
  8814. esac
  8815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8816. (eval "$ac_compile") 2>conftest.er1
  8817. ac_status=$?
  8818. grep -v '^ *+' conftest.er1 >conftest.err
  8819. rm -f conftest.er1
  8820. cat conftest.err >&5
  8821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8822. (exit $ac_status); } && {
  8823. test -z "$ac_cxx_werror_flag" ||
  8824. test ! -s conftest.err
  8825. } && test -s conftest.$ac_objext; then
  8826. case $ac_type in
  8827. uint8_t) ac_cv_c_uint8_t=yes ;;
  8828. *) ac_cv_c_uint8_t=$ac_type ;;
  8829. esac
  8830. else
  8831. echo "$as_me: failed program was:" >&5
  8832. sed 's/^/| /' conftest.$ac_ext >&5
  8833. fi
  8834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8835. test "$ac_cv_c_uint8_t" != no && break
  8836. done
  8837. fi
  8838. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8839. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8840. case $ac_cv_c_uint8_t in #(
  8841. no|yes) ;; #(
  8842. *)
  8843. cat >>confdefs.h <<\_ACEOF
  8844. #define _UINT8_T 1
  8845. _ACEOF
  8846. cat >>confdefs.h <<_ACEOF
  8847. #define uint8_t $ac_cv_c_uint8_t
  8848. _ACEOF
  8849. ;;
  8850. esac
  8851. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8852. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8853. if test "${ac_cv_c_volatile+set}" = set; then
  8854. echo $ECHO_N "(cached) $ECHO_C" >&6
  8855. else
  8856. cat >conftest.$ac_ext <<_ACEOF
  8857. /* confdefs.h. */
  8858. _ACEOF
  8859. cat confdefs.h >>conftest.$ac_ext
  8860. cat >>conftest.$ac_ext <<_ACEOF
  8861. /* end confdefs.h. */
  8862. int
  8863. main ()
  8864. {
  8865. volatile int x;
  8866. int * volatile y = (int *) 0;
  8867. return !x && !y;
  8868. ;
  8869. return 0;
  8870. }
  8871. _ACEOF
  8872. rm -f conftest.$ac_objext
  8873. if { (ac_try="$ac_compile"
  8874. case "(($ac_try" in
  8875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8876. *) ac_try_echo=$ac_try;;
  8877. esac
  8878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8879. (eval "$ac_compile") 2>conftest.er1
  8880. ac_status=$?
  8881. grep -v '^ *+' conftest.er1 >conftest.err
  8882. rm -f conftest.er1
  8883. cat conftest.err >&5
  8884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8885. (exit $ac_status); } && {
  8886. test -z "$ac_cxx_werror_flag" ||
  8887. test ! -s conftest.err
  8888. } && test -s conftest.$ac_objext; then
  8889. ac_cv_c_volatile=yes
  8890. else
  8891. echo "$as_me: failed program was:" >&5
  8892. sed 's/^/| /' conftest.$ac_ext >&5
  8893. ac_cv_c_volatile=no
  8894. fi
  8895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8896. fi
  8897. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8898. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8899. if test $ac_cv_c_volatile = no; then
  8900. cat >>confdefs.h <<\_ACEOF
  8901. #define volatile
  8902. _ACEOF
  8903. fi
  8904. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8905. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8906. if test "${ac_cv_type_ptrdiff_t+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. $ac_includes_default
  8916. typedef ptrdiff_t ac__type_new_;
  8917. int
  8918. main ()
  8919. {
  8920. if ((ac__type_new_ *) 0)
  8921. return 0;
  8922. if (sizeof (ac__type_new_))
  8923. return 0;
  8924. ;
  8925. return 0;
  8926. }
  8927. _ACEOF
  8928. rm -f conftest.$ac_objext
  8929. if { (ac_try="$ac_compile"
  8930. case "(($ac_try" in
  8931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8932. *) ac_try_echo=$ac_try;;
  8933. esac
  8934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8935. (eval "$ac_compile") 2>conftest.er1
  8936. ac_status=$?
  8937. grep -v '^ *+' conftest.er1 >conftest.err
  8938. rm -f conftest.er1
  8939. cat conftest.err >&5
  8940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8941. (exit $ac_status); } && {
  8942. test -z "$ac_cxx_werror_flag" ||
  8943. test ! -s conftest.err
  8944. } && test -s conftest.$ac_objext; then
  8945. ac_cv_type_ptrdiff_t=yes
  8946. else
  8947. echo "$as_me: failed program was:" >&5
  8948. sed 's/^/| /' conftest.$ac_ext >&5
  8949. ac_cv_type_ptrdiff_t=no
  8950. fi
  8951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8952. fi
  8953. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8954. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8955. if test $ac_cv_type_ptrdiff_t = yes; then
  8956. cat >>confdefs.h <<_ACEOF
  8957. #define HAVE_PTRDIFF_T 1
  8958. _ACEOF
  8959. fi
  8960. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8961. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8962. if test "${ac_cv_c_bigendian+set}" = set; then
  8963. echo $ECHO_N "(cached) $ECHO_C" >&6
  8964. else
  8965. # See if sys/param.h defines the BYTE_ORDER macro.
  8966. cat >conftest.$ac_ext <<_ACEOF
  8967. /* confdefs.h. */
  8968. _ACEOF
  8969. cat confdefs.h >>conftest.$ac_ext
  8970. cat >>conftest.$ac_ext <<_ACEOF
  8971. /* end confdefs.h. */
  8972. #include <sys/types.h>
  8973. #include <sys/param.h>
  8974. int
  8975. main ()
  8976. {
  8977. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8978. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8979. bogus endian macros
  8980. #endif
  8981. ;
  8982. return 0;
  8983. }
  8984. _ACEOF
  8985. rm -f conftest.$ac_objext
  8986. if { (ac_try="$ac_compile"
  8987. case "(($ac_try" in
  8988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8989. *) ac_try_echo=$ac_try;;
  8990. esac
  8991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8992. (eval "$ac_compile") 2>conftest.er1
  8993. ac_status=$?
  8994. grep -v '^ *+' conftest.er1 >conftest.err
  8995. rm -f conftest.er1
  8996. cat conftest.err >&5
  8997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8998. (exit $ac_status); } && {
  8999. test -z "$ac_cxx_werror_flag" ||
  9000. test ! -s conftest.err
  9001. } && test -s conftest.$ac_objext; then
  9002. # It does; now see whether it defined to BIG_ENDIAN or not.
  9003. cat >conftest.$ac_ext <<_ACEOF
  9004. /* confdefs.h. */
  9005. _ACEOF
  9006. cat confdefs.h >>conftest.$ac_ext
  9007. cat >>conftest.$ac_ext <<_ACEOF
  9008. /* end confdefs.h. */
  9009. #include <sys/types.h>
  9010. #include <sys/param.h>
  9011. int
  9012. main ()
  9013. {
  9014. #if BYTE_ORDER != BIG_ENDIAN
  9015. not big endian
  9016. #endif
  9017. ;
  9018. return 0;
  9019. }
  9020. _ACEOF
  9021. rm -f conftest.$ac_objext
  9022. if { (ac_try="$ac_compile"
  9023. case "(($ac_try" in
  9024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9025. *) ac_try_echo=$ac_try;;
  9026. esac
  9027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9028. (eval "$ac_compile") 2>conftest.er1
  9029. ac_status=$?
  9030. grep -v '^ *+' conftest.er1 >conftest.err
  9031. rm -f conftest.er1
  9032. cat conftest.err >&5
  9033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9034. (exit $ac_status); } && {
  9035. test -z "$ac_cxx_werror_flag" ||
  9036. test ! -s conftest.err
  9037. } && test -s conftest.$ac_objext; then
  9038. ac_cv_c_bigendian=yes
  9039. else
  9040. echo "$as_me: failed program was:" >&5
  9041. sed 's/^/| /' conftest.$ac_ext >&5
  9042. ac_cv_c_bigendian=no
  9043. fi
  9044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9045. else
  9046. echo "$as_me: failed program was:" >&5
  9047. sed 's/^/| /' conftest.$ac_ext >&5
  9048. # It does not; compile a test program.
  9049. if test "$cross_compiling" = yes; then
  9050. # try to guess the endianness by grepping values into an object file
  9051. ac_cv_c_bigendian=unknown
  9052. cat >conftest.$ac_ext <<_ACEOF
  9053. /* confdefs.h. */
  9054. _ACEOF
  9055. cat confdefs.h >>conftest.$ac_ext
  9056. cat >>conftest.$ac_ext <<_ACEOF
  9057. /* end confdefs.h. */
  9058. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9059. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9060. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  9061. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9062. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9063. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  9064. int
  9065. main ()
  9066. {
  9067. _ascii (); _ebcdic ();
  9068. ;
  9069. return 0;
  9070. }
  9071. _ACEOF
  9072. rm -f conftest.$ac_objext
  9073. if { (ac_try="$ac_compile"
  9074. case "(($ac_try" in
  9075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9076. *) ac_try_echo=$ac_try;;
  9077. esac
  9078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9079. (eval "$ac_compile") 2>conftest.er1
  9080. ac_status=$?
  9081. grep -v '^ *+' conftest.er1 >conftest.err
  9082. rm -f conftest.er1
  9083. cat conftest.err >&5
  9084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9085. (exit $ac_status); } && {
  9086. test -z "$ac_cxx_werror_flag" ||
  9087. test ! -s conftest.err
  9088. } && test -s conftest.$ac_objext; then
  9089. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  9090. ac_cv_c_bigendian=yes
  9091. fi
  9092. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9093. if test "$ac_cv_c_bigendian" = unknown; then
  9094. ac_cv_c_bigendian=no
  9095. else
  9096. # finding both strings is unlikely to happen, but who knows?
  9097. ac_cv_c_bigendian=unknown
  9098. fi
  9099. fi
  9100. else
  9101. echo "$as_me: failed program was:" >&5
  9102. sed 's/^/| /' conftest.$ac_ext >&5
  9103. fi
  9104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9105. else
  9106. cat >conftest.$ac_ext <<_ACEOF
  9107. /* confdefs.h. */
  9108. _ACEOF
  9109. cat confdefs.h >>conftest.$ac_ext
  9110. cat >>conftest.$ac_ext <<_ACEOF
  9111. /* end confdefs.h. */
  9112. $ac_includes_default
  9113. int
  9114. main ()
  9115. {
  9116. /* Are we little or big endian? From Harbison&Steele. */
  9117. union
  9118. {
  9119. long int l;
  9120. char c[sizeof (long int)];
  9121. } u;
  9122. u.l = 1;
  9123. return u.c[sizeof (long int) - 1] == 1;
  9124. ;
  9125. return 0;
  9126. }
  9127. _ACEOF
  9128. rm -f conftest$ac_exeext
  9129. if { (ac_try="$ac_link"
  9130. case "(($ac_try" in
  9131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9132. *) ac_try_echo=$ac_try;;
  9133. esac
  9134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9135. (eval "$ac_link") 2>&5
  9136. ac_status=$?
  9137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9138. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9139. { (case "(($ac_try" in
  9140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9141. *) ac_try_echo=$ac_try;;
  9142. esac
  9143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9144. (eval "$ac_try") 2>&5
  9145. ac_status=$?
  9146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9147. (exit $ac_status); }; }; then
  9148. ac_cv_c_bigendian=no
  9149. else
  9150. echo "$as_me: program exited with status $ac_status" >&5
  9151. echo "$as_me: failed program was:" >&5
  9152. sed 's/^/| /' conftest.$ac_ext >&5
  9153. ( exit $ac_status )
  9154. ac_cv_c_bigendian=yes
  9155. fi
  9156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9157. fi
  9158. fi
  9159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9160. fi
  9161. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9162. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  9163. case $ac_cv_c_bigendian in
  9164. yes)
  9165. cat >>confdefs.h <<\_ACEOF
  9166. #define WORDS_BIGENDIAN 1
  9167. _ACEOF
  9168. ;;
  9169. no)
  9170. ;;
  9171. *)
  9172. { { echo "$as_me:$LINENO: error: unknown endianness
  9173. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9174. echo "$as_me: error: unknown endianness
  9175. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9176. { (exit 1); exit 1; }; } ;;
  9177. esac
  9178. # Check whether --enable-largefile was given.
  9179. if test "${enable_largefile+set}" = set; then
  9180. enableval=$enable_largefile;
  9181. fi
  9182. if test "$enable_largefile" != no; then
  9183. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9184. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  9185. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9186. echo $ECHO_N "(cached) $ECHO_C" >&6
  9187. else
  9188. ac_cv_sys_largefile_CC=no
  9189. if test "$GCC" != yes; then
  9190. ac_save_CC=$CC
  9191. while :; do
  9192. # IRIX 6.2 and later do not support large files by default,
  9193. # so use the C compiler's -n32 option if that helps.
  9194. cat >conftest.$ac_ext <<_ACEOF
  9195. /* confdefs.h. */
  9196. _ACEOF
  9197. cat confdefs.h >>conftest.$ac_ext
  9198. cat >>conftest.$ac_ext <<_ACEOF
  9199. /* end confdefs.h. */
  9200. #include <sys/types.h>
  9201. /* Check that off_t can represent 2**63 - 1 correctly.
  9202. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9203. since some C++ compilers masquerading as C compilers
  9204. incorrectly reject 9223372036854775807. */
  9205. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9206. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9207. && LARGE_OFF_T % 2147483647 == 1)
  9208. ? 1 : -1];
  9209. int
  9210. main ()
  9211. {
  9212. ;
  9213. return 0;
  9214. }
  9215. _ACEOF
  9216. rm -f conftest.$ac_objext
  9217. if { (ac_try="$ac_compile"
  9218. case "(($ac_try" in
  9219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9220. *) ac_try_echo=$ac_try;;
  9221. esac
  9222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9223. (eval "$ac_compile") 2>conftest.er1
  9224. ac_status=$?
  9225. grep -v '^ *+' conftest.er1 >conftest.err
  9226. rm -f conftest.er1
  9227. cat conftest.err >&5
  9228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9229. (exit $ac_status); } && {
  9230. test -z "$ac_cxx_werror_flag" ||
  9231. test ! -s conftest.err
  9232. } && test -s conftest.$ac_objext; then
  9233. break
  9234. else
  9235. echo "$as_me: failed program was:" >&5
  9236. sed 's/^/| /' conftest.$ac_ext >&5
  9237. fi
  9238. rm -f core conftest.err conftest.$ac_objext
  9239. CC="$CC -n32"
  9240. rm -f conftest.$ac_objext
  9241. if { (ac_try="$ac_compile"
  9242. case "(($ac_try" in
  9243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9244. *) ac_try_echo=$ac_try;;
  9245. esac
  9246. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9247. (eval "$ac_compile") 2>conftest.er1
  9248. ac_status=$?
  9249. grep -v '^ *+' conftest.er1 >conftest.err
  9250. rm -f conftest.er1
  9251. cat conftest.err >&5
  9252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9253. (exit $ac_status); } && {
  9254. test -z "$ac_cxx_werror_flag" ||
  9255. test ! -s conftest.err
  9256. } && test -s conftest.$ac_objext; then
  9257. ac_cv_sys_largefile_CC=' -n32'; break
  9258. else
  9259. echo "$as_me: failed program was:" >&5
  9260. sed 's/^/| /' conftest.$ac_ext >&5
  9261. fi
  9262. rm -f core conftest.err conftest.$ac_objext
  9263. break
  9264. done
  9265. CC=$ac_save_CC
  9266. rm -f conftest.$ac_ext
  9267. fi
  9268. fi
  9269. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9270. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  9271. if test "$ac_cv_sys_largefile_CC" != no; then
  9272. CC=$CC$ac_cv_sys_largefile_CC
  9273. fi
  9274. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9275. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  9276. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9277. echo $ECHO_N "(cached) $ECHO_C" >&6
  9278. else
  9279. while :; do
  9280. cat >conftest.$ac_ext <<_ACEOF
  9281. /* confdefs.h. */
  9282. _ACEOF
  9283. cat confdefs.h >>conftest.$ac_ext
  9284. cat >>conftest.$ac_ext <<_ACEOF
  9285. /* end confdefs.h. */
  9286. #include <sys/types.h>
  9287. /* Check that off_t can represent 2**63 - 1 correctly.
  9288. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9289. since some C++ compilers masquerading as C compilers
  9290. incorrectly reject 9223372036854775807. */
  9291. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9292. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9293. && LARGE_OFF_T % 2147483647 == 1)
  9294. ? 1 : -1];
  9295. int
  9296. main ()
  9297. {
  9298. ;
  9299. return 0;
  9300. }
  9301. _ACEOF
  9302. rm -f conftest.$ac_objext
  9303. if { (ac_try="$ac_compile"
  9304. case "(($ac_try" in
  9305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9306. *) ac_try_echo=$ac_try;;
  9307. esac
  9308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9309. (eval "$ac_compile") 2>conftest.er1
  9310. ac_status=$?
  9311. grep -v '^ *+' conftest.er1 >conftest.err
  9312. rm -f conftest.er1
  9313. cat conftest.err >&5
  9314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9315. (exit $ac_status); } && {
  9316. test -z "$ac_cxx_werror_flag" ||
  9317. test ! -s conftest.err
  9318. } && test -s conftest.$ac_objext; then
  9319. ac_cv_sys_file_offset_bits=no; break
  9320. else
  9321. echo "$as_me: failed program was:" >&5
  9322. sed 's/^/| /' conftest.$ac_ext >&5
  9323. fi
  9324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9325. cat >conftest.$ac_ext <<_ACEOF
  9326. /* confdefs.h. */
  9327. _ACEOF
  9328. cat confdefs.h >>conftest.$ac_ext
  9329. cat >>conftest.$ac_ext <<_ACEOF
  9330. /* end confdefs.h. */
  9331. #define _FILE_OFFSET_BITS 64
  9332. #include <sys/types.h>
  9333. /* Check that off_t can represent 2**63 - 1 correctly.
  9334. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9335. since some C++ compilers masquerading as C compilers
  9336. incorrectly reject 9223372036854775807. */
  9337. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9338. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9339. && LARGE_OFF_T % 2147483647 == 1)
  9340. ? 1 : -1];
  9341. int
  9342. main ()
  9343. {
  9344. ;
  9345. return 0;
  9346. }
  9347. _ACEOF
  9348. rm -f conftest.$ac_objext
  9349. if { (ac_try="$ac_compile"
  9350. case "(($ac_try" in
  9351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9352. *) ac_try_echo=$ac_try;;
  9353. esac
  9354. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9355. (eval "$ac_compile") 2>conftest.er1
  9356. ac_status=$?
  9357. grep -v '^ *+' conftest.er1 >conftest.err
  9358. rm -f conftest.er1
  9359. cat conftest.err >&5
  9360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9361. (exit $ac_status); } && {
  9362. test -z "$ac_cxx_werror_flag" ||
  9363. test ! -s conftest.err
  9364. } && test -s conftest.$ac_objext; then
  9365. ac_cv_sys_file_offset_bits=64; break
  9366. else
  9367. echo "$as_me: failed program was:" >&5
  9368. sed 's/^/| /' conftest.$ac_ext >&5
  9369. fi
  9370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9371. ac_cv_sys_file_offset_bits=unknown
  9372. break
  9373. done
  9374. fi
  9375. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9376. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9377. case $ac_cv_sys_file_offset_bits in #(
  9378. no | unknown) ;;
  9379. *)
  9380. cat >>confdefs.h <<_ACEOF
  9381. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9382. _ACEOF
  9383. ;;
  9384. esac
  9385. rm -f conftest*
  9386. if test $ac_cv_sys_file_offset_bits = unknown; then
  9387. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9388. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9389. if test "${ac_cv_sys_large_files+set}" = set; then
  9390. echo $ECHO_N "(cached) $ECHO_C" >&6
  9391. else
  9392. while :; do
  9393. cat >conftest.$ac_ext <<_ACEOF
  9394. /* confdefs.h. */
  9395. _ACEOF
  9396. cat confdefs.h >>conftest.$ac_ext
  9397. cat >>conftest.$ac_ext <<_ACEOF
  9398. /* end confdefs.h. */
  9399. #include <sys/types.h>
  9400. /* Check that off_t can represent 2**63 - 1 correctly.
  9401. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9402. since some C++ compilers masquerading as C compilers
  9403. incorrectly reject 9223372036854775807. */
  9404. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9405. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9406. && LARGE_OFF_T % 2147483647 == 1)
  9407. ? 1 : -1];
  9408. int
  9409. main ()
  9410. {
  9411. ;
  9412. return 0;
  9413. }
  9414. _ACEOF
  9415. rm -f conftest.$ac_objext
  9416. if { (ac_try="$ac_compile"
  9417. case "(($ac_try" in
  9418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9419. *) ac_try_echo=$ac_try;;
  9420. esac
  9421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9422. (eval "$ac_compile") 2>conftest.er1
  9423. ac_status=$?
  9424. grep -v '^ *+' conftest.er1 >conftest.err
  9425. rm -f conftest.er1
  9426. cat conftest.err >&5
  9427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9428. (exit $ac_status); } && {
  9429. test -z "$ac_cxx_werror_flag" ||
  9430. test ! -s conftest.err
  9431. } && test -s conftest.$ac_objext; then
  9432. ac_cv_sys_large_files=no; break
  9433. else
  9434. echo "$as_me: failed program was:" >&5
  9435. sed 's/^/| /' conftest.$ac_ext >&5
  9436. fi
  9437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9438. cat >conftest.$ac_ext <<_ACEOF
  9439. /* confdefs.h. */
  9440. _ACEOF
  9441. cat confdefs.h >>conftest.$ac_ext
  9442. cat >>conftest.$ac_ext <<_ACEOF
  9443. /* end confdefs.h. */
  9444. #define _LARGE_FILES 1
  9445. #include <sys/types.h>
  9446. /* Check that off_t can represent 2**63 - 1 correctly.
  9447. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9448. since some C++ compilers masquerading as C compilers
  9449. incorrectly reject 9223372036854775807. */
  9450. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9451. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9452. && LARGE_OFF_T % 2147483647 == 1)
  9453. ? 1 : -1];
  9454. int
  9455. main ()
  9456. {
  9457. ;
  9458. return 0;
  9459. }
  9460. _ACEOF
  9461. rm -f conftest.$ac_objext
  9462. if { (ac_try="$ac_compile"
  9463. case "(($ac_try" in
  9464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9465. *) ac_try_echo=$ac_try;;
  9466. esac
  9467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9468. (eval "$ac_compile") 2>conftest.er1
  9469. ac_status=$?
  9470. grep -v '^ *+' conftest.er1 >conftest.err
  9471. rm -f conftest.er1
  9472. cat conftest.err >&5
  9473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9474. (exit $ac_status); } && {
  9475. test -z "$ac_cxx_werror_flag" ||
  9476. test ! -s conftest.err
  9477. } && test -s conftest.$ac_objext; then
  9478. ac_cv_sys_large_files=1; break
  9479. else
  9480. echo "$as_me: failed program was:" >&5
  9481. sed 's/^/| /' conftest.$ac_ext >&5
  9482. fi
  9483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9484. ac_cv_sys_large_files=unknown
  9485. break
  9486. done
  9487. fi
  9488. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9489. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9490. case $ac_cv_sys_large_files in #(
  9491. no | unknown) ;;
  9492. *)
  9493. cat >>confdefs.h <<_ACEOF
  9494. #define _LARGE_FILES $ac_cv_sys_large_files
  9495. _ACEOF
  9496. ;;
  9497. esac
  9498. rm -f conftest*
  9499. fi
  9500. fi
  9501. # Checks for library functions.
  9502. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9503. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9504. # Check whether --enable-nls was given.
  9505. if test "${enable_nls+set}" = set; then
  9506. enableval=$enable_nls; USE_NLS=$enableval
  9507. else
  9508. USE_NLS=yes
  9509. fi
  9510. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9511. echo "${ECHO_T}$USE_NLS" >&6; }
  9512. GETTEXT_MACRO_VERSION=0.17
  9513. # Prepare PATH_SEPARATOR.
  9514. # The user is always right.
  9515. if test "${PATH_SEPARATOR+set}" != set; then
  9516. echo "#! /bin/sh" >conf$$.sh
  9517. echo "exit 0" >>conf$$.sh
  9518. chmod +x conf$$.sh
  9519. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9520. PATH_SEPARATOR=';'
  9521. else
  9522. PATH_SEPARATOR=:
  9523. fi
  9524. rm -f conf$$.sh
  9525. fi
  9526. # Find out how to test for executable files. Don't use a zero-byte file,
  9527. # as systems may use methods other than mode bits to determine executability.
  9528. cat >conf$$.file <<_ASEOF
  9529. #! /bin/sh
  9530. exit 0
  9531. _ASEOF
  9532. chmod +x conf$$.file
  9533. if test -x conf$$.file >/dev/null 2>&1; then
  9534. ac_executable_p="test -x"
  9535. else
  9536. ac_executable_p="test -f"
  9537. fi
  9538. rm -f conf$$.file
  9539. # Extract the first word of "msgfmt", so it can be a program name with args.
  9540. set dummy msgfmt; ac_word=$2
  9541. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9542. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9543. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9544. echo $ECHO_N "(cached) $ECHO_C" >&6
  9545. else
  9546. case "$MSGFMT" in
  9547. [\\/]* | ?:[\\/]*)
  9548. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9549. ;;
  9550. *)
  9551. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9552. for ac_dir in $PATH; do
  9553. IFS="$ac_save_IFS"
  9554. test -z "$ac_dir" && ac_dir=.
  9555. for ac_exec_ext in '' $ac_executable_extensions; do
  9556. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9557. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9558. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9559. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9560. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9561. break 2
  9562. fi
  9563. fi
  9564. done
  9565. done
  9566. IFS="$ac_save_IFS"
  9567. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9568. ;;
  9569. esac
  9570. fi
  9571. MSGFMT="$ac_cv_path_MSGFMT"
  9572. if test "$MSGFMT" != ":"; then
  9573. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9574. echo "${ECHO_T}$MSGFMT" >&6; }
  9575. else
  9576. { echo "$as_me:$LINENO: result: no" >&5
  9577. echo "${ECHO_T}no" >&6; }
  9578. fi
  9579. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9580. set dummy gmsgfmt; ac_word=$2
  9581. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9582. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9583. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9584. echo $ECHO_N "(cached) $ECHO_C" >&6
  9585. else
  9586. case $GMSGFMT in
  9587. [\\/]* | ?:[\\/]*)
  9588. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9589. ;;
  9590. *)
  9591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9592. for as_dir in $PATH
  9593. do
  9594. IFS=$as_save_IFS
  9595. test -z "$as_dir" && as_dir=.
  9596. for ac_exec_ext in '' $ac_executable_extensions; do
  9597. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9598. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9599. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9600. break 2
  9601. fi
  9602. done
  9603. done
  9604. IFS=$as_save_IFS
  9605. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9606. ;;
  9607. esac
  9608. fi
  9609. GMSGFMT=$ac_cv_path_GMSGFMT
  9610. if test -n "$GMSGFMT"; then
  9611. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9612. echo "${ECHO_T}$GMSGFMT" >&6; }
  9613. else
  9614. { echo "$as_me:$LINENO: result: no" >&5
  9615. echo "${ECHO_T}no" >&6; }
  9616. fi
  9617. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9618. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9619. *) MSGFMT_015=$MSGFMT ;;
  9620. esac
  9621. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9622. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9623. *) GMSGFMT_015=$GMSGFMT ;;
  9624. esac
  9625. # Prepare PATH_SEPARATOR.
  9626. # The user is always right.
  9627. if test "${PATH_SEPARATOR+set}" != set; then
  9628. echo "#! /bin/sh" >conf$$.sh
  9629. echo "exit 0" >>conf$$.sh
  9630. chmod +x conf$$.sh
  9631. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9632. PATH_SEPARATOR=';'
  9633. else
  9634. PATH_SEPARATOR=:
  9635. fi
  9636. rm -f conf$$.sh
  9637. fi
  9638. # Find out how to test for executable files. Don't use a zero-byte file,
  9639. # as systems may use methods other than mode bits to determine executability.
  9640. cat >conf$$.file <<_ASEOF
  9641. #! /bin/sh
  9642. exit 0
  9643. _ASEOF
  9644. chmod +x conf$$.file
  9645. if test -x conf$$.file >/dev/null 2>&1; then
  9646. ac_executable_p="test -x"
  9647. else
  9648. ac_executable_p="test -f"
  9649. fi
  9650. rm -f conf$$.file
  9651. # Extract the first word of "xgettext", so it can be a program name with args.
  9652. set dummy xgettext; ac_word=$2
  9653. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9654. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9655. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9656. echo $ECHO_N "(cached) $ECHO_C" >&6
  9657. else
  9658. case "$XGETTEXT" in
  9659. [\\/]* | ?:[\\/]*)
  9660. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9661. ;;
  9662. *)
  9663. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9664. for ac_dir in $PATH; do
  9665. IFS="$ac_save_IFS"
  9666. test -z "$ac_dir" && ac_dir=.
  9667. for ac_exec_ext in '' $ac_executable_extensions; do
  9668. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9669. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9670. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9671. (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
  9672. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9673. break 2
  9674. fi
  9675. fi
  9676. done
  9677. done
  9678. IFS="$ac_save_IFS"
  9679. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9680. ;;
  9681. esac
  9682. fi
  9683. XGETTEXT="$ac_cv_path_XGETTEXT"
  9684. if test "$XGETTEXT" != ":"; then
  9685. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9686. echo "${ECHO_T}$XGETTEXT" >&6; }
  9687. else
  9688. { echo "$as_me:$LINENO: result: no" >&5
  9689. echo "${ECHO_T}no" >&6; }
  9690. fi
  9691. rm -f messages.po
  9692. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9693. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9694. *) XGETTEXT_015=$XGETTEXT ;;
  9695. esac
  9696. # Prepare PATH_SEPARATOR.
  9697. # The user is always right.
  9698. if test "${PATH_SEPARATOR+set}" != set; then
  9699. echo "#! /bin/sh" >conf$$.sh
  9700. echo "exit 0" >>conf$$.sh
  9701. chmod +x conf$$.sh
  9702. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9703. PATH_SEPARATOR=';'
  9704. else
  9705. PATH_SEPARATOR=:
  9706. fi
  9707. rm -f conf$$.sh
  9708. fi
  9709. # Find out how to test for executable files. Don't use a zero-byte file,
  9710. # as systems may use methods other than mode bits to determine executability.
  9711. cat >conf$$.file <<_ASEOF
  9712. #! /bin/sh
  9713. exit 0
  9714. _ASEOF
  9715. chmod +x conf$$.file
  9716. if test -x conf$$.file >/dev/null 2>&1; then
  9717. ac_executable_p="test -x"
  9718. else
  9719. ac_executable_p="test -f"
  9720. fi
  9721. rm -f conf$$.file
  9722. # Extract the first word of "msgmerge", so it can be a program name with args.
  9723. set dummy msgmerge; ac_word=$2
  9724. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9725. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9726. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9727. echo $ECHO_N "(cached) $ECHO_C" >&6
  9728. else
  9729. case "$MSGMERGE" in
  9730. [\\/]* | ?:[\\/]*)
  9731. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9732. ;;
  9733. *)
  9734. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9735. for ac_dir in $PATH; do
  9736. IFS="$ac_save_IFS"
  9737. test -z "$ac_dir" && ac_dir=.
  9738. for ac_exec_ext in '' $ac_executable_extensions; do
  9739. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9740. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9741. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9742. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9743. break 2
  9744. fi
  9745. fi
  9746. done
  9747. done
  9748. IFS="$ac_save_IFS"
  9749. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9750. ;;
  9751. esac
  9752. fi
  9753. MSGMERGE="$ac_cv_path_MSGMERGE"
  9754. if test "$MSGMERGE" != ":"; then
  9755. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9756. echo "${ECHO_T}$MSGMERGE" >&6; }
  9757. else
  9758. { echo "$as_me:$LINENO: result: no" >&5
  9759. echo "${ECHO_T}no" >&6; }
  9760. fi
  9761. test -n "$localedir" || localedir='${datadir}/locale'
  9762. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9763. ac_config_commands="$ac_config_commands po-directories"
  9764. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9765. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9766. if test "${ac_cv_gnu_library_2+set}" = set; then
  9767. echo $ECHO_N "(cached) $ECHO_C" >&6
  9768. else
  9769. cat >conftest.$ac_ext <<_ACEOF
  9770. /* confdefs.h. */
  9771. _ACEOF
  9772. cat confdefs.h >>conftest.$ac_ext
  9773. cat >>conftest.$ac_ext <<_ACEOF
  9774. /* end confdefs.h. */
  9775. #include <features.h>
  9776. #ifdef __GNU_LIBRARY__
  9777. #if (__GLIBC__ >= 2)
  9778. Lucky GNU user
  9779. #endif
  9780. #endif
  9781. _ACEOF
  9782. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9783. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9784. ac_cv_gnu_library_2=yes
  9785. else
  9786. ac_cv_gnu_library_2=no
  9787. fi
  9788. rm -f conftest*
  9789. fi
  9790. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9791. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9792. GLIBC2="$ac_cv_gnu_library_2"
  9793. CFLAG_VISIBILITY=
  9794. HAVE_VISIBILITY=0
  9795. if test -n "$GCC"; then
  9796. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9797. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9798. if test "${gl_cv_cc_visibility+set}" = set; then
  9799. echo $ECHO_N "(cached) $ECHO_C" >&6
  9800. else
  9801. gl_save_CFLAGS="$CFLAGS"
  9802. CFLAGS="$CFLAGS -fvisibility=hidden"
  9803. cat >conftest.$ac_ext <<_ACEOF
  9804. /* confdefs.h. */
  9805. _ACEOF
  9806. cat confdefs.h >>conftest.$ac_ext
  9807. cat >>conftest.$ac_ext <<_ACEOF
  9808. /* end confdefs.h. */
  9809. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9810. extern __attribute__((__visibility__("default"))) int exportedvar;
  9811. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9812. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9813. int
  9814. main ()
  9815. {
  9816. ;
  9817. return 0;
  9818. }
  9819. _ACEOF
  9820. rm -f conftest.$ac_objext
  9821. if { (ac_try="$ac_compile"
  9822. case "(($ac_try" in
  9823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9824. *) ac_try_echo=$ac_try;;
  9825. esac
  9826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9827. (eval "$ac_compile") 2>conftest.er1
  9828. ac_status=$?
  9829. grep -v '^ *+' conftest.er1 >conftest.err
  9830. rm -f conftest.er1
  9831. cat conftest.err >&5
  9832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9833. (exit $ac_status); } && {
  9834. test -z "$ac_cxx_werror_flag" ||
  9835. test ! -s conftest.err
  9836. } && test -s conftest.$ac_objext; then
  9837. gl_cv_cc_visibility=yes
  9838. else
  9839. echo "$as_me: failed program was:" >&5
  9840. sed 's/^/| /' conftest.$ac_ext >&5
  9841. gl_cv_cc_visibility=no
  9842. fi
  9843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9844. CFLAGS="$gl_save_CFLAGS"
  9845. fi
  9846. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9847. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9848. if test $gl_cv_cc_visibility = yes; then
  9849. CFLAG_VISIBILITY="-fvisibility=hidden"
  9850. HAVE_VISIBILITY=1
  9851. fi
  9852. fi
  9853. cat >>confdefs.h <<_ACEOF
  9854. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9855. _ACEOF
  9856. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9857. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9858. if test "${gl_cv_header_stdint_h+set}" = set; then
  9859. echo $ECHO_N "(cached) $ECHO_C" >&6
  9860. else
  9861. cat >conftest.$ac_ext <<_ACEOF
  9862. /* confdefs.h. */
  9863. _ACEOF
  9864. cat confdefs.h >>conftest.$ac_ext
  9865. cat >>conftest.$ac_ext <<_ACEOF
  9866. /* end confdefs.h. */
  9867. #include <sys/types.h>
  9868. #include <stdint.h>
  9869. int
  9870. main ()
  9871. {
  9872. uintmax_t i = (uintmax_t) -1; return !i;
  9873. ;
  9874. return 0;
  9875. }
  9876. _ACEOF
  9877. rm -f conftest.$ac_objext
  9878. if { (ac_try="$ac_compile"
  9879. case "(($ac_try" in
  9880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9881. *) ac_try_echo=$ac_try;;
  9882. esac
  9883. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9884. (eval "$ac_compile") 2>conftest.er1
  9885. ac_status=$?
  9886. grep -v '^ *+' conftest.er1 >conftest.err
  9887. rm -f conftest.er1
  9888. cat conftest.err >&5
  9889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9890. (exit $ac_status); } && {
  9891. test -z "$ac_cxx_werror_flag" ||
  9892. test ! -s conftest.err
  9893. } && test -s conftest.$ac_objext; then
  9894. gl_cv_header_stdint_h=yes
  9895. else
  9896. echo "$as_me: failed program was:" >&5
  9897. sed 's/^/| /' conftest.$ac_ext >&5
  9898. gl_cv_header_stdint_h=no
  9899. fi
  9900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9901. fi
  9902. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9903. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9904. if test $gl_cv_header_stdint_h = yes; then
  9905. cat >>confdefs.h <<_ACEOF
  9906. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9907. _ACEOF
  9908. fi
  9909. for ac_header in stdlib.h unistd.h
  9910. do
  9911. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9912. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9913. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9914. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9915. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9916. echo $ECHO_N "(cached) $ECHO_C" >&6
  9917. fi
  9918. ac_res=`eval echo '${'$as_ac_Header'}'`
  9919. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9920. echo "${ECHO_T}$ac_res" >&6; }
  9921. else
  9922. # Is the header compilable?
  9923. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9924. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9925. cat >conftest.$ac_ext <<_ACEOF
  9926. /* confdefs.h. */
  9927. _ACEOF
  9928. cat confdefs.h >>conftest.$ac_ext
  9929. cat >>conftest.$ac_ext <<_ACEOF
  9930. /* end confdefs.h. */
  9931. $ac_includes_default
  9932. #include <$ac_header>
  9933. _ACEOF
  9934. rm -f conftest.$ac_objext
  9935. if { (ac_try="$ac_compile"
  9936. case "(($ac_try" in
  9937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9938. *) ac_try_echo=$ac_try;;
  9939. esac
  9940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9941. (eval "$ac_compile") 2>conftest.er1
  9942. ac_status=$?
  9943. grep -v '^ *+' conftest.er1 >conftest.err
  9944. rm -f conftest.er1
  9945. cat conftest.err >&5
  9946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9947. (exit $ac_status); } && {
  9948. test -z "$ac_cxx_werror_flag" ||
  9949. test ! -s conftest.err
  9950. } && test -s conftest.$ac_objext; then
  9951. ac_header_compiler=yes
  9952. else
  9953. echo "$as_me: failed program was:" >&5
  9954. sed 's/^/| /' conftest.$ac_ext >&5
  9955. ac_header_compiler=no
  9956. fi
  9957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9958. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9959. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9960. # Is the header present?
  9961. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9962. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9963. cat >conftest.$ac_ext <<_ACEOF
  9964. /* confdefs.h. */
  9965. _ACEOF
  9966. cat confdefs.h >>conftest.$ac_ext
  9967. cat >>conftest.$ac_ext <<_ACEOF
  9968. /* end confdefs.h. */
  9969. #include <$ac_header>
  9970. _ACEOF
  9971. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9972. case "(($ac_try" in
  9973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9974. *) ac_try_echo=$ac_try;;
  9975. esac
  9976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9977. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9978. ac_status=$?
  9979. grep -v '^ *+' conftest.er1 >conftest.err
  9980. rm -f conftest.er1
  9981. cat conftest.err >&5
  9982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9983. (exit $ac_status); } >/dev/null && {
  9984. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9985. test ! -s conftest.err
  9986. }; then
  9987. ac_header_preproc=yes
  9988. else
  9989. echo "$as_me: failed program was:" >&5
  9990. sed 's/^/| /' conftest.$ac_ext >&5
  9991. ac_header_preproc=no
  9992. fi
  9993. rm -f conftest.err conftest.$ac_ext
  9994. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9995. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9996. # So? What about this header?
  9997. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9998. yes:no: )
  9999. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10000. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10001. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10002. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10003. ac_header_preproc=yes
  10004. ;;
  10005. no:yes:* )
  10006. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10007. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10008. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10009. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10010. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10011. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10012. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10013. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10014. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10015. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10016. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10017. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10018. ( cat <<\_ASBOX
  10019. ## ----------------------------------------------- ##
  10020. ## Report this to t-tujikawa@users.sourceforge.net ##
  10021. ## ----------------------------------------------- ##
  10022. _ASBOX
  10023. ) | sed "s/^/$as_me: WARNING: /" >&2
  10024. ;;
  10025. esac
  10026. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10027. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10028. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10029. echo $ECHO_N "(cached) $ECHO_C" >&6
  10030. else
  10031. eval "$as_ac_Header=\$ac_header_preproc"
  10032. fi
  10033. ac_res=`eval echo '${'$as_ac_Header'}'`
  10034. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10035. echo "${ECHO_T}$ac_res" >&6; }
  10036. fi
  10037. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10038. cat >>confdefs.h <<_ACEOF
  10039. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10040. _ACEOF
  10041. fi
  10042. done
  10043. for ac_func in getpagesize
  10044. do
  10045. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10046. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10047. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10048. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10049. echo $ECHO_N "(cached) $ECHO_C" >&6
  10050. else
  10051. cat >conftest.$ac_ext <<_ACEOF
  10052. /* confdefs.h. */
  10053. _ACEOF
  10054. cat confdefs.h >>conftest.$ac_ext
  10055. cat >>conftest.$ac_ext <<_ACEOF
  10056. /* end confdefs.h. */
  10057. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10058. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10059. #define $ac_func innocuous_$ac_func
  10060. /* System header to define __stub macros and hopefully few prototypes,
  10061. which can conflict with char $ac_func (); below.
  10062. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10063. <limits.h> exists even on freestanding compilers. */
  10064. #ifdef __STDC__
  10065. # include <limits.h>
  10066. #else
  10067. # include <assert.h>
  10068. #endif
  10069. #undef $ac_func
  10070. /* Override any GCC internal prototype to avoid an error.
  10071. Use char because int might match the return type of a GCC
  10072. builtin and then its argument prototype would still apply. */
  10073. #ifdef __cplusplus
  10074. extern "C"
  10075. #endif
  10076. char $ac_func ();
  10077. /* The GNU C library defines this for functions which it implements
  10078. to always fail with ENOSYS. Some functions are actually named
  10079. something starting with __ and the normal name is an alias. */
  10080. #if defined __stub_$ac_func || defined __stub___$ac_func
  10081. choke me
  10082. #endif
  10083. int
  10084. main ()
  10085. {
  10086. return $ac_func ();
  10087. ;
  10088. return 0;
  10089. }
  10090. _ACEOF
  10091. rm -f conftest.$ac_objext conftest$ac_exeext
  10092. if { (ac_try="$ac_link"
  10093. case "(($ac_try" in
  10094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10095. *) ac_try_echo=$ac_try;;
  10096. esac
  10097. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10098. (eval "$ac_link") 2>conftest.er1
  10099. ac_status=$?
  10100. grep -v '^ *+' conftest.er1 >conftest.err
  10101. rm -f conftest.er1
  10102. cat conftest.err >&5
  10103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10104. (exit $ac_status); } && {
  10105. test -z "$ac_cxx_werror_flag" ||
  10106. test ! -s conftest.err
  10107. } && test -s conftest$ac_exeext &&
  10108. $as_test_x conftest$ac_exeext; then
  10109. eval "$as_ac_var=yes"
  10110. else
  10111. echo "$as_me: failed program was:" >&5
  10112. sed 's/^/| /' conftest.$ac_ext >&5
  10113. eval "$as_ac_var=no"
  10114. fi
  10115. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10116. conftest$ac_exeext conftest.$ac_ext
  10117. fi
  10118. ac_res=`eval echo '${'$as_ac_var'}'`
  10119. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10120. echo "${ECHO_T}$ac_res" >&6; }
  10121. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10122. cat >>confdefs.h <<_ACEOF
  10123. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10124. _ACEOF
  10125. fi
  10126. done
  10127. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10128. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10129. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10130. echo $ECHO_N "(cached) $ECHO_C" >&6
  10131. else
  10132. if test "$cross_compiling" = yes; then
  10133. ac_cv_func_mmap_fixed_mapped=no
  10134. else
  10135. cat >conftest.$ac_ext <<_ACEOF
  10136. /* confdefs.h. */
  10137. _ACEOF
  10138. cat confdefs.h >>conftest.$ac_ext
  10139. cat >>conftest.$ac_ext <<_ACEOF
  10140. /* end confdefs.h. */
  10141. $ac_includes_default
  10142. /* malloc might have been renamed as rpl_malloc. */
  10143. #undef malloc
  10144. /* Thanks to Mike Haertel and Jim Avera for this test.
  10145. Here is a matrix of mmap possibilities:
  10146. mmap private not fixed
  10147. mmap private fixed at somewhere currently unmapped
  10148. mmap private fixed at somewhere already mapped
  10149. mmap shared not fixed
  10150. mmap shared fixed at somewhere currently unmapped
  10151. mmap shared fixed at somewhere already mapped
  10152. For private mappings, we should verify that changes cannot be read()
  10153. back from the file, nor mmap's back from the file at a different
  10154. address. (There have been systems where private was not correctly
  10155. implemented like the infamous i386 svr4.0, and systems where the
  10156. VM page cache was not coherent with the file system buffer cache
  10157. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10158. For shared mappings, we should conversely verify that changes get
  10159. propagated back to all the places they're supposed to be.
  10160. Grep wants private fixed already mapped.
  10161. The main things grep needs to know about mmap are:
  10162. * does it exist and is it safe to write into the mmap'd area
  10163. * how to use it (BSD variants) */
  10164. #include <fcntl.h>
  10165. #include <sys/mman.h>
  10166. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10167. char *malloc ();
  10168. #endif
  10169. /* This mess was copied from the GNU getpagesize.h. */
  10170. #ifndef HAVE_GETPAGESIZE
  10171. /* Assume that all systems that can run configure have sys/param.h. */
  10172. # ifndef HAVE_SYS_PARAM_H
  10173. # define HAVE_SYS_PARAM_H 1
  10174. # endif
  10175. # ifdef _SC_PAGESIZE
  10176. # define getpagesize() sysconf(_SC_PAGESIZE)
  10177. # else /* no _SC_PAGESIZE */
  10178. # ifdef HAVE_SYS_PARAM_H
  10179. # include <sys/param.h>
  10180. # ifdef EXEC_PAGESIZE
  10181. # define getpagesize() EXEC_PAGESIZE
  10182. # else /* no EXEC_PAGESIZE */
  10183. # ifdef NBPG
  10184. # define getpagesize() NBPG * CLSIZE
  10185. # ifndef CLSIZE
  10186. # define CLSIZE 1
  10187. # endif /* no CLSIZE */
  10188. # else /* no NBPG */
  10189. # ifdef NBPC
  10190. # define getpagesize() NBPC
  10191. # else /* no NBPC */
  10192. # ifdef PAGESIZE
  10193. # define getpagesize() PAGESIZE
  10194. # endif /* PAGESIZE */
  10195. # endif /* no NBPC */
  10196. # endif /* no NBPG */
  10197. # endif /* no EXEC_PAGESIZE */
  10198. # else /* no HAVE_SYS_PARAM_H */
  10199. # define getpagesize() 8192 /* punt totally */
  10200. # endif /* no HAVE_SYS_PARAM_H */
  10201. # endif /* no _SC_PAGESIZE */
  10202. #endif /* no HAVE_GETPAGESIZE */
  10203. int
  10204. main ()
  10205. {
  10206. char *data, *data2, *data3;
  10207. int i, pagesize;
  10208. int fd;
  10209. pagesize = getpagesize ();
  10210. /* First, make a file with some known garbage in it. */
  10211. data = (char *) malloc (pagesize);
  10212. if (!data)
  10213. return 1;
  10214. for (i = 0; i < pagesize; ++i)
  10215. *(data + i) = rand ();
  10216. umask (0);
  10217. fd = creat ("conftest.mmap", 0600);
  10218. if (fd < 0)
  10219. return 1;
  10220. if (write (fd, data, pagesize) != pagesize)
  10221. return 1;
  10222. close (fd);
  10223. /* Next, try to mmap the file at a fixed address which already has
  10224. something else allocated at it. If we can, also make sure that
  10225. we see the same garbage. */
  10226. fd = open ("conftest.mmap", O_RDWR);
  10227. if (fd < 0)
  10228. return 1;
  10229. data2 = (char *) malloc (2 * pagesize);
  10230. if (!data2)
  10231. return 1;
  10232. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10233. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10234. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10235. return 1;
  10236. for (i = 0; i < pagesize; ++i)
  10237. if (*(data + i) != *(data2 + i))
  10238. return 1;
  10239. /* Finally, make sure that changes to the mapped area do not
  10240. percolate back to the file as seen by read(). (This is a bug on
  10241. some variants of i386 svr4.0.) */
  10242. for (i = 0; i < pagesize; ++i)
  10243. *(data2 + i) = *(data2 + i) + 1;
  10244. data3 = (char *) malloc (pagesize);
  10245. if (!data3)
  10246. return 1;
  10247. if (read (fd, data3, pagesize) != pagesize)
  10248. return 1;
  10249. for (i = 0; i < pagesize; ++i)
  10250. if (*(data + i) != *(data3 + i))
  10251. return 1;
  10252. close (fd);
  10253. return 0;
  10254. }
  10255. _ACEOF
  10256. rm -f conftest$ac_exeext
  10257. if { (ac_try="$ac_link"
  10258. case "(($ac_try" in
  10259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10260. *) ac_try_echo=$ac_try;;
  10261. esac
  10262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10263. (eval "$ac_link") 2>&5
  10264. ac_status=$?
  10265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10266. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10267. { (case "(($ac_try" in
  10268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10269. *) ac_try_echo=$ac_try;;
  10270. esac
  10271. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10272. (eval "$ac_try") 2>&5
  10273. ac_status=$?
  10274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10275. (exit $ac_status); }; }; then
  10276. ac_cv_func_mmap_fixed_mapped=yes
  10277. else
  10278. echo "$as_me: program exited with status $ac_status" >&5
  10279. echo "$as_me: failed program was:" >&5
  10280. sed 's/^/| /' conftest.$ac_ext >&5
  10281. ( exit $ac_status )
  10282. ac_cv_func_mmap_fixed_mapped=no
  10283. fi
  10284. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10285. fi
  10286. fi
  10287. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10288. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10289. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10290. cat >>confdefs.h <<\_ACEOF
  10291. #define HAVE_MMAP 1
  10292. _ACEOF
  10293. fi
  10294. rm -f conftest.mmap
  10295. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10296. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  10297. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10298. echo $ECHO_N "(cached) $ECHO_C" >&6
  10299. else
  10300. gt_cv_int_divbyzero_sigfpe=
  10301. case "$host_os" in
  10302. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10303. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10304. # compiling. If we were to perform the real test, 1 Crash Report
  10305. # dialog window would pop up.
  10306. case "$host_cpu" in
  10307. i[34567]86 | x86_64)
  10308. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10309. esac
  10310. ;;
  10311. esac
  10312. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10313. if test "$cross_compiling" = yes; then
  10314. # Guess based on the CPU.
  10315. case "$host_cpu" in
  10316. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10317. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10318. *)
  10319. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10320. esac
  10321. else
  10322. cat >conftest.$ac_ext <<_ACEOF
  10323. /* confdefs.h. */
  10324. _ACEOF
  10325. cat confdefs.h >>conftest.$ac_ext
  10326. cat >>conftest.$ac_ext <<_ACEOF
  10327. /* end confdefs.h. */
  10328. #include <stdlib.h>
  10329. #include <signal.h>
  10330. static void
  10331. sigfpe_handler (int sig)
  10332. {
  10333. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10334. exit (sig != SIGFPE);
  10335. }
  10336. int x = 1;
  10337. int y = 0;
  10338. int z;
  10339. int nan;
  10340. int main ()
  10341. {
  10342. signal (SIGFPE, sigfpe_handler);
  10343. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10344. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10345. signal (SIGTRAP, sigfpe_handler);
  10346. #endif
  10347. /* Linux/SPARC yields signal SIGILL. */
  10348. #if defined (__sparc__) && defined (__linux__)
  10349. signal (SIGILL, sigfpe_handler);
  10350. #endif
  10351. z = x / y;
  10352. nan = y / y;
  10353. exit (1);
  10354. }
  10355. _ACEOF
  10356. rm -f conftest$ac_exeext
  10357. if { (ac_try="$ac_link"
  10358. case "(($ac_try" in
  10359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10360. *) ac_try_echo=$ac_try;;
  10361. esac
  10362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10363. (eval "$ac_link") 2>&5
  10364. ac_status=$?
  10365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10366. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10367. { (case "(($ac_try" in
  10368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10369. *) ac_try_echo=$ac_try;;
  10370. esac
  10371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10372. (eval "$ac_try") 2>&5
  10373. ac_status=$?
  10374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10375. (exit $ac_status); }; }; then
  10376. gt_cv_int_divbyzero_sigfpe=yes
  10377. else
  10378. echo "$as_me: program exited with status $ac_status" >&5
  10379. echo "$as_me: failed program was:" >&5
  10380. sed 's/^/| /' conftest.$ac_ext >&5
  10381. ( exit $ac_status )
  10382. gt_cv_int_divbyzero_sigfpe=no
  10383. fi
  10384. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10385. fi
  10386. fi
  10387. fi
  10388. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10389. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10390. case "$gt_cv_int_divbyzero_sigfpe" in
  10391. *yes) value=1;;
  10392. *) value=0;;
  10393. esac
  10394. cat >>confdefs.h <<_ACEOF
  10395. #define INTDIV0_RAISES_SIGFPE $value
  10396. _ACEOF
  10397. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10398. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10399. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10400. echo $ECHO_N "(cached) $ECHO_C" >&6
  10401. else
  10402. cat >conftest.$ac_ext <<_ACEOF
  10403. /* confdefs.h. */
  10404. _ACEOF
  10405. cat confdefs.h >>conftest.$ac_ext
  10406. cat >>conftest.$ac_ext <<_ACEOF
  10407. /* end confdefs.h. */
  10408. #include <sys/types.h>
  10409. #include <inttypes.h>
  10410. int
  10411. main ()
  10412. {
  10413. uintmax_t i = (uintmax_t) -1; return !i;
  10414. ;
  10415. return 0;
  10416. }
  10417. _ACEOF
  10418. rm -f conftest.$ac_objext
  10419. if { (ac_try="$ac_compile"
  10420. case "(($ac_try" in
  10421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10422. *) ac_try_echo=$ac_try;;
  10423. esac
  10424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10425. (eval "$ac_compile") 2>conftest.er1
  10426. ac_status=$?
  10427. grep -v '^ *+' conftest.er1 >conftest.err
  10428. rm -f conftest.er1
  10429. cat conftest.err >&5
  10430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10431. (exit $ac_status); } && {
  10432. test -z "$ac_cxx_werror_flag" ||
  10433. test ! -s conftest.err
  10434. } && test -s conftest.$ac_objext; then
  10435. gl_cv_header_inttypes_h=yes
  10436. else
  10437. echo "$as_me: failed program was:" >&5
  10438. sed 's/^/| /' conftest.$ac_ext >&5
  10439. gl_cv_header_inttypes_h=no
  10440. fi
  10441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10442. fi
  10443. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10444. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10445. if test $gl_cv_header_inttypes_h = yes; then
  10446. cat >>confdefs.h <<_ACEOF
  10447. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10448. _ACEOF
  10449. fi
  10450. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10451. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10452. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10453. echo $ECHO_N "(cached) $ECHO_C" >&6
  10454. else
  10455. cat >conftest.$ac_ext <<_ACEOF
  10456. /* confdefs.h. */
  10457. _ACEOF
  10458. cat confdefs.h >>conftest.$ac_ext
  10459. cat >>conftest.$ac_ext <<_ACEOF
  10460. /* end confdefs.h. */
  10461. /* Test preprocessor. */
  10462. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10463. error in preprocessor;
  10464. #endif
  10465. #if ! (18446744073709551615ULL <= -1ull)
  10466. error in preprocessor;
  10467. #endif
  10468. /* Test literals. */
  10469. long long int ll = 9223372036854775807ll;
  10470. long long int nll = -9223372036854775807LL;
  10471. unsigned long long int ull = 18446744073709551615ULL;
  10472. /* Test constant expressions. */
  10473. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10474. ? 1 : -1)];
  10475. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10476. ? 1 : -1)];
  10477. int i = 63;
  10478. int
  10479. main ()
  10480. {
  10481. /* Test availability of runtime routines for shift and division. */
  10482. long long int llmax = 9223372036854775807ll;
  10483. unsigned long long int ullmax = 18446744073709551615ull;
  10484. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10485. | (llmax / ll) | (llmax % ll)
  10486. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10487. | (ullmax / ull) | (ullmax % ull));
  10488. ;
  10489. return 0;
  10490. }
  10491. _ACEOF
  10492. rm -f conftest.$ac_objext conftest$ac_exeext
  10493. if { (ac_try="$ac_link"
  10494. case "(($ac_try" in
  10495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10496. *) ac_try_echo=$ac_try;;
  10497. esac
  10498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10499. (eval "$ac_link") 2>conftest.er1
  10500. ac_status=$?
  10501. grep -v '^ *+' conftest.er1 >conftest.err
  10502. rm -f conftest.er1
  10503. cat conftest.err >&5
  10504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10505. (exit $ac_status); } && {
  10506. test -z "$ac_cxx_werror_flag" ||
  10507. test ! -s conftest.err
  10508. } && test -s conftest$ac_exeext &&
  10509. $as_test_x conftest$ac_exeext; then
  10510. ac_cv_type_unsigned_long_long_int=yes
  10511. else
  10512. echo "$as_me: failed program was:" >&5
  10513. sed 's/^/| /' conftest.$ac_ext >&5
  10514. ac_cv_type_unsigned_long_long_int=no
  10515. fi
  10516. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10517. conftest$ac_exeext conftest.$ac_ext
  10518. fi
  10519. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10520. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10521. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10522. cat >>confdefs.h <<\_ACEOF
  10523. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10524. _ACEOF
  10525. fi
  10526. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10527. test $ac_cv_type_unsigned_long_long_int = yes \
  10528. && ac_type='unsigned long long' \
  10529. || ac_type='unsigned long'
  10530. cat >>confdefs.h <<_ACEOF
  10531. #define uintmax_t $ac_type
  10532. _ACEOF
  10533. else
  10534. cat >>confdefs.h <<\_ACEOF
  10535. #define HAVE_UINTMAX_T 1
  10536. _ACEOF
  10537. fi
  10538. for ac_header in inttypes.h
  10539. do
  10540. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10541. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10542. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10543. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10544. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10545. echo $ECHO_N "(cached) $ECHO_C" >&6
  10546. fi
  10547. ac_res=`eval echo '${'$as_ac_Header'}'`
  10548. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10549. echo "${ECHO_T}$ac_res" >&6; }
  10550. else
  10551. # Is the header compilable?
  10552. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10553. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10554. cat >conftest.$ac_ext <<_ACEOF
  10555. /* confdefs.h. */
  10556. _ACEOF
  10557. cat confdefs.h >>conftest.$ac_ext
  10558. cat >>conftest.$ac_ext <<_ACEOF
  10559. /* end confdefs.h. */
  10560. $ac_includes_default
  10561. #include <$ac_header>
  10562. _ACEOF
  10563. rm -f conftest.$ac_objext
  10564. if { (ac_try="$ac_compile"
  10565. case "(($ac_try" in
  10566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10567. *) ac_try_echo=$ac_try;;
  10568. esac
  10569. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10570. (eval "$ac_compile") 2>conftest.er1
  10571. ac_status=$?
  10572. grep -v '^ *+' conftest.er1 >conftest.err
  10573. rm -f conftest.er1
  10574. cat conftest.err >&5
  10575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10576. (exit $ac_status); } && {
  10577. test -z "$ac_cxx_werror_flag" ||
  10578. test ! -s conftest.err
  10579. } && test -s conftest.$ac_objext; then
  10580. ac_header_compiler=yes
  10581. else
  10582. echo "$as_me: failed program was:" >&5
  10583. sed 's/^/| /' conftest.$ac_ext >&5
  10584. ac_header_compiler=no
  10585. fi
  10586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10587. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10588. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10589. # Is the header present?
  10590. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10591. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10592. cat >conftest.$ac_ext <<_ACEOF
  10593. /* confdefs.h. */
  10594. _ACEOF
  10595. cat confdefs.h >>conftest.$ac_ext
  10596. cat >>conftest.$ac_ext <<_ACEOF
  10597. /* end confdefs.h. */
  10598. #include <$ac_header>
  10599. _ACEOF
  10600. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10601. case "(($ac_try" in
  10602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10603. *) ac_try_echo=$ac_try;;
  10604. esac
  10605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10606. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10607. ac_status=$?
  10608. grep -v '^ *+' conftest.er1 >conftest.err
  10609. rm -f conftest.er1
  10610. cat conftest.err >&5
  10611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10612. (exit $ac_status); } >/dev/null && {
  10613. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10614. test ! -s conftest.err
  10615. }; then
  10616. ac_header_preproc=yes
  10617. else
  10618. echo "$as_me: failed program was:" >&5
  10619. sed 's/^/| /' conftest.$ac_ext >&5
  10620. ac_header_preproc=no
  10621. fi
  10622. rm -f conftest.err conftest.$ac_ext
  10623. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10624. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10625. # So? What about this header?
  10626. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10627. yes:no: )
  10628. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10629. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10630. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10631. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10632. ac_header_preproc=yes
  10633. ;;
  10634. no:yes:* )
  10635. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10636. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10637. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10638. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10639. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10640. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10641. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10642. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10643. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10644. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10645. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10646. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10647. ( cat <<\_ASBOX
  10648. ## ----------------------------------------------- ##
  10649. ## Report this to t-tujikawa@users.sourceforge.net ##
  10650. ## ----------------------------------------------- ##
  10651. _ASBOX
  10652. ) | sed "s/^/$as_me: WARNING: /" >&2
  10653. ;;
  10654. esac
  10655. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10656. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10657. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10658. echo $ECHO_N "(cached) $ECHO_C" >&6
  10659. else
  10660. eval "$as_ac_Header=\$ac_header_preproc"
  10661. fi
  10662. ac_res=`eval echo '${'$as_ac_Header'}'`
  10663. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10664. echo "${ECHO_T}$ac_res" >&6; }
  10665. fi
  10666. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10667. cat >>confdefs.h <<_ACEOF
  10668. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10669. _ACEOF
  10670. fi
  10671. done
  10672. if test $ac_cv_header_inttypes_h = yes; then
  10673. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10674. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10675. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10676. echo $ECHO_N "(cached) $ECHO_C" >&6
  10677. else
  10678. cat >conftest.$ac_ext <<_ACEOF
  10679. /* confdefs.h. */
  10680. _ACEOF
  10681. cat confdefs.h >>conftest.$ac_ext
  10682. cat >>conftest.$ac_ext <<_ACEOF
  10683. /* end confdefs.h. */
  10684. #include <inttypes.h>
  10685. #ifdef PRId32
  10686. char *p = PRId32;
  10687. #endif
  10688. int
  10689. main ()
  10690. {
  10691. ;
  10692. return 0;
  10693. }
  10694. _ACEOF
  10695. rm -f conftest.$ac_objext
  10696. if { (ac_try="$ac_compile"
  10697. case "(($ac_try" in
  10698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10699. *) ac_try_echo=$ac_try;;
  10700. esac
  10701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10702. (eval "$ac_compile") 2>conftest.er1
  10703. ac_status=$?
  10704. grep -v '^ *+' conftest.er1 >conftest.err
  10705. rm -f conftest.er1
  10706. cat conftest.err >&5
  10707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10708. (exit $ac_status); } && {
  10709. test -z "$ac_cxx_werror_flag" ||
  10710. test ! -s conftest.err
  10711. } && test -s conftest.$ac_objext; then
  10712. gt_cv_inttypes_pri_broken=no
  10713. else
  10714. echo "$as_me: failed program was:" >&5
  10715. sed 's/^/| /' conftest.$ac_ext >&5
  10716. gt_cv_inttypes_pri_broken=yes
  10717. fi
  10718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10719. fi
  10720. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10721. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10722. fi
  10723. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10724. cat >>confdefs.h <<_ACEOF
  10725. #define PRI_MACROS_BROKEN 1
  10726. _ACEOF
  10727. PRI_MACROS_BROKEN=1
  10728. else
  10729. PRI_MACROS_BROKEN=0
  10730. fi
  10731. # Check whether --enable-threads was given.
  10732. if test "${enable_threads+set}" = set; then
  10733. enableval=$enable_threads; gl_use_threads=$enableval
  10734. else
  10735. case "$host_os" in
  10736. osf*) gl_use_threads=no ;;
  10737. *) gl_use_threads=yes ;;
  10738. esac
  10739. fi
  10740. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10741. # For using <pthread.h>:
  10742. case "$host_os" in
  10743. osf*)
  10744. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10745. # groks <pthread.h>. cc also understands the flag -pthread, but
  10746. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10747. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10748. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10749. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10750. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10751. ;;
  10752. esac
  10753. # Some systems optimize for single-threaded programs by default, and
  10754. # need special flags to disable these optimizations. For example, the
  10755. # definition of 'errno' in <errno.h>.
  10756. case "$host_os" in
  10757. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10758. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10759. esac
  10760. fi
  10761. if test "X$prefix" = "XNONE"; then
  10762. acl_final_prefix="$ac_default_prefix"
  10763. else
  10764. acl_final_prefix="$prefix"
  10765. fi
  10766. if test "X$exec_prefix" = "XNONE"; then
  10767. acl_final_exec_prefix='${prefix}'
  10768. else
  10769. acl_final_exec_prefix="$exec_prefix"
  10770. fi
  10771. acl_save_prefix="$prefix"
  10772. prefix="$acl_final_prefix"
  10773. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10774. prefix="$acl_save_prefix"
  10775. # Check whether --with-gnu-ld was given.
  10776. if test "${with_gnu_ld+set}" = set; then
  10777. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10778. else
  10779. with_gnu_ld=no
  10780. fi
  10781. # Prepare PATH_SEPARATOR.
  10782. # The user is always right.
  10783. if test "${PATH_SEPARATOR+set}" != set; then
  10784. echo "#! /bin/sh" >conf$$.sh
  10785. echo "exit 0" >>conf$$.sh
  10786. chmod +x conf$$.sh
  10787. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10788. PATH_SEPARATOR=';'
  10789. else
  10790. PATH_SEPARATOR=:
  10791. fi
  10792. rm -f conf$$.sh
  10793. fi
  10794. ac_prog=ld
  10795. if test "$GCC" = yes; then
  10796. # Check if gcc -print-prog-name=ld gives a path.
  10797. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10798. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10799. case $host in
  10800. *-*-mingw*)
  10801. # gcc leaves a trailing carriage return which upsets mingw
  10802. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10803. *)
  10804. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10805. esac
  10806. case $ac_prog in
  10807. # Accept absolute paths.
  10808. [\\/]* | [A-Za-z]:[\\/]*)
  10809. re_direlt='/[^/][^/]*/\.\./'
  10810. # Canonicalize the path of ld
  10811. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10812. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10813. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10814. done
  10815. test -z "$LD" && LD="$ac_prog"
  10816. ;;
  10817. "")
  10818. # If it fails, then pretend we aren't using GCC.
  10819. ac_prog=ld
  10820. ;;
  10821. *)
  10822. # If it is relative, then search for the first ld in PATH.
  10823. with_gnu_ld=unknown
  10824. ;;
  10825. esac
  10826. elif test "$with_gnu_ld" = yes; then
  10827. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10828. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10829. else
  10830. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10831. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10832. fi
  10833. if test "${acl_cv_path_LD+set}" = set; then
  10834. echo $ECHO_N "(cached) $ECHO_C" >&6
  10835. else
  10836. if test -z "$LD"; then
  10837. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10838. for ac_dir in $PATH; do
  10839. test -z "$ac_dir" && ac_dir=.
  10840. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10841. acl_cv_path_LD="$ac_dir/$ac_prog"
  10842. # Check to see if the program is GNU ld. I'd rather use --version,
  10843. # but apparently some GNU ld's only accept -v.
  10844. # Break only if it was the GNU/non-GNU ld that we prefer.
  10845. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10846. *GNU* | *'with BFD'*)
  10847. test "$with_gnu_ld" != no && break ;;
  10848. *)
  10849. test "$with_gnu_ld" != yes && break ;;
  10850. esac
  10851. fi
  10852. done
  10853. IFS="$ac_save_ifs"
  10854. else
  10855. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10856. fi
  10857. fi
  10858. LD="$acl_cv_path_LD"
  10859. if test -n "$LD"; then
  10860. { echo "$as_me:$LINENO: result: $LD" >&5
  10861. echo "${ECHO_T}$LD" >&6; }
  10862. else
  10863. { echo "$as_me:$LINENO: result: no" >&5
  10864. echo "${ECHO_T}no" >&6; }
  10865. fi
  10866. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10867. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10868. { (exit 1); exit 1; }; }
  10869. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10870. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10871. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10872. echo $ECHO_N "(cached) $ECHO_C" >&6
  10873. else
  10874. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10875. case `$LD -v 2>&1 </dev/null` in
  10876. *GNU* | *'with BFD'*)
  10877. acl_cv_prog_gnu_ld=yes ;;
  10878. *)
  10879. acl_cv_prog_gnu_ld=no ;;
  10880. esac
  10881. fi
  10882. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10883. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10884. with_gnu_ld=$acl_cv_prog_gnu_ld
  10885. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10886. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10887. if test "${acl_cv_rpath+set}" = set; then
  10888. echo $ECHO_N "(cached) $ECHO_C" >&6
  10889. else
  10890. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10891. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10892. . ./conftest.sh
  10893. rm -f ./conftest.sh
  10894. acl_cv_rpath=done
  10895. fi
  10896. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10897. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10898. wl="$acl_cv_wl"
  10899. acl_libext="$acl_cv_libext"
  10900. acl_shlibext="$acl_cv_shlibext"
  10901. acl_libname_spec="$acl_cv_libname_spec"
  10902. acl_library_names_spec="$acl_cv_library_names_spec"
  10903. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10904. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10905. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10906. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10907. # Check whether --enable-rpath was given.
  10908. if test "${enable_rpath+set}" = set; then
  10909. enableval=$enable_rpath; :
  10910. else
  10911. enable_rpath=yes
  10912. fi
  10913. acl_libdirstem=lib
  10914. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10915. if test -n "$searchpath"; then
  10916. acl_save_IFS="${IFS= }"; IFS=":"
  10917. for searchdir in $searchpath; do
  10918. if test -d "$searchdir"; then
  10919. case "$searchdir" in
  10920. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10921. *) searchdir=`cd "$searchdir" && pwd`
  10922. case "$searchdir" in
  10923. */lib64 ) acl_libdirstem=lib64 ;;
  10924. esac ;;
  10925. esac
  10926. fi
  10927. done
  10928. IFS="$acl_save_IFS"
  10929. fi
  10930. gl_threads_api=none
  10931. LIBTHREAD=
  10932. LTLIBTHREAD=
  10933. LIBMULTITHREAD=
  10934. LTLIBMULTITHREAD=
  10935. if test "$gl_use_threads" != no; then
  10936. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10937. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10938. gl_have_weak=no
  10939. cat >conftest.$ac_ext <<_ACEOF
  10940. /* confdefs.h. */
  10941. _ACEOF
  10942. cat confdefs.h >>conftest.$ac_ext
  10943. cat >>conftest.$ac_ext <<_ACEOF
  10944. /* end confdefs.h. */
  10945. extern void xyzzy ();
  10946. #pragma weak xyzzy
  10947. int
  10948. main ()
  10949. {
  10950. xyzzy();
  10951. ;
  10952. return 0;
  10953. }
  10954. _ACEOF
  10955. rm -f conftest.$ac_objext conftest$ac_exeext
  10956. if { (ac_try="$ac_link"
  10957. case "(($ac_try" in
  10958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10959. *) ac_try_echo=$ac_try;;
  10960. esac
  10961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10962. (eval "$ac_link") 2>conftest.er1
  10963. ac_status=$?
  10964. grep -v '^ *+' conftest.er1 >conftest.err
  10965. rm -f conftest.er1
  10966. cat conftest.err >&5
  10967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10968. (exit $ac_status); } && {
  10969. test -z "$ac_cxx_werror_flag" ||
  10970. test ! -s conftest.err
  10971. } && test -s conftest$ac_exeext &&
  10972. $as_test_x conftest$ac_exeext; then
  10973. gl_have_weak=yes
  10974. else
  10975. echo "$as_me: failed program was:" >&5
  10976. sed 's/^/| /' conftest.$ac_ext >&5
  10977. fi
  10978. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10979. conftest$ac_exeext conftest.$ac_ext
  10980. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10981. echo "${ECHO_T}$gl_have_weak" >&6; }
  10982. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10983. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10984. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10985. if test "${ac_cv_header_pthread_h+set}" = set; then
  10986. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10987. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10988. if test "${ac_cv_header_pthread_h+set}" = set; then
  10989. echo $ECHO_N "(cached) $ECHO_C" >&6
  10990. fi
  10991. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10992. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10993. else
  10994. # Is the header compilable?
  10995. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10996. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10997. cat >conftest.$ac_ext <<_ACEOF
  10998. /* confdefs.h. */
  10999. _ACEOF
  11000. cat confdefs.h >>conftest.$ac_ext
  11001. cat >>conftest.$ac_ext <<_ACEOF
  11002. /* end confdefs.h. */
  11003. $ac_includes_default
  11004. #include <pthread.h>
  11005. _ACEOF
  11006. rm -f conftest.$ac_objext
  11007. if { (ac_try="$ac_compile"
  11008. case "(($ac_try" in
  11009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11010. *) ac_try_echo=$ac_try;;
  11011. esac
  11012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11013. (eval "$ac_compile") 2>conftest.er1
  11014. ac_status=$?
  11015. grep -v '^ *+' conftest.er1 >conftest.err
  11016. rm -f conftest.er1
  11017. cat conftest.err >&5
  11018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11019. (exit $ac_status); } && {
  11020. test -z "$ac_cxx_werror_flag" ||
  11021. test ! -s conftest.err
  11022. } && test -s conftest.$ac_objext; then
  11023. ac_header_compiler=yes
  11024. else
  11025. echo "$as_me: failed program was:" >&5
  11026. sed 's/^/| /' conftest.$ac_ext >&5
  11027. ac_header_compiler=no
  11028. fi
  11029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11030. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11031. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11032. # Is the header present?
  11033. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  11034. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  11035. cat >conftest.$ac_ext <<_ACEOF
  11036. /* confdefs.h. */
  11037. _ACEOF
  11038. cat confdefs.h >>conftest.$ac_ext
  11039. cat >>conftest.$ac_ext <<_ACEOF
  11040. /* end confdefs.h. */
  11041. #include <pthread.h>
  11042. _ACEOF
  11043. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11044. case "(($ac_try" in
  11045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11046. *) ac_try_echo=$ac_try;;
  11047. esac
  11048. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11049. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11050. ac_status=$?
  11051. grep -v '^ *+' conftest.er1 >conftest.err
  11052. rm -f conftest.er1
  11053. cat conftest.err >&5
  11054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11055. (exit $ac_status); } >/dev/null && {
  11056. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11057. test ! -s conftest.err
  11058. }; then
  11059. ac_header_preproc=yes
  11060. else
  11061. echo "$as_me: failed program was:" >&5
  11062. sed 's/^/| /' conftest.$ac_ext >&5
  11063. ac_header_preproc=no
  11064. fi
  11065. rm -f conftest.err conftest.$ac_ext
  11066. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11067. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11068. # So? What about this header?
  11069. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11070. yes:no: )
  11071. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11072. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11073. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11074. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11075. ac_header_preproc=yes
  11076. ;;
  11077. no:yes:* )
  11078. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11079. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11080. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11081. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11082. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11083. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11084. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11085. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11086. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11087. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11088. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11089. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11090. ( cat <<\_ASBOX
  11091. ## ----------------------------------------------- ##
  11092. ## Report this to t-tujikawa@users.sourceforge.net ##
  11093. ## ----------------------------------------------- ##
  11094. _ASBOX
  11095. ) | sed "s/^/$as_me: WARNING: /" >&2
  11096. ;;
  11097. esac
  11098. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  11099. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  11100. if test "${ac_cv_header_pthread_h+set}" = set; then
  11101. echo $ECHO_N "(cached) $ECHO_C" >&6
  11102. else
  11103. ac_cv_header_pthread_h=$ac_header_preproc
  11104. fi
  11105. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11106. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  11107. fi
  11108. if test $ac_cv_header_pthread_h = yes; then
  11109. gl_have_pthread_h=yes
  11110. else
  11111. gl_have_pthread_h=no
  11112. fi
  11113. if test "$gl_have_pthread_h" = yes; then
  11114. # Other possible tests:
  11115. # -lpthreads (FSU threads, PCthreads)
  11116. # -lgthreads
  11117. gl_have_pthread=
  11118. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11119. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11120. # the second one only in libpthread, and lock.c needs it.
  11121. cat >conftest.$ac_ext <<_ACEOF
  11122. /* confdefs.h. */
  11123. _ACEOF
  11124. cat confdefs.h >>conftest.$ac_ext
  11125. cat >>conftest.$ac_ext <<_ACEOF
  11126. /* end confdefs.h. */
  11127. #include <pthread.h>
  11128. int
  11129. main ()
  11130. {
  11131. pthread_mutex_lock((pthread_mutex_t*)0);
  11132. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11133. ;
  11134. return 0;
  11135. }
  11136. _ACEOF
  11137. rm -f conftest.$ac_objext conftest$ac_exeext
  11138. if { (ac_try="$ac_link"
  11139. case "(($ac_try" in
  11140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11141. *) ac_try_echo=$ac_try;;
  11142. esac
  11143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11144. (eval "$ac_link") 2>conftest.er1
  11145. ac_status=$?
  11146. grep -v '^ *+' conftest.er1 >conftest.err
  11147. rm -f conftest.er1
  11148. cat conftest.err >&5
  11149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11150. (exit $ac_status); } && {
  11151. test -z "$ac_cxx_werror_flag" ||
  11152. test ! -s conftest.err
  11153. } && test -s conftest$ac_exeext &&
  11154. $as_test_x conftest$ac_exeext; then
  11155. gl_have_pthread=yes
  11156. else
  11157. echo "$as_me: failed program was:" >&5
  11158. sed 's/^/| /' conftest.$ac_ext >&5
  11159. fi
  11160. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11161. conftest$ac_exeext conftest.$ac_ext
  11162. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11163. # since it is defined as a macro on OSF/1.)
  11164. if test -n "$gl_have_pthread"; then
  11165. # The program links fine without libpthread. But it may actually
  11166. # need to link with libpthread in order to create multiple threads.
  11167. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11168. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11169. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11170. echo $ECHO_N "(cached) $ECHO_C" >&6
  11171. else
  11172. ac_check_lib_save_LIBS=$LIBS
  11173. LIBS="-lpthread $LIBS"
  11174. cat >conftest.$ac_ext <<_ACEOF
  11175. /* confdefs.h. */
  11176. _ACEOF
  11177. cat confdefs.h >>conftest.$ac_ext
  11178. cat >>conftest.$ac_ext <<_ACEOF
  11179. /* end confdefs.h. */
  11180. /* Override any GCC internal prototype to avoid an error.
  11181. Use char because int might match the return type of a GCC
  11182. builtin and then its argument prototype would still apply. */
  11183. #ifdef __cplusplus
  11184. extern "C"
  11185. #endif
  11186. char pthread_kill ();
  11187. int
  11188. main ()
  11189. {
  11190. return pthread_kill ();
  11191. ;
  11192. return 0;
  11193. }
  11194. _ACEOF
  11195. rm -f conftest.$ac_objext conftest$ac_exeext
  11196. if { (ac_try="$ac_link"
  11197. case "(($ac_try" in
  11198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11199. *) ac_try_echo=$ac_try;;
  11200. esac
  11201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11202. (eval "$ac_link") 2>conftest.er1
  11203. ac_status=$?
  11204. grep -v '^ *+' conftest.er1 >conftest.err
  11205. rm -f conftest.er1
  11206. cat conftest.err >&5
  11207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11208. (exit $ac_status); } && {
  11209. test -z "$ac_cxx_werror_flag" ||
  11210. test ! -s conftest.err
  11211. } && test -s conftest$ac_exeext &&
  11212. $as_test_x conftest$ac_exeext; then
  11213. ac_cv_lib_pthread_pthread_kill=yes
  11214. else
  11215. echo "$as_me: failed program was:" >&5
  11216. sed 's/^/| /' conftest.$ac_ext >&5
  11217. ac_cv_lib_pthread_pthread_kill=no
  11218. fi
  11219. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11220. conftest$ac_exeext conftest.$ac_ext
  11221. LIBS=$ac_check_lib_save_LIBS
  11222. fi
  11223. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11224. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11225. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11226. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11227. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11228. # Therefore pthread_in_use() needs to actually try to create a
  11229. # thread: pthread_create from libc will fail, whereas
  11230. # pthread_create will actually create a thread.
  11231. case "$host_os" in
  11232. solaris* | hpux*)
  11233. cat >>confdefs.h <<\_ACEOF
  11234. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11235. _ACEOF
  11236. esac
  11237. fi
  11238. else
  11239. # Some library is needed. Try libpthread and libc_r.
  11240. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11241. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11242. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11243. echo $ECHO_N "(cached) $ECHO_C" >&6
  11244. else
  11245. ac_check_lib_save_LIBS=$LIBS
  11246. LIBS="-lpthread $LIBS"
  11247. cat >conftest.$ac_ext <<_ACEOF
  11248. /* confdefs.h. */
  11249. _ACEOF
  11250. cat confdefs.h >>conftest.$ac_ext
  11251. cat >>conftest.$ac_ext <<_ACEOF
  11252. /* end confdefs.h. */
  11253. /* Override any GCC internal prototype to avoid an error.
  11254. Use char because int might match the return type of a GCC
  11255. builtin and then its argument prototype would still apply. */
  11256. #ifdef __cplusplus
  11257. extern "C"
  11258. #endif
  11259. char pthread_kill ();
  11260. int
  11261. main ()
  11262. {
  11263. return pthread_kill ();
  11264. ;
  11265. return 0;
  11266. }
  11267. _ACEOF
  11268. rm -f conftest.$ac_objext conftest$ac_exeext
  11269. if { (ac_try="$ac_link"
  11270. case "(($ac_try" in
  11271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11272. *) ac_try_echo=$ac_try;;
  11273. esac
  11274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11275. (eval "$ac_link") 2>conftest.er1
  11276. ac_status=$?
  11277. grep -v '^ *+' conftest.er1 >conftest.err
  11278. rm -f conftest.er1
  11279. cat conftest.err >&5
  11280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11281. (exit $ac_status); } && {
  11282. test -z "$ac_cxx_werror_flag" ||
  11283. test ! -s conftest.err
  11284. } && test -s conftest$ac_exeext &&
  11285. $as_test_x conftest$ac_exeext; then
  11286. ac_cv_lib_pthread_pthread_kill=yes
  11287. else
  11288. echo "$as_me: failed program was:" >&5
  11289. sed 's/^/| /' conftest.$ac_ext >&5
  11290. ac_cv_lib_pthread_pthread_kill=no
  11291. fi
  11292. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11293. conftest$ac_exeext conftest.$ac_ext
  11294. LIBS=$ac_check_lib_save_LIBS
  11295. fi
  11296. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11297. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11298. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11299. gl_have_pthread=yes
  11300. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11301. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11302. fi
  11303. if test -z "$gl_have_pthread"; then
  11304. # For FreeBSD 4.
  11305. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11306. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  11307. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11308. echo $ECHO_N "(cached) $ECHO_C" >&6
  11309. else
  11310. ac_check_lib_save_LIBS=$LIBS
  11311. LIBS="-lc_r $LIBS"
  11312. cat >conftest.$ac_ext <<_ACEOF
  11313. /* confdefs.h. */
  11314. _ACEOF
  11315. cat confdefs.h >>conftest.$ac_ext
  11316. cat >>conftest.$ac_ext <<_ACEOF
  11317. /* end confdefs.h. */
  11318. /* Override any GCC internal prototype to avoid an error.
  11319. Use char because int might match the return type of a GCC
  11320. builtin and then its argument prototype would still apply. */
  11321. #ifdef __cplusplus
  11322. extern "C"
  11323. #endif
  11324. char pthread_kill ();
  11325. int
  11326. main ()
  11327. {
  11328. return pthread_kill ();
  11329. ;
  11330. return 0;
  11331. }
  11332. _ACEOF
  11333. rm -f conftest.$ac_objext conftest$ac_exeext
  11334. if { (ac_try="$ac_link"
  11335. case "(($ac_try" in
  11336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11337. *) ac_try_echo=$ac_try;;
  11338. esac
  11339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11340. (eval "$ac_link") 2>conftest.er1
  11341. ac_status=$?
  11342. grep -v '^ *+' conftest.er1 >conftest.err
  11343. rm -f conftest.er1
  11344. cat conftest.err >&5
  11345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11346. (exit $ac_status); } && {
  11347. test -z "$ac_cxx_werror_flag" ||
  11348. test ! -s conftest.err
  11349. } && test -s conftest$ac_exeext &&
  11350. $as_test_x conftest$ac_exeext; then
  11351. ac_cv_lib_c_r_pthread_kill=yes
  11352. else
  11353. echo "$as_me: failed program was:" >&5
  11354. sed 's/^/| /' conftest.$ac_ext >&5
  11355. ac_cv_lib_c_r_pthread_kill=no
  11356. fi
  11357. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11358. conftest$ac_exeext conftest.$ac_ext
  11359. LIBS=$ac_check_lib_save_LIBS
  11360. fi
  11361. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11362. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11363. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11364. gl_have_pthread=yes
  11365. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11366. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11367. fi
  11368. fi
  11369. fi
  11370. if test -n "$gl_have_pthread"; then
  11371. gl_threads_api=posix
  11372. cat >>confdefs.h <<\_ACEOF
  11373. #define USE_POSIX_THREADS 1
  11374. _ACEOF
  11375. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11376. if test $gl_have_weak = yes; then
  11377. cat >>confdefs.h <<\_ACEOF
  11378. #define USE_POSIX_THREADS_WEAK 1
  11379. _ACEOF
  11380. LIBTHREAD=
  11381. LTLIBTHREAD=
  11382. fi
  11383. fi
  11384. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11385. # pthread_rwlock_* functions.
  11386. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11387. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11388. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11389. echo $ECHO_N "(cached) $ECHO_C" >&6
  11390. else
  11391. cat >conftest.$ac_ext <<_ACEOF
  11392. /* confdefs.h. */
  11393. _ACEOF
  11394. cat confdefs.h >>conftest.$ac_ext
  11395. cat >>conftest.$ac_ext <<_ACEOF
  11396. /* end confdefs.h. */
  11397. #include <pthread.h>
  11398. typedef pthread_rwlock_t ac__type_new_;
  11399. int
  11400. main ()
  11401. {
  11402. if ((ac__type_new_ *) 0)
  11403. return 0;
  11404. if (sizeof (ac__type_new_))
  11405. return 0;
  11406. ;
  11407. return 0;
  11408. }
  11409. _ACEOF
  11410. rm -f conftest.$ac_objext
  11411. if { (ac_try="$ac_compile"
  11412. case "(($ac_try" in
  11413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11414. *) ac_try_echo=$ac_try;;
  11415. esac
  11416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11417. (eval "$ac_compile") 2>conftest.er1
  11418. ac_status=$?
  11419. grep -v '^ *+' conftest.er1 >conftest.err
  11420. rm -f conftest.er1
  11421. cat conftest.err >&5
  11422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11423. (exit $ac_status); } && {
  11424. test -z "$ac_cxx_werror_flag" ||
  11425. test ! -s conftest.err
  11426. } && test -s conftest.$ac_objext; then
  11427. ac_cv_type_pthread_rwlock_t=yes
  11428. else
  11429. echo "$as_me: failed program was:" >&5
  11430. sed 's/^/| /' conftest.$ac_ext >&5
  11431. ac_cv_type_pthread_rwlock_t=no
  11432. fi
  11433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11434. fi
  11435. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11436. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11437. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11438. cat >>confdefs.h <<\_ACEOF
  11439. #define HAVE_PTHREAD_RWLOCK 1
  11440. _ACEOF
  11441. fi
  11442. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11443. cat >conftest.$ac_ext <<_ACEOF
  11444. /* confdefs.h. */
  11445. _ACEOF
  11446. cat confdefs.h >>conftest.$ac_ext
  11447. cat >>conftest.$ac_ext <<_ACEOF
  11448. /* end confdefs.h. */
  11449. #include <pthread.h>
  11450. int
  11451. main ()
  11452. {
  11453. #if __FreeBSD__ == 4
  11454. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11455. #else
  11456. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11457. return !x;
  11458. #endif
  11459. ;
  11460. return 0;
  11461. }
  11462. _ACEOF
  11463. rm -f conftest.$ac_objext
  11464. if { (ac_try="$ac_compile"
  11465. case "(($ac_try" in
  11466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11467. *) ac_try_echo=$ac_try;;
  11468. esac
  11469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11470. (eval "$ac_compile") 2>conftest.er1
  11471. ac_status=$?
  11472. grep -v '^ *+' conftest.er1 >conftest.err
  11473. rm -f conftest.er1
  11474. cat conftest.err >&5
  11475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11476. (exit $ac_status); } && {
  11477. test -z "$ac_cxx_werror_flag" ||
  11478. test ! -s conftest.err
  11479. } && test -s conftest.$ac_objext; then
  11480. cat >>confdefs.h <<\_ACEOF
  11481. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11482. _ACEOF
  11483. else
  11484. echo "$as_me: failed program was:" >&5
  11485. sed 's/^/| /' conftest.$ac_ext >&5
  11486. fi
  11487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11488. fi
  11489. fi
  11490. fi
  11491. if test -z "$gl_have_pthread"; then
  11492. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11493. gl_have_solaristhread=
  11494. gl_save_LIBS="$LIBS"
  11495. LIBS="$LIBS -lthread"
  11496. cat >conftest.$ac_ext <<_ACEOF
  11497. /* confdefs.h. */
  11498. _ACEOF
  11499. cat confdefs.h >>conftest.$ac_ext
  11500. cat >>conftest.$ac_ext <<_ACEOF
  11501. /* end confdefs.h. */
  11502. #include <thread.h>
  11503. #include <synch.h>
  11504. int
  11505. main ()
  11506. {
  11507. thr_self();
  11508. ;
  11509. return 0;
  11510. }
  11511. _ACEOF
  11512. rm -f conftest.$ac_objext conftest$ac_exeext
  11513. if { (ac_try="$ac_link"
  11514. case "(($ac_try" in
  11515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11516. *) ac_try_echo=$ac_try;;
  11517. esac
  11518. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11519. (eval "$ac_link") 2>conftest.er1
  11520. ac_status=$?
  11521. grep -v '^ *+' conftest.er1 >conftest.err
  11522. rm -f conftest.er1
  11523. cat conftest.err >&5
  11524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11525. (exit $ac_status); } && {
  11526. test -z "$ac_cxx_werror_flag" ||
  11527. test ! -s conftest.err
  11528. } && test -s conftest$ac_exeext &&
  11529. $as_test_x conftest$ac_exeext; then
  11530. gl_have_solaristhread=yes
  11531. else
  11532. echo "$as_me: failed program was:" >&5
  11533. sed 's/^/| /' conftest.$ac_ext >&5
  11534. fi
  11535. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11536. conftest$ac_exeext conftest.$ac_ext
  11537. LIBS="$gl_save_LIBS"
  11538. if test -n "$gl_have_solaristhread"; then
  11539. gl_threads_api=solaris
  11540. LIBTHREAD=-lthread
  11541. LTLIBTHREAD=-lthread
  11542. LIBMULTITHREAD="$LIBTHREAD"
  11543. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11544. cat >>confdefs.h <<\_ACEOF
  11545. #define USE_SOLARIS_THREADS 1
  11546. _ACEOF
  11547. if test $gl_have_weak = yes; then
  11548. cat >>confdefs.h <<\_ACEOF
  11549. #define USE_SOLARIS_THREADS_WEAK 1
  11550. _ACEOF
  11551. LIBTHREAD=
  11552. LTLIBTHREAD=
  11553. fi
  11554. fi
  11555. fi
  11556. fi
  11557. if test "$gl_use_threads" = pth; then
  11558. gl_save_CPPFLAGS="$CPPFLAGS"
  11559. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11560. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11561. if test "${ac_cv_libpth_libs+set}" = set; then
  11562. echo $ECHO_N "(cached) $ECHO_C" >&6
  11563. else
  11564. use_additional=yes
  11565. acl_save_prefix="$prefix"
  11566. prefix="$acl_final_prefix"
  11567. acl_save_exec_prefix="$exec_prefix"
  11568. exec_prefix="$acl_final_exec_prefix"
  11569. eval additional_includedir=\"$includedir\"
  11570. eval additional_libdir=\"$libdir\"
  11571. exec_prefix="$acl_save_exec_prefix"
  11572. prefix="$acl_save_prefix"
  11573. # Check whether --with-libpth-prefix was given.
  11574. if test "${with_libpth_prefix+set}" = set; then
  11575. withval=$with_libpth_prefix;
  11576. if test "X$withval" = "Xno"; then
  11577. use_additional=no
  11578. else
  11579. if test "X$withval" = "X"; then
  11580. acl_save_prefix="$prefix"
  11581. prefix="$acl_final_prefix"
  11582. acl_save_exec_prefix="$exec_prefix"
  11583. exec_prefix="$acl_final_exec_prefix"
  11584. eval additional_includedir=\"$includedir\"
  11585. eval additional_libdir=\"$libdir\"
  11586. exec_prefix="$acl_save_exec_prefix"
  11587. prefix="$acl_save_prefix"
  11588. else
  11589. additional_includedir="$withval/include"
  11590. additional_libdir="$withval/$acl_libdirstem"
  11591. fi
  11592. fi
  11593. fi
  11594. LIBPTH=
  11595. LTLIBPTH=
  11596. INCPTH=
  11597. LIBPTH_PREFIX=
  11598. rpathdirs=
  11599. ltrpathdirs=
  11600. names_already_handled=
  11601. names_next_round='pth '
  11602. while test -n "$names_next_round"; do
  11603. names_this_round="$names_next_round"
  11604. names_next_round=
  11605. for name in $names_this_round; do
  11606. already_handled=
  11607. for n in $names_already_handled; do
  11608. if test "$n" = "$name"; then
  11609. already_handled=yes
  11610. break
  11611. fi
  11612. done
  11613. if test -z "$already_handled"; then
  11614. names_already_handled="$names_already_handled $name"
  11615. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11616. eval value=\"\$HAVE_LIB$uppername\"
  11617. if test -n "$value"; then
  11618. if test "$value" = yes; then
  11619. eval value=\"\$LIB$uppername\"
  11620. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11621. eval value=\"\$LTLIB$uppername\"
  11622. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11623. else
  11624. :
  11625. fi
  11626. else
  11627. found_dir=
  11628. found_la=
  11629. found_so=
  11630. found_a=
  11631. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11632. if test -n "$acl_shlibext"; then
  11633. shrext=".$acl_shlibext" # typically: shrext=.so
  11634. else
  11635. shrext=
  11636. fi
  11637. if test $use_additional = yes; then
  11638. dir="$additional_libdir"
  11639. if test -n "$acl_shlibext"; then
  11640. if test -f "$dir/$libname$shrext"; then
  11641. found_dir="$dir"
  11642. found_so="$dir/$libname$shrext"
  11643. else
  11644. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11645. ver=`(cd "$dir" && \
  11646. for f in "$libname$shrext".*; do echo "$f"; done \
  11647. | sed -e "s,^$libname$shrext\\\\.,," \
  11648. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11649. | sed 1q ) 2>/dev/null`
  11650. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11651. found_dir="$dir"
  11652. found_so="$dir/$libname$shrext.$ver"
  11653. fi
  11654. else
  11655. eval library_names=\"$acl_library_names_spec\"
  11656. for f in $library_names; do
  11657. if test -f "$dir/$f"; then
  11658. found_dir="$dir"
  11659. found_so="$dir/$f"
  11660. break
  11661. fi
  11662. done
  11663. fi
  11664. fi
  11665. fi
  11666. if test "X$found_dir" = "X"; then
  11667. if test -f "$dir/$libname.$acl_libext"; then
  11668. found_dir="$dir"
  11669. found_a="$dir/$libname.$acl_libext"
  11670. fi
  11671. fi
  11672. if test "X$found_dir" != "X"; then
  11673. if test -f "$dir/$libname.la"; then
  11674. found_la="$dir/$libname.la"
  11675. fi
  11676. fi
  11677. fi
  11678. if test "X$found_dir" = "X"; then
  11679. for x in $LDFLAGS $LTLIBPTH; do
  11680. acl_save_prefix="$prefix"
  11681. prefix="$acl_final_prefix"
  11682. acl_save_exec_prefix="$exec_prefix"
  11683. exec_prefix="$acl_final_exec_prefix"
  11684. eval x=\"$x\"
  11685. exec_prefix="$acl_save_exec_prefix"
  11686. prefix="$acl_save_prefix"
  11687. case "$x" in
  11688. -L*)
  11689. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11690. if test -n "$acl_shlibext"; then
  11691. if test -f "$dir/$libname$shrext"; then
  11692. found_dir="$dir"
  11693. found_so="$dir/$libname$shrext"
  11694. else
  11695. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11696. ver=`(cd "$dir" && \
  11697. for f in "$libname$shrext".*; do echo "$f"; done \
  11698. | sed -e "s,^$libname$shrext\\\\.,," \
  11699. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11700. | sed 1q ) 2>/dev/null`
  11701. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11702. found_dir="$dir"
  11703. found_so="$dir/$libname$shrext.$ver"
  11704. fi
  11705. else
  11706. eval library_names=\"$acl_library_names_spec\"
  11707. for f in $library_names; do
  11708. if test -f "$dir/$f"; then
  11709. found_dir="$dir"
  11710. found_so="$dir/$f"
  11711. break
  11712. fi
  11713. done
  11714. fi
  11715. fi
  11716. fi
  11717. if test "X$found_dir" = "X"; then
  11718. if test -f "$dir/$libname.$acl_libext"; then
  11719. found_dir="$dir"
  11720. found_a="$dir/$libname.$acl_libext"
  11721. fi
  11722. fi
  11723. if test "X$found_dir" != "X"; then
  11724. if test -f "$dir/$libname.la"; then
  11725. found_la="$dir/$libname.la"
  11726. fi
  11727. fi
  11728. ;;
  11729. esac
  11730. if test "X$found_dir" != "X"; then
  11731. break
  11732. fi
  11733. done
  11734. fi
  11735. if test "X$found_dir" != "X"; then
  11736. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11737. if test "X$found_so" != "X"; then
  11738. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11739. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11740. else
  11741. haveit=
  11742. for x in $ltrpathdirs; do
  11743. if test "X$x" = "X$found_dir"; then
  11744. haveit=yes
  11745. break
  11746. fi
  11747. done
  11748. if test -z "$haveit"; then
  11749. ltrpathdirs="$ltrpathdirs $found_dir"
  11750. fi
  11751. if test "$acl_hardcode_direct" = yes; then
  11752. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11753. else
  11754. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11755. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11756. haveit=
  11757. for x in $rpathdirs; do
  11758. if test "X$x" = "X$found_dir"; then
  11759. haveit=yes
  11760. break
  11761. fi
  11762. done
  11763. if test -z "$haveit"; then
  11764. rpathdirs="$rpathdirs $found_dir"
  11765. fi
  11766. else
  11767. haveit=
  11768. for x in $LDFLAGS $LIBPTH; do
  11769. acl_save_prefix="$prefix"
  11770. prefix="$acl_final_prefix"
  11771. acl_save_exec_prefix="$exec_prefix"
  11772. exec_prefix="$acl_final_exec_prefix"
  11773. eval x=\"$x\"
  11774. exec_prefix="$acl_save_exec_prefix"
  11775. prefix="$acl_save_prefix"
  11776. if test "X$x" = "X-L$found_dir"; then
  11777. haveit=yes
  11778. break
  11779. fi
  11780. done
  11781. if test -z "$haveit"; then
  11782. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11783. fi
  11784. if test "$acl_hardcode_minus_L" != no; then
  11785. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11786. else
  11787. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11788. fi
  11789. fi
  11790. fi
  11791. fi
  11792. else
  11793. if test "X$found_a" != "X"; then
  11794. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11795. else
  11796. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11797. fi
  11798. fi
  11799. additional_includedir=
  11800. case "$found_dir" in
  11801. */$acl_libdirstem | */$acl_libdirstem/)
  11802. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11803. LIBPTH_PREFIX="$basedir"
  11804. additional_includedir="$basedir/include"
  11805. ;;
  11806. esac
  11807. if test "X$additional_includedir" != "X"; then
  11808. if test "X$additional_includedir" != "X/usr/include"; then
  11809. haveit=
  11810. if test "X$additional_includedir" = "X/usr/local/include"; then
  11811. if test -n "$GCC"; then
  11812. case $host_os in
  11813. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11814. esac
  11815. fi
  11816. fi
  11817. if test -z "$haveit"; then
  11818. for x in $CPPFLAGS $INCPTH; do
  11819. acl_save_prefix="$prefix"
  11820. prefix="$acl_final_prefix"
  11821. acl_save_exec_prefix="$exec_prefix"
  11822. exec_prefix="$acl_final_exec_prefix"
  11823. eval x=\"$x\"
  11824. exec_prefix="$acl_save_exec_prefix"
  11825. prefix="$acl_save_prefix"
  11826. if test "X$x" = "X-I$additional_includedir"; then
  11827. haveit=yes
  11828. break
  11829. fi
  11830. done
  11831. if test -z "$haveit"; then
  11832. if test -d "$additional_includedir"; then
  11833. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11834. fi
  11835. fi
  11836. fi
  11837. fi
  11838. fi
  11839. if test -n "$found_la"; then
  11840. save_libdir="$libdir"
  11841. case "$found_la" in
  11842. */* | *\\*) . "$found_la" ;;
  11843. *) . "./$found_la" ;;
  11844. esac
  11845. libdir="$save_libdir"
  11846. for dep in $dependency_libs; do
  11847. case "$dep" in
  11848. -L*)
  11849. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11850. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11851. haveit=
  11852. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11853. if test -n "$GCC"; then
  11854. case $host_os in
  11855. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11856. esac
  11857. fi
  11858. fi
  11859. if test -z "$haveit"; then
  11860. haveit=
  11861. for x in $LDFLAGS $LIBPTH; do
  11862. acl_save_prefix="$prefix"
  11863. prefix="$acl_final_prefix"
  11864. acl_save_exec_prefix="$exec_prefix"
  11865. exec_prefix="$acl_final_exec_prefix"
  11866. eval x=\"$x\"
  11867. exec_prefix="$acl_save_exec_prefix"
  11868. prefix="$acl_save_prefix"
  11869. if test "X$x" = "X-L$additional_libdir"; then
  11870. haveit=yes
  11871. break
  11872. fi
  11873. done
  11874. if test -z "$haveit"; then
  11875. if test -d "$additional_libdir"; then
  11876. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11877. fi
  11878. fi
  11879. haveit=
  11880. for x in $LDFLAGS $LTLIBPTH; do
  11881. acl_save_prefix="$prefix"
  11882. prefix="$acl_final_prefix"
  11883. acl_save_exec_prefix="$exec_prefix"
  11884. exec_prefix="$acl_final_exec_prefix"
  11885. eval x=\"$x\"
  11886. exec_prefix="$acl_save_exec_prefix"
  11887. prefix="$acl_save_prefix"
  11888. if test "X$x" = "X-L$additional_libdir"; then
  11889. haveit=yes
  11890. break
  11891. fi
  11892. done
  11893. if test -z "$haveit"; then
  11894. if test -d "$additional_libdir"; then
  11895. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11896. fi
  11897. fi
  11898. fi
  11899. fi
  11900. ;;
  11901. -R*)
  11902. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11903. if test "$enable_rpath" != no; then
  11904. haveit=
  11905. for x in $rpathdirs; do
  11906. if test "X$x" = "X$dir"; then
  11907. haveit=yes
  11908. break
  11909. fi
  11910. done
  11911. if test -z "$haveit"; then
  11912. rpathdirs="$rpathdirs $dir"
  11913. fi
  11914. haveit=
  11915. for x in $ltrpathdirs; do
  11916. if test "X$x" = "X$dir"; then
  11917. haveit=yes
  11918. break
  11919. fi
  11920. done
  11921. if test -z "$haveit"; then
  11922. ltrpathdirs="$ltrpathdirs $dir"
  11923. fi
  11924. fi
  11925. ;;
  11926. -l*)
  11927. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11928. ;;
  11929. *.la)
  11930. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11931. ;;
  11932. *)
  11933. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11934. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11935. ;;
  11936. esac
  11937. done
  11938. fi
  11939. else
  11940. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11941. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11942. fi
  11943. fi
  11944. fi
  11945. done
  11946. done
  11947. if test "X$rpathdirs" != "X"; then
  11948. if test -n "$acl_hardcode_libdir_separator"; then
  11949. alldirs=
  11950. for found_dir in $rpathdirs; do
  11951. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11952. done
  11953. acl_save_libdir="$libdir"
  11954. libdir="$alldirs"
  11955. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11956. libdir="$acl_save_libdir"
  11957. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11958. else
  11959. for found_dir in $rpathdirs; do
  11960. acl_save_libdir="$libdir"
  11961. libdir="$found_dir"
  11962. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11963. libdir="$acl_save_libdir"
  11964. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11965. done
  11966. fi
  11967. fi
  11968. if test "X$ltrpathdirs" != "X"; then
  11969. for found_dir in $ltrpathdirs; do
  11970. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11971. done
  11972. fi
  11973. ac_cv_libpth_libs="$LIBPTH"
  11974. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11975. ac_cv_libpth_cppflags="$INCPTH"
  11976. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11977. fi
  11978. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11979. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11980. LIBPTH="$ac_cv_libpth_libs"
  11981. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11982. INCPTH="$ac_cv_libpth_cppflags"
  11983. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11984. for element in $INCPTH; do
  11985. haveit=
  11986. for x in $CPPFLAGS; do
  11987. acl_save_prefix="$prefix"
  11988. prefix="$acl_final_prefix"
  11989. acl_save_exec_prefix="$exec_prefix"
  11990. exec_prefix="$acl_final_exec_prefix"
  11991. eval x=\"$x\"
  11992. exec_prefix="$acl_save_exec_prefix"
  11993. prefix="$acl_save_prefix"
  11994. if test "X$x" = "X$element"; then
  11995. haveit=yes
  11996. break
  11997. fi
  11998. done
  11999. if test -z "$haveit"; then
  12000. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12001. fi
  12002. done
  12003. HAVE_LIBPTH=yes
  12004. gl_have_pth=
  12005. gl_save_LIBS="$LIBS"
  12006. LIBS="$LIBS -lpth"
  12007. cat >conftest.$ac_ext <<_ACEOF
  12008. /* confdefs.h. */
  12009. _ACEOF
  12010. cat confdefs.h >>conftest.$ac_ext
  12011. cat >>conftest.$ac_ext <<_ACEOF
  12012. /* end confdefs.h. */
  12013. #include <pth.h>
  12014. int
  12015. main ()
  12016. {
  12017. pth_self();
  12018. ;
  12019. return 0;
  12020. }
  12021. _ACEOF
  12022. rm -f conftest.$ac_objext conftest$ac_exeext
  12023. if { (ac_try="$ac_link"
  12024. case "(($ac_try" in
  12025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12026. *) ac_try_echo=$ac_try;;
  12027. esac
  12028. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12029. (eval "$ac_link") 2>conftest.er1
  12030. ac_status=$?
  12031. grep -v '^ *+' conftest.er1 >conftest.err
  12032. rm -f conftest.er1
  12033. cat conftest.err >&5
  12034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12035. (exit $ac_status); } && {
  12036. test -z "$ac_cxx_werror_flag" ||
  12037. test ! -s conftest.err
  12038. } && test -s conftest$ac_exeext &&
  12039. $as_test_x conftest$ac_exeext; then
  12040. gl_have_pth=yes
  12041. else
  12042. echo "$as_me: failed program was:" >&5
  12043. sed 's/^/| /' conftest.$ac_ext >&5
  12044. fi
  12045. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12046. conftest$ac_exeext conftest.$ac_ext
  12047. LIBS="$gl_save_LIBS"
  12048. if test -n "$gl_have_pth"; then
  12049. gl_threads_api=pth
  12050. LIBTHREAD="$LIBPTH"
  12051. LTLIBTHREAD="$LTLIBPTH"
  12052. LIBMULTITHREAD="$LIBTHREAD"
  12053. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12054. cat >>confdefs.h <<\_ACEOF
  12055. #define USE_PTH_THREADS 1
  12056. _ACEOF
  12057. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12058. if test $gl_have_weak = yes; then
  12059. cat >>confdefs.h <<\_ACEOF
  12060. #define USE_PTH_THREADS_WEAK 1
  12061. _ACEOF
  12062. LIBTHREAD=
  12063. LTLIBTHREAD=
  12064. fi
  12065. fi
  12066. else
  12067. CPPFLAGS="$gl_save_CPPFLAGS"
  12068. fi
  12069. fi
  12070. if test -z "$gl_have_pthread"; then
  12071. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  12072. if { case "$host_os" in
  12073. mingw*) true;;
  12074. *) false;;
  12075. esac
  12076. }; then
  12077. gl_threads_api=win32
  12078. cat >>confdefs.h <<\_ACEOF
  12079. #define USE_WIN32_THREADS 1
  12080. _ACEOF
  12081. fi
  12082. fi
  12083. fi
  12084. fi
  12085. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  12086. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  12087. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  12088. echo "${ECHO_T}$gl_threads_api" >&6; }
  12089. use_additional=yes
  12090. acl_save_prefix="$prefix"
  12091. prefix="$acl_final_prefix"
  12092. acl_save_exec_prefix="$exec_prefix"
  12093. exec_prefix="$acl_final_exec_prefix"
  12094. eval additional_includedir=\"$includedir\"
  12095. eval additional_libdir=\"$libdir\"
  12096. exec_prefix="$acl_save_exec_prefix"
  12097. prefix="$acl_save_prefix"
  12098. # Check whether --with-libiconv-prefix was given.
  12099. if test "${with_libiconv_prefix+set}" = set; then
  12100. withval=$with_libiconv_prefix;
  12101. if test "X$withval" = "Xno"; then
  12102. use_additional=no
  12103. else
  12104. if test "X$withval" = "X"; then
  12105. acl_save_prefix="$prefix"
  12106. prefix="$acl_final_prefix"
  12107. acl_save_exec_prefix="$exec_prefix"
  12108. exec_prefix="$acl_final_exec_prefix"
  12109. eval additional_includedir=\"$includedir\"
  12110. eval additional_libdir=\"$libdir\"
  12111. exec_prefix="$acl_save_exec_prefix"
  12112. prefix="$acl_save_prefix"
  12113. else
  12114. additional_includedir="$withval/include"
  12115. additional_libdir="$withval/$acl_libdirstem"
  12116. fi
  12117. fi
  12118. fi
  12119. LIBICONV=
  12120. LTLIBICONV=
  12121. INCICONV=
  12122. LIBICONV_PREFIX=
  12123. rpathdirs=
  12124. ltrpathdirs=
  12125. names_already_handled=
  12126. names_next_round='iconv '
  12127. while test -n "$names_next_round"; do
  12128. names_this_round="$names_next_round"
  12129. names_next_round=
  12130. for name in $names_this_round; do
  12131. already_handled=
  12132. for n in $names_already_handled; do
  12133. if test "$n" = "$name"; then
  12134. already_handled=yes
  12135. break
  12136. fi
  12137. done
  12138. if test -z "$already_handled"; then
  12139. names_already_handled="$names_already_handled $name"
  12140. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12141. eval value=\"\$HAVE_LIB$uppername\"
  12142. if test -n "$value"; then
  12143. if test "$value" = yes; then
  12144. eval value=\"\$LIB$uppername\"
  12145. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12146. eval value=\"\$LTLIB$uppername\"
  12147. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12148. else
  12149. :
  12150. fi
  12151. else
  12152. found_dir=
  12153. found_la=
  12154. found_so=
  12155. found_a=
  12156. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12157. if test -n "$acl_shlibext"; then
  12158. shrext=".$acl_shlibext" # typically: shrext=.so
  12159. else
  12160. shrext=
  12161. fi
  12162. if test $use_additional = yes; then
  12163. dir="$additional_libdir"
  12164. if test -n "$acl_shlibext"; then
  12165. if test -f "$dir/$libname$shrext"; then
  12166. found_dir="$dir"
  12167. found_so="$dir/$libname$shrext"
  12168. else
  12169. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12170. ver=`(cd "$dir" && \
  12171. for f in "$libname$shrext".*; do echo "$f"; done \
  12172. | sed -e "s,^$libname$shrext\\\\.,," \
  12173. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12174. | sed 1q ) 2>/dev/null`
  12175. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12176. found_dir="$dir"
  12177. found_so="$dir/$libname$shrext.$ver"
  12178. fi
  12179. else
  12180. eval library_names=\"$acl_library_names_spec\"
  12181. for f in $library_names; do
  12182. if test -f "$dir/$f"; then
  12183. found_dir="$dir"
  12184. found_so="$dir/$f"
  12185. break
  12186. fi
  12187. done
  12188. fi
  12189. fi
  12190. fi
  12191. if test "X$found_dir" = "X"; then
  12192. if test -f "$dir/$libname.$acl_libext"; then
  12193. found_dir="$dir"
  12194. found_a="$dir/$libname.$acl_libext"
  12195. fi
  12196. fi
  12197. if test "X$found_dir" != "X"; then
  12198. if test -f "$dir/$libname.la"; then
  12199. found_la="$dir/$libname.la"
  12200. fi
  12201. fi
  12202. fi
  12203. if test "X$found_dir" = "X"; then
  12204. for x in $LDFLAGS $LTLIBICONV; do
  12205. acl_save_prefix="$prefix"
  12206. prefix="$acl_final_prefix"
  12207. acl_save_exec_prefix="$exec_prefix"
  12208. exec_prefix="$acl_final_exec_prefix"
  12209. eval x=\"$x\"
  12210. exec_prefix="$acl_save_exec_prefix"
  12211. prefix="$acl_save_prefix"
  12212. case "$x" in
  12213. -L*)
  12214. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12215. if test -n "$acl_shlibext"; then
  12216. if test -f "$dir/$libname$shrext"; then
  12217. found_dir="$dir"
  12218. found_so="$dir/$libname$shrext"
  12219. else
  12220. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12221. ver=`(cd "$dir" && \
  12222. for f in "$libname$shrext".*; do echo "$f"; done \
  12223. | sed -e "s,^$libname$shrext\\\\.,," \
  12224. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12225. | sed 1q ) 2>/dev/null`
  12226. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12227. found_dir="$dir"
  12228. found_so="$dir/$libname$shrext.$ver"
  12229. fi
  12230. else
  12231. eval library_names=\"$acl_library_names_spec\"
  12232. for f in $library_names; do
  12233. if test -f "$dir/$f"; then
  12234. found_dir="$dir"
  12235. found_so="$dir/$f"
  12236. break
  12237. fi
  12238. done
  12239. fi
  12240. fi
  12241. fi
  12242. if test "X$found_dir" = "X"; then
  12243. if test -f "$dir/$libname.$acl_libext"; then
  12244. found_dir="$dir"
  12245. found_a="$dir/$libname.$acl_libext"
  12246. fi
  12247. fi
  12248. if test "X$found_dir" != "X"; then
  12249. if test -f "$dir/$libname.la"; then
  12250. found_la="$dir/$libname.la"
  12251. fi
  12252. fi
  12253. ;;
  12254. esac
  12255. if test "X$found_dir" != "X"; then
  12256. break
  12257. fi
  12258. done
  12259. fi
  12260. if test "X$found_dir" != "X"; then
  12261. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12262. if test "X$found_so" != "X"; then
  12263. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12264. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12265. else
  12266. haveit=
  12267. for x in $ltrpathdirs; do
  12268. if test "X$x" = "X$found_dir"; then
  12269. haveit=yes
  12270. break
  12271. fi
  12272. done
  12273. if test -z "$haveit"; then
  12274. ltrpathdirs="$ltrpathdirs $found_dir"
  12275. fi
  12276. if test "$acl_hardcode_direct" = yes; then
  12277. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12278. else
  12279. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12280. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12281. haveit=
  12282. for x in $rpathdirs; do
  12283. if test "X$x" = "X$found_dir"; then
  12284. haveit=yes
  12285. break
  12286. fi
  12287. done
  12288. if test -z "$haveit"; then
  12289. rpathdirs="$rpathdirs $found_dir"
  12290. fi
  12291. else
  12292. haveit=
  12293. for x in $LDFLAGS $LIBICONV; do
  12294. acl_save_prefix="$prefix"
  12295. prefix="$acl_final_prefix"
  12296. acl_save_exec_prefix="$exec_prefix"
  12297. exec_prefix="$acl_final_exec_prefix"
  12298. eval x=\"$x\"
  12299. exec_prefix="$acl_save_exec_prefix"
  12300. prefix="$acl_save_prefix"
  12301. if test "X$x" = "X-L$found_dir"; then
  12302. haveit=yes
  12303. break
  12304. fi
  12305. done
  12306. if test -z "$haveit"; then
  12307. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12308. fi
  12309. if test "$acl_hardcode_minus_L" != no; then
  12310. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12311. else
  12312. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12313. fi
  12314. fi
  12315. fi
  12316. fi
  12317. else
  12318. if test "X$found_a" != "X"; then
  12319. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12320. else
  12321. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12322. fi
  12323. fi
  12324. additional_includedir=
  12325. case "$found_dir" in
  12326. */$acl_libdirstem | */$acl_libdirstem/)
  12327. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12328. LIBICONV_PREFIX="$basedir"
  12329. additional_includedir="$basedir/include"
  12330. ;;
  12331. esac
  12332. if test "X$additional_includedir" != "X"; then
  12333. if test "X$additional_includedir" != "X/usr/include"; then
  12334. haveit=
  12335. if test "X$additional_includedir" = "X/usr/local/include"; then
  12336. if test -n "$GCC"; then
  12337. case $host_os in
  12338. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12339. esac
  12340. fi
  12341. fi
  12342. if test -z "$haveit"; then
  12343. for x in $CPPFLAGS $INCICONV; do
  12344. acl_save_prefix="$prefix"
  12345. prefix="$acl_final_prefix"
  12346. acl_save_exec_prefix="$exec_prefix"
  12347. exec_prefix="$acl_final_exec_prefix"
  12348. eval x=\"$x\"
  12349. exec_prefix="$acl_save_exec_prefix"
  12350. prefix="$acl_save_prefix"
  12351. if test "X$x" = "X-I$additional_includedir"; then
  12352. haveit=yes
  12353. break
  12354. fi
  12355. done
  12356. if test -z "$haveit"; then
  12357. if test -d "$additional_includedir"; then
  12358. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12359. fi
  12360. fi
  12361. fi
  12362. fi
  12363. fi
  12364. if test -n "$found_la"; then
  12365. save_libdir="$libdir"
  12366. case "$found_la" in
  12367. */* | *\\*) . "$found_la" ;;
  12368. *) . "./$found_la" ;;
  12369. esac
  12370. libdir="$save_libdir"
  12371. for dep in $dependency_libs; do
  12372. case "$dep" in
  12373. -L*)
  12374. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12375. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12376. haveit=
  12377. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12378. if test -n "$GCC"; then
  12379. case $host_os in
  12380. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12381. esac
  12382. fi
  12383. fi
  12384. if test -z "$haveit"; then
  12385. haveit=
  12386. for x in $LDFLAGS $LIBICONV; do
  12387. acl_save_prefix="$prefix"
  12388. prefix="$acl_final_prefix"
  12389. acl_save_exec_prefix="$exec_prefix"
  12390. exec_prefix="$acl_final_exec_prefix"
  12391. eval x=\"$x\"
  12392. exec_prefix="$acl_save_exec_prefix"
  12393. prefix="$acl_save_prefix"
  12394. if test "X$x" = "X-L$additional_libdir"; then
  12395. haveit=yes
  12396. break
  12397. fi
  12398. done
  12399. if test -z "$haveit"; then
  12400. if test -d "$additional_libdir"; then
  12401. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12402. fi
  12403. fi
  12404. haveit=
  12405. for x in $LDFLAGS $LTLIBICONV; do
  12406. acl_save_prefix="$prefix"
  12407. prefix="$acl_final_prefix"
  12408. acl_save_exec_prefix="$exec_prefix"
  12409. exec_prefix="$acl_final_exec_prefix"
  12410. eval x=\"$x\"
  12411. exec_prefix="$acl_save_exec_prefix"
  12412. prefix="$acl_save_prefix"
  12413. if test "X$x" = "X-L$additional_libdir"; then
  12414. haveit=yes
  12415. break
  12416. fi
  12417. done
  12418. if test -z "$haveit"; then
  12419. if test -d "$additional_libdir"; then
  12420. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12421. fi
  12422. fi
  12423. fi
  12424. fi
  12425. ;;
  12426. -R*)
  12427. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12428. if test "$enable_rpath" != no; then
  12429. haveit=
  12430. for x in $rpathdirs; do
  12431. if test "X$x" = "X$dir"; then
  12432. haveit=yes
  12433. break
  12434. fi
  12435. done
  12436. if test -z "$haveit"; then
  12437. rpathdirs="$rpathdirs $dir"
  12438. fi
  12439. haveit=
  12440. for x in $ltrpathdirs; do
  12441. if test "X$x" = "X$dir"; then
  12442. haveit=yes
  12443. break
  12444. fi
  12445. done
  12446. if test -z "$haveit"; then
  12447. ltrpathdirs="$ltrpathdirs $dir"
  12448. fi
  12449. fi
  12450. ;;
  12451. -l*)
  12452. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12453. ;;
  12454. *.la)
  12455. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12456. ;;
  12457. *)
  12458. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12459. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12460. ;;
  12461. esac
  12462. done
  12463. fi
  12464. else
  12465. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12466. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12467. fi
  12468. fi
  12469. fi
  12470. done
  12471. done
  12472. if test "X$rpathdirs" != "X"; then
  12473. if test -n "$acl_hardcode_libdir_separator"; then
  12474. alldirs=
  12475. for found_dir in $rpathdirs; do
  12476. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12477. done
  12478. acl_save_libdir="$libdir"
  12479. libdir="$alldirs"
  12480. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12481. libdir="$acl_save_libdir"
  12482. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12483. else
  12484. for found_dir in $rpathdirs; do
  12485. acl_save_libdir="$libdir"
  12486. libdir="$found_dir"
  12487. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12488. libdir="$acl_save_libdir"
  12489. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12490. done
  12491. fi
  12492. fi
  12493. if test "X$ltrpathdirs" != "X"; then
  12494. for found_dir in $ltrpathdirs; do
  12495. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12496. done
  12497. fi
  12498. cat >conftest.$ac_ext <<_ACEOF
  12499. /* confdefs.h. */
  12500. _ACEOF
  12501. cat confdefs.h >>conftest.$ac_ext
  12502. cat >>conftest.$ac_ext <<_ACEOF
  12503. /* end confdefs.h. */
  12504. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12505. int
  12506. main ()
  12507. {
  12508. ;
  12509. return 0;
  12510. }
  12511. _ACEOF
  12512. rm -f conftest.$ac_objext conftest$ac_exeext
  12513. if { (ac_try="$ac_link"
  12514. case "(($ac_try" in
  12515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12516. *) ac_try_echo=$ac_try;;
  12517. esac
  12518. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12519. (eval "$ac_link") 2>conftest.er1
  12520. ac_status=$?
  12521. grep -v '^ *+' conftest.er1 >conftest.err
  12522. rm -f conftest.er1
  12523. cat conftest.err >&5
  12524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12525. (exit $ac_status); } && {
  12526. test -z "$ac_cxx_werror_flag" ||
  12527. test ! -s conftest.err
  12528. } && test -s conftest$ac_exeext &&
  12529. $as_test_x conftest$ac_exeext; then
  12530. cat >>confdefs.h <<\_ACEOF
  12531. #define HAVE_BUILTIN_EXPECT 1
  12532. _ACEOF
  12533. else
  12534. echo "$as_me: failed program was:" >&5
  12535. sed 's/^/| /' conftest.$ac_ext >&5
  12536. fi
  12537. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12538. conftest$ac_exeext conftest.$ac_ext
  12539. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12540. do
  12541. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12542. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12543. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12544. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12545. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12546. echo $ECHO_N "(cached) $ECHO_C" >&6
  12547. fi
  12548. ac_res=`eval echo '${'$as_ac_Header'}'`
  12549. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12550. echo "${ECHO_T}$ac_res" >&6; }
  12551. else
  12552. # Is the header compilable?
  12553. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12554. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12555. cat >conftest.$ac_ext <<_ACEOF
  12556. /* confdefs.h. */
  12557. _ACEOF
  12558. cat confdefs.h >>conftest.$ac_ext
  12559. cat >>conftest.$ac_ext <<_ACEOF
  12560. /* end confdefs.h. */
  12561. $ac_includes_default
  12562. #include <$ac_header>
  12563. _ACEOF
  12564. rm -f conftest.$ac_objext
  12565. if { (ac_try="$ac_compile"
  12566. case "(($ac_try" in
  12567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12568. *) ac_try_echo=$ac_try;;
  12569. esac
  12570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12571. (eval "$ac_compile") 2>conftest.er1
  12572. ac_status=$?
  12573. grep -v '^ *+' conftest.er1 >conftest.err
  12574. rm -f conftest.er1
  12575. cat conftest.err >&5
  12576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12577. (exit $ac_status); } && {
  12578. test -z "$ac_cxx_werror_flag" ||
  12579. test ! -s conftest.err
  12580. } && test -s conftest.$ac_objext; then
  12581. ac_header_compiler=yes
  12582. else
  12583. echo "$as_me: failed program was:" >&5
  12584. sed 's/^/| /' conftest.$ac_ext >&5
  12585. ac_header_compiler=no
  12586. fi
  12587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12588. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12589. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12590. # Is the header present?
  12591. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12592. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12593. cat >conftest.$ac_ext <<_ACEOF
  12594. /* confdefs.h. */
  12595. _ACEOF
  12596. cat confdefs.h >>conftest.$ac_ext
  12597. cat >>conftest.$ac_ext <<_ACEOF
  12598. /* end confdefs.h. */
  12599. #include <$ac_header>
  12600. _ACEOF
  12601. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12602. case "(($ac_try" in
  12603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12604. *) ac_try_echo=$ac_try;;
  12605. esac
  12606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12607. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12608. ac_status=$?
  12609. grep -v '^ *+' conftest.er1 >conftest.err
  12610. rm -f conftest.er1
  12611. cat conftest.err >&5
  12612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12613. (exit $ac_status); } >/dev/null && {
  12614. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12615. test ! -s conftest.err
  12616. }; then
  12617. ac_header_preproc=yes
  12618. else
  12619. echo "$as_me: failed program was:" >&5
  12620. sed 's/^/| /' conftest.$ac_ext >&5
  12621. ac_header_preproc=no
  12622. fi
  12623. rm -f conftest.err conftest.$ac_ext
  12624. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12625. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12626. # So? What about this header?
  12627. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12628. yes:no: )
  12629. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12630. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12631. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12632. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12633. ac_header_preproc=yes
  12634. ;;
  12635. no:yes:* )
  12636. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12637. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12638. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12639. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12640. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12641. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12642. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12643. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12644. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12645. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12646. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12647. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12648. ( cat <<\_ASBOX
  12649. ## ----------------------------------------------- ##
  12650. ## Report this to t-tujikawa@users.sourceforge.net ##
  12651. ## ----------------------------------------------- ##
  12652. _ASBOX
  12653. ) | sed "s/^/$as_me: WARNING: /" >&2
  12654. ;;
  12655. esac
  12656. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12657. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12658. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12659. echo $ECHO_N "(cached) $ECHO_C" >&6
  12660. else
  12661. eval "$as_ac_Header=\$ac_header_preproc"
  12662. fi
  12663. ac_res=`eval echo '${'$as_ac_Header'}'`
  12664. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12665. echo "${ECHO_T}$ac_res" >&6; }
  12666. fi
  12667. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12668. cat >>confdefs.h <<_ACEOF
  12669. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12670. _ACEOF
  12671. fi
  12672. done
  12673. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12674. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12675. argz_next __fsetlocking
  12676. do
  12677. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12678. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12679. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12680. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12681. echo $ECHO_N "(cached) $ECHO_C" >&6
  12682. else
  12683. cat >conftest.$ac_ext <<_ACEOF
  12684. /* confdefs.h. */
  12685. _ACEOF
  12686. cat confdefs.h >>conftest.$ac_ext
  12687. cat >>conftest.$ac_ext <<_ACEOF
  12688. /* end confdefs.h. */
  12689. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12690. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12691. #define $ac_func innocuous_$ac_func
  12692. /* System header to define __stub macros and hopefully few prototypes,
  12693. which can conflict with char $ac_func (); below.
  12694. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12695. <limits.h> exists even on freestanding compilers. */
  12696. #ifdef __STDC__
  12697. # include <limits.h>
  12698. #else
  12699. # include <assert.h>
  12700. #endif
  12701. #undef $ac_func
  12702. /* Override any GCC internal prototype to avoid an error.
  12703. Use char because int might match the return type of a GCC
  12704. builtin and then its argument prototype would still apply. */
  12705. #ifdef __cplusplus
  12706. extern "C"
  12707. #endif
  12708. char $ac_func ();
  12709. /* The GNU C library defines this for functions which it implements
  12710. to always fail with ENOSYS. Some functions are actually named
  12711. something starting with __ and the normal name is an alias. */
  12712. #if defined __stub_$ac_func || defined __stub___$ac_func
  12713. choke me
  12714. #endif
  12715. int
  12716. main ()
  12717. {
  12718. return $ac_func ();
  12719. ;
  12720. return 0;
  12721. }
  12722. _ACEOF
  12723. rm -f conftest.$ac_objext conftest$ac_exeext
  12724. if { (ac_try="$ac_link"
  12725. case "(($ac_try" in
  12726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12727. *) ac_try_echo=$ac_try;;
  12728. esac
  12729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12730. (eval "$ac_link") 2>conftest.er1
  12731. ac_status=$?
  12732. grep -v '^ *+' conftest.er1 >conftest.err
  12733. rm -f conftest.er1
  12734. cat conftest.err >&5
  12735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12736. (exit $ac_status); } && {
  12737. test -z "$ac_cxx_werror_flag" ||
  12738. test ! -s conftest.err
  12739. } && test -s conftest$ac_exeext &&
  12740. $as_test_x conftest$ac_exeext; then
  12741. eval "$as_ac_var=yes"
  12742. else
  12743. echo "$as_me: failed program was:" >&5
  12744. sed 's/^/| /' conftest.$ac_ext >&5
  12745. eval "$as_ac_var=no"
  12746. fi
  12747. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12748. conftest$ac_exeext conftest.$ac_ext
  12749. fi
  12750. ac_res=`eval echo '${'$as_ac_var'}'`
  12751. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12752. echo "${ECHO_T}$ac_res" >&6; }
  12753. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12754. cat >>confdefs.h <<_ACEOF
  12755. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12756. _ACEOF
  12757. fi
  12758. done
  12759. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12760. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12761. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12762. echo $ECHO_N "(cached) $ECHO_C" >&6
  12763. else
  12764. cat >conftest.$ac_ext <<_ACEOF
  12765. /* confdefs.h. */
  12766. _ACEOF
  12767. cat confdefs.h >>conftest.$ac_ext
  12768. cat >>conftest.$ac_ext <<_ACEOF
  12769. /* end confdefs.h. */
  12770. #include <stdio.h>
  12771. int
  12772. main ()
  12773. {
  12774. #ifndef feof_unlocked
  12775. char *p = (char *) feof_unlocked;
  12776. #endif
  12777. ;
  12778. return 0;
  12779. }
  12780. _ACEOF
  12781. rm -f conftest.$ac_objext
  12782. if { (ac_try="$ac_compile"
  12783. case "(($ac_try" in
  12784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12785. *) ac_try_echo=$ac_try;;
  12786. esac
  12787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12788. (eval "$ac_compile") 2>conftest.er1
  12789. ac_status=$?
  12790. grep -v '^ *+' conftest.er1 >conftest.err
  12791. rm -f conftest.er1
  12792. cat conftest.err >&5
  12793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12794. (exit $ac_status); } && {
  12795. test -z "$ac_cxx_werror_flag" ||
  12796. test ! -s conftest.err
  12797. } && test -s conftest.$ac_objext; then
  12798. ac_cv_have_decl_feof_unlocked=yes
  12799. else
  12800. echo "$as_me: failed program was:" >&5
  12801. sed 's/^/| /' conftest.$ac_ext >&5
  12802. ac_cv_have_decl_feof_unlocked=no
  12803. fi
  12804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12805. fi
  12806. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12807. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12808. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12809. gt_value=1
  12810. else
  12811. gt_value=0
  12812. fi
  12813. cat >>confdefs.h <<_ACEOF
  12814. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12815. _ACEOF
  12816. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12817. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12818. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12819. echo $ECHO_N "(cached) $ECHO_C" >&6
  12820. else
  12821. cat >conftest.$ac_ext <<_ACEOF
  12822. /* confdefs.h. */
  12823. _ACEOF
  12824. cat confdefs.h >>conftest.$ac_ext
  12825. cat >>conftest.$ac_ext <<_ACEOF
  12826. /* end confdefs.h. */
  12827. #include <stdio.h>
  12828. int
  12829. main ()
  12830. {
  12831. #ifndef fgets_unlocked
  12832. char *p = (char *) fgets_unlocked;
  12833. #endif
  12834. ;
  12835. return 0;
  12836. }
  12837. _ACEOF
  12838. rm -f conftest.$ac_objext
  12839. if { (ac_try="$ac_compile"
  12840. case "(($ac_try" in
  12841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12842. *) ac_try_echo=$ac_try;;
  12843. esac
  12844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12845. (eval "$ac_compile") 2>conftest.er1
  12846. ac_status=$?
  12847. grep -v '^ *+' conftest.er1 >conftest.err
  12848. rm -f conftest.er1
  12849. cat conftest.err >&5
  12850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12851. (exit $ac_status); } && {
  12852. test -z "$ac_cxx_werror_flag" ||
  12853. test ! -s conftest.err
  12854. } && test -s conftest.$ac_objext; then
  12855. ac_cv_have_decl_fgets_unlocked=yes
  12856. else
  12857. echo "$as_me: failed program was:" >&5
  12858. sed 's/^/| /' conftest.$ac_ext >&5
  12859. ac_cv_have_decl_fgets_unlocked=no
  12860. fi
  12861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12862. fi
  12863. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12864. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12865. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12866. gt_value=1
  12867. else
  12868. gt_value=0
  12869. fi
  12870. cat >>confdefs.h <<_ACEOF
  12871. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12872. _ACEOF
  12873. am_save_CPPFLAGS="$CPPFLAGS"
  12874. for element in $INCICONV; do
  12875. haveit=
  12876. for x in $CPPFLAGS; do
  12877. acl_save_prefix="$prefix"
  12878. prefix="$acl_final_prefix"
  12879. acl_save_exec_prefix="$exec_prefix"
  12880. exec_prefix="$acl_final_exec_prefix"
  12881. eval x=\"$x\"
  12882. exec_prefix="$acl_save_exec_prefix"
  12883. prefix="$acl_save_prefix"
  12884. if test "X$x" = "X$element"; then
  12885. haveit=yes
  12886. break
  12887. fi
  12888. done
  12889. if test -z "$haveit"; then
  12890. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12891. fi
  12892. done
  12893. { echo "$as_me:$LINENO: checking for iconv" >&5
  12894. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12895. if test "${am_cv_func_iconv+set}" = set; then
  12896. echo $ECHO_N "(cached) $ECHO_C" >&6
  12897. else
  12898. am_cv_func_iconv="no, consider installing GNU libiconv"
  12899. am_cv_lib_iconv=no
  12900. cat >conftest.$ac_ext <<_ACEOF
  12901. /* confdefs.h. */
  12902. _ACEOF
  12903. cat confdefs.h >>conftest.$ac_ext
  12904. cat >>conftest.$ac_ext <<_ACEOF
  12905. /* end confdefs.h. */
  12906. #include <stdlib.h>
  12907. #include <iconv.h>
  12908. int
  12909. main ()
  12910. {
  12911. iconv_t cd = iconv_open("","");
  12912. iconv(cd,NULL,NULL,NULL,NULL);
  12913. iconv_close(cd);
  12914. ;
  12915. return 0;
  12916. }
  12917. _ACEOF
  12918. rm -f conftest.$ac_objext conftest$ac_exeext
  12919. if { (ac_try="$ac_link"
  12920. case "(($ac_try" in
  12921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12922. *) ac_try_echo=$ac_try;;
  12923. esac
  12924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12925. (eval "$ac_link") 2>conftest.er1
  12926. ac_status=$?
  12927. grep -v '^ *+' conftest.er1 >conftest.err
  12928. rm -f conftest.er1
  12929. cat conftest.err >&5
  12930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12931. (exit $ac_status); } && {
  12932. test -z "$ac_cxx_werror_flag" ||
  12933. test ! -s conftest.err
  12934. } && test -s conftest$ac_exeext &&
  12935. $as_test_x conftest$ac_exeext; then
  12936. am_cv_func_iconv=yes
  12937. else
  12938. echo "$as_me: failed program was:" >&5
  12939. sed 's/^/| /' conftest.$ac_ext >&5
  12940. fi
  12941. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12942. conftest$ac_exeext conftest.$ac_ext
  12943. if test "$am_cv_func_iconv" != yes; then
  12944. am_save_LIBS="$LIBS"
  12945. LIBS="$LIBS $LIBICONV"
  12946. cat >conftest.$ac_ext <<_ACEOF
  12947. /* confdefs.h. */
  12948. _ACEOF
  12949. cat confdefs.h >>conftest.$ac_ext
  12950. cat >>conftest.$ac_ext <<_ACEOF
  12951. /* end confdefs.h. */
  12952. #include <stdlib.h>
  12953. #include <iconv.h>
  12954. int
  12955. main ()
  12956. {
  12957. iconv_t cd = iconv_open("","");
  12958. iconv(cd,NULL,NULL,NULL,NULL);
  12959. iconv_close(cd);
  12960. ;
  12961. return 0;
  12962. }
  12963. _ACEOF
  12964. rm -f conftest.$ac_objext conftest$ac_exeext
  12965. if { (ac_try="$ac_link"
  12966. case "(($ac_try" in
  12967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12968. *) ac_try_echo=$ac_try;;
  12969. esac
  12970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12971. (eval "$ac_link") 2>conftest.er1
  12972. ac_status=$?
  12973. grep -v '^ *+' conftest.er1 >conftest.err
  12974. rm -f conftest.er1
  12975. cat conftest.err >&5
  12976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12977. (exit $ac_status); } && {
  12978. test -z "$ac_cxx_werror_flag" ||
  12979. test ! -s conftest.err
  12980. } && test -s conftest$ac_exeext &&
  12981. $as_test_x conftest$ac_exeext; then
  12982. am_cv_lib_iconv=yes
  12983. am_cv_func_iconv=yes
  12984. else
  12985. echo "$as_me: failed program was:" >&5
  12986. sed 's/^/| /' conftest.$ac_ext >&5
  12987. fi
  12988. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12989. conftest$ac_exeext conftest.$ac_ext
  12990. LIBS="$am_save_LIBS"
  12991. fi
  12992. fi
  12993. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12994. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12995. if test "$am_cv_func_iconv" = yes; then
  12996. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12997. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12998. if test "${am_cv_func_iconv_works+set}" = set; then
  12999. echo $ECHO_N "(cached) $ECHO_C" >&6
  13000. else
  13001. am_save_LIBS="$LIBS"
  13002. if test $am_cv_lib_iconv = yes; then
  13003. LIBS="$LIBS $LIBICONV"
  13004. fi
  13005. if test "$cross_compiling" = yes; then
  13006. case "$host_os" in
  13007. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13008. *) am_cv_func_iconv_works="guessing yes" ;;
  13009. esac
  13010. else
  13011. cat >conftest.$ac_ext <<_ACEOF
  13012. /* confdefs.h. */
  13013. _ACEOF
  13014. cat confdefs.h >>conftest.$ac_ext
  13015. cat >>conftest.$ac_ext <<_ACEOF
  13016. /* end confdefs.h. */
  13017. #include <iconv.h>
  13018. #include <string.h>
  13019. int main ()
  13020. {
  13021. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13022. returns. */
  13023. {
  13024. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13025. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13026. {
  13027. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13028. char buf[10];
  13029. const char *inptr = input;
  13030. size_t inbytesleft = strlen (input);
  13031. char *outptr = buf;
  13032. size_t outbytesleft = sizeof (buf);
  13033. size_t res = iconv (cd_utf8_to_88591,
  13034. (char **) &inptr, &inbytesleft,
  13035. &outptr, &outbytesleft);
  13036. if (res == 0)
  13037. return 1;
  13038. }
  13039. }
  13040. #if 0 /* This bug could be worked around by the caller. */
  13041. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13042. {
  13043. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13044. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13045. {
  13046. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13047. char buf[50];
  13048. const char *inptr = input;
  13049. size_t inbytesleft = strlen (input);
  13050. char *outptr = buf;
  13051. size_t outbytesleft = sizeof (buf);
  13052. size_t res = iconv (cd_88591_to_utf8,
  13053. (char **) &inptr, &inbytesleft,
  13054. &outptr, &outbytesleft);
  13055. if ((int)res > 0)
  13056. return 1;
  13057. }
  13058. }
  13059. #endif
  13060. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13061. provided. */
  13062. if (/* Try standardized names. */
  13063. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13064. /* Try IRIX, OSF/1 names. */
  13065. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13066. /* Try AIX names. */
  13067. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13068. /* Try HP-UX names. */
  13069. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13070. return 1;
  13071. return 0;
  13072. }
  13073. _ACEOF
  13074. rm -f conftest$ac_exeext
  13075. if { (ac_try="$ac_link"
  13076. case "(($ac_try" in
  13077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13078. *) ac_try_echo=$ac_try;;
  13079. esac
  13080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13081. (eval "$ac_link") 2>&5
  13082. ac_status=$?
  13083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13084. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13085. { (case "(($ac_try" in
  13086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13087. *) ac_try_echo=$ac_try;;
  13088. esac
  13089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13090. (eval "$ac_try") 2>&5
  13091. ac_status=$?
  13092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13093. (exit $ac_status); }; }; then
  13094. am_cv_func_iconv_works=yes
  13095. else
  13096. echo "$as_me: program exited with status $ac_status" >&5
  13097. echo "$as_me: failed program was:" >&5
  13098. sed 's/^/| /' conftest.$ac_ext >&5
  13099. ( exit $ac_status )
  13100. am_cv_func_iconv_works=no
  13101. fi
  13102. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13103. fi
  13104. LIBS="$am_save_LIBS"
  13105. fi
  13106. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13107. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  13108. case "$am_cv_func_iconv_works" in
  13109. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13110. *) am_func_iconv=yes ;;
  13111. esac
  13112. else
  13113. am_func_iconv=no am_cv_lib_iconv=no
  13114. fi
  13115. if test "$am_func_iconv" = yes; then
  13116. cat >>confdefs.h <<\_ACEOF
  13117. #define HAVE_ICONV 1
  13118. _ACEOF
  13119. fi
  13120. if test "$am_cv_lib_iconv" = yes; then
  13121. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13122. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  13123. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13124. echo "${ECHO_T}$LIBICONV" >&6; }
  13125. else
  13126. CPPFLAGS="$am_save_CPPFLAGS"
  13127. LIBICONV=
  13128. LTLIBICONV=
  13129. fi
  13130. if test "$am_cv_func_iconv" = yes; then
  13131. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13132. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  13133. if test "${am_cv_proto_iconv+set}" = set; then
  13134. echo $ECHO_N "(cached) $ECHO_C" >&6
  13135. else
  13136. cat >conftest.$ac_ext <<_ACEOF
  13137. /* confdefs.h. */
  13138. _ACEOF
  13139. cat confdefs.h >>conftest.$ac_ext
  13140. cat >>conftest.$ac_ext <<_ACEOF
  13141. /* end confdefs.h. */
  13142. #include <stdlib.h>
  13143. #include <iconv.h>
  13144. extern
  13145. #ifdef __cplusplus
  13146. "C"
  13147. #endif
  13148. #if defined(__STDC__) || defined(__cplusplus)
  13149. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13150. #else
  13151. size_t iconv();
  13152. #endif
  13153. int
  13154. main ()
  13155. {
  13156. ;
  13157. return 0;
  13158. }
  13159. _ACEOF
  13160. rm -f conftest.$ac_objext
  13161. if { (ac_try="$ac_compile"
  13162. case "(($ac_try" in
  13163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13164. *) ac_try_echo=$ac_try;;
  13165. esac
  13166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13167. (eval "$ac_compile") 2>conftest.er1
  13168. ac_status=$?
  13169. grep -v '^ *+' conftest.er1 >conftest.err
  13170. rm -f conftest.er1
  13171. cat conftest.err >&5
  13172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13173. (exit $ac_status); } && {
  13174. test -z "$ac_cxx_werror_flag" ||
  13175. test ! -s conftest.err
  13176. } && test -s conftest.$ac_objext; then
  13177. am_cv_proto_iconv_arg1=""
  13178. else
  13179. echo "$as_me: failed program was:" >&5
  13180. sed 's/^/| /' conftest.$ac_ext >&5
  13181. am_cv_proto_iconv_arg1="const"
  13182. fi
  13183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13184. 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);"
  13185. fi
  13186. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13187. { echo "$as_me:$LINENO: result: ${ac_t:-
  13188. }$am_cv_proto_iconv" >&5
  13189. echo "${ECHO_T}${ac_t:-
  13190. }$am_cv_proto_iconv" >&6; }
  13191. cat >>confdefs.h <<_ACEOF
  13192. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13193. _ACEOF
  13194. fi
  13195. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13196. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  13197. if test "${gt_cv_nl_locale_name+set}" = set; then
  13198. echo $ECHO_N "(cached) $ECHO_C" >&6
  13199. else
  13200. cat >conftest.$ac_ext <<_ACEOF
  13201. /* confdefs.h. */
  13202. _ACEOF
  13203. cat confdefs.h >>conftest.$ac_ext
  13204. cat >>conftest.$ac_ext <<_ACEOF
  13205. /* end confdefs.h. */
  13206. #include <langinfo.h>
  13207. #include <locale.h>
  13208. int
  13209. main ()
  13210. {
  13211. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13212. return !cs;
  13213. ;
  13214. return 0;
  13215. }
  13216. _ACEOF
  13217. rm -f conftest.$ac_objext conftest$ac_exeext
  13218. if { (ac_try="$ac_link"
  13219. case "(($ac_try" in
  13220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13221. *) ac_try_echo=$ac_try;;
  13222. esac
  13223. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13224. (eval "$ac_link") 2>conftest.er1
  13225. ac_status=$?
  13226. grep -v '^ *+' conftest.er1 >conftest.err
  13227. rm -f conftest.er1
  13228. cat conftest.err >&5
  13229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13230. (exit $ac_status); } && {
  13231. test -z "$ac_cxx_werror_flag" ||
  13232. test ! -s conftest.err
  13233. } && test -s conftest$ac_exeext &&
  13234. $as_test_x conftest$ac_exeext; then
  13235. gt_cv_nl_locale_name=yes
  13236. else
  13237. echo "$as_me: failed program was:" >&5
  13238. sed 's/^/| /' conftest.$ac_ext >&5
  13239. gt_cv_nl_locale_name=no
  13240. fi
  13241. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13242. conftest$ac_exeext conftest.$ac_ext
  13243. fi
  13244. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13245. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  13246. if test $gt_cv_nl_locale_name = yes; then
  13247. cat >>confdefs.h <<\_ACEOF
  13248. #define HAVE_NL_LOCALE_NAME 1
  13249. _ACEOF
  13250. fi
  13251. for ac_prog in bison
  13252. do
  13253. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13254. set dummy $ac_prog; ac_word=$2
  13255. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13256. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13257. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13258. echo $ECHO_N "(cached) $ECHO_C" >&6
  13259. else
  13260. if test -n "$INTLBISON"; then
  13261. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13262. else
  13263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13264. for as_dir in $PATH
  13265. do
  13266. IFS=$as_save_IFS
  13267. test -z "$as_dir" && as_dir=.
  13268. for ac_exec_ext in '' $ac_executable_extensions; do
  13269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13270. ac_cv_prog_INTLBISON="$ac_prog"
  13271. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13272. break 2
  13273. fi
  13274. done
  13275. done
  13276. IFS=$as_save_IFS
  13277. fi
  13278. fi
  13279. INTLBISON=$ac_cv_prog_INTLBISON
  13280. if test -n "$INTLBISON"; then
  13281. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13282. echo "${ECHO_T}$INTLBISON" >&6; }
  13283. else
  13284. { echo "$as_me:$LINENO: result: no" >&5
  13285. echo "${ECHO_T}no" >&6; }
  13286. fi
  13287. test -n "$INTLBISON" && break
  13288. done
  13289. if test -z "$INTLBISON"; then
  13290. ac_verc_fail=yes
  13291. else
  13292. { echo "$as_me:$LINENO: checking version of bison" >&5
  13293. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  13294. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13295. case $ac_prog_version in
  13296. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13297. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13298. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13299. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13300. esac
  13301. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13302. echo "${ECHO_T}$ac_prog_version" >&6; }
  13303. fi
  13304. if test $ac_verc_fail = yes; then
  13305. INTLBISON=:
  13306. fi
  13307. { echo "$as_me:$LINENO: checking for long long int" >&5
  13308. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  13309. if test "${ac_cv_type_long_long_int+set}" = set; then
  13310. echo $ECHO_N "(cached) $ECHO_C" >&6
  13311. else
  13312. cat >conftest.$ac_ext <<_ACEOF
  13313. /* confdefs.h. */
  13314. _ACEOF
  13315. cat confdefs.h >>conftest.$ac_ext
  13316. cat >>conftest.$ac_ext <<_ACEOF
  13317. /* end confdefs.h. */
  13318. /* Test preprocessor. */
  13319. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13320. error in preprocessor;
  13321. #endif
  13322. #if ! (18446744073709551615ULL <= -1ull)
  13323. error in preprocessor;
  13324. #endif
  13325. /* Test literals. */
  13326. long long int ll = 9223372036854775807ll;
  13327. long long int nll = -9223372036854775807LL;
  13328. unsigned long long int ull = 18446744073709551615ULL;
  13329. /* Test constant expressions. */
  13330. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13331. ? 1 : -1)];
  13332. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  13333. ? 1 : -1)];
  13334. int i = 63;
  13335. int
  13336. main ()
  13337. {
  13338. /* Test availability of runtime routines for shift and division. */
  13339. long long int llmax = 9223372036854775807ll;
  13340. unsigned long long int ullmax = 18446744073709551615ull;
  13341. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  13342. | (llmax / ll) | (llmax % ll)
  13343. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  13344. | (ullmax / ull) | (ullmax % ull));
  13345. ;
  13346. return 0;
  13347. }
  13348. _ACEOF
  13349. rm -f conftest.$ac_objext conftest$ac_exeext
  13350. if { (ac_try="$ac_link"
  13351. case "(($ac_try" in
  13352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13353. *) ac_try_echo=$ac_try;;
  13354. esac
  13355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13356. (eval "$ac_link") 2>conftest.er1
  13357. ac_status=$?
  13358. grep -v '^ *+' conftest.er1 >conftest.err
  13359. rm -f conftest.er1
  13360. cat conftest.err >&5
  13361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13362. (exit $ac_status); } && {
  13363. test -z "$ac_cxx_werror_flag" ||
  13364. test ! -s conftest.err
  13365. } && test -s conftest$ac_exeext &&
  13366. $as_test_x conftest$ac_exeext; then
  13367. if test "$cross_compiling" = yes; then
  13368. ac_cv_type_long_long_int=yes
  13369. else
  13370. cat >conftest.$ac_ext <<_ACEOF
  13371. /* confdefs.h. */
  13372. _ACEOF
  13373. cat confdefs.h >>conftest.$ac_ext
  13374. cat >>conftest.$ac_ext <<_ACEOF
  13375. /* end confdefs.h. */
  13376. #include <limits.h>
  13377. #ifndef LLONG_MAX
  13378. # define HALF \
  13379. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13380. # define LLONG_MAX (HALF - 1 + HALF)
  13381. #endif
  13382. int
  13383. main ()
  13384. {
  13385. long long int n = 1;
  13386. int i;
  13387. for (i = 0; ; i++)
  13388. {
  13389. long long int m = n << i;
  13390. if (m >> i != n)
  13391. return 1;
  13392. if (LLONG_MAX / 2 < m)
  13393. break;
  13394. }
  13395. return 0;
  13396. ;
  13397. return 0;
  13398. }
  13399. _ACEOF
  13400. rm -f conftest$ac_exeext
  13401. if { (ac_try="$ac_link"
  13402. case "(($ac_try" in
  13403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13404. *) ac_try_echo=$ac_try;;
  13405. esac
  13406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13407. (eval "$ac_link") 2>&5
  13408. ac_status=$?
  13409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13410. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13411. { (case "(($ac_try" in
  13412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13413. *) ac_try_echo=$ac_try;;
  13414. esac
  13415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13416. (eval "$ac_try") 2>&5
  13417. ac_status=$?
  13418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13419. (exit $ac_status); }; }; then
  13420. ac_cv_type_long_long_int=yes
  13421. else
  13422. echo "$as_me: program exited with status $ac_status" >&5
  13423. echo "$as_me: failed program was:" >&5
  13424. sed 's/^/| /' conftest.$ac_ext >&5
  13425. ( exit $ac_status )
  13426. ac_cv_type_long_long_int=no
  13427. fi
  13428. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13429. fi
  13430. else
  13431. echo "$as_me: failed program was:" >&5
  13432. sed 's/^/| /' conftest.$ac_ext >&5
  13433. ac_cv_type_long_long_int=no
  13434. fi
  13435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13436. conftest$ac_exeext conftest.$ac_ext
  13437. fi
  13438. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13439. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13440. if test $ac_cv_type_long_long_int = yes; then
  13441. cat >>confdefs.h <<\_ACEOF
  13442. #define HAVE_LONG_LONG_INT 1
  13443. _ACEOF
  13444. fi
  13445. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13446. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13447. if test "${gt_cv_c_wchar_t+set}" = set; then
  13448. echo $ECHO_N "(cached) $ECHO_C" >&6
  13449. else
  13450. cat >conftest.$ac_ext <<_ACEOF
  13451. /* confdefs.h. */
  13452. _ACEOF
  13453. cat confdefs.h >>conftest.$ac_ext
  13454. cat >>conftest.$ac_ext <<_ACEOF
  13455. /* end confdefs.h. */
  13456. #include <stddef.h>
  13457. wchar_t foo = (wchar_t)'\0';
  13458. int
  13459. main ()
  13460. {
  13461. ;
  13462. return 0;
  13463. }
  13464. _ACEOF
  13465. rm -f conftest.$ac_objext
  13466. if { (ac_try="$ac_compile"
  13467. case "(($ac_try" in
  13468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13469. *) ac_try_echo=$ac_try;;
  13470. esac
  13471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13472. (eval "$ac_compile") 2>conftest.er1
  13473. ac_status=$?
  13474. grep -v '^ *+' conftest.er1 >conftest.err
  13475. rm -f conftest.er1
  13476. cat conftest.err >&5
  13477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13478. (exit $ac_status); } && {
  13479. test -z "$ac_cxx_werror_flag" ||
  13480. test ! -s conftest.err
  13481. } && test -s conftest.$ac_objext; then
  13482. gt_cv_c_wchar_t=yes
  13483. else
  13484. echo "$as_me: failed program was:" >&5
  13485. sed 's/^/| /' conftest.$ac_ext >&5
  13486. gt_cv_c_wchar_t=no
  13487. fi
  13488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13489. fi
  13490. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13491. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13492. if test $gt_cv_c_wchar_t = yes; then
  13493. cat >>confdefs.h <<\_ACEOF
  13494. #define HAVE_WCHAR_T 1
  13495. _ACEOF
  13496. fi
  13497. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13498. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13499. if test "${gt_cv_c_wint_t+set}" = set; then
  13500. echo $ECHO_N "(cached) $ECHO_C" >&6
  13501. else
  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. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13509. <wchar.h>.
  13510. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13511. before <wchar.h>. */
  13512. #include <stddef.h>
  13513. #include <stdio.h>
  13514. #include <time.h>
  13515. #include <wchar.h>
  13516. wint_t foo = (wchar_t)'\0';
  13517. int
  13518. main ()
  13519. {
  13520. ;
  13521. return 0;
  13522. }
  13523. _ACEOF
  13524. rm -f conftest.$ac_objext
  13525. if { (ac_try="$ac_compile"
  13526. case "(($ac_try" in
  13527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13528. *) ac_try_echo=$ac_try;;
  13529. esac
  13530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13531. (eval "$ac_compile") 2>conftest.er1
  13532. ac_status=$?
  13533. grep -v '^ *+' conftest.er1 >conftest.err
  13534. rm -f conftest.er1
  13535. cat conftest.err >&5
  13536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13537. (exit $ac_status); } && {
  13538. test -z "$ac_cxx_werror_flag" ||
  13539. test ! -s conftest.err
  13540. } && test -s conftest.$ac_objext; then
  13541. gt_cv_c_wint_t=yes
  13542. else
  13543. echo "$as_me: failed program was:" >&5
  13544. sed 's/^/| /' conftest.$ac_ext >&5
  13545. gt_cv_c_wint_t=no
  13546. fi
  13547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13548. fi
  13549. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13550. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13551. if test $gt_cv_c_wint_t = yes; then
  13552. cat >>confdefs.h <<\_ACEOF
  13553. #define HAVE_WINT_T 1
  13554. _ACEOF
  13555. fi
  13556. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13557. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13558. if test "${gt_cv_c_intmax_t+set}" = set; then
  13559. echo $ECHO_N "(cached) $ECHO_C" >&6
  13560. else
  13561. cat >conftest.$ac_ext <<_ACEOF
  13562. /* confdefs.h. */
  13563. _ACEOF
  13564. cat confdefs.h >>conftest.$ac_ext
  13565. cat >>conftest.$ac_ext <<_ACEOF
  13566. /* end confdefs.h. */
  13567. #include <stddef.h>
  13568. #include <stdlib.h>
  13569. #if HAVE_STDINT_H_WITH_UINTMAX
  13570. #include <stdint.h>
  13571. #endif
  13572. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13573. #include <inttypes.h>
  13574. #endif
  13575. int
  13576. main ()
  13577. {
  13578. intmax_t x = -1;
  13579. return !x;
  13580. ;
  13581. return 0;
  13582. }
  13583. _ACEOF
  13584. rm -f conftest.$ac_objext
  13585. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  13592. ac_status=$?
  13593. grep -v '^ *+' conftest.er1 >conftest.err
  13594. rm -f conftest.er1
  13595. cat conftest.err >&5
  13596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13597. (exit $ac_status); } && {
  13598. test -z "$ac_cxx_werror_flag" ||
  13599. test ! -s conftest.err
  13600. } && test -s conftest.$ac_objext; then
  13601. gt_cv_c_intmax_t=yes
  13602. else
  13603. echo "$as_me: failed program was:" >&5
  13604. sed 's/^/| /' conftest.$ac_ext >&5
  13605. gt_cv_c_intmax_t=no
  13606. fi
  13607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13608. fi
  13609. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13610. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13611. if test $gt_cv_c_intmax_t = yes; then
  13612. cat >>confdefs.h <<\_ACEOF
  13613. #define HAVE_INTMAX_T 1
  13614. _ACEOF
  13615. fi
  13616. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13617. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13618. if test "${gt_cv_func_printf_posix+set}" = set; then
  13619. echo $ECHO_N "(cached) $ECHO_C" >&6
  13620. else
  13621. if test "$cross_compiling" = yes; then
  13622. cat >conftest.$ac_ext <<_ACEOF
  13623. /* confdefs.h. */
  13624. _ACEOF
  13625. cat confdefs.h >>conftest.$ac_ext
  13626. cat >>conftest.$ac_ext <<_ACEOF
  13627. /* end confdefs.h. */
  13628. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13629. notposix
  13630. #endif
  13631. _ACEOF
  13632. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13633. $EGREP "notposix" >/dev/null 2>&1; then
  13634. gt_cv_func_printf_posix="guessing no"
  13635. else
  13636. gt_cv_func_printf_posix="guessing yes"
  13637. fi
  13638. rm -f conftest*
  13639. else
  13640. cat >conftest.$ac_ext <<_ACEOF
  13641. /* confdefs.h. */
  13642. _ACEOF
  13643. cat confdefs.h >>conftest.$ac_ext
  13644. cat >>conftest.$ac_ext <<_ACEOF
  13645. /* end confdefs.h. */
  13646. #include <stdio.h>
  13647. #include <string.h>
  13648. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13649. dollar expansion (possibly an autoconf bug). */
  13650. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13651. static char buf[100];
  13652. int main ()
  13653. {
  13654. sprintf (buf, format, 33, 55);
  13655. return (strcmp (buf, "55 33") != 0);
  13656. }
  13657. _ACEOF
  13658. rm -f conftest$ac_exeext
  13659. if { (ac_try="$ac_link"
  13660. case "(($ac_try" in
  13661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13662. *) ac_try_echo=$ac_try;;
  13663. esac
  13664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13665. (eval "$ac_link") 2>&5
  13666. ac_status=$?
  13667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13668. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13669. { (case "(($ac_try" in
  13670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13671. *) ac_try_echo=$ac_try;;
  13672. esac
  13673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13674. (eval "$ac_try") 2>&5
  13675. ac_status=$?
  13676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13677. (exit $ac_status); }; }; then
  13678. gt_cv_func_printf_posix=yes
  13679. else
  13680. echo "$as_me: program exited with status $ac_status" >&5
  13681. echo "$as_me: failed program was:" >&5
  13682. sed 's/^/| /' conftest.$ac_ext >&5
  13683. ( exit $ac_status )
  13684. gt_cv_func_printf_posix=no
  13685. fi
  13686. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13687. fi
  13688. fi
  13689. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13690. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13691. case $gt_cv_func_printf_posix in
  13692. *yes)
  13693. cat >>confdefs.h <<\_ACEOF
  13694. #define HAVE_POSIX_PRINTF 1
  13695. _ACEOF
  13696. ;;
  13697. esac
  13698. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13699. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13700. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13701. echo $ECHO_N "(cached) $ECHO_C" >&6
  13702. else
  13703. cat >conftest.$ac_ext <<_ACEOF
  13704. /* confdefs.h. */
  13705. _ACEOF
  13706. cat confdefs.h >>conftest.$ac_ext
  13707. cat >>conftest.$ac_ext <<_ACEOF
  13708. /* end confdefs.h. */
  13709. #include <features.h>
  13710. #ifdef __GNU_LIBRARY__
  13711. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13712. Lucky GNU user
  13713. #endif
  13714. #endif
  13715. _ACEOF
  13716. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13717. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13718. ac_cv_gnu_library_2_1=yes
  13719. else
  13720. ac_cv_gnu_library_2_1=no
  13721. fi
  13722. rm -f conftest*
  13723. fi
  13724. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13725. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13726. GLIBC21="$ac_cv_gnu_library_2_1"
  13727. for ac_header in stdint.h
  13728. do
  13729. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13730. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13731. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13732. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13733. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13734. echo $ECHO_N "(cached) $ECHO_C" >&6
  13735. fi
  13736. ac_res=`eval echo '${'$as_ac_Header'}'`
  13737. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13738. echo "${ECHO_T}$ac_res" >&6; }
  13739. else
  13740. # Is the header compilable?
  13741. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13742. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13743. cat >conftest.$ac_ext <<_ACEOF
  13744. /* confdefs.h. */
  13745. _ACEOF
  13746. cat confdefs.h >>conftest.$ac_ext
  13747. cat >>conftest.$ac_ext <<_ACEOF
  13748. /* end confdefs.h. */
  13749. $ac_includes_default
  13750. #include <$ac_header>
  13751. _ACEOF
  13752. rm -f conftest.$ac_objext
  13753. if { (ac_try="$ac_compile"
  13754. case "(($ac_try" in
  13755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13756. *) ac_try_echo=$ac_try;;
  13757. esac
  13758. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13759. (eval "$ac_compile") 2>conftest.er1
  13760. ac_status=$?
  13761. grep -v '^ *+' conftest.er1 >conftest.err
  13762. rm -f conftest.er1
  13763. cat conftest.err >&5
  13764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13765. (exit $ac_status); } && {
  13766. test -z "$ac_cxx_werror_flag" ||
  13767. test ! -s conftest.err
  13768. } && test -s conftest.$ac_objext; then
  13769. ac_header_compiler=yes
  13770. else
  13771. echo "$as_me: failed program was:" >&5
  13772. sed 's/^/| /' conftest.$ac_ext >&5
  13773. ac_header_compiler=no
  13774. fi
  13775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13776. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13777. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13778. # Is the header present?
  13779. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13780. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13781. cat >conftest.$ac_ext <<_ACEOF
  13782. /* confdefs.h. */
  13783. _ACEOF
  13784. cat confdefs.h >>conftest.$ac_ext
  13785. cat >>conftest.$ac_ext <<_ACEOF
  13786. /* end confdefs.h. */
  13787. #include <$ac_header>
  13788. _ACEOF
  13789. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13790. case "(($ac_try" in
  13791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13792. *) ac_try_echo=$ac_try;;
  13793. esac
  13794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13795. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13796. ac_status=$?
  13797. grep -v '^ *+' conftest.er1 >conftest.err
  13798. rm -f conftest.er1
  13799. cat conftest.err >&5
  13800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13801. (exit $ac_status); } >/dev/null && {
  13802. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13803. test ! -s conftest.err
  13804. }; then
  13805. ac_header_preproc=yes
  13806. else
  13807. echo "$as_me: failed program was:" >&5
  13808. sed 's/^/| /' conftest.$ac_ext >&5
  13809. ac_header_preproc=no
  13810. fi
  13811. rm -f conftest.err conftest.$ac_ext
  13812. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13813. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13814. # So? What about this header?
  13815. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13816. yes:no: )
  13817. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13818. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13819. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13820. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13821. ac_header_preproc=yes
  13822. ;;
  13823. no:yes:* )
  13824. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13825. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13826. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13827. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13828. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13829. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13830. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13831. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13832. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13833. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13834. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13835. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13836. ( cat <<\_ASBOX
  13837. ## ----------------------------------------------- ##
  13838. ## Report this to t-tujikawa@users.sourceforge.net ##
  13839. ## ----------------------------------------------- ##
  13840. _ASBOX
  13841. ) | sed "s/^/$as_me: WARNING: /" >&2
  13842. ;;
  13843. esac
  13844. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13845. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13846. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13847. echo $ECHO_N "(cached) $ECHO_C" >&6
  13848. else
  13849. eval "$as_ac_Header=\$ac_header_preproc"
  13850. fi
  13851. ac_res=`eval echo '${'$as_ac_Header'}'`
  13852. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13853. echo "${ECHO_T}$ac_res" >&6; }
  13854. fi
  13855. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13856. cat >>confdefs.h <<_ACEOF
  13857. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13858. _ACEOF
  13859. fi
  13860. done
  13861. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13862. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13863. if test "${gl_cv_size_max+set}" = set; then
  13864. echo $ECHO_N "(cached) $ECHO_C" >&6
  13865. else
  13866. gl_cv_size_max=
  13867. cat >conftest.$ac_ext <<_ACEOF
  13868. /* confdefs.h. */
  13869. _ACEOF
  13870. cat confdefs.h >>conftest.$ac_ext
  13871. cat >>conftest.$ac_ext <<_ACEOF
  13872. /* end confdefs.h. */
  13873. #include <limits.h>
  13874. #if HAVE_STDINT_H
  13875. #include <stdint.h>
  13876. #endif
  13877. #ifdef SIZE_MAX
  13878. Found it
  13879. #endif
  13880. _ACEOF
  13881. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13882. $EGREP "Found it" >/dev/null 2>&1; then
  13883. gl_cv_size_max=yes
  13884. fi
  13885. rm -f conftest*
  13886. if test -z "$gl_cv_size_max"; then
  13887. if test "$cross_compiling" = yes; then
  13888. # Depending upon the size, compute the lo and hi bounds.
  13889. cat >conftest.$ac_ext <<_ACEOF
  13890. /* confdefs.h. */
  13891. _ACEOF
  13892. cat confdefs.h >>conftest.$ac_ext
  13893. cat >>conftest.$ac_ext <<_ACEOF
  13894. /* end confdefs.h. */
  13895. #include <stddef.h>
  13896. #include <limits.h>
  13897. int
  13898. main ()
  13899. {
  13900. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13901. test_array [0] = 0
  13902. ;
  13903. return 0;
  13904. }
  13905. _ACEOF
  13906. rm -f conftest.$ac_objext
  13907. if { (ac_try="$ac_compile"
  13908. case "(($ac_try" in
  13909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13910. *) ac_try_echo=$ac_try;;
  13911. esac
  13912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13913. (eval "$ac_compile") 2>conftest.er1
  13914. ac_status=$?
  13915. grep -v '^ *+' conftest.er1 >conftest.err
  13916. rm -f conftest.er1
  13917. cat conftest.err >&5
  13918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13919. (exit $ac_status); } && {
  13920. test -z "$ac_cxx_werror_flag" ||
  13921. test ! -s conftest.err
  13922. } && test -s conftest.$ac_objext; then
  13923. ac_lo=0 ac_mid=0
  13924. while :; do
  13925. cat >conftest.$ac_ext <<_ACEOF
  13926. /* confdefs.h. */
  13927. _ACEOF
  13928. cat confdefs.h >>conftest.$ac_ext
  13929. cat >>conftest.$ac_ext <<_ACEOF
  13930. /* end confdefs.h. */
  13931. #include <stddef.h>
  13932. #include <limits.h>
  13933. int
  13934. main ()
  13935. {
  13936. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13937. test_array [0] = 0
  13938. ;
  13939. return 0;
  13940. }
  13941. _ACEOF
  13942. rm -f conftest.$ac_objext
  13943. if { (ac_try="$ac_compile"
  13944. case "(($ac_try" in
  13945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13946. *) ac_try_echo=$ac_try;;
  13947. esac
  13948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13949. (eval "$ac_compile") 2>conftest.er1
  13950. ac_status=$?
  13951. grep -v '^ *+' conftest.er1 >conftest.err
  13952. rm -f conftest.er1
  13953. cat conftest.err >&5
  13954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13955. (exit $ac_status); } && {
  13956. test -z "$ac_cxx_werror_flag" ||
  13957. test ! -s conftest.err
  13958. } && test -s conftest.$ac_objext; then
  13959. ac_hi=$ac_mid; break
  13960. else
  13961. echo "$as_me: failed program was:" >&5
  13962. sed 's/^/| /' conftest.$ac_ext >&5
  13963. ac_lo=`expr $ac_mid + 1`
  13964. if test $ac_lo -le $ac_mid; then
  13965. ac_lo= ac_hi=
  13966. break
  13967. fi
  13968. ac_mid=`expr 2 '*' $ac_mid + 1`
  13969. fi
  13970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13971. done
  13972. else
  13973. echo "$as_me: failed program was:" >&5
  13974. sed 's/^/| /' conftest.$ac_ext >&5
  13975. cat >conftest.$ac_ext <<_ACEOF
  13976. /* confdefs.h. */
  13977. _ACEOF
  13978. cat confdefs.h >>conftest.$ac_ext
  13979. cat >>conftest.$ac_ext <<_ACEOF
  13980. /* end confdefs.h. */
  13981. #include <stddef.h>
  13982. #include <limits.h>
  13983. int
  13984. main ()
  13985. {
  13986. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13987. test_array [0] = 0
  13988. ;
  13989. return 0;
  13990. }
  13991. _ACEOF
  13992. rm -f conftest.$ac_objext
  13993. if { (ac_try="$ac_compile"
  13994. case "(($ac_try" in
  13995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13996. *) ac_try_echo=$ac_try;;
  13997. esac
  13998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13999. (eval "$ac_compile") 2>conftest.er1
  14000. ac_status=$?
  14001. grep -v '^ *+' conftest.er1 >conftest.err
  14002. rm -f conftest.er1
  14003. cat conftest.err >&5
  14004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14005. (exit $ac_status); } && {
  14006. test -z "$ac_cxx_werror_flag" ||
  14007. test ! -s conftest.err
  14008. } && test -s conftest.$ac_objext; then
  14009. ac_hi=-1 ac_mid=-1
  14010. while :; do
  14011. cat >conftest.$ac_ext <<_ACEOF
  14012. /* confdefs.h. */
  14013. _ACEOF
  14014. cat confdefs.h >>conftest.$ac_ext
  14015. cat >>conftest.$ac_ext <<_ACEOF
  14016. /* end confdefs.h. */
  14017. #include <stddef.h>
  14018. #include <limits.h>
  14019. int
  14020. main ()
  14021. {
  14022. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  14023. test_array [0] = 0
  14024. ;
  14025. return 0;
  14026. }
  14027. _ACEOF
  14028. rm -f conftest.$ac_objext
  14029. if { (ac_try="$ac_compile"
  14030. case "(($ac_try" in
  14031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14032. *) ac_try_echo=$ac_try;;
  14033. esac
  14034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14035. (eval "$ac_compile") 2>conftest.er1
  14036. ac_status=$?
  14037. grep -v '^ *+' conftest.er1 >conftest.err
  14038. rm -f conftest.er1
  14039. cat conftest.err >&5
  14040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14041. (exit $ac_status); } && {
  14042. test -z "$ac_cxx_werror_flag" ||
  14043. test ! -s conftest.err
  14044. } && test -s conftest.$ac_objext; then
  14045. ac_lo=$ac_mid; break
  14046. else
  14047. echo "$as_me: failed program was:" >&5
  14048. sed 's/^/| /' conftest.$ac_ext >&5
  14049. ac_hi=`expr '(' $ac_mid ')' - 1`
  14050. if test $ac_mid -le $ac_hi; then
  14051. ac_lo= ac_hi=
  14052. break
  14053. fi
  14054. ac_mid=`expr 2 '*' $ac_mid`
  14055. fi
  14056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14057. done
  14058. else
  14059. echo "$as_me: failed program was:" >&5
  14060. sed 's/^/| /' conftest.$ac_ext >&5
  14061. ac_lo= ac_hi=
  14062. fi
  14063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14064. fi
  14065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14066. # Binary search between lo and hi bounds.
  14067. while test "x$ac_lo" != "x$ac_hi"; do
  14068. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14069. cat >conftest.$ac_ext <<_ACEOF
  14070. /* confdefs.h. */
  14071. _ACEOF
  14072. cat confdefs.h >>conftest.$ac_ext
  14073. cat >>conftest.$ac_ext <<_ACEOF
  14074. /* end confdefs.h. */
  14075. #include <stddef.h>
  14076. #include <limits.h>
  14077. int
  14078. main ()
  14079. {
  14080. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14081. test_array [0] = 0
  14082. ;
  14083. return 0;
  14084. }
  14085. _ACEOF
  14086. rm -f conftest.$ac_objext
  14087. if { (ac_try="$ac_compile"
  14088. case "(($ac_try" in
  14089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14090. *) ac_try_echo=$ac_try;;
  14091. esac
  14092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14093. (eval "$ac_compile") 2>conftest.er1
  14094. ac_status=$?
  14095. grep -v '^ *+' conftest.er1 >conftest.err
  14096. rm -f conftest.er1
  14097. cat conftest.err >&5
  14098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14099. (exit $ac_status); } && {
  14100. test -z "$ac_cxx_werror_flag" ||
  14101. test ! -s conftest.err
  14102. } && test -s conftest.$ac_objext; then
  14103. ac_hi=$ac_mid
  14104. else
  14105. echo "$as_me: failed program was:" >&5
  14106. sed 's/^/| /' conftest.$ac_ext >&5
  14107. ac_lo=`expr '(' $ac_mid ')' + 1`
  14108. fi
  14109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14110. done
  14111. case $ac_lo in
  14112. ?*) size_t_bits_minus_1=$ac_lo;;
  14113. '') size_t_bits_minus_1= ;;
  14114. esac
  14115. else
  14116. cat >conftest.$ac_ext <<_ACEOF
  14117. /* confdefs.h. */
  14118. _ACEOF
  14119. cat confdefs.h >>conftest.$ac_ext
  14120. cat >>conftest.$ac_ext <<_ACEOF
  14121. /* end confdefs.h. */
  14122. #include <stddef.h>
  14123. #include <limits.h>
  14124. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14125. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14126. #include <stdio.h>
  14127. #include <stdlib.h>
  14128. int
  14129. main ()
  14130. {
  14131. FILE *f = fopen ("conftest.val", "w");
  14132. if (! f)
  14133. return 1;
  14134. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14135. {
  14136. long int i = longval ();
  14137. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14138. return 1;
  14139. fprintf (f, "%ld\n", i);
  14140. }
  14141. else
  14142. {
  14143. unsigned long int i = ulongval ();
  14144. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14145. return 1;
  14146. fprintf (f, "%lu\n", i);
  14147. }
  14148. return ferror (f) || fclose (f) != 0;
  14149. ;
  14150. return 0;
  14151. }
  14152. _ACEOF
  14153. rm -f conftest$ac_exeext
  14154. if { (ac_try="$ac_link"
  14155. case "(($ac_try" in
  14156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14157. *) ac_try_echo=$ac_try;;
  14158. esac
  14159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14160. (eval "$ac_link") 2>&5
  14161. ac_status=$?
  14162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14163. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14164. { (case "(($ac_try" in
  14165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14166. *) ac_try_echo=$ac_try;;
  14167. esac
  14168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14169. (eval "$ac_try") 2>&5
  14170. ac_status=$?
  14171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14172. (exit $ac_status); }; }; then
  14173. size_t_bits_minus_1=`cat conftest.val`
  14174. else
  14175. echo "$as_me: program exited with status $ac_status" >&5
  14176. echo "$as_me: failed program was:" >&5
  14177. sed 's/^/| /' conftest.$ac_ext >&5
  14178. ( exit $ac_status )
  14179. size_t_bits_minus_1=
  14180. fi
  14181. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14182. fi
  14183. rm -f conftest.val
  14184. if test "$cross_compiling" = yes; then
  14185. # Depending upon the size, compute the lo and hi bounds.
  14186. cat >conftest.$ac_ext <<_ACEOF
  14187. /* confdefs.h. */
  14188. _ACEOF
  14189. cat confdefs.h >>conftest.$ac_ext
  14190. cat >>conftest.$ac_ext <<_ACEOF
  14191. /* end confdefs.h. */
  14192. #include <stddef.h>
  14193. int
  14194. main ()
  14195. {
  14196. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14197. test_array [0] = 0
  14198. ;
  14199. return 0;
  14200. }
  14201. _ACEOF
  14202. rm -f conftest.$ac_objext
  14203. if { (ac_try="$ac_compile"
  14204. case "(($ac_try" in
  14205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14206. *) ac_try_echo=$ac_try;;
  14207. esac
  14208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14209. (eval "$ac_compile") 2>conftest.er1
  14210. ac_status=$?
  14211. grep -v '^ *+' conftest.er1 >conftest.err
  14212. rm -f conftest.er1
  14213. cat conftest.err >&5
  14214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14215. (exit $ac_status); } && {
  14216. test -z "$ac_cxx_werror_flag" ||
  14217. test ! -s conftest.err
  14218. } && test -s conftest.$ac_objext; then
  14219. ac_lo=0 ac_mid=0
  14220. while :; do
  14221. cat >conftest.$ac_ext <<_ACEOF
  14222. /* confdefs.h. */
  14223. _ACEOF
  14224. cat confdefs.h >>conftest.$ac_ext
  14225. cat >>conftest.$ac_ext <<_ACEOF
  14226. /* end confdefs.h. */
  14227. #include <stddef.h>
  14228. int
  14229. main ()
  14230. {
  14231. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14232. test_array [0] = 0
  14233. ;
  14234. return 0;
  14235. }
  14236. _ACEOF
  14237. rm -f conftest.$ac_objext
  14238. if { (ac_try="$ac_compile"
  14239. case "(($ac_try" in
  14240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14241. *) ac_try_echo=$ac_try;;
  14242. esac
  14243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14244. (eval "$ac_compile") 2>conftest.er1
  14245. ac_status=$?
  14246. grep -v '^ *+' conftest.er1 >conftest.err
  14247. rm -f conftest.er1
  14248. cat conftest.err >&5
  14249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14250. (exit $ac_status); } && {
  14251. test -z "$ac_cxx_werror_flag" ||
  14252. test ! -s conftest.err
  14253. } && test -s conftest.$ac_objext; then
  14254. ac_hi=$ac_mid; break
  14255. else
  14256. echo "$as_me: failed program was:" >&5
  14257. sed 's/^/| /' conftest.$ac_ext >&5
  14258. ac_lo=`expr $ac_mid + 1`
  14259. if test $ac_lo -le $ac_mid; then
  14260. ac_lo= ac_hi=
  14261. break
  14262. fi
  14263. ac_mid=`expr 2 '*' $ac_mid + 1`
  14264. fi
  14265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14266. done
  14267. else
  14268. echo "$as_me: failed program was:" >&5
  14269. sed 's/^/| /' conftest.$ac_ext >&5
  14270. cat >conftest.$ac_ext <<_ACEOF
  14271. /* confdefs.h. */
  14272. _ACEOF
  14273. cat confdefs.h >>conftest.$ac_ext
  14274. cat >>conftest.$ac_ext <<_ACEOF
  14275. /* end confdefs.h. */
  14276. #include <stddef.h>
  14277. int
  14278. main ()
  14279. {
  14280. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  14281. test_array [0] = 0
  14282. ;
  14283. return 0;
  14284. }
  14285. _ACEOF
  14286. rm -f conftest.$ac_objext
  14287. if { (ac_try="$ac_compile"
  14288. case "(($ac_try" in
  14289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14290. *) ac_try_echo=$ac_try;;
  14291. esac
  14292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14293. (eval "$ac_compile") 2>conftest.er1
  14294. ac_status=$?
  14295. grep -v '^ *+' conftest.er1 >conftest.err
  14296. rm -f conftest.er1
  14297. cat conftest.err >&5
  14298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14299. (exit $ac_status); } && {
  14300. test -z "$ac_cxx_werror_flag" ||
  14301. test ! -s conftest.err
  14302. } && test -s conftest.$ac_objext; then
  14303. ac_hi=-1 ac_mid=-1
  14304. while :; do
  14305. cat >conftest.$ac_ext <<_ACEOF
  14306. /* confdefs.h. */
  14307. _ACEOF
  14308. cat confdefs.h >>conftest.$ac_ext
  14309. cat >>conftest.$ac_ext <<_ACEOF
  14310. /* end confdefs.h. */
  14311. #include <stddef.h>
  14312. int
  14313. main ()
  14314. {
  14315. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  14316. test_array [0] = 0
  14317. ;
  14318. return 0;
  14319. }
  14320. _ACEOF
  14321. rm -f conftest.$ac_objext
  14322. if { (ac_try="$ac_compile"
  14323. case "(($ac_try" in
  14324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14325. *) ac_try_echo=$ac_try;;
  14326. esac
  14327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14328. (eval "$ac_compile") 2>conftest.er1
  14329. ac_status=$?
  14330. grep -v '^ *+' conftest.er1 >conftest.err
  14331. rm -f conftest.er1
  14332. cat conftest.err >&5
  14333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14334. (exit $ac_status); } && {
  14335. test -z "$ac_cxx_werror_flag" ||
  14336. test ! -s conftest.err
  14337. } && test -s conftest.$ac_objext; then
  14338. ac_lo=$ac_mid; break
  14339. else
  14340. echo "$as_me: failed program was:" >&5
  14341. sed 's/^/| /' conftest.$ac_ext >&5
  14342. ac_hi=`expr '(' $ac_mid ')' - 1`
  14343. if test $ac_mid -le $ac_hi; then
  14344. ac_lo= ac_hi=
  14345. break
  14346. fi
  14347. ac_mid=`expr 2 '*' $ac_mid`
  14348. fi
  14349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14350. done
  14351. else
  14352. echo "$as_me: failed program was:" >&5
  14353. sed 's/^/| /' conftest.$ac_ext >&5
  14354. ac_lo= ac_hi=
  14355. fi
  14356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14357. fi
  14358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14359. # Binary search between lo and hi bounds.
  14360. while test "x$ac_lo" != "x$ac_hi"; do
  14361. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14362. cat >conftest.$ac_ext <<_ACEOF
  14363. /* confdefs.h. */
  14364. _ACEOF
  14365. cat confdefs.h >>conftest.$ac_ext
  14366. cat >>conftest.$ac_ext <<_ACEOF
  14367. /* end confdefs.h. */
  14368. #include <stddef.h>
  14369. int
  14370. main ()
  14371. {
  14372. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14373. test_array [0] = 0
  14374. ;
  14375. return 0;
  14376. }
  14377. _ACEOF
  14378. rm -f conftest.$ac_objext
  14379. if { (ac_try="$ac_compile"
  14380. case "(($ac_try" in
  14381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14382. *) ac_try_echo=$ac_try;;
  14383. esac
  14384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14385. (eval "$ac_compile") 2>conftest.er1
  14386. ac_status=$?
  14387. grep -v '^ *+' conftest.er1 >conftest.err
  14388. rm -f conftest.er1
  14389. cat conftest.err >&5
  14390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14391. (exit $ac_status); } && {
  14392. test -z "$ac_cxx_werror_flag" ||
  14393. test ! -s conftest.err
  14394. } && test -s conftest.$ac_objext; then
  14395. ac_hi=$ac_mid
  14396. else
  14397. echo "$as_me: failed program was:" >&5
  14398. sed 's/^/| /' conftest.$ac_ext >&5
  14399. ac_lo=`expr '(' $ac_mid ')' + 1`
  14400. fi
  14401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14402. done
  14403. case $ac_lo in
  14404. ?*) fits_in_uint=$ac_lo;;
  14405. '') fits_in_uint= ;;
  14406. esac
  14407. else
  14408. cat >conftest.$ac_ext <<_ACEOF
  14409. /* confdefs.h. */
  14410. _ACEOF
  14411. cat confdefs.h >>conftest.$ac_ext
  14412. cat >>conftest.$ac_ext <<_ACEOF
  14413. /* end confdefs.h. */
  14414. #include <stddef.h>
  14415. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14416. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14417. #include <stdio.h>
  14418. #include <stdlib.h>
  14419. int
  14420. main ()
  14421. {
  14422. FILE *f = fopen ("conftest.val", "w");
  14423. if (! f)
  14424. return 1;
  14425. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14426. {
  14427. long int i = longval ();
  14428. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14429. return 1;
  14430. fprintf (f, "%ld\n", i);
  14431. }
  14432. else
  14433. {
  14434. unsigned long int i = ulongval ();
  14435. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14436. return 1;
  14437. fprintf (f, "%lu\n", i);
  14438. }
  14439. return ferror (f) || fclose (f) != 0;
  14440. ;
  14441. return 0;
  14442. }
  14443. _ACEOF
  14444. rm -f conftest$ac_exeext
  14445. if { (ac_try="$ac_link"
  14446. case "(($ac_try" in
  14447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14448. *) ac_try_echo=$ac_try;;
  14449. esac
  14450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14451. (eval "$ac_link") 2>&5
  14452. ac_status=$?
  14453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14454. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14455. { (case "(($ac_try" in
  14456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14457. *) ac_try_echo=$ac_try;;
  14458. esac
  14459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14460. (eval "$ac_try") 2>&5
  14461. ac_status=$?
  14462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14463. (exit $ac_status); }; }; then
  14464. fits_in_uint=`cat conftest.val`
  14465. else
  14466. echo "$as_me: program exited with status $ac_status" >&5
  14467. echo "$as_me: failed program was:" >&5
  14468. sed 's/^/| /' conftest.$ac_ext >&5
  14469. ( exit $ac_status )
  14470. fits_in_uint=
  14471. fi
  14472. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14473. fi
  14474. rm -f conftest.val
  14475. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14476. if test $fits_in_uint = 1; then
  14477. cat >conftest.$ac_ext <<_ACEOF
  14478. /* confdefs.h. */
  14479. _ACEOF
  14480. cat confdefs.h >>conftest.$ac_ext
  14481. cat >>conftest.$ac_ext <<_ACEOF
  14482. /* end confdefs.h. */
  14483. #include <stddef.h>
  14484. extern size_t foo;
  14485. extern unsigned long foo;
  14486. int
  14487. main ()
  14488. {
  14489. ;
  14490. return 0;
  14491. }
  14492. _ACEOF
  14493. rm -f conftest.$ac_objext
  14494. if { (ac_try="$ac_compile"
  14495. case "(($ac_try" in
  14496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14497. *) ac_try_echo=$ac_try;;
  14498. esac
  14499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14500. (eval "$ac_compile") 2>conftest.er1
  14501. ac_status=$?
  14502. grep -v '^ *+' conftest.er1 >conftest.err
  14503. rm -f conftest.er1
  14504. cat conftest.err >&5
  14505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14506. (exit $ac_status); } && {
  14507. test -z "$ac_cxx_werror_flag" ||
  14508. test ! -s conftest.err
  14509. } && test -s conftest.$ac_objext; then
  14510. fits_in_uint=0
  14511. else
  14512. echo "$as_me: failed program was:" >&5
  14513. sed 's/^/| /' conftest.$ac_ext >&5
  14514. fi
  14515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14516. fi
  14517. if test $fits_in_uint = 1; then
  14518. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14519. else
  14520. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14521. fi
  14522. else
  14523. gl_cv_size_max='((size_t)~(size_t)0)'
  14524. fi
  14525. fi
  14526. fi
  14527. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14528. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14529. if test "$gl_cv_size_max" != yes; then
  14530. cat >>confdefs.h <<_ACEOF
  14531. #define SIZE_MAX $gl_cv_size_max
  14532. _ACEOF
  14533. fi
  14534. for ac_header in stdint.h
  14535. do
  14536. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14537. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14538. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14539. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14540. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14541. echo $ECHO_N "(cached) $ECHO_C" >&6
  14542. fi
  14543. ac_res=`eval echo '${'$as_ac_Header'}'`
  14544. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14545. echo "${ECHO_T}$ac_res" >&6; }
  14546. else
  14547. # Is the header compilable?
  14548. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14549. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14550. cat >conftest.$ac_ext <<_ACEOF
  14551. /* confdefs.h. */
  14552. _ACEOF
  14553. cat confdefs.h >>conftest.$ac_ext
  14554. cat >>conftest.$ac_ext <<_ACEOF
  14555. /* end confdefs.h. */
  14556. $ac_includes_default
  14557. #include <$ac_header>
  14558. _ACEOF
  14559. rm -f conftest.$ac_objext
  14560. if { (ac_try="$ac_compile"
  14561. case "(($ac_try" in
  14562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14563. *) ac_try_echo=$ac_try;;
  14564. esac
  14565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14566. (eval "$ac_compile") 2>conftest.er1
  14567. ac_status=$?
  14568. grep -v '^ *+' conftest.er1 >conftest.err
  14569. rm -f conftest.er1
  14570. cat conftest.err >&5
  14571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14572. (exit $ac_status); } && {
  14573. test -z "$ac_cxx_werror_flag" ||
  14574. test ! -s conftest.err
  14575. } && test -s conftest.$ac_objext; then
  14576. ac_header_compiler=yes
  14577. else
  14578. echo "$as_me: failed program was:" >&5
  14579. sed 's/^/| /' conftest.$ac_ext >&5
  14580. ac_header_compiler=no
  14581. fi
  14582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14583. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14584. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14585. # Is the header present?
  14586. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14587. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14588. cat >conftest.$ac_ext <<_ACEOF
  14589. /* confdefs.h. */
  14590. _ACEOF
  14591. cat confdefs.h >>conftest.$ac_ext
  14592. cat >>conftest.$ac_ext <<_ACEOF
  14593. /* end confdefs.h. */
  14594. #include <$ac_header>
  14595. _ACEOF
  14596. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14597. case "(($ac_try" in
  14598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14599. *) ac_try_echo=$ac_try;;
  14600. esac
  14601. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14602. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14603. ac_status=$?
  14604. grep -v '^ *+' conftest.er1 >conftest.err
  14605. rm -f conftest.er1
  14606. cat conftest.err >&5
  14607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14608. (exit $ac_status); } >/dev/null && {
  14609. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14610. test ! -s conftest.err
  14611. }; then
  14612. ac_header_preproc=yes
  14613. else
  14614. echo "$as_me: failed program was:" >&5
  14615. sed 's/^/| /' conftest.$ac_ext >&5
  14616. ac_header_preproc=no
  14617. fi
  14618. rm -f conftest.err conftest.$ac_ext
  14619. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14620. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14621. # So? What about this header?
  14622. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14623. yes:no: )
  14624. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14625. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14626. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14627. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14628. ac_header_preproc=yes
  14629. ;;
  14630. no:yes:* )
  14631. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14632. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14633. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14634. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14635. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14636. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14637. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14638. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14639. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14640. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14641. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14642. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14643. ( cat <<\_ASBOX
  14644. ## ----------------------------------------------- ##
  14645. ## Report this to t-tujikawa@users.sourceforge.net ##
  14646. ## ----------------------------------------------- ##
  14647. _ASBOX
  14648. ) | sed "s/^/$as_me: WARNING: /" >&2
  14649. ;;
  14650. esac
  14651. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14652. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14653. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14654. echo $ECHO_N "(cached) $ECHO_C" >&6
  14655. else
  14656. eval "$as_ac_Header=\$ac_header_preproc"
  14657. fi
  14658. ac_res=`eval echo '${'$as_ac_Header'}'`
  14659. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14660. echo "${ECHO_T}$ac_res" >&6; }
  14661. fi
  14662. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14663. cat >>confdefs.h <<_ACEOF
  14664. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14665. _ACEOF
  14666. fi
  14667. done
  14668. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14669. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14670. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14671. echo $ECHO_N "(cached) $ECHO_C" >&6
  14672. else
  14673. gt_save_LIBS="$LIBS"
  14674. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14675. cat >conftest.$ac_ext <<_ACEOF
  14676. /* confdefs.h. */
  14677. _ACEOF
  14678. cat confdefs.h >>conftest.$ac_ext
  14679. cat >>conftest.$ac_ext <<_ACEOF
  14680. /* end confdefs.h. */
  14681. #include <CoreFoundation/CFPreferences.h>
  14682. int
  14683. main ()
  14684. {
  14685. CFPreferencesCopyAppValue(NULL, NULL)
  14686. ;
  14687. return 0;
  14688. }
  14689. _ACEOF
  14690. rm -f conftest.$ac_objext conftest$ac_exeext
  14691. if { (ac_try="$ac_link"
  14692. case "(($ac_try" in
  14693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14694. *) ac_try_echo=$ac_try;;
  14695. esac
  14696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14697. (eval "$ac_link") 2>conftest.er1
  14698. ac_status=$?
  14699. grep -v '^ *+' conftest.er1 >conftest.err
  14700. rm -f conftest.er1
  14701. cat conftest.err >&5
  14702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14703. (exit $ac_status); } && {
  14704. test -z "$ac_cxx_werror_flag" ||
  14705. test ! -s conftest.err
  14706. } && test -s conftest$ac_exeext &&
  14707. $as_test_x conftest$ac_exeext; then
  14708. gt_cv_func_CFPreferencesCopyAppValue=yes
  14709. else
  14710. echo "$as_me: failed program was:" >&5
  14711. sed 's/^/| /' conftest.$ac_ext >&5
  14712. gt_cv_func_CFPreferencesCopyAppValue=no
  14713. fi
  14714. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14715. conftest$ac_exeext conftest.$ac_ext
  14716. LIBS="$gt_save_LIBS"
  14717. fi
  14718. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14719. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14720. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14721. cat >>confdefs.h <<\_ACEOF
  14722. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14723. _ACEOF
  14724. fi
  14725. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14726. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14727. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14728. echo $ECHO_N "(cached) $ECHO_C" >&6
  14729. else
  14730. gt_save_LIBS="$LIBS"
  14731. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14732. cat >conftest.$ac_ext <<_ACEOF
  14733. /* confdefs.h. */
  14734. _ACEOF
  14735. cat confdefs.h >>conftest.$ac_ext
  14736. cat >>conftest.$ac_ext <<_ACEOF
  14737. /* end confdefs.h. */
  14738. #include <CoreFoundation/CFLocale.h>
  14739. int
  14740. main ()
  14741. {
  14742. CFLocaleCopyCurrent();
  14743. ;
  14744. return 0;
  14745. }
  14746. _ACEOF
  14747. rm -f conftest.$ac_objext conftest$ac_exeext
  14748. if { (ac_try="$ac_link"
  14749. case "(($ac_try" in
  14750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14751. *) ac_try_echo=$ac_try;;
  14752. esac
  14753. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14754. (eval "$ac_link") 2>conftest.er1
  14755. ac_status=$?
  14756. grep -v '^ *+' conftest.er1 >conftest.err
  14757. rm -f conftest.er1
  14758. cat conftest.err >&5
  14759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14760. (exit $ac_status); } && {
  14761. test -z "$ac_cxx_werror_flag" ||
  14762. test ! -s conftest.err
  14763. } && test -s conftest$ac_exeext &&
  14764. $as_test_x conftest$ac_exeext; then
  14765. gt_cv_func_CFLocaleCopyCurrent=yes
  14766. else
  14767. echo "$as_me: failed program was:" >&5
  14768. sed 's/^/| /' conftest.$ac_ext >&5
  14769. gt_cv_func_CFLocaleCopyCurrent=no
  14770. fi
  14771. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14772. conftest$ac_exeext conftest.$ac_ext
  14773. LIBS="$gt_save_LIBS"
  14774. fi
  14775. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14776. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14777. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14778. cat >>confdefs.h <<\_ACEOF
  14779. #define HAVE_CFLOCALECOPYCURRENT 1
  14780. _ACEOF
  14781. fi
  14782. INTL_MACOSX_LIBS=
  14783. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14784. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14785. fi
  14786. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14787. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14788. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14789. echo $ECHO_N "(cached) $ECHO_C" >&6
  14790. else
  14791. cat >conftest.$ac_ext <<_ACEOF
  14792. /* confdefs.h. */
  14793. _ACEOF
  14794. cat confdefs.h >>conftest.$ac_ext
  14795. cat >>conftest.$ac_ext <<_ACEOF
  14796. /* end confdefs.h. */
  14797. $ac_includes_default
  14798. typedef ptrdiff_t ac__type_new_;
  14799. int
  14800. main ()
  14801. {
  14802. if ((ac__type_new_ *) 0)
  14803. return 0;
  14804. if (sizeof (ac__type_new_))
  14805. return 0;
  14806. ;
  14807. return 0;
  14808. }
  14809. _ACEOF
  14810. rm -f conftest.$ac_objext
  14811. if { (ac_try="$ac_compile"
  14812. case "(($ac_try" in
  14813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14814. *) ac_try_echo=$ac_try;;
  14815. esac
  14816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14817. (eval "$ac_compile") 2>conftest.er1
  14818. ac_status=$?
  14819. grep -v '^ *+' conftest.er1 >conftest.err
  14820. rm -f conftest.er1
  14821. cat conftest.err >&5
  14822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14823. (exit $ac_status); } && {
  14824. test -z "$ac_cxx_werror_flag" ||
  14825. test ! -s conftest.err
  14826. } && test -s conftest.$ac_objext; then
  14827. ac_cv_type_ptrdiff_t=yes
  14828. else
  14829. echo "$as_me: failed program was:" >&5
  14830. sed 's/^/| /' conftest.$ac_ext >&5
  14831. ac_cv_type_ptrdiff_t=no
  14832. fi
  14833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14834. fi
  14835. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14836. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14837. if test $ac_cv_type_ptrdiff_t = yes; then
  14838. :
  14839. else
  14840. cat >>confdefs.h <<\_ACEOF
  14841. #define ptrdiff_t long
  14842. _ACEOF
  14843. fi
  14844. for ac_header in stddef.h stdlib.h string.h
  14845. do
  14846. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14847. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14848. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14849. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14850. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14851. echo $ECHO_N "(cached) $ECHO_C" >&6
  14852. fi
  14853. ac_res=`eval echo '${'$as_ac_Header'}'`
  14854. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14855. echo "${ECHO_T}$ac_res" >&6; }
  14856. else
  14857. # Is the header compilable?
  14858. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14859. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14860. cat >conftest.$ac_ext <<_ACEOF
  14861. /* confdefs.h. */
  14862. _ACEOF
  14863. cat confdefs.h >>conftest.$ac_ext
  14864. cat >>conftest.$ac_ext <<_ACEOF
  14865. /* end confdefs.h. */
  14866. $ac_includes_default
  14867. #include <$ac_header>
  14868. _ACEOF
  14869. rm -f conftest.$ac_objext
  14870. if { (ac_try="$ac_compile"
  14871. case "(($ac_try" in
  14872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14873. *) ac_try_echo=$ac_try;;
  14874. esac
  14875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14876. (eval "$ac_compile") 2>conftest.er1
  14877. ac_status=$?
  14878. grep -v '^ *+' conftest.er1 >conftest.err
  14879. rm -f conftest.er1
  14880. cat conftest.err >&5
  14881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14882. (exit $ac_status); } && {
  14883. test -z "$ac_cxx_werror_flag" ||
  14884. test ! -s conftest.err
  14885. } && test -s conftest.$ac_objext; then
  14886. ac_header_compiler=yes
  14887. else
  14888. echo "$as_me: failed program was:" >&5
  14889. sed 's/^/| /' conftest.$ac_ext >&5
  14890. ac_header_compiler=no
  14891. fi
  14892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14893. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14894. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14895. # Is the header present?
  14896. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14897. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14898. cat >conftest.$ac_ext <<_ACEOF
  14899. /* confdefs.h. */
  14900. _ACEOF
  14901. cat confdefs.h >>conftest.$ac_ext
  14902. cat >>conftest.$ac_ext <<_ACEOF
  14903. /* end confdefs.h. */
  14904. #include <$ac_header>
  14905. _ACEOF
  14906. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14907. case "(($ac_try" in
  14908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14909. *) ac_try_echo=$ac_try;;
  14910. esac
  14911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14912. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14913. ac_status=$?
  14914. grep -v '^ *+' conftest.er1 >conftest.err
  14915. rm -f conftest.er1
  14916. cat conftest.err >&5
  14917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14918. (exit $ac_status); } >/dev/null && {
  14919. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14920. test ! -s conftest.err
  14921. }; then
  14922. ac_header_preproc=yes
  14923. else
  14924. echo "$as_me: failed program was:" >&5
  14925. sed 's/^/| /' conftest.$ac_ext >&5
  14926. ac_header_preproc=no
  14927. fi
  14928. rm -f conftest.err conftest.$ac_ext
  14929. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14930. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14931. # So? What about this header?
  14932. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14933. yes:no: )
  14934. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14935. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14936. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14937. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14938. ac_header_preproc=yes
  14939. ;;
  14940. no:yes:* )
  14941. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14942. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14943. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14944. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14945. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14946. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14947. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14948. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14949. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14950. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14951. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14952. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14953. ( cat <<\_ASBOX
  14954. ## ----------------------------------------------- ##
  14955. ## Report this to t-tujikawa@users.sourceforge.net ##
  14956. ## ----------------------------------------------- ##
  14957. _ASBOX
  14958. ) | sed "s/^/$as_me: WARNING: /" >&2
  14959. ;;
  14960. esac
  14961. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14962. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14963. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14964. echo $ECHO_N "(cached) $ECHO_C" >&6
  14965. else
  14966. eval "$as_ac_Header=\$ac_header_preproc"
  14967. fi
  14968. ac_res=`eval echo '${'$as_ac_Header'}'`
  14969. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14970. echo "${ECHO_T}$ac_res" >&6; }
  14971. fi
  14972. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14973. cat >>confdefs.h <<_ACEOF
  14974. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14975. _ACEOF
  14976. fi
  14977. done
  14978. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14979. do
  14980. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14981. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14982. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14983. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14984. echo $ECHO_N "(cached) $ECHO_C" >&6
  14985. else
  14986. cat >conftest.$ac_ext <<_ACEOF
  14987. /* confdefs.h. */
  14988. _ACEOF
  14989. cat confdefs.h >>conftest.$ac_ext
  14990. cat >>conftest.$ac_ext <<_ACEOF
  14991. /* end confdefs.h. */
  14992. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14993. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14994. #define $ac_func innocuous_$ac_func
  14995. /* System header to define __stub macros and hopefully few prototypes,
  14996. which can conflict with char $ac_func (); below.
  14997. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14998. <limits.h> exists even on freestanding compilers. */
  14999. #ifdef __STDC__
  15000. # include <limits.h>
  15001. #else
  15002. # include <assert.h>
  15003. #endif
  15004. #undef $ac_func
  15005. /* Override any GCC internal prototype to avoid an error.
  15006. Use char because int might match the return type of a GCC
  15007. builtin and then its argument prototype would still apply. */
  15008. #ifdef __cplusplus
  15009. extern "C"
  15010. #endif
  15011. char $ac_func ();
  15012. /* The GNU C library defines this for functions which it implements
  15013. to always fail with ENOSYS. Some functions are actually named
  15014. something starting with __ and the normal name is an alias. */
  15015. #if defined __stub_$ac_func || defined __stub___$ac_func
  15016. choke me
  15017. #endif
  15018. int
  15019. main ()
  15020. {
  15021. return $ac_func ();
  15022. ;
  15023. return 0;
  15024. }
  15025. _ACEOF
  15026. rm -f conftest.$ac_objext conftest$ac_exeext
  15027. if { (ac_try="$ac_link"
  15028. case "(($ac_try" in
  15029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15030. *) ac_try_echo=$ac_try;;
  15031. esac
  15032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15033. (eval "$ac_link") 2>conftest.er1
  15034. ac_status=$?
  15035. grep -v '^ *+' conftest.er1 >conftest.err
  15036. rm -f conftest.er1
  15037. cat conftest.err >&5
  15038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15039. (exit $ac_status); } && {
  15040. test -z "$ac_cxx_werror_flag" ||
  15041. test ! -s conftest.err
  15042. } && test -s conftest$ac_exeext &&
  15043. $as_test_x conftest$ac_exeext; then
  15044. eval "$as_ac_var=yes"
  15045. else
  15046. echo "$as_me: failed program was:" >&5
  15047. sed 's/^/| /' conftest.$ac_ext >&5
  15048. eval "$as_ac_var=no"
  15049. fi
  15050. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15051. conftest$ac_exeext conftest.$ac_ext
  15052. fi
  15053. ac_res=`eval echo '${'$as_ac_var'}'`
  15054. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15055. echo "${ECHO_T}$ac_res" >&6; }
  15056. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15057. cat >>confdefs.h <<_ACEOF
  15058. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15059. _ACEOF
  15060. fi
  15061. done
  15062. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  15063. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  15064. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  15065. echo $ECHO_N "(cached) $ECHO_C" >&6
  15066. else
  15067. cat >conftest.$ac_ext <<_ACEOF
  15068. /* confdefs.h. */
  15069. _ACEOF
  15070. cat confdefs.h >>conftest.$ac_ext
  15071. cat >>conftest.$ac_ext <<_ACEOF
  15072. /* end confdefs.h. */
  15073. #include <stdio.h>
  15074. int
  15075. main ()
  15076. {
  15077. #ifndef _snprintf
  15078. char *p = (char *) _snprintf;
  15079. #endif
  15080. ;
  15081. return 0;
  15082. }
  15083. _ACEOF
  15084. rm -f conftest.$ac_objext
  15085. if { (ac_try="$ac_compile"
  15086. case "(($ac_try" in
  15087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15088. *) ac_try_echo=$ac_try;;
  15089. esac
  15090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15091. (eval "$ac_compile") 2>conftest.er1
  15092. ac_status=$?
  15093. grep -v '^ *+' conftest.er1 >conftest.err
  15094. rm -f conftest.er1
  15095. cat conftest.err >&5
  15096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15097. (exit $ac_status); } && {
  15098. test -z "$ac_cxx_werror_flag" ||
  15099. test ! -s conftest.err
  15100. } && test -s conftest.$ac_objext; then
  15101. ac_cv_have_decl__snprintf=yes
  15102. else
  15103. echo "$as_me: failed program was:" >&5
  15104. sed 's/^/| /' conftest.$ac_ext >&5
  15105. ac_cv_have_decl__snprintf=no
  15106. fi
  15107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15108. fi
  15109. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15110. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  15111. if test $ac_cv_have_decl__snprintf = yes; then
  15112. gt_value=1
  15113. else
  15114. gt_value=0
  15115. fi
  15116. cat >>confdefs.h <<_ACEOF
  15117. #define HAVE_DECL__SNPRINTF $gt_value
  15118. _ACEOF
  15119. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15120. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  15121. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15122. echo $ECHO_N "(cached) $ECHO_C" >&6
  15123. else
  15124. cat >conftest.$ac_ext <<_ACEOF
  15125. /* confdefs.h. */
  15126. _ACEOF
  15127. cat confdefs.h >>conftest.$ac_ext
  15128. cat >>conftest.$ac_ext <<_ACEOF
  15129. /* end confdefs.h. */
  15130. #include <stdio.h>
  15131. int
  15132. main ()
  15133. {
  15134. #ifndef _snwprintf
  15135. char *p = (char *) _snwprintf;
  15136. #endif
  15137. ;
  15138. return 0;
  15139. }
  15140. _ACEOF
  15141. rm -f conftest.$ac_objext
  15142. if { (ac_try="$ac_compile"
  15143. case "(($ac_try" in
  15144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15145. *) ac_try_echo=$ac_try;;
  15146. esac
  15147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15148. (eval "$ac_compile") 2>conftest.er1
  15149. ac_status=$?
  15150. grep -v '^ *+' conftest.er1 >conftest.err
  15151. rm -f conftest.er1
  15152. cat conftest.err >&5
  15153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15154. (exit $ac_status); } && {
  15155. test -z "$ac_cxx_werror_flag" ||
  15156. test ! -s conftest.err
  15157. } && test -s conftest.$ac_objext; then
  15158. ac_cv_have_decl__snwprintf=yes
  15159. else
  15160. echo "$as_me: failed program was:" >&5
  15161. sed 's/^/| /' conftest.$ac_ext >&5
  15162. ac_cv_have_decl__snwprintf=no
  15163. fi
  15164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15165. fi
  15166. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  15167. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  15168. if test $ac_cv_have_decl__snwprintf = yes; then
  15169. gt_value=1
  15170. else
  15171. gt_value=0
  15172. fi
  15173. cat >>confdefs.h <<_ACEOF
  15174. #define HAVE_DECL__SNWPRINTF $gt_value
  15175. _ACEOF
  15176. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  15177. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  15178. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  15179. echo $ECHO_N "(cached) $ECHO_C" >&6
  15180. else
  15181. cat >conftest.$ac_ext <<_ACEOF
  15182. /* confdefs.h. */
  15183. _ACEOF
  15184. cat confdefs.h >>conftest.$ac_ext
  15185. cat >>conftest.$ac_ext <<_ACEOF
  15186. /* end confdefs.h. */
  15187. #include <stdio.h>
  15188. int
  15189. main ()
  15190. {
  15191. #ifndef getc_unlocked
  15192. char *p = (char *) getc_unlocked;
  15193. #endif
  15194. ;
  15195. return 0;
  15196. }
  15197. _ACEOF
  15198. rm -f conftest.$ac_objext
  15199. if { (ac_try="$ac_compile"
  15200. case "(($ac_try" in
  15201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15202. *) ac_try_echo=$ac_try;;
  15203. esac
  15204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15205. (eval "$ac_compile") 2>conftest.er1
  15206. ac_status=$?
  15207. grep -v '^ *+' conftest.er1 >conftest.err
  15208. rm -f conftest.er1
  15209. cat conftest.err >&5
  15210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15211. (exit $ac_status); } && {
  15212. test -z "$ac_cxx_werror_flag" ||
  15213. test ! -s conftest.err
  15214. } && test -s conftest.$ac_objext; then
  15215. ac_cv_have_decl_getc_unlocked=yes
  15216. else
  15217. echo "$as_me: failed program was:" >&5
  15218. sed 's/^/| /' conftest.$ac_ext >&5
  15219. ac_cv_have_decl_getc_unlocked=no
  15220. fi
  15221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15222. fi
  15223. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  15224. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  15225. if test $ac_cv_have_decl_getc_unlocked = yes; then
  15226. gt_value=1
  15227. else
  15228. gt_value=0
  15229. fi
  15230. cat >>confdefs.h <<_ACEOF
  15231. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  15232. _ACEOF
  15233. case $gt_cv_func_printf_posix in
  15234. *yes) HAVE_POSIX_PRINTF=1 ;;
  15235. *) HAVE_POSIX_PRINTF=0 ;;
  15236. esac
  15237. if test "$ac_cv_func_asprintf" = yes; then
  15238. HAVE_ASPRINTF=1
  15239. else
  15240. HAVE_ASPRINTF=0
  15241. fi
  15242. if test "$ac_cv_func_snprintf" = yes; then
  15243. HAVE_SNPRINTF=1
  15244. else
  15245. HAVE_SNPRINTF=0
  15246. fi
  15247. if test "$ac_cv_func_wprintf" = yes; then
  15248. HAVE_WPRINTF=1
  15249. else
  15250. HAVE_WPRINTF=0
  15251. fi
  15252. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  15253. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  15254. if test "${am_cv_langinfo_codeset+set}" = set; then
  15255. echo $ECHO_N "(cached) $ECHO_C" >&6
  15256. else
  15257. cat >conftest.$ac_ext <<_ACEOF
  15258. /* confdefs.h. */
  15259. _ACEOF
  15260. cat confdefs.h >>conftest.$ac_ext
  15261. cat >>conftest.$ac_ext <<_ACEOF
  15262. /* end confdefs.h. */
  15263. #include <langinfo.h>
  15264. int
  15265. main ()
  15266. {
  15267. char* cs = nl_langinfo(CODESET); return !cs;
  15268. ;
  15269. return 0;
  15270. }
  15271. _ACEOF
  15272. rm -f conftest.$ac_objext conftest$ac_exeext
  15273. if { (ac_try="$ac_link"
  15274. case "(($ac_try" in
  15275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15276. *) ac_try_echo=$ac_try;;
  15277. esac
  15278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15279. (eval "$ac_link") 2>conftest.er1
  15280. ac_status=$?
  15281. grep -v '^ *+' conftest.er1 >conftest.err
  15282. rm -f conftest.er1
  15283. cat conftest.err >&5
  15284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15285. (exit $ac_status); } && {
  15286. test -z "$ac_cxx_werror_flag" ||
  15287. test ! -s conftest.err
  15288. } && test -s conftest$ac_exeext &&
  15289. $as_test_x conftest$ac_exeext; then
  15290. am_cv_langinfo_codeset=yes
  15291. else
  15292. echo "$as_me: failed program was:" >&5
  15293. sed 's/^/| /' conftest.$ac_ext >&5
  15294. am_cv_langinfo_codeset=no
  15295. fi
  15296. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15297. conftest$ac_exeext conftest.$ac_ext
  15298. fi
  15299. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  15300. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  15301. if test $am_cv_langinfo_codeset = yes; then
  15302. cat >>confdefs.h <<\_ACEOF
  15303. #define HAVE_LANGINFO_CODESET 1
  15304. _ACEOF
  15305. fi
  15306. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  15307. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  15308. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  15309. echo $ECHO_N "(cached) $ECHO_C" >&6
  15310. else
  15311. cat >conftest.$ac_ext <<_ACEOF
  15312. /* confdefs.h. */
  15313. _ACEOF
  15314. cat confdefs.h >>conftest.$ac_ext
  15315. cat >>conftest.$ac_ext <<_ACEOF
  15316. /* end confdefs.h. */
  15317. #include <locale.h>
  15318. int
  15319. main ()
  15320. {
  15321. return LC_MESSAGES
  15322. ;
  15323. return 0;
  15324. }
  15325. _ACEOF
  15326. rm -f conftest.$ac_objext conftest$ac_exeext
  15327. if { (ac_try="$ac_link"
  15328. case "(($ac_try" in
  15329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15330. *) ac_try_echo=$ac_try;;
  15331. esac
  15332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15333. (eval "$ac_link") 2>conftest.er1
  15334. ac_status=$?
  15335. grep -v '^ *+' conftest.er1 >conftest.err
  15336. rm -f conftest.er1
  15337. cat conftest.err >&5
  15338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15339. (exit $ac_status); } && {
  15340. test -z "$ac_cxx_werror_flag" ||
  15341. test ! -s conftest.err
  15342. } && test -s conftest$ac_exeext &&
  15343. $as_test_x conftest$ac_exeext; then
  15344. gt_cv_val_LC_MESSAGES=yes
  15345. else
  15346. echo "$as_me: failed program was:" >&5
  15347. sed 's/^/| /' conftest.$ac_ext >&5
  15348. gt_cv_val_LC_MESSAGES=no
  15349. fi
  15350. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15351. conftest$ac_exeext conftest.$ac_ext
  15352. fi
  15353. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15354. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15355. if test $gt_cv_val_LC_MESSAGES = yes; then
  15356. cat >>confdefs.h <<\_ACEOF
  15357. #define HAVE_LC_MESSAGES 1
  15358. _ACEOF
  15359. fi
  15360. if test "$enable_shared" = yes; then
  15361. case "$host_os" in
  15362. mingw* | cygwin*) is_woe32dll=yes ;;
  15363. *) is_woe32dll=no ;;
  15364. esac
  15365. else
  15366. is_woe32dll=no
  15367. fi
  15368. WOE32DLL=$is_woe32dll
  15369. case "$host_os" in
  15370. mingw* | cygwin*) is_woe32=yes ;;
  15371. *) is_woe32=no ;;
  15372. esac
  15373. WOE32=$is_woe32
  15374. if test $WOE32 = yes; then
  15375. if test -n "$ac_tool_prefix"; then
  15376. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15377. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15378. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15379. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15380. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15381. echo $ECHO_N "(cached) $ECHO_C" >&6
  15382. else
  15383. if test -n "$WINDRES"; then
  15384. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15385. else
  15386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15387. for as_dir in $PATH
  15388. do
  15389. IFS=$as_save_IFS
  15390. test -z "$as_dir" && as_dir=.
  15391. for ac_exec_ext in '' $ac_executable_extensions; do
  15392. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15393. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15394. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15395. break 2
  15396. fi
  15397. done
  15398. done
  15399. IFS=$as_save_IFS
  15400. fi
  15401. fi
  15402. WINDRES=$ac_cv_prog_WINDRES
  15403. if test -n "$WINDRES"; then
  15404. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15405. echo "${ECHO_T}$WINDRES" >&6; }
  15406. else
  15407. { echo "$as_me:$LINENO: result: no" >&5
  15408. echo "${ECHO_T}no" >&6; }
  15409. fi
  15410. fi
  15411. if test -z "$ac_cv_prog_WINDRES"; then
  15412. ac_ct_WINDRES=$WINDRES
  15413. # Extract the first word of "windres", so it can be a program name with args.
  15414. set dummy windres; ac_word=$2
  15415. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15416. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15417. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15418. echo $ECHO_N "(cached) $ECHO_C" >&6
  15419. else
  15420. if test -n "$ac_ct_WINDRES"; then
  15421. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15422. else
  15423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15424. for as_dir in $PATH
  15425. do
  15426. IFS=$as_save_IFS
  15427. test -z "$as_dir" && as_dir=.
  15428. for ac_exec_ext in '' $ac_executable_extensions; do
  15429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15430. ac_cv_prog_ac_ct_WINDRES="windres"
  15431. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15432. break 2
  15433. fi
  15434. done
  15435. done
  15436. IFS=$as_save_IFS
  15437. fi
  15438. fi
  15439. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15440. if test -n "$ac_ct_WINDRES"; then
  15441. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15442. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15443. else
  15444. { echo "$as_me:$LINENO: result: no" >&5
  15445. echo "${ECHO_T}no" >&6; }
  15446. fi
  15447. if test "x$ac_ct_WINDRES" = x; then
  15448. WINDRES=""
  15449. else
  15450. case $cross_compiling:$ac_tool_warned in
  15451. yes:)
  15452. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15453. whose name does not start with the host triplet. If you think this
  15454. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15455. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15456. whose name does not start with the host triplet. If you think this
  15457. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15458. ac_tool_warned=yes ;;
  15459. esac
  15460. WINDRES=$ac_ct_WINDRES
  15461. fi
  15462. else
  15463. WINDRES="$ac_cv_prog_WINDRES"
  15464. fi
  15465. fi
  15466. case "$host_os" in
  15467. hpux*) LTLIBC="" ;;
  15468. *) LTLIBC="-lc" ;;
  15469. esac
  15470. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15471. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15472. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15473. echo $ECHO_N "(cached) $ECHO_C" >&6
  15474. else
  15475. gt_save_LIBS="$LIBS"
  15476. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15477. cat >conftest.$ac_ext <<_ACEOF
  15478. /* confdefs.h. */
  15479. _ACEOF
  15480. cat confdefs.h >>conftest.$ac_ext
  15481. cat >>conftest.$ac_ext <<_ACEOF
  15482. /* end confdefs.h. */
  15483. #include <CoreFoundation/CFPreferences.h>
  15484. int
  15485. main ()
  15486. {
  15487. CFPreferencesCopyAppValue(NULL, NULL)
  15488. ;
  15489. return 0;
  15490. }
  15491. _ACEOF
  15492. rm -f conftest.$ac_objext conftest$ac_exeext
  15493. if { (ac_try="$ac_link"
  15494. case "(($ac_try" in
  15495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15496. *) ac_try_echo=$ac_try;;
  15497. esac
  15498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15499. (eval "$ac_link") 2>conftest.er1
  15500. ac_status=$?
  15501. grep -v '^ *+' conftest.er1 >conftest.err
  15502. rm -f conftest.er1
  15503. cat conftest.err >&5
  15504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15505. (exit $ac_status); } && {
  15506. test -z "$ac_cxx_werror_flag" ||
  15507. test ! -s conftest.err
  15508. } && test -s conftest$ac_exeext &&
  15509. $as_test_x conftest$ac_exeext; then
  15510. gt_cv_func_CFPreferencesCopyAppValue=yes
  15511. else
  15512. echo "$as_me: failed program was:" >&5
  15513. sed 's/^/| /' conftest.$ac_ext >&5
  15514. gt_cv_func_CFPreferencesCopyAppValue=no
  15515. fi
  15516. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15517. conftest$ac_exeext conftest.$ac_ext
  15518. LIBS="$gt_save_LIBS"
  15519. fi
  15520. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15521. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15522. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15523. cat >>confdefs.h <<\_ACEOF
  15524. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15525. _ACEOF
  15526. fi
  15527. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15528. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15529. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15530. echo $ECHO_N "(cached) $ECHO_C" >&6
  15531. else
  15532. gt_save_LIBS="$LIBS"
  15533. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15534. cat >conftest.$ac_ext <<_ACEOF
  15535. /* confdefs.h. */
  15536. _ACEOF
  15537. cat confdefs.h >>conftest.$ac_ext
  15538. cat >>conftest.$ac_ext <<_ACEOF
  15539. /* end confdefs.h. */
  15540. #include <CoreFoundation/CFLocale.h>
  15541. int
  15542. main ()
  15543. {
  15544. CFLocaleCopyCurrent();
  15545. ;
  15546. return 0;
  15547. }
  15548. _ACEOF
  15549. rm -f conftest.$ac_objext conftest$ac_exeext
  15550. if { (ac_try="$ac_link"
  15551. case "(($ac_try" in
  15552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15553. *) ac_try_echo=$ac_try;;
  15554. esac
  15555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15556. (eval "$ac_link") 2>conftest.er1
  15557. ac_status=$?
  15558. grep -v '^ *+' conftest.er1 >conftest.err
  15559. rm -f conftest.er1
  15560. cat conftest.err >&5
  15561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15562. (exit $ac_status); } && {
  15563. test -z "$ac_cxx_werror_flag" ||
  15564. test ! -s conftest.err
  15565. } && test -s conftest$ac_exeext &&
  15566. $as_test_x conftest$ac_exeext; then
  15567. gt_cv_func_CFLocaleCopyCurrent=yes
  15568. else
  15569. echo "$as_me: failed program was:" >&5
  15570. sed 's/^/| /' conftest.$ac_ext >&5
  15571. gt_cv_func_CFLocaleCopyCurrent=no
  15572. fi
  15573. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15574. conftest$ac_exeext conftest.$ac_ext
  15575. LIBS="$gt_save_LIBS"
  15576. fi
  15577. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15578. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15579. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15580. cat >>confdefs.h <<\_ACEOF
  15581. #define HAVE_CFLOCALECOPYCURRENT 1
  15582. _ACEOF
  15583. fi
  15584. INTL_MACOSX_LIBS=
  15585. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15586. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15587. fi
  15588. BUILD_INCLUDED_LIBINTL=no
  15589. USE_INCLUDED_LIBINTL=no
  15590. LIBINTL=
  15591. LTLIBINTL=
  15592. POSUB=
  15593. case " $gt_needs " in
  15594. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15595. *" need-ngettext "*) gt_api_version=2 ;;
  15596. *) gt_api_version=1 ;;
  15597. esac
  15598. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15599. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15600. if test "$USE_NLS" = "yes"; then
  15601. gt_use_preinstalled_gnugettext=no
  15602. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15603. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15604. # Check whether --with-included-gettext was given.
  15605. if test "${with_included_gettext+set}" = set; then
  15606. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15607. else
  15608. nls_cv_force_use_gnu_gettext=no
  15609. fi
  15610. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15611. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15612. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15613. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15614. if test $gt_api_version -ge 3; then
  15615. gt_revision_test_code='
  15616. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15617. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15618. #endif
  15619. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15620. '
  15621. else
  15622. gt_revision_test_code=
  15623. fi
  15624. if test $gt_api_version -ge 2; then
  15625. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15626. else
  15627. gt_expression_test_code=
  15628. fi
  15629. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15630. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15631. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15632. echo $ECHO_N "(cached) $ECHO_C" >&6
  15633. else
  15634. cat >conftest.$ac_ext <<_ACEOF
  15635. /* confdefs.h. */
  15636. _ACEOF
  15637. cat confdefs.h >>conftest.$ac_ext
  15638. cat >>conftest.$ac_ext <<_ACEOF
  15639. /* end confdefs.h. */
  15640. #include <libintl.h>
  15641. $gt_revision_test_code
  15642. extern int _nl_msg_cat_cntr;
  15643. extern int *_nl_domain_bindings;
  15644. int
  15645. main ()
  15646. {
  15647. bindtextdomain ("", "");
  15648. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15649. ;
  15650. return 0;
  15651. }
  15652. _ACEOF
  15653. rm -f conftest.$ac_objext conftest$ac_exeext
  15654. if { (ac_try="$ac_link"
  15655. case "(($ac_try" in
  15656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15657. *) ac_try_echo=$ac_try;;
  15658. esac
  15659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15660. (eval "$ac_link") 2>conftest.er1
  15661. ac_status=$?
  15662. grep -v '^ *+' conftest.er1 >conftest.err
  15663. rm -f conftest.er1
  15664. cat conftest.err >&5
  15665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15666. (exit $ac_status); } && {
  15667. test -z "$ac_cxx_werror_flag" ||
  15668. test ! -s conftest.err
  15669. } && test -s conftest$ac_exeext &&
  15670. $as_test_x conftest$ac_exeext; then
  15671. eval "$gt_func_gnugettext_libc=yes"
  15672. else
  15673. echo "$as_me: failed program was:" >&5
  15674. sed 's/^/| /' conftest.$ac_ext >&5
  15675. eval "$gt_func_gnugettext_libc=no"
  15676. fi
  15677. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15678. conftest$ac_exeext conftest.$ac_ext
  15679. fi
  15680. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15681. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15682. echo "${ECHO_T}$ac_res" >&6; }
  15683. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15684. use_additional=yes
  15685. acl_save_prefix="$prefix"
  15686. prefix="$acl_final_prefix"
  15687. acl_save_exec_prefix="$exec_prefix"
  15688. exec_prefix="$acl_final_exec_prefix"
  15689. eval additional_includedir=\"$includedir\"
  15690. eval additional_libdir=\"$libdir\"
  15691. exec_prefix="$acl_save_exec_prefix"
  15692. prefix="$acl_save_prefix"
  15693. # Check whether --with-libintl-prefix was given.
  15694. if test "${with_libintl_prefix+set}" = set; then
  15695. withval=$with_libintl_prefix;
  15696. if test "X$withval" = "Xno"; then
  15697. use_additional=no
  15698. else
  15699. if test "X$withval" = "X"; then
  15700. acl_save_prefix="$prefix"
  15701. prefix="$acl_final_prefix"
  15702. acl_save_exec_prefix="$exec_prefix"
  15703. exec_prefix="$acl_final_exec_prefix"
  15704. eval additional_includedir=\"$includedir\"
  15705. eval additional_libdir=\"$libdir\"
  15706. exec_prefix="$acl_save_exec_prefix"
  15707. prefix="$acl_save_prefix"
  15708. else
  15709. additional_includedir="$withval/include"
  15710. additional_libdir="$withval/$acl_libdirstem"
  15711. fi
  15712. fi
  15713. fi
  15714. LIBINTL=
  15715. LTLIBINTL=
  15716. INCINTL=
  15717. LIBINTL_PREFIX=
  15718. rpathdirs=
  15719. ltrpathdirs=
  15720. names_already_handled=
  15721. names_next_round='intl '
  15722. while test -n "$names_next_round"; do
  15723. names_this_round="$names_next_round"
  15724. names_next_round=
  15725. for name in $names_this_round; do
  15726. already_handled=
  15727. for n in $names_already_handled; do
  15728. if test "$n" = "$name"; then
  15729. already_handled=yes
  15730. break
  15731. fi
  15732. done
  15733. if test -z "$already_handled"; then
  15734. names_already_handled="$names_already_handled $name"
  15735. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15736. eval value=\"\$HAVE_LIB$uppername\"
  15737. if test -n "$value"; then
  15738. if test "$value" = yes; then
  15739. eval value=\"\$LIB$uppername\"
  15740. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15741. eval value=\"\$LTLIB$uppername\"
  15742. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15743. else
  15744. :
  15745. fi
  15746. else
  15747. found_dir=
  15748. found_la=
  15749. found_so=
  15750. found_a=
  15751. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15752. if test -n "$acl_shlibext"; then
  15753. shrext=".$acl_shlibext" # typically: shrext=.so
  15754. else
  15755. shrext=
  15756. fi
  15757. if test $use_additional = yes; then
  15758. dir="$additional_libdir"
  15759. if test -n "$acl_shlibext"; then
  15760. if test -f "$dir/$libname$shrext"; then
  15761. found_dir="$dir"
  15762. found_so="$dir/$libname$shrext"
  15763. else
  15764. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15765. ver=`(cd "$dir" && \
  15766. for f in "$libname$shrext".*; do echo "$f"; done \
  15767. | sed -e "s,^$libname$shrext\\\\.,," \
  15768. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15769. | sed 1q ) 2>/dev/null`
  15770. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15771. found_dir="$dir"
  15772. found_so="$dir/$libname$shrext.$ver"
  15773. fi
  15774. else
  15775. eval library_names=\"$acl_library_names_spec\"
  15776. for f in $library_names; do
  15777. if test -f "$dir/$f"; then
  15778. found_dir="$dir"
  15779. found_so="$dir/$f"
  15780. break
  15781. fi
  15782. done
  15783. fi
  15784. fi
  15785. fi
  15786. if test "X$found_dir" = "X"; then
  15787. if test -f "$dir/$libname.$acl_libext"; then
  15788. found_dir="$dir"
  15789. found_a="$dir/$libname.$acl_libext"
  15790. fi
  15791. fi
  15792. if test "X$found_dir" != "X"; then
  15793. if test -f "$dir/$libname.la"; then
  15794. found_la="$dir/$libname.la"
  15795. fi
  15796. fi
  15797. fi
  15798. if test "X$found_dir" = "X"; then
  15799. for x in $LDFLAGS $LTLIBINTL; do
  15800. acl_save_prefix="$prefix"
  15801. prefix="$acl_final_prefix"
  15802. acl_save_exec_prefix="$exec_prefix"
  15803. exec_prefix="$acl_final_exec_prefix"
  15804. eval x=\"$x\"
  15805. exec_prefix="$acl_save_exec_prefix"
  15806. prefix="$acl_save_prefix"
  15807. case "$x" in
  15808. -L*)
  15809. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15810. if test -n "$acl_shlibext"; then
  15811. if test -f "$dir/$libname$shrext"; then
  15812. found_dir="$dir"
  15813. found_so="$dir/$libname$shrext"
  15814. else
  15815. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15816. ver=`(cd "$dir" && \
  15817. for f in "$libname$shrext".*; do echo "$f"; done \
  15818. | sed -e "s,^$libname$shrext\\\\.,," \
  15819. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15820. | sed 1q ) 2>/dev/null`
  15821. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15822. found_dir="$dir"
  15823. found_so="$dir/$libname$shrext.$ver"
  15824. fi
  15825. else
  15826. eval library_names=\"$acl_library_names_spec\"
  15827. for f in $library_names; do
  15828. if test -f "$dir/$f"; then
  15829. found_dir="$dir"
  15830. found_so="$dir/$f"
  15831. break
  15832. fi
  15833. done
  15834. fi
  15835. fi
  15836. fi
  15837. if test "X$found_dir" = "X"; then
  15838. if test -f "$dir/$libname.$acl_libext"; then
  15839. found_dir="$dir"
  15840. found_a="$dir/$libname.$acl_libext"
  15841. fi
  15842. fi
  15843. if test "X$found_dir" != "X"; then
  15844. if test -f "$dir/$libname.la"; then
  15845. found_la="$dir/$libname.la"
  15846. fi
  15847. fi
  15848. ;;
  15849. esac
  15850. if test "X$found_dir" != "X"; then
  15851. break
  15852. fi
  15853. done
  15854. fi
  15855. if test "X$found_dir" != "X"; then
  15856. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15857. if test "X$found_so" != "X"; then
  15858. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15859. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15860. else
  15861. haveit=
  15862. for x in $ltrpathdirs; do
  15863. if test "X$x" = "X$found_dir"; then
  15864. haveit=yes
  15865. break
  15866. fi
  15867. done
  15868. if test -z "$haveit"; then
  15869. ltrpathdirs="$ltrpathdirs $found_dir"
  15870. fi
  15871. if test "$acl_hardcode_direct" = yes; then
  15872. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15873. else
  15874. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15875. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15876. haveit=
  15877. for x in $rpathdirs; do
  15878. if test "X$x" = "X$found_dir"; then
  15879. haveit=yes
  15880. break
  15881. fi
  15882. done
  15883. if test -z "$haveit"; then
  15884. rpathdirs="$rpathdirs $found_dir"
  15885. fi
  15886. else
  15887. haveit=
  15888. for x in $LDFLAGS $LIBINTL; do
  15889. acl_save_prefix="$prefix"
  15890. prefix="$acl_final_prefix"
  15891. acl_save_exec_prefix="$exec_prefix"
  15892. exec_prefix="$acl_final_exec_prefix"
  15893. eval x=\"$x\"
  15894. exec_prefix="$acl_save_exec_prefix"
  15895. prefix="$acl_save_prefix"
  15896. if test "X$x" = "X-L$found_dir"; then
  15897. haveit=yes
  15898. break
  15899. fi
  15900. done
  15901. if test -z "$haveit"; then
  15902. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15903. fi
  15904. if test "$acl_hardcode_minus_L" != no; then
  15905. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15906. else
  15907. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15908. fi
  15909. fi
  15910. fi
  15911. fi
  15912. else
  15913. if test "X$found_a" != "X"; then
  15914. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15915. else
  15916. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15917. fi
  15918. fi
  15919. additional_includedir=
  15920. case "$found_dir" in
  15921. */$acl_libdirstem | */$acl_libdirstem/)
  15922. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15923. LIBINTL_PREFIX="$basedir"
  15924. additional_includedir="$basedir/include"
  15925. ;;
  15926. esac
  15927. if test "X$additional_includedir" != "X"; then
  15928. if test "X$additional_includedir" != "X/usr/include"; then
  15929. haveit=
  15930. if test "X$additional_includedir" = "X/usr/local/include"; then
  15931. if test -n "$GCC"; then
  15932. case $host_os in
  15933. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15934. esac
  15935. fi
  15936. fi
  15937. if test -z "$haveit"; then
  15938. for x in $CPPFLAGS $INCINTL; do
  15939. acl_save_prefix="$prefix"
  15940. prefix="$acl_final_prefix"
  15941. acl_save_exec_prefix="$exec_prefix"
  15942. exec_prefix="$acl_final_exec_prefix"
  15943. eval x=\"$x\"
  15944. exec_prefix="$acl_save_exec_prefix"
  15945. prefix="$acl_save_prefix"
  15946. if test "X$x" = "X-I$additional_includedir"; then
  15947. haveit=yes
  15948. break
  15949. fi
  15950. done
  15951. if test -z "$haveit"; then
  15952. if test -d "$additional_includedir"; then
  15953. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15954. fi
  15955. fi
  15956. fi
  15957. fi
  15958. fi
  15959. if test -n "$found_la"; then
  15960. save_libdir="$libdir"
  15961. case "$found_la" in
  15962. */* | *\\*) . "$found_la" ;;
  15963. *) . "./$found_la" ;;
  15964. esac
  15965. libdir="$save_libdir"
  15966. for dep in $dependency_libs; do
  15967. case "$dep" in
  15968. -L*)
  15969. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15970. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15971. haveit=
  15972. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15973. if test -n "$GCC"; then
  15974. case $host_os in
  15975. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15976. esac
  15977. fi
  15978. fi
  15979. if test -z "$haveit"; then
  15980. haveit=
  15981. for x in $LDFLAGS $LIBINTL; do
  15982. acl_save_prefix="$prefix"
  15983. prefix="$acl_final_prefix"
  15984. acl_save_exec_prefix="$exec_prefix"
  15985. exec_prefix="$acl_final_exec_prefix"
  15986. eval x=\"$x\"
  15987. exec_prefix="$acl_save_exec_prefix"
  15988. prefix="$acl_save_prefix"
  15989. if test "X$x" = "X-L$additional_libdir"; then
  15990. haveit=yes
  15991. break
  15992. fi
  15993. done
  15994. if test -z "$haveit"; then
  15995. if test -d "$additional_libdir"; then
  15996. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15997. fi
  15998. fi
  15999. haveit=
  16000. for x in $LDFLAGS $LTLIBINTL; do
  16001. acl_save_prefix="$prefix"
  16002. prefix="$acl_final_prefix"
  16003. acl_save_exec_prefix="$exec_prefix"
  16004. exec_prefix="$acl_final_exec_prefix"
  16005. eval x=\"$x\"
  16006. exec_prefix="$acl_save_exec_prefix"
  16007. prefix="$acl_save_prefix"
  16008. if test "X$x" = "X-L$additional_libdir"; then
  16009. haveit=yes
  16010. break
  16011. fi
  16012. done
  16013. if test -z "$haveit"; then
  16014. if test -d "$additional_libdir"; then
  16015. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  16016. fi
  16017. fi
  16018. fi
  16019. fi
  16020. ;;
  16021. -R*)
  16022. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  16023. if test "$enable_rpath" != no; then
  16024. haveit=
  16025. for x in $rpathdirs; do
  16026. if test "X$x" = "X$dir"; then
  16027. haveit=yes
  16028. break
  16029. fi
  16030. done
  16031. if test -z "$haveit"; then
  16032. rpathdirs="$rpathdirs $dir"
  16033. fi
  16034. haveit=
  16035. for x in $ltrpathdirs; do
  16036. if test "X$x" = "X$dir"; then
  16037. haveit=yes
  16038. break
  16039. fi
  16040. done
  16041. if test -z "$haveit"; then
  16042. ltrpathdirs="$ltrpathdirs $dir"
  16043. fi
  16044. fi
  16045. ;;
  16046. -l*)
  16047. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16048. ;;
  16049. *.la)
  16050. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16051. ;;
  16052. *)
  16053. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  16054. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  16055. ;;
  16056. esac
  16057. done
  16058. fi
  16059. else
  16060. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16061. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  16062. fi
  16063. fi
  16064. fi
  16065. done
  16066. done
  16067. if test "X$rpathdirs" != "X"; then
  16068. if test -n "$acl_hardcode_libdir_separator"; then
  16069. alldirs=
  16070. for found_dir in $rpathdirs; do
  16071. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  16072. done
  16073. acl_save_libdir="$libdir"
  16074. libdir="$alldirs"
  16075. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16076. libdir="$acl_save_libdir"
  16077. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16078. else
  16079. for found_dir in $rpathdirs; do
  16080. acl_save_libdir="$libdir"
  16081. libdir="$found_dir"
  16082. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16083. libdir="$acl_save_libdir"
  16084. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16085. done
  16086. fi
  16087. fi
  16088. if test "X$ltrpathdirs" != "X"; then
  16089. for found_dir in $ltrpathdirs; do
  16090. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  16091. done
  16092. fi
  16093. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  16094. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  16095. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  16096. echo $ECHO_N "(cached) $ECHO_C" >&6
  16097. else
  16098. gt_save_CPPFLAGS="$CPPFLAGS"
  16099. CPPFLAGS="$CPPFLAGS $INCINTL"
  16100. gt_save_LIBS="$LIBS"
  16101. LIBS="$LIBS $LIBINTL"
  16102. cat >conftest.$ac_ext <<_ACEOF
  16103. /* confdefs.h. */
  16104. _ACEOF
  16105. cat confdefs.h >>conftest.$ac_ext
  16106. cat >>conftest.$ac_ext <<_ACEOF
  16107. /* end confdefs.h. */
  16108. #include <libintl.h>
  16109. $gt_revision_test_code
  16110. extern int _nl_msg_cat_cntr;
  16111. extern
  16112. #ifdef __cplusplus
  16113. "C"
  16114. #endif
  16115. const char *_nl_expand_alias (const char *);
  16116. int
  16117. main ()
  16118. {
  16119. bindtextdomain ("", "");
  16120. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16121. ;
  16122. return 0;
  16123. }
  16124. _ACEOF
  16125. rm -f conftest.$ac_objext conftest$ac_exeext
  16126. if { (ac_try="$ac_link"
  16127. case "(($ac_try" in
  16128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16129. *) ac_try_echo=$ac_try;;
  16130. esac
  16131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16132. (eval "$ac_link") 2>conftest.er1
  16133. ac_status=$?
  16134. grep -v '^ *+' conftest.er1 >conftest.err
  16135. rm -f conftest.er1
  16136. cat conftest.err >&5
  16137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16138. (exit $ac_status); } && {
  16139. test -z "$ac_cxx_werror_flag" ||
  16140. test ! -s conftest.err
  16141. } && test -s conftest$ac_exeext &&
  16142. $as_test_x conftest$ac_exeext; then
  16143. eval "$gt_func_gnugettext_libintl=yes"
  16144. else
  16145. echo "$as_me: failed program was:" >&5
  16146. sed 's/^/| /' conftest.$ac_ext >&5
  16147. eval "$gt_func_gnugettext_libintl=no"
  16148. fi
  16149. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16150. conftest$ac_exeext conftest.$ac_ext
  16151. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  16152. LIBS="$LIBS $LIBICONV"
  16153. cat >conftest.$ac_ext <<_ACEOF
  16154. /* confdefs.h. */
  16155. _ACEOF
  16156. cat confdefs.h >>conftest.$ac_ext
  16157. cat >>conftest.$ac_ext <<_ACEOF
  16158. /* end confdefs.h. */
  16159. #include <libintl.h>
  16160. $gt_revision_test_code
  16161. extern int _nl_msg_cat_cntr;
  16162. extern
  16163. #ifdef __cplusplus
  16164. "C"
  16165. #endif
  16166. const char *_nl_expand_alias (const char *);
  16167. int
  16168. main ()
  16169. {
  16170. bindtextdomain ("", "");
  16171. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16172. ;
  16173. return 0;
  16174. }
  16175. _ACEOF
  16176. rm -f conftest.$ac_objext conftest$ac_exeext
  16177. if { (ac_try="$ac_link"
  16178. case "(($ac_try" in
  16179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16180. *) ac_try_echo=$ac_try;;
  16181. esac
  16182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16183. (eval "$ac_link") 2>conftest.er1
  16184. ac_status=$?
  16185. grep -v '^ *+' conftest.er1 >conftest.err
  16186. rm -f conftest.er1
  16187. cat conftest.err >&5
  16188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16189. (exit $ac_status); } && {
  16190. test -z "$ac_cxx_werror_flag" ||
  16191. test ! -s conftest.err
  16192. } && test -s conftest$ac_exeext &&
  16193. $as_test_x conftest$ac_exeext; then
  16194. LIBINTL="$LIBINTL $LIBICONV"
  16195. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  16196. eval "$gt_func_gnugettext_libintl=yes"
  16197. else
  16198. echo "$as_me: failed program was:" >&5
  16199. sed 's/^/| /' conftest.$ac_ext >&5
  16200. fi
  16201. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16202. conftest$ac_exeext conftest.$ac_ext
  16203. fi
  16204. CPPFLAGS="$gt_save_CPPFLAGS"
  16205. LIBS="$gt_save_LIBS"
  16206. fi
  16207. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  16208. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16209. echo "${ECHO_T}$ac_res" >&6; }
  16210. fi
  16211. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  16212. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  16213. && test "$PACKAGE" != gettext-runtime \
  16214. && test "$PACKAGE" != gettext-tools; }; then
  16215. gt_use_preinstalled_gnugettext=yes
  16216. else
  16217. LIBINTL=
  16218. LTLIBINTL=
  16219. INCINTL=
  16220. fi
  16221. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  16222. nls_cv_use_gnu_gettext=yes
  16223. fi
  16224. fi
  16225. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  16226. BUILD_INCLUDED_LIBINTL=yes
  16227. USE_INCLUDED_LIBINTL=yes
  16228. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  16229. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  16230. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  16231. fi
  16232. CATOBJEXT=
  16233. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16234. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16235. CATOBJEXT=.gmo
  16236. fi
  16237. if test -n "$INTL_MACOSX_LIBS"; then
  16238. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16239. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16240. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  16241. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  16242. fi
  16243. fi
  16244. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16245. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16246. cat >>confdefs.h <<\_ACEOF
  16247. #define ENABLE_NLS 1
  16248. _ACEOF
  16249. else
  16250. USE_NLS=no
  16251. fi
  16252. fi
  16253. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  16254. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  16255. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  16256. echo "${ECHO_T}$USE_NLS" >&6; }
  16257. if test "$USE_NLS" = "yes"; then
  16258. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  16259. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  16260. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16261. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16262. gt_source="external libintl"
  16263. else
  16264. gt_source="libc"
  16265. fi
  16266. else
  16267. gt_source="included intl directory"
  16268. fi
  16269. { echo "$as_me:$LINENO: result: $gt_source" >&5
  16270. echo "${ECHO_T}$gt_source" >&6; }
  16271. fi
  16272. if test "$USE_NLS" = "yes"; then
  16273. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16274. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16275. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  16276. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  16277. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  16278. echo "${ECHO_T}$LIBINTL" >&6; }
  16279. for element in $INCINTL; do
  16280. haveit=
  16281. for x in $CPPFLAGS; do
  16282. acl_save_prefix="$prefix"
  16283. prefix="$acl_final_prefix"
  16284. acl_save_exec_prefix="$exec_prefix"
  16285. exec_prefix="$acl_final_exec_prefix"
  16286. eval x=\"$x\"
  16287. exec_prefix="$acl_save_exec_prefix"
  16288. prefix="$acl_save_prefix"
  16289. if test "X$x" = "X$element"; then
  16290. haveit=yes
  16291. break
  16292. fi
  16293. done
  16294. if test -z "$haveit"; then
  16295. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16296. fi
  16297. done
  16298. fi
  16299. cat >>confdefs.h <<\_ACEOF
  16300. #define HAVE_GETTEXT 1
  16301. _ACEOF
  16302. cat >>confdefs.h <<\_ACEOF
  16303. #define HAVE_DCGETTEXT 1
  16304. _ACEOF
  16305. fi
  16306. POSUB=po
  16307. fi
  16308. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  16309. BUILD_INCLUDED_LIBINTL=yes
  16310. fi
  16311. nls_cv_header_intl=
  16312. nls_cv_header_libgt=
  16313. DATADIRNAME=share
  16314. INSTOBJEXT=.mo
  16315. GENCAT=gencat
  16316. INTLOBJS=
  16317. if test "$USE_INCLUDED_LIBINTL" = yes; then
  16318. INTLOBJS="\$(GETTOBJS)"
  16319. fi
  16320. INTL_LIBTOOL_SUFFIX_PREFIX=
  16321. INTLLIBS="$LIBINTL"
  16322. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  16323. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  16324. if test "${ac_cv_lib_error_at_line+set}" = set; then
  16325. echo $ECHO_N "(cached) $ECHO_C" >&6
  16326. else
  16327. cat >conftest.$ac_ext <<_ACEOF
  16328. /* confdefs.h. */
  16329. _ACEOF
  16330. cat confdefs.h >>conftest.$ac_ext
  16331. cat >>conftest.$ac_ext <<_ACEOF
  16332. /* end confdefs.h. */
  16333. #include <error.h>
  16334. int
  16335. main ()
  16336. {
  16337. error_at_line (0, 0, "", 0, "an error occurred");
  16338. ;
  16339. return 0;
  16340. }
  16341. _ACEOF
  16342. rm -f conftest.$ac_objext conftest$ac_exeext
  16343. if { (ac_try="$ac_link"
  16344. case "(($ac_try" in
  16345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16346. *) ac_try_echo=$ac_try;;
  16347. esac
  16348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16349. (eval "$ac_link") 2>conftest.er1
  16350. ac_status=$?
  16351. grep -v '^ *+' conftest.er1 >conftest.err
  16352. rm -f conftest.er1
  16353. cat conftest.err >&5
  16354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16355. (exit $ac_status); } && {
  16356. test -z "$ac_cxx_werror_flag" ||
  16357. test ! -s conftest.err
  16358. } && test -s conftest$ac_exeext &&
  16359. $as_test_x conftest$ac_exeext; then
  16360. ac_cv_lib_error_at_line=yes
  16361. else
  16362. echo "$as_me: failed program was:" >&5
  16363. sed 's/^/| /' conftest.$ac_ext >&5
  16364. ac_cv_lib_error_at_line=no
  16365. fi
  16366. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16367. conftest$ac_exeext conftest.$ac_ext
  16368. fi
  16369. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16370. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16371. if test $ac_cv_lib_error_at_line = no; then
  16372. case " $LIBOBJS " in
  16373. *" error.$ac_objext "* ) ;;
  16374. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16375. ;;
  16376. esac
  16377. fi
  16378. if test $ac_cv_c_compiler_gnu = yes; then
  16379. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16380. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16381. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16382. echo $ECHO_N "(cached) $ECHO_C" >&6
  16383. else
  16384. ac_pattern="Autoconf.*'x'"
  16385. cat >conftest.$ac_ext <<_ACEOF
  16386. /* confdefs.h. */
  16387. _ACEOF
  16388. cat confdefs.h >>conftest.$ac_ext
  16389. cat >>conftest.$ac_ext <<_ACEOF
  16390. /* end confdefs.h. */
  16391. #include <sgtty.h>
  16392. Autoconf TIOCGETP
  16393. _ACEOF
  16394. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16395. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16396. ac_cv_prog_gcc_traditional=yes
  16397. else
  16398. ac_cv_prog_gcc_traditional=no
  16399. fi
  16400. rm -f conftest*
  16401. if test $ac_cv_prog_gcc_traditional = no; then
  16402. cat >conftest.$ac_ext <<_ACEOF
  16403. /* confdefs.h. */
  16404. _ACEOF
  16405. cat confdefs.h >>conftest.$ac_ext
  16406. cat >>conftest.$ac_ext <<_ACEOF
  16407. /* end confdefs.h. */
  16408. #include <termio.h>
  16409. Autoconf TCGETA
  16410. _ACEOF
  16411. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16412. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16413. ac_cv_prog_gcc_traditional=yes
  16414. fi
  16415. rm -f conftest*
  16416. fi
  16417. fi
  16418. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16419. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16420. if test $ac_cv_prog_gcc_traditional = yes; then
  16421. CC="$CC -traditional"
  16422. fi
  16423. fi
  16424. case "$target" in
  16425. *mingw*)
  16426. ;;
  16427. *)
  16428. for ac_header in stdlib.h
  16429. do
  16430. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16431. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16432. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16433. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16434. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16435. echo $ECHO_N "(cached) $ECHO_C" >&6
  16436. fi
  16437. ac_res=`eval echo '${'$as_ac_Header'}'`
  16438. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16439. echo "${ECHO_T}$ac_res" >&6; }
  16440. else
  16441. # Is the header compilable?
  16442. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16443. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16444. cat >conftest.$ac_ext <<_ACEOF
  16445. /* confdefs.h. */
  16446. _ACEOF
  16447. cat confdefs.h >>conftest.$ac_ext
  16448. cat >>conftest.$ac_ext <<_ACEOF
  16449. /* end confdefs.h. */
  16450. $ac_includes_default
  16451. #include <$ac_header>
  16452. _ACEOF
  16453. rm -f conftest.$ac_objext
  16454. if { (ac_try="$ac_compile"
  16455. case "(($ac_try" in
  16456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16457. *) ac_try_echo=$ac_try;;
  16458. esac
  16459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16460. (eval "$ac_compile") 2>conftest.er1
  16461. ac_status=$?
  16462. grep -v '^ *+' conftest.er1 >conftest.err
  16463. rm -f conftest.er1
  16464. cat conftest.err >&5
  16465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16466. (exit $ac_status); } && {
  16467. test -z "$ac_cxx_werror_flag" ||
  16468. test ! -s conftest.err
  16469. } && test -s conftest.$ac_objext; then
  16470. ac_header_compiler=yes
  16471. else
  16472. echo "$as_me: failed program was:" >&5
  16473. sed 's/^/| /' conftest.$ac_ext >&5
  16474. ac_header_compiler=no
  16475. fi
  16476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16477. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16478. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16479. # Is the header present?
  16480. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16481. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16482. cat >conftest.$ac_ext <<_ACEOF
  16483. /* confdefs.h. */
  16484. _ACEOF
  16485. cat confdefs.h >>conftest.$ac_ext
  16486. cat >>conftest.$ac_ext <<_ACEOF
  16487. /* end confdefs.h. */
  16488. #include <$ac_header>
  16489. _ACEOF
  16490. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16491. case "(($ac_try" in
  16492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16493. *) ac_try_echo=$ac_try;;
  16494. esac
  16495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16496. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16497. ac_status=$?
  16498. grep -v '^ *+' conftest.er1 >conftest.err
  16499. rm -f conftest.er1
  16500. cat conftest.err >&5
  16501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16502. (exit $ac_status); } >/dev/null && {
  16503. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16504. test ! -s conftest.err
  16505. }; then
  16506. ac_header_preproc=yes
  16507. else
  16508. echo "$as_me: failed program was:" >&5
  16509. sed 's/^/| /' conftest.$ac_ext >&5
  16510. ac_header_preproc=no
  16511. fi
  16512. rm -f conftest.err conftest.$ac_ext
  16513. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16514. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16515. # So? What about this header?
  16516. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16517. yes:no: )
  16518. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16519. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16520. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16521. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16522. ac_header_preproc=yes
  16523. ;;
  16524. no:yes:* )
  16525. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16526. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16527. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16528. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16529. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16530. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16531. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16532. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16533. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16534. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16535. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16536. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16537. ( cat <<\_ASBOX
  16538. ## ----------------------------------------------- ##
  16539. ## Report this to t-tujikawa@users.sourceforge.net ##
  16540. ## ----------------------------------------------- ##
  16541. _ASBOX
  16542. ) | sed "s/^/$as_me: WARNING: /" >&2
  16543. ;;
  16544. esac
  16545. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16546. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16547. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16548. echo $ECHO_N "(cached) $ECHO_C" >&6
  16549. else
  16550. eval "$as_ac_Header=\$ac_header_preproc"
  16551. fi
  16552. ac_res=`eval echo '${'$as_ac_Header'}'`
  16553. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16554. echo "${ECHO_T}$ac_res" >&6; }
  16555. fi
  16556. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16557. cat >>confdefs.h <<_ACEOF
  16558. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16559. _ACEOF
  16560. fi
  16561. done
  16562. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16563. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16564. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16565. echo $ECHO_N "(cached) $ECHO_C" >&6
  16566. else
  16567. if test "$cross_compiling" = yes; then
  16568. ac_cv_func_malloc_0_nonnull=no
  16569. else
  16570. cat >conftest.$ac_ext <<_ACEOF
  16571. /* confdefs.h. */
  16572. _ACEOF
  16573. cat confdefs.h >>conftest.$ac_ext
  16574. cat >>conftest.$ac_ext <<_ACEOF
  16575. /* end confdefs.h. */
  16576. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16577. # include <stdlib.h>
  16578. #else
  16579. char *malloc ();
  16580. #endif
  16581. int
  16582. main ()
  16583. {
  16584. return ! malloc (0);
  16585. ;
  16586. return 0;
  16587. }
  16588. _ACEOF
  16589. rm -f conftest$ac_exeext
  16590. if { (ac_try="$ac_link"
  16591. case "(($ac_try" in
  16592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16593. *) ac_try_echo=$ac_try;;
  16594. esac
  16595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16596. (eval "$ac_link") 2>&5
  16597. ac_status=$?
  16598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16599. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16600. { (case "(($ac_try" in
  16601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16602. *) ac_try_echo=$ac_try;;
  16603. esac
  16604. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16605. (eval "$ac_try") 2>&5
  16606. ac_status=$?
  16607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16608. (exit $ac_status); }; }; then
  16609. ac_cv_func_malloc_0_nonnull=yes
  16610. else
  16611. echo "$as_me: program exited with status $ac_status" >&5
  16612. echo "$as_me: failed program was:" >&5
  16613. sed 's/^/| /' conftest.$ac_ext >&5
  16614. ( exit $ac_status )
  16615. ac_cv_func_malloc_0_nonnull=no
  16616. fi
  16617. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16618. fi
  16619. fi
  16620. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16621. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16622. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16623. cat >>confdefs.h <<\_ACEOF
  16624. #define HAVE_MALLOC 1
  16625. _ACEOF
  16626. else
  16627. cat >>confdefs.h <<\_ACEOF
  16628. #define HAVE_MALLOC 0
  16629. _ACEOF
  16630. case " $LIBOBJS " in
  16631. *" malloc.$ac_objext "* ) ;;
  16632. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16633. ;;
  16634. esac
  16635. cat >>confdefs.h <<\_ACEOF
  16636. #define malloc rpl_malloc
  16637. _ACEOF
  16638. fi
  16639. for ac_header in stdlib.h
  16640. do
  16641. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16642. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16643. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16644. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16645. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16646. echo $ECHO_N "(cached) $ECHO_C" >&6
  16647. fi
  16648. ac_res=`eval echo '${'$as_ac_Header'}'`
  16649. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16650. echo "${ECHO_T}$ac_res" >&6; }
  16651. else
  16652. # Is the header compilable?
  16653. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16654. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16655. cat >conftest.$ac_ext <<_ACEOF
  16656. /* confdefs.h. */
  16657. _ACEOF
  16658. cat confdefs.h >>conftest.$ac_ext
  16659. cat >>conftest.$ac_ext <<_ACEOF
  16660. /* end confdefs.h. */
  16661. $ac_includes_default
  16662. #include <$ac_header>
  16663. _ACEOF
  16664. rm -f conftest.$ac_objext
  16665. if { (ac_try="$ac_compile"
  16666. case "(($ac_try" in
  16667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16668. *) ac_try_echo=$ac_try;;
  16669. esac
  16670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16671. (eval "$ac_compile") 2>conftest.er1
  16672. ac_status=$?
  16673. grep -v '^ *+' conftest.er1 >conftest.err
  16674. rm -f conftest.er1
  16675. cat conftest.err >&5
  16676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16677. (exit $ac_status); } && {
  16678. test -z "$ac_cxx_werror_flag" ||
  16679. test ! -s conftest.err
  16680. } && test -s conftest.$ac_objext; then
  16681. ac_header_compiler=yes
  16682. else
  16683. echo "$as_me: failed program was:" >&5
  16684. sed 's/^/| /' conftest.$ac_ext >&5
  16685. ac_header_compiler=no
  16686. fi
  16687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16688. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16689. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16690. # Is the header present?
  16691. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16692. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16693. cat >conftest.$ac_ext <<_ACEOF
  16694. /* confdefs.h. */
  16695. _ACEOF
  16696. cat confdefs.h >>conftest.$ac_ext
  16697. cat >>conftest.$ac_ext <<_ACEOF
  16698. /* end confdefs.h. */
  16699. #include <$ac_header>
  16700. _ACEOF
  16701. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16702. case "(($ac_try" in
  16703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16704. *) ac_try_echo=$ac_try;;
  16705. esac
  16706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16707. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16708. ac_status=$?
  16709. grep -v '^ *+' conftest.er1 >conftest.err
  16710. rm -f conftest.er1
  16711. cat conftest.err >&5
  16712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16713. (exit $ac_status); } >/dev/null && {
  16714. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16715. test ! -s conftest.err
  16716. }; then
  16717. ac_header_preproc=yes
  16718. else
  16719. echo "$as_me: failed program was:" >&5
  16720. sed 's/^/| /' conftest.$ac_ext >&5
  16721. ac_header_preproc=no
  16722. fi
  16723. rm -f conftest.err conftest.$ac_ext
  16724. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16725. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16726. # So? What about this header?
  16727. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16728. yes:no: )
  16729. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16730. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16731. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16732. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16733. ac_header_preproc=yes
  16734. ;;
  16735. no:yes:* )
  16736. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16737. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16738. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16739. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16740. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16741. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16742. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16743. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16744. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16745. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16746. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16747. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16748. ( cat <<\_ASBOX
  16749. ## ----------------------------------------------- ##
  16750. ## Report this to t-tujikawa@users.sourceforge.net ##
  16751. ## ----------------------------------------------- ##
  16752. _ASBOX
  16753. ) | sed "s/^/$as_me: WARNING: /" >&2
  16754. ;;
  16755. esac
  16756. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16757. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16758. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16759. echo $ECHO_N "(cached) $ECHO_C" >&6
  16760. else
  16761. eval "$as_ac_Header=\$ac_header_preproc"
  16762. fi
  16763. ac_res=`eval echo '${'$as_ac_Header'}'`
  16764. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16765. echo "${ECHO_T}$ac_res" >&6; }
  16766. fi
  16767. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16768. cat >>confdefs.h <<_ACEOF
  16769. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16770. _ACEOF
  16771. fi
  16772. done
  16773. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16774. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16775. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16776. echo $ECHO_N "(cached) $ECHO_C" >&6
  16777. else
  16778. if test "$cross_compiling" = yes; then
  16779. ac_cv_func_realloc_0_nonnull=no
  16780. else
  16781. cat >conftest.$ac_ext <<_ACEOF
  16782. /* confdefs.h. */
  16783. _ACEOF
  16784. cat confdefs.h >>conftest.$ac_ext
  16785. cat >>conftest.$ac_ext <<_ACEOF
  16786. /* end confdefs.h. */
  16787. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16788. # include <stdlib.h>
  16789. #else
  16790. char *realloc ();
  16791. #endif
  16792. int
  16793. main ()
  16794. {
  16795. return ! realloc (0, 0);
  16796. ;
  16797. return 0;
  16798. }
  16799. _ACEOF
  16800. rm -f conftest$ac_exeext
  16801. if { (ac_try="$ac_link"
  16802. case "(($ac_try" in
  16803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16804. *) ac_try_echo=$ac_try;;
  16805. esac
  16806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16807. (eval "$ac_link") 2>&5
  16808. ac_status=$?
  16809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16810. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16811. { (case "(($ac_try" in
  16812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16813. *) ac_try_echo=$ac_try;;
  16814. esac
  16815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16816. (eval "$ac_try") 2>&5
  16817. ac_status=$?
  16818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16819. (exit $ac_status); }; }; then
  16820. ac_cv_func_realloc_0_nonnull=yes
  16821. else
  16822. echo "$as_me: program exited with status $ac_status" >&5
  16823. echo "$as_me: failed program was:" >&5
  16824. sed 's/^/| /' conftest.$ac_ext >&5
  16825. ( exit $ac_status )
  16826. ac_cv_func_realloc_0_nonnull=no
  16827. fi
  16828. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16829. fi
  16830. fi
  16831. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16832. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16833. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16834. cat >>confdefs.h <<\_ACEOF
  16835. #define HAVE_REALLOC 1
  16836. _ACEOF
  16837. else
  16838. cat >>confdefs.h <<\_ACEOF
  16839. #define HAVE_REALLOC 0
  16840. _ACEOF
  16841. case " $LIBOBJS " in
  16842. *" realloc.$ac_objext "* ) ;;
  16843. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16844. ;;
  16845. esac
  16846. cat >>confdefs.h <<\_ACEOF
  16847. #define realloc rpl_realloc
  16848. _ACEOF
  16849. fi
  16850. ;;
  16851. esac
  16852. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16853. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16854. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16855. echo $ECHO_N "(cached) $ECHO_C" >&6
  16856. else
  16857. if test "$cross_compiling" = yes; then
  16858. ac_cv_func_memcmp_working=no
  16859. else
  16860. cat >conftest.$ac_ext <<_ACEOF
  16861. /* confdefs.h. */
  16862. _ACEOF
  16863. cat confdefs.h >>conftest.$ac_ext
  16864. cat >>conftest.$ac_ext <<_ACEOF
  16865. /* end confdefs.h. */
  16866. $ac_includes_default
  16867. int
  16868. main ()
  16869. {
  16870. /* Some versions of memcmp are not 8-bit clean. */
  16871. char c0 = '\100', c1 = '\200', c2 = '\201';
  16872. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16873. return 1;
  16874. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16875. or more and with at least one buffer not starting on a 4-byte boundary.
  16876. William Lewis provided this test program. */
  16877. {
  16878. char foo[21];
  16879. char bar[21];
  16880. int i;
  16881. for (i = 0; i < 4; i++)
  16882. {
  16883. char *a = foo + i;
  16884. char *b = bar + i;
  16885. strcpy (a, "--------01111111");
  16886. strcpy (b, "--------10000000");
  16887. if (memcmp (a, b, 16) >= 0)
  16888. return 1;
  16889. }
  16890. return 0;
  16891. }
  16892. ;
  16893. return 0;
  16894. }
  16895. _ACEOF
  16896. rm -f conftest$ac_exeext
  16897. if { (ac_try="$ac_link"
  16898. case "(($ac_try" in
  16899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16900. *) ac_try_echo=$ac_try;;
  16901. esac
  16902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16903. (eval "$ac_link") 2>&5
  16904. ac_status=$?
  16905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16906. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16907. { (case "(($ac_try" in
  16908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16909. *) ac_try_echo=$ac_try;;
  16910. esac
  16911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16912. (eval "$ac_try") 2>&5
  16913. ac_status=$?
  16914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16915. (exit $ac_status); }; }; then
  16916. ac_cv_func_memcmp_working=yes
  16917. else
  16918. echo "$as_me: program exited with status $ac_status" >&5
  16919. echo "$as_me: failed program was:" >&5
  16920. sed 's/^/| /' conftest.$ac_ext >&5
  16921. ( exit $ac_status )
  16922. ac_cv_func_memcmp_working=no
  16923. fi
  16924. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16925. fi
  16926. fi
  16927. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16928. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16929. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16930. *" memcmp.$ac_objext "* ) ;;
  16931. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16932. ;;
  16933. esac
  16934. for ac_header in $ac_header_list
  16935. do
  16936. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16937. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16938. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16939. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16940. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16941. echo $ECHO_N "(cached) $ECHO_C" >&6
  16942. fi
  16943. ac_res=`eval echo '${'$as_ac_Header'}'`
  16944. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16945. echo "${ECHO_T}$ac_res" >&6; }
  16946. else
  16947. # Is the header compilable?
  16948. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16949. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16950. cat >conftest.$ac_ext <<_ACEOF
  16951. /* confdefs.h. */
  16952. _ACEOF
  16953. cat confdefs.h >>conftest.$ac_ext
  16954. cat >>conftest.$ac_ext <<_ACEOF
  16955. /* end confdefs.h. */
  16956. $ac_includes_default
  16957. #include <$ac_header>
  16958. _ACEOF
  16959. rm -f conftest.$ac_objext
  16960. if { (ac_try="$ac_compile"
  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_compile") 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); } && {
  16973. test -z "$ac_cxx_werror_flag" ||
  16974. test ! -s conftest.err
  16975. } && test -s conftest.$ac_objext; then
  16976. ac_header_compiler=yes
  16977. else
  16978. echo "$as_me: failed program was:" >&5
  16979. sed 's/^/| /' conftest.$ac_ext >&5
  16980. ac_header_compiler=no
  16981. fi
  16982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16983. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16984. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16985. # Is the header present?
  16986. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16987. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16988. cat >conftest.$ac_ext <<_ACEOF
  16989. /* confdefs.h. */
  16990. _ACEOF
  16991. cat confdefs.h >>conftest.$ac_ext
  16992. cat >>conftest.$ac_ext <<_ACEOF
  16993. /* end confdefs.h. */
  16994. #include <$ac_header>
  16995. _ACEOF
  16996. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16997. case "(($ac_try" in
  16998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16999. *) ac_try_echo=$ac_try;;
  17000. esac
  17001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17002. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17003. ac_status=$?
  17004. grep -v '^ *+' conftest.er1 >conftest.err
  17005. rm -f conftest.er1
  17006. cat conftest.err >&5
  17007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17008. (exit $ac_status); } >/dev/null && {
  17009. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17010. test ! -s conftest.err
  17011. }; then
  17012. ac_header_preproc=yes
  17013. else
  17014. echo "$as_me: failed program was:" >&5
  17015. sed 's/^/| /' conftest.$ac_ext >&5
  17016. ac_header_preproc=no
  17017. fi
  17018. rm -f conftest.err conftest.$ac_ext
  17019. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17020. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17021. # So? What about this header?
  17022. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17023. yes:no: )
  17024. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17025. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17026. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17027. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17028. ac_header_preproc=yes
  17029. ;;
  17030. no:yes:* )
  17031. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17032. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17033. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17034. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17035. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17036. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17037. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17038. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17039. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17040. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17041. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17042. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17043. ( cat <<\_ASBOX
  17044. ## ----------------------------------------------- ##
  17045. ## Report this to t-tujikawa@users.sourceforge.net ##
  17046. ## ----------------------------------------------- ##
  17047. _ASBOX
  17048. ) | sed "s/^/$as_me: WARNING: /" >&2
  17049. ;;
  17050. esac
  17051. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17052. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17053. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17054. echo $ECHO_N "(cached) $ECHO_C" >&6
  17055. else
  17056. eval "$as_ac_Header=\$ac_header_preproc"
  17057. fi
  17058. ac_res=`eval echo '${'$as_ac_Header'}'`
  17059. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17060. echo "${ECHO_T}$ac_res" >&6; }
  17061. fi
  17062. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17063. cat >>confdefs.h <<_ACEOF
  17064. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17065. _ACEOF
  17066. fi
  17067. done
  17068. for ac_func in $ac_func_list
  17069. do
  17070. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17071. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17072. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17073. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17074. echo $ECHO_N "(cached) $ECHO_C" >&6
  17075. else
  17076. cat >conftest.$ac_ext <<_ACEOF
  17077. /* confdefs.h. */
  17078. _ACEOF
  17079. cat confdefs.h >>conftest.$ac_ext
  17080. cat >>conftest.$ac_ext <<_ACEOF
  17081. /* end confdefs.h. */
  17082. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17083. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17084. #define $ac_func innocuous_$ac_func
  17085. /* System header to define __stub macros and hopefully few prototypes,
  17086. which can conflict with char $ac_func (); below.
  17087. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17088. <limits.h> exists even on freestanding compilers. */
  17089. #ifdef __STDC__
  17090. # include <limits.h>
  17091. #else
  17092. # include <assert.h>
  17093. #endif
  17094. #undef $ac_func
  17095. /* Override any GCC internal prototype to avoid an error.
  17096. Use char because int might match the return type of a GCC
  17097. builtin and then its argument prototype would still apply. */
  17098. #ifdef __cplusplus
  17099. extern "C"
  17100. #endif
  17101. char $ac_func ();
  17102. /* The GNU C library defines this for functions which it implements
  17103. to always fail with ENOSYS. Some functions are actually named
  17104. something starting with __ and the normal name is an alias. */
  17105. #if defined __stub_$ac_func || defined __stub___$ac_func
  17106. choke me
  17107. #endif
  17108. int
  17109. main ()
  17110. {
  17111. return $ac_func ();
  17112. ;
  17113. return 0;
  17114. }
  17115. _ACEOF
  17116. rm -f conftest.$ac_objext conftest$ac_exeext
  17117. if { (ac_try="$ac_link"
  17118. case "(($ac_try" in
  17119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17120. *) ac_try_echo=$ac_try;;
  17121. esac
  17122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17123. (eval "$ac_link") 2>conftest.er1
  17124. ac_status=$?
  17125. grep -v '^ *+' conftest.er1 >conftest.err
  17126. rm -f conftest.er1
  17127. cat conftest.err >&5
  17128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17129. (exit $ac_status); } && {
  17130. test -z "$ac_cxx_werror_flag" ||
  17131. test ! -s conftest.err
  17132. } && test -s conftest$ac_exeext &&
  17133. $as_test_x conftest$ac_exeext; then
  17134. eval "$as_ac_var=yes"
  17135. else
  17136. echo "$as_me: failed program was:" >&5
  17137. sed 's/^/| /' conftest.$ac_ext >&5
  17138. eval "$as_ac_var=no"
  17139. fi
  17140. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17141. conftest$ac_exeext conftest.$ac_ext
  17142. fi
  17143. ac_res=`eval echo '${'$as_ac_var'}'`
  17144. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17145. echo "${ECHO_T}$ac_res" >&6; }
  17146. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17147. cat >>confdefs.h <<_ACEOF
  17148. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17149. _ACEOF
  17150. fi
  17151. done
  17152. { echo "$as_me:$LINENO: checking for working mktime" >&5
  17153. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  17154. if test "${ac_cv_func_working_mktime+set}" = set; then
  17155. echo $ECHO_N "(cached) $ECHO_C" >&6
  17156. else
  17157. if test "$cross_compiling" = yes; then
  17158. ac_cv_func_working_mktime=no
  17159. else
  17160. cat >conftest.$ac_ext <<_ACEOF
  17161. /* confdefs.h. */
  17162. _ACEOF
  17163. cat confdefs.h >>conftest.$ac_ext
  17164. cat >>conftest.$ac_ext <<_ACEOF
  17165. /* end confdefs.h. */
  17166. /* Test program from Paul Eggert and Tony Leneis. */
  17167. #ifdef TIME_WITH_SYS_TIME
  17168. # include <sys/time.h>
  17169. # include <time.h>
  17170. #else
  17171. # ifdef HAVE_SYS_TIME_H
  17172. # include <sys/time.h>
  17173. # else
  17174. # include <time.h>
  17175. # endif
  17176. #endif
  17177. #include <limits.h>
  17178. #include <stdlib.h>
  17179. #ifdef HAVE_UNISTD_H
  17180. # include <unistd.h>
  17181. #endif
  17182. #ifndef HAVE_ALARM
  17183. # define alarm(X) /* empty */
  17184. #endif
  17185. /* Work around redefinition to rpl_putenv by other config tests. */
  17186. #undef putenv
  17187. static time_t time_t_max;
  17188. static time_t time_t_min;
  17189. /* Values we'll use to set the TZ environment variable. */
  17190. static char *tz_strings[] = {
  17191. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17192. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17193. };
  17194. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17195. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17196. Based on a problem report from Andreas Jaeger. */
  17197. static int
  17198. spring_forward_gap ()
  17199. {
  17200. /* glibc (up to about 1998-10-07) failed this test. */
  17201. struct tm tm;
  17202. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17203. instead of "TZ=America/Vancouver" in order to detect the bug even
  17204. on systems that don't support the Olson extension, or don't have the
  17205. full zoneinfo tables installed. */
  17206. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17207. tm.tm_year = 98;
  17208. tm.tm_mon = 3;
  17209. tm.tm_mday = 5;
  17210. tm.tm_hour = 2;
  17211. tm.tm_min = 0;
  17212. tm.tm_sec = 0;
  17213. tm.tm_isdst = -1;
  17214. return mktime (&tm) != (time_t) -1;
  17215. }
  17216. static int
  17217. mktime_test1 (now)
  17218. time_t now;
  17219. {
  17220. struct tm *lt;
  17221. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17222. }
  17223. static int
  17224. mktime_test (now)
  17225. time_t now;
  17226. {
  17227. return (mktime_test1 (now)
  17228. && mktime_test1 ((time_t) (time_t_max - now))
  17229. && mktime_test1 ((time_t) (time_t_min + now)));
  17230. }
  17231. static int
  17232. irix_6_4_bug ()
  17233. {
  17234. /* Based on code from Ariel Faigon. */
  17235. struct tm tm;
  17236. tm.tm_year = 96;
  17237. tm.tm_mon = 3;
  17238. tm.tm_mday = 0;
  17239. tm.tm_hour = 0;
  17240. tm.tm_min = 0;
  17241. tm.tm_sec = 0;
  17242. tm.tm_isdst = -1;
  17243. mktime (&tm);
  17244. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17245. }
  17246. static int
  17247. bigtime_test (j)
  17248. int j;
  17249. {
  17250. struct tm tm;
  17251. time_t now;
  17252. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17253. now = mktime (&tm);
  17254. if (now != (time_t) -1)
  17255. {
  17256. struct tm *lt = localtime (&now);
  17257. if (! (lt
  17258. && lt->tm_year == tm.tm_year
  17259. && lt->tm_mon == tm.tm_mon
  17260. && lt->tm_mday == tm.tm_mday
  17261. && lt->tm_hour == tm.tm_hour
  17262. && lt->tm_min == tm.tm_min
  17263. && lt->tm_sec == tm.tm_sec
  17264. && lt->tm_yday == tm.tm_yday
  17265. && lt->tm_wday == tm.tm_wday
  17266. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17267. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17268. return 0;
  17269. }
  17270. return 1;
  17271. }
  17272. static int
  17273. year_2050_test ()
  17274. {
  17275. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17276. ignoring leap seconds. */
  17277. unsigned long int answer = 2527315200UL;
  17278. struct tm tm;
  17279. time_t t;
  17280. tm.tm_year = 2050 - 1900;
  17281. tm.tm_mon = 2 - 1;
  17282. tm.tm_mday = 1;
  17283. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17284. tm.tm_isdst = -1;
  17285. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17286. instead of "TZ=America/Vancouver" in order to detect the bug even
  17287. on systems that don't support the Olson extension, or don't have the
  17288. full zoneinfo tables installed. */
  17289. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17290. t = mktime (&tm);
  17291. /* Check that the result is either a failure, or close enough
  17292. to the correct answer that we can assume the discrepancy is
  17293. due to leap seconds. */
  17294. return (t == (time_t) -1
  17295. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17296. }
  17297. int
  17298. main ()
  17299. {
  17300. time_t t, delta;
  17301. int i, j;
  17302. /* This test makes some buggy mktime implementations loop.
  17303. Give up after 60 seconds; a mktime slower than that
  17304. isn't worth using anyway. */
  17305. alarm (60);
  17306. for (;;)
  17307. {
  17308. t = (time_t_max << 1) + 1;
  17309. if (t <= time_t_max)
  17310. break;
  17311. time_t_max = t;
  17312. }
  17313. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17314. delta = time_t_max / 997; /* a suitable prime number */
  17315. for (i = 0; i < N_STRINGS; i++)
  17316. {
  17317. if (tz_strings[i])
  17318. putenv (tz_strings[i]);
  17319. for (t = 0; t <= time_t_max - delta; t += delta)
  17320. if (! mktime_test (t))
  17321. return 1;
  17322. if (! (mktime_test ((time_t) 1)
  17323. && mktime_test ((time_t) (60 * 60))
  17324. && mktime_test ((time_t) (60 * 60 * 24))))
  17325. return 1;
  17326. for (j = 1; ; j <<= 1)
  17327. if (! bigtime_test (j))
  17328. return 1;
  17329. else if (INT_MAX / 2 < j)
  17330. break;
  17331. if (! bigtime_test (INT_MAX))
  17332. return 1;
  17333. }
  17334. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17335. }
  17336. _ACEOF
  17337. rm -f conftest$ac_exeext
  17338. if { (ac_try="$ac_link"
  17339. case "(($ac_try" in
  17340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17341. *) ac_try_echo=$ac_try;;
  17342. esac
  17343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17344. (eval "$ac_link") 2>&5
  17345. ac_status=$?
  17346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17347. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17348. { (case "(($ac_try" in
  17349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17350. *) ac_try_echo=$ac_try;;
  17351. esac
  17352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17353. (eval "$ac_try") 2>&5
  17354. ac_status=$?
  17355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17356. (exit $ac_status); }; }; then
  17357. ac_cv_func_working_mktime=yes
  17358. else
  17359. echo "$as_me: program exited with status $ac_status" >&5
  17360. echo "$as_me: failed program was:" >&5
  17361. sed 's/^/| /' conftest.$ac_ext >&5
  17362. ( exit $ac_status )
  17363. ac_cv_func_working_mktime=no
  17364. fi
  17365. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17366. fi
  17367. fi
  17368. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17369. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17370. if test $ac_cv_func_working_mktime = no; then
  17371. case " $LIBOBJS " in
  17372. *" mktime.$ac_objext "* ) ;;
  17373. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17374. ;;
  17375. esac
  17376. fi
  17377. for ac_header in stdlib.h unistd.h
  17378. do
  17379. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17380. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17381. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17382. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17383. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17384. echo $ECHO_N "(cached) $ECHO_C" >&6
  17385. fi
  17386. ac_res=`eval echo '${'$as_ac_Header'}'`
  17387. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17388. echo "${ECHO_T}$ac_res" >&6; }
  17389. else
  17390. # Is the header compilable?
  17391. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17392. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17393. cat >conftest.$ac_ext <<_ACEOF
  17394. /* confdefs.h. */
  17395. _ACEOF
  17396. cat confdefs.h >>conftest.$ac_ext
  17397. cat >>conftest.$ac_ext <<_ACEOF
  17398. /* end confdefs.h. */
  17399. $ac_includes_default
  17400. #include <$ac_header>
  17401. _ACEOF
  17402. rm -f conftest.$ac_objext
  17403. if { (ac_try="$ac_compile"
  17404. case "(($ac_try" in
  17405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17406. *) ac_try_echo=$ac_try;;
  17407. esac
  17408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17409. (eval "$ac_compile") 2>conftest.er1
  17410. ac_status=$?
  17411. grep -v '^ *+' conftest.er1 >conftest.err
  17412. rm -f conftest.er1
  17413. cat conftest.err >&5
  17414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17415. (exit $ac_status); } && {
  17416. test -z "$ac_cxx_werror_flag" ||
  17417. test ! -s conftest.err
  17418. } && test -s conftest.$ac_objext; then
  17419. ac_header_compiler=yes
  17420. else
  17421. echo "$as_me: failed program was:" >&5
  17422. sed 's/^/| /' conftest.$ac_ext >&5
  17423. ac_header_compiler=no
  17424. fi
  17425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17426. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17427. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17428. # Is the header present?
  17429. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17430. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17431. cat >conftest.$ac_ext <<_ACEOF
  17432. /* confdefs.h. */
  17433. _ACEOF
  17434. cat confdefs.h >>conftest.$ac_ext
  17435. cat >>conftest.$ac_ext <<_ACEOF
  17436. /* end confdefs.h. */
  17437. #include <$ac_header>
  17438. _ACEOF
  17439. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17440. case "(($ac_try" in
  17441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17442. *) ac_try_echo=$ac_try;;
  17443. esac
  17444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17445. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17446. ac_status=$?
  17447. grep -v '^ *+' conftest.er1 >conftest.err
  17448. rm -f conftest.er1
  17449. cat conftest.err >&5
  17450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17451. (exit $ac_status); } >/dev/null && {
  17452. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17453. test ! -s conftest.err
  17454. }; then
  17455. ac_header_preproc=yes
  17456. else
  17457. echo "$as_me: failed program was:" >&5
  17458. sed 's/^/| /' conftest.$ac_ext >&5
  17459. ac_header_preproc=no
  17460. fi
  17461. rm -f conftest.err conftest.$ac_ext
  17462. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17463. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17464. # So? What about this header?
  17465. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17466. yes:no: )
  17467. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17468. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17469. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17470. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17471. ac_header_preproc=yes
  17472. ;;
  17473. no:yes:* )
  17474. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17475. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17476. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17477. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17478. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17479. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17480. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17481. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17482. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17483. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17484. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17485. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17486. ( cat <<\_ASBOX
  17487. ## ----------------------------------------------- ##
  17488. ## Report this to t-tujikawa@users.sourceforge.net ##
  17489. ## ----------------------------------------------- ##
  17490. _ASBOX
  17491. ) | sed "s/^/$as_me: WARNING: /" >&2
  17492. ;;
  17493. esac
  17494. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17495. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17496. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17497. echo $ECHO_N "(cached) $ECHO_C" >&6
  17498. else
  17499. eval "$as_ac_Header=\$ac_header_preproc"
  17500. fi
  17501. ac_res=`eval echo '${'$as_ac_Header'}'`
  17502. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17503. echo "${ECHO_T}$ac_res" >&6; }
  17504. fi
  17505. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17506. cat >>confdefs.h <<_ACEOF
  17507. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17508. _ACEOF
  17509. fi
  17510. done
  17511. for ac_func in getpagesize
  17512. do
  17513. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17514. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17515. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17516. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17517. echo $ECHO_N "(cached) $ECHO_C" >&6
  17518. else
  17519. cat >conftest.$ac_ext <<_ACEOF
  17520. /* confdefs.h. */
  17521. _ACEOF
  17522. cat confdefs.h >>conftest.$ac_ext
  17523. cat >>conftest.$ac_ext <<_ACEOF
  17524. /* end confdefs.h. */
  17525. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17526. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17527. #define $ac_func innocuous_$ac_func
  17528. /* System header to define __stub macros and hopefully few prototypes,
  17529. which can conflict with char $ac_func (); below.
  17530. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17531. <limits.h> exists even on freestanding compilers. */
  17532. #ifdef __STDC__
  17533. # include <limits.h>
  17534. #else
  17535. # include <assert.h>
  17536. #endif
  17537. #undef $ac_func
  17538. /* Override any GCC internal prototype to avoid an error.
  17539. Use char because int might match the return type of a GCC
  17540. builtin and then its argument prototype would still apply. */
  17541. #ifdef __cplusplus
  17542. extern "C"
  17543. #endif
  17544. char $ac_func ();
  17545. /* The GNU C library defines this for functions which it implements
  17546. to always fail with ENOSYS. Some functions are actually named
  17547. something starting with __ and the normal name is an alias. */
  17548. #if defined __stub_$ac_func || defined __stub___$ac_func
  17549. choke me
  17550. #endif
  17551. int
  17552. main ()
  17553. {
  17554. return $ac_func ();
  17555. ;
  17556. return 0;
  17557. }
  17558. _ACEOF
  17559. rm -f conftest.$ac_objext conftest$ac_exeext
  17560. if { (ac_try="$ac_link"
  17561. case "(($ac_try" in
  17562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17563. *) ac_try_echo=$ac_try;;
  17564. esac
  17565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17566. (eval "$ac_link") 2>conftest.er1
  17567. ac_status=$?
  17568. grep -v '^ *+' conftest.er1 >conftest.err
  17569. rm -f conftest.er1
  17570. cat conftest.err >&5
  17571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17572. (exit $ac_status); } && {
  17573. test -z "$ac_cxx_werror_flag" ||
  17574. test ! -s conftest.err
  17575. } && test -s conftest$ac_exeext &&
  17576. $as_test_x conftest$ac_exeext; then
  17577. eval "$as_ac_var=yes"
  17578. else
  17579. echo "$as_me: failed program was:" >&5
  17580. sed 's/^/| /' conftest.$ac_ext >&5
  17581. eval "$as_ac_var=no"
  17582. fi
  17583. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17584. conftest$ac_exeext conftest.$ac_ext
  17585. fi
  17586. ac_res=`eval echo '${'$as_ac_var'}'`
  17587. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17588. echo "${ECHO_T}$ac_res" >&6; }
  17589. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17590. cat >>confdefs.h <<_ACEOF
  17591. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17592. _ACEOF
  17593. fi
  17594. done
  17595. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17596. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17597. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17598. echo $ECHO_N "(cached) $ECHO_C" >&6
  17599. else
  17600. if test "$cross_compiling" = yes; then
  17601. ac_cv_func_mmap_fixed_mapped=no
  17602. else
  17603. cat >conftest.$ac_ext <<_ACEOF
  17604. /* confdefs.h. */
  17605. _ACEOF
  17606. cat confdefs.h >>conftest.$ac_ext
  17607. cat >>conftest.$ac_ext <<_ACEOF
  17608. /* end confdefs.h. */
  17609. $ac_includes_default
  17610. /* malloc might have been renamed as rpl_malloc. */
  17611. #undef malloc
  17612. /* Thanks to Mike Haertel and Jim Avera for this test.
  17613. Here is a matrix of mmap possibilities:
  17614. mmap private not fixed
  17615. mmap private fixed at somewhere currently unmapped
  17616. mmap private fixed at somewhere already mapped
  17617. mmap shared not fixed
  17618. mmap shared fixed at somewhere currently unmapped
  17619. mmap shared fixed at somewhere already mapped
  17620. For private mappings, we should verify that changes cannot be read()
  17621. back from the file, nor mmap's back from the file at a different
  17622. address. (There have been systems where private was not correctly
  17623. implemented like the infamous i386 svr4.0, and systems where the
  17624. VM page cache was not coherent with the file system buffer cache
  17625. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17626. For shared mappings, we should conversely verify that changes get
  17627. propagated back to all the places they're supposed to be.
  17628. Grep wants private fixed already mapped.
  17629. The main things grep needs to know about mmap are:
  17630. * does it exist and is it safe to write into the mmap'd area
  17631. * how to use it (BSD variants) */
  17632. #include <fcntl.h>
  17633. #include <sys/mman.h>
  17634. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17635. char *malloc ();
  17636. #endif
  17637. /* This mess was copied from the GNU getpagesize.h. */
  17638. #ifndef HAVE_GETPAGESIZE
  17639. /* Assume that all systems that can run configure have sys/param.h. */
  17640. # ifndef HAVE_SYS_PARAM_H
  17641. # define HAVE_SYS_PARAM_H 1
  17642. # endif
  17643. # ifdef _SC_PAGESIZE
  17644. # define getpagesize() sysconf(_SC_PAGESIZE)
  17645. # else /* no _SC_PAGESIZE */
  17646. # ifdef HAVE_SYS_PARAM_H
  17647. # include <sys/param.h>
  17648. # ifdef EXEC_PAGESIZE
  17649. # define getpagesize() EXEC_PAGESIZE
  17650. # else /* no EXEC_PAGESIZE */
  17651. # ifdef NBPG
  17652. # define getpagesize() NBPG * CLSIZE
  17653. # ifndef CLSIZE
  17654. # define CLSIZE 1
  17655. # endif /* no CLSIZE */
  17656. # else /* no NBPG */
  17657. # ifdef NBPC
  17658. # define getpagesize() NBPC
  17659. # else /* no NBPC */
  17660. # ifdef PAGESIZE
  17661. # define getpagesize() PAGESIZE
  17662. # endif /* PAGESIZE */
  17663. # endif /* no NBPC */
  17664. # endif /* no NBPG */
  17665. # endif /* no EXEC_PAGESIZE */
  17666. # else /* no HAVE_SYS_PARAM_H */
  17667. # define getpagesize() 8192 /* punt totally */
  17668. # endif /* no HAVE_SYS_PARAM_H */
  17669. # endif /* no _SC_PAGESIZE */
  17670. #endif /* no HAVE_GETPAGESIZE */
  17671. int
  17672. main ()
  17673. {
  17674. char *data, *data2, *data3;
  17675. int i, pagesize;
  17676. int fd;
  17677. pagesize = getpagesize ();
  17678. /* First, make a file with some known garbage in it. */
  17679. data = (char *) malloc (pagesize);
  17680. if (!data)
  17681. return 1;
  17682. for (i = 0; i < pagesize; ++i)
  17683. *(data + i) = rand ();
  17684. umask (0);
  17685. fd = creat ("conftest.mmap", 0600);
  17686. if (fd < 0)
  17687. return 1;
  17688. if (write (fd, data, pagesize) != pagesize)
  17689. return 1;
  17690. close (fd);
  17691. /* Next, try to mmap the file at a fixed address which already has
  17692. something else allocated at it. If we can, also make sure that
  17693. we see the same garbage. */
  17694. fd = open ("conftest.mmap", O_RDWR);
  17695. if (fd < 0)
  17696. return 1;
  17697. data2 = (char *) malloc (2 * pagesize);
  17698. if (!data2)
  17699. return 1;
  17700. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17701. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17702. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17703. return 1;
  17704. for (i = 0; i < pagesize; ++i)
  17705. if (*(data + i) != *(data2 + i))
  17706. return 1;
  17707. /* Finally, make sure that changes to the mapped area do not
  17708. percolate back to the file as seen by read(). (This is a bug on
  17709. some variants of i386 svr4.0.) */
  17710. for (i = 0; i < pagesize; ++i)
  17711. *(data2 + i) = *(data2 + i) + 1;
  17712. data3 = (char *) malloc (pagesize);
  17713. if (!data3)
  17714. return 1;
  17715. if (read (fd, data3, pagesize) != pagesize)
  17716. return 1;
  17717. for (i = 0; i < pagesize; ++i)
  17718. if (*(data + i) != *(data3 + i))
  17719. return 1;
  17720. close (fd);
  17721. return 0;
  17722. }
  17723. _ACEOF
  17724. rm -f conftest$ac_exeext
  17725. if { (ac_try="$ac_link"
  17726. case "(($ac_try" in
  17727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17728. *) ac_try_echo=$ac_try;;
  17729. esac
  17730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17731. (eval "$ac_link") 2>&5
  17732. ac_status=$?
  17733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17734. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17735. { (case "(($ac_try" in
  17736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17737. *) ac_try_echo=$ac_try;;
  17738. esac
  17739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17740. (eval "$ac_try") 2>&5
  17741. ac_status=$?
  17742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17743. (exit $ac_status); }; }; then
  17744. ac_cv_func_mmap_fixed_mapped=yes
  17745. else
  17746. echo "$as_me: program exited with status $ac_status" >&5
  17747. echo "$as_me: failed program was:" >&5
  17748. sed 's/^/| /' conftest.$ac_ext >&5
  17749. ( exit $ac_status )
  17750. ac_cv_func_mmap_fixed_mapped=no
  17751. fi
  17752. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17753. fi
  17754. fi
  17755. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17756. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17757. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17758. cat >>confdefs.h <<\_ACEOF
  17759. #define HAVE_MMAP 1
  17760. _ACEOF
  17761. fi
  17762. rm -f conftest.mmap
  17763. for ac_header in sys/select.h sys/socket.h
  17764. do
  17765. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17766. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17767. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17768. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17769. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17770. echo $ECHO_N "(cached) $ECHO_C" >&6
  17771. fi
  17772. ac_res=`eval echo '${'$as_ac_Header'}'`
  17773. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17774. echo "${ECHO_T}$ac_res" >&6; }
  17775. else
  17776. # Is the header compilable?
  17777. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17778. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17779. cat >conftest.$ac_ext <<_ACEOF
  17780. /* confdefs.h. */
  17781. _ACEOF
  17782. cat confdefs.h >>conftest.$ac_ext
  17783. cat >>conftest.$ac_ext <<_ACEOF
  17784. /* end confdefs.h. */
  17785. $ac_includes_default
  17786. #include <$ac_header>
  17787. _ACEOF
  17788. rm -f conftest.$ac_objext
  17789. if { (ac_try="$ac_compile"
  17790. case "(($ac_try" in
  17791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17792. *) ac_try_echo=$ac_try;;
  17793. esac
  17794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17795. (eval "$ac_compile") 2>conftest.er1
  17796. ac_status=$?
  17797. grep -v '^ *+' conftest.er1 >conftest.err
  17798. rm -f conftest.er1
  17799. cat conftest.err >&5
  17800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17801. (exit $ac_status); } && {
  17802. test -z "$ac_cxx_werror_flag" ||
  17803. test ! -s conftest.err
  17804. } && test -s conftest.$ac_objext; then
  17805. ac_header_compiler=yes
  17806. else
  17807. echo "$as_me: failed program was:" >&5
  17808. sed 's/^/| /' conftest.$ac_ext >&5
  17809. ac_header_compiler=no
  17810. fi
  17811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17812. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17813. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17814. # Is the header present?
  17815. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17816. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17817. cat >conftest.$ac_ext <<_ACEOF
  17818. /* confdefs.h. */
  17819. _ACEOF
  17820. cat confdefs.h >>conftest.$ac_ext
  17821. cat >>conftest.$ac_ext <<_ACEOF
  17822. /* end confdefs.h. */
  17823. #include <$ac_header>
  17824. _ACEOF
  17825. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17826. case "(($ac_try" in
  17827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17828. *) ac_try_echo=$ac_try;;
  17829. esac
  17830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17831. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17832. ac_status=$?
  17833. grep -v '^ *+' conftest.er1 >conftest.err
  17834. rm -f conftest.er1
  17835. cat conftest.err >&5
  17836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17837. (exit $ac_status); } >/dev/null && {
  17838. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17839. test ! -s conftest.err
  17840. }; then
  17841. ac_header_preproc=yes
  17842. else
  17843. echo "$as_me: failed program was:" >&5
  17844. sed 's/^/| /' conftest.$ac_ext >&5
  17845. ac_header_preproc=no
  17846. fi
  17847. rm -f conftest.err conftest.$ac_ext
  17848. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17849. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17850. # So? What about this header?
  17851. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17852. yes:no: )
  17853. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17854. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17855. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17856. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17857. ac_header_preproc=yes
  17858. ;;
  17859. no:yes:* )
  17860. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17861. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17862. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17863. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17864. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17865. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17866. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17867. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17868. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17869. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17870. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17871. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17872. ( cat <<\_ASBOX
  17873. ## ----------------------------------------------- ##
  17874. ## Report this to t-tujikawa@users.sourceforge.net ##
  17875. ## ----------------------------------------------- ##
  17876. _ASBOX
  17877. ) | sed "s/^/$as_me: WARNING: /" >&2
  17878. ;;
  17879. esac
  17880. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17881. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17882. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17883. echo $ECHO_N "(cached) $ECHO_C" >&6
  17884. else
  17885. eval "$as_ac_Header=\$ac_header_preproc"
  17886. fi
  17887. ac_res=`eval echo '${'$as_ac_Header'}'`
  17888. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17889. echo "${ECHO_T}$ac_res" >&6; }
  17890. fi
  17891. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17892. cat >>confdefs.h <<_ACEOF
  17893. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17894. _ACEOF
  17895. fi
  17896. done
  17897. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17898. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17899. if test "${ac_cv_func_select_args+set}" = set; then
  17900. echo $ECHO_N "(cached) $ECHO_C" >&6
  17901. else
  17902. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17903. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17904. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17905. cat >conftest.$ac_ext <<_ACEOF
  17906. /* confdefs.h. */
  17907. _ACEOF
  17908. cat confdefs.h >>conftest.$ac_ext
  17909. cat >>conftest.$ac_ext <<_ACEOF
  17910. /* end confdefs.h. */
  17911. $ac_includes_default
  17912. #ifdef HAVE_SYS_SELECT_H
  17913. # include <sys/select.h>
  17914. #endif
  17915. #ifdef HAVE_SYS_SOCKET_H
  17916. # include <sys/socket.h>
  17917. #endif
  17918. int
  17919. main ()
  17920. {
  17921. extern int select ($ac_arg1,
  17922. $ac_arg234, $ac_arg234, $ac_arg234,
  17923. $ac_arg5);
  17924. ;
  17925. return 0;
  17926. }
  17927. _ACEOF
  17928. rm -f conftest.$ac_objext
  17929. if { (ac_try="$ac_compile"
  17930. case "(($ac_try" in
  17931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17932. *) ac_try_echo=$ac_try;;
  17933. esac
  17934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17935. (eval "$ac_compile") 2>conftest.er1
  17936. ac_status=$?
  17937. grep -v '^ *+' conftest.er1 >conftest.err
  17938. rm -f conftest.er1
  17939. cat conftest.err >&5
  17940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17941. (exit $ac_status); } && {
  17942. test -z "$ac_cxx_werror_flag" ||
  17943. test ! -s conftest.err
  17944. } && test -s conftest.$ac_objext; then
  17945. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17946. else
  17947. echo "$as_me: failed program was:" >&5
  17948. sed 's/^/| /' conftest.$ac_ext >&5
  17949. fi
  17950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17951. done
  17952. done
  17953. done
  17954. # Provide a safe default value.
  17955. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17956. fi
  17957. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17958. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17959. ac_save_IFS=$IFS; IFS=','
  17960. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17961. IFS=$ac_save_IFS
  17962. shift
  17963. cat >>confdefs.h <<_ACEOF
  17964. #define SELECT_TYPE_ARG1 $1
  17965. _ACEOF
  17966. cat >>confdefs.h <<_ACEOF
  17967. #define SELECT_TYPE_ARG234 ($2)
  17968. _ACEOF
  17969. cat >>confdefs.h <<_ACEOF
  17970. #define SELECT_TYPE_ARG5 ($3)
  17971. _ACEOF
  17972. rm -f conftest*
  17973. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17974. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17975. if test "${ac_cv_type_signal+set}" = set; then
  17976. echo $ECHO_N "(cached) $ECHO_C" >&6
  17977. else
  17978. cat >conftest.$ac_ext <<_ACEOF
  17979. /* confdefs.h. */
  17980. _ACEOF
  17981. cat confdefs.h >>conftest.$ac_ext
  17982. cat >>conftest.$ac_ext <<_ACEOF
  17983. /* end confdefs.h. */
  17984. #include <sys/types.h>
  17985. #include <signal.h>
  17986. int
  17987. main ()
  17988. {
  17989. return *(signal (0, 0)) (0) == 1;
  17990. ;
  17991. return 0;
  17992. }
  17993. _ACEOF
  17994. rm -f conftest.$ac_objext
  17995. if { (ac_try="$ac_compile"
  17996. case "(($ac_try" in
  17997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17998. *) ac_try_echo=$ac_try;;
  17999. esac
  18000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18001. (eval "$ac_compile") 2>conftest.er1
  18002. ac_status=$?
  18003. grep -v '^ *+' conftest.er1 >conftest.err
  18004. rm -f conftest.er1
  18005. cat conftest.err >&5
  18006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18007. (exit $ac_status); } && {
  18008. test -z "$ac_cxx_werror_flag" ||
  18009. test ! -s conftest.err
  18010. } && test -s conftest.$ac_objext; then
  18011. ac_cv_type_signal=int
  18012. else
  18013. echo "$as_me: failed program was:" >&5
  18014. sed 's/^/| /' conftest.$ac_ext >&5
  18015. ac_cv_type_signal=void
  18016. fi
  18017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18018. fi
  18019. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18020. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  18021. cat >>confdefs.h <<_ACEOF
  18022. #define RETSIGTYPE $ac_cv_type_signal
  18023. _ACEOF
  18024. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18025. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  18026. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18027. echo $ECHO_N "(cached) $ECHO_C" >&6
  18028. else
  18029. rm -f conftest.sym conftest.file
  18030. echo >conftest.file
  18031. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18032. if test "$cross_compiling" = yes; then
  18033. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18034. else
  18035. cat >conftest.$ac_ext <<_ACEOF
  18036. /* confdefs.h. */
  18037. _ACEOF
  18038. cat confdefs.h >>conftest.$ac_ext
  18039. cat >>conftest.$ac_ext <<_ACEOF
  18040. /* end confdefs.h. */
  18041. $ac_includes_default
  18042. int
  18043. main ()
  18044. {
  18045. struct stat sbuf;
  18046. /* Linux will dereference the symlink and fail.
  18047. That is better in the sense that it means we will not
  18048. have to compile and use the lstat wrapper. */
  18049. return lstat ("conftest.sym/", &sbuf) == 0;
  18050. ;
  18051. return 0;
  18052. }
  18053. _ACEOF
  18054. rm -f conftest$ac_exeext
  18055. if { (ac_try="$ac_link"
  18056. case "(($ac_try" in
  18057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18058. *) ac_try_echo=$ac_try;;
  18059. esac
  18060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18061. (eval "$ac_link") 2>&5
  18062. ac_status=$?
  18063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18064. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18065. { (case "(($ac_try" in
  18066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18067. *) ac_try_echo=$ac_try;;
  18068. esac
  18069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18070. (eval "$ac_try") 2>&5
  18071. ac_status=$?
  18072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18073. (exit $ac_status); }; }; then
  18074. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18075. else
  18076. echo "$as_me: program exited with status $ac_status" >&5
  18077. echo "$as_me: failed program was:" >&5
  18078. sed 's/^/| /' conftest.$ac_ext >&5
  18079. ( exit $ac_status )
  18080. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18081. fi
  18082. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18083. fi
  18084. else
  18085. # If the `ln -s' command failed, then we probably don't even
  18086. # have an lstat function.
  18087. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18088. fi
  18089. rm -f conftest.sym conftest.file
  18090. fi
  18091. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18092. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18093. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18094. cat >>confdefs.h <<_ACEOF
  18095. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18096. _ACEOF
  18097. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18098. case " $LIBOBJS " in
  18099. *" lstat.$ac_objext "* ) ;;
  18100. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18101. ;;
  18102. esac
  18103. fi
  18104. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18105. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  18106. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18107. echo $ECHO_N "(cached) $ECHO_C" >&6
  18108. else
  18109. if test "$cross_compiling" = yes; then
  18110. ac_cv_func_stat_empty_string_bug=yes
  18111. else
  18112. cat >conftest.$ac_ext <<_ACEOF
  18113. /* confdefs.h. */
  18114. _ACEOF
  18115. cat confdefs.h >>conftest.$ac_ext
  18116. cat >>conftest.$ac_ext <<_ACEOF
  18117. /* end confdefs.h. */
  18118. $ac_includes_default
  18119. int
  18120. main ()
  18121. {
  18122. struct stat sbuf;
  18123. return stat ("", &sbuf) == 0;
  18124. ;
  18125. return 0;
  18126. }
  18127. _ACEOF
  18128. rm -f conftest$ac_exeext
  18129. if { (ac_try="$ac_link"
  18130. case "(($ac_try" in
  18131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18132. *) ac_try_echo=$ac_try;;
  18133. esac
  18134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18135. (eval "$ac_link") 2>&5
  18136. ac_status=$?
  18137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18138. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18139. { (case "(($ac_try" in
  18140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18141. *) ac_try_echo=$ac_try;;
  18142. esac
  18143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18144. (eval "$ac_try") 2>&5
  18145. ac_status=$?
  18146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18147. (exit $ac_status); }; }; then
  18148. ac_cv_func_stat_empty_string_bug=no
  18149. else
  18150. echo "$as_me: program exited with status $ac_status" >&5
  18151. echo "$as_me: failed program was:" >&5
  18152. sed 's/^/| /' conftest.$ac_ext >&5
  18153. ( exit $ac_status )
  18154. ac_cv_func_stat_empty_string_bug=yes
  18155. fi
  18156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18157. fi
  18158. fi
  18159. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18160. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  18161. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18162. case " $LIBOBJS " in
  18163. *" stat.$ac_objext "* ) ;;
  18164. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18165. ;;
  18166. esac
  18167. cat >>confdefs.h <<_ACEOF
  18168. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18169. _ACEOF
  18170. fi
  18171. for ac_func in strftime
  18172. do
  18173. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18174. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18175. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18176. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18177. echo $ECHO_N "(cached) $ECHO_C" >&6
  18178. else
  18179. cat >conftest.$ac_ext <<_ACEOF
  18180. /* confdefs.h. */
  18181. _ACEOF
  18182. cat confdefs.h >>conftest.$ac_ext
  18183. cat >>conftest.$ac_ext <<_ACEOF
  18184. /* end confdefs.h. */
  18185. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18186. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18187. #define $ac_func innocuous_$ac_func
  18188. /* System header to define __stub macros and hopefully few prototypes,
  18189. which can conflict with char $ac_func (); below.
  18190. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18191. <limits.h> exists even on freestanding compilers. */
  18192. #ifdef __STDC__
  18193. # include <limits.h>
  18194. #else
  18195. # include <assert.h>
  18196. #endif
  18197. #undef $ac_func
  18198. /* Override any GCC internal prototype to avoid an error.
  18199. Use char because int might match the return type of a GCC
  18200. builtin and then its argument prototype would still apply. */
  18201. #ifdef __cplusplus
  18202. extern "C"
  18203. #endif
  18204. char $ac_func ();
  18205. /* The GNU C library defines this for functions which it implements
  18206. to always fail with ENOSYS. Some functions are actually named
  18207. something starting with __ and the normal name is an alias. */
  18208. #if defined __stub_$ac_func || defined __stub___$ac_func
  18209. choke me
  18210. #endif
  18211. int
  18212. main ()
  18213. {
  18214. return $ac_func ();
  18215. ;
  18216. return 0;
  18217. }
  18218. _ACEOF
  18219. rm -f conftest.$ac_objext conftest$ac_exeext
  18220. if { (ac_try="$ac_link"
  18221. case "(($ac_try" in
  18222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18223. *) ac_try_echo=$ac_try;;
  18224. esac
  18225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18226. (eval "$ac_link") 2>conftest.er1
  18227. ac_status=$?
  18228. grep -v '^ *+' conftest.er1 >conftest.err
  18229. rm -f conftest.er1
  18230. cat conftest.err >&5
  18231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18232. (exit $ac_status); } && {
  18233. test -z "$ac_cxx_werror_flag" ||
  18234. test ! -s conftest.err
  18235. } && test -s conftest$ac_exeext &&
  18236. $as_test_x conftest$ac_exeext; then
  18237. eval "$as_ac_var=yes"
  18238. else
  18239. echo "$as_me: failed program was:" >&5
  18240. sed 's/^/| /' conftest.$ac_ext >&5
  18241. eval "$as_ac_var=no"
  18242. fi
  18243. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18244. conftest$ac_exeext conftest.$ac_ext
  18245. fi
  18246. ac_res=`eval echo '${'$as_ac_var'}'`
  18247. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18248. echo "${ECHO_T}$ac_res" >&6; }
  18249. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18250. cat >>confdefs.h <<_ACEOF
  18251. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18252. _ACEOF
  18253. else
  18254. # strftime is in -lintl on SCO UNIX.
  18255. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18256. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18257. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18258. echo $ECHO_N "(cached) $ECHO_C" >&6
  18259. else
  18260. ac_check_lib_save_LIBS=$LIBS
  18261. LIBS="-lintl $LIBS"
  18262. cat >conftest.$ac_ext <<_ACEOF
  18263. /* confdefs.h. */
  18264. _ACEOF
  18265. cat confdefs.h >>conftest.$ac_ext
  18266. cat >>conftest.$ac_ext <<_ACEOF
  18267. /* end confdefs.h. */
  18268. /* Override any GCC internal prototype to avoid an error.
  18269. Use char because int might match the return type of a GCC
  18270. builtin and then its argument prototype would still apply. */
  18271. #ifdef __cplusplus
  18272. extern "C"
  18273. #endif
  18274. char strftime ();
  18275. int
  18276. main ()
  18277. {
  18278. return strftime ();
  18279. ;
  18280. return 0;
  18281. }
  18282. _ACEOF
  18283. rm -f conftest.$ac_objext conftest$ac_exeext
  18284. if { (ac_try="$ac_link"
  18285. case "(($ac_try" in
  18286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18287. *) ac_try_echo=$ac_try;;
  18288. esac
  18289. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18290. (eval "$ac_link") 2>conftest.er1
  18291. ac_status=$?
  18292. grep -v '^ *+' conftest.er1 >conftest.err
  18293. rm -f conftest.er1
  18294. cat conftest.err >&5
  18295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18296. (exit $ac_status); } && {
  18297. test -z "$ac_cxx_werror_flag" ||
  18298. test ! -s conftest.err
  18299. } && test -s conftest$ac_exeext &&
  18300. $as_test_x conftest$ac_exeext; then
  18301. ac_cv_lib_intl_strftime=yes
  18302. else
  18303. echo "$as_me: failed program was:" >&5
  18304. sed 's/^/| /' conftest.$ac_ext >&5
  18305. ac_cv_lib_intl_strftime=no
  18306. fi
  18307. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18308. conftest$ac_exeext conftest.$ac_ext
  18309. LIBS=$ac_check_lib_save_LIBS
  18310. fi
  18311. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18312. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  18313. if test $ac_cv_lib_intl_strftime = yes; then
  18314. cat >>confdefs.h <<\_ACEOF
  18315. #define HAVE_STRFTIME 1
  18316. _ACEOF
  18317. LIBS="-lintl $LIBS"
  18318. fi
  18319. fi
  18320. done
  18321. for ac_func in vprintf
  18322. do
  18323. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18324. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18325. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18326. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18327. echo $ECHO_N "(cached) $ECHO_C" >&6
  18328. else
  18329. cat >conftest.$ac_ext <<_ACEOF
  18330. /* confdefs.h. */
  18331. _ACEOF
  18332. cat confdefs.h >>conftest.$ac_ext
  18333. cat >>conftest.$ac_ext <<_ACEOF
  18334. /* end confdefs.h. */
  18335. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18336. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18337. #define $ac_func innocuous_$ac_func
  18338. /* System header to define __stub macros and hopefully few prototypes,
  18339. which can conflict with char $ac_func (); below.
  18340. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18341. <limits.h> exists even on freestanding compilers. */
  18342. #ifdef __STDC__
  18343. # include <limits.h>
  18344. #else
  18345. # include <assert.h>
  18346. #endif
  18347. #undef $ac_func
  18348. /* Override any GCC internal prototype to avoid an error.
  18349. Use char because int might match the return type of a GCC
  18350. builtin and then its argument prototype would still apply. */
  18351. #ifdef __cplusplus
  18352. extern "C"
  18353. #endif
  18354. char $ac_func ();
  18355. /* The GNU C library defines this for functions which it implements
  18356. to always fail with ENOSYS. Some functions are actually named
  18357. something starting with __ and the normal name is an alias. */
  18358. #if defined __stub_$ac_func || defined __stub___$ac_func
  18359. choke me
  18360. #endif
  18361. int
  18362. main ()
  18363. {
  18364. return $ac_func ();
  18365. ;
  18366. return 0;
  18367. }
  18368. _ACEOF
  18369. rm -f conftest.$ac_objext conftest$ac_exeext
  18370. if { (ac_try="$ac_link"
  18371. case "(($ac_try" in
  18372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18373. *) ac_try_echo=$ac_try;;
  18374. esac
  18375. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18376. (eval "$ac_link") 2>conftest.er1
  18377. ac_status=$?
  18378. grep -v '^ *+' conftest.er1 >conftest.err
  18379. rm -f conftest.er1
  18380. cat conftest.err >&5
  18381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18382. (exit $ac_status); } && {
  18383. test -z "$ac_cxx_werror_flag" ||
  18384. test ! -s conftest.err
  18385. } && test -s conftest$ac_exeext &&
  18386. $as_test_x conftest$ac_exeext; then
  18387. eval "$as_ac_var=yes"
  18388. else
  18389. echo "$as_me: failed program was:" >&5
  18390. sed 's/^/| /' conftest.$ac_ext >&5
  18391. eval "$as_ac_var=no"
  18392. fi
  18393. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18394. conftest$ac_exeext conftest.$ac_ext
  18395. fi
  18396. ac_res=`eval echo '${'$as_ac_var'}'`
  18397. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18398. echo "${ECHO_T}$ac_res" >&6; }
  18399. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18400. cat >>confdefs.h <<_ACEOF
  18401. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18402. _ACEOF
  18403. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18404. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18405. if test "${ac_cv_func__doprnt+set}" = set; then
  18406. echo $ECHO_N "(cached) $ECHO_C" >&6
  18407. else
  18408. cat >conftest.$ac_ext <<_ACEOF
  18409. /* confdefs.h. */
  18410. _ACEOF
  18411. cat confdefs.h >>conftest.$ac_ext
  18412. cat >>conftest.$ac_ext <<_ACEOF
  18413. /* end confdefs.h. */
  18414. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18415. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18416. #define _doprnt innocuous__doprnt
  18417. /* System header to define __stub macros and hopefully few prototypes,
  18418. which can conflict with char _doprnt (); below.
  18419. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18420. <limits.h> exists even on freestanding compilers. */
  18421. #ifdef __STDC__
  18422. # include <limits.h>
  18423. #else
  18424. # include <assert.h>
  18425. #endif
  18426. #undef _doprnt
  18427. /* Override any GCC internal prototype to avoid an error.
  18428. Use char because int might match the return type of a GCC
  18429. builtin and then its argument prototype would still apply. */
  18430. #ifdef __cplusplus
  18431. extern "C"
  18432. #endif
  18433. char _doprnt ();
  18434. /* The GNU C library defines this for functions which it implements
  18435. to always fail with ENOSYS. Some functions are actually named
  18436. something starting with __ and the normal name is an alias. */
  18437. #if defined __stub__doprnt || defined __stub____doprnt
  18438. choke me
  18439. #endif
  18440. int
  18441. main ()
  18442. {
  18443. return _doprnt ();
  18444. ;
  18445. return 0;
  18446. }
  18447. _ACEOF
  18448. rm -f conftest.$ac_objext conftest$ac_exeext
  18449. if { (ac_try="$ac_link"
  18450. case "(($ac_try" in
  18451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18452. *) ac_try_echo=$ac_try;;
  18453. esac
  18454. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18455. (eval "$ac_link") 2>conftest.er1
  18456. ac_status=$?
  18457. grep -v '^ *+' conftest.er1 >conftest.err
  18458. rm -f conftest.er1
  18459. cat conftest.err >&5
  18460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18461. (exit $ac_status); } && {
  18462. test -z "$ac_cxx_werror_flag" ||
  18463. test ! -s conftest.err
  18464. } && test -s conftest$ac_exeext &&
  18465. $as_test_x conftest$ac_exeext; then
  18466. ac_cv_func__doprnt=yes
  18467. else
  18468. echo "$as_me: failed program was:" >&5
  18469. sed 's/^/| /' conftest.$ac_ext >&5
  18470. ac_cv_func__doprnt=no
  18471. fi
  18472. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18473. conftest$ac_exeext conftest.$ac_ext
  18474. fi
  18475. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18476. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18477. if test $ac_cv_func__doprnt = yes; then
  18478. cat >>confdefs.h <<\_ACEOF
  18479. #define HAVE_DOPRNT 1
  18480. _ACEOF
  18481. fi
  18482. fi
  18483. done
  18484. for ac_func in __argz_count \
  18485. __argz_next \
  18486. __argz_stringify \
  18487. atexit \
  18488. daemon \
  18489. ftruncate \
  18490. getcwd \
  18491. gethostbyaddr \
  18492. gethostbyname \
  18493. getpagesize \
  18494. inet_ntoa \
  18495. memchr \
  18496. memmove \
  18497. mempcpy \
  18498. memset \
  18499. mkdir \
  18500. munmap \
  18501. nl_langinfo \
  18502. posix_memalign \
  18503. putenv \
  18504. rmdir \
  18505. select \
  18506. setlocale \
  18507. sleep \
  18508. socket \
  18509. stpcpy \
  18510. strcasecmp \
  18511. strchr \
  18512. strcspn \
  18513. strdup \
  18514. strerror \
  18515. strncasecmp \
  18516. strstr \
  18517. strtol \
  18518. strtoul \
  18519. strtoull \
  18520. tzset \
  18521. unsetenv \
  18522. usleep
  18523. do
  18524. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18525. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18526. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18527. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18528. echo $ECHO_N "(cached) $ECHO_C" >&6
  18529. else
  18530. cat >conftest.$ac_ext <<_ACEOF
  18531. /* confdefs.h. */
  18532. _ACEOF
  18533. cat confdefs.h >>conftest.$ac_ext
  18534. cat >>conftest.$ac_ext <<_ACEOF
  18535. /* end confdefs.h. */
  18536. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18537. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18538. #define $ac_func innocuous_$ac_func
  18539. /* System header to define __stub macros and hopefully few prototypes,
  18540. which can conflict with char $ac_func (); below.
  18541. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18542. <limits.h> exists even on freestanding compilers. */
  18543. #ifdef __STDC__
  18544. # include <limits.h>
  18545. #else
  18546. # include <assert.h>
  18547. #endif
  18548. #undef $ac_func
  18549. /* Override any GCC internal prototype to avoid an error.
  18550. Use char because int might match the return type of a GCC
  18551. builtin and then its argument prototype would still apply. */
  18552. #ifdef __cplusplus
  18553. extern "C"
  18554. #endif
  18555. char $ac_func ();
  18556. /* The GNU C library defines this for functions which it implements
  18557. to always fail with ENOSYS. Some functions are actually named
  18558. something starting with __ and the normal name is an alias. */
  18559. #if defined __stub_$ac_func || defined __stub___$ac_func
  18560. choke me
  18561. #endif
  18562. int
  18563. main ()
  18564. {
  18565. return $ac_func ();
  18566. ;
  18567. return 0;
  18568. }
  18569. _ACEOF
  18570. rm -f conftest.$ac_objext conftest$ac_exeext
  18571. if { (ac_try="$ac_link"
  18572. case "(($ac_try" in
  18573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18574. *) ac_try_echo=$ac_try;;
  18575. esac
  18576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18577. (eval "$ac_link") 2>conftest.er1
  18578. ac_status=$?
  18579. grep -v '^ *+' conftest.er1 >conftest.err
  18580. rm -f conftest.er1
  18581. cat conftest.err >&5
  18582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18583. (exit $ac_status); } && {
  18584. test -z "$ac_cxx_werror_flag" ||
  18585. test ! -s conftest.err
  18586. } && test -s conftest$ac_exeext &&
  18587. $as_test_x conftest$ac_exeext; then
  18588. eval "$as_ac_var=yes"
  18589. else
  18590. echo "$as_me: failed program was:" >&5
  18591. sed 's/^/| /' conftest.$ac_ext >&5
  18592. eval "$as_ac_var=no"
  18593. fi
  18594. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18595. conftest$ac_exeext conftest.$ac_ext
  18596. fi
  18597. ac_res=`eval echo '${'$as_ac_var'}'`
  18598. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18599. echo "${ECHO_T}$ac_res" >&6; }
  18600. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18601. cat >>confdefs.h <<_ACEOF
  18602. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18603. _ACEOF
  18604. fi
  18605. done
  18606. if test "x$enable_epoll" = "xyes"; then
  18607. for ac_func in epoll_create
  18608. do
  18609. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18610. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18611. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18612. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18613. echo $ECHO_N "(cached) $ECHO_C" >&6
  18614. else
  18615. cat >conftest.$ac_ext <<_ACEOF
  18616. /* confdefs.h. */
  18617. _ACEOF
  18618. cat confdefs.h >>conftest.$ac_ext
  18619. cat >>conftest.$ac_ext <<_ACEOF
  18620. /* end confdefs.h. */
  18621. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18622. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18623. #define $ac_func innocuous_$ac_func
  18624. /* System header to define __stub macros and hopefully few prototypes,
  18625. which can conflict with char $ac_func (); below.
  18626. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18627. <limits.h> exists even on freestanding compilers. */
  18628. #ifdef __STDC__
  18629. # include <limits.h>
  18630. #else
  18631. # include <assert.h>
  18632. #endif
  18633. #undef $ac_func
  18634. /* Override any GCC internal prototype to avoid an error.
  18635. Use char because int might match the return type of a GCC
  18636. builtin and then its argument prototype would still apply. */
  18637. #ifdef __cplusplus
  18638. extern "C"
  18639. #endif
  18640. char $ac_func ();
  18641. /* The GNU C library defines this for functions which it implements
  18642. to always fail with ENOSYS. Some functions are actually named
  18643. something starting with __ and the normal name is an alias. */
  18644. #if defined __stub_$ac_func || defined __stub___$ac_func
  18645. choke me
  18646. #endif
  18647. int
  18648. main ()
  18649. {
  18650. return $ac_func ();
  18651. ;
  18652. return 0;
  18653. }
  18654. _ACEOF
  18655. rm -f conftest.$ac_objext conftest$ac_exeext
  18656. if { (ac_try="$ac_link"
  18657. case "(($ac_try" in
  18658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18659. *) ac_try_echo=$ac_try;;
  18660. esac
  18661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18662. (eval "$ac_link") 2>conftest.er1
  18663. ac_status=$?
  18664. grep -v '^ *+' conftest.er1 >conftest.err
  18665. rm -f conftest.er1
  18666. cat conftest.err >&5
  18667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18668. (exit $ac_status); } && {
  18669. test -z "$ac_cxx_werror_flag" ||
  18670. test ! -s conftest.err
  18671. } && test -s conftest$ac_exeext &&
  18672. $as_test_x conftest$ac_exeext; then
  18673. eval "$as_ac_var=yes"
  18674. else
  18675. echo "$as_me: failed program was:" >&5
  18676. sed 's/^/| /' conftest.$ac_ext >&5
  18677. eval "$as_ac_var=no"
  18678. fi
  18679. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18680. conftest$ac_exeext conftest.$ac_ext
  18681. fi
  18682. ac_res=`eval echo '${'$as_ac_var'}'`
  18683. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18684. echo "${ECHO_T}$ac_res" >&6; }
  18685. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18686. cat >>confdefs.h <<_ACEOF
  18687. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18688. _ACEOF
  18689. fi
  18690. done
  18691. fi
  18692. for ac_func in asctime_r
  18693. do
  18694. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18695. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18696. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18697. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18698. echo $ECHO_N "(cached) $ECHO_C" >&6
  18699. else
  18700. cat >conftest.$ac_ext <<_ACEOF
  18701. /* confdefs.h. */
  18702. _ACEOF
  18703. cat confdefs.h >>conftest.$ac_ext
  18704. cat >>conftest.$ac_ext <<_ACEOF
  18705. /* end confdefs.h. */
  18706. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18707. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18708. #define $ac_func innocuous_$ac_func
  18709. /* System header to define __stub macros and hopefully few prototypes,
  18710. which can conflict with char $ac_func (); below.
  18711. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18712. <limits.h> exists even on freestanding compilers. */
  18713. #ifdef __STDC__
  18714. # include <limits.h>
  18715. #else
  18716. # include <assert.h>
  18717. #endif
  18718. #undef $ac_func
  18719. /* Override any GCC internal prototype to avoid an error.
  18720. Use char because int might match the return type of a GCC
  18721. builtin and then its argument prototype would still apply. */
  18722. #ifdef __cplusplus
  18723. extern "C"
  18724. #endif
  18725. char $ac_func ();
  18726. /* The GNU C library defines this for functions which it implements
  18727. to always fail with ENOSYS. Some functions are actually named
  18728. something starting with __ and the normal name is an alias. */
  18729. #if defined __stub_$ac_func || defined __stub___$ac_func
  18730. choke me
  18731. #endif
  18732. int
  18733. main ()
  18734. {
  18735. return $ac_func ();
  18736. ;
  18737. return 0;
  18738. }
  18739. _ACEOF
  18740. rm -f conftest.$ac_objext conftest$ac_exeext
  18741. if { (ac_try="$ac_link"
  18742. case "(($ac_try" in
  18743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18744. *) ac_try_echo=$ac_try;;
  18745. esac
  18746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18747. (eval "$ac_link") 2>conftest.er1
  18748. ac_status=$?
  18749. grep -v '^ *+' conftest.er1 >conftest.err
  18750. rm -f conftest.er1
  18751. cat conftest.err >&5
  18752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18753. (exit $ac_status); } && {
  18754. test -z "$ac_cxx_werror_flag" ||
  18755. test ! -s conftest.err
  18756. } && test -s conftest$ac_exeext &&
  18757. $as_test_x conftest$ac_exeext; then
  18758. eval "$as_ac_var=yes"
  18759. else
  18760. echo "$as_me: failed program was:" >&5
  18761. sed 's/^/| /' conftest.$ac_ext >&5
  18762. eval "$as_ac_var=no"
  18763. fi
  18764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18765. conftest$ac_exeext conftest.$ac_ext
  18766. fi
  18767. ac_res=`eval echo '${'$as_ac_var'}'`
  18768. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18769. echo "${ECHO_T}$ac_res" >&6; }
  18770. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18771. cat >>confdefs.h <<_ACEOF
  18772. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18773. _ACEOF
  18774. if true; then
  18775. HAVE_ASCTIME_R_TRUE=
  18776. HAVE_ASCTIME_R_FALSE='#'
  18777. else
  18778. HAVE_ASCTIME_R_TRUE='#'
  18779. HAVE_ASCTIME_R_FALSE=
  18780. fi
  18781. else
  18782. if false; then
  18783. HAVE_ASCTIME_R_TRUE=
  18784. HAVE_ASCTIME_R_FALSE='#'
  18785. else
  18786. HAVE_ASCTIME_R_TRUE='#'
  18787. HAVE_ASCTIME_R_FALSE=
  18788. fi
  18789. fi
  18790. done
  18791. for ac_func in basename
  18792. do
  18793. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18794. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18795. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18796. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18797. echo $ECHO_N "(cached) $ECHO_C" >&6
  18798. else
  18799. cat >conftest.$ac_ext <<_ACEOF
  18800. /* confdefs.h. */
  18801. _ACEOF
  18802. cat confdefs.h >>conftest.$ac_ext
  18803. cat >>conftest.$ac_ext <<_ACEOF
  18804. /* end confdefs.h. */
  18805. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18806. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18807. #define $ac_func innocuous_$ac_func
  18808. /* System header to define __stub macros and hopefully few prototypes,
  18809. which can conflict with char $ac_func (); below.
  18810. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18811. <limits.h> exists even on freestanding compilers. */
  18812. #ifdef __STDC__
  18813. # include <limits.h>
  18814. #else
  18815. # include <assert.h>
  18816. #endif
  18817. #undef $ac_func
  18818. /* Override any GCC internal prototype to avoid an error.
  18819. Use char because int might match the return type of a GCC
  18820. builtin and then its argument prototype would still apply. */
  18821. #ifdef __cplusplus
  18822. extern "C"
  18823. #endif
  18824. char $ac_func ();
  18825. /* The GNU C library defines this for functions which it implements
  18826. to always fail with ENOSYS. Some functions are actually named
  18827. something starting with __ and the normal name is an alias. */
  18828. #if defined __stub_$ac_func || defined __stub___$ac_func
  18829. choke me
  18830. #endif
  18831. int
  18832. main ()
  18833. {
  18834. return $ac_func ();
  18835. ;
  18836. return 0;
  18837. }
  18838. _ACEOF
  18839. rm -f conftest.$ac_objext conftest$ac_exeext
  18840. if { (ac_try="$ac_link"
  18841. case "(($ac_try" in
  18842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18843. *) ac_try_echo=$ac_try;;
  18844. esac
  18845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18846. (eval "$ac_link") 2>conftest.er1
  18847. ac_status=$?
  18848. grep -v '^ *+' conftest.er1 >conftest.err
  18849. rm -f conftest.er1
  18850. cat conftest.err >&5
  18851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18852. (exit $ac_status); } && {
  18853. test -z "$ac_cxx_werror_flag" ||
  18854. test ! -s conftest.err
  18855. } && test -s conftest$ac_exeext &&
  18856. $as_test_x conftest$ac_exeext; then
  18857. eval "$as_ac_var=yes"
  18858. else
  18859. echo "$as_me: failed program was:" >&5
  18860. sed 's/^/| /' conftest.$ac_ext >&5
  18861. eval "$as_ac_var=no"
  18862. fi
  18863. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18864. conftest$ac_exeext conftest.$ac_ext
  18865. fi
  18866. ac_res=`eval echo '${'$as_ac_var'}'`
  18867. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18868. echo "${ECHO_T}$ac_res" >&6; }
  18869. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18870. cat >>confdefs.h <<_ACEOF
  18871. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18872. _ACEOF
  18873. if true; then
  18874. HAVE_BASENAME_TRUE=
  18875. HAVE_BASENAME_FALSE='#'
  18876. else
  18877. HAVE_BASENAME_TRUE='#'
  18878. HAVE_BASENAME_FALSE=
  18879. fi
  18880. else
  18881. if false; then
  18882. HAVE_BASENAME_TRUE=
  18883. HAVE_BASENAME_FALSE='#'
  18884. else
  18885. HAVE_BASENAME_TRUE='#'
  18886. HAVE_BASENAME_FALSE=
  18887. fi
  18888. fi
  18889. done
  18890. for ac_func in gai_strerror
  18891. do
  18892. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18893. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18894. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18895. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18896. echo $ECHO_N "(cached) $ECHO_C" >&6
  18897. else
  18898. cat >conftest.$ac_ext <<_ACEOF
  18899. /* confdefs.h. */
  18900. _ACEOF
  18901. cat confdefs.h >>conftest.$ac_ext
  18902. cat >>conftest.$ac_ext <<_ACEOF
  18903. /* end confdefs.h. */
  18904. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18905. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18906. #define $ac_func innocuous_$ac_func
  18907. /* System header to define __stub macros and hopefully few prototypes,
  18908. which can conflict with char $ac_func (); below.
  18909. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18910. <limits.h> exists even on freestanding compilers. */
  18911. #ifdef __STDC__
  18912. # include <limits.h>
  18913. #else
  18914. # include <assert.h>
  18915. #endif
  18916. #undef $ac_func
  18917. /* Override any GCC internal prototype to avoid an error.
  18918. Use char because int might match the return type of a GCC
  18919. builtin and then its argument prototype would still apply. */
  18920. #ifdef __cplusplus
  18921. extern "C"
  18922. #endif
  18923. char $ac_func ();
  18924. /* The GNU C library defines this for functions which it implements
  18925. to always fail with ENOSYS. Some functions are actually named
  18926. something starting with __ and the normal name is an alias. */
  18927. #if defined __stub_$ac_func || defined __stub___$ac_func
  18928. choke me
  18929. #endif
  18930. int
  18931. main ()
  18932. {
  18933. return $ac_func ();
  18934. ;
  18935. return 0;
  18936. }
  18937. _ACEOF
  18938. rm -f conftest.$ac_objext conftest$ac_exeext
  18939. if { (ac_try="$ac_link"
  18940. case "(($ac_try" in
  18941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18942. *) ac_try_echo=$ac_try;;
  18943. esac
  18944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18945. (eval "$ac_link") 2>conftest.er1
  18946. ac_status=$?
  18947. grep -v '^ *+' conftest.er1 >conftest.err
  18948. rm -f conftest.er1
  18949. cat conftest.err >&5
  18950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18951. (exit $ac_status); } && {
  18952. test -z "$ac_cxx_werror_flag" ||
  18953. test ! -s conftest.err
  18954. } && test -s conftest$ac_exeext &&
  18955. $as_test_x conftest$ac_exeext; then
  18956. eval "$as_ac_var=yes"
  18957. else
  18958. echo "$as_me: failed program was:" >&5
  18959. sed 's/^/| /' conftest.$ac_ext >&5
  18960. eval "$as_ac_var=no"
  18961. fi
  18962. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18963. conftest$ac_exeext conftest.$ac_ext
  18964. fi
  18965. ac_res=`eval echo '${'$as_ac_var'}'`
  18966. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18967. echo "${ECHO_T}$ac_res" >&6; }
  18968. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18969. cat >>confdefs.h <<_ACEOF
  18970. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18971. _ACEOF
  18972. if true; then
  18973. HAVE_GAI_STRERROR_TRUE=
  18974. HAVE_GAI_STRERROR_FALSE='#'
  18975. else
  18976. HAVE_GAI_STRERROR_TRUE='#'
  18977. HAVE_GAI_STRERROR_FALSE=
  18978. fi
  18979. else
  18980. if false; then
  18981. HAVE_GAI_STRERROR_TRUE=
  18982. HAVE_GAI_STRERROR_FALSE='#'
  18983. else
  18984. HAVE_GAI_STRERROR_TRUE='#'
  18985. HAVE_GAI_STRERROR_FALSE=
  18986. fi
  18987. fi
  18988. done
  18989. for ac_func in getaddrinfo
  18990. do
  18991. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18992. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18993. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18994. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18995. echo $ECHO_N "(cached) $ECHO_C" >&6
  18996. else
  18997. cat >conftest.$ac_ext <<_ACEOF
  18998. /* confdefs.h. */
  18999. _ACEOF
  19000. cat confdefs.h >>conftest.$ac_ext
  19001. cat >>conftest.$ac_ext <<_ACEOF
  19002. /* end confdefs.h. */
  19003. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19004. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19005. #define $ac_func innocuous_$ac_func
  19006. /* System header to define __stub macros and hopefully few prototypes,
  19007. which can conflict with char $ac_func (); below.
  19008. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19009. <limits.h> exists even on freestanding compilers. */
  19010. #ifdef __STDC__
  19011. # include <limits.h>
  19012. #else
  19013. # include <assert.h>
  19014. #endif
  19015. #undef $ac_func
  19016. /* Override any GCC internal prototype to avoid an error.
  19017. Use char because int might match the return type of a GCC
  19018. builtin and then its argument prototype would still apply. */
  19019. #ifdef __cplusplus
  19020. extern "C"
  19021. #endif
  19022. char $ac_func ();
  19023. /* The GNU C library defines this for functions which it implements
  19024. to always fail with ENOSYS. Some functions are actually named
  19025. something starting with __ and the normal name is an alias. */
  19026. #if defined __stub_$ac_func || defined __stub___$ac_func
  19027. choke me
  19028. #endif
  19029. int
  19030. main ()
  19031. {
  19032. return $ac_func ();
  19033. ;
  19034. return 0;
  19035. }
  19036. _ACEOF
  19037. rm -f conftest.$ac_objext conftest$ac_exeext
  19038. if { (ac_try="$ac_link"
  19039. case "(($ac_try" in
  19040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19041. *) ac_try_echo=$ac_try;;
  19042. esac
  19043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19044. (eval "$ac_link") 2>conftest.er1
  19045. ac_status=$?
  19046. grep -v '^ *+' conftest.er1 >conftest.err
  19047. rm -f conftest.er1
  19048. cat conftest.err >&5
  19049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19050. (exit $ac_status); } && {
  19051. test -z "$ac_cxx_werror_flag" ||
  19052. test ! -s conftest.err
  19053. } && test -s conftest$ac_exeext &&
  19054. $as_test_x conftest$ac_exeext; then
  19055. eval "$as_ac_var=yes"
  19056. else
  19057. echo "$as_me: failed program was:" >&5
  19058. sed 's/^/| /' conftest.$ac_ext >&5
  19059. eval "$as_ac_var=no"
  19060. fi
  19061. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19062. conftest$ac_exeext conftest.$ac_ext
  19063. fi
  19064. ac_res=`eval echo '${'$as_ac_var'}'`
  19065. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19066. echo "${ECHO_T}$ac_res" >&6; }
  19067. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19068. cat >>confdefs.h <<_ACEOF
  19069. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19070. _ACEOF
  19071. if true; then
  19072. HAVE_GETADDRINFO_TRUE=
  19073. HAVE_GETADDRINFO_FALSE='#'
  19074. else
  19075. HAVE_GETADDRINFO_TRUE='#'
  19076. HAVE_GETADDRINFO_FALSE=
  19077. fi
  19078. else
  19079. if false; then
  19080. HAVE_GETADDRINFO_TRUE=
  19081. HAVE_GETADDRINFO_FALSE='#'
  19082. else
  19083. HAVE_GETADDRINFO_TRUE='#'
  19084. HAVE_GETADDRINFO_FALSE=
  19085. fi
  19086. fi
  19087. done
  19088. for ac_func in gettimeofday
  19089. do
  19090. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19091. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19092. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19093. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19094. echo $ECHO_N "(cached) $ECHO_C" >&6
  19095. else
  19096. cat >conftest.$ac_ext <<_ACEOF
  19097. /* confdefs.h. */
  19098. _ACEOF
  19099. cat confdefs.h >>conftest.$ac_ext
  19100. cat >>conftest.$ac_ext <<_ACEOF
  19101. /* end confdefs.h. */
  19102. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19103. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19104. #define $ac_func innocuous_$ac_func
  19105. /* System header to define __stub macros and hopefully few prototypes,
  19106. which can conflict with char $ac_func (); below.
  19107. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19108. <limits.h> exists even on freestanding compilers. */
  19109. #ifdef __STDC__
  19110. # include <limits.h>
  19111. #else
  19112. # include <assert.h>
  19113. #endif
  19114. #undef $ac_func
  19115. /* Override any GCC internal prototype to avoid an error.
  19116. Use char because int might match the return type of a GCC
  19117. builtin and then its argument prototype would still apply. */
  19118. #ifdef __cplusplus
  19119. extern "C"
  19120. #endif
  19121. char $ac_func ();
  19122. /* The GNU C library defines this for functions which it implements
  19123. to always fail with ENOSYS. Some functions are actually named
  19124. something starting with __ and the normal name is an alias. */
  19125. #if defined __stub_$ac_func || defined __stub___$ac_func
  19126. choke me
  19127. #endif
  19128. int
  19129. main ()
  19130. {
  19131. return $ac_func ();
  19132. ;
  19133. return 0;
  19134. }
  19135. _ACEOF
  19136. rm -f conftest.$ac_objext conftest$ac_exeext
  19137. if { (ac_try="$ac_link"
  19138. case "(($ac_try" in
  19139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19140. *) ac_try_echo=$ac_try;;
  19141. esac
  19142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19143. (eval "$ac_link") 2>conftest.er1
  19144. ac_status=$?
  19145. grep -v '^ *+' conftest.er1 >conftest.err
  19146. rm -f conftest.er1
  19147. cat conftest.err >&5
  19148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19149. (exit $ac_status); } && {
  19150. test -z "$ac_cxx_werror_flag" ||
  19151. test ! -s conftest.err
  19152. } && test -s conftest$ac_exeext &&
  19153. $as_test_x conftest$ac_exeext; then
  19154. eval "$as_ac_var=yes"
  19155. else
  19156. echo "$as_me: failed program was:" >&5
  19157. sed 's/^/| /' conftest.$ac_ext >&5
  19158. eval "$as_ac_var=no"
  19159. fi
  19160. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19161. conftest$ac_exeext conftest.$ac_ext
  19162. fi
  19163. ac_res=`eval echo '${'$as_ac_var'}'`
  19164. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19165. echo "${ECHO_T}$ac_res" >&6; }
  19166. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19167. cat >>confdefs.h <<_ACEOF
  19168. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19169. _ACEOF
  19170. if true; then
  19171. HAVE_GETTIMEOFDAY_TRUE=
  19172. HAVE_GETTIMEOFDAY_FALSE='#'
  19173. else
  19174. HAVE_GETTIMEOFDAY_TRUE='#'
  19175. HAVE_GETTIMEOFDAY_FALSE=
  19176. fi
  19177. else
  19178. if false; then
  19179. HAVE_GETTIMEOFDAY_TRUE=
  19180. HAVE_GETTIMEOFDAY_FALSE='#'
  19181. else
  19182. HAVE_GETTIMEOFDAY_TRUE='#'
  19183. HAVE_GETTIMEOFDAY_FALSE=
  19184. fi
  19185. fi
  19186. done
  19187. for ac_func in inet_aton
  19188. do
  19189. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19190. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19191. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19192. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19193. echo $ECHO_N "(cached) $ECHO_C" >&6
  19194. else
  19195. cat >conftest.$ac_ext <<_ACEOF
  19196. /* confdefs.h. */
  19197. _ACEOF
  19198. cat confdefs.h >>conftest.$ac_ext
  19199. cat >>conftest.$ac_ext <<_ACEOF
  19200. /* end confdefs.h. */
  19201. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19202. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19203. #define $ac_func innocuous_$ac_func
  19204. /* System header to define __stub macros and hopefully few prototypes,
  19205. which can conflict with char $ac_func (); below.
  19206. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19207. <limits.h> exists even on freestanding compilers. */
  19208. #ifdef __STDC__
  19209. # include <limits.h>
  19210. #else
  19211. # include <assert.h>
  19212. #endif
  19213. #undef $ac_func
  19214. /* Override any GCC internal prototype to avoid an error.
  19215. Use char because int might match the return type of a GCC
  19216. builtin and then its argument prototype would still apply. */
  19217. #ifdef __cplusplus
  19218. extern "C"
  19219. #endif
  19220. char $ac_func ();
  19221. /* The GNU C library defines this for functions which it implements
  19222. to always fail with ENOSYS. Some functions are actually named
  19223. something starting with __ and the normal name is an alias. */
  19224. #if defined __stub_$ac_func || defined __stub___$ac_func
  19225. choke me
  19226. #endif
  19227. int
  19228. main ()
  19229. {
  19230. return $ac_func ();
  19231. ;
  19232. return 0;
  19233. }
  19234. _ACEOF
  19235. rm -f conftest.$ac_objext conftest$ac_exeext
  19236. if { (ac_try="$ac_link"
  19237. case "(($ac_try" in
  19238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19239. *) ac_try_echo=$ac_try;;
  19240. esac
  19241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19242. (eval "$ac_link") 2>conftest.er1
  19243. ac_status=$?
  19244. grep -v '^ *+' conftest.er1 >conftest.err
  19245. rm -f conftest.er1
  19246. cat conftest.err >&5
  19247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19248. (exit $ac_status); } && {
  19249. test -z "$ac_cxx_werror_flag" ||
  19250. test ! -s conftest.err
  19251. } && test -s conftest$ac_exeext &&
  19252. $as_test_x conftest$ac_exeext; then
  19253. eval "$as_ac_var=yes"
  19254. else
  19255. echo "$as_me: failed program was:" >&5
  19256. sed 's/^/| /' conftest.$ac_ext >&5
  19257. eval "$as_ac_var=no"
  19258. fi
  19259. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19260. conftest$ac_exeext conftest.$ac_ext
  19261. fi
  19262. ac_res=`eval echo '${'$as_ac_var'}'`
  19263. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19264. echo "${ECHO_T}$ac_res" >&6; }
  19265. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19266. cat >>confdefs.h <<_ACEOF
  19267. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19268. _ACEOF
  19269. if true; then
  19270. HAVE_INET_ATON_TRUE=
  19271. HAVE_INET_ATON_FALSE='#'
  19272. else
  19273. HAVE_INET_ATON_TRUE='#'
  19274. HAVE_INET_ATON_FALSE=
  19275. fi
  19276. else
  19277. if false; then
  19278. HAVE_INET_ATON_TRUE=
  19279. HAVE_INET_ATON_FALSE='#'
  19280. else
  19281. HAVE_INET_ATON_TRUE='#'
  19282. HAVE_INET_ATON_FALSE=
  19283. fi
  19284. fi
  19285. done
  19286. for ac_func in localtime_r
  19287. do
  19288. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19289. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19290. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19291. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19292. echo $ECHO_N "(cached) $ECHO_C" >&6
  19293. else
  19294. cat >conftest.$ac_ext <<_ACEOF
  19295. /* confdefs.h. */
  19296. _ACEOF
  19297. cat confdefs.h >>conftest.$ac_ext
  19298. cat >>conftest.$ac_ext <<_ACEOF
  19299. /* end confdefs.h. */
  19300. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19301. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19302. #define $ac_func innocuous_$ac_func
  19303. /* System header to define __stub macros and hopefully few prototypes,
  19304. which can conflict with char $ac_func (); below.
  19305. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19306. <limits.h> exists even on freestanding compilers. */
  19307. #ifdef __STDC__
  19308. # include <limits.h>
  19309. #else
  19310. # include <assert.h>
  19311. #endif
  19312. #undef $ac_func
  19313. /* Override any GCC internal prototype to avoid an error.
  19314. Use char because int might match the return type of a GCC
  19315. builtin and then its argument prototype would still apply. */
  19316. #ifdef __cplusplus
  19317. extern "C"
  19318. #endif
  19319. char $ac_func ();
  19320. /* The GNU C library defines this for functions which it implements
  19321. to always fail with ENOSYS. Some functions are actually named
  19322. something starting with __ and the normal name is an alias. */
  19323. #if defined __stub_$ac_func || defined __stub___$ac_func
  19324. choke me
  19325. #endif
  19326. int
  19327. main ()
  19328. {
  19329. return $ac_func ();
  19330. ;
  19331. return 0;
  19332. }
  19333. _ACEOF
  19334. rm -f conftest.$ac_objext conftest$ac_exeext
  19335. if { (ac_try="$ac_link"
  19336. case "(($ac_try" in
  19337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19338. *) ac_try_echo=$ac_try;;
  19339. esac
  19340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19341. (eval "$ac_link") 2>conftest.er1
  19342. ac_status=$?
  19343. grep -v '^ *+' conftest.er1 >conftest.err
  19344. rm -f conftest.er1
  19345. cat conftest.err >&5
  19346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19347. (exit $ac_status); } && {
  19348. test -z "$ac_cxx_werror_flag" ||
  19349. test ! -s conftest.err
  19350. } && test -s conftest$ac_exeext &&
  19351. $as_test_x conftest$ac_exeext; then
  19352. eval "$as_ac_var=yes"
  19353. else
  19354. echo "$as_me: failed program was:" >&5
  19355. sed 's/^/| /' conftest.$ac_ext >&5
  19356. eval "$as_ac_var=no"
  19357. fi
  19358. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19359. conftest$ac_exeext conftest.$ac_ext
  19360. fi
  19361. ac_res=`eval echo '${'$as_ac_var'}'`
  19362. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19363. echo "${ECHO_T}$ac_res" >&6; }
  19364. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19365. cat >>confdefs.h <<_ACEOF
  19366. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19367. _ACEOF
  19368. if true; then
  19369. HAVE_LOCALTIME_R_TRUE=
  19370. HAVE_LOCALTIME_R_FALSE='#'
  19371. else
  19372. HAVE_LOCALTIME_R_TRUE='#'
  19373. HAVE_LOCALTIME_R_FALSE=
  19374. fi
  19375. else
  19376. if false; then
  19377. HAVE_LOCALTIME_R_TRUE=
  19378. HAVE_LOCALTIME_R_FALSE='#'
  19379. else
  19380. HAVE_LOCALTIME_R_TRUE='#'
  19381. HAVE_LOCALTIME_R_FALSE=
  19382. fi
  19383. fi
  19384. done
  19385. for ac_func in strptime
  19386. do
  19387. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19388. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19389. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19390. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19391. echo $ECHO_N "(cached) $ECHO_C" >&6
  19392. else
  19393. cat >conftest.$ac_ext <<_ACEOF
  19394. /* confdefs.h. */
  19395. _ACEOF
  19396. cat confdefs.h >>conftest.$ac_ext
  19397. cat >>conftest.$ac_ext <<_ACEOF
  19398. /* end confdefs.h. */
  19399. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19400. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19401. #define $ac_func innocuous_$ac_func
  19402. /* System header to define __stub macros and hopefully few prototypes,
  19403. which can conflict with char $ac_func (); below.
  19404. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19405. <limits.h> exists even on freestanding compilers. */
  19406. #ifdef __STDC__
  19407. # include <limits.h>
  19408. #else
  19409. # include <assert.h>
  19410. #endif
  19411. #undef $ac_func
  19412. /* Override any GCC internal prototype to avoid an error.
  19413. Use char because int might match the return type of a GCC
  19414. builtin and then its argument prototype would still apply. */
  19415. #ifdef __cplusplus
  19416. extern "C"
  19417. #endif
  19418. char $ac_func ();
  19419. /* The GNU C library defines this for functions which it implements
  19420. to always fail with ENOSYS. Some functions are actually named
  19421. something starting with __ and the normal name is an alias. */
  19422. #if defined __stub_$ac_func || defined __stub___$ac_func
  19423. choke me
  19424. #endif
  19425. int
  19426. main ()
  19427. {
  19428. return $ac_func ();
  19429. ;
  19430. return 0;
  19431. }
  19432. _ACEOF
  19433. rm -f conftest.$ac_objext conftest$ac_exeext
  19434. if { (ac_try="$ac_link"
  19435. case "(($ac_try" in
  19436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19437. *) ac_try_echo=$ac_try;;
  19438. esac
  19439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19440. (eval "$ac_link") 2>conftest.er1
  19441. ac_status=$?
  19442. grep -v '^ *+' conftest.er1 >conftest.err
  19443. rm -f conftest.er1
  19444. cat conftest.err >&5
  19445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19446. (exit $ac_status); } && {
  19447. test -z "$ac_cxx_werror_flag" ||
  19448. test ! -s conftest.err
  19449. } && test -s conftest$ac_exeext &&
  19450. $as_test_x conftest$ac_exeext; then
  19451. eval "$as_ac_var=yes"
  19452. else
  19453. echo "$as_me: failed program was:" >&5
  19454. sed 's/^/| /' conftest.$ac_ext >&5
  19455. eval "$as_ac_var=no"
  19456. fi
  19457. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19458. conftest$ac_exeext conftest.$ac_ext
  19459. fi
  19460. ac_res=`eval echo '${'$as_ac_var'}'`
  19461. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19462. echo "${ECHO_T}$ac_res" >&6; }
  19463. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19464. cat >>confdefs.h <<_ACEOF
  19465. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19466. _ACEOF
  19467. if true; then
  19468. HAVE_STRPTIME_TRUE=
  19469. HAVE_STRPTIME_FALSE='#'
  19470. else
  19471. HAVE_STRPTIME_TRUE='#'
  19472. HAVE_STRPTIME_FALSE=
  19473. fi
  19474. else
  19475. if false; then
  19476. HAVE_STRPTIME_TRUE=
  19477. HAVE_STRPTIME_FALSE='#'
  19478. else
  19479. HAVE_STRPTIME_TRUE='#'
  19480. HAVE_STRPTIME_FALSE=
  19481. fi
  19482. fi
  19483. done
  19484. for ac_func in timegm
  19485. do
  19486. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19487. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19488. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19489. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19490. echo $ECHO_N "(cached) $ECHO_C" >&6
  19491. else
  19492. cat >conftest.$ac_ext <<_ACEOF
  19493. /* confdefs.h. */
  19494. _ACEOF
  19495. cat confdefs.h >>conftest.$ac_ext
  19496. cat >>conftest.$ac_ext <<_ACEOF
  19497. /* end confdefs.h. */
  19498. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19499. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19500. #define $ac_func innocuous_$ac_func
  19501. /* System header to define __stub macros and hopefully few prototypes,
  19502. which can conflict with char $ac_func (); below.
  19503. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19504. <limits.h> exists even on freestanding compilers. */
  19505. #ifdef __STDC__
  19506. # include <limits.h>
  19507. #else
  19508. # include <assert.h>
  19509. #endif
  19510. #undef $ac_func
  19511. /* Override any GCC internal prototype to avoid an error.
  19512. Use char because int might match the return type of a GCC
  19513. builtin and then its argument prototype would still apply. */
  19514. #ifdef __cplusplus
  19515. extern "C"
  19516. #endif
  19517. char $ac_func ();
  19518. /* The GNU C library defines this for functions which it implements
  19519. to always fail with ENOSYS. Some functions are actually named
  19520. something starting with __ and the normal name is an alias. */
  19521. #if defined __stub_$ac_func || defined __stub___$ac_func
  19522. choke me
  19523. #endif
  19524. int
  19525. main ()
  19526. {
  19527. return $ac_func ();
  19528. ;
  19529. return 0;
  19530. }
  19531. _ACEOF
  19532. rm -f conftest.$ac_objext conftest$ac_exeext
  19533. if { (ac_try="$ac_link"
  19534. case "(($ac_try" in
  19535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19536. *) ac_try_echo=$ac_try;;
  19537. esac
  19538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19539. (eval "$ac_link") 2>conftest.er1
  19540. ac_status=$?
  19541. grep -v '^ *+' conftest.er1 >conftest.err
  19542. rm -f conftest.er1
  19543. cat conftest.err >&5
  19544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19545. (exit $ac_status); } && {
  19546. test -z "$ac_cxx_werror_flag" ||
  19547. test ! -s conftest.err
  19548. } && test -s conftest$ac_exeext &&
  19549. $as_test_x conftest$ac_exeext; then
  19550. eval "$as_ac_var=yes"
  19551. else
  19552. echo "$as_me: failed program was:" >&5
  19553. sed 's/^/| /' conftest.$ac_ext >&5
  19554. eval "$as_ac_var=no"
  19555. fi
  19556. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19557. conftest$ac_exeext conftest.$ac_ext
  19558. fi
  19559. ac_res=`eval echo '${'$as_ac_var'}'`
  19560. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19561. echo "${ECHO_T}$ac_res" >&6; }
  19562. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19563. cat >>confdefs.h <<_ACEOF
  19564. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19565. _ACEOF
  19566. if true; then
  19567. HAVE_TIMEGM_TRUE=
  19568. HAVE_TIMEGM_FALSE='#'
  19569. else
  19570. HAVE_TIMEGM_TRUE='#'
  19571. HAVE_TIMEGM_FALSE=
  19572. fi
  19573. else
  19574. if false; then
  19575. HAVE_TIMEGM_TRUE=
  19576. HAVE_TIMEGM_FALSE='#'
  19577. else
  19578. HAVE_TIMEGM_TRUE='#'
  19579. HAVE_TIMEGM_FALSE=
  19580. fi
  19581. fi
  19582. done
  19583. case "$target" in
  19584. *mingw*)
  19585. if true; then
  19586. HAVE_GETADDRINFO_TRUE=
  19587. HAVE_GETADDRINFO_FALSE='#'
  19588. else
  19589. HAVE_GETADDRINFO_TRUE='#'
  19590. HAVE_GETADDRINFO_FALSE=
  19591. fi
  19592. if false; then
  19593. HAVE_GAI_STRERROR_TRUE=
  19594. HAVE_GAI_STRERROR_FALSE='#'
  19595. else
  19596. HAVE_GAI_STRERROR_TRUE='#'
  19597. HAVE_GAI_STRERROR_FALSE=
  19598. fi
  19599. ;;
  19600. esac
  19601. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19602. cat >confcache <<\_ACEOF
  19603. # This file is a shell script that caches the results of configure
  19604. # tests run on this system so they can be shared between configure
  19605. # scripts and configure runs, see configure's option --config-cache.
  19606. # It is not useful on other systems. If it contains results you don't
  19607. # want to keep, you may remove or edit it.
  19608. #
  19609. # config.status only pays attention to the cache file if you give it
  19610. # the --recheck option to rerun configure.
  19611. #
  19612. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19613. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19614. # following values.
  19615. _ACEOF
  19616. # The following way of writing the cache mishandles newlines in values,
  19617. # but we know of no workaround that is simple, portable, and efficient.
  19618. # So, we kill variables containing newlines.
  19619. # Ultrix sh set writes to stderr and can't be redirected directly,
  19620. # and sets the high bit in the cache file unless we assign to the vars.
  19621. (
  19622. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19623. eval ac_val=\$$ac_var
  19624. case $ac_val in #(
  19625. *${as_nl}*)
  19626. case $ac_var in #(
  19627. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19628. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19629. esac
  19630. case $ac_var in #(
  19631. _ | IFS | as_nl) ;; #(
  19632. *) $as_unset $ac_var ;;
  19633. esac ;;
  19634. esac
  19635. done
  19636. (set) 2>&1 |
  19637. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19638. *${as_nl}ac_space=\ *)
  19639. # `set' does not quote correctly, so add quotes (double-quote
  19640. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19641. sed -n \
  19642. "s/'/'\\\\''/g;
  19643. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19644. ;; #(
  19645. *)
  19646. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19647. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19648. ;;
  19649. esac |
  19650. sort
  19651. ) |
  19652. sed '
  19653. /^ac_cv_env_/b end
  19654. t clear
  19655. :clear
  19656. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19657. t end
  19658. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19659. :end' >>confcache
  19660. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19661. if test -w "$cache_file"; then
  19662. test "x$cache_file" != "x/dev/null" &&
  19663. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19664. echo "$as_me: updating cache $cache_file" >&6;}
  19665. cat confcache >$cache_file
  19666. else
  19667. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19668. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19669. fi
  19670. fi
  19671. rm -f confcache
  19672. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19673. # Let make expand exec_prefix.
  19674. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19675. DEFS=-DHAVE_CONFIG_H
  19676. ac_libobjs=
  19677. ac_ltlibobjs=
  19678. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19679. # 1. Remove the extension, and $U if already installed.
  19680. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19681. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19682. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19683. # will be set to the directory where LIBOBJS objects are built.
  19684. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19685. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19686. done
  19687. LIBOBJS=$ac_libobjs
  19688. LTLIBOBJS=$ac_ltlibobjs
  19689. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19690. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19691. Usually this means the macro was only invoked conditionally." >&5
  19692. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19693. Usually this means the macro was only invoked conditionally." >&2;}
  19694. { (exit 1); exit 1; }; }
  19695. fi
  19696. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19697. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19698. Usually this means the macro was only invoked conditionally." >&5
  19699. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19700. Usually this means the macro was only invoked conditionally." >&2;}
  19701. { (exit 1); exit 1; }; }
  19702. fi
  19703. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19704. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19705. Usually this means the macro was only invoked conditionally." >&5
  19706. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19707. Usually this means the macro was only invoked conditionally." >&2;}
  19708. { (exit 1); exit 1; }; }
  19709. fi
  19710. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19711. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19712. Usually this means the macro was only invoked conditionally." >&5
  19713. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19714. Usually this means the macro was only invoked conditionally." >&2;}
  19715. { (exit 1); exit 1; }; }
  19716. fi
  19717. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19718. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19719. Usually this means the macro was only invoked conditionally." >&5
  19720. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19721. Usually this means the macro was only invoked conditionally." >&2;}
  19722. { (exit 1); exit 1; }; }
  19723. fi
  19724. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  19725. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19726. Usually this means the macro was only invoked conditionally." >&5
  19727. echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19728. Usually this means the macro was only invoked conditionally." >&2;}
  19729. { (exit 1); exit 1; }; }
  19730. fi
  19731. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  19732. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  19733. Usually this means the macro was only invoked conditionally." >&5
  19734. echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  19735. Usually this means the macro was only invoked conditionally." >&2;}
  19736. { (exit 1); exit 1; }; }
  19737. fi
  19738. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19739. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19740. Usually this means the macro was only invoked conditionally." >&5
  19741. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19742. Usually this means the macro was only invoked conditionally." >&2;}
  19743. { (exit 1); exit 1; }; }
  19744. fi
  19745. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19746. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19747. Usually this means the macro was only invoked conditionally." >&5
  19748. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19749. Usually this means the macro was only invoked conditionally." >&2;}
  19750. { (exit 1); exit 1; }; }
  19751. fi
  19752. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19753. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19754. Usually this means the macro was only invoked conditionally." >&5
  19755. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19756. Usually this means the macro was only invoked conditionally." >&2;}
  19757. { (exit 1); exit 1; }; }
  19758. fi
  19759. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19760. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19761. Usually this means the macro was only invoked conditionally." >&5
  19762. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19763. Usually this means the macro was only invoked conditionally." >&2;}
  19764. { (exit 1); exit 1; }; }
  19765. fi
  19766. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19767. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19768. Usually this means the macro was only invoked conditionally." >&5
  19769. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19770. Usually this means the macro was only invoked conditionally." >&2;}
  19771. { (exit 1); exit 1; }; }
  19772. fi
  19773. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19774. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19775. Usually this means the macro was only invoked conditionally." >&5
  19776. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19777. Usually this means the macro was only invoked conditionally." >&2;}
  19778. { (exit 1); exit 1; }; }
  19779. fi
  19780. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19781. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19782. Usually this means the macro was only invoked conditionally." >&5
  19783. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19784. Usually this means the macro was only invoked conditionally." >&2;}
  19785. { (exit 1); exit 1; }; }
  19786. fi
  19787. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19788. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19789. Usually this means the macro was only invoked conditionally." >&5
  19790. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19791. Usually this means the macro was only invoked conditionally." >&2;}
  19792. { (exit 1); exit 1; }; }
  19793. fi
  19794. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19795. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19796. Usually this means the macro was only invoked conditionally." >&5
  19797. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19798. Usually this means the macro was only invoked conditionally." >&2;}
  19799. { (exit 1); exit 1; }; }
  19800. fi
  19801. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19802. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19803. Usually this means the macro was only invoked conditionally." >&5
  19804. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19805. Usually this means the macro was only invoked conditionally." >&2;}
  19806. { (exit 1); exit 1; }; }
  19807. fi
  19808. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19809. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19810. Usually this means the macro was only invoked conditionally." >&5
  19811. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19812. Usually this means the macro was only invoked conditionally." >&2;}
  19813. { (exit 1); exit 1; }; }
  19814. fi
  19815. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19816. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19817. Usually this means the macro was only invoked conditionally." >&5
  19818. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19819. Usually this means the macro was only invoked conditionally." >&2;}
  19820. { (exit 1); exit 1; }; }
  19821. fi
  19822. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19823. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19824. Usually this means the macro was only invoked conditionally." >&5
  19825. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19826. Usually this means the macro was only invoked conditionally." >&2;}
  19827. { (exit 1); exit 1; }; }
  19828. fi
  19829. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19830. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19831. Usually this means the macro was only invoked conditionally." >&5
  19832. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19833. Usually this means the macro was only invoked conditionally." >&2;}
  19834. { (exit 1); exit 1; }; }
  19835. fi
  19836. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19837. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19838. Usually this means the macro was only invoked conditionally." >&5
  19839. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19840. Usually this means the macro was only invoked conditionally." >&2;}
  19841. { (exit 1); exit 1; }; }
  19842. fi
  19843. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19844. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19845. Usually this means the macro was only invoked conditionally." >&5
  19846. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19847. Usually this means the macro was only invoked conditionally." >&2;}
  19848. { (exit 1); exit 1; }; }
  19849. fi
  19850. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19851. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19852. Usually this means the macro was only invoked conditionally." >&5
  19853. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19854. Usually this means the macro was only invoked conditionally." >&2;}
  19855. { (exit 1); exit 1; }; }
  19856. fi
  19857. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19858. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19859. Usually this means the macro was only invoked conditionally." >&5
  19860. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19861. Usually this means the macro was only invoked conditionally." >&2;}
  19862. { (exit 1); exit 1; }; }
  19863. fi
  19864. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19865. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19866. Usually this means the macro was only invoked conditionally." >&5
  19867. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19868. Usually this means the macro was only invoked conditionally." >&2;}
  19869. { (exit 1); exit 1; }; }
  19870. fi
  19871. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19872. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19873. Usually this means the macro was only invoked conditionally." >&5
  19874. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19875. Usually this means the macro was only invoked conditionally." >&2;}
  19876. { (exit 1); exit 1; }; }
  19877. fi
  19878. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19879. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19880. Usually this means the macro was only invoked conditionally." >&5
  19881. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19882. Usually this means the macro was only invoked conditionally." >&2;}
  19883. { (exit 1); exit 1; }; }
  19884. fi
  19885. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19886. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19887. Usually this means the macro was only invoked conditionally." >&5
  19888. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19889. Usually this means the macro was only invoked conditionally." >&2;}
  19890. { (exit 1); exit 1; }; }
  19891. fi
  19892. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19893. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19894. Usually this means the macro was only invoked conditionally." >&5
  19895. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19896. Usually this means the macro was only invoked conditionally." >&2;}
  19897. { (exit 1); exit 1; }; }
  19898. fi
  19899. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19900. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19901. Usually this means the macro was only invoked conditionally." >&5
  19902. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19903. Usually this means the macro was only invoked conditionally." >&2;}
  19904. { (exit 1); exit 1; }; }
  19905. fi
  19906. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19907. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19908. Usually this means the macro was only invoked conditionally." >&5
  19909. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19910. Usually this means the macro was only invoked conditionally." >&2;}
  19911. { (exit 1); exit 1; }; }
  19912. fi
  19913. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19914. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19915. Usually this means the macro was only invoked conditionally." >&5
  19916. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19917. Usually this means the macro was only invoked conditionally." >&2;}
  19918. { (exit 1); exit 1; }; }
  19919. fi
  19920. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19921. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19922. Usually this means the macro was only invoked conditionally." >&5
  19923. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19924. Usually this means the macro was only invoked conditionally." >&2;}
  19925. { (exit 1); exit 1; }; }
  19926. fi
  19927. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19928. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19929. Usually this means the macro was only invoked conditionally." >&5
  19930. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19931. Usually this means the macro was only invoked conditionally." >&2;}
  19932. { (exit 1); exit 1; }; }
  19933. fi
  19934. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19935. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19936. Usually this means the macro was only invoked conditionally." >&5
  19937. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19938. Usually this means the macro was only invoked conditionally." >&2;}
  19939. { (exit 1); exit 1; }; }
  19940. fi
  19941. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19942. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19943. Usually this means the macro was only invoked conditionally." >&5
  19944. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19945. Usually this means the macro was only invoked conditionally." >&2;}
  19946. { (exit 1); exit 1; }; }
  19947. fi
  19948. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19949. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19950. Usually this means the macro was only invoked conditionally." >&5
  19951. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19952. Usually this means the macro was only invoked conditionally." >&2;}
  19953. { (exit 1); exit 1; }; }
  19954. fi
  19955. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19956. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19957. Usually this means the macro was only invoked conditionally." >&5
  19958. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19959. Usually this means the macro was only invoked conditionally." >&2;}
  19960. { (exit 1); exit 1; }; }
  19961. fi
  19962. : ${CONFIG_STATUS=./config.status}
  19963. ac_clean_files_save=$ac_clean_files
  19964. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19965. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19966. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19967. cat >$CONFIG_STATUS <<_ACEOF
  19968. #! $SHELL
  19969. # Generated by $as_me.
  19970. # Run this file to recreate the current configuration.
  19971. # Compiler output produced by configure, useful for debugging
  19972. # configure, is in config.log if it exists.
  19973. debug=false
  19974. ac_cs_recheck=false
  19975. ac_cs_silent=false
  19976. SHELL=\${CONFIG_SHELL-$SHELL}
  19977. _ACEOF
  19978. cat >>$CONFIG_STATUS <<\_ACEOF
  19979. ## --------------------- ##
  19980. ## M4sh Initialization. ##
  19981. ## --------------------- ##
  19982. # Be more Bourne compatible
  19983. DUALCASE=1; export DUALCASE # for MKS sh
  19984. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19985. emulate sh
  19986. NULLCMD=:
  19987. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19988. # is contrary to our usage. Disable this feature.
  19989. alias -g '${1+"$@"}'='"$@"'
  19990. setopt NO_GLOB_SUBST
  19991. else
  19992. case `(set -o) 2>/dev/null` in
  19993. *posix*) set -o posix ;;
  19994. esac
  19995. fi
  19996. # PATH needs CR
  19997. # Avoid depending upon Character Ranges.
  19998. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19999. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20000. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20001. as_cr_digits='0123456789'
  20002. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20003. # The user is always right.
  20004. if test "${PATH_SEPARATOR+set}" != set; then
  20005. echo "#! /bin/sh" >conf$$.sh
  20006. echo "exit 0" >>conf$$.sh
  20007. chmod +x conf$$.sh
  20008. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20009. PATH_SEPARATOR=';'
  20010. else
  20011. PATH_SEPARATOR=:
  20012. fi
  20013. rm -f conf$$.sh
  20014. fi
  20015. # Support unset when possible.
  20016. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20017. as_unset=unset
  20018. else
  20019. as_unset=false
  20020. fi
  20021. # IFS
  20022. # We need space, tab and new line, in precisely that order. Quoting is
  20023. # there to prevent editors from complaining about space-tab.
  20024. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20025. # splitting by setting IFS to empty value.)
  20026. as_nl='
  20027. '
  20028. IFS=" "" $as_nl"
  20029. # Find who we are. Look in the path if we contain no directory separator.
  20030. case $0 in
  20031. *[\\/]* ) as_myself=$0 ;;
  20032. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20033. for as_dir in $PATH
  20034. do
  20035. IFS=$as_save_IFS
  20036. test -z "$as_dir" && as_dir=.
  20037. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20038. done
  20039. IFS=$as_save_IFS
  20040. ;;
  20041. esac
  20042. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20043. # in which case we are not to be found in the path.
  20044. if test "x$as_myself" = x; then
  20045. as_myself=$0
  20046. fi
  20047. if test ! -f "$as_myself"; then
  20048. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20049. { (exit 1); exit 1; }
  20050. fi
  20051. # Work around bugs in pre-3.0 UWIN ksh.
  20052. for as_var in ENV MAIL MAILPATH
  20053. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20054. done
  20055. PS1='$ '
  20056. PS2='> '
  20057. PS4='+ '
  20058. # NLS nuisances.
  20059. for as_var in \
  20060. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20061. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20062. LC_TELEPHONE LC_TIME
  20063. do
  20064. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20065. eval $as_var=C; export $as_var
  20066. else
  20067. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20068. fi
  20069. done
  20070. # Required to use basename.
  20071. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20072. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20073. as_expr=expr
  20074. else
  20075. as_expr=false
  20076. fi
  20077. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20078. as_basename=basename
  20079. else
  20080. as_basename=false
  20081. fi
  20082. # Name of the executable.
  20083. as_me=`$as_basename -- "$0" ||
  20084. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20085. X"$0" : 'X\(//\)$' \| \
  20086. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20087. echo X/"$0" |
  20088. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20089. s//\1/
  20090. q
  20091. }
  20092. /^X\/\(\/\/\)$/{
  20093. s//\1/
  20094. q
  20095. }
  20096. /^X\/\(\/\).*/{
  20097. s//\1/
  20098. q
  20099. }
  20100. s/.*/./; q'`
  20101. # CDPATH.
  20102. $as_unset CDPATH
  20103. as_lineno_1=$LINENO
  20104. as_lineno_2=$LINENO
  20105. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20106. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20107. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20108. # uniformly replaced by the line number. The first 'sed' inserts a
  20109. # line-number line after each line using $LINENO; the second 'sed'
  20110. # does the real work. The second script uses 'N' to pair each
  20111. # line-number line with the line containing $LINENO, and appends
  20112. # trailing '-' during substitution so that $LINENO is not a special
  20113. # case at line end.
  20114. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20115. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20116. # E. McMahon (1931-1989) for sed's syntax. :-)
  20117. sed -n '
  20118. p
  20119. /[$]LINENO/=
  20120. ' <$as_myself |
  20121. sed '
  20122. s/[$]LINENO.*/&-/
  20123. t lineno
  20124. b
  20125. :lineno
  20126. N
  20127. :loop
  20128. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20129. t loop
  20130. s/-\n.*//
  20131. ' >$as_me.lineno &&
  20132. chmod +x "$as_me.lineno" ||
  20133. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20134. { (exit 1); exit 1; }; }
  20135. # Don't try to exec as it changes $[0], causing all sort of problems
  20136. # (the dirname of $[0] is not the place where we might find the
  20137. # original and so on. Autoconf is especially sensitive to this).
  20138. . "./$as_me.lineno"
  20139. # Exit status is that of the last command.
  20140. exit
  20141. }
  20142. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20143. as_dirname=dirname
  20144. else
  20145. as_dirname=false
  20146. fi
  20147. ECHO_C= ECHO_N= ECHO_T=
  20148. case `echo -n x` in
  20149. -n*)
  20150. case `echo 'x\c'` in
  20151. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20152. *) ECHO_C='\c';;
  20153. esac;;
  20154. *)
  20155. ECHO_N='-n';;
  20156. esac
  20157. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20158. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20159. as_expr=expr
  20160. else
  20161. as_expr=false
  20162. fi
  20163. rm -f conf$$ conf$$.exe conf$$.file
  20164. if test -d conf$$.dir; then
  20165. rm -f conf$$.dir/conf$$.file
  20166. else
  20167. rm -f conf$$.dir
  20168. mkdir conf$$.dir
  20169. fi
  20170. echo >conf$$.file
  20171. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20172. as_ln_s='ln -s'
  20173. # ... but there are two gotchas:
  20174. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20175. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20176. # In both cases, we have to default to `cp -p'.
  20177. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20178. as_ln_s='cp -p'
  20179. elif ln conf$$.file conf$$ 2>/dev/null; then
  20180. as_ln_s=ln
  20181. else
  20182. as_ln_s='cp -p'
  20183. fi
  20184. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20185. rmdir conf$$.dir 2>/dev/null
  20186. if mkdir -p . 2>/dev/null; then
  20187. as_mkdir_p=:
  20188. else
  20189. test -d ./-p && rmdir ./-p
  20190. as_mkdir_p=false
  20191. fi
  20192. if test -x / >/dev/null 2>&1; then
  20193. as_test_x='test -x'
  20194. else
  20195. if ls -dL / >/dev/null 2>&1; then
  20196. as_ls_L_option=L
  20197. else
  20198. as_ls_L_option=
  20199. fi
  20200. as_test_x='
  20201. eval sh -c '\''
  20202. if test -d "$1"; then
  20203. test -d "$1/.";
  20204. else
  20205. case $1 in
  20206. -*)set "./$1";;
  20207. esac;
  20208. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  20209. ???[sx]*):;;*)false;;esac;fi
  20210. '\'' sh
  20211. '
  20212. fi
  20213. as_executable_p=$as_test_x
  20214. # Sed expression to map a string onto a valid CPP name.
  20215. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20216. # Sed expression to map a string onto a valid variable name.
  20217. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20218. exec 6>&1
  20219. # Save the log message, to keep $[0] and so on meaningful, and to
  20220. # report actual input values of CONFIG_FILES etc. instead of their
  20221. # values after options handling.
  20222. ac_log="
  20223. This file was extended by aria2c $as_me 1.0.0a, which was
  20224. generated by GNU Autoconf 2.61. Invocation command line was
  20225. CONFIG_FILES = $CONFIG_FILES
  20226. CONFIG_HEADERS = $CONFIG_HEADERS
  20227. CONFIG_LINKS = $CONFIG_LINKS
  20228. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20229. $ $0 $@
  20230. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20231. "
  20232. _ACEOF
  20233. cat >>$CONFIG_STATUS <<_ACEOF
  20234. # Files that config.status was made for.
  20235. config_files="$ac_config_files"
  20236. config_headers="$ac_config_headers"
  20237. config_commands="$ac_config_commands"
  20238. _ACEOF
  20239. cat >>$CONFIG_STATUS <<\_ACEOF
  20240. ac_cs_usage="\
  20241. \`$as_me' instantiates files from templates according to the
  20242. current configuration.
  20243. Usage: $0 [OPTIONS] [FILE]...
  20244. -h, --help print this help, then exit
  20245. -V, --version print version number and configuration settings, then exit
  20246. -q, --quiet do not print progress messages
  20247. -d, --debug don't remove temporary files
  20248. --recheck update $as_me by reconfiguring in the same conditions
  20249. --file=FILE[:TEMPLATE]
  20250. instantiate the configuration file FILE
  20251. --header=FILE[:TEMPLATE]
  20252. instantiate the configuration header FILE
  20253. Configuration files:
  20254. $config_files
  20255. Configuration headers:
  20256. $config_headers
  20257. Configuration commands:
  20258. $config_commands
  20259. Report bugs to <bug-autoconf@gnu.org>."
  20260. _ACEOF
  20261. cat >>$CONFIG_STATUS <<_ACEOF
  20262. ac_cs_version="\\
  20263. aria2c config.status 1.0.0a
  20264. configured by $0, generated by GNU Autoconf 2.61,
  20265. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20266. Copyright (C) 2006 Free Software Foundation, Inc.
  20267. This config.status script is free software; the Free Software Foundation
  20268. gives unlimited permission to copy, distribute and modify it."
  20269. ac_pwd='$ac_pwd'
  20270. srcdir='$srcdir'
  20271. INSTALL='$INSTALL'
  20272. MKDIR_P='$MKDIR_P'
  20273. _ACEOF
  20274. cat >>$CONFIG_STATUS <<\_ACEOF
  20275. # If no file are specified by the user, then we need to provide default
  20276. # value. By we need to know if files were specified by the user.
  20277. ac_need_defaults=:
  20278. while test $# != 0
  20279. do
  20280. case $1 in
  20281. --*=*)
  20282. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20283. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20284. ac_shift=:
  20285. ;;
  20286. *)
  20287. ac_option=$1
  20288. ac_optarg=$2
  20289. ac_shift=shift
  20290. ;;
  20291. esac
  20292. case $ac_option in
  20293. # Handling of the options.
  20294. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20295. ac_cs_recheck=: ;;
  20296. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20297. echo "$ac_cs_version"; exit ;;
  20298. --debug | --debu | --deb | --de | --d | -d )
  20299. debug=: ;;
  20300. --file | --fil | --fi | --f )
  20301. $ac_shift
  20302. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20303. ac_need_defaults=false;;
  20304. --header | --heade | --head | --hea )
  20305. $ac_shift
  20306. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20307. ac_need_defaults=false;;
  20308. --he | --h)
  20309. # Conflict between --help and --header
  20310. { echo "$as_me: error: ambiguous option: $1
  20311. Try \`$0 --help' for more information." >&2
  20312. { (exit 1); exit 1; }; };;
  20313. --help | --hel | -h )
  20314. echo "$ac_cs_usage"; exit ;;
  20315. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20316. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20317. ac_cs_silent=: ;;
  20318. # This is an error.
  20319. -*) { echo "$as_me: error: unrecognized option: $1
  20320. Try \`$0 --help' for more information." >&2
  20321. { (exit 1); exit 1; }; } ;;
  20322. *) ac_config_targets="$ac_config_targets $1"
  20323. ac_need_defaults=false ;;
  20324. esac
  20325. shift
  20326. done
  20327. ac_configure_extra_args=
  20328. if $ac_cs_silent; then
  20329. exec 6>/dev/null
  20330. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20331. fi
  20332. _ACEOF
  20333. cat >>$CONFIG_STATUS <<_ACEOF
  20334. if \$ac_cs_recheck; then
  20335. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20336. CONFIG_SHELL=$SHELL
  20337. export CONFIG_SHELL
  20338. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20339. fi
  20340. _ACEOF
  20341. cat >>$CONFIG_STATUS <<\_ACEOF
  20342. exec 5>>config.log
  20343. {
  20344. echo
  20345. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20346. ## Running $as_me. ##
  20347. _ASBOX
  20348. echo "$ac_log"
  20349. } >&5
  20350. _ACEOF
  20351. cat >>$CONFIG_STATUS <<_ACEOF
  20352. #
  20353. # INIT-COMMANDS
  20354. #
  20355. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20356. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  20357. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  20358. # from automake < 1.5.
  20359. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  20360. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  20361. LINGUAS="${LINGUAS-%UNSET%}"
  20362. _ACEOF
  20363. cat >>$CONFIG_STATUS <<\_ACEOF
  20364. # Handling of arguments.
  20365. for ac_config_target in $ac_config_targets
  20366. do
  20367. case $ac_config_target in
  20368. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20369. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20370. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  20371. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20372. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20373. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20374. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20375. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20376. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20377. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20378. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20379. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20380. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20381. { (exit 1); exit 1; }; };;
  20382. esac
  20383. done
  20384. # If the user did not use the arguments to specify the items to instantiate,
  20385. # then the envvar interface is used. Set only those that are not.
  20386. # We use the long form for the default assignment because of an extremely
  20387. # bizarre bug on SunOS 4.1.3.
  20388. if $ac_need_defaults; then
  20389. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20390. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20391. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20392. fi
  20393. # Have a temporary directory for convenience. Make it in the build tree
  20394. # simply because there is no reason against having it here, and in addition,
  20395. # creating and moving files from /tmp can sometimes cause problems.
  20396. # Hook for its removal unless debugging.
  20397. # Note that there is a small window in which the directory will not be cleaned:
  20398. # after its creation but before its name has been assigned to `$tmp'.
  20399. $debug ||
  20400. {
  20401. tmp=
  20402. trap 'exit_status=$?
  20403. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20404. ' 0
  20405. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20406. }
  20407. # Create a (secure) tmp directory for tmp files.
  20408. {
  20409. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20410. test -n "$tmp" && test -d "$tmp"
  20411. } ||
  20412. {
  20413. tmp=./conf$$-$RANDOM
  20414. (umask 077 && mkdir "$tmp")
  20415. } ||
  20416. {
  20417. echo "$me: cannot create a temporary directory in ." >&2
  20418. { (exit 1); exit 1; }
  20419. }
  20420. #
  20421. # Set up the sed scripts for CONFIG_FILES section.
  20422. #
  20423. # No need to generate the scripts if there are no CONFIG_FILES.
  20424. # This happens for instance when ./config.status config.h
  20425. if test -n "$CONFIG_FILES"; then
  20426. _ACEOF
  20427. ac_delim='%!_!# '
  20428. for ac_last_try in false false false false false :; do
  20429. cat >conf$$subs.sed <<_ACEOF
  20430. SHELL!$SHELL$ac_delim
  20431. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20432. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20433. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20434. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20435. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20436. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20437. exec_prefix!$exec_prefix$ac_delim
  20438. prefix!$prefix$ac_delim
  20439. program_transform_name!$program_transform_name$ac_delim
  20440. bindir!$bindir$ac_delim
  20441. sbindir!$sbindir$ac_delim
  20442. libexecdir!$libexecdir$ac_delim
  20443. datarootdir!$datarootdir$ac_delim
  20444. datadir!$datadir$ac_delim
  20445. sysconfdir!$sysconfdir$ac_delim
  20446. sharedstatedir!$sharedstatedir$ac_delim
  20447. localstatedir!$localstatedir$ac_delim
  20448. includedir!$includedir$ac_delim
  20449. oldincludedir!$oldincludedir$ac_delim
  20450. docdir!$docdir$ac_delim
  20451. infodir!$infodir$ac_delim
  20452. htmldir!$htmldir$ac_delim
  20453. dvidir!$dvidir$ac_delim
  20454. pdfdir!$pdfdir$ac_delim
  20455. psdir!$psdir$ac_delim
  20456. libdir!$libdir$ac_delim
  20457. localedir!$localedir$ac_delim
  20458. mandir!$mandir$ac_delim
  20459. DEFS!$DEFS$ac_delim
  20460. ECHO_C!$ECHO_C$ac_delim
  20461. ECHO_N!$ECHO_N$ac_delim
  20462. ECHO_T!$ECHO_T$ac_delim
  20463. LIBS!$LIBS$ac_delim
  20464. build_alias!$build_alias$ac_delim
  20465. host_alias!$host_alias$ac_delim
  20466. target_alias!$target_alias$ac_delim
  20467. build!$build$ac_delim
  20468. build_cpu!$build_cpu$ac_delim
  20469. build_vendor!$build_vendor$ac_delim
  20470. build_os!$build_os$ac_delim
  20471. host!$host$ac_delim
  20472. host_cpu!$host_cpu$ac_delim
  20473. host_vendor!$host_vendor$ac_delim
  20474. host_os!$host_os$ac_delim
  20475. target!$target$ac_delim
  20476. target_cpu!$target_cpu$ac_delim
  20477. target_vendor!$target_vendor$ac_delim
  20478. target_os!$target_os$ac_delim
  20479. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20480. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20481. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20482. am__isrc!$am__isrc$ac_delim
  20483. CYGPATH_W!$CYGPATH_W$ac_delim
  20484. PACKAGE!$PACKAGE$ac_delim
  20485. VERSION!$VERSION$ac_delim
  20486. ACLOCAL!$ACLOCAL$ac_delim
  20487. AUTOCONF!$AUTOCONF$ac_delim
  20488. AUTOMAKE!$AUTOMAKE$ac_delim
  20489. AUTOHEADER!$AUTOHEADER$ac_delim
  20490. MAKEINFO!$MAKEINFO$ac_delim
  20491. install_sh!$install_sh$ac_delim
  20492. STRIP!$STRIP$ac_delim
  20493. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20494. mkdir_p!$mkdir_p$ac_delim
  20495. AWK!$AWK$ac_delim
  20496. SET_MAKE!$SET_MAKE$ac_delim
  20497. am__leading_dot!$am__leading_dot$ac_delim
  20498. AMTAR!$AMTAR$ac_delim
  20499. am__tar!$am__tar$ac_delim
  20500. am__untar!$am__untar$ac_delim
  20501. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20502. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20503. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20504. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20505. CXX!$CXX$ac_delim
  20506. CXXFLAGS!$CXXFLAGS$ac_delim
  20507. LDFLAGS!$LDFLAGS$ac_delim
  20508. CPPFLAGS!$CPPFLAGS$ac_delim
  20509. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20510. EXEEXT!$EXEEXT$ac_delim
  20511. OBJEXT!$OBJEXT$ac_delim
  20512. DEPDIR!$DEPDIR$ac_delim
  20513. am__include!$am__include$ac_delim
  20514. am__quote!$am__quote$ac_delim
  20515. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20516. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20517. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20518. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20519. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20520. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20521. CC!$CC$ac_delim
  20522. CFLAGS!$CFLAGS$ac_delim
  20523. ac_ct_CC!$ac_ct_CC$ac_delim
  20524. CCDEPMODE!$CCDEPMODE$ac_delim
  20525. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20526. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20527. _ACEOF
  20528. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20529. break
  20530. elif $ac_last_try; then
  20531. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20532. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20533. { (exit 1); exit 1; }; }
  20534. else
  20535. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20536. fi
  20537. done
  20538. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20539. if test -n "$ac_eof"; then
  20540. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20541. ac_eof=`expr $ac_eof + 1`
  20542. fi
  20543. cat >>$CONFIG_STATUS <<_ACEOF
  20544. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20545. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20546. _ACEOF
  20547. sed '
  20548. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20549. s/^/s,@/; s/!/@,|#_!!_#|/
  20550. :n
  20551. t n
  20552. s/'"$ac_delim"'$/,g/; t
  20553. s/$/\\/; p
  20554. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20555. ' >>$CONFIG_STATUS <conf$$subs.sed
  20556. rm -f conf$$subs.sed
  20557. cat >>$CONFIG_STATUS <<_ACEOF
  20558. CEOF$ac_eof
  20559. _ACEOF
  20560. ac_delim='%!_!# '
  20561. for ac_last_try in false false false false false :; do
  20562. cat >conf$$subs.sed <<_ACEOF
  20563. RANLIB!$RANLIB$ac_delim
  20564. YACC!$YACC$ac_delim
  20565. YFLAGS!$YFLAGS$ac_delim
  20566. CXXCPP!$CXXCPP$ac_delim
  20567. GREP!$GREP$ac_delim
  20568. EGREP!$EGREP$ac_delim
  20569. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20570. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20571. XML_LIBS!$XML_LIBS$ac_delim
  20572. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20573. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20574. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20575. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20576. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20577. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20578. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20579. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20580. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20581. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20582. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20583. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20584. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20585. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20586. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  20587. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  20588. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20589. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20590. ENABLE_SSL_TRUE!$ENABLE_SSL_TRUE$ac_delim
  20591. ENABLE_SSL_FALSE!$ENABLE_SSL_FALSE$ac_delim
  20592. HAVE_LIBGNUTLS_TRUE!$HAVE_LIBGNUTLS_TRUE$ac_delim
  20593. HAVE_LIBGNUTLS_FALSE!$HAVE_LIBGNUTLS_FALSE$ac_delim
  20594. HAVE_LIBSSL_TRUE!$HAVE_LIBSSL_TRUE$ac_delim
  20595. HAVE_LIBSSL_FALSE!$HAVE_LIBSSL_FALSE$ac_delim
  20596. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20597. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20598. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20599. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20600. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20601. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20602. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20603. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20604. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20605. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20606. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20607. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20608. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20609. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20610. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20611. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20612. ALLOCA!$ALLOCA$ac_delim
  20613. USE_NLS!$USE_NLS$ac_delim
  20614. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20615. MSGFMT!$MSGFMT$ac_delim
  20616. GMSGFMT!$GMSGFMT$ac_delim
  20617. MSGFMT_015!$MSGFMT_015$ac_delim
  20618. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20619. XGETTEXT!$XGETTEXT$ac_delim
  20620. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20621. MSGMERGE!$MSGMERGE$ac_delim
  20622. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20623. GLIBC2!$GLIBC2$ac_delim
  20624. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20625. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20626. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20627. LIBPTH!$LIBPTH$ac_delim
  20628. LTLIBPTH!$LTLIBPTH$ac_delim
  20629. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20630. LIBTHREAD!$LIBTHREAD$ac_delim
  20631. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20632. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20633. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20634. LIBICONV!$LIBICONV$ac_delim
  20635. LTLIBICONV!$LTLIBICONV$ac_delim
  20636. INTLBISON!$INTLBISON$ac_delim
  20637. GLIBC21!$GLIBC21$ac_delim
  20638. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20639. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20640. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20641. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20642. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20643. WOE32DLL!$WOE32DLL$ac_delim
  20644. WOE32!$WOE32$ac_delim
  20645. WINDRES!$WINDRES$ac_delim
  20646. LTLIBC!$LTLIBC$ac_delim
  20647. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20648. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20649. CATOBJEXT!$CATOBJEXT$ac_delim
  20650. DATADIRNAME!$DATADIRNAME$ac_delim
  20651. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20652. GENCAT!$GENCAT$ac_delim
  20653. INTLOBJS!$INTLOBJS$ac_delim
  20654. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20655. INTLLIBS!$INTLLIBS$ac_delim
  20656. LIBINTL!$LIBINTL$ac_delim
  20657. LTLIBINTL!$LTLIBINTL$ac_delim
  20658. POSUB!$POSUB$ac_delim
  20659. LIBOBJS!$LIBOBJS$ac_delim
  20660. _ACEOF
  20661. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20662. break
  20663. elif $ac_last_try; then
  20664. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20665. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20666. { (exit 1); exit 1; }; }
  20667. else
  20668. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20669. fi
  20670. done
  20671. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20672. if test -n "$ac_eof"; then
  20673. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20674. ac_eof=`expr $ac_eof + 1`
  20675. fi
  20676. cat >>$CONFIG_STATUS <<_ACEOF
  20677. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20678. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20679. _ACEOF
  20680. sed '
  20681. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20682. s/^/s,@/; s/!/@,|#_!!_#|/
  20683. :n
  20684. t n
  20685. s/'"$ac_delim"'$/,g/; t
  20686. s/$/\\/; p
  20687. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20688. ' >>$CONFIG_STATUS <conf$$subs.sed
  20689. rm -f conf$$subs.sed
  20690. cat >>$CONFIG_STATUS <<_ACEOF
  20691. CEOF$ac_eof
  20692. _ACEOF
  20693. ac_delim='%!_!# '
  20694. for ac_last_try in false false false false false :; do
  20695. cat >conf$$subs.sed <<_ACEOF
  20696. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20697. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20698. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20699. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20700. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20701. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20702. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20703. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20704. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20705. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20706. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20707. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20708. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20709. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20710. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20711. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20712. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20713. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20714. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20715. _ACEOF
  20716. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
  20717. break
  20718. elif $ac_last_try; then
  20719. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20720. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20721. { (exit 1); exit 1; }; }
  20722. else
  20723. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20724. fi
  20725. done
  20726. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20727. if test -n "$ac_eof"; then
  20728. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20729. ac_eof=`expr $ac_eof + 1`
  20730. fi
  20731. cat >>$CONFIG_STATUS <<_ACEOF
  20732. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20733. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20734. _ACEOF
  20735. sed '
  20736. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20737. s/^/s,@/; s/!/@,|#_!!_#|/
  20738. :n
  20739. t n
  20740. s/'"$ac_delim"'$/,g/; t
  20741. s/$/\\/; p
  20742. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20743. ' >>$CONFIG_STATUS <conf$$subs.sed
  20744. rm -f conf$$subs.sed
  20745. cat >>$CONFIG_STATUS <<_ACEOF
  20746. :end
  20747. s/|#_!!_#|//g
  20748. CEOF$ac_eof
  20749. _ACEOF
  20750. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20751. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20752. # trailing colons and then remove the whole line if VPATH becomes empty
  20753. # (actually we leave an empty line to preserve line numbers).
  20754. if test "x$srcdir" = x.; then
  20755. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20756. s/:*\$(srcdir):*/:/
  20757. s/:*\${srcdir}:*/:/
  20758. s/:*@srcdir@:*/:/
  20759. s/^\([^=]*=[ ]*\):*/\1/
  20760. s/:*$//
  20761. s/^[^=]*=[ ]*$//
  20762. }'
  20763. fi
  20764. cat >>$CONFIG_STATUS <<\_ACEOF
  20765. fi # test -n "$CONFIG_FILES"
  20766. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20767. do
  20768. case $ac_tag in
  20769. :[FHLC]) ac_mode=$ac_tag; continue;;
  20770. esac
  20771. case $ac_mode$ac_tag in
  20772. :[FHL]*:*);;
  20773. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20774. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20775. { (exit 1); exit 1; }; };;
  20776. :[FH]-) ac_tag=-:-;;
  20777. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20778. esac
  20779. ac_save_IFS=$IFS
  20780. IFS=:
  20781. set x $ac_tag
  20782. IFS=$ac_save_IFS
  20783. shift
  20784. ac_file=$1
  20785. shift
  20786. case $ac_mode in
  20787. :L) ac_source=$1;;
  20788. :[FH])
  20789. ac_file_inputs=
  20790. for ac_f
  20791. do
  20792. case $ac_f in
  20793. -) ac_f="$tmp/stdin";;
  20794. *) # Look for the file first in the build tree, then in the source tree
  20795. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20796. # because $ac_f cannot contain `:'.
  20797. test -f "$ac_f" ||
  20798. case $ac_f in
  20799. [\\/$]*) false;;
  20800. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20801. esac ||
  20802. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20803. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20804. { (exit 1); exit 1; }; };;
  20805. esac
  20806. ac_file_inputs="$ac_file_inputs $ac_f"
  20807. done
  20808. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20809. # use $as_me), people would be surprised to read:
  20810. # /* config.h. Generated by config.status. */
  20811. configure_input="Generated from "`IFS=:
  20812. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20813. if test x"$ac_file" != x-; then
  20814. configure_input="$ac_file. $configure_input"
  20815. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20816. echo "$as_me: creating $ac_file" >&6;}
  20817. fi
  20818. case $ac_tag in
  20819. *:-:* | *:-) cat >"$tmp/stdin";;
  20820. esac
  20821. ;;
  20822. esac
  20823. ac_dir=`$as_dirname -- "$ac_file" ||
  20824. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20825. X"$ac_file" : 'X\(//\)[^/]' \| \
  20826. X"$ac_file" : 'X\(//\)$' \| \
  20827. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20828. echo X"$ac_file" |
  20829. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20830. s//\1/
  20831. q
  20832. }
  20833. /^X\(\/\/\)[^/].*/{
  20834. s//\1/
  20835. q
  20836. }
  20837. /^X\(\/\/\)$/{
  20838. s//\1/
  20839. q
  20840. }
  20841. /^X\(\/\).*/{
  20842. s//\1/
  20843. q
  20844. }
  20845. s/.*/./; q'`
  20846. { as_dir="$ac_dir"
  20847. case $as_dir in #(
  20848. -*) as_dir=./$as_dir;;
  20849. esac
  20850. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20851. as_dirs=
  20852. while :; do
  20853. case $as_dir in #(
  20854. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20855. *) as_qdir=$as_dir;;
  20856. esac
  20857. as_dirs="'$as_qdir' $as_dirs"
  20858. as_dir=`$as_dirname -- "$as_dir" ||
  20859. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20860. X"$as_dir" : 'X\(//\)[^/]' \| \
  20861. X"$as_dir" : 'X\(//\)$' \| \
  20862. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20863. echo X"$as_dir" |
  20864. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20865. s//\1/
  20866. q
  20867. }
  20868. /^X\(\/\/\)[^/].*/{
  20869. s//\1/
  20870. q
  20871. }
  20872. /^X\(\/\/\)$/{
  20873. s//\1/
  20874. q
  20875. }
  20876. /^X\(\/\).*/{
  20877. s//\1/
  20878. q
  20879. }
  20880. s/.*/./; q'`
  20881. test -d "$as_dir" && break
  20882. done
  20883. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20884. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20885. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20886. { (exit 1); exit 1; }; }; }
  20887. ac_builddir=.
  20888. case "$ac_dir" in
  20889. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20890. *)
  20891. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20892. # A ".." for each directory in $ac_dir_suffix.
  20893. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20894. case $ac_top_builddir_sub in
  20895. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20896. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20897. esac ;;
  20898. esac
  20899. ac_abs_top_builddir=$ac_pwd
  20900. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20901. # for backward compatibility:
  20902. ac_top_builddir=$ac_top_build_prefix
  20903. case $srcdir in
  20904. .) # We are building in place.
  20905. ac_srcdir=.
  20906. ac_top_srcdir=$ac_top_builddir_sub
  20907. ac_abs_top_srcdir=$ac_pwd ;;
  20908. [\\/]* | ?:[\\/]* ) # Absolute name.
  20909. ac_srcdir=$srcdir$ac_dir_suffix;
  20910. ac_top_srcdir=$srcdir
  20911. ac_abs_top_srcdir=$srcdir ;;
  20912. *) # Relative name.
  20913. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20914. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20915. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20916. esac
  20917. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20918. case $ac_mode in
  20919. :F)
  20920. #
  20921. # CONFIG_FILE
  20922. #
  20923. case $INSTALL in
  20924. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20925. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20926. esac
  20927. ac_MKDIR_P=$MKDIR_P
  20928. case $MKDIR_P in
  20929. [\\/$]* | ?:[\\/]* ) ;;
  20930. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20931. esac
  20932. _ACEOF
  20933. cat >>$CONFIG_STATUS <<\_ACEOF
  20934. # If the template does not know about datarootdir, expand it.
  20935. # FIXME: This hack should be removed a few years after 2.60.
  20936. ac_datarootdir_hack=; ac_datarootdir_seen=
  20937. case `sed -n '/datarootdir/ {
  20938. p
  20939. q
  20940. }
  20941. /@datadir@/p
  20942. /@docdir@/p
  20943. /@infodir@/p
  20944. /@localedir@/p
  20945. /@mandir@/p
  20946. ' $ac_file_inputs` in
  20947. *datarootdir*) ac_datarootdir_seen=yes;;
  20948. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20949. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20950. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20951. _ACEOF
  20952. cat >>$CONFIG_STATUS <<_ACEOF
  20953. ac_datarootdir_hack='
  20954. s&@datadir@&$datadir&g
  20955. s&@docdir@&$docdir&g
  20956. s&@infodir@&$infodir&g
  20957. s&@localedir@&$localedir&g
  20958. s&@mandir@&$mandir&g
  20959. s&\\\${datarootdir}&$datarootdir&g' ;;
  20960. esac
  20961. _ACEOF
  20962. # Neutralize VPATH when `$srcdir' = `.'.
  20963. # Shell code in configure.ac might set extrasub.
  20964. # FIXME: do we really want to maintain this feature?
  20965. cat >>$CONFIG_STATUS <<_ACEOF
  20966. sed "$ac_vpsub
  20967. $extrasub
  20968. _ACEOF
  20969. cat >>$CONFIG_STATUS <<\_ACEOF
  20970. :t
  20971. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20972. s&@configure_input@&$configure_input&;t t
  20973. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20974. s&@srcdir@&$ac_srcdir&;t t
  20975. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20976. s&@top_srcdir@&$ac_top_srcdir&;t t
  20977. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20978. s&@builddir@&$ac_builddir&;t t
  20979. s&@abs_builddir@&$ac_abs_builddir&;t t
  20980. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20981. s&@INSTALL@&$ac_INSTALL&;t t
  20982. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20983. $ac_datarootdir_hack
  20984. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20985. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20986. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20987. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20988. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20989. which seems to be undefined. Please make sure it is defined." >&5
  20990. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20991. which seems to be undefined. Please make sure it is defined." >&2;}
  20992. rm -f "$tmp/stdin"
  20993. case $ac_file in
  20994. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20995. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20996. esac
  20997. ;;
  20998. :H)
  20999. #
  21000. # CONFIG_HEADER
  21001. #
  21002. _ACEOF
  21003. # Transform confdefs.h into a sed script `conftest.defines', that
  21004. # substitutes the proper values into config.h.in to produce config.h.
  21005. rm -f conftest.defines conftest.tail
  21006. # First, append a space to every undef/define line, to ease matching.
  21007. echo 's/$/ /' >conftest.defines
  21008. # Then, protect against being on the right side of a sed subst, or in
  21009. # an unquoted here document, in config.status. If some macros were
  21010. # called several times there might be several #defines for the same
  21011. # symbol, which is useless. But do not sort them, since the last
  21012. # AC_DEFINE must be honored.
  21013. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21014. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  21015. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  21016. # PARAMS is the parameter list in the macro definition--in most cases, it's
  21017. # just an empty string.
  21018. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  21019. ac_dB='\\)[ (].*,\\1define\\2'
  21020. ac_dC=' '
  21021. ac_dD=' ,'
  21022. uniq confdefs.h |
  21023. sed -n '
  21024. t rset
  21025. :rset
  21026. s/^[ ]*#[ ]*define[ ][ ]*//
  21027. t ok
  21028. d
  21029. :ok
  21030. s/[\\&,]/\\&/g
  21031. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  21032. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  21033. ' >>conftest.defines
  21034. # Remove the space that was appended to ease matching.
  21035. # Then replace #undef with comments. This is necessary, for
  21036. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21037. # on some systems where configure will not decide to define it.
  21038. # (The regexp can be short, since the line contains either #define or #undef.)
  21039. echo 's/ $//
  21040. s,^[ #]*u.*,/* & */,' >>conftest.defines
  21041. # Break up conftest.defines:
  21042. ac_max_sed_lines=50
  21043. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  21044. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  21045. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  21046. # et cetera.
  21047. ac_in='$ac_file_inputs'
  21048. ac_out='"$tmp/out1"'
  21049. ac_nxt='"$tmp/out2"'
  21050. while :
  21051. do
  21052. # Write a here document:
  21053. cat >>$CONFIG_STATUS <<_ACEOF
  21054. # First, check the format of the line:
  21055. cat >"\$tmp/defines.sed" <<\\CEOF
  21056. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  21057. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  21058. b
  21059. :def
  21060. _ACEOF
  21061. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  21062. echo 'CEOF
  21063. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  21064. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  21065. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  21066. grep . conftest.tail >/dev/null || break
  21067. rm -f conftest.defines
  21068. mv conftest.tail conftest.defines
  21069. done
  21070. rm -f conftest.defines conftest.tail
  21071. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  21072. cat >>$CONFIG_STATUS <<\_ACEOF
  21073. if test x"$ac_file" != x-; then
  21074. echo "/* $configure_input */" >"$tmp/config.h"
  21075. cat "$ac_result" >>"$tmp/config.h"
  21076. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  21077. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21078. echo "$as_me: $ac_file is unchanged" >&6;}
  21079. else
  21080. rm -f $ac_file
  21081. mv "$tmp/config.h" $ac_file
  21082. fi
  21083. else
  21084. echo "/* $configure_input */"
  21085. cat "$ac_result"
  21086. fi
  21087. rm -f "$tmp/out12"
  21088. # Compute $ac_file's index in $config_headers.
  21089. _am_arg=$ac_file
  21090. _am_stamp_count=1
  21091. for _am_header in $config_headers :; do
  21092. case $_am_header in
  21093. $_am_arg | $_am_arg:* )
  21094. break ;;
  21095. * )
  21096. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21097. esac
  21098. done
  21099. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21100. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21101. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21102. X"$_am_arg" : 'X\(//\)$' \| \
  21103. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21104. echo X"$_am_arg" |
  21105. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21106. s//\1/
  21107. q
  21108. }
  21109. /^X\(\/\/\)[^/].*/{
  21110. s//\1/
  21111. q
  21112. }
  21113. /^X\(\/\/\)$/{
  21114. s//\1/
  21115. q
  21116. }
  21117. /^X\(\/\).*/{
  21118. s//\1/
  21119. q
  21120. }
  21121. s/.*/./; q'`/stamp-h$_am_stamp_count
  21122. ;;
  21123. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21124. echo "$as_me: executing $ac_file commands" >&6;}
  21125. ;;
  21126. esac
  21127. case $ac_file$ac_mode in
  21128. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21129. # Strip MF so we end up with the name of the file.
  21130. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21131. # Check whether this is an Automake generated Makefile or not.
  21132. # We used to match only the files named `Makefile.in', but
  21133. # some people rename them; so instead we look at the file content.
  21134. # Grep'ing the first line is not enough: some people post-process
  21135. # each Makefile.in and add a new line on top of each file to say so.
  21136. # Grep'ing the whole file is not good either: AIX grep has a line
  21137. # limit of 2048, but all sed's we know have understand at least 4000.
  21138. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21139. dirpart=`$as_dirname -- "$mf" ||
  21140. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21141. X"$mf" : 'X\(//\)[^/]' \| \
  21142. X"$mf" : 'X\(//\)$' \| \
  21143. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21144. echo X"$mf" |
  21145. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21146. s//\1/
  21147. q
  21148. }
  21149. /^X\(\/\/\)[^/].*/{
  21150. s//\1/
  21151. q
  21152. }
  21153. /^X\(\/\/\)$/{
  21154. s//\1/
  21155. q
  21156. }
  21157. /^X\(\/\).*/{
  21158. s//\1/
  21159. q
  21160. }
  21161. s/.*/./; q'`
  21162. else
  21163. continue
  21164. fi
  21165. # Extract the definition of DEPDIR, am__include, and am__quote
  21166. # from the Makefile without running `make'.
  21167. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21168. test -z "$DEPDIR" && continue
  21169. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21170. test -z "am__include" && continue
  21171. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21172. # When using ansi2knr, U may be empty or an underscore; expand it
  21173. U=`sed -n 's/^U = //p' < "$mf"`
  21174. # Find all dependency output files, they are included files with
  21175. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21176. # simplest approach to changing $(DEPDIR) to its actual value in the
  21177. # expansion.
  21178. for file in `sed -n "
  21179. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21180. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21181. # Make sure the directory exists.
  21182. test -f "$dirpart/$file" && continue
  21183. fdir=`$as_dirname -- "$file" ||
  21184. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21185. X"$file" : 'X\(//\)[^/]' \| \
  21186. X"$file" : 'X\(//\)$' \| \
  21187. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21188. echo X"$file" |
  21189. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21190. s//\1/
  21191. q
  21192. }
  21193. /^X\(\/\/\)[^/].*/{
  21194. s//\1/
  21195. q
  21196. }
  21197. /^X\(\/\/\)$/{
  21198. s//\1/
  21199. q
  21200. }
  21201. /^X\(\/\).*/{
  21202. s//\1/
  21203. q
  21204. }
  21205. s/.*/./; q'`
  21206. { as_dir=$dirpart/$fdir
  21207. case $as_dir in #(
  21208. -*) as_dir=./$as_dir;;
  21209. esac
  21210. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21211. as_dirs=
  21212. while :; do
  21213. case $as_dir in #(
  21214. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21215. *) as_qdir=$as_dir;;
  21216. esac
  21217. as_dirs="'$as_qdir' $as_dirs"
  21218. as_dir=`$as_dirname -- "$as_dir" ||
  21219. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21220. X"$as_dir" : 'X\(//\)[^/]' \| \
  21221. X"$as_dir" : 'X\(//\)$' \| \
  21222. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21223. echo X"$as_dir" |
  21224. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21225. s//\1/
  21226. q
  21227. }
  21228. /^X\(\/\/\)[^/].*/{
  21229. s//\1/
  21230. q
  21231. }
  21232. /^X\(\/\/\)$/{
  21233. s//\1/
  21234. q
  21235. }
  21236. /^X\(\/\).*/{
  21237. s//\1/
  21238. q
  21239. }
  21240. s/.*/./; q'`
  21241. test -d "$as_dir" && break
  21242. done
  21243. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21244. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21245. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21246. { (exit 1); exit 1; }; }; }
  21247. # echo "creating $dirpart/$file"
  21248. echo '# dummy' > "$dirpart/$file"
  21249. done
  21250. done
  21251. ;;
  21252. "po-directories":C)
  21253. for ac_file in $CONFIG_FILES; do
  21254. # Support "outfile[:infile[:infile...]]"
  21255. case "$ac_file" in
  21256. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21257. esac
  21258. # PO directories have a Makefile.in generated from Makefile.in.in.
  21259. case "$ac_file" in */Makefile.in)
  21260. # Adjust a relative srcdir.
  21261. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  21262. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  21263. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  21264. # In autoconf-2.13 it is called $ac_given_srcdir.
  21265. # In autoconf-2.50 it is called $srcdir.
  21266. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  21267. case "$ac_given_srcdir" in
  21268. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  21269. /*) top_srcdir="$ac_given_srcdir" ;;
  21270. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  21271. esac
  21272. # Treat a directory as a PO directory if and only if it has a
  21273. # POTFILES.in file. This allows packages to have multiple PO
  21274. # directories under different names or in different locations.
  21275. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  21276. rm -f "$ac_dir/POTFILES"
  21277. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  21278. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  21279. POMAKEFILEDEPS="POTFILES.in"
  21280. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  21281. # on $ac_dir but don't depend on user-specified configuration
  21282. # parameters.
  21283. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  21284. # The LINGUAS file contains the set of available languages.
  21285. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  21286. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  21287. fi
  21288. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  21289. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21290. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  21291. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  21292. else
  21293. # The set of available languages was given in configure.in.
  21294. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21295. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  21296. fi
  21297. # Compute POFILES
  21298. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21299. # Compute UPDATEPOFILES
  21300. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21301. # Compute DUMMYPOFILES
  21302. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21303. # Compute GMOFILES
  21304. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21305. case "$ac_given_srcdir" in
  21306. .) srcdirpre= ;;
  21307. *) srcdirpre='$(srcdir)/' ;;
  21308. esac
  21309. POFILES=
  21310. UPDATEPOFILES=
  21311. DUMMYPOFILES=
  21312. GMOFILES=
  21313. for lang in $ALL_LINGUAS; do
  21314. POFILES="$POFILES $srcdirpre$lang.po"
  21315. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  21316. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  21317. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  21318. done
  21319. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  21320. # environment variable.
  21321. INST_LINGUAS=
  21322. if test -n "$ALL_LINGUAS"; then
  21323. for presentlang in $ALL_LINGUAS; do
  21324. useit=no
  21325. if test "%UNSET%" != "$LINGUAS"; then
  21326. desiredlanguages="$LINGUAS"
  21327. else
  21328. desiredlanguages="$ALL_LINGUAS"
  21329. fi
  21330. for desiredlang in $desiredlanguages; do
  21331. # Use the presentlang catalog if desiredlang is
  21332. # a. equal to presentlang, or
  21333. # b. a variant of presentlang (because in this case,
  21334. # presentlang can be used as a fallback for messages
  21335. # which are not translated in the desiredlang catalog).
  21336. case "$desiredlang" in
  21337. "$presentlang"*) useit=yes;;
  21338. esac
  21339. done
  21340. if test $useit = yes; then
  21341. INST_LINGUAS="$INST_LINGUAS $presentlang"
  21342. fi
  21343. done
  21344. fi
  21345. CATALOGS=
  21346. if test -n "$INST_LINGUAS"; then
  21347. for lang in $INST_LINGUAS; do
  21348. CATALOGS="$CATALOGS $lang.gmo"
  21349. done
  21350. fi
  21351. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  21352. 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"
  21353. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  21354. if test -f "$f"; then
  21355. case "$f" in
  21356. *.orig | *.bak | *~) ;;
  21357. *) cat "$f" >> "$ac_dir/Makefile" ;;
  21358. esac
  21359. fi
  21360. done
  21361. fi
  21362. ;;
  21363. esac
  21364. done ;;
  21365. esac
  21366. done # for ac_tag
  21367. { (exit 0); exit 0; }
  21368. _ACEOF
  21369. chmod +x $CONFIG_STATUS
  21370. ac_clean_files=$ac_clean_files_save
  21371. # configure is writing to config.log, and then calls config.status.
  21372. # config.status does its own redirection, appending to config.log.
  21373. # Unfortunately, on DOS this fails, as config.log is still kept open
  21374. # by configure, so config.status won't be able to write to it; its
  21375. # output is simply discarded. So we exec the FD to /dev/null,
  21376. # effectively closing config.log, so it can be properly (re)opened and
  21377. # appended to by config.status. When coming back to configure, we
  21378. # need to make the FD available again.
  21379. if test "$no_create" != yes; then
  21380. ac_cs_success=:
  21381. ac_config_status_args=
  21382. test "$silent" = yes &&
  21383. ac_config_status_args="$ac_config_status_args --quiet"
  21384. exec 5>/dev/null
  21385. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21386. exec 5>>config.log
  21387. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21388. # would make configure fail if this is the last instruction.
  21389. $ac_cs_success || { (exit 1); exit 1; }
  21390. fi
  21391. echo " "
  21392. echo "Build: $build"
  21393. echo "Target: $target"
  21394. echo "Install prefix: $prefix"
  21395. echo "CFLAGS: $CFLAGS"
  21396. echo "CPPFLAGS: $CPPFLAGS"
  21397. echo "LDFLAGS: $LDFLAGS"
  21398. echo "LIBS: $LIBS"
  21399. echo "SQLite3: $have_sqlite3"
  21400. echo "GnuTLS: $have_libgnutls"
  21401. echo "OpenSSL: $have_openssl"
  21402. echo "LibXML2: $have_libxml2"
  21403. echo "LibExpat: $have_libexpat"
  21404. echo "LibAres: $have_libares"
  21405. echo "LibCares: $have_libcares"
  21406. echo "Libz: $have_libz"
  21407. echo "Bittorrent: $enable_bittorrent"
  21408. echo "Metalink: $enable_metalink"