configure 674 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.16.2.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.16.2'
  496. PACKAGE_STRING='aria2c 0.16.2'
  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 0.16.2 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 0.16.2:";;
  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 0.16.2
  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 0.16.2, 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='0.16.2'
  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. fi
  6592. if test "x$have_libgnutls" = "xyes" ; then
  6593. HAVE_LIBGNUTLS_TRUE=
  6594. HAVE_LIBGNUTLS_FALSE='#'
  6595. else
  6596. HAVE_LIBGNUTLS_TRUE='#'
  6597. HAVE_LIBGNUTLS_FALSE=
  6598. fi
  6599. if test "x$have_openssl" = "xyes" ; then
  6600. HAVE_LIBSSL_TRUE=
  6601. HAVE_LIBSSL_FALSE='#'
  6602. else
  6603. HAVE_LIBSSL_TRUE='#'
  6604. HAVE_LIBSSL_FALSE=
  6605. fi
  6606. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6607. cat >>confdefs.h <<\_ACEOF
  6608. #define ENABLE_MESSAGE_DIGEST 1
  6609. _ACEOF
  6610. if true; then
  6611. ENABLE_MESSAGE_DIGEST_TRUE=
  6612. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6613. else
  6614. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6615. ENABLE_MESSAGE_DIGEST_FALSE=
  6616. fi
  6617. enable_message_digest=yes
  6618. else
  6619. if false; then
  6620. ENABLE_MESSAGE_DIGEST_TRUE=
  6621. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6622. else
  6623. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6624. ENABLE_MESSAGE_DIGEST_FALSE=
  6625. fi
  6626. fi
  6627. if test "x$enable_bittorrent" = "xyes" &&
  6628. test "x$enable_message_digest" = "xyes"; then
  6629. cat >>confdefs.h <<\_ACEOF
  6630. #define ENABLE_BITTORRENT 1
  6631. _ACEOF
  6632. if true; then
  6633. ENABLE_BITTORRENT_TRUE=
  6634. ENABLE_BITTORRENT_FALSE='#'
  6635. else
  6636. ENABLE_BITTORRENT_TRUE='#'
  6637. ENABLE_BITTORRENT_FALSE=
  6638. fi
  6639. else
  6640. enable_bittorrent=no
  6641. if false; then
  6642. ENABLE_BITTORRENT_TRUE=
  6643. ENABLE_BITTORRENT_FALSE='#'
  6644. else
  6645. ENABLE_BITTORRENT_TRUE='#'
  6646. ENABLE_BITTORRENT_FALSE=
  6647. fi
  6648. fi
  6649. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6650. test "x$enable_metalink" = "xyes"; then
  6651. cat >>confdefs.h <<\_ACEOF
  6652. #define ENABLE_METALINK 1
  6653. _ACEOF
  6654. if true; then
  6655. ENABLE_METALINK_TRUE=
  6656. ENABLE_METALINK_FALSE='#'
  6657. else
  6658. ENABLE_METALINK_TRUE='#'
  6659. ENABLE_METALINK_FALSE=
  6660. fi
  6661. else
  6662. enable_metalink=no
  6663. if false; then
  6664. ENABLE_METALINK_TRUE=
  6665. ENABLE_METALINK_FALSE='#'
  6666. else
  6667. ENABLE_METALINK_TRUE='#'
  6668. ENABLE_METALINK_FALSE=
  6669. fi
  6670. fi
  6671. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6672. ENABLE_LIBXML2_TRUE=
  6673. ENABLE_LIBXML2_FALSE='#'
  6674. else
  6675. ENABLE_LIBXML2_TRUE='#'
  6676. ENABLE_LIBXML2_FALSE=
  6677. fi
  6678. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6679. ENABLE_LIBEXPAT_TRUE=
  6680. ENABLE_LIBEXPAT_FALSE='#'
  6681. else
  6682. ENABLE_LIBEXPAT_TRUE='#'
  6683. ENABLE_LIBEXPAT_FALSE=
  6684. fi
  6685. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6686. cat >>confdefs.h <<\_ACEOF
  6687. #define ENABLE_ASYNC_DNS 1
  6688. _ACEOF
  6689. if true; then
  6690. ENABLE_ASYNC_DNS_TRUE=
  6691. ENABLE_ASYNC_DNS_FALSE='#'
  6692. else
  6693. ENABLE_ASYNC_DNS_TRUE='#'
  6694. ENABLE_ASYNC_DNS_FALSE=
  6695. fi
  6696. else
  6697. if false; 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. fi
  6705. # Set conditional for libz
  6706. if test "x$have_libz" = "xyes"; then
  6707. HAVE_LIBZ_TRUE=
  6708. HAVE_LIBZ_FALSE='#'
  6709. else
  6710. HAVE_LIBZ_TRUE='#'
  6711. HAVE_LIBZ_FALSE=
  6712. fi
  6713. # Set conditional for sqlite3
  6714. if test "x$have_sqlite3" = "xyes"; then
  6715. HAVE_SQLITE3_TRUE=
  6716. HAVE_SQLITE3_FALSE='#'
  6717. else
  6718. HAVE_SQLITE3_TRUE='#'
  6719. HAVE_SQLITE3_FALSE=
  6720. fi
  6721. # Checks for header files.
  6722. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6723. # for constant arguments. Useless!
  6724. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6725. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6726. if test "${ac_cv_working_alloca_h+set}" = set; then
  6727. echo $ECHO_N "(cached) $ECHO_C" >&6
  6728. else
  6729. cat >conftest.$ac_ext <<_ACEOF
  6730. /* confdefs.h. */
  6731. _ACEOF
  6732. cat confdefs.h >>conftest.$ac_ext
  6733. cat >>conftest.$ac_ext <<_ACEOF
  6734. /* end confdefs.h. */
  6735. #include <alloca.h>
  6736. int
  6737. main ()
  6738. {
  6739. char *p = (char *) alloca (2 * sizeof (int));
  6740. if (p) return 0;
  6741. ;
  6742. return 0;
  6743. }
  6744. _ACEOF
  6745. rm -f conftest.$ac_objext conftest$ac_exeext
  6746. if { (ac_try="$ac_link"
  6747. case "(($ac_try" in
  6748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6749. *) ac_try_echo=$ac_try;;
  6750. esac
  6751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6752. (eval "$ac_link") 2>conftest.er1
  6753. ac_status=$?
  6754. grep -v '^ *+' conftest.er1 >conftest.err
  6755. rm -f conftest.er1
  6756. cat conftest.err >&5
  6757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6758. (exit $ac_status); } && {
  6759. test -z "$ac_cxx_werror_flag" ||
  6760. test ! -s conftest.err
  6761. } && test -s conftest$ac_exeext &&
  6762. $as_test_x conftest$ac_exeext; then
  6763. ac_cv_working_alloca_h=yes
  6764. else
  6765. echo "$as_me: failed program was:" >&5
  6766. sed 's/^/| /' conftest.$ac_ext >&5
  6767. ac_cv_working_alloca_h=no
  6768. fi
  6769. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6770. conftest$ac_exeext conftest.$ac_ext
  6771. fi
  6772. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6773. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6774. if test $ac_cv_working_alloca_h = yes; then
  6775. cat >>confdefs.h <<\_ACEOF
  6776. #define HAVE_ALLOCA_H 1
  6777. _ACEOF
  6778. fi
  6779. { echo "$as_me:$LINENO: checking for alloca" >&5
  6780. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6781. if test "${ac_cv_func_alloca_works+set}" = set; then
  6782. echo $ECHO_N "(cached) $ECHO_C" >&6
  6783. else
  6784. cat >conftest.$ac_ext <<_ACEOF
  6785. /* confdefs.h. */
  6786. _ACEOF
  6787. cat confdefs.h >>conftest.$ac_ext
  6788. cat >>conftest.$ac_ext <<_ACEOF
  6789. /* end confdefs.h. */
  6790. #ifdef __GNUC__
  6791. # define alloca __builtin_alloca
  6792. #else
  6793. # ifdef _MSC_VER
  6794. # include <malloc.h>
  6795. # define alloca _alloca
  6796. # else
  6797. # ifdef HAVE_ALLOCA_H
  6798. # include <alloca.h>
  6799. # else
  6800. # ifdef _AIX
  6801. #pragma alloca
  6802. # else
  6803. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6804. char *alloca ();
  6805. # endif
  6806. # endif
  6807. # endif
  6808. # endif
  6809. #endif
  6810. int
  6811. main ()
  6812. {
  6813. char *p = (char *) alloca (1);
  6814. if (p) return 0;
  6815. ;
  6816. return 0;
  6817. }
  6818. _ACEOF
  6819. rm -f conftest.$ac_objext conftest$ac_exeext
  6820. if { (ac_try="$ac_link"
  6821. case "(($ac_try" in
  6822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6823. *) ac_try_echo=$ac_try;;
  6824. esac
  6825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6826. (eval "$ac_link") 2>conftest.er1
  6827. ac_status=$?
  6828. grep -v '^ *+' conftest.er1 >conftest.err
  6829. rm -f conftest.er1
  6830. cat conftest.err >&5
  6831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6832. (exit $ac_status); } && {
  6833. test -z "$ac_cxx_werror_flag" ||
  6834. test ! -s conftest.err
  6835. } && test -s conftest$ac_exeext &&
  6836. $as_test_x conftest$ac_exeext; then
  6837. ac_cv_func_alloca_works=yes
  6838. else
  6839. echo "$as_me: failed program was:" >&5
  6840. sed 's/^/| /' conftest.$ac_ext >&5
  6841. ac_cv_func_alloca_works=no
  6842. fi
  6843. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6844. conftest$ac_exeext conftest.$ac_ext
  6845. fi
  6846. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6847. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6848. if test $ac_cv_func_alloca_works = yes; then
  6849. cat >>confdefs.h <<\_ACEOF
  6850. #define HAVE_ALLOCA 1
  6851. _ACEOF
  6852. else
  6853. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6854. # that cause trouble. Some versions do not even contain alloca or
  6855. # contain a buggy version. If you still want to use their alloca,
  6856. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6857. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6858. cat >>confdefs.h <<\_ACEOF
  6859. #define C_ALLOCA 1
  6860. _ACEOF
  6861. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6862. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6863. if test "${ac_cv_os_cray+set}" = set; then
  6864. echo $ECHO_N "(cached) $ECHO_C" >&6
  6865. else
  6866. cat >conftest.$ac_ext <<_ACEOF
  6867. /* confdefs.h. */
  6868. _ACEOF
  6869. cat confdefs.h >>conftest.$ac_ext
  6870. cat >>conftest.$ac_ext <<_ACEOF
  6871. /* end confdefs.h. */
  6872. #if defined CRAY && ! defined CRAY2
  6873. webecray
  6874. #else
  6875. wenotbecray
  6876. #endif
  6877. _ACEOF
  6878. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6879. $EGREP "webecray" >/dev/null 2>&1; then
  6880. ac_cv_os_cray=yes
  6881. else
  6882. ac_cv_os_cray=no
  6883. fi
  6884. rm -f conftest*
  6885. fi
  6886. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6887. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6888. if test $ac_cv_os_cray = yes; then
  6889. for ac_func in _getb67 GETB67 getb67; do
  6890. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6891. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6892. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6893. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6894. echo $ECHO_N "(cached) $ECHO_C" >&6
  6895. else
  6896. cat >conftest.$ac_ext <<_ACEOF
  6897. /* confdefs.h. */
  6898. _ACEOF
  6899. cat confdefs.h >>conftest.$ac_ext
  6900. cat >>conftest.$ac_ext <<_ACEOF
  6901. /* end confdefs.h. */
  6902. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6903. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6904. #define $ac_func innocuous_$ac_func
  6905. /* System header to define __stub macros and hopefully few prototypes,
  6906. which can conflict with char $ac_func (); below.
  6907. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6908. <limits.h> exists even on freestanding compilers. */
  6909. #ifdef __STDC__
  6910. # include <limits.h>
  6911. #else
  6912. # include <assert.h>
  6913. #endif
  6914. #undef $ac_func
  6915. /* Override any GCC internal prototype to avoid an error.
  6916. Use char because int might match the return type of a GCC
  6917. builtin and then its argument prototype would still apply. */
  6918. #ifdef __cplusplus
  6919. extern "C"
  6920. #endif
  6921. char $ac_func ();
  6922. /* The GNU C library defines this for functions which it implements
  6923. to always fail with ENOSYS. Some functions are actually named
  6924. something starting with __ and the normal name is an alias. */
  6925. #if defined __stub_$ac_func || defined __stub___$ac_func
  6926. choke me
  6927. #endif
  6928. int
  6929. main ()
  6930. {
  6931. return $ac_func ();
  6932. ;
  6933. return 0;
  6934. }
  6935. _ACEOF
  6936. rm -f conftest.$ac_objext conftest$ac_exeext
  6937. if { (ac_try="$ac_link"
  6938. case "(($ac_try" in
  6939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6940. *) ac_try_echo=$ac_try;;
  6941. esac
  6942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6943. (eval "$ac_link") 2>conftest.er1
  6944. ac_status=$?
  6945. grep -v '^ *+' conftest.er1 >conftest.err
  6946. rm -f conftest.er1
  6947. cat conftest.err >&5
  6948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6949. (exit $ac_status); } && {
  6950. test -z "$ac_cxx_werror_flag" ||
  6951. test ! -s conftest.err
  6952. } && test -s conftest$ac_exeext &&
  6953. $as_test_x conftest$ac_exeext; then
  6954. eval "$as_ac_var=yes"
  6955. else
  6956. echo "$as_me: failed program was:" >&5
  6957. sed 's/^/| /' conftest.$ac_ext >&5
  6958. eval "$as_ac_var=no"
  6959. fi
  6960. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6961. conftest$ac_exeext conftest.$ac_ext
  6962. fi
  6963. ac_res=`eval echo '${'$as_ac_var'}'`
  6964. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6965. echo "${ECHO_T}$ac_res" >&6; }
  6966. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6967. cat >>confdefs.h <<_ACEOF
  6968. #define CRAY_STACKSEG_END $ac_func
  6969. _ACEOF
  6970. break
  6971. fi
  6972. done
  6973. fi
  6974. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6975. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6976. if test "${ac_cv_c_stack_direction+set}" = set; then
  6977. echo $ECHO_N "(cached) $ECHO_C" >&6
  6978. else
  6979. if test "$cross_compiling" = yes; then
  6980. ac_cv_c_stack_direction=0
  6981. else
  6982. cat >conftest.$ac_ext <<_ACEOF
  6983. /* confdefs.h. */
  6984. _ACEOF
  6985. cat confdefs.h >>conftest.$ac_ext
  6986. cat >>conftest.$ac_ext <<_ACEOF
  6987. /* end confdefs.h. */
  6988. $ac_includes_default
  6989. int
  6990. find_stack_direction ()
  6991. {
  6992. static char *addr = 0;
  6993. auto char dummy;
  6994. if (addr == 0)
  6995. {
  6996. addr = &dummy;
  6997. return find_stack_direction ();
  6998. }
  6999. else
  7000. return (&dummy > addr) ? 1 : -1;
  7001. }
  7002. int
  7003. main ()
  7004. {
  7005. return find_stack_direction () < 0;
  7006. }
  7007. _ACEOF
  7008. rm -f conftest$ac_exeext
  7009. if { (ac_try="$ac_link"
  7010. case "(($ac_try" in
  7011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7012. *) ac_try_echo=$ac_try;;
  7013. esac
  7014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7015. (eval "$ac_link") 2>&5
  7016. ac_status=$?
  7017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7018. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7019. { (case "(($ac_try" in
  7020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7021. *) ac_try_echo=$ac_try;;
  7022. esac
  7023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7024. (eval "$ac_try") 2>&5
  7025. ac_status=$?
  7026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7027. (exit $ac_status); }; }; then
  7028. ac_cv_c_stack_direction=1
  7029. else
  7030. echo "$as_me: program exited with status $ac_status" >&5
  7031. echo "$as_me: failed program was:" >&5
  7032. sed 's/^/| /' conftest.$ac_ext >&5
  7033. ( exit $ac_status )
  7034. ac_cv_c_stack_direction=-1
  7035. fi
  7036. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7037. fi
  7038. fi
  7039. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7040. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  7041. cat >>confdefs.h <<_ACEOF
  7042. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7043. _ACEOF
  7044. fi
  7045. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7046. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  7047. if test "${ac_cv_header_stdc+set}" = set; then
  7048. echo $ECHO_N "(cached) $ECHO_C" >&6
  7049. else
  7050. cat >conftest.$ac_ext <<_ACEOF
  7051. /* confdefs.h. */
  7052. _ACEOF
  7053. cat confdefs.h >>conftest.$ac_ext
  7054. cat >>conftest.$ac_ext <<_ACEOF
  7055. /* end confdefs.h. */
  7056. #include <stdlib.h>
  7057. #include <stdarg.h>
  7058. #include <string.h>
  7059. #include <float.h>
  7060. int
  7061. main ()
  7062. {
  7063. ;
  7064. return 0;
  7065. }
  7066. _ACEOF
  7067. rm -f conftest.$ac_objext
  7068. if { (ac_try="$ac_compile"
  7069. case "(($ac_try" in
  7070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7071. *) ac_try_echo=$ac_try;;
  7072. esac
  7073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7074. (eval "$ac_compile") 2>conftest.er1
  7075. ac_status=$?
  7076. grep -v '^ *+' conftest.er1 >conftest.err
  7077. rm -f conftest.er1
  7078. cat conftest.err >&5
  7079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7080. (exit $ac_status); } && {
  7081. test -z "$ac_cxx_werror_flag" ||
  7082. test ! -s conftest.err
  7083. } && test -s conftest.$ac_objext; then
  7084. ac_cv_header_stdc=yes
  7085. else
  7086. echo "$as_me: failed program was:" >&5
  7087. sed 's/^/| /' conftest.$ac_ext >&5
  7088. ac_cv_header_stdc=no
  7089. fi
  7090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7091. if test $ac_cv_header_stdc = yes; then
  7092. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7093. cat >conftest.$ac_ext <<_ACEOF
  7094. /* confdefs.h. */
  7095. _ACEOF
  7096. cat confdefs.h >>conftest.$ac_ext
  7097. cat >>conftest.$ac_ext <<_ACEOF
  7098. /* end confdefs.h. */
  7099. #include <string.h>
  7100. _ACEOF
  7101. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7102. $EGREP "memchr" >/dev/null 2>&1; then
  7103. :
  7104. else
  7105. ac_cv_header_stdc=no
  7106. fi
  7107. rm -f conftest*
  7108. fi
  7109. if test $ac_cv_header_stdc = yes; then
  7110. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7111. cat >conftest.$ac_ext <<_ACEOF
  7112. /* confdefs.h. */
  7113. _ACEOF
  7114. cat confdefs.h >>conftest.$ac_ext
  7115. cat >>conftest.$ac_ext <<_ACEOF
  7116. /* end confdefs.h. */
  7117. #include <stdlib.h>
  7118. _ACEOF
  7119. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7120. $EGREP "free" >/dev/null 2>&1; then
  7121. :
  7122. else
  7123. ac_cv_header_stdc=no
  7124. fi
  7125. rm -f conftest*
  7126. fi
  7127. if test $ac_cv_header_stdc = yes; then
  7128. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7129. if test "$cross_compiling" = yes; then
  7130. :
  7131. else
  7132. cat >conftest.$ac_ext <<_ACEOF
  7133. /* confdefs.h. */
  7134. _ACEOF
  7135. cat confdefs.h >>conftest.$ac_ext
  7136. cat >>conftest.$ac_ext <<_ACEOF
  7137. /* end confdefs.h. */
  7138. #include <ctype.h>
  7139. #include <stdlib.h>
  7140. #if ((' ' & 0x0FF) == 0x020)
  7141. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7142. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7143. #else
  7144. # define ISLOWER(c) \
  7145. (('a' <= (c) && (c) <= 'i') \
  7146. || ('j' <= (c) && (c) <= 'r') \
  7147. || ('s' <= (c) && (c) <= 'z'))
  7148. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7149. #endif
  7150. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7151. int
  7152. main ()
  7153. {
  7154. int i;
  7155. for (i = 0; i < 256; i++)
  7156. if (XOR (islower (i), ISLOWER (i))
  7157. || toupper (i) != TOUPPER (i))
  7158. return 2;
  7159. return 0;
  7160. }
  7161. _ACEOF
  7162. rm -f conftest$ac_exeext
  7163. if { (ac_try="$ac_link"
  7164. case "(($ac_try" in
  7165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7166. *) ac_try_echo=$ac_try;;
  7167. esac
  7168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7169. (eval "$ac_link") 2>&5
  7170. ac_status=$?
  7171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7172. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7173. { (case "(($ac_try" in
  7174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7175. *) ac_try_echo=$ac_try;;
  7176. esac
  7177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7178. (eval "$ac_try") 2>&5
  7179. ac_status=$?
  7180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7181. (exit $ac_status); }; }; then
  7182. :
  7183. else
  7184. echo "$as_me: program exited with status $ac_status" >&5
  7185. echo "$as_me: failed program was:" >&5
  7186. sed 's/^/| /' conftest.$ac_ext >&5
  7187. ( exit $ac_status )
  7188. ac_cv_header_stdc=no
  7189. fi
  7190. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7191. fi
  7192. fi
  7193. fi
  7194. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7195. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7196. if test $ac_cv_header_stdc = yes; then
  7197. cat >>confdefs.h <<\_ACEOF
  7198. #define STDC_HEADERS 1
  7199. _ACEOF
  7200. fi
  7201. case "$target" in
  7202. *mingw*)
  7203. for ac_header in winsock2.h \
  7204. ws2tcpip.h
  7205. do
  7206. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7207. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7208. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7209. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7210. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7211. echo $ECHO_N "(cached) $ECHO_C" >&6
  7212. fi
  7213. ac_res=`eval echo '${'$as_ac_Header'}'`
  7214. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7215. echo "${ECHO_T}$ac_res" >&6; }
  7216. else
  7217. # Is the header compilable?
  7218. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7219. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7220. cat >conftest.$ac_ext <<_ACEOF
  7221. /* confdefs.h. */
  7222. _ACEOF
  7223. cat confdefs.h >>conftest.$ac_ext
  7224. cat >>conftest.$ac_ext <<_ACEOF
  7225. /* end confdefs.h. */
  7226. $ac_includes_default
  7227. #include <$ac_header>
  7228. _ACEOF
  7229. rm -f conftest.$ac_objext
  7230. if { (ac_try="$ac_compile"
  7231. case "(($ac_try" in
  7232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7233. *) ac_try_echo=$ac_try;;
  7234. esac
  7235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7236. (eval "$ac_compile") 2>conftest.er1
  7237. ac_status=$?
  7238. grep -v '^ *+' conftest.er1 >conftest.err
  7239. rm -f conftest.er1
  7240. cat conftest.err >&5
  7241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. (exit $ac_status); } && {
  7243. test -z "$ac_cxx_werror_flag" ||
  7244. test ! -s conftest.err
  7245. } && test -s conftest.$ac_objext; then
  7246. ac_header_compiler=yes
  7247. else
  7248. echo "$as_me: failed program was:" >&5
  7249. sed 's/^/| /' conftest.$ac_ext >&5
  7250. ac_header_compiler=no
  7251. fi
  7252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7253. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7254. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7255. # Is the header present?
  7256. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7257. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7258. cat >conftest.$ac_ext <<_ACEOF
  7259. /* confdefs.h. */
  7260. _ACEOF
  7261. cat confdefs.h >>conftest.$ac_ext
  7262. cat >>conftest.$ac_ext <<_ACEOF
  7263. /* end confdefs.h. */
  7264. #include <$ac_header>
  7265. _ACEOF
  7266. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7267. case "(($ac_try" in
  7268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7269. *) ac_try_echo=$ac_try;;
  7270. esac
  7271. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7272. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7273. ac_status=$?
  7274. grep -v '^ *+' conftest.er1 >conftest.err
  7275. rm -f conftest.er1
  7276. cat conftest.err >&5
  7277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278. (exit $ac_status); } >/dev/null && {
  7279. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7280. test ! -s conftest.err
  7281. }; then
  7282. ac_header_preproc=yes
  7283. else
  7284. echo "$as_me: failed program was:" >&5
  7285. sed 's/^/| /' conftest.$ac_ext >&5
  7286. ac_header_preproc=no
  7287. fi
  7288. rm -f conftest.err conftest.$ac_ext
  7289. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7290. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7291. # So? What about this header?
  7292. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7293. yes:no: )
  7294. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7295. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7296. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7297. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7298. ac_header_preproc=yes
  7299. ;;
  7300. no:yes:* )
  7301. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7302. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7303. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7304. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7305. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7306. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7307. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7308. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7309. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7310. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7311. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7312. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7313. ( cat <<\_ASBOX
  7314. ## ----------------------------------------------- ##
  7315. ## Report this to t-tujikawa@users.sourceforge.net ##
  7316. ## ----------------------------------------------- ##
  7317. _ASBOX
  7318. ) | sed "s/^/$as_me: WARNING: /" >&2
  7319. ;;
  7320. esac
  7321. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7322. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7323. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7324. echo $ECHO_N "(cached) $ECHO_C" >&6
  7325. else
  7326. eval "$as_ac_Header=\$ac_header_preproc"
  7327. fi
  7328. ac_res=`eval echo '${'$as_ac_Header'}'`
  7329. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7330. echo "${ECHO_T}$ac_res" >&6; }
  7331. fi
  7332. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7333. cat >>confdefs.h <<_ACEOF
  7334. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7335. _ACEOF
  7336. fi
  7337. done
  7338. ;;
  7339. esac
  7340. for ac_header in argz.h \
  7341. arpa/inet.h \
  7342. fcntl.h \
  7343. float.h \
  7344. inttypes.h \
  7345. io.h \
  7346. langinfo.h \
  7347. libintl.h \
  7348. limits.h \
  7349. locale.h \
  7350. malloc.h \
  7351. netdb.h \
  7352. netinet/in.h \
  7353. stddef.h \
  7354. stdint.h \
  7355. stdio_ext.h \
  7356. stdlib.h \
  7357. string.h \
  7358. strings.h \
  7359. sys/ioctl.h \
  7360. sys/param.h \
  7361. sys/socket.h \
  7362. sys/time.h \
  7363. termios.h \
  7364. unistd.h \
  7365. wchar.h
  7366. do
  7367. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7368. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7369. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7370. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7371. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7372. echo $ECHO_N "(cached) $ECHO_C" >&6
  7373. fi
  7374. ac_res=`eval echo '${'$as_ac_Header'}'`
  7375. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7376. echo "${ECHO_T}$ac_res" >&6; }
  7377. else
  7378. # Is the header compilable?
  7379. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7380. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7381. cat >conftest.$ac_ext <<_ACEOF
  7382. /* confdefs.h. */
  7383. _ACEOF
  7384. cat confdefs.h >>conftest.$ac_ext
  7385. cat >>conftest.$ac_ext <<_ACEOF
  7386. /* end confdefs.h. */
  7387. $ac_includes_default
  7388. #include <$ac_header>
  7389. _ACEOF
  7390. rm -f conftest.$ac_objext
  7391. if { (ac_try="$ac_compile"
  7392. case "(($ac_try" in
  7393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7394. *) ac_try_echo=$ac_try;;
  7395. esac
  7396. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7397. (eval "$ac_compile") 2>conftest.er1
  7398. ac_status=$?
  7399. grep -v '^ *+' conftest.er1 >conftest.err
  7400. rm -f conftest.er1
  7401. cat conftest.err >&5
  7402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7403. (exit $ac_status); } && {
  7404. test -z "$ac_cxx_werror_flag" ||
  7405. test ! -s conftest.err
  7406. } && test -s conftest.$ac_objext; then
  7407. ac_header_compiler=yes
  7408. else
  7409. echo "$as_me: failed program was:" >&5
  7410. sed 's/^/| /' conftest.$ac_ext >&5
  7411. ac_header_compiler=no
  7412. fi
  7413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7414. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7415. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7416. # Is the header present?
  7417. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7418. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7419. cat >conftest.$ac_ext <<_ACEOF
  7420. /* confdefs.h. */
  7421. _ACEOF
  7422. cat confdefs.h >>conftest.$ac_ext
  7423. cat >>conftest.$ac_ext <<_ACEOF
  7424. /* end confdefs.h. */
  7425. #include <$ac_header>
  7426. _ACEOF
  7427. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7428. case "(($ac_try" in
  7429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7430. *) ac_try_echo=$ac_try;;
  7431. esac
  7432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7433. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7434. ac_status=$?
  7435. grep -v '^ *+' conftest.er1 >conftest.err
  7436. rm -f conftest.er1
  7437. cat conftest.err >&5
  7438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439. (exit $ac_status); } >/dev/null && {
  7440. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7441. test ! -s conftest.err
  7442. }; then
  7443. ac_header_preproc=yes
  7444. else
  7445. echo "$as_me: failed program was:" >&5
  7446. sed 's/^/| /' conftest.$ac_ext >&5
  7447. ac_header_preproc=no
  7448. fi
  7449. rm -f conftest.err conftest.$ac_ext
  7450. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7451. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7452. # So? What about this header?
  7453. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7454. yes:no: )
  7455. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7456. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7457. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7458. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7459. ac_header_preproc=yes
  7460. ;;
  7461. no:yes:* )
  7462. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7463. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7464. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7465. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7466. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7467. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7468. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7469. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7470. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7471. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7472. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7473. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7474. ( cat <<\_ASBOX
  7475. ## ----------------------------------------------- ##
  7476. ## Report this to t-tujikawa@users.sourceforge.net ##
  7477. ## ----------------------------------------------- ##
  7478. _ASBOX
  7479. ) | sed "s/^/$as_me: WARNING: /" >&2
  7480. ;;
  7481. esac
  7482. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7483. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7484. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7485. echo $ECHO_N "(cached) $ECHO_C" >&6
  7486. else
  7487. eval "$as_ac_Header=\$ac_header_preproc"
  7488. fi
  7489. ac_res=`eval echo '${'$as_ac_Header'}'`
  7490. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7491. echo "${ECHO_T}$ac_res" >&6; }
  7492. fi
  7493. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7494. cat >>confdefs.h <<_ACEOF
  7495. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7496. _ACEOF
  7497. fi
  7498. done
  7499. # Checks for typedefs, structures, and compiler characteristics.
  7500. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7501. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7502. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7503. echo $ECHO_N "(cached) $ECHO_C" >&6
  7504. else
  7505. cat >conftest.$ac_ext <<_ACEOF
  7506. /* confdefs.h. */
  7507. _ACEOF
  7508. cat confdefs.h >>conftest.$ac_ext
  7509. cat >>conftest.$ac_ext <<_ACEOF
  7510. /* end confdefs.h. */
  7511. #include <stdbool.h>
  7512. #ifndef bool
  7513. "error: bool is not defined"
  7514. #endif
  7515. #ifndef false
  7516. "error: false is not defined"
  7517. #endif
  7518. #if false
  7519. "error: false is not 0"
  7520. #endif
  7521. #ifndef true
  7522. "error: true is not defined"
  7523. #endif
  7524. #if true != 1
  7525. "error: true is not 1"
  7526. #endif
  7527. #ifndef __bool_true_false_are_defined
  7528. "error: __bool_true_false_are_defined is not defined"
  7529. #endif
  7530. struct s { _Bool s: 1; _Bool t; } s;
  7531. char a[true == 1 ? 1 : -1];
  7532. char b[false == 0 ? 1 : -1];
  7533. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7534. char d[(bool) 0.5 == true ? 1 : -1];
  7535. bool e = &s;
  7536. char f[(_Bool) 0.0 == false ? 1 : -1];
  7537. char g[true];
  7538. char h[sizeof (_Bool)];
  7539. char i[sizeof s.t];
  7540. enum { j = false, k = true, l = false * true, m = true * 256 };
  7541. _Bool n[m];
  7542. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7543. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7544. # if defined __xlc__ || defined __GNUC__
  7545. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7546. reported by James Lemley on 2005-10-05; see
  7547. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7548. This test is not quite right, since xlc is allowed to
  7549. reject this program, as the initializer for xlcbug is
  7550. not one of the forms that C requires support for.
  7551. However, doing the test right would require a runtime
  7552. test, and that would make cross-compilation harder.
  7553. Let us hope that IBM fixes the xlc bug, and also adds
  7554. support for this kind of constant expression. In the
  7555. meantime, this test will reject xlc, which is OK, since
  7556. our stdbool.h substitute should suffice. We also test
  7557. this with GCC, where it should work, to detect more
  7558. quickly whether someone messes up the test in the
  7559. future. */
  7560. char digs[] = "0123456789";
  7561. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7562. # endif
  7563. /* Catch a bug in an HP-UX C compiler. See
  7564. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7565. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7566. */
  7567. _Bool q = true;
  7568. _Bool *pq = &q;
  7569. int
  7570. main ()
  7571. {
  7572. *pq |= q;
  7573. *pq |= ! q;
  7574. /* Refer to every declared value, to avoid compiler optimizations. */
  7575. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7576. + !m + !n + !o + !p + !q + !pq);
  7577. ;
  7578. return 0;
  7579. }
  7580. _ACEOF
  7581. rm -f conftest.$ac_objext
  7582. if { (ac_try="$ac_compile"
  7583. case "(($ac_try" in
  7584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7585. *) ac_try_echo=$ac_try;;
  7586. esac
  7587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7588. (eval "$ac_compile") 2>conftest.er1
  7589. ac_status=$?
  7590. grep -v '^ *+' conftest.er1 >conftest.err
  7591. rm -f conftest.er1
  7592. cat conftest.err >&5
  7593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7594. (exit $ac_status); } && {
  7595. test -z "$ac_cxx_werror_flag" ||
  7596. test ! -s conftest.err
  7597. } && test -s conftest.$ac_objext; then
  7598. ac_cv_header_stdbool_h=yes
  7599. else
  7600. echo "$as_me: failed program was:" >&5
  7601. sed 's/^/| /' conftest.$ac_ext >&5
  7602. ac_cv_header_stdbool_h=no
  7603. fi
  7604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7605. fi
  7606. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7607. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7608. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7609. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7610. if test "${ac_cv_type__Bool+set}" = set; then
  7611. echo $ECHO_N "(cached) $ECHO_C" >&6
  7612. else
  7613. cat >conftest.$ac_ext <<_ACEOF
  7614. /* confdefs.h. */
  7615. _ACEOF
  7616. cat confdefs.h >>conftest.$ac_ext
  7617. cat >>conftest.$ac_ext <<_ACEOF
  7618. /* end confdefs.h. */
  7619. $ac_includes_default
  7620. typedef _Bool ac__type_new_;
  7621. int
  7622. main ()
  7623. {
  7624. if ((ac__type_new_ *) 0)
  7625. return 0;
  7626. if (sizeof (ac__type_new_))
  7627. return 0;
  7628. ;
  7629. return 0;
  7630. }
  7631. _ACEOF
  7632. rm -f conftest.$ac_objext
  7633. if { (ac_try="$ac_compile"
  7634. case "(($ac_try" in
  7635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7636. *) ac_try_echo=$ac_try;;
  7637. esac
  7638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7639. (eval "$ac_compile") 2>conftest.er1
  7640. ac_status=$?
  7641. grep -v '^ *+' conftest.er1 >conftest.err
  7642. rm -f conftest.er1
  7643. cat conftest.err >&5
  7644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7645. (exit $ac_status); } && {
  7646. test -z "$ac_cxx_werror_flag" ||
  7647. test ! -s conftest.err
  7648. } && test -s conftest.$ac_objext; then
  7649. ac_cv_type__Bool=yes
  7650. else
  7651. echo "$as_me: failed program was:" >&5
  7652. sed 's/^/| /' conftest.$ac_ext >&5
  7653. ac_cv_type__Bool=no
  7654. fi
  7655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7656. fi
  7657. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7658. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7659. if test $ac_cv_type__Bool = yes; then
  7660. cat >>confdefs.h <<_ACEOF
  7661. #define HAVE__BOOL 1
  7662. _ACEOF
  7663. fi
  7664. if test $ac_cv_header_stdbool_h = yes; then
  7665. cat >>confdefs.h <<\_ACEOF
  7666. #define HAVE_STDBOOL_H 1
  7667. _ACEOF
  7668. fi
  7669. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7670. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7671. if test "${ac_cv_c_const+set}" = set; then
  7672. echo $ECHO_N "(cached) $ECHO_C" >&6
  7673. else
  7674. cat >conftest.$ac_ext <<_ACEOF
  7675. /* confdefs.h. */
  7676. _ACEOF
  7677. cat confdefs.h >>conftest.$ac_ext
  7678. cat >>conftest.$ac_ext <<_ACEOF
  7679. /* end confdefs.h. */
  7680. int
  7681. main ()
  7682. {
  7683. /* FIXME: Include the comments suggested by Paul. */
  7684. #ifndef __cplusplus
  7685. /* Ultrix mips cc rejects this. */
  7686. typedef int charset[2];
  7687. const charset cs;
  7688. /* SunOS 4.1.1 cc rejects this. */
  7689. char const *const *pcpcc;
  7690. char **ppc;
  7691. /* NEC SVR4.0.2 mips cc rejects this. */
  7692. struct point {int x, y;};
  7693. static struct point const zero = {0,0};
  7694. /* AIX XL C 1.02.0.0 rejects this.
  7695. It does not let you subtract one const X* pointer from another in
  7696. an arm of an if-expression whose if-part is not a constant
  7697. expression */
  7698. const char *g = "string";
  7699. pcpcc = &g + (g ? g-g : 0);
  7700. /* HPUX 7.0 cc rejects these. */
  7701. ++pcpcc;
  7702. ppc = (char**) pcpcc;
  7703. pcpcc = (char const *const *) ppc;
  7704. { /* SCO 3.2v4 cc rejects this. */
  7705. char *t;
  7706. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7707. *t++ = 0;
  7708. if (s) return 0;
  7709. }
  7710. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7711. int x[] = {25, 17};
  7712. const int *foo = &x[0];
  7713. ++foo;
  7714. }
  7715. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7716. typedef const int *iptr;
  7717. iptr p = 0;
  7718. ++p;
  7719. }
  7720. { /* AIX XL C 1.02.0.0 rejects this saying
  7721. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7722. struct s { int j; const int *ap[3]; };
  7723. struct s *b; b->j = 5;
  7724. }
  7725. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7726. const int foo = 10;
  7727. if (!foo) return 0;
  7728. }
  7729. return !cs[0] && !zero.x;
  7730. #endif
  7731. ;
  7732. return 0;
  7733. }
  7734. _ACEOF
  7735. rm -f conftest.$ac_objext
  7736. if { (ac_try="$ac_compile"
  7737. case "(($ac_try" in
  7738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7739. *) ac_try_echo=$ac_try;;
  7740. esac
  7741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7742. (eval "$ac_compile") 2>conftest.er1
  7743. ac_status=$?
  7744. grep -v '^ *+' conftest.er1 >conftest.err
  7745. rm -f conftest.er1
  7746. cat conftest.err >&5
  7747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7748. (exit $ac_status); } && {
  7749. test -z "$ac_cxx_werror_flag" ||
  7750. test ! -s conftest.err
  7751. } && test -s conftest.$ac_objext; then
  7752. ac_cv_c_const=yes
  7753. else
  7754. echo "$as_me: failed program was:" >&5
  7755. sed 's/^/| /' conftest.$ac_ext >&5
  7756. ac_cv_c_const=no
  7757. fi
  7758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7759. fi
  7760. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7761. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7762. if test $ac_cv_c_const = no; then
  7763. cat >>confdefs.h <<\_ACEOF
  7764. #define const
  7765. _ACEOF
  7766. fi
  7767. { echo "$as_me:$LINENO: checking for inline" >&5
  7768. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7769. if test "${ac_cv_c_inline+set}" = set; then
  7770. echo $ECHO_N "(cached) $ECHO_C" >&6
  7771. else
  7772. ac_cv_c_inline=no
  7773. for ac_kw in inline __inline__ __inline; do
  7774. cat >conftest.$ac_ext <<_ACEOF
  7775. /* confdefs.h. */
  7776. _ACEOF
  7777. cat confdefs.h >>conftest.$ac_ext
  7778. cat >>conftest.$ac_ext <<_ACEOF
  7779. /* end confdefs.h. */
  7780. #ifndef __cplusplus
  7781. typedef int foo_t;
  7782. static $ac_kw foo_t static_foo () {return 0; }
  7783. $ac_kw foo_t foo () {return 0; }
  7784. #endif
  7785. _ACEOF
  7786. rm -f conftest.$ac_objext
  7787. if { (ac_try="$ac_compile"
  7788. case "(($ac_try" in
  7789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7790. *) ac_try_echo=$ac_try;;
  7791. esac
  7792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7793. (eval "$ac_compile") 2>conftest.er1
  7794. ac_status=$?
  7795. grep -v '^ *+' conftest.er1 >conftest.err
  7796. rm -f conftest.er1
  7797. cat conftest.err >&5
  7798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7799. (exit $ac_status); } && {
  7800. test -z "$ac_cxx_werror_flag" ||
  7801. test ! -s conftest.err
  7802. } && test -s conftest.$ac_objext; then
  7803. ac_cv_c_inline=$ac_kw
  7804. else
  7805. echo "$as_me: failed program was:" >&5
  7806. sed 's/^/| /' conftest.$ac_ext >&5
  7807. fi
  7808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7809. test "$ac_cv_c_inline" != no && break
  7810. done
  7811. fi
  7812. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7813. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7814. case $ac_cv_c_inline in
  7815. inline | yes) ;;
  7816. *)
  7817. case $ac_cv_c_inline in
  7818. no) ac_val=;;
  7819. *) ac_val=$ac_cv_c_inline;;
  7820. esac
  7821. cat >>confdefs.h <<_ACEOF
  7822. #ifndef __cplusplus
  7823. #define inline $ac_val
  7824. #endif
  7825. _ACEOF
  7826. ;;
  7827. esac
  7828. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7829. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7830. if test "${ac_cv_c_int16_t+set}" = set; then
  7831. echo $ECHO_N "(cached) $ECHO_C" >&6
  7832. else
  7833. ac_cv_c_int16_t=no
  7834. for ac_type in 'int16_t' 'int' 'long int' \
  7835. 'long long int' 'short int' 'signed char'; do
  7836. cat >conftest.$ac_ext <<_ACEOF
  7837. /* confdefs.h. */
  7838. _ACEOF
  7839. cat confdefs.h >>conftest.$ac_ext
  7840. cat >>conftest.$ac_ext <<_ACEOF
  7841. /* end confdefs.h. */
  7842. $ac_includes_default
  7843. int
  7844. main ()
  7845. {
  7846. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7847. test_array [0] = 0
  7848. ;
  7849. return 0;
  7850. }
  7851. _ACEOF
  7852. rm -f conftest.$ac_objext
  7853. if { (ac_try="$ac_compile"
  7854. case "(($ac_try" in
  7855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7856. *) ac_try_echo=$ac_try;;
  7857. esac
  7858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7859. (eval "$ac_compile") 2>conftest.er1
  7860. ac_status=$?
  7861. grep -v '^ *+' conftest.er1 >conftest.err
  7862. rm -f conftest.er1
  7863. cat conftest.err >&5
  7864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7865. (exit $ac_status); } && {
  7866. test -z "$ac_cxx_werror_flag" ||
  7867. test ! -s conftest.err
  7868. } && test -s conftest.$ac_objext; then
  7869. cat >conftest.$ac_ext <<_ACEOF
  7870. /* confdefs.h. */
  7871. _ACEOF
  7872. cat confdefs.h >>conftest.$ac_ext
  7873. cat >>conftest.$ac_ext <<_ACEOF
  7874. /* end confdefs.h. */
  7875. $ac_includes_default
  7876. int
  7877. main ()
  7878. {
  7879. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7880. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7881. test_array [0] = 0
  7882. ;
  7883. return 0;
  7884. }
  7885. _ACEOF
  7886. rm -f conftest.$ac_objext
  7887. if { (ac_try="$ac_compile"
  7888. case "(($ac_try" in
  7889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7890. *) ac_try_echo=$ac_try;;
  7891. esac
  7892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7893. (eval "$ac_compile") 2>conftest.er1
  7894. ac_status=$?
  7895. grep -v '^ *+' conftest.er1 >conftest.err
  7896. rm -f conftest.er1
  7897. cat conftest.err >&5
  7898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7899. (exit $ac_status); } && {
  7900. test -z "$ac_cxx_werror_flag" ||
  7901. test ! -s conftest.err
  7902. } && test -s conftest.$ac_objext; then
  7903. :
  7904. else
  7905. echo "$as_me: failed program was:" >&5
  7906. sed 's/^/| /' conftest.$ac_ext >&5
  7907. case $ac_type in
  7908. int16_t) ac_cv_c_int16_t=yes ;;
  7909. *) ac_cv_c_int16_t=$ac_type ;;
  7910. esac
  7911. fi
  7912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7913. else
  7914. echo "$as_me: failed program was:" >&5
  7915. sed 's/^/| /' conftest.$ac_ext >&5
  7916. fi
  7917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7918. test "$ac_cv_c_int16_t" != no && break
  7919. done
  7920. fi
  7921. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7922. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7923. case $ac_cv_c_int16_t in #(
  7924. no|yes) ;; #(
  7925. *)
  7926. cat >>confdefs.h <<_ACEOF
  7927. #define int16_t $ac_cv_c_int16_t
  7928. _ACEOF
  7929. ;;
  7930. esac
  7931. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7932. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7933. if test "${ac_cv_c_int32_t+set}" = set; then
  7934. echo $ECHO_N "(cached) $ECHO_C" >&6
  7935. else
  7936. ac_cv_c_int32_t=no
  7937. for ac_type in 'int32_t' 'int' 'long int' \
  7938. 'long long int' 'short int' 'signed char'; do
  7939. cat >conftest.$ac_ext <<_ACEOF
  7940. /* confdefs.h. */
  7941. _ACEOF
  7942. cat confdefs.h >>conftest.$ac_ext
  7943. cat >>conftest.$ac_ext <<_ACEOF
  7944. /* end confdefs.h. */
  7945. $ac_includes_default
  7946. int
  7947. main ()
  7948. {
  7949. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7950. test_array [0] = 0
  7951. ;
  7952. return 0;
  7953. }
  7954. _ACEOF
  7955. rm -f conftest.$ac_objext
  7956. if { (ac_try="$ac_compile"
  7957. case "(($ac_try" in
  7958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7959. *) ac_try_echo=$ac_try;;
  7960. esac
  7961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7962. (eval "$ac_compile") 2>conftest.er1
  7963. ac_status=$?
  7964. grep -v '^ *+' conftest.er1 >conftest.err
  7965. rm -f conftest.er1
  7966. cat conftest.err >&5
  7967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7968. (exit $ac_status); } && {
  7969. test -z "$ac_cxx_werror_flag" ||
  7970. test ! -s conftest.err
  7971. } && test -s conftest.$ac_objext; then
  7972. cat >conftest.$ac_ext <<_ACEOF
  7973. /* confdefs.h. */
  7974. _ACEOF
  7975. cat confdefs.h >>conftest.$ac_ext
  7976. cat >>conftest.$ac_ext <<_ACEOF
  7977. /* end confdefs.h. */
  7978. $ac_includes_default
  7979. int
  7980. main ()
  7981. {
  7982. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7983. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7984. test_array [0] = 0
  7985. ;
  7986. return 0;
  7987. }
  7988. _ACEOF
  7989. rm -f conftest.$ac_objext
  7990. if { (ac_try="$ac_compile"
  7991. case "(($ac_try" in
  7992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7993. *) ac_try_echo=$ac_try;;
  7994. esac
  7995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7996. (eval "$ac_compile") 2>conftest.er1
  7997. ac_status=$?
  7998. grep -v '^ *+' conftest.er1 >conftest.err
  7999. rm -f conftest.er1
  8000. cat conftest.err >&5
  8001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8002. (exit $ac_status); } && {
  8003. test -z "$ac_cxx_werror_flag" ||
  8004. test ! -s conftest.err
  8005. } && test -s conftest.$ac_objext; then
  8006. :
  8007. else
  8008. echo "$as_me: failed program was:" >&5
  8009. sed 's/^/| /' conftest.$ac_ext >&5
  8010. case $ac_type in
  8011. int32_t) ac_cv_c_int32_t=yes ;;
  8012. *) ac_cv_c_int32_t=$ac_type ;;
  8013. esac
  8014. fi
  8015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8016. else
  8017. echo "$as_me: failed program was:" >&5
  8018. sed 's/^/| /' conftest.$ac_ext >&5
  8019. fi
  8020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8021. test "$ac_cv_c_int32_t" != no && break
  8022. done
  8023. fi
  8024. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  8025. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  8026. case $ac_cv_c_int32_t in #(
  8027. no|yes) ;; #(
  8028. *)
  8029. cat >>confdefs.h <<_ACEOF
  8030. #define int32_t $ac_cv_c_int32_t
  8031. _ACEOF
  8032. ;;
  8033. esac
  8034. { echo "$as_me:$LINENO: checking for int64_t" >&5
  8035. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  8036. if test "${ac_cv_c_int64_t+set}" = set; then
  8037. echo $ECHO_N "(cached) $ECHO_C" >&6
  8038. else
  8039. ac_cv_c_int64_t=no
  8040. for ac_type in 'int64_t' 'int' 'long int' \
  8041. 'long long int' 'short int' 'signed char'; do
  8042. cat >conftest.$ac_ext <<_ACEOF
  8043. /* confdefs.h. */
  8044. _ACEOF
  8045. cat confdefs.h >>conftest.$ac_ext
  8046. cat >>conftest.$ac_ext <<_ACEOF
  8047. /* end confdefs.h. */
  8048. $ac_includes_default
  8049. int
  8050. main ()
  8051. {
  8052. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8053. test_array [0] = 0
  8054. ;
  8055. return 0;
  8056. }
  8057. _ACEOF
  8058. rm -f conftest.$ac_objext
  8059. if { (ac_try="$ac_compile"
  8060. case "(($ac_try" in
  8061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8062. *) ac_try_echo=$ac_try;;
  8063. esac
  8064. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8065. (eval "$ac_compile") 2>conftest.er1
  8066. ac_status=$?
  8067. grep -v '^ *+' conftest.er1 >conftest.err
  8068. rm -f conftest.er1
  8069. cat conftest.err >&5
  8070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8071. (exit $ac_status); } && {
  8072. test -z "$ac_cxx_werror_flag" ||
  8073. test ! -s conftest.err
  8074. } && test -s conftest.$ac_objext; then
  8075. cat >conftest.$ac_ext <<_ACEOF
  8076. /* confdefs.h. */
  8077. _ACEOF
  8078. cat confdefs.h >>conftest.$ac_ext
  8079. cat >>conftest.$ac_ext <<_ACEOF
  8080. /* end confdefs.h. */
  8081. $ac_includes_default
  8082. int
  8083. main ()
  8084. {
  8085. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8086. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8087. test_array [0] = 0
  8088. ;
  8089. return 0;
  8090. }
  8091. _ACEOF
  8092. rm -f conftest.$ac_objext
  8093. if { (ac_try="$ac_compile"
  8094. case "(($ac_try" in
  8095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8096. *) ac_try_echo=$ac_try;;
  8097. esac
  8098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8099. (eval "$ac_compile") 2>conftest.er1
  8100. ac_status=$?
  8101. grep -v '^ *+' conftest.er1 >conftest.err
  8102. rm -f conftest.er1
  8103. cat conftest.err >&5
  8104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8105. (exit $ac_status); } && {
  8106. test -z "$ac_cxx_werror_flag" ||
  8107. test ! -s conftest.err
  8108. } && test -s conftest.$ac_objext; then
  8109. :
  8110. else
  8111. echo "$as_me: failed program was:" >&5
  8112. sed 's/^/| /' conftest.$ac_ext >&5
  8113. case $ac_type in
  8114. int64_t) ac_cv_c_int64_t=yes ;;
  8115. *) ac_cv_c_int64_t=$ac_type ;;
  8116. esac
  8117. fi
  8118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8119. else
  8120. echo "$as_me: failed program was:" >&5
  8121. sed 's/^/| /' conftest.$ac_ext >&5
  8122. fi
  8123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8124. test "$ac_cv_c_int64_t" != no && break
  8125. done
  8126. fi
  8127. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8128. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  8129. case $ac_cv_c_int64_t in #(
  8130. no|yes) ;; #(
  8131. *)
  8132. cat >>confdefs.h <<_ACEOF
  8133. #define int64_t $ac_cv_c_int64_t
  8134. _ACEOF
  8135. ;;
  8136. esac
  8137. { echo "$as_me:$LINENO: checking for int8_t" >&5
  8138. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  8139. if test "${ac_cv_c_int8_t+set}" = set; then
  8140. echo $ECHO_N "(cached) $ECHO_C" >&6
  8141. else
  8142. ac_cv_c_int8_t=no
  8143. for ac_type in 'int8_t' 'int' 'long int' \
  8144. 'long long int' 'short int' 'signed char'; do
  8145. cat >conftest.$ac_ext <<_ACEOF
  8146. /* confdefs.h. */
  8147. _ACEOF
  8148. cat confdefs.h >>conftest.$ac_ext
  8149. cat >>conftest.$ac_ext <<_ACEOF
  8150. /* end confdefs.h. */
  8151. $ac_includes_default
  8152. int
  8153. main ()
  8154. {
  8155. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8156. test_array [0] = 0
  8157. ;
  8158. return 0;
  8159. }
  8160. _ACEOF
  8161. rm -f conftest.$ac_objext
  8162. if { (ac_try="$ac_compile"
  8163. case "(($ac_try" in
  8164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8165. *) ac_try_echo=$ac_try;;
  8166. esac
  8167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8168. (eval "$ac_compile") 2>conftest.er1
  8169. ac_status=$?
  8170. grep -v '^ *+' conftest.er1 >conftest.err
  8171. rm -f conftest.er1
  8172. cat conftest.err >&5
  8173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8174. (exit $ac_status); } && {
  8175. test -z "$ac_cxx_werror_flag" ||
  8176. test ! -s conftest.err
  8177. } && test -s conftest.$ac_objext; then
  8178. cat >conftest.$ac_ext <<_ACEOF
  8179. /* confdefs.h. */
  8180. _ACEOF
  8181. cat confdefs.h >>conftest.$ac_ext
  8182. cat >>conftest.$ac_ext <<_ACEOF
  8183. /* end confdefs.h. */
  8184. $ac_includes_default
  8185. int
  8186. main ()
  8187. {
  8188. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8189. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8190. test_array [0] = 0
  8191. ;
  8192. return 0;
  8193. }
  8194. _ACEOF
  8195. rm -f conftest.$ac_objext
  8196. if { (ac_try="$ac_compile"
  8197. case "(($ac_try" in
  8198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8199. *) ac_try_echo=$ac_try;;
  8200. esac
  8201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8202. (eval "$ac_compile") 2>conftest.er1
  8203. ac_status=$?
  8204. grep -v '^ *+' conftest.er1 >conftest.err
  8205. rm -f conftest.er1
  8206. cat conftest.err >&5
  8207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. (exit $ac_status); } && {
  8209. test -z "$ac_cxx_werror_flag" ||
  8210. test ! -s conftest.err
  8211. } && test -s conftest.$ac_objext; then
  8212. :
  8213. else
  8214. echo "$as_me: failed program was:" >&5
  8215. sed 's/^/| /' conftest.$ac_ext >&5
  8216. case $ac_type in
  8217. int8_t) ac_cv_c_int8_t=yes ;;
  8218. *) ac_cv_c_int8_t=$ac_type ;;
  8219. esac
  8220. fi
  8221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8222. else
  8223. echo "$as_me: failed program was:" >&5
  8224. sed 's/^/| /' conftest.$ac_ext >&5
  8225. fi
  8226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8227. test "$ac_cv_c_int8_t" != no && break
  8228. done
  8229. fi
  8230. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8231. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  8232. case $ac_cv_c_int8_t in #(
  8233. no|yes) ;; #(
  8234. *)
  8235. cat >>confdefs.h <<_ACEOF
  8236. #define int8_t $ac_cv_c_int8_t
  8237. _ACEOF
  8238. ;;
  8239. esac
  8240. { echo "$as_me:$LINENO: checking for mode_t" >&5
  8241. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  8242. if test "${ac_cv_type_mode_t+set}" = set; then
  8243. echo $ECHO_N "(cached) $ECHO_C" >&6
  8244. else
  8245. cat >conftest.$ac_ext <<_ACEOF
  8246. /* confdefs.h. */
  8247. _ACEOF
  8248. cat confdefs.h >>conftest.$ac_ext
  8249. cat >>conftest.$ac_ext <<_ACEOF
  8250. /* end confdefs.h. */
  8251. $ac_includes_default
  8252. typedef mode_t ac__type_new_;
  8253. int
  8254. main ()
  8255. {
  8256. if ((ac__type_new_ *) 0)
  8257. return 0;
  8258. if (sizeof (ac__type_new_))
  8259. return 0;
  8260. ;
  8261. return 0;
  8262. }
  8263. _ACEOF
  8264. rm -f conftest.$ac_objext
  8265. if { (ac_try="$ac_compile"
  8266. case "(($ac_try" in
  8267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8268. *) ac_try_echo=$ac_try;;
  8269. esac
  8270. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8271. (eval "$ac_compile") 2>conftest.er1
  8272. ac_status=$?
  8273. grep -v '^ *+' conftest.er1 >conftest.err
  8274. rm -f conftest.er1
  8275. cat conftest.err >&5
  8276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8277. (exit $ac_status); } && {
  8278. test -z "$ac_cxx_werror_flag" ||
  8279. test ! -s conftest.err
  8280. } && test -s conftest.$ac_objext; then
  8281. ac_cv_type_mode_t=yes
  8282. else
  8283. echo "$as_me: failed program was:" >&5
  8284. sed 's/^/| /' conftest.$ac_ext >&5
  8285. ac_cv_type_mode_t=no
  8286. fi
  8287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8288. fi
  8289. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8290. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  8291. if test $ac_cv_type_mode_t = yes; then
  8292. :
  8293. else
  8294. cat >>confdefs.h <<_ACEOF
  8295. #define mode_t int
  8296. _ACEOF
  8297. fi
  8298. { echo "$as_me:$LINENO: checking for off_t" >&5
  8299. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8300. if test "${ac_cv_type_off_t+set}" = set; then
  8301. echo $ECHO_N "(cached) $ECHO_C" >&6
  8302. else
  8303. cat >conftest.$ac_ext <<_ACEOF
  8304. /* confdefs.h. */
  8305. _ACEOF
  8306. cat confdefs.h >>conftest.$ac_ext
  8307. cat >>conftest.$ac_ext <<_ACEOF
  8308. /* end confdefs.h. */
  8309. $ac_includes_default
  8310. typedef off_t ac__type_new_;
  8311. int
  8312. main ()
  8313. {
  8314. if ((ac__type_new_ *) 0)
  8315. return 0;
  8316. if (sizeof (ac__type_new_))
  8317. return 0;
  8318. ;
  8319. return 0;
  8320. }
  8321. _ACEOF
  8322. rm -f conftest.$ac_objext
  8323. if { (ac_try="$ac_compile"
  8324. case "(($ac_try" in
  8325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8326. *) ac_try_echo=$ac_try;;
  8327. esac
  8328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8329. (eval "$ac_compile") 2>conftest.er1
  8330. ac_status=$?
  8331. grep -v '^ *+' conftest.er1 >conftest.err
  8332. rm -f conftest.er1
  8333. cat conftest.err >&5
  8334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8335. (exit $ac_status); } && {
  8336. test -z "$ac_cxx_werror_flag" ||
  8337. test ! -s conftest.err
  8338. } && test -s conftest.$ac_objext; then
  8339. ac_cv_type_off_t=yes
  8340. else
  8341. echo "$as_me: failed program was:" >&5
  8342. sed 's/^/| /' conftest.$ac_ext >&5
  8343. ac_cv_type_off_t=no
  8344. fi
  8345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8346. fi
  8347. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8348. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8349. if test $ac_cv_type_off_t = yes; then
  8350. :
  8351. else
  8352. cat >>confdefs.h <<_ACEOF
  8353. #define off_t long int
  8354. _ACEOF
  8355. fi
  8356. { echo "$as_me:$LINENO: checking for size_t" >&5
  8357. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8358. if test "${ac_cv_type_size_t+set}" = set; then
  8359. echo $ECHO_N "(cached) $ECHO_C" >&6
  8360. else
  8361. cat >conftest.$ac_ext <<_ACEOF
  8362. /* confdefs.h. */
  8363. _ACEOF
  8364. cat confdefs.h >>conftest.$ac_ext
  8365. cat >>conftest.$ac_ext <<_ACEOF
  8366. /* end confdefs.h. */
  8367. $ac_includes_default
  8368. typedef size_t ac__type_new_;
  8369. int
  8370. main ()
  8371. {
  8372. if ((ac__type_new_ *) 0)
  8373. return 0;
  8374. if (sizeof (ac__type_new_))
  8375. return 0;
  8376. ;
  8377. return 0;
  8378. }
  8379. _ACEOF
  8380. rm -f conftest.$ac_objext
  8381. if { (ac_try="$ac_compile"
  8382. case "(($ac_try" in
  8383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8384. *) ac_try_echo=$ac_try;;
  8385. esac
  8386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8387. (eval "$ac_compile") 2>conftest.er1
  8388. ac_status=$?
  8389. grep -v '^ *+' conftest.er1 >conftest.err
  8390. rm -f conftest.er1
  8391. cat conftest.err >&5
  8392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8393. (exit $ac_status); } && {
  8394. test -z "$ac_cxx_werror_flag" ||
  8395. test ! -s conftest.err
  8396. } && test -s conftest.$ac_objext; then
  8397. ac_cv_type_size_t=yes
  8398. else
  8399. echo "$as_me: failed program was:" >&5
  8400. sed 's/^/| /' conftest.$ac_ext >&5
  8401. ac_cv_type_size_t=no
  8402. fi
  8403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8404. fi
  8405. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8406. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8407. if test $ac_cv_type_size_t = yes; then
  8408. :
  8409. else
  8410. cat >>confdefs.h <<_ACEOF
  8411. #define size_t unsigned int
  8412. _ACEOF
  8413. fi
  8414. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8415. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8416. if test "${ac_cv_type_ssize_t+set}" = set; then
  8417. echo $ECHO_N "(cached) $ECHO_C" >&6
  8418. else
  8419. cat >conftest.$ac_ext <<_ACEOF
  8420. /* confdefs.h. */
  8421. _ACEOF
  8422. cat confdefs.h >>conftest.$ac_ext
  8423. cat >>conftest.$ac_ext <<_ACEOF
  8424. /* end confdefs.h. */
  8425. $ac_includes_default
  8426. typedef ssize_t ac__type_new_;
  8427. int
  8428. main ()
  8429. {
  8430. if ((ac__type_new_ *) 0)
  8431. return 0;
  8432. if (sizeof (ac__type_new_))
  8433. return 0;
  8434. ;
  8435. return 0;
  8436. }
  8437. _ACEOF
  8438. rm -f conftest.$ac_objext
  8439. if { (ac_try="$ac_compile"
  8440. case "(($ac_try" in
  8441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8442. *) ac_try_echo=$ac_try;;
  8443. esac
  8444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8445. (eval "$ac_compile") 2>conftest.er1
  8446. ac_status=$?
  8447. grep -v '^ *+' conftest.er1 >conftest.err
  8448. rm -f conftest.er1
  8449. cat conftest.err >&5
  8450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8451. (exit $ac_status); } && {
  8452. test -z "$ac_cxx_werror_flag" ||
  8453. test ! -s conftest.err
  8454. } && test -s conftest.$ac_objext; then
  8455. ac_cv_type_ssize_t=yes
  8456. else
  8457. echo "$as_me: failed program was:" >&5
  8458. sed 's/^/| /' conftest.$ac_ext >&5
  8459. ac_cv_type_ssize_t=no
  8460. fi
  8461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8462. fi
  8463. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8464. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8465. if test $ac_cv_type_ssize_t = yes; then
  8466. :
  8467. else
  8468. cat >>confdefs.h <<_ACEOF
  8469. #define ssize_t int
  8470. _ACEOF
  8471. fi
  8472. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8473. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8474. if test "${ac_cv_header_time+set}" = set; then
  8475. echo $ECHO_N "(cached) $ECHO_C" >&6
  8476. else
  8477. cat >conftest.$ac_ext <<_ACEOF
  8478. /* confdefs.h. */
  8479. _ACEOF
  8480. cat confdefs.h >>conftest.$ac_ext
  8481. cat >>conftest.$ac_ext <<_ACEOF
  8482. /* end confdefs.h. */
  8483. #include <sys/types.h>
  8484. #include <sys/time.h>
  8485. #include <time.h>
  8486. int
  8487. main ()
  8488. {
  8489. if ((struct tm *) 0)
  8490. return 0;
  8491. ;
  8492. return 0;
  8493. }
  8494. _ACEOF
  8495. rm -f conftest.$ac_objext
  8496. if { (ac_try="$ac_compile"
  8497. case "(($ac_try" in
  8498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8499. *) ac_try_echo=$ac_try;;
  8500. esac
  8501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8502. (eval "$ac_compile") 2>conftest.er1
  8503. ac_status=$?
  8504. grep -v '^ *+' conftest.er1 >conftest.err
  8505. rm -f conftest.er1
  8506. cat conftest.err >&5
  8507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8508. (exit $ac_status); } && {
  8509. test -z "$ac_cxx_werror_flag" ||
  8510. test ! -s conftest.err
  8511. } && test -s conftest.$ac_objext; then
  8512. ac_cv_header_time=yes
  8513. else
  8514. echo "$as_me: failed program was:" >&5
  8515. sed 's/^/| /' conftest.$ac_ext >&5
  8516. ac_cv_header_time=no
  8517. fi
  8518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8519. fi
  8520. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8521. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8522. if test $ac_cv_header_time = yes; then
  8523. cat >>confdefs.h <<\_ACEOF
  8524. #define TIME_WITH_SYS_TIME 1
  8525. _ACEOF
  8526. fi
  8527. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8528. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8529. if test "${ac_cv_struct_tm+set}" = set; then
  8530. echo $ECHO_N "(cached) $ECHO_C" >&6
  8531. else
  8532. cat >conftest.$ac_ext <<_ACEOF
  8533. /* confdefs.h. */
  8534. _ACEOF
  8535. cat confdefs.h >>conftest.$ac_ext
  8536. cat >>conftest.$ac_ext <<_ACEOF
  8537. /* end confdefs.h. */
  8538. #include <sys/types.h>
  8539. #include <time.h>
  8540. int
  8541. main ()
  8542. {
  8543. struct tm tm;
  8544. int *p = &tm.tm_sec;
  8545. return !p;
  8546. ;
  8547. return 0;
  8548. }
  8549. _ACEOF
  8550. rm -f conftest.$ac_objext
  8551. if { (ac_try="$ac_compile"
  8552. case "(($ac_try" in
  8553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8554. *) ac_try_echo=$ac_try;;
  8555. esac
  8556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8557. (eval "$ac_compile") 2>conftest.er1
  8558. ac_status=$?
  8559. grep -v '^ *+' conftest.er1 >conftest.err
  8560. rm -f conftest.er1
  8561. cat conftest.err >&5
  8562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8563. (exit $ac_status); } && {
  8564. test -z "$ac_cxx_werror_flag" ||
  8565. test ! -s conftest.err
  8566. } && test -s conftest.$ac_objext; then
  8567. ac_cv_struct_tm=time.h
  8568. else
  8569. echo "$as_me: failed program was:" >&5
  8570. sed 's/^/| /' conftest.$ac_ext >&5
  8571. ac_cv_struct_tm=sys/time.h
  8572. fi
  8573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8574. fi
  8575. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8576. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8577. if test $ac_cv_struct_tm = sys/time.h; then
  8578. cat >>confdefs.h <<\_ACEOF
  8579. #define TM_IN_SYS_TIME 1
  8580. _ACEOF
  8581. fi
  8582. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8583. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8584. if test "${ac_cv_c_uint16_t+set}" = set; then
  8585. echo $ECHO_N "(cached) $ECHO_C" >&6
  8586. else
  8587. ac_cv_c_uint16_t=no
  8588. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8589. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8590. cat >conftest.$ac_ext <<_ACEOF
  8591. /* confdefs.h. */
  8592. _ACEOF
  8593. cat confdefs.h >>conftest.$ac_ext
  8594. cat >>conftest.$ac_ext <<_ACEOF
  8595. /* end confdefs.h. */
  8596. $ac_includes_default
  8597. int
  8598. main ()
  8599. {
  8600. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8601. test_array [0] = 0
  8602. ;
  8603. return 0;
  8604. }
  8605. _ACEOF
  8606. rm -f conftest.$ac_objext
  8607. if { (ac_try="$ac_compile"
  8608. case "(($ac_try" in
  8609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8610. *) ac_try_echo=$ac_try;;
  8611. esac
  8612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8613. (eval "$ac_compile") 2>conftest.er1
  8614. ac_status=$?
  8615. grep -v '^ *+' conftest.er1 >conftest.err
  8616. rm -f conftest.er1
  8617. cat conftest.err >&5
  8618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8619. (exit $ac_status); } && {
  8620. test -z "$ac_cxx_werror_flag" ||
  8621. test ! -s conftest.err
  8622. } && test -s conftest.$ac_objext; then
  8623. case $ac_type in
  8624. uint16_t) ac_cv_c_uint16_t=yes ;;
  8625. *) ac_cv_c_uint16_t=$ac_type ;;
  8626. esac
  8627. else
  8628. echo "$as_me: failed program was:" >&5
  8629. sed 's/^/| /' conftest.$ac_ext >&5
  8630. fi
  8631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8632. test "$ac_cv_c_uint16_t" != no && break
  8633. done
  8634. fi
  8635. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8636. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8637. case $ac_cv_c_uint16_t in #(
  8638. no|yes) ;; #(
  8639. *)
  8640. cat >>confdefs.h <<_ACEOF
  8641. #define uint16_t $ac_cv_c_uint16_t
  8642. _ACEOF
  8643. ;;
  8644. esac
  8645. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8646. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8647. if test "${ac_cv_c_uint32_t+set}" = set; then
  8648. echo $ECHO_N "(cached) $ECHO_C" >&6
  8649. else
  8650. ac_cv_c_uint32_t=no
  8651. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8652. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8653. cat >conftest.$ac_ext <<_ACEOF
  8654. /* confdefs.h. */
  8655. _ACEOF
  8656. cat confdefs.h >>conftest.$ac_ext
  8657. cat >>conftest.$ac_ext <<_ACEOF
  8658. /* end confdefs.h. */
  8659. $ac_includes_default
  8660. int
  8661. main ()
  8662. {
  8663. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8664. test_array [0] = 0
  8665. ;
  8666. return 0;
  8667. }
  8668. _ACEOF
  8669. rm -f conftest.$ac_objext
  8670. if { (ac_try="$ac_compile"
  8671. case "(($ac_try" in
  8672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8673. *) ac_try_echo=$ac_try;;
  8674. esac
  8675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8676. (eval "$ac_compile") 2>conftest.er1
  8677. ac_status=$?
  8678. grep -v '^ *+' conftest.er1 >conftest.err
  8679. rm -f conftest.er1
  8680. cat conftest.err >&5
  8681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8682. (exit $ac_status); } && {
  8683. test -z "$ac_cxx_werror_flag" ||
  8684. test ! -s conftest.err
  8685. } && test -s conftest.$ac_objext; then
  8686. case $ac_type in
  8687. uint32_t) ac_cv_c_uint32_t=yes ;;
  8688. *) ac_cv_c_uint32_t=$ac_type ;;
  8689. esac
  8690. else
  8691. echo "$as_me: failed program was:" >&5
  8692. sed 's/^/| /' conftest.$ac_ext >&5
  8693. fi
  8694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8695. test "$ac_cv_c_uint32_t" != no && break
  8696. done
  8697. fi
  8698. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8699. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8700. case $ac_cv_c_uint32_t in #(
  8701. no|yes) ;; #(
  8702. *)
  8703. cat >>confdefs.h <<\_ACEOF
  8704. #define _UINT32_T 1
  8705. _ACEOF
  8706. cat >>confdefs.h <<_ACEOF
  8707. #define uint32_t $ac_cv_c_uint32_t
  8708. _ACEOF
  8709. ;;
  8710. esac
  8711. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8712. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8713. if test "${ac_cv_c_uint64_t+set}" = set; then
  8714. echo $ECHO_N "(cached) $ECHO_C" >&6
  8715. else
  8716. ac_cv_c_uint64_t=no
  8717. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8718. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8719. cat >conftest.$ac_ext <<_ACEOF
  8720. /* confdefs.h. */
  8721. _ACEOF
  8722. cat confdefs.h >>conftest.$ac_ext
  8723. cat >>conftest.$ac_ext <<_ACEOF
  8724. /* end confdefs.h. */
  8725. $ac_includes_default
  8726. int
  8727. main ()
  8728. {
  8729. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8730. test_array [0] = 0
  8731. ;
  8732. return 0;
  8733. }
  8734. _ACEOF
  8735. rm -f conftest.$ac_objext
  8736. if { (ac_try="$ac_compile"
  8737. case "(($ac_try" in
  8738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8739. *) ac_try_echo=$ac_try;;
  8740. esac
  8741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8742. (eval "$ac_compile") 2>conftest.er1
  8743. ac_status=$?
  8744. grep -v '^ *+' conftest.er1 >conftest.err
  8745. rm -f conftest.er1
  8746. cat conftest.err >&5
  8747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8748. (exit $ac_status); } && {
  8749. test -z "$ac_cxx_werror_flag" ||
  8750. test ! -s conftest.err
  8751. } && test -s conftest.$ac_objext; then
  8752. case $ac_type in
  8753. uint64_t) ac_cv_c_uint64_t=yes ;;
  8754. *) ac_cv_c_uint64_t=$ac_type ;;
  8755. esac
  8756. else
  8757. echo "$as_me: failed program was:" >&5
  8758. sed 's/^/| /' conftest.$ac_ext >&5
  8759. fi
  8760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8761. test "$ac_cv_c_uint64_t" != no && break
  8762. done
  8763. fi
  8764. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8765. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8766. case $ac_cv_c_uint64_t in #(
  8767. no|yes) ;; #(
  8768. *)
  8769. cat >>confdefs.h <<\_ACEOF
  8770. #define _UINT64_T 1
  8771. _ACEOF
  8772. cat >>confdefs.h <<_ACEOF
  8773. #define uint64_t $ac_cv_c_uint64_t
  8774. _ACEOF
  8775. ;;
  8776. esac
  8777. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8778. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8779. if test "${ac_cv_c_uint8_t+set}" = set; then
  8780. echo $ECHO_N "(cached) $ECHO_C" >&6
  8781. else
  8782. ac_cv_c_uint8_t=no
  8783. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8784. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8785. cat >conftest.$ac_ext <<_ACEOF
  8786. /* confdefs.h. */
  8787. _ACEOF
  8788. cat confdefs.h >>conftest.$ac_ext
  8789. cat >>conftest.$ac_ext <<_ACEOF
  8790. /* end confdefs.h. */
  8791. $ac_includes_default
  8792. int
  8793. main ()
  8794. {
  8795. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8796. test_array [0] = 0
  8797. ;
  8798. return 0;
  8799. }
  8800. _ACEOF
  8801. rm -f conftest.$ac_objext
  8802. if { (ac_try="$ac_compile"
  8803. case "(($ac_try" in
  8804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8805. *) ac_try_echo=$ac_try;;
  8806. esac
  8807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8808. (eval "$ac_compile") 2>conftest.er1
  8809. ac_status=$?
  8810. grep -v '^ *+' conftest.er1 >conftest.err
  8811. rm -f conftest.er1
  8812. cat conftest.err >&5
  8813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8814. (exit $ac_status); } && {
  8815. test -z "$ac_cxx_werror_flag" ||
  8816. test ! -s conftest.err
  8817. } && test -s conftest.$ac_objext; then
  8818. case $ac_type in
  8819. uint8_t) ac_cv_c_uint8_t=yes ;;
  8820. *) ac_cv_c_uint8_t=$ac_type ;;
  8821. esac
  8822. else
  8823. echo "$as_me: failed program was:" >&5
  8824. sed 's/^/| /' conftest.$ac_ext >&5
  8825. fi
  8826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8827. test "$ac_cv_c_uint8_t" != no && break
  8828. done
  8829. fi
  8830. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8831. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8832. case $ac_cv_c_uint8_t in #(
  8833. no|yes) ;; #(
  8834. *)
  8835. cat >>confdefs.h <<\_ACEOF
  8836. #define _UINT8_T 1
  8837. _ACEOF
  8838. cat >>confdefs.h <<_ACEOF
  8839. #define uint8_t $ac_cv_c_uint8_t
  8840. _ACEOF
  8841. ;;
  8842. esac
  8843. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8844. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8845. if test "${ac_cv_c_volatile+set}" = set; then
  8846. echo $ECHO_N "(cached) $ECHO_C" >&6
  8847. else
  8848. cat >conftest.$ac_ext <<_ACEOF
  8849. /* confdefs.h. */
  8850. _ACEOF
  8851. cat confdefs.h >>conftest.$ac_ext
  8852. cat >>conftest.$ac_ext <<_ACEOF
  8853. /* end confdefs.h. */
  8854. int
  8855. main ()
  8856. {
  8857. volatile int x;
  8858. int * volatile y = (int *) 0;
  8859. return !x && !y;
  8860. ;
  8861. return 0;
  8862. }
  8863. _ACEOF
  8864. rm -f conftest.$ac_objext
  8865. if { (ac_try="$ac_compile"
  8866. case "(($ac_try" in
  8867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8868. *) ac_try_echo=$ac_try;;
  8869. esac
  8870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8871. (eval "$ac_compile") 2>conftest.er1
  8872. ac_status=$?
  8873. grep -v '^ *+' conftest.er1 >conftest.err
  8874. rm -f conftest.er1
  8875. cat conftest.err >&5
  8876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8877. (exit $ac_status); } && {
  8878. test -z "$ac_cxx_werror_flag" ||
  8879. test ! -s conftest.err
  8880. } && test -s conftest.$ac_objext; then
  8881. ac_cv_c_volatile=yes
  8882. else
  8883. echo "$as_me: failed program was:" >&5
  8884. sed 's/^/| /' conftest.$ac_ext >&5
  8885. ac_cv_c_volatile=no
  8886. fi
  8887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8888. fi
  8889. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8890. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8891. if test $ac_cv_c_volatile = no; then
  8892. cat >>confdefs.h <<\_ACEOF
  8893. #define volatile
  8894. _ACEOF
  8895. fi
  8896. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8897. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8898. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8899. echo $ECHO_N "(cached) $ECHO_C" >&6
  8900. else
  8901. cat >conftest.$ac_ext <<_ACEOF
  8902. /* confdefs.h. */
  8903. _ACEOF
  8904. cat confdefs.h >>conftest.$ac_ext
  8905. cat >>conftest.$ac_ext <<_ACEOF
  8906. /* end confdefs.h. */
  8907. $ac_includes_default
  8908. typedef ptrdiff_t ac__type_new_;
  8909. int
  8910. main ()
  8911. {
  8912. if ((ac__type_new_ *) 0)
  8913. return 0;
  8914. if (sizeof (ac__type_new_))
  8915. return 0;
  8916. ;
  8917. return 0;
  8918. }
  8919. _ACEOF
  8920. rm -f conftest.$ac_objext
  8921. if { (ac_try="$ac_compile"
  8922. case "(($ac_try" in
  8923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8924. *) ac_try_echo=$ac_try;;
  8925. esac
  8926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8927. (eval "$ac_compile") 2>conftest.er1
  8928. ac_status=$?
  8929. grep -v '^ *+' conftest.er1 >conftest.err
  8930. rm -f conftest.er1
  8931. cat conftest.err >&5
  8932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8933. (exit $ac_status); } && {
  8934. test -z "$ac_cxx_werror_flag" ||
  8935. test ! -s conftest.err
  8936. } && test -s conftest.$ac_objext; then
  8937. ac_cv_type_ptrdiff_t=yes
  8938. else
  8939. echo "$as_me: failed program was:" >&5
  8940. sed 's/^/| /' conftest.$ac_ext >&5
  8941. ac_cv_type_ptrdiff_t=no
  8942. fi
  8943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8944. fi
  8945. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8946. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8947. if test $ac_cv_type_ptrdiff_t = yes; then
  8948. cat >>confdefs.h <<_ACEOF
  8949. #define HAVE_PTRDIFF_T 1
  8950. _ACEOF
  8951. fi
  8952. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8953. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8954. if test "${ac_cv_c_bigendian+set}" = set; then
  8955. echo $ECHO_N "(cached) $ECHO_C" >&6
  8956. else
  8957. # See if sys/param.h defines the BYTE_ORDER macro.
  8958. cat >conftest.$ac_ext <<_ACEOF
  8959. /* confdefs.h. */
  8960. _ACEOF
  8961. cat confdefs.h >>conftest.$ac_ext
  8962. cat >>conftest.$ac_ext <<_ACEOF
  8963. /* end confdefs.h. */
  8964. #include <sys/types.h>
  8965. #include <sys/param.h>
  8966. int
  8967. main ()
  8968. {
  8969. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8970. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8971. bogus endian macros
  8972. #endif
  8973. ;
  8974. return 0;
  8975. }
  8976. _ACEOF
  8977. rm -f conftest.$ac_objext
  8978. if { (ac_try="$ac_compile"
  8979. case "(($ac_try" in
  8980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8981. *) ac_try_echo=$ac_try;;
  8982. esac
  8983. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8984. (eval "$ac_compile") 2>conftest.er1
  8985. ac_status=$?
  8986. grep -v '^ *+' conftest.er1 >conftest.err
  8987. rm -f conftest.er1
  8988. cat conftest.err >&5
  8989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8990. (exit $ac_status); } && {
  8991. test -z "$ac_cxx_werror_flag" ||
  8992. test ! -s conftest.err
  8993. } && test -s conftest.$ac_objext; then
  8994. # It does; now see whether it defined to BIG_ENDIAN or not.
  8995. cat >conftest.$ac_ext <<_ACEOF
  8996. /* confdefs.h. */
  8997. _ACEOF
  8998. cat confdefs.h >>conftest.$ac_ext
  8999. cat >>conftest.$ac_ext <<_ACEOF
  9000. /* end confdefs.h. */
  9001. #include <sys/types.h>
  9002. #include <sys/param.h>
  9003. int
  9004. main ()
  9005. {
  9006. #if BYTE_ORDER != BIG_ENDIAN
  9007. not big endian
  9008. #endif
  9009. ;
  9010. return 0;
  9011. }
  9012. _ACEOF
  9013. rm -f conftest.$ac_objext
  9014. if { (ac_try="$ac_compile"
  9015. case "(($ac_try" in
  9016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9017. *) ac_try_echo=$ac_try;;
  9018. esac
  9019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9020. (eval "$ac_compile") 2>conftest.er1
  9021. ac_status=$?
  9022. grep -v '^ *+' conftest.er1 >conftest.err
  9023. rm -f conftest.er1
  9024. cat conftest.err >&5
  9025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9026. (exit $ac_status); } && {
  9027. test -z "$ac_cxx_werror_flag" ||
  9028. test ! -s conftest.err
  9029. } && test -s conftest.$ac_objext; then
  9030. ac_cv_c_bigendian=yes
  9031. else
  9032. echo "$as_me: failed program was:" >&5
  9033. sed 's/^/| /' conftest.$ac_ext >&5
  9034. ac_cv_c_bigendian=no
  9035. fi
  9036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9037. else
  9038. echo "$as_me: failed program was:" >&5
  9039. sed 's/^/| /' conftest.$ac_ext >&5
  9040. # It does not; compile a test program.
  9041. if test "$cross_compiling" = yes; then
  9042. # try to guess the endianness by grepping values into an object file
  9043. ac_cv_c_bigendian=unknown
  9044. cat >conftest.$ac_ext <<_ACEOF
  9045. /* confdefs.h. */
  9046. _ACEOF
  9047. cat confdefs.h >>conftest.$ac_ext
  9048. cat >>conftest.$ac_ext <<_ACEOF
  9049. /* end confdefs.h. */
  9050. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9051. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9052. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  9053. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9054. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9055. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  9056. int
  9057. main ()
  9058. {
  9059. _ascii (); _ebcdic ();
  9060. ;
  9061. return 0;
  9062. }
  9063. _ACEOF
  9064. rm -f conftest.$ac_objext
  9065. if { (ac_try="$ac_compile"
  9066. case "(($ac_try" in
  9067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9068. *) ac_try_echo=$ac_try;;
  9069. esac
  9070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9071. (eval "$ac_compile") 2>conftest.er1
  9072. ac_status=$?
  9073. grep -v '^ *+' conftest.er1 >conftest.err
  9074. rm -f conftest.er1
  9075. cat conftest.err >&5
  9076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9077. (exit $ac_status); } && {
  9078. test -z "$ac_cxx_werror_flag" ||
  9079. test ! -s conftest.err
  9080. } && test -s conftest.$ac_objext; then
  9081. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  9082. ac_cv_c_bigendian=yes
  9083. fi
  9084. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9085. if test "$ac_cv_c_bigendian" = unknown; then
  9086. ac_cv_c_bigendian=no
  9087. else
  9088. # finding both strings is unlikely to happen, but who knows?
  9089. ac_cv_c_bigendian=unknown
  9090. fi
  9091. fi
  9092. else
  9093. echo "$as_me: failed program was:" >&5
  9094. sed 's/^/| /' conftest.$ac_ext >&5
  9095. fi
  9096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9097. else
  9098. cat >conftest.$ac_ext <<_ACEOF
  9099. /* confdefs.h. */
  9100. _ACEOF
  9101. cat confdefs.h >>conftest.$ac_ext
  9102. cat >>conftest.$ac_ext <<_ACEOF
  9103. /* end confdefs.h. */
  9104. $ac_includes_default
  9105. int
  9106. main ()
  9107. {
  9108. /* Are we little or big endian? From Harbison&Steele. */
  9109. union
  9110. {
  9111. long int l;
  9112. char c[sizeof (long int)];
  9113. } u;
  9114. u.l = 1;
  9115. return u.c[sizeof (long int) - 1] == 1;
  9116. ;
  9117. return 0;
  9118. }
  9119. _ACEOF
  9120. rm -f conftest$ac_exeext
  9121. if { (ac_try="$ac_link"
  9122. case "(($ac_try" in
  9123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9124. *) ac_try_echo=$ac_try;;
  9125. esac
  9126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9127. (eval "$ac_link") 2>&5
  9128. ac_status=$?
  9129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9130. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9131. { (case "(($ac_try" in
  9132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9133. *) ac_try_echo=$ac_try;;
  9134. esac
  9135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9136. (eval "$ac_try") 2>&5
  9137. ac_status=$?
  9138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9139. (exit $ac_status); }; }; then
  9140. ac_cv_c_bigendian=no
  9141. else
  9142. echo "$as_me: program exited with status $ac_status" >&5
  9143. echo "$as_me: failed program was:" >&5
  9144. sed 's/^/| /' conftest.$ac_ext >&5
  9145. ( exit $ac_status )
  9146. ac_cv_c_bigendian=yes
  9147. fi
  9148. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9149. fi
  9150. fi
  9151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9152. fi
  9153. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9154. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  9155. case $ac_cv_c_bigendian in
  9156. yes)
  9157. cat >>confdefs.h <<\_ACEOF
  9158. #define WORDS_BIGENDIAN 1
  9159. _ACEOF
  9160. ;;
  9161. no)
  9162. ;;
  9163. *)
  9164. { { echo "$as_me:$LINENO: error: unknown endianness
  9165. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9166. echo "$as_me: error: unknown endianness
  9167. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9168. { (exit 1); exit 1; }; } ;;
  9169. esac
  9170. # Check whether --enable-largefile was given.
  9171. if test "${enable_largefile+set}" = set; then
  9172. enableval=$enable_largefile;
  9173. fi
  9174. if test "$enable_largefile" != no; then
  9175. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9176. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  9177. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9178. echo $ECHO_N "(cached) $ECHO_C" >&6
  9179. else
  9180. ac_cv_sys_largefile_CC=no
  9181. if test "$GCC" != yes; then
  9182. ac_save_CC=$CC
  9183. while :; do
  9184. # IRIX 6.2 and later do not support large files by default,
  9185. # so use the C compiler's -n32 option if that helps.
  9186. cat >conftest.$ac_ext <<_ACEOF
  9187. /* confdefs.h. */
  9188. _ACEOF
  9189. cat confdefs.h >>conftest.$ac_ext
  9190. cat >>conftest.$ac_ext <<_ACEOF
  9191. /* end confdefs.h. */
  9192. #include <sys/types.h>
  9193. /* Check that off_t can represent 2**63 - 1 correctly.
  9194. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9195. since some C++ compilers masquerading as C compilers
  9196. incorrectly reject 9223372036854775807. */
  9197. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9198. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9199. && LARGE_OFF_T % 2147483647 == 1)
  9200. ? 1 : -1];
  9201. int
  9202. main ()
  9203. {
  9204. ;
  9205. return 0;
  9206. }
  9207. _ACEOF
  9208. rm -f conftest.$ac_objext
  9209. if { (ac_try="$ac_compile"
  9210. case "(($ac_try" in
  9211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9212. *) ac_try_echo=$ac_try;;
  9213. esac
  9214. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9215. (eval "$ac_compile") 2>conftest.er1
  9216. ac_status=$?
  9217. grep -v '^ *+' conftest.er1 >conftest.err
  9218. rm -f conftest.er1
  9219. cat conftest.err >&5
  9220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9221. (exit $ac_status); } && {
  9222. test -z "$ac_cxx_werror_flag" ||
  9223. test ! -s conftest.err
  9224. } && test -s conftest.$ac_objext; then
  9225. break
  9226. else
  9227. echo "$as_me: failed program was:" >&5
  9228. sed 's/^/| /' conftest.$ac_ext >&5
  9229. fi
  9230. rm -f core conftest.err conftest.$ac_objext
  9231. CC="$CC -n32"
  9232. rm -f conftest.$ac_objext
  9233. if { (ac_try="$ac_compile"
  9234. case "(($ac_try" in
  9235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9236. *) ac_try_echo=$ac_try;;
  9237. esac
  9238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9239. (eval "$ac_compile") 2>conftest.er1
  9240. ac_status=$?
  9241. grep -v '^ *+' conftest.er1 >conftest.err
  9242. rm -f conftest.er1
  9243. cat conftest.err >&5
  9244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9245. (exit $ac_status); } && {
  9246. test -z "$ac_cxx_werror_flag" ||
  9247. test ! -s conftest.err
  9248. } && test -s conftest.$ac_objext; then
  9249. ac_cv_sys_largefile_CC=' -n32'; break
  9250. else
  9251. echo "$as_me: failed program was:" >&5
  9252. sed 's/^/| /' conftest.$ac_ext >&5
  9253. fi
  9254. rm -f core conftest.err conftest.$ac_objext
  9255. break
  9256. done
  9257. CC=$ac_save_CC
  9258. rm -f conftest.$ac_ext
  9259. fi
  9260. fi
  9261. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9262. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  9263. if test "$ac_cv_sys_largefile_CC" != no; then
  9264. CC=$CC$ac_cv_sys_largefile_CC
  9265. fi
  9266. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9267. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  9268. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9269. echo $ECHO_N "(cached) $ECHO_C" >&6
  9270. else
  9271. while :; do
  9272. cat >conftest.$ac_ext <<_ACEOF
  9273. /* confdefs.h. */
  9274. _ACEOF
  9275. cat confdefs.h >>conftest.$ac_ext
  9276. cat >>conftest.$ac_ext <<_ACEOF
  9277. /* end confdefs.h. */
  9278. #include <sys/types.h>
  9279. /* Check that off_t can represent 2**63 - 1 correctly.
  9280. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9281. since some C++ compilers masquerading as C compilers
  9282. incorrectly reject 9223372036854775807. */
  9283. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9284. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9285. && LARGE_OFF_T % 2147483647 == 1)
  9286. ? 1 : -1];
  9287. int
  9288. main ()
  9289. {
  9290. ;
  9291. return 0;
  9292. }
  9293. _ACEOF
  9294. rm -f conftest.$ac_objext
  9295. if { (ac_try="$ac_compile"
  9296. case "(($ac_try" in
  9297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9298. *) ac_try_echo=$ac_try;;
  9299. esac
  9300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9301. (eval "$ac_compile") 2>conftest.er1
  9302. ac_status=$?
  9303. grep -v '^ *+' conftest.er1 >conftest.err
  9304. rm -f conftest.er1
  9305. cat conftest.err >&5
  9306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9307. (exit $ac_status); } && {
  9308. test -z "$ac_cxx_werror_flag" ||
  9309. test ! -s conftest.err
  9310. } && test -s conftest.$ac_objext; then
  9311. ac_cv_sys_file_offset_bits=no; break
  9312. else
  9313. echo "$as_me: failed program was:" >&5
  9314. sed 's/^/| /' conftest.$ac_ext >&5
  9315. fi
  9316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9317. cat >conftest.$ac_ext <<_ACEOF
  9318. /* confdefs.h. */
  9319. _ACEOF
  9320. cat confdefs.h >>conftest.$ac_ext
  9321. cat >>conftest.$ac_ext <<_ACEOF
  9322. /* end confdefs.h. */
  9323. #define _FILE_OFFSET_BITS 64
  9324. #include <sys/types.h>
  9325. /* Check that off_t can represent 2**63 - 1 correctly.
  9326. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9327. since some C++ compilers masquerading as C compilers
  9328. incorrectly reject 9223372036854775807. */
  9329. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9330. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9331. && LARGE_OFF_T % 2147483647 == 1)
  9332. ? 1 : -1];
  9333. int
  9334. main ()
  9335. {
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. rm -f conftest.$ac_objext
  9341. if { (ac_try="$ac_compile"
  9342. case "(($ac_try" in
  9343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9344. *) ac_try_echo=$ac_try;;
  9345. esac
  9346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9347. (eval "$ac_compile") 2>conftest.er1
  9348. ac_status=$?
  9349. grep -v '^ *+' conftest.er1 >conftest.err
  9350. rm -f conftest.er1
  9351. cat conftest.err >&5
  9352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9353. (exit $ac_status); } && {
  9354. test -z "$ac_cxx_werror_flag" ||
  9355. test ! -s conftest.err
  9356. } && test -s conftest.$ac_objext; then
  9357. ac_cv_sys_file_offset_bits=64; break
  9358. else
  9359. echo "$as_me: failed program was:" >&5
  9360. sed 's/^/| /' conftest.$ac_ext >&5
  9361. fi
  9362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9363. ac_cv_sys_file_offset_bits=unknown
  9364. break
  9365. done
  9366. fi
  9367. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9368. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9369. case $ac_cv_sys_file_offset_bits in #(
  9370. no | unknown) ;;
  9371. *)
  9372. cat >>confdefs.h <<_ACEOF
  9373. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9374. _ACEOF
  9375. ;;
  9376. esac
  9377. rm -f conftest*
  9378. if test $ac_cv_sys_file_offset_bits = unknown; then
  9379. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9380. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9381. if test "${ac_cv_sys_large_files+set}" = set; then
  9382. echo $ECHO_N "(cached) $ECHO_C" >&6
  9383. else
  9384. while :; do
  9385. cat >conftest.$ac_ext <<_ACEOF
  9386. /* confdefs.h. */
  9387. _ACEOF
  9388. cat confdefs.h >>conftest.$ac_ext
  9389. cat >>conftest.$ac_ext <<_ACEOF
  9390. /* end confdefs.h. */
  9391. #include <sys/types.h>
  9392. /* Check that off_t can represent 2**63 - 1 correctly.
  9393. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9394. since some C++ compilers masquerading as C compilers
  9395. incorrectly reject 9223372036854775807. */
  9396. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9397. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9398. && LARGE_OFF_T % 2147483647 == 1)
  9399. ? 1 : -1];
  9400. int
  9401. main ()
  9402. {
  9403. ;
  9404. return 0;
  9405. }
  9406. _ACEOF
  9407. rm -f conftest.$ac_objext
  9408. if { (ac_try="$ac_compile"
  9409. case "(($ac_try" in
  9410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9411. *) ac_try_echo=$ac_try;;
  9412. esac
  9413. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9414. (eval "$ac_compile") 2>conftest.er1
  9415. ac_status=$?
  9416. grep -v '^ *+' conftest.er1 >conftest.err
  9417. rm -f conftest.er1
  9418. cat conftest.err >&5
  9419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9420. (exit $ac_status); } && {
  9421. test -z "$ac_cxx_werror_flag" ||
  9422. test ! -s conftest.err
  9423. } && test -s conftest.$ac_objext; then
  9424. ac_cv_sys_large_files=no; break
  9425. else
  9426. echo "$as_me: failed program was:" >&5
  9427. sed 's/^/| /' conftest.$ac_ext >&5
  9428. fi
  9429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9430. cat >conftest.$ac_ext <<_ACEOF
  9431. /* confdefs.h. */
  9432. _ACEOF
  9433. cat confdefs.h >>conftest.$ac_ext
  9434. cat >>conftest.$ac_ext <<_ACEOF
  9435. /* end confdefs.h. */
  9436. #define _LARGE_FILES 1
  9437. #include <sys/types.h>
  9438. /* Check that off_t can represent 2**63 - 1 correctly.
  9439. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9440. since some C++ compilers masquerading as C compilers
  9441. incorrectly reject 9223372036854775807. */
  9442. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9443. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9444. && LARGE_OFF_T % 2147483647 == 1)
  9445. ? 1 : -1];
  9446. int
  9447. main ()
  9448. {
  9449. ;
  9450. return 0;
  9451. }
  9452. _ACEOF
  9453. rm -f conftest.$ac_objext
  9454. if { (ac_try="$ac_compile"
  9455. case "(($ac_try" in
  9456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9457. *) ac_try_echo=$ac_try;;
  9458. esac
  9459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9460. (eval "$ac_compile") 2>conftest.er1
  9461. ac_status=$?
  9462. grep -v '^ *+' conftest.er1 >conftest.err
  9463. rm -f conftest.er1
  9464. cat conftest.err >&5
  9465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9466. (exit $ac_status); } && {
  9467. test -z "$ac_cxx_werror_flag" ||
  9468. test ! -s conftest.err
  9469. } && test -s conftest.$ac_objext; then
  9470. ac_cv_sys_large_files=1; break
  9471. else
  9472. echo "$as_me: failed program was:" >&5
  9473. sed 's/^/| /' conftest.$ac_ext >&5
  9474. fi
  9475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9476. ac_cv_sys_large_files=unknown
  9477. break
  9478. done
  9479. fi
  9480. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9481. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9482. case $ac_cv_sys_large_files in #(
  9483. no | unknown) ;;
  9484. *)
  9485. cat >>confdefs.h <<_ACEOF
  9486. #define _LARGE_FILES $ac_cv_sys_large_files
  9487. _ACEOF
  9488. ;;
  9489. esac
  9490. rm -f conftest*
  9491. fi
  9492. fi
  9493. # Checks for library functions.
  9494. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9495. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9496. # Check whether --enable-nls was given.
  9497. if test "${enable_nls+set}" = set; then
  9498. enableval=$enable_nls; USE_NLS=$enableval
  9499. else
  9500. USE_NLS=yes
  9501. fi
  9502. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9503. echo "${ECHO_T}$USE_NLS" >&6; }
  9504. GETTEXT_MACRO_VERSION=0.17
  9505. # Prepare PATH_SEPARATOR.
  9506. # The user is always right.
  9507. if test "${PATH_SEPARATOR+set}" != set; then
  9508. echo "#! /bin/sh" >conf$$.sh
  9509. echo "exit 0" >>conf$$.sh
  9510. chmod +x conf$$.sh
  9511. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9512. PATH_SEPARATOR=';'
  9513. else
  9514. PATH_SEPARATOR=:
  9515. fi
  9516. rm -f conf$$.sh
  9517. fi
  9518. # Find out how to test for executable files. Don't use a zero-byte file,
  9519. # as systems may use methods other than mode bits to determine executability.
  9520. cat >conf$$.file <<_ASEOF
  9521. #! /bin/sh
  9522. exit 0
  9523. _ASEOF
  9524. chmod +x conf$$.file
  9525. if test -x conf$$.file >/dev/null 2>&1; then
  9526. ac_executable_p="test -x"
  9527. else
  9528. ac_executable_p="test -f"
  9529. fi
  9530. rm -f conf$$.file
  9531. # Extract the first word of "msgfmt", so it can be a program name with args.
  9532. set dummy msgfmt; ac_word=$2
  9533. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9534. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9535. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9536. echo $ECHO_N "(cached) $ECHO_C" >&6
  9537. else
  9538. case "$MSGFMT" in
  9539. [\\/]* | ?:[\\/]*)
  9540. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9541. ;;
  9542. *)
  9543. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9544. for ac_dir in $PATH; do
  9545. IFS="$ac_save_IFS"
  9546. test -z "$ac_dir" && ac_dir=.
  9547. for ac_exec_ext in '' $ac_executable_extensions; do
  9548. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9549. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9550. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9551. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9552. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9553. break 2
  9554. fi
  9555. fi
  9556. done
  9557. done
  9558. IFS="$ac_save_IFS"
  9559. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9560. ;;
  9561. esac
  9562. fi
  9563. MSGFMT="$ac_cv_path_MSGFMT"
  9564. if test "$MSGFMT" != ":"; then
  9565. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9566. echo "${ECHO_T}$MSGFMT" >&6; }
  9567. else
  9568. { echo "$as_me:$LINENO: result: no" >&5
  9569. echo "${ECHO_T}no" >&6; }
  9570. fi
  9571. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9572. set dummy gmsgfmt; ac_word=$2
  9573. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9574. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9575. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9576. echo $ECHO_N "(cached) $ECHO_C" >&6
  9577. else
  9578. case $GMSGFMT in
  9579. [\\/]* | ?:[\\/]*)
  9580. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9581. ;;
  9582. *)
  9583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9584. for as_dir in $PATH
  9585. do
  9586. IFS=$as_save_IFS
  9587. test -z "$as_dir" && as_dir=.
  9588. for ac_exec_ext in '' $ac_executable_extensions; do
  9589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9590. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9591. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9592. break 2
  9593. fi
  9594. done
  9595. done
  9596. IFS=$as_save_IFS
  9597. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9598. ;;
  9599. esac
  9600. fi
  9601. GMSGFMT=$ac_cv_path_GMSGFMT
  9602. if test -n "$GMSGFMT"; then
  9603. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9604. echo "${ECHO_T}$GMSGFMT" >&6; }
  9605. else
  9606. { echo "$as_me:$LINENO: result: no" >&5
  9607. echo "${ECHO_T}no" >&6; }
  9608. fi
  9609. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9610. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9611. *) MSGFMT_015=$MSGFMT ;;
  9612. esac
  9613. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9614. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9615. *) GMSGFMT_015=$GMSGFMT ;;
  9616. esac
  9617. # Prepare PATH_SEPARATOR.
  9618. # The user is always right.
  9619. if test "${PATH_SEPARATOR+set}" != set; then
  9620. echo "#! /bin/sh" >conf$$.sh
  9621. echo "exit 0" >>conf$$.sh
  9622. chmod +x conf$$.sh
  9623. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9624. PATH_SEPARATOR=';'
  9625. else
  9626. PATH_SEPARATOR=:
  9627. fi
  9628. rm -f conf$$.sh
  9629. fi
  9630. # Find out how to test for executable files. Don't use a zero-byte file,
  9631. # as systems may use methods other than mode bits to determine executability.
  9632. cat >conf$$.file <<_ASEOF
  9633. #! /bin/sh
  9634. exit 0
  9635. _ASEOF
  9636. chmod +x conf$$.file
  9637. if test -x conf$$.file >/dev/null 2>&1; then
  9638. ac_executable_p="test -x"
  9639. else
  9640. ac_executable_p="test -f"
  9641. fi
  9642. rm -f conf$$.file
  9643. # Extract the first word of "xgettext", so it can be a program name with args.
  9644. set dummy xgettext; ac_word=$2
  9645. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9646. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9647. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9648. echo $ECHO_N "(cached) $ECHO_C" >&6
  9649. else
  9650. case "$XGETTEXT" in
  9651. [\\/]* | ?:[\\/]*)
  9652. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9653. ;;
  9654. *)
  9655. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9656. for ac_dir in $PATH; do
  9657. IFS="$ac_save_IFS"
  9658. test -z "$ac_dir" && ac_dir=.
  9659. for ac_exec_ext in '' $ac_executable_extensions; do
  9660. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9661. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9662. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9663. (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
  9664. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9665. break 2
  9666. fi
  9667. fi
  9668. done
  9669. done
  9670. IFS="$ac_save_IFS"
  9671. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9672. ;;
  9673. esac
  9674. fi
  9675. XGETTEXT="$ac_cv_path_XGETTEXT"
  9676. if test "$XGETTEXT" != ":"; then
  9677. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9678. echo "${ECHO_T}$XGETTEXT" >&6; }
  9679. else
  9680. { echo "$as_me:$LINENO: result: no" >&5
  9681. echo "${ECHO_T}no" >&6; }
  9682. fi
  9683. rm -f messages.po
  9684. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9685. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9686. *) XGETTEXT_015=$XGETTEXT ;;
  9687. esac
  9688. # Prepare PATH_SEPARATOR.
  9689. # The user is always right.
  9690. if test "${PATH_SEPARATOR+set}" != set; then
  9691. echo "#! /bin/sh" >conf$$.sh
  9692. echo "exit 0" >>conf$$.sh
  9693. chmod +x conf$$.sh
  9694. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9695. PATH_SEPARATOR=';'
  9696. else
  9697. PATH_SEPARATOR=:
  9698. fi
  9699. rm -f conf$$.sh
  9700. fi
  9701. # Find out how to test for executable files. Don't use a zero-byte file,
  9702. # as systems may use methods other than mode bits to determine executability.
  9703. cat >conf$$.file <<_ASEOF
  9704. #! /bin/sh
  9705. exit 0
  9706. _ASEOF
  9707. chmod +x conf$$.file
  9708. if test -x conf$$.file >/dev/null 2>&1; then
  9709. ac_executable_p="test -x"
  9710. else
  9711. ac_executable_p="test -f"
  9712. fi
  9713. rm -f conf$$.file
  9714. # Extract the first word of "msgmerge", so it can be a program name with args.
  9715. set dummy msgmerge; ac_word=$2
  9716. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9717. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9718. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9719. echo $ECHO_N "(cached) $ECHO_C" >&6
  9720. else
  9721. case "$MSGMERGE" in
  9722. [\\/]* | ?:[\\/]*)
  9723. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9724. ;;
  9725. *)
  9726. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9727. for ac_dir in $PATH; do
  9728. IFS="$ac_save_IFS"
  9729. test -z "$ac_dir" && ac_dir=.
  9730. for ac_exec_ext in '' $ac_executable_extensions; do
  9731. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9732. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9733. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9734. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9735. break 2
  9736. fi
  9737. fi
  9738. done
  9739. done
  9740. IFS="$ac_save_IFS"
  9741. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9742. ;;
  9743. esac
  9744. fi
  9745. MSGMERGE="$ac_cv_path_MSGMERGE"
  9746. if test "$MSGMERGE" != ":"; then
  9747. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9748. echo "${ECHO_T}$MSGMERGE" >&6; }
  9749. else
  9750. { echo "$as_me:$LINENO: result: no" >&5
  9751. echo "${ECHO_T}no" >&6; }
  9752. fi
  9753. test -n "$localedir" || localedir='${datadir}/locale'
  9754. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9755. ac_config_commands="$ac_config_commands po-directories"
  9756. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9757. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9758. if test "${ac_cv_gnu_library_2+set}" = set; then
  9759. echo $ECHO_N "(cached) $ECHO_C" >&6
  9760. else
  9761. cat >conftest.$ac_ext <<_ACEOF
  9762. /* confdefs.h. */
  9763. _ACEOF
  9764. cat confdefs.h >>conftest.$ac_ext
  9765. cat >>conftest.$ac_ext <<_ACEOF
  9766. /* end confdefs.h. */
  9767. #include <features.h>
  9768. #ifdef __GNU_LIBRARY__
  9769. #if (__GLIBC__ >= 2)
  9770. Lucky GNU user
  9771. #endif
  9772. #endif
  9773. _ACEOF
  9774. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9775. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9776. ac_cv_gnu_library_2=yes
  9777. else
  9778. ac_cv_gnu_library_2=no
  9779. fi
  9780. rm -f conftest*
  9781. fi
  9782. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9783. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9784. GLIBC2="$ac_cv_gnu_library_2"
  9785. CFLAG_VISIBILITY=
  9786. HAVE_VISIBILITY=0
  9787. if test -n "$GCC"; then
  9788. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9789. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9790. if test "${gl_cv_cc_visibility+set}" = set; then
  9791. echo $ECHO_N "(cached) $ECHO_C" >&6
  9792. else
  9793. gl_save_CFLAGS="$CFLAGS"
  9794. CFLAGS="$CFLAGS -fvisibility=hidden"
  9795. cat >conftest.$ac_ext <<_ACEOF
  9796. /* confdefs.h. */
  9797. _ACEOF
  9798. cat confdefs.h >>conftest.$ac_ext
  9799. cat >>conftest.$ac_ext <<_ACEOF
  9800. /* end confdefs.h. */
  9801. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9802. extern __attribute__((__visibility__("default"))) int exportedvar;
  9803. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9804. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9805. int
  9806. main ()
  9807. {
  9808. ;
  9809. return 0;
  9810. }
  9811. _ACEOF
  9812. rm -f conftest.$ac_objext
  9813. if { (ac_try="$ac_compile"
  9814. case "(($ac_try" in
  9815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9816. *) ac_try_echo=$ac_try;;
  9817. esac
  9818. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9819. (eval "$ac_compile") 2>conftest.er1
  9820. ac_status=$?
  9821. grep -v '^ *+' conftest.er1 >conftest.err
  9822. rm -f conftest.er1
  9823. cat conftest.err >&5
  9824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9825. (exit $ac_status); } && {
  9826. test -z "$ac_cxx_werror_flag" ||
  9827. test ! -s conftest.err
  9828. } && test -s conftest.$ac_objext; then
  9829. gl_cv_cc_visibility=yes
  9830. else
  9831. echo "$as_me: failed program was:" >&5
  9832. sed 's/^/| /' conftest.$ac_ext >&5
  9833. gl_cv_cc_visibility=no
  9834. fi
  9835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9836. CFLAGS="$gl_save_CFLAGS"
  9837. fi
  9838. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9839. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9840. if test $gl_cv_cc_visibility = yes; then
  9841. CFLAG_VISIBILITY="-fvisibility=hidden"
  9842. HAVE_VISIBILITY=1
  9843. fi
  9844. fi
  9845. cat >>confdefs.h <<_ACEOF
  9846. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9847. _ACEOF
  9848. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9849. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9850. if test "${gl_cv_header_stdint_h+set}" = set; then
  9851. echo $ECHO_N "(cached) $ECHO_C" >&6
  9852. else
  9853. cat >conftest.$ac_ext <<_ACEOF
  9854. /* confdefs.h. */
  9855. _ACEOF
  9856. cat confdefs.h >>conftest.$ac_ext
  9857. cat >>conftest.$ac_ext <<_ACEOF
  9858. /* end confdefs.h. */
  9859. #include <sys/types.h>
  9860. #include <stdint.h>
  9861. int
  9862. main ()
  9863. {
  9864. uintmax_t i = (uintmax_t) -1; return !i;
  9865. ;
  9866. return 0;
  9867. }
  9868. _ACEOF
  9869. rm -f conftest.$ac_objext
  9870. if { (ac_try="$ac_compile"
  9871. case "(($ac_try" in
  9872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9873. *) ac_try_echo=$ac_try;;
  9874. esac
  9875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9876. (eval "$ac_compile") 2>conftest.er1
  9877. ac_status=$?
  9878. grep -v '^ *+' conftest.er1 >conftest.err
  9879. rm -f conftest.er1
  9880. cat conftest.err >&5
  9881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9882. (exit $ac_status); } && {
  9883. test -z "$ac_cxx_werror_flag" ||
  9884. test ! -s conftest.err
  9885. } && test -s conftest.$ac_objext; then
  9886. gl_cv_header_stdint_h=yes
  9887. else
  9888. echo "$as_me: failed program was:" >&5
  9889. sed 's/^/| /' conftest.$ac_ext >&5
  9890. gl_cv_header_stdint_h=no
  9891. fi
  9892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9893. fi
  9894. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9895. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9896. if test $gl_cv_header_stdint_h = yes; then
  9897. cat >>confdefs.h <<_ACEOF
  9898. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9899. _ACEOF
  9900. fi
  9901. for ac_header in stdlib.h unistd.h
  9902. do
  9903. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9904. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9905. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9906. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9907. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9908. echo $ECHO_N "(cached) $ECHO_C" >&6
  9909. fi
  9910. ac_res=`eval echo '${'$as_ac_Header'}'`
  9911. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9912. echo "${ECHO_T}$ac_res" >&6; }
  9913. else
  9914. # Is the header compilable?
  9915. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9916. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9917. cat >conftest.$ac_ext <<_ACEOF
  9918. /* confdefs.h. */
  9919. _ACEOF
  9920. cat confdefs.h >>conftest.$ac_ext
  9921. cat >>conftest.$ac_ext <<_ACEOF
  9922. /* end confdefs.h. */
  9923. $ac_includes_default
  9924. #include <$ac_header>
  9925. _ACEOF
  9926. rm -f conftest.$ac_objext
  9927. if { (ac_try="$ac_compile"
  9928. case "(($ac_try" in
  9929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9930. *) ac_try_echo=$ac_try;;
  9931. esac
  9932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9933. (eval "$ac_compile") 2>conftest.er1
  9934. ac_status=$?
  9935. grep -v '^ *+' conftest.er1 >conftest.err
  9936. rm -f conftest.er1
  9937. cat conftest.err >&5
  9938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9939. (exit $ac_status); } && {
  9940. test -z "$ac_cxx_werror_flag" ||
  9941. test ! -s conftest.err
  9942. } && test -s conftest.$ac_objext; then
  9943. ac_header_compiler=yes
  9944. else
  9945. echo "$as_me: failed program was:" >&5
  9946. sed 's/^/| /' conftest.$ac_ext >&5
  9947. ac_header_compiler=no
  9948. fi
  9949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9950. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9951. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9952. # Is the header present?
  9953. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9954. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9955. cat >conftest.$ac_ext <<_ACEOF
  9956. /* confdefs.h. */
  9957. _ACEOF
  9958. cat confdefs.h >>conftest.$ac_ext
  9959. cat >>conftest.$ac_ext <<_ACEOF
  9960. /* end confdefs.h. */
  9961. #include <$ac_header>
  9962. _ACEOF
  9963. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9964. case "(($ac_try" in
  9965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9966. *) ac_try_echo=$ac_try;;
  9967. esac
  9968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9969. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9970. ac_status=$?
  9971. grep -v '^ *+' conftest.er1 >conftest.err
  9972. rm -f conftest.er1
  9973. cat conftest.err >&5
  9974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9975. (exit $ac_status); } >/dev/null && {
  9976. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9977. test ! -s conftest.err
  9978. }; then
  9979. ac_header_preproc=yes
  9980. else
  9981. echo "$as_me: failed program was:" >&5
  9982. sed 's/^/| /' conftest.$ac_ext >&5
  9983. ac_header_preproc=no
  9984. fi
  9985. rm -f conftest.err conftest.$ac_ext
  9986. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9987. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9988. # So? What about this header?
  9989. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9990. yes:no: )
  9991. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9992. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9993. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9994. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9995. ac_header_preproc=yes
  9996. ;;
  9997. no:yes:* )
  9998. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9999. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10000. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10001. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10002. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10003. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10004. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10005. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10006. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10007. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10008. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10009. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10010. ( cat <<\_ASBOX
  10011. ## ----------------------------------------------- ##
  10012. ## Report this to t-tujikawa@users.sourceforge.net ##
  10013. ## ----------------------------------------------- ##
  10014. _ASBOX
  10015. ) | sed "s/^/$as_me: WARNING: /" >&2
  10016. ;;
  10017. esac
  10018. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10019. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10020. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10021. echo $ECHO_N "(cached) $ECHO_C" >&6
  10022. else
  10023. eval "$as_ac_Header=\$ac_header_preproc"
  10024. fi
  10025. ac_res=`eval echo '${'$as_ac_Header'}'`
  10026. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10027. echo "${ECHO_T}$ac_res" >&6; }
  10028. fi
  10029. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10030. cat >>confdefs.h <<_ACEOF
  10031. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10032. _ACEOF
  10033. fi
  10034. done
  10035. for ac_func in getpagesize
  10036. do
  10037. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10038. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10039. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10040. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10041. echo $ECHO_N "(cached) $ECHO_C" >&6
  10042. else
  10043. cat >conftest.$ac_ext <<_ACEOF
  10044. /* confdefs.h. */
  10045. _ACEOF
  10046. cat confdefs.h >>conftest.$ac_ext
  10047. cat >>conftest.$ac_ext <<_ACEOF
  10048. /* end confdefs.h. */
  10049. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10050. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10051. #define $ac_func innocuous_$ac_func
  10052. /* System header to define __stub macros and hopefully few prototypes,
  10053. which can conflict with char $ac_func (); below.
  10054. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10055. <limits.h> exists even on freestanding compilers. */
  10056. #ifdef __STDC__
  10057. # include <limits.h>
  10058. #else
  10059. # include <assert.h>
  10060. #endif
  10061. #undef $ac_func
  10062. /* Override any GCC internal prototype to avoid an error.
  10063. Use char because int might match the return type of a GCC
  10064. builtin and then its argument prototype would still apply. */
  10065. #ifdef __cplusplus
  10066. extern "C"
  10067. #endif
  10068. char $ac_func ();
  10069. /* The GNU C library defines this for functions which it implements
  10070. to always fail with ENOSYS. Some functions are actually named
  10071. something starting with __ and the normal name is an alias. */
  10072. #if defined __stub_$ac_func || defined __stub___$ac_func
  10073. choke me
  10074. #endif
  10075. int
  10076. main ()
  10077. {
  10078. return $ac_func ();
  10079. ;
  10080. return 0;
  10081. }
  10082. _ACEOF
  10083. rm -f conftest.$ac_objext conftest$ac_exeext
  10084. if { (ac_try="$ac_link"
  10085. case "(($ac_try" in
  10086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10087. *) ac_try_echo=$ac_try;;
  10088. esac
  10089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10090. (eval "$ac_link") 2>conftest.er1
  10091. ac_status=$?
  10092. grep -v '^ *+' conftest.er1 >conftest.err
  10093. rm -f conftest.er1
  10094. cat conftest.err >&5
  10095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10096. (exit $ac_status); } && {
  10097. test -z "$ac_cxx_werror_flag" ||
  10098. test ! -s conftest.err
  10099. } && test -s conftest$ac_exeext &&
  10100. $as_test_x conftest$ac_exeext; then
  10101. eval "$as_ac_var=yes"
  10102. else
  10103. echo "$as_me: failed program was:" >&5
  10104. sed 's/^/| /' conftest.$ac_ext >&5
  10105. eval "$as_ac_var=no"
  10106. fi
  10107. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10108. conftest$ac_exeext conftest.$ac_ext
  10109. fi
  10110. ac_res=`eval echo '${'$as_ac_var'}'`
  10111. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10112. echo "${ECHO_T}$ac_res" >&6; }
  10113. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10114. cat >>confdefs.h <<_ACEOF
  10115. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10116. _ACEOF
  10117. fi
  10118. done
  10119. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10120. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10121. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10122. echo $ECHO_N "(cached) $ECHO_C" >&6
  10123. else
  10124. if test "$cross_compiling" = yes; then
  10125. ac_cv_func_mmap_fixed_mapped=no
  10126. else
  10127. cat >conftest.$ac_ext <<_ACEOF
  10128. /* confdefs.h. */
  10129. _ACEOF
  10130. cat confdefs.h >>conftest.$ac_ext
  10131. cat >>conftest.$ac_ext <<_ACEOF
  10132. /* end confdefs.h. */
  10133. $ac_includes_default
  10134. /* malloc might have been renamed as rpl_malloc. */
  10135. #undef malloc
  10136. /* Thanks to Mike Haertel and Jim Avera for this test.
  10137. Here is a matrix of mmap possibilities:
  10138. mmap private not fixed
  10139. mmap private fixed at somewhere currently unmapped
  10140. mmap private fixed at somewhere already mapped
  10141. mmap shared not fixed
  10142. mmap shared fixed at somewhere currently unmapped
  10143. mmap shared fixed at somewhere already mapped
  10144. For private mappings, we should verify that changes cannot be read()
  10145. back from the file, nor mmap's back from the file at a different
  10146. address. (There have been systems where private was not correctly
  10147. implemented like the infamous i386 svr4.0, and systems where the
  10148. VM page cache was not coherent with the file system buffer cache
  10149. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10150. For shared mappings, we should conversely verify that changes get
  10151. propagated back to all the places they're supposed to be.
  10152. Grep wants private fixed already mapped.
  10153. The main things grep needs to know about mmap are:
  10154. * does it exist and is it safe to write into the mmap'd area
  10155. * how to use it (BSD variants) */
  10156. #include <fcntl.h>
  10157. #include <sys/mman.h>
  10158. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10159. char *malloc ();
  10160. #endif
  10161. /* This mess was copied from the GNU getpagesize.h. */
  10162. #ifndef HAVE_GETPAGESIZE
  10163. /* Assume that all systems that can run configure have sys/param.h. */
  10164. # ifndef HAVE_SYS_PARAM_H
  10165. # define HAVE_SYS_PARAM_H 1
  10166. # endif
  10167. # ifdef _SC_PAGESIZE
  10168. # define getpagesize() sysconf(_SC_PAGESIZE)
  10169. # else /* no _SC_PAGESIZE */
  10170. # ifdef HAVE_SYS_PARAM_H
  10171. # include <sys/param.h>
  10172. # ifdef EXEC_PAGESIZE
  10173. # define getpagesize() EXEC_PAGESIZE
  10174. # else /* no EXEC_PAGESIZE */
  10175. # ifdef NBPG
  10176. # define getpagesize() NBPG * CLSIZE
  10177. # ifndef CLSIZE
  10178. # define CLSIZE 1
  10179. # endif /* no CLSIZE */
  10180. # else /* no NBPG */
  10181. # ifdef NBPC
  10182. # define getpagesize() NBPC
  10183. # else /* no NBPC */
  10184. # ifdef PAGESIZE
  10185. # define getpagesize() PAGESIZE
  10186. # endif /* PAGESIZE */
  10187. # endif /* no NBPC */
  10188. # endif /* no NBPG */
  10189. # endif /* no EXEC_PAGESIZE */
  10190. # else /* no HAVE_SYS_PARAM_H */
  10191. # define getpagesize() 8192 /* punt totally */
  10192. # endif /* no HAVE_SYS_PARAM_H */
  10193. # endif /* no _SC_PAGESIZE */
  10194. #endif /* no HAVE_GETPAGESIZE */
  10195. int
  10196. main ()
  10197. {
  10198. char *data, *data2, *data3;
  10199. int i, pagesize;
  10200. int fd;
  10201. pagesize = getpagesize ();
  10202. /* First, make a file with some known garbage in it. */
  10203. data = (char *) malloc (pagesize);
  10204. if (!data)
  10205. return 1;
  10206. for (i = 0; i < pagesize; ++i)
  10207. *(data + i) = rand ();
  10208. umask (0);
  10209. fd = creat ("conftest.mmap", 0600);
  10210. if (fd < 0)
  10211. return 1;
  10212. if (write (fd, data, pagesize) != pagesize)
  10213. return 1;
  10214. close (fd);
  10215. /* Next, try to mmap the file at a fixed address which already has
  10216. something else allocated at it. If we can, also make sure that
  10217. we see the same garbage. */
  10218. fd = open ("conftest.mmap", O_RDWR);
  10219. if (fd < 0)
  10220. return 1;
  10221. data2 = (char *) malloc (2 * pagesize);
  10222. if (!data2)
  10223. return 1;
  10224. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10225. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10226. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10227. return 1;
  10228. for (i = 0; i < pagesize; ++i)
  10229. if (*(data + i) != *(data2 + i))
  10230. return 1;
  10231. /* Finally, make sure that changes to the mapped area do not
  10232. percolate back to the file as seen by read(). (This is a bug on
  10233. some variants of i386 svr4.0.) */
  10234. for (i = 0; i < pagesize; ++i)
  10235. *(data2 + i) = *(data2 + i) + 1;
  10236. data3 = (char *) malloc (pagesize);
  10237. if (!data3)
  10238. return 1;
  10239. if (read (fd, data3, pagesize) != pagesize)
  10240. return 1;
  10241. for (i = 0; i < pagesize; ++i)
  10242. if (*(data + i) != *(data3 + i))
  10243. return 1;
  10244. close (fd);
  10245. return 0;
  10246. }
  10247. _ACEOF
  10248. rm -f conftest$ac_exeext
  10249. if { (ac_try="$ac_link"
  10250. case "(($ac_try" in
  10251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10252. *) ac_try_echo=$ac_try;;
  10253. esac
  10254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10255. (eval "$ac_link") 2>&5
  10256. ac_status=$?
  10257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10258. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10259. { (case "(($ac_try" in
  10260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10261. *) ac_try_echo=$ac_try;;
  10262. esac
  10263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10264. (eval "$ac_try") 2>&5
  10265. ac_status=$?
  10266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10267. (exit $ac_status); }; }; then
  10268. ac_cv_func_mmap_fixed_mapped=yes
  10269. else
  10270. echo "$as_me: program exited with status $ac_status" >&5
  10271. echo "$as_me: failed program was:" >&5
  10272. sed 's/^/| /' conftest.$ac_ext >&5
  10273. ( exit $ac_status )
  10274. ac_cv_func_mmap_fixed_mapped=no
  10275. fi
  10276. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10277. fi
  10278. fi
  10279. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10280. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10281. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10282. cat >>confdefs.h <<\_ACEOF
  10283. #define HAVE_MMAP 1
  10284. _ACEOF
  10285. fi
  10286. rm -f conftest.mmap
  10287. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10288. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  10289. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10290. echo $ECHO_N "(cached) $ECHO_C" >&6
  10291. else
  10292. gt_cv_int_divbyzero_sigfpe=
  10293. case "$host_os" in
  10294. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10295. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10296. # compiling. If we were to perform the real test, 1 Crash Report
  10297. # dialog window would pop up.
  10298. case "$host_cpu" in
  10299. i[34567]86 | x86_64)
  10300. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10301. esac
  10302. ;;
  10303. esac
  10304. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10305. if test "$cross_compiling" = yes; then
  10306. # Guess based on the CPU.
  10307. case "$host_cpu" in
  10308. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10309. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10310. *)
  10311. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10312. esac
  10313. else
  10314. cat >conftest.$ac_ext <<_ACEOF
  10315. /* confdefs.h. */
  10316. _ACEOF
  10317. cat confdefs.h >>conftest.$ac_ext
  10318. cat >>conftest.$ac_ext <<_ACEOF
  10319. /* end confdefs.h. */
  10320. #include <stdlib.h>
  10321. #include <signal.h>
  10322. static void
  10323. sigfpe_handler (int sig)
  10324. {
  10325. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10326. exit (sig != SIGFPE);
  10327. }
  10328. int x = 1;
  10329. int y = 0;
  10330. int z;
  10331. int nan;
  10332. int main ()
  10333. {
  10334. signal (SIGFPE, sigfpe_handler);
  10335. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10336. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10337. signal (SIGTRAP, sigfpe_handler);
  10338. #endif
  10339. /* Linux/SPARC yields signal SIGILL. */
  10340. #if defined (__sparc__) && defined (__linux__)
  10341. signal (SIGILL, sigfpe_handler);
  10342. #endif
  10343. z = x / y;
  10344. nan = y / y;
  10345. exit (1);
  10346. }
  10347. _ACEOF
  10348. rm -f conftest$ac_exeext
  10349. if { (ac_try="$ac_link"
  10350. case "(($ac_try" in
  10351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10352. *) ac_try_echo=$ac_try;;
  10353. esac
  10354. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10355. (eval "$ac_link") 2>&5
  10356. ac_status=$?
  10357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10358. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10359. { (case "(($ac_try" in
  10360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10361. *) ac_try_echo=$ac_try;;
  10362. esac
  10363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10364. (eval "$ac_try") 2>&5
  10365. ac_status=$?
  10366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10367. (exit $ac_status); }; }; then
  10368. gt_cv_int_divbyzero_sigfpe=yes
  10369. else
  10370. echo "$as_me: program exited with status $ac_status" >&5
  10371. echo "$as_me: failed program was:" >&5
  10372. sed 's/^/| /' conftest.$ac_ext >&5
  10373. ( exit $ac_status )
  10374. gt_cv_int_divbyzero_sigfpe=no
  10375. fi
  10376. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10377. fi
  10378. fi
  10379. fi
  10380. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10381. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10382. case "$gt_cv_int_divbyzero_sigfpe" in
  10383. *yes) value=1;;
  10384. *) value=0;;
  10385. esac
  10386. cat >>confdefs.h <<_ACEOF
  10387. #define INTDIV0_RAISES_SIGFPE $value
  10388. _ACEOF
  10389. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10390. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10391. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10392. echo $ECHO_N "(cached) $ECHO_C" >&6
  10393. else
  10394. cat >conftest.$ac_ext <<_ACEOF
  10395. /* confdefs.h. */
  10396. _ACEOF
  10397. cat confdefs.h >>conftest.$ac_ext
  10398. cat >>conftest.$ac_ext <<_ACEOF
  10399. /* end confdefs.h. */
  10400. #include <sys/types.h>
  10401. #include <inttypes.h>
  10402. int
  10403. main ()
  10404. {
  10405. uintmax_t i = (uintmax_t) -1; return !i;
  10406. ;
  10407. return 0;
  10408. }
  10409. _ACEOF
  10410. rm -f conftest.$ac_objext
  10411. if { (ac_try="$ac_compile"
  10412. case "(($ac_try" in
  10413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10414. *) ac_try_echo=$ac_try;;
  10415. esac
  10416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10417. (eval "$ac_compile") 2>conftest.er1
  10418. ac_status=$?
  10419. grep -v '^ *+' conftest.er1 >conftest.err
  10420. rm -f conftest.er1
  10421. cat conftest.err >&5
  10422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10423. (exit $ac_status); } && {
  10424. test -z "$ac_cxx_werror_flag" ||
  10425. test ! -s conftest.err
  10426. } && test -s conftest.$ac_objext; then
  10427. gl_cv_header_inttypes_h=yes
  10428. else
  10429. echo "$as_me: failed program was:" >&5
  10430. sed 's/^/| /' conftest.$ac_ext >&5
  10431. gl_cv_header_inttypes_h=no
  10432. fi
  10433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10434. fi
  10435. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10436. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10437. if test $gl_cv_header_inttypes_h = yes; then
  10438. cat >>confdefs.h <<_ACEOF
  10439. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10440. _ACEOF
  10441. fi
  10442. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10443. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10444. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10445. echo $ECHO_N "(cached) $ECHO_C" >&6
  10446. else
  10447. cat >conftest.$ac_ext <<_ACEOF
  10448. /* confdefs.h. */
  10449. _ACEOF
  10450. cat confdefs.h >>conftest.$ac_ext
  10451. cat >>conftest.$ac_ext <<_ACEOF
  10452. /* end confdefs.h. */
  10453. /* Test preprocessor. */
  10454. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10455. error in preprocessor;
  10456. #endif
  10457. #if ! (18446744073709551615ULL <= -1ull)
  10458. error in preprocessor;
  10459. #endif
  10460. /* Test literals. */
  10461. long long int ll = 9223372036854775807ll;
  10462. long long int nll = -9223372036854775807LL;
  10463. unsigned long long int ull = 18446744073709551615ULL;
  10464. /* Test constant expressions. */
  10465. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10466. ? 1 : -1)];
  10467. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10468. ? 1 : -1)];
  10469. int i = 63;
  10470. int
  10471. main ()
  10472. {
  10473. /* Test availability of runtime routines for shift and division. */
  10474. long long int llmax = 9223372036854775807ll;
  10475. unsigned long long int ullmax = 18446744073709551615ull;
  10476. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10477. | (llmax / ll) | (llmax % ll)
  10478. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10479. | (ullmax / ull) | (ullmax % ull));
  10480. ;
  10481. return 0;
  10482. }
  10483. _ACEOF
  10484. rm -f conftest.$ac_objext conftest$ac_exeext
  10485. if { (ac_try="$ac_link"
  10486. case "(($ac_try" in
  10487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10488. *) ac_try_echo=$ac_try;;
  10489. esac
  10490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10491. (eval "$ac_link") 2>conftest.er1
  10492. ac_status=$?
  10493. grep -v '^ *+' conftest.er1 >conftest.err
  10494. rm -f conftest.er1
  10495. cat conftest.err >&5
  10496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10497. (exit $ac_status); } && {
  10498. test -z "$ac_cxx_werror_flag" ||
  10499. test ! -s conftest.err
  10500. } && test -s conftest$ac_exeext &&
  10501. $as_test_x conftest$ac_exeext; then
  10502. ac_cv_type_unsigned_long_long_int=yes
  10503. else
  10504. echo "$as_me: failed program was:" >&5
  10505. sed 's/^/| /' conftest.$ac_ext >&5
  10506. ac_cv_type_unsigned_long_long_int=no
  10507. fi
  10508. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10509. conftest$ac_exeext conftest.$ac_ext
  10510. fi
  10511. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10512. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10513. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10514. cat >>confdefs.h <<\_ACEOF
  10515. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10516. _ACEOF
  10517. fi
  10518. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10519. test $ac_cv_type_unsigned_long_long_int = yes \
  10520. && ac_type='unsigned long long' \
  10521. || ac_type='unsigned long'
  10522. cat >>confdefs.h <<_ACEOF
  10523. #define uintmax_t $ac_type
  10524. _ACEOF
  10525. else
  10526. cat >>confdefs.h <<\_ACEOF
  10527. #define HAVE_UINTMAX_T 1
  10528. _ACEOF
  10529. fi
  10530. for ac_header in inttypes.h
  10531. do
  10532. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10533. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10534. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10535. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10536. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10537. echo $ECHO_N "(cached) $ECHO_C" >&6
  10538. fi
  10539. ac_res=`eval echo '${'$as_ac_Header'}'`
  10540. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10541. echo "${ECHO_T}$ac_res" >&6; }
  10542. else
  10543. # Is the header compilable?
  10544. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10545. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10546. cat >conftest.$ac_ext <<_ACEOF
  10547. /* confdefs.h. */
  10548. _ACEOF
  10549. cat confdefs.h >>conftest.$ac_ext
  10550. cat >>conftest.$ac_ext <<_ACEOF
  10551. /* end confdefs.h. */
  10552. $ac_includes_default
  10553. #include <$ac_header>
  10554. _ACEOF
  10555. rm -f conftest.$ac_objext
  10556. if { (ac_try="$ac_compile"
  10557. case "(($ac_try" in
  10558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10559. *) ac_try_echo=$ac_try;;
  10560. esac
  10561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10562. (eval "$ac_compile") 2>conftest.er1
  10563. ac_status=$?
  10564. grep -v '^ *+' conftest.er1 >conftest.err
  10565. rm -f conftest.er1
  10566. cat conftest.err >&5
  10567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10568. (exit $ac_status); } && {
  10569. test -z "$ac_cxx_werror_flag" ||
  10570. test ! -s conftest.err
  10571. } && test -s conftest.$ac_objext; then
  10572. ac_header_compiler=yes
  10573. else
  10574. echo "$as_me: failed program was:" >&5
  10575. sed 's/^/| /' conftest.$ac_ext >&5
  10576. ac_header_compiler=no
  10577. fi
  10578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10579. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10580. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10581. # Is the header present?
  10582. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10583. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10584. cat >conftest.$ac_ext <<_ACEOF
  10585. /* confdefs.h. */
  10586. _ACEOF
  10587. cat confdefs.h >>conftest.$ac_ext
  10588. cat >>conftest.$ac_ext <<_ACEOF
  10589. /* end confdefs.h. */
  10590. #include <$ac_header>
  10591. _ACEOF
  10592. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10593. case "(($ac_try" in
  10594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10595. *) ac_try_echo=$ac_try;;
  10596. esac
  10597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10598. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10599. ac_status=$?
  10600. grep -v '^ *+' conftest.er1 >conftest.err
  10601. rm -f conftest.er1
  10602. cat conftest.err >&5
  10603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10604. (exit $ac_status); } >/dev/null && {
  10605. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10606. test ! -s conftest.err
  10607. }; then
  10608. ac_header_preproc=yes
  10609. else
  10610. echo "$as_me: failed program was:" >&5
  10611. sed 's/^/| /' conftest.$ac_ext >&5
  10612. ac_header_preproc=no
  10613. fi
  10614. rm -f conftest.err conftest.$ac_ext
  10615. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10616. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10617. # So? What about this header?
  10618. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10619. yes:no: )
  10620. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10621. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10622. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10623. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10624. ac_header_preproc=yes
  10625. ;;
  10626. no:yes:* )
  10627. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10628. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10629. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10630. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10631. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10632. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10633. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10634. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10635. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10636. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10637. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10638. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10639. ( cat <<\_ASBOX
  10640. ## ----------------------------------------------- ##
  10641. ## Report this to t-tujikawa@users.sourceforge.net ##
  10642. ## ----------------------------------------------- ##
  10643. _ASBOX
  10644. ) | sed "s/^/$as_me: WARNING: /" >&2
  10645. ;;
  10646. esac
  10647. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10648. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10649. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10650. echo $ECHO_N "(cached) $ECHO_C" >&6
  10651. else
  10652. eval "$as_ac_Header=\$ac_header_preproc"
  10653. fi
  10654. ac_res=`eval echo '${'$as_ac_Header'}'`
  10655. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10656. echo "${ECHO_T}$ac_res" >&6; }
  10657. fi
  10658. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10659. cat >>confdefs.h <<_ACEOF
  10660. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10661. _ACEOF
  10662. fi
  10663. done
  10664. if test $ac_cv_header_inttypes_h = yes; then
  10665. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10666. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10667. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10668. echo $ECHO_N "(cached) $ECHO_C" >&6
  10669. else
  10670. cat >conftest.$ac_ext <<_ACEOF
  10671. /* confdefs.h. */
  10672. _ACEOF
  10673. cat confdefs.h >>conftest.$ac_ext
  10674. cat >>conftest.$ac_ext <<_ACEOF
  10675. /* end confdefs.h. */
  10676. #include <inttypes.h>
  10677. #ifdef PRId32
  10678. char *p = PRId32;
  10679. #endif
  10680. int
  10681. main ()
  10682. {
  10683. ;
  10684. return 0;
  10685. }
  10686. _ACEOF
  10687. rm -f conftest.$ac_objext
  10688. if { (ac_try="$ac_compile"
  10689. case "(($ac_try" in
  10690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10691. *) ac_try_echo=$ac_try;;
  10692. esac
  10693. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10694. (eval "$ac_compile") 2>conftest.er1
  10695. ac_status=$?
  10696. grep -v '^ *+' conftest.er1 >conftest.err
  10697. rm -f conftest.er1
  10698. cat conftest.err >&5
  10699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10700. (exit $ac_status); } && {
  10701. test -z "$ac_cxx_werror_flag" ||
  10702. test ! -s conftest.err
  10703. } && test -s conftest.$ac_objext; then
  10704. gt_cv_inttypes_pri_broken=no
  10705. else
  10706. echo "$as_me: failed program was:" >&5
  10707. sed 's/^/| /' conftest.$ac_ext >&5
  10708. gt_cv_inttypes_pri_broken=yes
  10709. fi
  10710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10711. fi
  10712. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10713. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10714. fi
  10715. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10716. cat >>confdefs.h <<_ACEOF
  10717. #define PRI_MACROS_BROKEN 1
  10718. _ACEOF
  10719. PRI_MACROS_BROKEN=1
  10720. else
  10721. PRI_MACROS_BROKEN=0
  10722. fi
  10723. # Check whether --enable-threads was given.
  10724. if test "${enable_threads+set}" = set; then
  10725. enableval=$enable_threads; gl_use_threads=$enableval
  10726. else
  10727. case "$host_os" in
  10728. osf*) gl_use_threads=no ;;
  10729. *) gl_use_threads=yes ;;
  10730. esac
  10731. fi
  10732. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10733. # For using <pthread.h>:
  10734. case "$host_os" in
  10735. osf*)
  10736. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10737. # groks <pthread.h>. cc also understands the flag -pthread, but
  10738. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10739. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10740. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10741. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10742. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10743. ;;
  10744. esac
  10745. # Some systems optimize for single-threaded programs by default, and
  10746. # need special flags to disable these optimizations. For example, the
  10747. # definition of 'errno' in <errno.h>.
  10748. case "$host_os" in
  10749. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10750. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10751. esac
  10752. fi
  10753. if test "X$prefix" = "XNONE"; then
  10754. acl_final_prefix="$ac_default_prefix"
  10755. else
  10756. acl_final_prefix="$prefix"
  10757. fi
  10758. if test "X$exec_prefix" = "XNONE"; then
  10759. acl_final_exec_prefix='${prefix}'
  10760. else
  10761. acl_final_exec_prefix="$exec_prefix"
  10762. fi
  10763. acl_save_prefix="$prefix"
  10764. prefix="$acl_final_prefix"
  10765. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10766. prefix="$acl_save_prefix"
  10767. # Check whether --with-gnu-ld was given.
  10768. if test "${with_gnu_ld+set}" = set; then
  10769. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10770. else
  10771. with_gnu_ld=no
  10772. fi
  10773. # Prepare PATH_SEPARATOR.
  10774. # The user is always right.
  10775. if test "${PATH_SEPARATOR+set}" != set; then
  10776. echo "#! /bin/sh" >conf$$.sh
  10777. echo "exit 0" >>conf$$.sh
  10778. chmod +x conf$$.sh
  10779. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10780. PATH_SEPARATOR=';'
  10781. else
  10782. PATH_SEPARATOR=:
  10783. fi
  10784. rm -f conf$$.sh
  10785. fi
  10786. ac_prog=ld
  10787. if test "$GCC" = yes; then
  10788. # Check if gcc -print-prog-name=ld gives a path.
  10789. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10790. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10791. case $host in
  10792. *-*-mingw*)
  10793. # gcc leaves a trailing carriage return which upsets mingw
  10794. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10795. *)
  10796. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10797. esac
  10798. case $ac_prog in
  10799. # Accept absolute paths.
  10800. [\\/]* | [A-Za-z]:[\\/]*)
  10801. re_direlt='/[^/][^/]*/\.\./'
  10802. # Canonicalize the path of ld
  10803. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10804. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10805. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10806. done
  10807. test -z "$LD" && LD="$ac_prog"
  10808. ;;
  10809. "")
  10810. # If it fails, then pretend we aren't using GCC.
  10811. ac_prog=ld
  10812. ;;
  10813. *)
  10814. # If it is relative, then search for the first ld in PATH.
  10815. with_gnu_ld=unknown
  10816. ;;
  10817. esac
  10818. elif test "$with_gnu_ld" = yes; then
  10819. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10820. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10821. else
  10822. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10823. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10824. fi
  10825. if test "${acl_cv_path_LD+set}" = set; then
  10826. echo $ECHO_N "(cached) $ECHO_C" >&6
  10827. else
  10828. if test -z "$LD"; then
  10829. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10830. for ac_dir in $PATH; do
  10831. test -z "$ac_dir" && ac_dir=.
  10832. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10833. acl_cv_path_LD="$ac_dir/$ac_prog"
  10834. # Check to see if the program is GNU ld. I'd rather use --version,
  10835. # but apparently some GNU ld's only accept -v.
  10836. # Break only if it was the GNU/non-GNU ld that we prefer.
  10837. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10838. *GNU* | *'with BFD'*)
  10839. test "$with_gnu_ld" != no && break ;;
  10840. *)
  10841. test "$with_gnu_ld" != yes && break ;;
  10842. esac
  10843. fi
  10844. done
  10845. IFS="$ac_save_ifs"
  10846. else
  10847. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10848. fi
  10849. fi
  10850. LD="$acl_cv_path_LD"
  10851. if test -n "$LD"; then
  10852. { echo "$as_me:$LINENO: result: $LD" >&5
  10853. echo "${ECHO_T}$LD" >&6; }
  10854. else
  10855. { echo "$as_me:$LINENO: result: no" >&5
  10856. echo "${ECHO_T}no" >&6; }
  10857. fi
  10858. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10859. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10860. { (exit 1); exit 1; }; }
  10861. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10862. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10863. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10864. echo $ECHO_N "(cached) $ECHO_C" >&6
  10865. else
  10866. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10867. case `$LD -v 2>&1 </dev/null` in
  10868. *GNU* | *'with BFD'*)
  10869. acl_cv_prog_gnu_ld=yes ;;
  10870. *)
  10871. acl_cv_prog_gnu_ld=no ;;
  10872. esac
  10873. fi
  10874. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10875. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10876. with_gnu_ld=$acl_cv_prog_gnu_ld
  10877. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10878. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10879. if test "${acl_cv_rpath+set}" = set; then
  10880. echo $ECHO_N "(cached) $ECHO_C" >&6
  10881. else
  10882. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10883. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10884. . ./conftest.sh
  10885. rm -f ./conftest.sh
  10886. acl_cv_rpath=done
  10887. fi
  10888. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10889. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10890. wl="$acl_cv_wl"
  10891. acl_libext="$acl_cv_libext"
  10892. acl_shlibext="$acl_cv_shlibext"
  10893. acl_libname_spec="$acl_cv_libname_spec"
  10894. acl_library_names_spec="$acl_cv_library_names_spec"
  10895. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10896. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10897. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10898. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10899. # Check whether --enable-rpath was given.
  10900. if test "${enable_rpath+set}" = set; then
  10901. enableval=$enable_rpath; :
  10902. else
  10903. enable_rpath=yes
  10904. fi
  10905. acl_libdirstem=lib
  10906. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10907. if test -n "$searchpath"; then
  10908. acl_save_IFS="${IFS= }"; IFS=":"
  10909. for searchdir in $searchpath; do
  10910. if test -d "$searchdir"; then
  10911. case "$searchdir" in
  10912. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10913. *) searchdir=`cd "$searchdir" && pwd`
  10914. case "$searchdir" in
  10915. */lib64 ) acl_libdirstem=lib64 ;;
  10916. esac ;;
  10917. esac
  10918. fi
  10919. done
  10920. IFS="$acl_save_IFS"
  10921. fi
  10922. gl_threads_api=none
  10923. LIBTHREAD=
  10924. LTLIBTHREAD=
  10925. LIBMULTITHREAD=
  10926. LTLIBMULTITHREAD=
  10927. if test "$gl_use_threads" != no; then
  10928. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10929. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10930. gl_have_weak=no
  10931. cat >conftest.$ac_ext <<_ACEOF
  10932. /* confdefs.h. */
  10933. _ACEOF
  10934. cat confdefs.h >>conftest.$ac_ext
  10935. cat >>conftest.$ac_ext <<_ACEOF
  10936. /* end confdefs.h. */
  10937. extern void xyzzy ();
  10938. #pragma weak xyzzy
  10939. int
  10940. main ()
  10941. {
  10942. xyzzy();
  10943. ;
  10944. return 0;
  10945. }
  10946. _ACEOF
  10947. rm -f conftest.$ac_objext conftest$ac_exeext
  10948. if { (ac_try="$ac_link"
  10949. case "(($ac_try" in
  10950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10951. *) ac_try_echo=$ac_try;;
  10952. esac
  10953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10954. (eval "$ac_link") 2>conftest.er1
  10955. ac_status=$?
  10956. grep -v '^ *+' conftest.er1 >conftest.err
  10957. rm -f conftest.er1
  10958. cat conftest.err >&5
  10959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10960. (exit $ac_status); } && {
  10961. test -z "$ac_cxx_werror_flag" ||
  10962. test ! -s conftest.err
  10963. } && test -s conftest$ac_exeext &&
  10964. $as_test_x conftest$ac_exeext; then
  10965. gl_have_weak=yes
  10966. else
  10967. echo "$as_me: failed program was:" >&5
  10968. sed 's/^/| /' conftest.$ac_ext >&5
  10969. fi
  10970. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10971. conftest$ac_exeext conftest.$ac_ext
  10972. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10973. echo "${ECHO_T}$gl_have_weak" >&6; }
  10974. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10975. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10976. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10977. if test "${ac_cv_header_pthread_h+set}" = set; then
  10978. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10979. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10980. if test "${ac_cv_header_pthread_h+set}" = set; then
  10981. echo $ECHO_N "(cached) $ECHO_C" >&6
  10982. fi
  10983. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10984. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10985. else
  10986. # Is the header compilable?
  10987. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10988. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10989. cat >conftest.$ac_ext <<_ACEOF
  10990. /* confdefs.h. */
  10991. _ACEOF
  10992. cat confdefs.h >>conftest.$ac_ext
  10993. cat >>conftest.$ac_ext <<_ACEOF
  10994. /* end confdefs.h. */
  10995. $ac_includes_default
  10996. #include <pthread.h>
  10997. _ACEOF
  10998. rm -f conftest.$ac_objext
  10999. if { (ac_try="$ac_compile"
  11000. case "(($ac_try" in
  11001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11002. *) ac_try_echo=$ac_try;;
  11003. esac
  11004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11005. (eval "$ac_compile") 2>conftest.er1
  11006. ac_status=$?
  11007. grep -v '^ *+' conftest.er1 >conftest.err
  11008. rm -f conftest.er1
  11009. cat conftest.err >&5
  11010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11011. (exit $ac_status); } && {
  11012. test -z "$ac_cxx_werror_flag" ||
  11013. test ! -s conftest.err
  11014. } && test -s conftest.$ac_objext; then
  11015. ac_header_compiler=yes
  11016. else
  11017. echo "$as_me: failed program was:" >&5
  11018. sed 's/^/| /' conftest.$ac_ext >&5
  11019. ac_header_compiler=no
  11020. fi
  11021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11022. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11023. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11024. # Is the header present?
  11025. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  11026. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  11027. cat >conftest.$ac_ext <<_ACEOF
  11028. /* confdefs.h. */
  11029. _ACEOF
  11030. cat confdefs.h >>conftest.$ac_ext
  11031. cat >>conftest.$ac_ext <<_ACEOF
  11032. /* end confdefs.h. */
  11033. #include <pthread.h>
  11034. _ACEOF
  11035. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11036. case "(($ac_try" in
  11037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11038. *) ac_try_echo=$ac_try;;
  11039. esac
  11040. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11041. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11042. ac_status=$?
  11043. grep -v '^ *+' conftest.er1 >conftest.err
  11044. rm -f conftest.er1
  11045. cat conftest.err >&5
  11046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11047. (exit $ac_status); } >/dev/null && {
  11048. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11049. test ! -s conftest.err
  11050. }; then
  11051. ac_header_preproc=yes
  11052. else
  11053. echo "$as_me: failed program was:" >&5
  11054. sed 's/^/| /' conftest.$ac_ext >&5
  11055. ac_header_preproc=no
  11056. fi
  11057. rm -f conftest.err conftest.$ac_ext
  11058. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11059. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11060. # So? What about this header?
  11061. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11062. yes:no: )
  11063. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11064. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11065. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11066. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11067. ac_header_preproc=yes
  11068. ;;
  11069. no:yes:* )
  11070. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11071. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11072. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11073. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11074. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11075. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11076. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11077. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11078. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11079. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11080. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11081. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11082. ( cat <<\_ASBOX
  11083. ## ----------------------------------------------- ##
  11084. ## Report this to t-tujikawa@users.sourceforge.net ##
  11085. ## ----------------------------------------------- ##
  11086. _ASBOX
  11087. ) | sed "s/^/$as_me: WARNING: /" >&2
  11088. ;;
  11089. esac
  11090. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  11091. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  11092. if test "${ac_cv_header_pthread_h+set}" = set; then
  11093. echo $ECHO_N "(cached) $ECHO_C" >&6
  11094. else
  11095. ac_cv_header_pthread_h=$ac_header_preproc
  11096. fi
  11097. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11098. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  11099. fi
  11100. if test $ac_cv_header_pthread_h = yes; then
  11101. gl_have_pthread_h=yes
  11102. else
  11103. gl_have_pthread_h=no
  11104. fi
  11105. if test "$gl_have_pthread_h" = yes; then
  11106. # Other possible tests:
  11107. # -lpthreads (FSU threads, PCthreads)
  11108. # -lgthreads
  11109. gl_have_pthread=
  11110. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11111. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11112. # the second one only in libpthread, and lock.c needs it.
  11113. cat >conftest.$ac_ext <<_ACEOF
  11114. /* confdefs.h. */
  11115. _ACEOF
  11116. cat confdefs.h >>conftest.$ac_ext
  11117. cat >>conftest.$ac_ext <<_ACEOF
  11118. /* end confdefs.h. */
  11119. #include <pthread.h>
  11120. int
  11121. main ()
  11122. {
  11123. pthread_mutex_lock((pthread_mutex_t*)0);
  11124. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11125. ;
  11126. return 0;
  11127. }
  11128. _ACEOF
  11129. rm -f conftest.$ac_objext conftest$ac_exeext
  11130. if { (ac_try="$ac_link"
  11131. case "(($ac_try" in
  11132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11133. *) ac_try_echo=$ac_try;;
  11134. esac
  11135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11136. (eval "$ac_link") 2>conftest.er1
  11137. ac_status=$?
  11138. grep -v '^ *+' conftest.er1 >conftest.err
  11139. rm -f conftest.er1
  11140. cat conftest.err >&5
  11141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11142. (exit $ac_status); } && {
  11143. test -z "$ac_cxx_werror_flag" ||
  11144. test ! -s conftest.err
  11145. } && test -s conftest$ac_exeext &&
  11146. $as_test_x conftest$ac_exeext; then
  11147. gl_have_pthread=yes
  11148. else
  11149. echo "$as_me: failed program was:" >&5
  11150. sed 's/^/| /' conftest.$ac_ext >&5
  11151. fi
  11152. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11153. conftest$ac_exeext conftest.$ac_ext
  11154. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11155. # since it is defined as a macro on OSF/1.)
  11156. if test -n "$gl_have_pthread"; then
  11157. # The program links fine without libpthread. But it may actually
  11158. # need to link with libpthread in order to create multiple threads.
  11159. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11160. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11161. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11162. echo $ECHO_N "(cached) $ECHO_C" >&6
  11163. else
  11164. ac_check_lib_save_LIBS=$LIBS
  11165. LIBS="-lpthread $LIBS"
  11166. cat >conftest.$ac_ext <<_ACEOF
  11167. /* confdefs.h. */
  11168. _ACEOF
  11169. cat confdefs.h >>conftest.$ac_ext
  11170. cat >>conftest.$ac_ext <<_ACEOF
  11171. /* end confdefs.h. */
  11172. /* Override any GCC internal prototype to avoid an error.
  11173. Use char because int might match the return type of a GCC
  11174. builtin and then its argument prototype would still apply. */
  11175. #ifdef __cplusplus
  11176. extern "C"
  11177. #endif
  11178. char pthread_kill ();
  11179. int
  11180. main ()
  11181. {
  11182. return pthread_kill ();
  11183. ;
  11184. return 0;
  11185. }
  11186. _ACEOF
  11187. rm -f conftest.$ac_objext conftest$ac_exeext
  11188. if { (ac_try="$ac_link"
  11189. case "(($ac_try" in
  11190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11191. *) ac_try_echo=$ac_try;;
  11192. esac
  11193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11194. (eval "$ac_link") 2>conftest.er1
  11195. ac_status=$?
  11196. grep -v '^ *+' conftest.er1 >conftest.err
  11197. rm -f conftest.er1
  11198. cat conftest.err >&5
  11199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11200. (exit $ac_status); } && {
  11201. test -z "$ac_cxx_werror_flag" ||
  11202. test ! -s conftest.err
  11203. } && test -s conftest$ac_exeext &&
  11204. $as_test_x conftest$ac_exeext; then
  11205. ac_cv_lib_pthread_pthread_kill=yes
  11206. else
  11207. echo "$as_me: failed program was:" >&5
  11208. sed 's/^/| /' conftest.$ac_ext >&5
  11209. ac_cv_lib_pthread_pthread_kill=no
  11210. fi
  11211. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11212. conftest$ac_exeext conftest.$ac_ext
  11213. LIBS=$ac_check_lib_save_LIBS
  11214. fi
  11215. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11216. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11217. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11218. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11219. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11220. # Therefore pthread_in_use() needs to actually try to create a
  11221. # thread: pthread_create from libc will fail, whereas
  11222. # pthread_create will actually create a thread.
  11223. case "$host_os" in
  11224. solaris* | hpux*)
  11225. cat >>confdefs.h <<\_ACEOF
  11226. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11227. _ACEOF
  11228. esac
  11229. fi
  11230. else
  11231. # Some library is needed. Try libpthread and libc_r.
  11232. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11233. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11234. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11235. echo $ECHO_N "(cached) $ECHO_C" >&6
  11236. else
  11237. ac_check_lib_save_LIBS=$LIBS
  11238. LIBS="-lpthread $LIBS"
  11239. cat >conftest.$ac_ext <<_ACEOF
  11240. /* confdefs.h. */
  11241. _ACEOF
  11242. cat confdefs.h >>conftest.$ac_ext
  11243. cat >>conftest.$ac_ext <<_ACEOF
  11244. /* end confdefs.h. */
  11245. /* Override any GCC internal prototype to avoid an error.
  11246. Use char because int might match the return type of a GCC
  11247. builtin and then its argument prototype would still apply. */
  11248. #ifdef __cplusplus
  11249. extern "C"
  11250. #endif
  11251. char pthread_kill ();
  11252. int
  11253. main ()
  11254. {
  11255. return pthread_kill ();
  11256. ;
  11257. return 0;
  11258. }
  11259. _ACEOF
  11260. rm -f conftest.$ac_objext conftest$ac_exeext
  11261. if { (ac_try="$ac_link"
  11262. case "(($ac_try" in
  11263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11264. *) ac_try_echo=$ac_try;;
  11265. esac
  11266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11267. (eval "$ac_link") 2>conftest.er1
  11268. ac_status=$?
  11269. grep -v '^ *+' conftest.er1 >conftest.err
  11270. rm -f conftest.er1
  11271. cat conftest.err >&5
  11272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11273. (exit $ac_status); } && {
  11274. test -z "$ac_cxx_werror_flag" ||
  11275. test ! -s conftest.err
  11276. } && test -s conftest$ac_exeext &&
  11277. $as_test_x conftest$ac_exeext; then
  11278. ac_cv_lib_pthread_pthread_kill=yes
  11279. else
  11280. echo "$as_me: failed program was:" >&5
  11281. sed 's/^/| /' conftest.$ac_ext >&5
  11282. ac_cv_lib_pthread_pthread_kill=no
  11283. fi
  11284. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11285. conftest$ac_exeext conftest.$ac_ext
  11286. LIBS=$ac_check_lib_save_LIBS
  11287. fi
  11288. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11289. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11290. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11291. gl_have_pthread=yes
  11292. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11293. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11294. fi
  11295. if test -z "$gl_have_pthread"; then
  11296. # For FreeBSD 4.
  11297. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11298. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  11299. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11300. echo $ECHO_N "(cached) $ECHO_C" >&6
  11301. else
  11302. ac_check_lib_save_LIBS=$LIBS
  11303. LIBS="-lc_r $LIBS"
  11304. cat >conftest.$ac_ext <<_ACEOF
  11305. /* confdefs.h. */
  11306. _ACEOF
  11307. cat confdefs.h >>conftest.$ac_ext
  11308. cat >>conftest.$ac_ext <<_ACEOF
  11309. /* end confdefs.h. */
  11310. /* Override any GCC internal prototype to avoid an error.
  11311. Use char because int might match the return type of a GCC
  11312. builtin and then its argument prototype would still apply. */
  11313. #ifdef __cplusplus
  11314. extern "C"
  11315. #endif
  11316. char pthread_kill ();
  11317. int
  11318. main ()
  11319. {
  11320. return pthread_kill ();
  11321. ;
  11322. return 0;
  11323. }
  11324. _ACEOF
  11325. rm -f conftest.$ac_objext conftest$ac_exeext
  11326. if { (ac_try="$ac_link"
  11327. case "(($ac_try" in
  11328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11329. *) ac_try_echo=$ac_try;;
  11330. esac
  11331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11332. (eval "$ac_link") 2>conftest.er1
  11333. ac_status=$?
  11334. grep -v '^ *+' conftest.er1 >conftest.err
  11335. rm -f conftest.er1
  11336. cat conftest.err >&5
  11337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11338. (exit $ac_status); } && {
  11339. test -z "$ac_cxx_werror_flag" ||
  11340. test ! -s conftest.err
  11341. } && test -s conftest$ac_exeext &&
  11342. $as_test_x conftest$ac_exeext; then
  11343. ac_cv_lib_c_r_pthread_kill=yes
  11344. else
  11345. echo "$as_me: failed program was:" >&5
  11346. sed 's/^/| /' conftest.$ac_ext >&5
  11347. ac_cv_lib_c_r_pthread_kill=no
  11348. fi
  11349. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11350. conftest$ac_exeext conftest.$ac_ext
  11351. LIBS=$ac_check_lib_save_LIBS
  11352. fi
  11353. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11354. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11355. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11356. gl_have_pthread=yes
  11357. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11358. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11359. fi
  11360. fi
  11361. fi
  11362. if test -n "$gl_have_pthread"; then
  11363. gl_threads_api=posix
  11364. cat >>confdefs.h <<\_ACEOF
  11365. #define USE_POSIX_THREADS 1
  11366. _ACEOF
  11367. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11368. if test $gl_have_weak = yes; then
  11369. cat >>confdefs.h <<\_ACEOF
  11370. #define USE_POSIX_THREADS_WEAK 1
  11371. _ACEOF
  11372. LIBTHREAD=
  11373. LTLIBTHREAD=
  11374. fi
  11375. fi
  11376. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11377. # pthread_rwlock_* functions.
  11378. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11379. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11380. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11381. echo $ECHO_N "(cached) $ECHO_C" >&6
  11382. else
  11383. cat >conftest.$ac_ext <<_ACEOF
  11384. /* confdefs.h. */
  11385. _ACEOF
  11386. cat confdefs.h >>conftest.$ac_ext
  11387. cat >>conftest.$ac_ext <<_ACEOF
  11388. /* end confdefs.h. */
  11389. #include <pthread.h>
  11390. typedef pthread_rwlock_t ac__type_new_;
  11391. int
  11392. main ()
  11393. {
  11394. if ((ac__type_new_ *) 0)
  11395. return 0;
  11396. if (sizeof (ac__type_new_))
  11397. return 0;
  11398. ;
  11399. return 0;
  11400. }
  11401. _ACEOF
  11402. rm -f conftest.$ac_objext
  11403. if { (ac_try="$ac_compile"
  11404. case "(($ac_try" in
  11405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11406. *) ac_try_echo=$ac_try;;
  11407. esac
  11408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11409. (eval "$ac_compile") 2>conftest.er1
  11410. ac_status=$?
  11411. grep -v '^ *+' conftest.er1 >conftest.err
  11412. rm -f conftest.er1
  11413. cat conftest.err >&5
  11414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11415. (exit $ac_status); } && {
  11416. test -z "$ac_cxx_werror_flag" ||
  11417. test ! -s conftest.err
  11418. } && test -s conftest.$ac_objext; then
  11419. ac_cv_type_pthread_rwlock_t=yes
  11420. else
  11421. echo "$as_me: failed program was:" >&5
  11422. sed 's/^/| /' conftest.$ac_ext >&5
  11423. ac_cv_type_pthread_rwlock_t=no
  11424. fi
  11425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11426. fi
  11427. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11428. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11429. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11430. cat >>confdefs.h <<\_ACEOF
  11431. #define HAVE_PTHREAD_RWLOCK 1
  11432. _ACEOF
  11433. fi
  11434. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11435. cat >conftest.$ac_ext <<_ACEOF
  11436. /* confdefs.h. */
  11437. _ACEOF
  11438. cat confdefs.h >>conftest.$ac_ext
  11439. cat >>conftest.$ac_ext <<_ACEOF
  11440. /* end confdefs.h. */
  11441. #include <pthread.h>
  11442. int
  11443. main ()
  11444. {
  11445. #if __FreeBSD__ == 4
  11446. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11447. #else
  11448. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11449. return !x;
  11450. #endif
  11451. ;
  11452. return 0;
  11453. }
  11454. _ACEOF
  11455. rm -f conftest.$ac_objext
  11456. if { (ac_try="$ac_compile"
  11457. case "(($ac_try" in
  11458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11459. *) ac_try_echo=$ac_try;;
  11460. esac
  11461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11462. (eval "$ac_compile") 2>conftest.er1
  11463. ac_status=$?
  11464. grep -v '^ *+' conftest.er1 >conftest.err
  11465. rm -f conftest.er1
  11466. cat conftest.err >&5
  11467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11468. (exit $ac_status); } && {
  11469. test -z "$ac_cxx_werror_flag" ||
  11470. test ! -s conftest.err
  11471. } && test -s conftest.$ac_objext; then
  11472. cat >>confdefs.h <<\_ACEOF
  11473. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11474. _ACEOF
  11475. else
  11476. echo "$as_me: failed program was:" >&5
  11477. sed 's/^/| /' conftest.$ac_ext >&5
  11478. fi
  11479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11480. fi
  11481. fi
  11482. fi
  11483. if test -z "$gl_have_pthread"; then
  11484. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11485. gl_have_solaristhread=
  11486. gl_save_LIBS="$LIBS"
  11487. LIBS="$LIBS -lthread"
  11488. cat >conftest.$ac_ext <<_ACEOF
  11489. /* confdefs.h. */
  11490. _ACEOF
  11491. cat confdefs.h >>conftest.$ac_ext
  11492. cat >>conftest.$ac_ext <<_ACEOF
  11493. /* end confdefs.h. */
  11494. #include <thread.h>
  11495. #include <synch.h>
  11496. int
  11497. main ()
  11498. {
  11499. thr_self();
  11500. ;
  11501. return 0;
  11502. }
  11503. _ACEOF
  11504. rm -f conftest.$ac_objext conftest$ac_exeext
  11505. if { (ac_try="$ac_link"
  11506. case "(($ac_try" in
  11507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11508. *) ac_try_echo=$ac_try;;
  11509. esac
  11510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11511. (eval "$ac_link") 2>conftest.er1
  11512. ac_status=$?
  11513. grep -v '^ *+' conftest.er1 >conftest.err
  11514. rm -f conftest.er1
  11515. cat conftest.err >&5
  11516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11517. (exit $ac_status); } && {
  11518. test -z "$ac_cxx_werror_flag" ||
  11519. test ! -s conftest.err
  11520. } && test -s conftest$ac_exeext &&
  11521. $as_test_x conftest$ac_exeext; then
  11522. gl_have_solaristhread=yes
  11523. else
  11524. echo "$as_me: failed program was:" >&5
  11525. sed 's/^/| /' conftest.$ac_ext >&5
  11526. fi
  11527. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11528. conftest$ac_exeext conftest.$ac_ext
  11529. LIBS="$gl_save_LIBS"
  11530. if test -n "$gl_have_solaristhread"; then
  11531. gl_threads_api=solaris
  11532. LIBTHREAD=-lthread
  11533. LTLIBTHREAD=-lthread
  11534. LIBMULTITHREAD="$LIBTHREAD"
  11535. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11536. cat >>confdefs.h <<\_ACEOF
  11537. #define USE_SOLARIS_THREADS 1
  11538. _ACEOF
  11539. if test $gl_have_weak = yes; then
  11540. cat >>confdefs.h <<\_ACEOF
  11541. #define USE_SOLARIS_THREADS_WEAK 1
  11542. _ACEOF
  11543. LIBTHREAD=
  11544. LTLIBTHREAD=
  11545. fi
  11546. fi
  11547. fi
  11548. fi
  11549. if test "$gl_use_threads" = pth; then
  11550. gl_save_CPPFLAGS="$CPPFLAGS"
  11551. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11552. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11553. if test "${ac_cv_libpth_libs+set}" = set; then
  11554. echo $ECHO_N "(cached) $ECHO_C" >&6
  11555. else
  11556. use_additional=yes
  11557. acl_save_prefix="$prefix"
  11558. prefix="$acl_final_prefix"
  11559. acl_save_exec_prefix="$exec_prefix"
  11560. exec_prefix="$acl_final_exec_prefix"
  11561. eval additional_includedir=\"$includedir\"
  11562. eval additional_libdir=\"$libdir\"
  11563. exec_prefix="$acl_save_exec_prefix"
  11564. prefix="$acl_save_prefix"
  11565. # Check whether --with-libpth-prefix was given.
  11566. if test "${with_libpth_prefix+set}" = set; then
  11567. withval=$with_libpth_prefix;
  11568. if test "X$withval" = "Xno"; then
  11569. use_additional=no
  11570. else
  11571. if test "X$withval" = "X"; then
  11572. acl_save_prefix="$prefix"
  11573. prefix="$acl_final_prefix"
  11574. acl_save_exec_prefix="$exec_prefix"
  11575. exec_prefix="$acl_final_exec_prefix"
  11576. eval additional_includedir=\"$includedir\"
  11577. eval additional_libdir=\"$libdir\"
  11578. exec_prefix="$acl_save_exec_prefix"
  11579. prefix="$acl_save_prefix"
  11580. else
  11581. additional_includedir="$withval/include"
  11582. additional_libdir="$withval/$acl_libdirstem"
  11583. fi
  11584. fi
  11585. fi
  11586. LIBPTH=
  11587. LTLIBPTH=
  11588. INCPTH=
  11589. LIBPTH_PREFIX=
  11590. rpathdirs=
  11591. ltrpathdirs=
  11592. names_already_handled=
  11593. names_next_round='pth '
  11594. while test -n "$names_next_round"; do
  11595. names_this_round="$names_next_round"
  11596. names_next_round=
  11597. for name in $names_this_round; do
  11598. already_handled=
  11599. for n in $names_already_handled; do
  11600. if test "$n" = "$name"; then
  11601. already_handled=yes
  11602. break
  11603. fi
  11604. done
  11605. if test -z "$already_handled"; then
  11606. names_already_handled="$names_already_handled $name"
  11607. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11608. eval value=\"\$HAVE_LIB$uppername\"
  11609. if test -n "$value"; then
  11610. if test "$value" = yes; then
  11611. eval value=\"\$LIB$uppername\"
  11612. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11613. eval value=\"\$LTLIB$uppername\"
  11614. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11615. else
  11616. :
  11617. fi
  11618. else
  11619. found_dir=
  11620. found_la=
  11621. found_so=
  11622. found_a=
  11623. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11624. if test -n "$acl_shlibext"; then
  11625. shrext=".$acl_shlibext" # typically: shrext=.so
  11626. else
  11627. shrext=
  11628. fi
  11629. if test $use_additional = yes; then
  11630. dir="$additional_libdir"
  11631. if test -n "$acl_shlibext"; then
  11632. if test -f "$dir/$libname$shrext"; then
  11633. found_dir="$dir"
  11634. found_so="$dir/$libname$shrext"
  11635. else
  11636. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11637. ver=`(cd "$dir" && \
  11638. for f in "$libname$shrext".*; do echo "$f"; done \
  11639. | sed -e "s,^$libname$shrext\\\\.,," \
  11640. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11641. | sed 1q ) 2>/dev/null`
  11642. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11643. found_dir="$dir"
  11644. found_so="$dir/$libname$shrext.$ver"
  11645. fi
  11646. else
  11647. eval library_names=\"$acl_library_names_spec\"
  11648. for f in $library_names; do
  11649. if test -f "$dir/$f"; then
  11650. found_dir="$dir"
  11651. found_so="$dir/$f"
  11652. break
  11653. fi
  11654. done
  11655. fi
  11656. fi
  11657. fi
  11658. if test "X$found_dir" = "X"; then
  11659. if test -f "$dir/$libname.$acl_libext"; then
  11660. found_dir="$dir"
  11661. found_a="$dir/$libname.$acl_libext"
  11662. fi
  11663. fi
  11664. if test "X$found_dir" != "X"; then
  11665. if test -f "$dir/$libname.la"; then
  11666. found_la="$dir/$libname.la"
  11667. fi
  11668. fi
  11669. fi
  11670. if test "X$found_dir" = "X"; then
  11671. for x in $LDFLAGS $LTLIBPTH; do
  11672. acl_save_prefix="$prefix"
  11673. prefix="$acl_final_prefix"
  11674. acl_save_exec_prefix="$exec_prefix"
  11675. exec_prefix="$acl_final_exec_prefix"
  11676. eval x=\"$x\"
  11677. exec_prefix="$acl_save_exec_prefix"
  11678. prefix="$acl_save_prefix"
  11679. case "$x" in
  11680. -L*)
  11681. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11682. if test -n "$acl_shlibext"; then
  11683. if test -f "$dir/$libname$shrext"; then
  11684. found_dir="$dir"
  11685. found_so="$dir/$libname$shrext"
  11686. else
  11687. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11688. ver=`(cd "$dir" && \
  11689. for f in "$libname$shrext".*; do echo "$f"; done \
  11690. | sed -e "s,^$libname$shrext\\\\.,," \
  11691. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11692. | sed 1q ) 2>/dev/null`
  11693. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11694. found_dir="$dir"
  11695. found_so="$dir/$libname$shrext.$ver"
  11696. fi
  11697. else
  11698. eval library_names=\"$acl_library_names_spec\"
  11699. for f in $library_names; do
  11700. if test -f "$dir/$f"; then
  11701. found_dir="$dir"
  11702. found_so="$dir/$f"
  11703. break
  11704. fi
  11705. done
  11706. fi
  11707. fi
  11708. fi
  11709. if test "X$found_dir" = "X"; then
  11710. if test -f "$dir/$libname.$acl_libext"; then
  11711. found_dir="$dir"
  11712. found_a="$dir/$libname.$acl_libext"
  11713. fi
  11714. fi
  11715. if test "X$found_dir" != "X"; then
  11716. if test -f "$dir/$libname.la"; then
  11717. found_la="$dir/$libname.la"
  11718. fi
  11719. fi
  11720. ;;
  11721. esac
  11722. if test "X$found_dir" != "X"; then
  11723. break
  11724. fi
  11725. done
  11726. fi
  11727. if test "X$found_dir" != "X"; then
  11728. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11729. if test "X$found_so" != "X"; then
  11730. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11731. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11732. else
  11733. haveit=
  11734. for x in $ltrpathdirs; do
  11735. if test "X$x" = "X$found_dir"; then
  11736. haveit=yes
  11737. break
  11738. fi
  11739. done
  11740. if test -z "$haveit"; then
  11741. ltrpathdirs="$ltrpathdirs $found_dir"
  11742. fi
  11743. if test "$acl_hardcode_direct" = yes; then
  11744. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11745. else
  11746. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11747. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11748. haveit=
  11749. for x in $rpathdirs; do
  11750. if test "X$x" = "X$found_dir"; then
  11751. haveit=yes
  11752. break
  11753. fi
  11754. done
  11755. if test -z "$haveit"; then
  11756. rpathdirs="$rpathdirs $found_dir"
  11757. fi
  11758. else
  11759. haveit=
  11760. for x in $LDFLAGS $LIBPTH; do
  11761. acl_save_prefix="$prefix"
  11762. prefix="$acl_final_prefix"
  11763. acl_save_exec_prefix="$exec_prefix"
  11764. exec_prefix="$acl_final_exec_prefix"
  11765. eval x=\"$x\"
  11766. exec_prefix="$acl_save_exec_prefix"
  11767. prefix="$acl_save_prefix"
  11768. if test "X$x" = "X-L$found_dir"; then
  11769. haveit=yes
  11770. break
  11771. fi
  11772. done
  11773. if test -z "$haveit"; then
  11774. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11775. fi
  11776. if test "$acl_hardcode_minus_L" != no; then
  11777. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11778. else
  11779. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11780. fi
  11781. fi
  11782. fi
  11783. fi
  11784. else
  11785. if test "X$found_a" != "X"; then
  11786. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11787. else
  11788. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11789. fi
  11790. fi
  11791. additional_includedir=
  11792. case "$found_dir" in
  11793. */$acl_libdirstem | */$acl_libdirstem/)
  11794. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11795. LIBPTH_PREFIX="$basedir"
  11796. additional_includedir="$basedir/include"
  11797. ;;
  11798. esac
  11799. if test "X$additional_includedir" != "X"; then
  11800. if test "X$additional_includedir" != "X/usr/include"; then
  11801. haveit=
  11802. if test "X$additional_includedir" = "X/usr/local/include"; then
  11803. if test -n "$GCC"; then
  11804. case $host_os in
  11805. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11806. esac
  11807. fi
  11808. fi
  11809. if test -z "$haveit"; then
  11810. for x in $CPPFLAGS $INCPTH; do
  11811. acl_save_prefix="$prefix"
  11812. prefix="$acl_final_prefix"
  11813. acl_save_exec_prefix="$exec_prefix"
  11814. exec_prefix="$acl_final_exec_prefix"
  11815. eval x=\"$x\"
  11816. exec_prefix="$acl_save_exec_prefix"
  11817. prefix="$acl_save_prefix"
  11818. if test "X$x" = "X-I$additional_includedir"; then
  11819. haveit=yes
  11820. break
  11821. fi
  11822. done
  11823. if test -z "$haveit"; then
  11824. if test -d "$additional_includedir"; then
  11825. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11826. fi
  11827. fi
  11828. fi
  11829. fi
  11830. fi
  11831. if test -n "$found_la"; then
  11832. save_libdir="$libdir"
  11833. case "$found_la" in
  11834. */* | *\\*) . "$found_la" ;;
  11835. *) . "./$found_la" ;;
  11836. esac
  11837. libdir="$save_libdir"
  11838. for dep in $dependency_libs; do
  11839. case "$dep" in
  11840. -L*)
  11841. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11842. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11843. haveit=
  11844. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11845. if test -n "$GCC"; then
  11846. case $host_os in
  11847. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11848. esac
  11849. fi
  11850. fi
  11851. if test -z "$haveit"; then
  11852. haveit=
  11853. for x in $LDFLAGS $LIBPTH; do
  11854. acl_save_prefix="$prefix"
  11855. prefix="$acl_final_prefix"
  11856. acl_save_exec_prefix="$exec_prefix"
  11857. exec_prefix="$acl_final_exec_prefix"
  11858. eval x=\"$x\"
  11859. exec_prefix="$acl_save_exec_prefix"
  11860. prefix="$acl_save_prefix"
  11861. if test "X$x" = "X-L$additional_libdir"; then
  11862. haveit=yes
  11863. break
  11864. fi
  11865. done
  11866. if test -z "$haveit"; then
  11867. if test -d "$additional_libdir"; then
  11868. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11869. fi
  11870. fi
  11871. haveit=
  11872. for x in $LDFLAGS $LTLIBPTH; do
  11873. acl_save_prefix="$prefix"
  11874. prefix="$acl_final_prefix"
  11875. acl_save_exec_prefix="$exec_prefix"
  11876. exec_prefix="$acl_final_exec_prefix"
  11877. eval x=\"$x\"
  11878. exec_prefix="$acl_save_exec_prefix"
  11879. prefix="$acl_save_prefix"
  11880. if test "X$x" = "X-L$additional_libdir"; then
  11881. haveit=yes
  11882. break
  11883. fi
  11884. done
  11885. if test -z "$haveit"; then
  11886. if test -d "$additional_libdir"; then
  11887. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11888. fi
  11889. fi
  11890. fi
  11891. fi
  11892. ;;
  11893. -R*)
  11894. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11895. if test "$enable_rpath" != no; then
  11896. haveit=
  11897. for x in $rpathdirs; do
  11898. if test "X$x" = "X$dir"; then
  11899. haveit=yes
  11900. break
  11901. fi
  11902. done
  11903. if test -z "$haveit"; then
  11904. rpathdirs="$rpathdirs $dir"
  11905. fi
  11906. haveit=
  11907. for x in $ltrpathdirs; do
  11908. if test "X$x" = "X$dir"; then
  11909. haveit=yes
  11910. break
  11911. fi
  11912. done
  11913. if test -z "$haveit"; then
  11914. ltrpathdirs="$ltrpathdirs $dir"
  11915. fi
  11916. fi
  11917. ;;
  11918. -l*)
  11919. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11920. ;;
  11921. *.la)
  11922. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11923. ;;
  11924. *)
  11925. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11926. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11927. ;;
  11928. esac
  11929. done
  11930. fi
  11931. else
  11932. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11933. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11934. fi
  11935. fi
  11936. fi
  11937. done
  11938. done
  11939. if test "X$rpathdirs" != "X"; then
  11940. if test -n "$acl_hardcode_libdir_separator"; then
  11941. alldirs=
  11942. for found_dir in $rpathdirs; do
  11943. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11944. done
  11945. acl_save_libdir="$libdir"
  11946. libdir="$alldirs"
  11947. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11948. libdir="$acl_save_libdir"
  11949. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11950. else
  11951. for found_dir in $rpathdirs; do
  11952. acl_save_libdir="$libdir"
  11953. libdir="$found_dir"
  11954. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11955. libdir="$acl_save_libdir"
  11956. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11957. done
  11958. fi
  11959. fi
  11960. if test "X$ltrpathdirs" != "X"; then
  11961. for found_dir in $ltrpathdirs; do
  11962. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11963. done
  11964. fi
  11965. ac_cv_libpth_libs="$LIBPTH"
  11966. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11967. ac_cv_libpth_cppflags="$INCPTH"
  11968. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11969. fi
  11970. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11971. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11972. LIBPTH="$ac_cv_libpth_libs"
  11973. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11974. INCPTH="$ac_cv_libpth_cppflags"
  11975. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11976. for element in $INCPTH; do
  11977. haveit=
  11978. for x in $CPPFLAGS; do
  11979. acl_save_prefix="$prefix"
  11980. prefix="$acl_final_prefix"
  11981. acl_save_exec_prefix="$exec_prefix"
  11982. exec_prefix="$acl_final_exec_prefix"
  11983. eval x=\"$x\"
  11984. exec_prefix="$acl_save_exec_prefix"
  11985. prefix="$acl_save_prefix"
  11986. if test "X$x" = "X$element"; then
  11987. haveit=yes
  11988. break
  11989. fi
  11990. done
  11991. if test -z "$haveit"; then
  11992. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11993. fi
  11994. done
  11995. HAVE_LIBPTH=yes
  11996. gl_have_pth=
  11997. gl_save_LIBS="$LIBS"
  11998. LIBS="$LIBS -lpth"
  11999. cat >conftest.$ac_ext <<_ACEOF
  12000. /* confdefs.h. */
  12001. _ACEOF
  12002. cat confdefs.h >>conftest.$ac_ext
  12003. cat >>conftest.$ac_ext <<_ACEOF
  12004. /* end confdefs.h. */
  12005. #include <pth.h>
  12006. int
  12007. main ()
  12008. {
  12009. pth_self();
  12010. ;
  12011. return 0;
  12012. }
  12013. _ACEOF
  12014. rm -f conftest.$ac_objext conftest$ac_exeext
  12015. if { (ac_try="$ac_link"
  12016. case "(($ac_try" in
  12017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12018. *) ac_try_echo=$ac_try;;
  12019. esac
  12020. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12021. (eval "$ac_link") 2>conftest.er1
  12022. ac_status=$?
  12023. grep -v '^ *+' conftest.er1 >conftest.err
  12024. rm -f conftest.er1
  12025. cat conftest.err >&5
  12026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12027. (exit $ac_status); } && {
  12028. test -z "$ac_cxx_werror_flag" ||
  12029. test ! -s conftest.err
  12030. } && test -s conftest$ac_exeext &&
  12031. $as_test_x conftest$ac_exeext; then
  12032. gl_have_pth=yes
  12033. else
  12034. echo "$as_me: failed program was:" >&5
  12035. sed 's/^/| /' conftest.$ac_ext >&5
  12036. fi
  12037. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12038. conftest$ac_exeext conftest.$ac_ext
  12039. LIBS="$gl_save_LIBS"
  12040. if test -n "$gl_have_pth"; then
  12041. gl_threads_api=pth
  12042. LIBTHREAD="$LIBPTH"
  12043. LTLIBTHREAD="$LTLIBPTH"
  12044. LIBMULTITHREAD="$LIBTHREAD"
  12045. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12046. cat >>confdefs.h <<\_ACEOF
  12047. #define USE_PTH_THREADS 1
  12048. _ACEOF
  12049. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12050. if test $gl_have_weak = yes; then
  12051. cat >>confdefs.h <<\_ACEOF
  12052. #define USE_PTH_THREADS_WEAK 1
  12053. _ACEOF
  12054. LIBTHREAD=
  12055. LTLIBTHREAD=
  12056. fi
  12057. fi
  12058. else
  12059. CPPFLAGS="$gl_save_CPPFLAGS"
  12060. fi
  12061. fi
  12062. if test -z "$gl_have_pthread"; then
  12063. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  12064. if { case "$host_os" in
  12065. mingw*) true;;
  12066. *) false;;
  12067. esac
  12068. }; then
  12069. gl_threads_api=win32
  12070. cat >>confdefs.h <<\_ACEOF
  12071. #define USE_WIN32_THREADS 1
  12072. _ACEOF
  12073. fi
  12074. fi
  12075. fi
  12076. fi
  12077. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  12078. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  12079. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  12080. echo "${ECHO_T}$gl_threads_api" >&6; }
  12081. use_additional=yes
  12082. acl_save_prefix="$prefix"
  12083. prefix="$acl_final_prefix"
  12084. acl_save_exec_prefix="$exec_prefix"
  12085. exec_prefix="$acl_final_exec_prefix"
  12086. eval additional_includedir=\"$includedir\"
  12087. eval additional_libdir=\"$libdir\"
  12088. exec_prefix="$acl_save_exec_prefix"
  12089. prefix="$acl_save_prefix"
  12090. # Check whether --with-libiconv-prefix was given.
  12091. if test "${with_libiconv_prefix+set}" = set; then
  12092. withval=$with_libiconv_prefix;
  12093. if test "X$withval" = "Xno"; then
  12094. use_additional=no
  12095. else
  12096. if test "X$withval" = "X"; then
  12097. acl_save_prefix="$prefix"
  12098. prefix="$acl_final_prefix"
  12099. acl_save_exec_prefix="$exec_prefix"
  12100. exec_prefix="$acl_final_exec_prefix"
  12101. eval additional_includedir=\"$includedir\"
  12102. eval additional_libdir=\"$libdir\"
  12103. exec_prefix="$acl_save_exec_prefix"
  12104. prefix="$acl_save_prefix"
  12105. else
  12106. additional_includedir="$withval/include"
  12107. additional_libdir="$withval/$acl_libdirstem"
  12108. fi
  12109. fi
  12110. fi
  12111. LIBICONV=
  12112. LTLIBICONV=
  12113. INCICONV=
  12114. LIBICONV_PREFIX=
  12115. rpathdirs=
  12116. ltrpathdirs=
  12117. names_already_handled=
  12118. names_next_round='iconv '
  12119. while test -n "$names_next_round"; do
  12120. names_this_round="$names_next_round"
  12121. names_next_round=
  12122. for name in $names_this_round; do
  12123. already_handled=
  12124. for n in $names_already_handled; do
  12125. if test "$n" = "$name"; then
  12126. already_handled=yes
  12127. break
  12128. fi
  12129. done
  12130. if test -z "$already_handled"; then
  12131. names_already_handled="$names_already_handled $name"
  12132. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12133. eval value=\"\$HAVE_LIB$uppername\"
  12134. if test -n "$value"; then
  12135. if test "$value" = yes; then
  12136. eval value=\"\$LIB$uppername\"
  12137. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12138. eval value=\"\$LTLIB$uppername\"
  12139. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12140. else
  12141. :
  12142. fi
  12143. else
  12144. found_dir=
  12145. found_la=
  12146. found_so=
  12147. found_a=
  12148. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12149. if test -n "$acl_shlibext"; then
  12150. shrext=".$acl_shlibext" # typically: shrext=.so
  12151. else
  12152. shrext=
  12153. fi
  12154. if test $use_additional = yes; then
  12155. dir="$additional_libdir"
  12156. if test -n "$acl_shlibext"; then
  12157. if test -f "$dir/$libname$shrext"; then
  12158. found_dir="$dir"
  12159. found_so="$dir/$libname$shrext"
  12160. else
  12161. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12162. ver=`(cd "$dir" && \
  12163. for f in "$libname$shrext".*; do echo "$f"; done \
  12164. | sed -e "s,^$libname$shrext\\\\.,," \
  12165. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12166. | sed 1q ) 2>/dev/null`
  12167. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12168. found_dir="$dir"
  12169. found_so="$dir/$libname$shrext.$ver"
  12170. fi
  12171. else
  12172. eval library_names=\"$acl_library_names_spec\"
  12173. for f in $library_names; do
  12174. if test -f "$dir/$f"; then
  12175. found_dir="$dir"
  12176. found_so="$dir/$f"
  12177. break
  12178. fi
  12179. done
  12180. fi
  12181. fi
  12182. fi
  12183. if test "X$found_dir" = "X"; then
  12184. if test -f "$dir/$libname.$acl_libext"; then
  12185. found_dir="$dir"
  12186. found_a="$dir/$libname.$acl_libext"
  12187. fi
  12188. fi
  12189. if test "X$found_dir" != "X"; then
  12190. if test -f "$dir/$libname.la"; then
  12191. found_la="$dir/$libname.la"
  12192. fi
  12193. fi
  12194. fi
  12195. if test "X$found_dir" = "X"; then
  12196. for x in $LDFLAGS $LTLIBICONV; do
  12197. acl_save_prefix="$prefix"
  12198. prefix="$acl_final_prefix"
  12199. acl_save_exec_prefix="$exec_prefix"
  12200. exec_prefix="$acl_final_exec_prefix"
  12201. eval x=\"$x\"
  12202. exec_prefix="$acl_save_exec_prefix"
  12203. prefix="$acl_save_prefix"
  12204. case "$x" in
  12205. -L*)
  12206. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12207. if test -n "$acl_shlibext"; then
  12208. if test -f "$dir/$libname$shrext"; then
  12209. found_dir="$dir"
  12210. found_so="$dir/$libname$shrext"
  12211. else
  12212. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12213. ver=`(cd "$dir" && \
  12214. for f in "$libname$shrext".*; do echo "$f"; done \
  12215. | sed -e "s,^$libname$shrext\\\\.,," \
  12216. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12217. | sed 1q ) 2>/dev/null`
  12218. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12219. found_dir="$dir"
  12220. found_so="$dir/$libname$shrext.$ver"
  12221. fi
  12222. else
  12223. eval library_names=\"$acl_library_names_spec\"
  12224. for f in $library_names; do
  12225. if test -f "$dir/$f"; then
  12226. found_dir="$dir"
  12227. found_so="$dir/$f"
  12228. break
  12229. fi
  12230. done
  12231. fi
  12232. fi
  12233. fi
  12234. if test "X$found_dir" = "X"; then
  12235. if test -f "$dir/$libname.$acl_libext"; then
  12236. found_dir="$dir"
  12237. found_a="$dir/$libname.$acl_libext"
  12238. fi
  12239. fi
  12240. if test "X$found_dir" != "X"; then
  12241. if test -f "$dir/$libname.la"; then
  12242. found_la="$dir/$libname.la"
  12243. fi
  12244. fi
  12245. ;;
  12246. esac
  12247. if test "X$found_dir" != "X"; then
  12248. break
  12249. fi
  12250. done
  12251. fi
  12252. if test "X$found_dir" != "X"; then
  12253. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12254. if test "X$found_so" != "X"; then
  12255. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12256. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12257. else
  12258. haveit=
  12259. for x in $ltrpathdirs; do
  12260. if test "X$x" = "X$found_dir"; then
  12261. haveit=yes
  12262. break
  12263. fi
  12264. done
  12265. if test -z "$haveit"; then
  12266. ltrpathdirs="$ltrpathdirs $found_dir"
  12267. fi
  12268. if test "$acl_hardcode_direct" = yes; then
  12269. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12270. else
  12271. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12272. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12273. haveit=
  12274. for x in $rpathdirs; do
  12275. if test "X$x" = "X$found_dir"; then
  12276. haveit=yes
  12277. break
  12278. fi
  12279. done
  12280. if test -z "$haveit"; then
  12281. rpathdirs="$rpathdirs $found_dir"
  12282. fi
  12283. else
  12284. haveit=
  12285. for x in $LDFLAGS $LIBICONV; do
  12286. acl_save_prefix="$prefix"
  12287. prefix="$acl_final_prefix"
  12288. acl_save_exec_prefix="$exec_prefix"
  12289. exec_prefix="$acl_final_exec_prefix"
  12290. eval x=\"$x\"
  12291. exec_prefix="$acl_save_exec_prefix"
  12292. prefix="$acl_save_prefix"
  12293. if test "X$x" = "X-L$found_dir"; then
  12294. haveit=yes
  12295. break
  12296. fi
  12297. done
  12298. if test -z "$haveit"; then
  12299. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12300. fi
  12301. if test "$acl_hardcode_minus_L" != no; then
  12302. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12303. else
  12304. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12305. fi
  12306. fi
  12307. fi
  12308. fi
  12309. else
  12310. if test "X$found_a" != "X"; then
  12311. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12312. else
  12313. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12314. fi
  12315. fi
  12316. additional_includedir=
  12317. case "$found_dir" in
  12318. */$acl_libdirstem | */$acl_libdirstem/)
  12319. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12320. LIBICONV_PREFIX="$basedir"
  12321. additional_includedir="$basedir/include"
  12322. ;;
  12323. esac
  12324. if test "X$additional_includedir" != "X"; then
  12325. if test "X$additional_includedir" != "X/usr/include"; then
  12326. haveit=
  12327. if test "X$additional_includedir" = "X/usr/local/include"; then
  12328. if test -n "$GCC"; then
  12329. case $host_os in
  12330. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12331. esac
  12332. fi
  12333. fi
  12334. if test -z "$haveit"; then
  12335. for x in $CPPFLAGS $INCICONV; do
  12336. acl_save_prefix="$prefix"
  12337. prefix="$acl_final_prefix"
  12338. acl_save_exec_prefix="$exec_prefix"
  12339. exec_prefix="$acl_final_exec_prefix"
  12340. eval x=\"$x\"
  12341. exec_prefix="$acl_save_exec_prefix"
  12342. prefix="$acl_save_prefix"
  12343. if test "X$x" = "X-I$additional_includedir"; then
  12344. haveit=yes
  12345. break
  12346. fi
  12347. done
  12348. if test -z "$haveit"; then
  12349. if test -d "$additional_includedir"; then
  12350. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12351. fi
  12352. fi
  12353. fi
  12354. fi
  12355. fi
  12356. if test -n "$found_la"; then
  12357. save_libdir="$libdir"
  12358. case "$found_la" in
  12359. */* | *\\*) . "$found_la" ;;
  12360. *) . "./$found_la" ;;
  12361. esac
  12362. libdir="$save_libdir"
  12363. for dep in $dependency_libs; do
  12364. case "$dep" in
  12365. -L*)
  12366. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12367. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12368. haveit=
  12369. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12370. if test -n "$GCC"; then
  12371. case $host_os in
  12372. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12373. esac
  12374. fi
  12375. fi
  12376. if test -z "$haveit"; then
  12377. haveit=
  12378. for x in $LDFLAGS $LIBICONV; do
  12379. acl_save_prefix="$prefix"
  12380. prefix="$acl_final_prefix"
  12381. acl_save_exec_prefix="$exec_prefix"
  12382. exec_prefix="$acl_final_exec_prefix"
  12383. eval x=\"$x\"
  12384. exec_prefix="$acl_save_exec_prefix"
  12385. prefix="$acl_save_prefix"
  12386. if test "X$x" = "X-L$additional_libdir"; then
  12387. haveit=yes
  12388. break
  12389. fi
  12390. done
  12391. if test -z "$haveit"; then
  12392. if test -d "$additional_libdir"; then
  12393. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12394. fi
  12395. fi
  12396. haveit=
  12397. for x in $LDFLAGS $LTLIBICONV; do
  12398. acl_save_prefix="$prefix"
  12399. prefix="$acl_final_prefix"
  12400. acl_save_exec_prefix="$exec_prefix"
  12401. exec_prefix="$acl_final_exec_prefix"
  12402. eval x=\"$x\"
  12403. exec_prefix="$acl_save_exec_prefix"
  12404. prefix="$acl_save_prefix"
  12405. if test "X$x" = "X-L$additional_libdir"; then
  12406. haveit=yes
  12407. break
  12408. fi
  12409. done
  12410. if test -z "$haveit"; then
  12411. if test -d "$additional_libdir"; then
  12412. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12413. fi
  12414. fi
  12415. fi
  12416. fi
  12417. ;;
  12418. -R*)
  12419. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12420. if test "$enable_rpath" != no; then
  12421. haveit=
  12422. for x in $rpathdirs; do
  12423. if test "X$x" = "X$dir"; then
  12424. haveit=yes
  12425. break
  12426. fi
  12427. done
  12428. if test -z "$haveit"; then
  12429. rpathdirs="$rpathdirs $dir"
  12430. fi
  12431. haveit=
  12432. for x in $ltrpathdirs; do
  12433. if test "X$x" = "X$dir"; then
  12434. haveit=yes
  12435. break
  12436. fi
  12437. done
  12438. if test -z "$haveit"; then
  12439. ltrpathdirs="$ltrpathdirs $dir"
  12440. fi
  12441. fi
  12442. ;;
  12443. -l*)
  12444. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12445. ;;
  12446. *.la)
  12447. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12448. ;;
  12449. *)
  12450. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12451. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12452. ;;
  12453. esac
  12454. done
  12455. fi
  12456. else
  12457. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12458. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12459. fi
  12460. fi
  12461. fi
  12462. done
  12463. done
  12464. if test "X$rpathdirs" != "X"; then
  12465. if test -n "$acl_hardcode_libdir_separator"; then
  12466. alldirs=
  12467. for found_dir in $rpathdirs; do
  12468. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12469. done
  12470. acl_save_libdir="$libdir"
  12471. libdir="$alldirs"
  12472. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12473. libdir="$acl_save_libdir"
  12474. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12475. else
  12476. for found_dir in $rpathdirs; do
  12477. acl_save_libdir="$libdir"
  12478. libdir="$found_dir"
  12479. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12480. libdir="$acl_save_libdir"
  12481. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12482. done
  12483. fi
  12484. fi
  12485. if test "X$ltrpathdirs" != "X"; then
  12486. for found_dir in $ltrpathdirs; do
  12487. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12488. done
  12489. fi
  12490. cat >conftest.$ac_ext <<_ACEOF
  12491. /* confdefs.h. */
  12492. _ACEOF
  12493. cat confdefs.h >>conftest.$ac_ext
  12494. cat >>conftest.$ac_ext <<_ACEOF
  12495. /* end confdefs.h. */
  12496. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12497. int
  12498. main ()
  12499. {
  12500. ;
  12501. return 0;
  12502. }
  12503. _ACEOF
  12504. rm -f conftest.$ac_objext conftest$ac_exeext
  12505. if { (ac_try="$ac_link"
  12506. case "(($ac_try" in
  12507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12508. *) ac_try_echo=$ac_try;;
  12509. esac
  12510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12511. (eval "$ac_link") 2>conftest.er1
  12512. ac_status=$?
  12513. grep -v '^ *+' conftest.er1 >conftest.err
  12514. rm -f conftest.er1
  12515. cat conftest.err >&5
  12516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12517. (exit $ac_status); } && {
  12518. test -z "$ac_cxx_werror_flag" ||
  12519. test ! -s conftest.err
  12520. } && test -s conftest$ac_exeext &&
  12521. $as_test_x conftest$ac_exeext; then
  12522. cat >>confdefs.h <<\_ACEOF
  12523. #define HAVE_BUILTIN_EXPECT 1
  12524. _ACEOF
  12525. else
  12526. echo "$as_me: failed program was:" >&5
  12527. sed 's/^/| /' conftest.$ac_ext >&5
  12528. fi
  12529. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12530. conftest$ac_exeext conftest.$ac_ext
  12531. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12532. do
  12533. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12534. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12535. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12536. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12537. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12538. echo $ECHO_N "(cached) $ECHO_C" >&6
  12539. fi
  12540. ac_res=`eval echo '${'$as_ac_Header'}'`
  12541. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12542. echo "${ECHO_T}$ac_res" >&6; }
  12543. else
  12544. # Is the header compilable?
  12545. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12546. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12547. cat >conftest.$ac_ext <<_ACEOF
  12548. /* confdefs.h. */
  12549. _ACEOF
  12550. cat confdefs.h >>conftest.$ac_ext
  12551. cat >>conftest.$ac_ext <<_ACEOF
  12552. /* end confdefs.h. */
  12553. $ac_includes_default
  12554. #include <$ac_header>
  12555. _ACEOF
  12556. rm -f conftest.$ac_objext
  12557. if { (ac_try="$ac_compile"
  12558. case "(($ac_try" in
  12559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12560. *) ac_try_echo=$ac_try;;
  12561. esac
  12562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12563. (eval "$ac_compile") 2>conftest.er1
  12564. ac_status=$?
  12565. grep -v '^ *+' conftest.er1 >conftest.err
  12566. rm -f conftest.er1
  12567. cat conftest.err >&5
  12568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12569. (exit $ac_status); } && {
  12570. test -z "$ac_cxx_werror_flag" ||
  12571. test ! -s conftest.err
  12572. } && test -s conftest.$ac_objext; then
  12573. ac_header_compiler=yes
  12574. else
  12575. echo "$as_me: failed program was:" >&5
  12576. sed 's/^/| /' conftest.$ac_ext >&5
  12577. ac_header_compiler=no
  12578. fi
  12579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12580. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12581. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12582. # Is the header present?
  12583. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12584. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12585. cat >conftest.$ac_ext <<_ACEOF
  12586. /* confdefs.h. */
  12587. _ACEOF
  12588. cat confdefs.h >>conftest.$ac_ext
  12589. cat >>conftest.$ac_ext <<_ACEOF
  12590. /* end confdefs.h. */
  12591. #include <$ac_header>
  12592. _ACEOF
  12593. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12594. case "(($ac_try" in
  12595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12596. *) ac_try_echo=$ac_try;;
  12597. esac
  12598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12599. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12600. ac_status=$?
  12601. grep -v '^ *+' conftest.er1 >conftest.err
  12602. rm -f conftest.er1
  12603. cat conftest.err >&5
  12604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12605. (exit $ac_status); } >/dev/null && {
  12606. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12607. test ! -s conftest.err
  12608. }; then
  12609. ac_header_preproc=yes
  12610. else
  12611. echo "$as_me: failed program was:" >&5
  12612. sed 's/^/| /' conftest.$ac_ext >&5
  12613. ac_header_preproc=no
  12614. fi
  12615. rm -f conftest.err conftest.$ac_ext
  12616. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12617. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12618. # So? What about this header?
  12619. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12620. yes:no: )
  12621. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12622. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12623. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12624. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12625. ac_header_preproc=yes
  12626. ;;
  12627. no:yes:* )
  12628. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12629. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12630. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12631. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12632. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12633. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12634. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12635. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12636. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12637. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12638. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12639. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12640. ( cat <<\_ASBOX
  12641. ## ----------------------------------------------- ##
  12642. ## Report this to t-tujikawa@users.sourceforge.net ##
  12643. ## ----------------------------------------------- ##
  12644. _ASBOX
  12645. ) | sed "s/^/$as_me: WARNING: /" >&2
  12646. ;;
  12647. esac
  12648. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12649. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12650. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12651. echo $ECHO_N "(cached) $ECHO_C" >&6
  12652. else
  12653. eval "$as_ac_Header=\$ac_header_preproc"
  12654. fi
  12655. ac_res=`eval echo '${'$as_ac_Header'}'`
  12656. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12657. echo "${ECHO_T}$ac_res" >&6; }
  12658. fi
  12659. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12660. cat >>confdefs.h <<_ACEOF
  12661. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12662. _ACEOF
  12663. fi
  12664. done
  12665. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12666. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12667. argz_next __fsetlocking
  12668. do
  12669. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12670. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12671. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12672. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12673. echo $ECHO_N "(cached) $ECHO_C" >&6
  12674. else
  12675. cat >conftest.$ac_ext <<_ACEOF
  12676. /* confdefs.h. */
  12677. _ACEOF
  12678. cat confdefs.h >>conftest.$ac_ext
  12679. cat >>conftest.$ac_ext <<_ACEOF
  12680. /* end confdefs.h. */
  12681. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12682. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12683. #define $ac_func innocuous_$ac_func
  12684. /* System header to define __stub macros and hopefully few prototypes,
  12685. which can conflict with char $ac_func (); below.
  12686. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12687. <limits.h> exists even on freestanding compilers. */
  12688. #ifdef __STDC__
  12689. # include <limits.h>
  12690. #else
  12691. # include <assert.h>
  12692. #endif
  12693. #undef $ac_func
  12694. /* Override any GCC internal prototype to avoid an error.
  12695. Use char because int might match the return type of a GCC
  12696. builtin and then its argument prototype would still apply. */
  12697. #ifdef __cplusplus
  12698. extern "C"
  12699. #endif
  12700. char $ac_func ();
  12701. /* The GNU C library defines this for functions which it implements
  12702. to always fail with ENOSYS. Some functions are actually named
  12703. something starting with __ and the normal name is an alias. */
  12704. #if defined __stub_$ac_func || defined __stub___$ac_func
  12705. choke me
  12706. #endif
  12707. int
  12708. main ()
  12709. {
  12710. return $ac_func ();
  12711. ;
  12712. return 0;
  12713. }
  12714. _ACEOF
  12715. rm -f conftest.$ac_objext conftest$ac_exeext
  12716. if { (ac_try="$ac_link"
  12717. case "(($ac_try" in
  12718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12719. *) ac_try_echo=$ac_try;;
  12720. esac
  12721. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12722. (eval "$ac_link") 2>conftest.er1
  12723. ac_status=$?
  12724. grep -v '^ *+' conftest.er1 >conftest.err
  12725. rm -f conftest.er1
  12726. cat conftest.err >&5
  12727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12728. (exit $ac_status); } && {
  12729. test -z "$ac_cxx_werror_flag" ||
  12730. test ! -s conftest.err
  12731. } && test -s conftest$ac_exeext &&
  12732. $as_test_x conftest$ac_exeext; then
  12733. eval "$as_ac_var=yes"
  12734. else
  12735. echo "$as_me: failed program was:" >&5
  12736. sed 's/^/| /' conftest.$ac_ext >&5
  12737. eval "$as_ac_var=no"
  12738. fi
  12739. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12740. conftest$ac_exeext conftest.$ac_ext
  12741. fi
  12742. ac_res=`eval echo '${'$as_ac_var'}'`
  12743. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12744. echo "${ECHO_T}$ac_res" >&6; }
  12745. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12746. cat >>confdefs.h <<_ACEOF
  12747. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12748. _ACEOF
  12749. fi
  12750. done
  12751. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12752. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12753. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12754. echo $ECHO_N "(cached) $ECHO_C" >&6
  12755. else
  12756. cat >conftest.$ac_ext <<_ACEOF
  12757. /* confdefs.h. */
  12758. _ACEOF
  12759. cat confdefs.h >>conftest.$ac_ext
  12760. cat >>conftest.$ac_ext <<_ACEOF
  12761. /* end confdefs.h. */
  12762. #include <stdio.h>
  12763. int
  12764. main ()
  12765. {
  12766. #ifndef feof_unlocked
  12767. char *p = (char *) feof_unlocked;
  12768. #endif
  12769. ;
  12770. return 0;
  12771. }
  12772. _ACEOF
  12773. rm -f conftest.$ac_objext
  12774. if { (ac_try="$ac_compile"
  12775. case "(($ac_try" in
  12776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12777. *) ac_try_echo=$ac_try;;
  12778. esac
  12779. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12780. (eval "$ac_compile") 2>conftest.er1
  12781. ac_status=$?
  12782. grep -v '^ *+' conftest.er1 >conftest.err
  12783. rm -f conftest.er1
  12784. cat conftest.err >&5
  12785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12786. (exit $ac_status); } && {
  12787. test -z "$ac_cxx_werror_flag" ||
  12788. test ! -s conftest.err
  12789. } && test -s conftest.$ac_objext; then
  12790. ac_cv_have_decl_feof_unlocked=yes
  12791. else
  12792. echo "$as_me: failed program was:" >&5
  12793. sed 's/^/| /' conftest.$ac_ext >&5
  12794. ac_cv_have_decl_feof_unlocked=no
  12795. fi
  12796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12797. fi
  12798. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12799. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12800. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12801. gt_value=1
  12802. else
  12803. gt_value=0
  12804. fi
  12805. cat >>confdefs.h <<_ACEOF
  12806. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12807. _ACEOF
  12808. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12809. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12810. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12811. echo $ECHO_N "(cached) $ECHO_C" >&6
  12812. else
  12813. cat >conftest.$ac_ext <<_ACEOF
  12814. /* confdefs.h. */
  12815. _ACEOF
  12816. cat confdefs.h >>conftest.$ac_ext
  12817. cat >>conftest.$ac_ext <<_ACEOF
  12818. /* end confdefs.h. */
  12819. #include <stdio.h>
  12820. int
  12821. main ()
  12822. {
  12823. #ifndef fgets_unlocked
  12824. char *p = (char *) fgets_unlocked;
  12825. #endif
  12826. ;
  12827. return 0;
  12828. }
  12829. _ACEOF
  12830. rm -f conftest.$ac_objext
  12831. if { (ac_try="$ac_compile"
  12832. case "(($ac_try" in
  12833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12834. *) ac_try_echo=$ac_try;;
  12835. esac
  12836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12837. (eval "$ac_compile") 2>conftest.er1
  12838. ac_status=$?
  12839. grep -v '^ *+' conftest.er1 >conftest.err
  12840. rm -f conftest.er1
  12841. cat conftest.err >&5
  12842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12843. (exit $ac_status); } && {
  12844. test -z "$ac_cxx_werror_flag" ||
  12845. test ! -s conftest.err
  12846. } && test -s conftest.$ac_objext; then
  12847. ac_cv_have_decl_fgets_unlocked=yes
  12848. else
  12849. echo "$as_me: failed program was:" >&5
  12850. sed 's/^/| /' conftest.$ac_ext >&5
  12851. ac_cv_have_decl_fgets_unlocked=no
  12852. fi
  12853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12854. fi
  12855. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12856. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12857. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12858. gt_value=1
  12859. else
  12860. gt_value=0
  12861. fi
  12862. cat >>confdefs.h <<_ACEOF
  12863. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12864. _ACEOF
  12865. am_save_CPPFLAGS="$CPPFLAGS"
  12866. for element in $INCICONV; do
  12867. haveit=
  12868. for x in $CPPFLAGS; do
  12869. acl_save_prefix="$prefix"
  12870. prefix="$acl_final_prefix"
  12871. acl_save_exec_prefix="$exec_prefix"
  12872. exec_prefix="$acl_final_exec_prefix"
  12873. eval x=\"$x\"
  12874. exec_prefix="$acl_save_exec_prefix"
  12875. prefix="$acl_save_prefix"
  12876. if test "X$x" = "X$element"; then
  12877. haveit=yes
  12878. break
  12879. fi
  12880. done
  12881. if test -z "$haveit"; then
  12882. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12883. fi
  12884. done
  12885. { echo "$as_me:$LINENO: checking for iconv" >&5
  12886. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12887. if test "${am_cv_func_iconv+set}" = set; then
  12888. echo $ECHO_N "(cached) $ECHO_C" >&6
  12889. else
  12890. am_cv_func_iconv="no, consider installing GNU libiconv"
  12891. am_cv_lib_iconv=no
  12892. cat >conftest.$ac_ext <<_ACEOF
  12893. /* confdefs.h. */
  12894. _ACEOF
  12895. cat confdefs.h >>conftest.$ac_ext
  12896. cat >>conftest.$ac_ext <<_ACEOF
  12897. /* end confdefs.h. */
  12898. #include <stdlib.h>
  12899. #include <iconv.h>
  12900. int
  12901. main ()
  12902. {
  12903. iconv_t cd = iconv_open("","");
  12904. iconv(cd,NULL,NULL,NULL,NULL);
  12905. iconv_close(cd);
  12906. ;
  12907. return 0;
  12908. }
  12909. _ACEOF
  12910. rm -f conftest.$ac_objext conftest$ac_exeext
  12911. if { (ac_try="$ac_link"
  12912. case "(($ac_try" in
  12913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12914. *) ac_try_echo=$ac_try;;
  12915. esac
  12916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12917. (eval "$ac_link") 2>conftest.er1
  12918. ac_status=$?
  12919. grep -v '^ *+' conftest.er1 >conftest.err
  12920. rm -f conftest.er1
  12921. cat conftest.err >&5
  12922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12923. (exit $ac_status); } && {
  12924. test -z "$ac_cxx_werror_flag" ||
  12925. test ! -s conftest.err
  12926. } && test -s conftest$ac_exeext &&
  12927. $as_test_x conftest$ac_exeext; then
  12928. am_cv_func_iconv=yes
  12929. else
  12930. echo "$as_me: failed program was:" >&5
  12931. sed 's/^/| /' conftest.$ac_ext >&5
  12932. fi
  12933. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12934. conftest$ac_exeext conftest.$ac_ext
  12935. if test "$am_cv_func_iconv" != yes; then
  12936. am_save_LIBS="$LIBS"
  12937. LIBS="$LIBS $LIBICONV"
  12938. cat >conftest.$ac_ext <<_ACEOF
  12939. /* confdefs.h. */
  12940. _ACEOF
  12941. cat confdefs.h >>conftest.$ac_ext
  12942. cat >>conftest.$ac_ext <<_ACEOF
  12943. /* end confdefs.h. */
  12944. #include <stdlib.h>
  12945. #include <iconv.h>
  12946. int
  12947. main ()
  12948. {
  12949. iconv_t cd = iconv_open("","");
  12950. iconv(cd,NULL,NULL,NULL,NULL);
  12951. iconv_close(cd);
  12952. ;
  12953. return 0;
  12954. }
  12955. _ACEOF
  12956. rm -f conftest.$ac_objext conftest$ac_exeext
  12957. if { (ac_try="$ac_link"
  12958. case "(($ac_try" in
  12959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12960. *) ac_try_echo=$ac_try;;
  12961. esac
  12962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12963. (eval "$ac_link") 2>conftest.er1
  12964. ac_status=$?
  12965. grep -v '^ *+' conftest.er1 >conftest.err
  12966. rm -f conftest.er1
  12967. cat conftest.err >&5
  12968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12969. (exit $ac_status); } && {
  12970. test -z "$ac_cxx_werror_flag" ||
  12971. test ! -s conftest.err
  12972. } && test -s conftest$ac_exeext &&
  12973. $as_test_x conftest$ac_exeext; then
  12974. am_cv_lib_iconv=yes
  12975. am_cv_func_iconv=yes
  12976. else
  12977. echo "$as_me: failed program was:" >&5
  12978. sed 's/^/| /' conftest.$ac_ext >&5
  12979. fi
  12980. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12981. conftest$ac_exeext conftest.$ac_ext
  12982. LIBS="$am_save_LIBS"
  12983. fi
  12984. fi
  12985. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12986. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12987. if test "$am_cv_func_iconv" = yes; then
  12988. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12989. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12990. if test "${am_cv_func_iconv_works+set}" = set; then
  12991. echo $ECHO_N "(cached) $ECHO_C" >&6
  12992. else
  12993. am_save_LIBS="$LIBS"
  12994. if test $am_cv_lib_iconv = yes; then
  12995. LIBS="$LIBS $LIBICONV"
  12996. fi
  12997. if test "$cross_compiling" = yes; then
  12998. case "$host_os" in
  12999. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13000. *) am_cv_func_iconv_works="guessing yes" ;;
  13001. esac
  13002. else
  13003. cat >conftest.$ac_ext <<_ACEOF
  13004. /* confdefs.h. */
  13005. _ACEOF
  13006. cat confdefs.h >>conftest.$ac_ext
  13007. cat >>conftest.$ac_ext <<_ACEOF
  13008. /* end confdefs.h. */
  13009. #include <iconv.h>
  13010. #include <string.h>
  13011. int main ()
  13012. {
  13013. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13014. returns. */
  13015. {
  13016. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13017. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13018. {
  13019. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13020. char buf[10];
  13021. const char *inptr = input;
  13022. size_t inbytesleft = strlen (input);
  13023. char *outptr = buf;
  13024. size_t outbytesleft = sizeof (buf);
  13025. size_t res = iconv (cd_utf8_to_88591,
  13026. (char **) &inptr, &inbytesleft,
  13027. &outptr, &outbytesleft);
  13028. if (res == 0)
  13029. return 1;
  13030. }
  13031. }
  13032. #if 0 /* This bug could be worked around by the caller. */
  13033. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13034. {
  13035. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13036. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13037. {
  13038. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13039. char buf[50];
  13040. const char *inptr = input;
  13041. size_t inbytesleft = strlen (input);
  13042. char *outptr = buf;
  13043. size_t outbytesleft = sizeof (buf);
  13044. size_t res = iconv (cd_88591_to_utf8,
  13045. (char **) &inptr, &inbytesleft,
  13046. &outptr, &outbytesleft);
  13047. if ((int)res > 0)
  13048. return 1;
  13049. }
  13050. }
  13051. #endif
  13052. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13053. provided. */
  13054. if (/* Try standardized names. */
  13055. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13056. /* Try IRIX, OSF/1 names. */
  13057. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13058. /* Try AIX names. */
  13059. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13060. /* Try HP-UX names. */
  13061. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13062. return 1;
  13063. return 0;
  13064. }
  13065. _ACEOF
  13066. rm -f conftest$ac_exeext
  13067. if { (ac_try="$ac_link"
  13068. case "(($ac_try" in
  13069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13070. *) ac_try_echo=$ac_try;;
  13071. esac
  13072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13073. (eval "$ac_link") 2>&5
  13074. ac_status=$?
  13075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13076. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13077. { (case "(($ac_try" in
  13078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13079. *) ac_try_echo=$ac_try;;
  13080. esac
  13081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13082. (eval "$ac_try") 2>&5
  13083. ac_status=$?
  13084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13085. (exit $ac_status); }; }; then
  13086. am_cv_func_iconv_works=yes
  13087. else
  13088. echo "$as_me: program exited with status $ac_status" >&5
  13089. echo "$as_me: failed program was:" >&5
  13090. sed 's/^/| /' conftest.$ac_ext >&5
  13091. ( exit $ac_status )
  13092. am_cv_func_iconv_works=no
  13093. fi
  13094. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13095. fi
  13096. LIBS="$am_save_LIBS"
  13097. fi
  13098. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13099. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  13100. case "$am_cv_func_iconv_works" in
  13101. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13102. *) am_func_iconv=yes ;;
  13103. esac
  13104. else
  13105. am_func_iconv=no am_cv_lib_iconv=no
  13106. fi
  13107. if test "$am_func_iconv" = yes; then
  13108. cat >>confdefs.h <<\_ACEOF
  13109. #define HAVE_ICONV 1
  13110. _ACEOF
  13111. fi
  13112. if test "$am_cv_lib_iconv" = yes; then
  13113. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13114. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  13115. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13116. echo "${ECHO_T}$LIBICONV" >&6; }
  13117. else
  13118. CPPFLAGS="$am_save_CPPFLAGS"
  13119. LIBICONV=
  13120. LTLIBICONV=
  13121. fi
  13122. if test "$am_cv_func_iconv" = yes; then
  13123. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13124. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  13125. if test "${am_cv_proto_iconv+set}" = set; then
  13126. echo $ECHO_N "(cached) $ECHO_C" >&6
  13127. else
  13128. cat >conftest.$ac_ext <<_ACEOF
  13129. /* confdefs.h. */
  13130. _ACEOF
  13131. cat confdefs.h >>conftest.$ac_ext
  13132. cat >>conftest.$ac_ext <<_ACEOF
  13133. /* end confdefs.h. */
  13134. #include <stdlib.h>
  13135. #include <iconv.h>
  13136. extern
  13137. #ifdef __cplusplus
  13138. "C"
  13139. #endif
  13140. #if defined(__STDC__) || defined(__cplusplus)
  13141. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13142. #else
  13143. size_t iconv();
  13144. #endif
  13145. int
  13146. main ()
  13147. {
  13148. ;
  13149. return 0;
  13150. }
  13151. _ACEOF
  13152. rm -f conftest.$ac_objext
  13153. if { (ac_try="$ac_compile"
  13154. case "(($ac_try" in
  13155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13156. *) ac_try_echo=$ac_try;;
  13157. esac
  13158. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13159. (eval "$ac_compile") 2>conftest.er1
  13160. ac_status=$?
  13161. grep -v '^ *+' conftest.er1 >conftest.err
  13162. rm -f conftest.er1
  13163. cat conftest.err >&5
  13164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13165. (exit $ac_status); } && {
  13166. test -z "$ac_cxx_werror_flag" ||
  13167. test ! -s conftest.err
  13168. } && test -s conftest.$ac_objext; then
  13169. am_cv_proto_iconv_arg1=""
  13170. else
  13171. echo "$as_me: failed program was:" >&5
  13172. sed 's/^/| /' conftest.$ac_ext >&5
  13173. am_cv_proto_iconv_arg1="const"
  13174. fi
  13175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13176. 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);"
  13177. fi
  13178. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13179. { echo "$as_me:$LINENO: result: ${ac_t:-
  13180. }$am_cv_proto_iconv" >&5
  13181. echo "${ECHO_T}${ac_t:-
  13182. }$am_cv_proto_iconv" >&6; }
  13183. cat >>confdefs.h <<_ACEOF
  13184. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13185. _ACEOF
  13186. fi
  13187. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13188. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  13189. if test "${gt_cv_nl_locale_name+set}" = set; then
  13190. echo $ECHO_N "(cached) $ECHO_C" >&6
  13191. else
  13192. cat >conftest.$ac_ext <<_ACEOF
  13193. /* confdefs.h. */
  13194. _ACEOF
  13195. cat confdefs.h >>conftest.$ac_ext
  13196. cat >>conftest.$ac_ext <<_ACEOF
  13197. /* end confdefs.h. */
  13198. #include <langinfo.h>
  13199. #include <locale.h>
  13200. int
  13201. main ()
  13202. {
  13203. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13204. return !cs;
  13205. ;
  13206. return 0;
  13207. }
  13208. _ACEOF
  13209. rm -f conftest.$ac_objext conftest$ac_exeext
  13210. if { (ac_try="$ac_link"
  13211. case "(($ac_try" in
  13212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13213. *) ac_try_echo=$ac_try;;
  13214. esac
  13215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13216. (eval "$ac_link") 2>conftest.er1
  13217. ac_status=$?
  13218. grep -v '^ *+' conftest.er1 >conftest.err
  13219. rm -f conftest.er1
  13220. cat conftest.err >&5
  13221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13222. (exit $ac_status); } && {
  13223. test -z "$ac_cxx_werror_flag" ||
  13224. test ! -s conftest.err
  13225. } && test -s conftest$ac_exeext &&
  13226. $as_test_x conftest$ac_exeext; then
  13227. gt_cv_nl_locale_name=yes
  13228. else
  13229. echo "$as_me: failed program was:" >&5
  13230. sed 's/^/| /' conftest.$ac_ext >&5
  13231. gt_cv_nl_locale_name=no
  13232. fi
  13233. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13234. conftest$ac_exeext conftest.$ac_ext
  13235. fi
  13236. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13237. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  13238. if test $gt_cv_nl_locale_name = yes; then
  13239. cat >>confdefs.h <<\_ACEOF
  13240. #define HAVE_NL_LOCALE_NAME 1
  13241. _ACEOF
  13242. fi
  13243. for ac_prog in bison
  13244. do
  13245. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13246. set dummy $ac_prog; ac_word=$2
  13247. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13248. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13249. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13250. echo $ECHO_N "(cached) $ECHO_C" >&6
  13251. else
  13252. if test -n "$INTLBISON"; then
  13253. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13254. else
  13255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13256. for as_dir in $PATH
  13257. do
  13258. IFS=$as_save_IFS
  13259. test -z "$as_dir" && as_dir=.
  13260. for ac_exec_ext in '' $ac_executable_extensions; do
  13261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13262. ac_cv_prog_INTLBISON="$ac_prog"
  13263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13264. break 2
  13265. fi
  13266. done
  13267. done
  13268. IFS=$as_save_IFS
  13269. fi
  13270. fi
  13271. INTLBISON=$ac_cv_prog_INTLBISON
  13272. if test -n "$INTLBISON"; then
  13273. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13274. echo "${ECHO_T}$INTLBISON" >&6; }
  13275. else
  13276. { echo "$as_me:$LINENO: result: no" >&5
  13277. echo "${ECHO_T}no" >&6; }
  13278. fi
  13279. test -n "$INTLBISON" && break
  13280. done
  13281. if test -z "$INTLBISON"; then
  13282. ac_verc_fail=yes
  13283. else
  13284. { echo "$as_me:$LINENO: checking version of bison" >&5
  13285. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  13286. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13287. case $ac_prog_version in
  13288. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13289. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13290. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13291. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13292. esac
  13293. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13294. echo "${ECHO_T}$ac_prog_version" >&6; }
  13295. fi
  13296. if test $ac_verc_fail = yes; then
  13297. INTLBISON=:
  13298. fi
  13299. { echo "$as_me:$LINENO: checking for long long int" >&5
  13300. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  13301. if test "${ac_cv_type_long_long_int+set}" = set; then
  13302. echo $ECHO_N "(cached) $ECHO_C" >&6
  13303. else
  13304. cat >conftest.$ac_ext <<_ACEOF
  13305. /* confdefs.h. */
  13306. _ACEOF
  13307. cat confdefs.h >>conftest.$ac_ext
  13308. cat >>conftest.$ac_ext <<_ACEOF
  13309. /* end confdefs.h. */
  13310. /* Test preprocessor. */
  13311. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13312. error in preprocessor;
  13313. #endif
  13314. #if ! (18446744073709551615ULL <= -1ull)
  13315. error in preprocessor;
  13316. #endif
  13317. /* Test literals. */
  13318. long long int ll = 9223372036854775807ll;
  13319. long long int nll = -9223372036854775807LL;
  13320. unsigned long long int ull = 18446744073709551615ULL;
  13321. /* Test constant expressions. */
  13322. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13323. ? 1 : -1)];
  13324. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  13325. ? 1 : -1)];
  13326. int i = 63;
  13327. int
  13328. main ()
  13329. {
  13330. /* Test availability of runtime routines for shift and division. */
  13331. long long int llmax = 9223372036854775807ll;
  13332. unsigned long long int ullmax = 18446744073709551615ull;
  13333. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  13334. | (llmax / ll) | (llmax % ll)
  13335. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  13336. | (ullmax / ull) | (ullmax % ull));
  13337. ;
  13338. return 0;
  13339. }
  13340. _ACEOF
  13341. rm -f conftest.$ac_objext conftest$ac_exeext
  13342. if { (ac_try="$ac_link"
  13343. case "(($ac_try" in
  13344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13345. *) ac_try_echo=$ac_try;;
  13346. esac
  13347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13348. (eval "$ac_link") 2>conftest.er1
  13349. ac_status=$?
  13350. grep -v '^ *+' conftest.er1 >conftest.err
  13351. rm -f conftest.er1
  13352. cat conftest.err >&5
  13353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13354. (exit $ac_status); } && {
  13355. test -z "$ac_cxx_werror_flag" ||
  13356. test ! -s conftest.err
  13357. } && test -s conftest$ac_exeext &&
  13358. $as_test_x conftest$ac_exeext; then
  13359. if test "$cross_compiling" = yes; then
  13360. ac_cv_type_long_long_int=yes
  13361. else
  13362. cat >conftest.$ac_ext <<_ACEOF
  13363. /* confdefs.h. */
  13364. _ACEOF
  13365. cat confdefs.h >>conftest.$ac_ext
  13366. cat >>conftest.$ac_ext <<_ACEOF
  13367. /* end confdefs.h. */
  13368. #include <limits.h>
  13369. #ifndef LLONG_MAX
  13370. # define HALF \
  13371. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13372. # define LLONG_MAX (HALF - 1 + HALF)
  13373. #endif
  13374. int
  13375. main ()
  13376. {
  13377. long long int n = 1;
  13378. int i;
  13379. for (i = 0; ; i++)
  13380. {
  13381. long long int m = n << i;
  13382. if (m >> i != n)
  13383. return 1;
  13384. if (LLONG_MAX / 2 < m)
  13385. break;
  13386. }
  13387. return 0;
  13388. ;
  13389. return 0;
  13390. }
  13391. _ACEOF
  13392. rm -f conftest$ac_exeext
  13393. if { (ac_try="$ac_link"
  13394. case "(($ac_try" in
  13395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13396. *) ac_try_echo=$ac_try;;
  13397. esac
  13398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13399. (eval "$ac_link") 2>&5
  13400. ac_status=$?
  13401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13402. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13403. { (case "(($ac_try" in
  13404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13405. *) ac_try_echo=$ac_try;;
  13406. esac
  13407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13408. (eval "$ac_try") 2>&5
  13409. ac_status=$?
  13410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13411. (exit $ac_status); }; }; then
  13412. ac_cv_type_long_long_int=yes
  13413. else
  13414. echo "$as_me: program exited with status $ac_status" >&5
  13415. echo "$as_me: failed program was:" >&5
  13416. sed 's/^/| /' conftest.$ac_ext >&5
  13417. ( exit $ac_status )
  13418. ac_cv_type_long_long_int=no
  13419. fi
  13420. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13421. fi
  13422. else
  13423. echo "$as_me: failed program was:" >&5
  13424. sed 's/^/| /' conftest.$ac_ext >&5
  13425. ac_cv_type_long_long_int=no
  13426. fi
  13427. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13428. conftest$ac_exeext conftest.$ac_ext
  13429. fi
  13430. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13431. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13432. if test $ac_cv_type_long_long_int = yes; then
  13433. cat >>confdefs.h <<\_ACEOF
  13434. #define HAVE_LONG_LONG_INT 1
  13435. _ACEOF
  13436. fi
  13437. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13438. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13439. if test "${gt_cv_c_wchar_t+set}" = set; then
  13440. echo $ECHO_N "(cached) $ECHO_C" >&6
  13441. else
  13442. cat >conftest.$ac_ext <<_ACEOF
  13443. /* confdefs.h. */
  13444. _ACEOF
  13445. cat confdefs.h >>conftest.$ac_ext
  13446. cat >>conftest.$ac_ext <<_ACEOF
  13447. /* end confdefs.h. */
  13448. #include <stddef.h>
  13449. wchar_t foo = (wchar_t)'\0';
  13450. int
  13451. main ()
  13452. {
  13453. ;
  13454. return 0;
  13455. }
  13456. _ACEOF
  13457. rm -f conftest.$ac_objext
  13458. if { (ac_try="$ac_compile"
  13459. case "(($ac_try" in
  13460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13461. *) ac_try_echo=$ac_try;;
  13462. esac
  13463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13464. (eval "$ac_compile") 2>conftest.er1
  13465. ac_status=$?
  13466. grep -v '^ *+' conftest.er1 >conftest.err
  13467. rm -f conftest.er1
  13468. cat conftest.err >&5
  13469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13470. (exit $ac_status); } && {
  13471. test -z "$ac_cxx_werror_flag" ||
  13472. test ! -s conftest.err
  13473. } && test -s conftest.$ac_objext; then
  13474. gt_cv_c_wchar_t=yes
  13475. else
  13476. echo "$as_me: failed program was:" >&5
  13477. sed 's/^/| /' conftest.$ac_ext >&5
  13478. gt_cv_c_wchar_t=no
  13479. fi
  13480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13481. fi
  13482. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13483. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13484. if test $gt_cv_c_wchar_t = yes; then
  13485. cat >>confdefs.h <<\_ACEOF
  13486. #define HAVE_WCHAR_T 1
  13487. _ACEOF
  13488. fi
  13489. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13490. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13491. if test "${gt_cv_c_wint_t+set}" = set; then
  13492. echo $ECHO_N "(cached) $ECHO_C" >&6
  13493. else
  13494. cat >conftest.$ac_ext <<_ACEOF
  13495. /* confdefs.h. */
  13496. _ACEOF
  13497. cat confdefs.h >>conftest.$ac_ext
  13498. cat >>conftest.$ac_ext <<_ACEOF
  13499. /* end confdefs.h. */
  13500. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13501. <wchar.h>.
  13502. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13503. before <wchar.h>. */
  13504. #include <stddef.h>
  13505. #include <stdio.h>
  13506. #include <time.h>
  13507. #include <wchar.h>
  13508. wint_t foo = (wchar_t)'\0';
  13509. int
  13510. main ()
  13511. {
  13512. ;
  13513. return 0;
  13514. }
  13515. _ACEOF
  13516. rm -f conftest.$ac_objext
  13517. if { (ac_try="$ac_compile"
  13518. case "(($ac_try" in
  13519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13520. *) ac_try_echo=$ac_try;;
  13521. esac
  13522. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13523. (eval "$ac_compile") 2>conftest.er1
  13524. ac_status=$?
  13525. grep -v '^ *+' conftest.er1 >conftest.err
  13526. rm -f conftest.er1
  13527. cat conftest.err >&5
  13528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13529. (exit $ac_status); } && {
  13530. test -z "$ac_cxx_werror_flag" ||
  13531. test ! -s conftest.err
  13532. } && test -s conftest.$ac_objext; then
  13533. gt_cv_c_wint_t=yes
  13534. else
  13535. echo "$as_me: failed program was:" >&5
  13536. sed 's/^/| /' conftest.$ac_ext >&5
  13537. gt_cv_c_wint_t=no
  13538. fi
  13539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13540. fi
  13541. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13542. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13543. if test $gt_cv_c_wint_t = yes; then
  13544. cat >>confdefs.h <<\_ACEOF
  13545. #define HAVE_WINT_T 1
  13546. _ACEOF
  13547. fi
  13548. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13549. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13550. if test "${gt_cv_c_intmax_t+set}" = set; then
  13551. echo $ECHO_N "(cached) $ECHO_C" >&6
  13552. else
  13553. cat >conftest.$ac_ext <<_ACEOF
  13554. /* confdefs.h. */
  13555. _ACEOF
  13556. cat confdefs.h >>conftest.$ac_ext
  13557. cat >>conftest.$ac_ext <<_ACEOF
  13558. /* end confdefs.h. */
  13559. #include <stddef.h>
  13560. #include <stdlib.h>
  13561. #if HAVE_STDINT_H_WITH_UINTMAX
  13562. #include <stdint.h>
  13563. #endif
  13564. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13565. #include <inttypes.h>
  13566. #endif
  13567. int
  13568. main ()
  13569. {
  13570. intmax_t x = -1;
  13571. return !x;
  13572. ;
  13573. return 0;
  13574. }
  13575. _ACEOF
  13576. rm -f conftest.$ac_objext
  13577. if { (ac_try="$ac_compile"
  13578. case "(($ac_try" in
  13579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13580. *) ac_try_echo=$ac_try;;
  13581. esac
  13582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13583. (eval "$ac_compile") 2>conftest.er1
  13584. ac_status=$?
  13585. grep -v '^ *+' conftest.er1 >conftest.err
  13586. rm -f conftest.er1
  13587. cat conftest.err >&5
  13588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13589. (exit $ac_status); } && {
  13590. test -z "$ac_cxx_werror_flag" ||
  13591. test ! -s conftest.err
  13592. } && test -s conftest.$ac_objext; then
  13593. gt_cv_c_intmax_t=yes
  13594. else
  13595. echo "$as_me: failed program was:" >&5
  13596. sed 's/^/| /' conftest.$ac_ext >&5
  13597. gt_cv_c_intmax_t=no
  13598. fi
  13599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13600. fi
  13601. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13602. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13603. if test $gt_cv_c_intmax_t = yes; then
  13604. cat >>confdefs.h <<\_ACEOF
  13605. #define HAVE_INTMAX_T 1
  13606. _ACEOF
  13607. fi
  13608. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13609. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13610. if test "${gt_cv_func_printf_posix+set}" = set; then
  13611. echo $ECHO_N "(cached) $ECHO_C" >&6
  13612. else
  13613. if test "$cross_compiling" = yes; then
  13614. cat >conftest.$ac_ext <<_ACEOF
  13615. /* confdefs.h. */
  13616. _ACEOF
  13617. cat confdefs.h >>conftest.$ac_ext
  13618. cat >>conftest.$ac_ext <<_ACEOF
  13619. /* end confdefs.h. */
  13620. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13621. notposix
  13622. #endif
  13623. _ACEOF
  13624. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13625. $EGREP "notposix" >/dev/null 2>&1; then
  13626. gt_cv_func_printf_posix="guessing no"
  13627. else
  13628. gt_cv_func_printf_posix="guessing yes"
  13629. fi
  13630. rm -f conftest*
  13631. else
  13632. cat >conftest.$ac_ext <<_ACEOF
  13633. /* confdefs.h. */
  13634. _ACEOF
  13635. cat confdefs.h >>conftest.$ac_ext
  13636. cat >>conftest.$ac_ext <<_ACEOF
  13637. /* end confdefs.h. */
  13638. #include <stdio.h>
  13639. #include <string.h>
  13640. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13641. dollar expansion (possibly an autoconf bug). */
  13642. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13643. static char buf[100];
  13644. int main ()
  13645. {
  13646. sprintf (buf, format, 33, 55);
  13647. return (strcmp (buf, "55 33") != 0);
  13648. }
  13649. _ACEOF
  13650. rm -f conftest$ac_exeext
  13651. if { (ac_try="$ac_link"
  13652. case "(($ac_try" in
  13653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13654. *) ac_try_echo=$ac_try;;
  13655. esac
  13656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13657. (eval "$ac_link") 2>&5
  13658. ac_status=$?
  13659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13660. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13661. { (case "(($ac_try" in
  13662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13663. *) ac_try_echo=$ac_try;;
  13664. esac
  13665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13666. (eval "$ac_try") 2>&5
  13667. ac_status=$?
  13668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13669. (exit $ac_status); }; }; then
  13670. gt_cv_func_printf_posix=yes
  13671. else
  13672. echo "$as_me: program exited with status $ac_status" >&5
  13673. echo "$as_me: failed program was:" >&5
  13674. sed 's/^/| /' conftest.$ac_ext >&5
  13675. ( exit $ac_status )
  13676. gt_cv_func_printf_posix=no
  13677. fi
  13678. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13679. fi
  13680. fi
  13681. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13682. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13683. case $gt_cv_func_printf_posix in
  13684. *yes)
  13685. cat >>confdefs.h <<\_ACEOF
  13686. #define HAVE_POSIX_PRINTF 1
  13687. _ACEOF
  13688. ;;
  13689. esac
  13690. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13691. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13692. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13693. echo $ECHO_N "(cached) $ECHO_C" >&6
  13694. else
  13695. cat >conftest.$ac_ext <<_ACEOF
  13696. /* confdefs.h. */
  13697. _ACEOF
  13698. cat confdefs.h >>conftest.$ac_ext
  13699. cat >>conftest.$ac_ext <<_ACEOF
  13700. /* end confdefs.h. */
  13701. #include <features.h>
  13702. #ifdef __GNU_LIBRARY__
  13703. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13704. Lucky GNU user
  13705. #endif
  13706. #endif
  13707. _ACEOF
  13708. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13709. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13710. ac_cv_gnu_library_2_1=yes
  13711. else
  13712. ac_cv_gnu_library_2_1=no
  13713. fi
  13714. rm -f conftest*
  13715. fi
  13716. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13717. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13718. GLIBC21="$ac_cv_gnu_library_2_1"
  13719. for ac_header in stdint.h
  13720. do
  13721. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13722. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13723. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13724. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13725. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13726. echo $ECHO_N "(cached) $ECHO_C" >&6
  13727. fi
  13728. ac_res=`eval echo '${'$as_ac_Header'}'`
  13729. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13730. echo "${ECHO_T}$ac_res" >&6; }
  13731. else
  13732. # Is the header compilable?
  13733. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13734. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13735. cat >conftest.$ac_ext <<_ACEOF
  13736. /* confdefs.h. */
  13737. _ACEOF
  13738. cat confdefs.h >>conftest.$ac_ext
  13739. cat >>conftest.$ac_ext <<_ACEOF
  13740. /* end confdefs.h. */
  13741. $ac_includes_default
  13742. #include <$ac_header>
  13743. _ACEOF
  13744. rm -f conftest.$ac_objext
  13745. if { (ac_try="$ac_compile"
  13746. case "(($ac_try" in
  13747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13748. *) ac_try_echo=$ac_try;;
  13749. esac
  13750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13751. (eval "$ac_compile") 2>conftest.er1
  13752. ac_status=$?
  13753. grep -v '^ *+' conftest.er1 >conftest.err
  13754. rm -f conftest.er1
  13755. cat conftest.err >&5
  13756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13757. (exit $ac_status); } && {
  13758. test -z "$ac_cxx_werror_flag" ||
  13759. test ! -s conftest.err
  13760. } && test -s conftest.$ac_objext; then
  13761. ac_header_compiler=yes
  13762. else
  13763. echo "$as_me: failed program was:" >&5
  13764. sed 's/^/| /' conftest.$ac_ext >&5
  13765. ac_header_compiler=no
  13766. fi
  13767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13768. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13769. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13770. # Is the header present?
  13771. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13772. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13773. cat >conftest.$ac_ext <<_ACEOF
  13774. /* confdefs.h. */
  13775. _ACEOF
  13776. cat confdefs.h >>conftest.$ac_ext
  13777. cat >>conftest.$ac_ext <<_ACEOF
  13778. /* end confdefs.h. */
  13779. #include <$ac_header>
  13780. _ACEOF
  13781. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13782. case "(($ac_try" in
  13783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13784. *) ac_try_echo=$ac_try;;
  13785. esac
  13786. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13787. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13788. ac_status=$?
  13789. grep -v '^ *+' conftest.er1 >conftest.err
  13790. rm -f conftest.er1
  13791. cat conftest.err >&5
  13792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13793. (exit $ac_status); } >/dev/null && {
  13794. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13795. test ! -s conftest.err
  13796. }; then
  13797. ac_header_preproc=yes
  13798. else
  13799. echo "$as_me: failed program was:" >&5
  13800. sed 's/^/| /' conftest.$ac_ext >&5
  13801. ac_header_preproc=no
  13802. fi
  13803. rm -f conftest.err conftest.$ac_ext
  13804. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13805. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13806. # So? What about this header?
  13807. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13808. yes:no: )
  13809. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13810. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13811. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13812. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13813. ac_header_preproc=yes
  13814. ;;
  13815. no:yes:* )
  13816. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13817. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13818. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13819. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13820. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13821. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13822. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13823. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13824. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13825. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13826. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13827. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13828. ( cat <<\_ASBOX
  13829. ## ----------------------------------------------- ##
  13830. ## Report this to t-tujikawa@users.sourceforge.net ##
  13831. ## ----------------------------------------------- ##
  13832. _ASBOX
  13833. ) | sed "s/^/$as_me: WARNING: /" >&2
  13834. ;;
  13835. esac
  13836. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13837. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13838. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13839. echo $ECHO_N "(cached) $ECHO_C" >&6
  13840. else
  13841. eval "$as_ac_Header=\$ac_header_preproc"
  13842. fi
  13843. ac_res=`eval echo '${'$as_ac_Header'}'`
  13844. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13845. echo "${ECHO_T}$ac_res" >&6; }
  13846. fi
  13847. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13848. cat >>confdefs.h <<_ACEOF
  13849. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13850. _ACEOF
  13851. fi
  13852. done
  13853. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13854. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13855. if test "${gl_cv_size_max+set}" = set; then
  13856. echo $ECHO_N "(cached) $ECHO_C" >&6
  13857. else
  13858. gl_cv_size_max=
  13859. cat >conftest.$ac_ext <<_ACEOF
  13860. /* confdefs.h. */
  13861. _ACEOF
  13862. cat confdefs.h >>conftest.$ac_ext
  13863. cat >>conftest.$ac_ext <<_ACEOF
  13864. /* end confdefs.h. */
  13865. #include <limits.h>
  13866. #if HAVE_STDINT_H
  13867. #include <stdint.h>
  13868. #endif
  13869. #ifdef SIZE_MAX
  13870. Found it
  13871. #endif
  13872. _ACEOF
  13873. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13874. $EGREP "Found it" >/dev/null 2>&1; then
  13875. gl_cv_size_max=yes
  13876. fi
  13877. rm -f conftest*
  13878. if test -z "$gl_cv_size_max"; then
  13879. if test "$cross_compiling" = yes; then
  13880. # Depending upon the size, compute the lo and hi bounds.
  13881. cat >conftest.$ac_ext <<_ACEOF
  13882. /* confdefs.h. */
  13883. _ACEOF
  13884. cat confdefs.h >>conftest.$ac_ext
  13885. cat >>conftest.$ac_ext <<_ACEOF
  13886. /* end confdefs.h. */
  13887. #include <stddef.h>
  13888. #include <limits.h>
  13889. int
  13890. main ()
  13891. {
  13892. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13893. test_array [0] = 0
  13894. ;
  13895. return 0;
  13896. }
  13897. _ACEOF
  13898. rm -f conftest.$ac_objext
  13899. if { (ac_try="$ac_compile"
  13900. case "(($ac_try" in
  13901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13902. *) ac_try_echo=$ac_try;;
  13903. esac
  13904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13905. (eval "$ac_compile") 2>conftest.er1
  13906. ac_status=$?
  13907. grep -v '^ *+' conftest.er1 >conftest.err
  13908. rm -f conftest.er1
  13909. cat conftest.err >&5
  13910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13911. (exit $ac_status); } && {
  13912. test -z "$ac_cxx_werror_flag" ||
  13913. test ! -s conftest.err
  13914. } && test -s conftest.$ac_objext; then
  13915. ac_lo=0 ac_mid=0
  13916. while :; do
  13917. cat >conftest.$ac_ext <<_ACEOF
  13918. /* confdefs.h. */
  13919. _ACEOF
  13920. cat confdefs.h >>conftest.$ac_ext
  13921. cat >>conftest.$ac_ext <<_ACEOF
  13922. /* end confdefs.h. */
  13923. #include <stddef.h>
  13924. #include <limits.h>
  13925. int
  13926. main ()
  13927. {
  13928. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13929. test_array [0] = 0
  13930. ;
  13931. return 0;
  13932. }
  13933. _ACEOF
  13934. rm -f conftest.$ac_objext
  13935. if { (ac_try="$ac_compile"
  13936. case "(($ac_try" in
  13937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13938. *) ac_try_echo=$ac_try;;
  13939. esac
  13940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13941. (eval "$ac_compile") 2>conftest.er1
  13942. ac_status=$?
  13943. grep -v '^ *+' conftest.er1 >conftest.err
  13944. rm -f conftest.er1
  13945. cat conftest.err >&5
  13946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13947. (exit $ac_status); } && {
  13948. test -z "$ac_cxx_werror_flag" ||
  13949. test ! -s conftest.err
  13950. } && test -s conftest.$ac_objext; then
  13951. ac_hi=$ac_mid; break
  13952. else
  13953. echo "$as_me: failed program was:" >&5
  13954. sed 's/^/| /' conftest.$ac_ext >&5
  13955. ac_lo=`expr $ac_mid + 1`
  13956. if test $ac_lo -le $ac_mid; then
  13957. ac_lo= ac_hi=
  13958. break
  13959. fi
  13960. ac_mid=`expr 2 '*' $ac_mid + 1`
  13961. fi
  13962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13963. done
  13964. else
  13965. echo "$as_me: failed program was:" >&5
  13966. sed 's/^/| /' conftest.$ac_ext >&5
  13967. cat >conftest.$ac_ext <<_ACEOF
  13968. /* confdefs.h. */
  13969. _ACEOF
  13970. cat confdefs.h >>conftest.$ac_ext
  13971. cat >>conftest.$ac_ext <<_ACEOF
  13972. /* end confdefs.h. */
  13973. #include <stddef.h>
  13974. #include <limits.h>
  13975. int
  13976. main ()
  13977. {
  13978. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13979. test_array [0] = 0
  13980. ;
  13981. return 0;
  13982. }
  13983. _ACEOF
  13984. rm -f conftest.$ac_objext
  13985. if { (ac_try="$ac_compile"
  13986. case "(($ac_try" in
  13987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13988. *) ac_try_echo=$ac_try;;
  13989. esac
  13990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13991. (eval "$ac_compile") 2>conftest.er1
  13992. ac_status=$?
  13993. grep -v '^ *+' conftest.er1 >conftest.err
  13994. rm -f conftest.er1
  13995. cat conftest.err >&5
  13996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13997. (exit $ac_status); } && {
  13998. test -z "$ac_cxx_werror_flag" ||
  13999. test ! -s conftest.err
  14000. } && test -s conftest.$ac_objext; then
  14001. ac_hi=-1 ac_mid=-1
  14002. while :; do
  14003. cat >conftest.$ac_ext <<_ACEOF
  14004. /* confdefs.h. */
  14005. _ACEOF
  14006. cat confdefs.h >>conftest.$ac_ext
  14007. cat >>conftest.$ac_ext <<_ACEOF
  14008. /* end confdefs.h. */
  14009. #include <stddef.h>
  14010. #include <limits.h>
  14011. int
  14012. main ()
  14013. {
  14014. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  14015. test_array [0] = 0
  14016. ;
  14017. return 0;
  14018. }
  14019. _ACEOF
  14020. rm -f conftest.$ac_objext
  14021. if { (ac_try="$ac_compile"
  14022. case "(($ac_try" in
  14023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14024. *) ac_try_echo=$ac_try;;
  14025. esac
  14026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14027. (eval "$ac_compile") 2>conftest.er1
  14028. ac_status=$?
  14029. grep -v '^ *+' conftest.er1 >conftest.err
  14030. rm -f conftest.er1
  14031. cat conftest.err >&5
  14032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14033. (exit $ac_status); } && {
  14034. test -z "$ac_cxx_werror_flag" ||
  14035. test ! -s conftest.err
  14036. } && test -s conftest.$ac_objext; then
  14037. ac_lo=$ac_mid; break
  14038. else
  14039. echo "$as_me: failed program was:" >&5
  14040. sed 's/^/| /' conftest.$ac_ext >&5
  14041. ac_hi=`expr '(' $ac_mid ')' - 1`
  14042. if test $ac_mid -le $ac_hi; then
  14043. ac_lo= ac_hi=
  14044. break
  14045. fi
  14046. ac_mid=`expr 2 '*' $ac_mid`
  14047. fi
  14048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14049. done
  14050. else
  14051. echo "$as_me: failed program was:" >&5
  14052. sed 's/^/| /' conftest.$ac_ext >&5
  14053. ac_lo= ac_hi=
  14054. fi
  14055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14056. fi
  14057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14058. # Binary search between lo and hi bounds.
  14059. while test "x$ac_lo" != "x$ac_hi"; do
  14060. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14061. cat >conftest.$ac_ext <<_ACEOF
  14062. /* confdefs.h. */
  14063. _ACEOF
  14064. cat confdefs.h >>conftest.$ac_ext
  14065. cat >>conftest.$ac_ext <<_ACEOF
  14066. /* end confdefs.h. */
  14067. #include <stddef.h>
  14068. #include <limits.h>
  14069. int
  14070. main ()
  14071. {
  14072. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14073. test_array [0] = 0
  14074. ;
  14075. return 0;
  14076. }
  14077. _ACEOF
  14078. rm -f conftest.$ac_objext
  14079. if { (ac_try="$ac_compile"
  14080. case "(($ac_try" in
  14081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14082. *) ac_try_echo=$ac_try;;
  14083. esac
  14084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14085. (eval "$ac_compile") 2>conftest.er1
  14086. ac_status=$?
  14087. grep -v '^ *+' conftest.er1 >conftest.err
  14088. rm -f conftest.er1
  14089. cat conftest.err >&5
  14090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14091. (exit $ac_status); } && {
  14092. test -z "$ac_cxx_werror_flag" ||
  14093. test ! -s conftest.err
  14094. } && test -s conftest.$ac_objext; then
  14095. ac_hi=$ac_mid
  14096. else
  14097. echo "$as_me: failed program was:" >&5
  14098. sed 's/^/| /' conftest.$ac_ext >&5
  14099. ac_lo=`expr '(' $ac_mid ')' + 1`
  14100. fi
  14101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14102. done
  14103. case $ac_lo in
  14104. ?*) size_t_bits_minus_1=$ac_lo;;
  14105. '') size_t_bits_minus_1= ;;
  14106. esac
  14107. else
  14108. cat >conftest.$ac_ext <<_ACEOF
  14109. /* confdefs.h. */
  14110. _ACEOF
  14111. cat confdefs.h >>conftest.$ac_ext
  14112. cat >>conftest.$ac_ext <<_ACEOF
  14113. /* end confdefs.h. */
  14114. #include <stddef.h>
  14115. #include <limits.h>
  14116. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14117. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14118. #include <stdio.h>
  14119. #include <stdlib.h>
  14120. int
  14121. main ()
  14122. {
  14123. FILE *f = fopen ("conftest.val", "w");
  14124. if (! f)
  14125. return 1;
  14126. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14127. {
  14128. long int i = longval ();
  14129. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14130. return 1;
  14131. fprintf (f, "%ld\n", i);
  14132. }
  14133. else
  14134. {
  14135. unsigned long int i = ulongval ();
  14136. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14137. return 1;
  14138. fprintf (f, "%lu\n", i);
  14139. }
  14140. return ferror (f) || fclose (f) != 0;
  14141. ;
  14142. return 0;
  14143. }
  14144. _ACEOF
  14145. rm -f conftest$ac_exeext
  14146. if { (ac_try="$ac_link"
  14147. case "(($ac_try" in
  14148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14149. *) ac_try_echo=$ac_try;;
  14150. esac
  14151. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14152. (eval "$ac_link") 2>&5
  14153. ac_status=$?
  14154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14155. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14156. { (case "(($ac_try" in
  14157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14158. *) ac_try_echo=$ac_try;;
  14159. esac
  14160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14161. (eval "$ac_try") 2>&5
  14162. ac_status=$?
  14163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14164. (exit $ac_status); }; }; then
  14165. size_t_bits_minus_1=`cat conftest.val`
  14166. else
  14167. echo "$as_me: program exited with status $ac_status" >&5
  14168. echo "$as_me: failed program was:" >&5
  14169. sed 's/^/| /' conftest.$ac_ext >&5
  14170. ( exit $ac_status )
  14171. size_t_bits_minus_1=
  14172. fi
  14173. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14174. fi
  14175. rm -f conftest.val
  14176. if test "$cross_compiling" = yes; then
  14177. # Depending upon the size, compute the lo and hi bounds.
  14178. cat >conftest.$ac_ext <<_ACEOF
  14179. /* confdefs.h. */
  14180. _ACEOF
  14181. cat confdefs.h >>conftest.$ac_ext
  14182. cat >>conftest.$ac_ext <<_ACEOF
  14183. /* end confdefs.h. */
  14184. #include <stddef.h>
  14185. int
  14186. main ()
  14187. {
  14188. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14189. test_array [0] = 0
  14190. ;
  14191. return 0;
  14192. }
  14193. _ACEOF
  14194. rm -f conftest.$ac_objext
  14195. if { (ac_try="$ac_compile"
  14196. case "(($ac_try" in
  14197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14198. *) ac_try_echo=$ac_try;;
  14199. esac
  14200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14201. (eval "$ac_compile") 2>conftest.er1
  14202. ac_status=$?
  14203. grep -v '^ *+' conftest.er1 >conftest.err
  14204. rm -f conftest.er1
  14205. cat conftest.err >&5
  14206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14207. (exit $ac_status); } && {
  14208. test -z "$ac_cxx_werror_flag" ||
  14209. test ! -s conftest.err
  14210. } && test -s conftest.$ac_objext; then
  14211. ac_lo=0 ac_mid=0
  14212. while :; do
  14213. cat >conftest.$ac_ext <<_ACEOF
  14214. /* confdefs.h. */
  14215. _ACEOF
  14216. cat confdefs.h >>conftest.$ac_ext
  14217. cat >>conftest.$ac_ext <<_ACEOF
  14218. /* end confdefs.h. */
  14219. #include <stddef.h>
  14220. int
  14221. main ()
  14222. {
  14223. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14224. test_array [0] = 0
  14225. ;
  14226. return 0;
  14227. }
  14228. _ACEOF
  14229. rm -f conftest.$ac_objext
  14230. if { (ac_try="$ac_compile"
  14231. case "(($ac_try" in
  14232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14233. *) ac_try_echo=$ac_try;;
  14234. esac
  14235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14236. (eval "$ac_compile") 2>conftest.er1
  14237. ac_status=$?
  14238. grep -v '^ *+' conftest.er1 >conftest.err
  14239. rm -f conftest.er1
  14240. cat conftest.err >&5
  14241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14242. (exit $ac_status); } && {
  14243. test -z "$ac_cxx_werror_flag" ||
  14244. test ! -s conftest.err
  14245. } && test -s conftest.$ac_objext; then
  14246. ac_hi=$ac_mid; break
  14247. else
  14248. echo "$as_me: failed program was:" >&5
  14249. sed 's/^/| /' conftest.$ac_ext >&5
  14250. ac_lo=`expr $ac_mid + 1`
  14251. if test $ac_lo -le $ac_mid; then
  14252. ac_lo= ac_hi=
  14253. break
  14254. fi
  14255. ac_mid=`expr 2 '*' $ac_mid + 1`
  14256. fi
  14257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14258. done
  14259. else
  14260. echo "$as_me: failed program was:" >&5
  14261. sed 's/^/| /' conftest.$ac_ext >&5
  14262. cat >conftest.$ac_ext <<_ACEOF
  14263. /* confdefs.h. */
  14264. _ACEOF
  14265. cat confdefs.h >>conftest.$ac_ext
  14266. cat >>conftest.$ac_ext <<_ACEOF
  14267. /* end confdefs.h. */
  14268. #include <stddef.h>
  14269. int
  14270. main ()
  14271. {
  14272. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  14273. test_array [0] = 0
  14274. ;
  14275. return 0;
  14276. }
  14277. _ACEOF
  14278. rm -f conftest.$ac_objext
  14279. if { (ac_try="$ac_compile"
  14280. case "(($ac_try" in
  14281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14282. *) ac_try_echo=$ac_try;;
  14283. esac
  14284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14285. (eval "$ac_compile") 2>conftest.er1
  14286. ac_status=$?
  14287. grep -v '^ *+' conftest.er1 >conftest.err
  14288. rm -f conftest.er1
  14289. cat conftest.err >&5
  14290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14291. (exit $ac_status); } && {
  14292. test -z "$ac_cxx_werror_flag" ||
  14293. test ! -s conftest.err
  14294. } && test -s conftest.$ac_objext; then
  14295. ac_hi=-1 ac_mid=-1
  14296. while :; do
  14297. cat >conftest.$ac_ext <<_ACEOF
  14298. /* confdefs.h. */
  14299. _ACEOF
  14300. cat confdefs.h >>conftest.$ac_ext
  14301. cat >>conftest.$ac_ext <<_ACEOF
  14302. /* end confdefs.h. */
  14303. #include <stddef.h>
  14304. int
  14305. main ()
  14306. {
  14307. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  14308. test_array [0] = 0
  14309. ;
  14310. return 0;
  14311. }
  14312. _ACEOF
  14313. rm -f conftest.$ac_objext
  14314. if { (ac_try="$ac_compile"
  14315. case "(($ac_try" in
  14316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14317. *) ac_try_echo=$ac_try;;
  14318. esac
  14319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14320. (eval "$ac_compile") 2>conftest.er1
  14321. ac_status=$?
  14322. grep -v '^ *+' conftest.er1 >conftest.err
  14323. rm -f conftest.er1
  14324. cat conftest.err >&5
  14325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14326. (exit $ac_status); } && {
  14327. test -z "$ac_cxx_werror_flag" ||
  14328. test ! -s conftest.err
  14329. } && test -s conftest.$ac_objext; then
  14330. ac_lo=$ac_mid; break
  14331. else
  14332. echo "$as_me: failed program was:" >&5
  14333. sed 's/^/| /' conftest.$ac_ext >&5
  14334. ac_hi=`expr '(' $ac_mid ')' - 1`
  14335. if test $ac_mid -le $ac_hi; then
  14336. ac_lo= ac_hi=
  14337. break
  14338. fi
  14339. ac_mid=`expr 2 '*' $ac_mid`
  14340. fi
  14341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14342. done
  14343. else
  14344. echo "$as_me: failed program was:" >&5
  14345. sed 's/^/| /' conftest.$ac_ext >&5
  14346. ac_lo= ac_hi=
  14347. fi
  14348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14349. fi
  14350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14351. # Binary search between lo and hi bounds.
  14352. while test "x$ac_lo" != "x$ac_hi"; do
  14353. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14354. cat >conftest.$ac_ext <<_ACEOF
  14355. /* confdefs.h. */
  14356. _ACEOF
  14357. cat confdefs.h >>conftest.$ac_ext
  14358. cat >>conftest.$ac_ext <<_ACEOF
  14359. /* end confdefs.h. */
  14360. #include <stddef.h>
  14361. int
  14362. main ()
  14363. {
  14364. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14365. test_array [0] = 0
  14366. ;
  14367. return 0;
  14368. }
  14369. _ACEOF
  14370. rm -f conftest.$ac_objext
  14371. if { (ac_try="$ac_compile"
  14372. case "(($ac_try" in
  14373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14374. *) ac_try_echo=$ac_try;;
  14375. esac
  14376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14377. (eval "$ac_compile") 2>conftest.er1
  14378. ac_status=$?
  14379. grep -v '^ *+' conftest.er1 >conftest.err
  14380. rm -f conftest.er1
  14381. cat conftest.err >&5
  14382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14383. (exit $ac_status); } && {
  14384. test -z "$ac_cxx_werror_flag" ||
  14385. test ! -s conftest.err
  14386. } && test -s conftest.$ac_objext; then
  14387. ac_hi=$ac_mid
  14388. else
  14389. echo "$as_me: failed program was:" >&5
  14390. sed 's/^/| /' conftest.$ac_ext >&5
  14391. ac_lo=`expr '(' $ac_mid ')' + 1`
  14392. fi
  14393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14394. done
  14395. case $ac_lo in
  14396. ?*) fits_in_uint=$ac_lo;;
  14397. '') fits_in_uint= ;;
  14398. esac
  14399. else
  14400. cat >conftest.$ac_ext <<_ACEOF
  14401. /* confdefs.h. */
  14402. _ACEOF
  14403. cat confdefs.h >>conftest.$ac_ext
  14404. cat >>conftest.$ac_ext <<_ACEOF
  14405. /* end confdefs.h. */
  14406. #include <stddef.h>
  14407. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14408. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14409. #include <stdio.h>
  14410. #include <stdlib.h>
  14411. int
  14412. main ()
  14413. {
  14414. FILE *f = fopen ("conftest.val", "w");
  14415. if (! f)
  14416. return 1;
  14417. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14418. {
  14419. long int i = longval ();
  14420. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14421. return 1;
  14422. fprintf (f, "%ld\n", i);
  14423. }
  14424. else
  14425. {
  14426. unsigned long int i = ulongval ();
  14427. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14428. return 1;
  14429. fprintf (f, "%lu\n", i);
  14430. }
  14431. return ferror (f) || fclose (f) != 0;
  14432. ;
  14433. return 0;
  14434. }
  14435. _ACEOF
  14436. rm -f conftest$ac_exeext
  14437. if { (ac_try="$ac_link"
  14438. case "(($ac_try" in
  14439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14440. *) ac_try_echo=$ac_try;;
  14441. esac
  14442. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14443. (eval "$ac_link") 2>&5
  14444. ac_status=$?
  14445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14446. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14447. { (case "(($ac_try" in
  14448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14449. *) ac_try_echo=$ac_try;;
  14450. esac
  14451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14452. (eval "$ac_try") 2>&5
  14453. ac_status=$?
  14454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14455. (exit $ac_status); }; }; then
  14456. fits_in_uint=`cat conftest.val`
  14457. else
  14458. echo "$as_me: program exited with status $ac_status" >&5
  14459. echo "$as_me: failed program was:" >&5
  14460. sed 's/^/| /' conftest.$ac_ext >&5
  14461. ( exit $ac_status )
  14462. fits_in_uint=
  14463. fi
  14464. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14465. fi
  14466. rm -f conftest.val
  14467. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14468. if test $fits_in_uint = 1; then
  14469. cat >conftest.$ac_ext <<_ACEOF
  14470. /* confdefs.h. */
  14471. _ACEOF
  14472. cat confdefs.h >>conftest.$ac_ext
  14473. cat >>conftest.$ac_ext <<_ACEOF
  14474. /* end confdefs.h. */
  14475. #include <stddef.h>
  14476. extern size_t foo;
  14477. extern unsigned long foo;
  14478. int
  14479. main ()
  14480. {
  14481. ;
  14482. return 0;
  14483. }
  14484. _ACEOF
  14485. rm -f conftest.$ac_objext
  14486. if { (ac_try="$ac_compile"
  14487. case "(($ac_try" in
  14488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14489. *) ac_try_echo=$ac_try;;
  14490. esac
  14491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14492. (eval "$ac_compile") 2>conftest.er1
  14493. ac_status=$?
  14494. grep -v '^ *+' conftest.er1 >conftest.err
  14495. rm -f conftest.er1
  14496. cat conftest.err >&5
  14497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14498. (exit $ac_status); } && {
  14499. test -z "$ac_cxx_werror_flag" ||
  14500. test ! -s conftest.err
  14501. } && test -s conftest.$ac_objext; then
  14502. fits_in_uint=0
  14503. else
  14504. echo "$as_me: failed program was:" >&5
  14505. sed 's/^/| /' conftest.$ac_ext >&5
  14506. fi
  14507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14508. fi
  14509. if test $fits_in_uint = 1; then
  14510. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14511. else
  14512. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14513. fi
  14514. else
  14515. gl_cv_size_max='((size_t)~(size_t)0)'
  14516. fi
  14517. fi
  14518. fi
  14519. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14520. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14521. if test "$gl_cv_size_max" != yes; then
  14522. cat >>confdefs.h <<_ACEOF
  14523. #define SIZE_MAX $gl_cv_size_max
  14524. _ACEOF
  14525. fi
  14526. for ac_header in stdint.h
  14527. do
  14528. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14529. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14530. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14531. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14532. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14533. echo $ECHO_N "(cached) $ECHO_C" >&6
  14534. fi
  14535. ac_res=`eval echo '${'$as_ac_Header'}'`
  14536. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14537. echo "${ECHO_T}$ac_res" >&6; }
  14538. else
  14539. # Is the header compilable?
  14540. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14541. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14542. cat >conftest.$ac_ext <<_ACEOF
  14543. /* confdefs.h. */
  14544. _ACEOF
  14545. cat confdefs.h >>conftest.$ac_ext
  14546. cat >>conftest.$ac_ext <<_ACEOF
  14547. /* end confdefs.h. */
  14548. $ac_includes_default
  14549. #include <$ac_header>
  14550. _ACEOF
  14551. rm -f conftest.$ac_objext
  14552. if { (ac_try="$ac_compile"
  14553. case "(($ac_try" in
  14554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14555. *) ac_try_echo=$ac_try;;
  14556. esac
  14557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14558. (eval "$ac_compile") 2>conftest.er1
  14559. ac_status=$?
  14560. grep -v '^ *+' conftest.er1 >conftest.err
  14561. rm -f conftest.er1
  14562. cat conftest.err >&5
  14563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14564. (exit $ac_status); } && {
  14565. test -z "$ac_cxx_werror_flag" ||
  14566. test ! -s conftest.err
  14567. } && test -s conftest.$ac_objext; then
  14568. ac_header_compiler=yes
  14569. else
  14570. echo "$as_me: failed program was:" >&5
  14571. sed 's/^/| /' conftest.$ac_ext >&5
  14572. ac_header_compiler=no
  14573. fi
  14574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14575. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14576. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14577. # Is the header present?
  14578. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14579. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14580. cat >conftest.$ac_ext <<_ACEOF
  14581. /* confdefs.h. */
  14582. _ACEOF
  14583. cat confdefs.h >>conftest.$ac_ext
  14584. cat >>conftest.$ac_ext <<_ACEOF
  14585. /* end confdefs.h. */
  14586. #include <$ac_header>
  14587. _ACEOF
  14588. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14589. case "(($ac_try" in
  14590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14591. *) ac_try_echo=$ac_try;;
  14592. esac
  14593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14594. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14595. ac_status=$?
  14596. grep -v '^ *+' conftest.er1 >conftest.err
  14597. rm -f conftest.er1
  14598. cat conftest.err >&5
  14599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14600. (exit $ac_status); } >/dev/null && {
  14601. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14602. test ! -s conftest.err
  14603. }; then
  14604. ac_header_preproc=yes
  14605. else
  14606. echo "$as_me: failed program was:" >&5
  14607. sed 's/^/| /' conftest.$ac_ext >&5
  14608. ac_header_preproc=no
  14609. fi
  14610. rm -f conftest.err conftest.$ac_ext
  14611. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14612. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14613. # So? What about this header?
  14614. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14615. yes:no: )
  14616. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14617. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14618. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14619. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14620. ac_header_preproc=yes
  14621. ;;
  14622. no:yes:* )
  14623. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14624. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14625. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14626. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14627. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14628. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14629. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14630. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14631. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14632. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14633. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14634. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14635. ( cat <<\_ASBOX
  14636. ## ----------------------------------------------- ##
  14637. ## Report this to t-tujikawa@users.sourceforge.net ##
  14638. ## ----------------------------------------------- ##
  14639. _ASBOX
  14640. ) | sed "s/^/$as_me: WARNING: /" >&2
  14641. ;;
  14642. esac
  14643. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14644. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14645. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14646. echo $ECHO_N "(cached) $ECHO_C" >&6
  14647. else
  14648. eval "$as_ac_Header=\$ac_header_preproc"
  14649. fi
  14650. ac_res=`eval echo '${'$as_ac_Header'}'`
  14651. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14652. echo "${ECHO_T}$ac_res" >&6; }
  14653. fi
  14654. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14655. cat >>confdefs.h <<_ACEOF
  14656. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14657. _ACEOF
  14658. fi
  14659. done
  14660. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14661. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14662. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14663. echo $ECHO_N "(cached) $ECHO_C" >&6
  14664. else
  14665. gt_save_LIBS="$LIBS"
  14666. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14667. cat >conftest.$ac_ext <<_ACEOF
  14668. /* confdefs.h. */
  14669. _ACEOF
  14670. cat confdefs.h >>conftest.$ac_ext
  14671. cat >>conftest.$ac_ext <<_ACEOF
  14672. /* end confdefs.h. */
  14673. #include <CoreFoundation/CFPreferences.h>
  14674. int
  14675. main ()
  14676. {
  14677. CFPreferencesCopyAppValue(NULL, NULL)
  14678. ;
  14679. return 0;
  14680. }
  14681. _ACEOF
  14682. rm -f conftest.$ac_objext conftest$ac_exeext
  14683. if { (ac_try="$ac_link"
  14684. case "(($ac_try" in
  14685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14686. *) ac_try_echo=$ac_try;;
  14687. esac
  14688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14689. (eval "$ac_link") 2>conftest.er1
  14690. ac_status=$?
  14691. grep -v '^ *+' conftest.er1 >conftest.err
  14692. rm -f conftest.er1
  14693. cat conftest.err >&5
  14694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14695. (exit $ac_status); } && {
  14696. test -z "$ac_cxx_werror_flag" ||
  14697. test ! -s conftest.err
  14698. } && test -s conftest$ac_exeext &&
  14699. $as_test_x conftest$ac_exeext; then
  14700. gt_cv_func_CFPreferencesCopyAppValue=yes
  14701. else
  14702. echo "$as_me: failed program was:" >&5
  14703. sed 's/^/| /' conftest.$ac_ext >&5
  14704. gt_cv_func_CFPreferencesCopyAppValue=no
  14705. fi
  14706. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14707. conftest$ac_exeext conftest.$ac_ext
  14708. LIBS="$gt_save_LIBS"
  14709. fi
  14710. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14711. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14712. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14713. cat >>confdefs.h <<\_ACEOF
  14714. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14715. _ACEOF
  14716. fi
  14717. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14718. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14719. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14720. echo $ECHO_N "(cached) $ECHO_C" >&6
  14721. else
  14722. gt_save_LIBS="$LIBS"
  14723. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14724. cat >conftest.$ac_ext <<_ACEOF
  14725. /* confdefs.h. */
  14726. _ACEOF
  14727. cat confdefs.h >>conftest.$ac_ext
  14728. cat >>conftest.$ac_ext <<_ACEOF
  14729. /* end confdefs.h. */
  14730. #include <CoreFoundation/CFLocale.h>
  14731. int
  14732. main ()
  14733. {
  14734. CFLocaleCopyCurrent();
  14735. ;
  14736. return 0;
  14737. }
  14738. _ACEOF
  14739. rm -f conftest.$ac_objext conftest$ac_exeext
  14740. if { (ac_try="$ac_link"
  14741. case "(($ac_try" in
  14742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14743. *) ac_try_echo=$ac_try;;
  14744. esac
  14745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14746. (eval "$ac_link") 2>conftest.er1
  14747. ac_status=$?
  14748. grep -v '^ *+' conftest.er1 >conftest.err
  14749. rm -f conftest.er1
  14750. cat conftest.err >&5
  14751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14752. (exit $ac_status); } && {
  14753. test -z "$ac_cxx_werror_flag" ||
  14754. test ! -s conftest.err
  14755. } && test -s conftest$ac_exeext &&
  14756. $as_test_x conftest$ac_exeext; then
  14757. gt_cv_func_CFLocaleCopyCurrent=yes
  14758. else
  14759. echo "$as_me: failed program was:" >&5
  14760. sed 's/^/| /' conftest.$ac_ext >&5
  14761. gt_cv_func_CFLocaleCopyCurrent=no
  14762. fi
  14763. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14764. conftest$ac_exeext conftest.$ac_ext
  14765. LIBS="$gt_save_LIBS"
  14766. fi
  14767. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14768. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14769. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14770. cat >>confdefs.h <<\_ACEOF
  14771. #define HAVE_CFLOCALECOPYCURRENT 1
  14772. _ACEOF
  14773. fi
  14774. INTL_MACOSX_LIBS=
  14775. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14776. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14777. fi
  14778. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14779. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14780. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14781. echo $ECHO_N "(cached) $ECHO_C" >&6
  14782. else
  14783. cat >conftest.$ac_ext <<_ACEOF
  14784. /* confdefs.h. */
  14785. _ACEOF
  14786. cat confdefs.h >>conftest.$ac_ext
  14787. cat >>conftest.$ac_ext <<_ACEOF
  14788. /* end confdefs.h. */
  14789. $ac_includes_default
  14790. typedef ptrdiff_t ac__type_new_;
  14791. int
  14792. main ()
  14793. {
  14794. if ((ac__type_new_ *) 0)
  14795. return 0;
  14796. if (sizeof (ac__type_new_))
  14797. return 0;
  14798. ;
  14799. return 0;
  14800. }
  14801. _ACEOF
  14802. rm -f conftest.$ac_objext
  14803. if { (ac_try="$ac_compile"
  14804. case "(($ac_try" in
  14805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14806. *) ac_try_echo=$ac_try;;
  14807. esac
  14808. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14809. (eval "$ac_compile") 2>conftest.er1
  14810. ac_status=$?
  14811. grep -v '^ *+' conftest.er1 >conftest.err
  14812. rm -f conftest.er1
  14813. cat conftest.err >&5
  14814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14815. (exit $ac_status); } && {
  14816. test -z "$ac_cxx_werror_flag" ||
  14817. test ! -s conftest.err
  14818. } && test -s conftest.$ac_objext; then
  14819. ac_cv_type_ptrdiff_t=yes
  14820. else
  14821. echo "$as_me: failed program was:" >&5
  14822. sed 's/^/| /' conftest.$ac_ext >&5
  14823. ac_cv_type_ptrdiff_t=no
  14824. fi
  14825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14826. fi
  14827. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14828. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14829. if test $ac_cv_type_ptrdiff_t = yes; then
  14830. :
  14831. else
  14832. cat >>confdefs.h <<\_ACEOF
  14833. #define ptrdiff_t long
  14834. _ACEOF
  14835. fi
  14836. for ac_header in stddef.h stdlib.h string.h
  14837. do
  14838. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14839. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14840. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14841. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14842. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14843. echo $ECHO_N "(cached) $ECHO_C" >&6
  14844. fi
  14845. ac_res=`eval echo '${'$as_ac_Header'}'`
  14846. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14847. echo "${ECHO_T}$ac_res" >&6; }
  14848. else
  14849. # Is the header compilable?
  14850. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14851. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14852. cat >conftest.$ac_ext <<_ACEOF
  14853. /* confdefs.h. */
  14854. _ACEOF
  14855. cat confdefs.h >>conftest.$ac_ext
  14856. cat >>conftest.$ac_ext <<_ACEOF
  14857. /* end confdefs.h. */
  14858. $ac_includes_default
  14859. #include <$ac_header>
  14860. _ACEOF
  14861. rm -f conftest.$ac_objext
  14862. if { (ac_try="$ac_compile"
  14863. case "(($ac_try" in
  14864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14865. *) ac_try_echo=$ac_try;;
  14866. esac
  14867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14868. (eval "$ac_compile") 2>conftest.er1
  14869. ac_status=$?
  14870. grep -v '^ *+' conftest.er1 >conftest.err
  14871. rm -f conftest.er1
  14872. cat conftest.err >&5
  14873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14874. (exit $ac_status); } && {
  14875. test -z "$ac_cxx_werror_flag" ||
  14876. test ! -s conftest.err
  14877. } && test -s conftest.$ac_objext; then
  14878. ac_header_compiler=yes
  14879. else
  14880. echo "$as_me: failed program was:" >&5
  14881. sed 's/^/| /' conftest.$ac_ext >&5
  14882. ac_header_compiler=no
  14883. fi
  14884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14885. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14886. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14887. # Is the header present?
  14888. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14889. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14890. cat >conftest.$ac_ext <<_ACEOF
  14891. /* confdefs.h. */
  14892. _ACEOF
  14893. cat confdefs.h >>conftest.$ac_ext
  14894. cat >>conftest.$ac_ext <<_ACEOF
  14895. /* end confdefs.h. */
  14896. #include <$ac_header>
  14897. _ACEOF
  14898. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14899. case "(($ac_try" in
  14900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14901. *) ac_try_echo=$ac_try;;
  14902. esac
  14903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14904. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14905. ac_status=$?
  14906. grep -v '^ *+' conftest.er1 >conftest.err
  14907. rm -f conftest.er1
  14908. cat conftest.err >&5
  14909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14910. (exit $ac_status); } >/dev/null && {
  14911. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14912. test ! -s conftest.err
  14913. }; then
  14914. ac_header_preproc=yes
  14915. else
  14916. echo "$as_me: failed program was:" >&5
  14917. sed 's/^/| /' conftest.$ac_ext >&5
  14918. ac_header_preproc=no
  14919. fi
  14920. rm -f conftest.err conftest.$ac_ext
  14921. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14922. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14923. # So? What about this header?
  14924. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14925. yes:no: )
  14926. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14927. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14928. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14929. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14930. ac_header_preproc=yes
  14931. ;;
  14932. no:yes:* )
  14933. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14934. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14935. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14936. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14937. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14938. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14939. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14940. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14941. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14942. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14943. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14944. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14945. ( cat <<\_ASBOX
  14946. ## ----------------------------------------------- ##
  14947. ## Report this to t-tujikawa@users.sourceforge.net ##
  14948. ## ----------------------------------------------- ##
  14949. _ASBOX
  14950. ) | sed "s/^/$as_me: WARNING: /" >&2
  14951. ;;
  14952. esac
  14953. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14954. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14955. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14956. echo $ECHO_N "(cached) $ECHO_C" >&6
  14957. else
  14958. eval "$as_ac_Header=\$ac_header_preproc"
  14959. fi
  14960. ac_res=`eval echo '${'$as_ac_Header'}'`
  14961. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14962. echo "${ECHO_T}$ac_res" >&6; }
  14963. fi
  14964. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14965. cat >>confdefs.h <<_ACEOF
  14966. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14967. _ACEOF
  14968. fi
  14969. done
  14970. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14971. do
  14972. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14973. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14974. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14975. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14976. echo $ECHO_N "(cached) $ECHO_C" >&6
  14977. else
  14978. cat >conftest.$ac_ext <<_ACEOF
  14979. /* confdefs.h. */
  14980. _ACEOF
  14981. cat confdefs.h >>conftest.$ac_ext
  14982. cat >>conftest.$ac_ext <<_ACEOF
  14983. /* end confdefs.h. */
  14984. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14985. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14986. #define $ac_func innocuous_$ac_func
  14987. /* System header to define __stub macros and hopefully few prototypes,
  14988. which can conflict with char $ac_func (); below.
  14989. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14990. <limits.h> exists even on freestanding compilers. */
  14991. #ifdef __STDC__
  14992. # include <limits.h>
  14993. #else
  14994. # include <assert.h>
  14995. #endif
  14996. #undef $ac_func
  14997. /* Override any GCC internal prototype to avoid an error.
  14998. Use char because int might match the return type of a GCC
  14999. builtin and then its argument prototype would still apply. */
  15000. #ifdef __cplusplus
  15001. extern "C"
  15002. #endif
  15003. char $ac_func ();
  15004. /* The GNU C library defines this for functions which it implements
  15005. to always fail with ENOSYS. Some functions are actually named
  15006. something starting with __ and the normal name is an alias. */
  15007. #if defined __stub_$ac_func || defined __stub___$ac_func
  15008. choke me
  15009. #endif
  15010. int
  15011. main ()
  15012. {
  15013. return $ac_func ();
  15014. ;
  15015. return 0;
  15016. }
  15017. _ACEOF
  15018. rm -f conftest.$ac_objext conftest$ac_exeext
  15019. if { (ac_try="$ac_link"
  15020. case "(($ac_try" in
  15021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15022. *) ac_try_echo=$ac_try;;
  15023. esac
  15024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15025. (eval "$ac_link") 2>conftest.er1
  15026. ac_status=$?
  15027. grep -v '^ *+' conftest.er1 >conftest.err
  15028. rm -f conftest.er1
  15029. cat conftest.err >&5
  15030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15031. (exit $ac_status); } && {
  15032. test -z "$ac_cxx_werror_flag" ||
  15033. test ! -s conftest.err
  15034. } && test -s conftest$ac_exeext &&
  15035. $as_test_x conftest$ac_exeext; then
  15036. eval "$as_ac_var=yes"
  15037. else
  15038. echo "$as_me: failed program was:" >&5
  15039. sed 's/^/| /' conftest.$ac_ext >&5
  15040. eval "$as_ac_var=no"
  15041. fi
  15042. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15043. conftest$ac_exeext conftest.$ac_ext
  15044. fi
  15045. ac_res=`eval echo '${'$as_ac_var'}'`
  15046. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15047. echo "${ECHO_T}$ac_res" >&6; }
  15048. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15049. cat >>confdefs.h <<_ACEOF
  15050. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15051. _ACEOF
  15052. fi
  15053. done
  15054. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  15055. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  15056. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  15057. echo $ECHO_N "(cached) $ECHO_C" >&6
  15058. else
  15059. cat >conftest.$ac_ext <<_ACEOF
  15060. /* confdefs.h. */
  15061. _ACEOF
  15062. cat confdefs.h >>conftest.$ac_ext
  15063. cat >>conftest.$ac_ext <<_ACEOF
  15064. /* end confdefs.h. */
  15065. #include <stdio.h>
  15066. int
  15067. main ()
  15068. {
  15069. #ifndef _snprintf
  15070. char *p = (char *) _snprintf;
  15071. #endif
  15072. ;
  15073. return 0;
  15074. }
  15075. _ACEOF
  15076. rm -f conftest.$ac_objext
  15077. if { (ac_try="$ac_compile"
  15078. case "(($ac_try" in
  15079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15080. *) ac_try_echo=$ac_try;;
  15081. esac
  15082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15083. (eval "$ac_compile") 2>conftest.er1
  15084. ac_status=$?
  15085. grep -v '^ *+' conftest.er1 >conftest.err
  15086. rm -f conftest.er1
  15087. cat conftest.err >&5
  15088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15089. (exit $ac_status); } && {
  15090. test -z "$ac_cxx_werror_flag" ||
  15091. test ! -s conftest.err
  15092. } && test -s conftest.$ac_objext; then
  15093. ac_cv_have_decl__snprintf=yes
  15094. else
  15095. echo "$as_me: failed program was:" >&5
  15096. sed 's/^/| /' conftest.$ac_ext >&5
  15097. ac_cv_have_decl__snprintf=no
  15098. fi
  15099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15100. fi
  15101. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15102. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  15103. if test $ac_cv_have_decl__snprintf = yes; then
  15104. gt_value=1
  15105. else
  15106. gt_value=0
  15107. fi
  15108. cat >>confdefs.h <<_ACEOF
  15109. #define HAVE_DECL__SNPRINTF $gt_value
  15110. _ACEOF
  15111. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15112. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  15113. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15114. echo $ECHO_N "(cached) $ECHO_C" >&6
  15115. else
  15116. cat >conftest.$ac_ext <<_ACEOF
  15117. /* confdefs.h. */
  15118. _ACEOF
  15119. cat confdefs.h >>conftest.$ac_ext
  15120. cat >>conftest.$ac_ext <<_ACEOF
  15121. /* end confdefs.h. */
  15122. #include <stdio.h>
  15123. int
  15124. main ()
  15125. {
  15126. #ifndef _snwprintf
  15127. char *p = (char *) _snwprintf;
  15128. #endif
  15129. ;
  15130. return 0;
  15131. }
  15132. _ACEOF
  15133. rm -f conftest.$ac_objext
  15134. if { (ac_try="$ac_compile"
  15135. case "(($ac_try" in
  15136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15137. *) ac_try_echo=$ac_try;;
  15138. esac
  15139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15140. (eval "$ac_compile") 2>conftest.er1
  15141. ac_status=$?
  15142. grep -v '^ *+' conftest.er1 >conftest.err
  15143. rm -f conftest.er1
  15144. cat conftest.err >&5
  15145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15146. (exit $ac_status); } && {
  15147. test -z "$ac_cxx_werror_flag" ||
  15148. test ! -s conftest.err
  15149. } && test -s conftest.$ac_objext; then
  15150. ac_cv_have_decl__snwprintf=yes
  15151. else
  15152. echo "$as_me: failed program was:" >&5
  15153. sed 's/^/| /' conftest.$ac_ext >&5
  15154. ac_cv_have_decl__snwprintf=no
  15155. fi
  15156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15157. fi
  15158. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  15159. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  15160. if test $ac_cv_have_decl__snwprintf = yes; then
  15161. gt_value=1
  15162. else
  15163. gt_value=0
  15164. fi
  15165. cat >>confdefs.h <<_ACEOF
  15166. #define HAVE_DECL__SNWPRINTF $gt_value
  15167. _ACEOF
  15168. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  15169. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  15170. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  15171. echo $ECHO_N "(cached) $ECHO_C" >&6
  15172. else
  15173. cat >conftest.$ac_ext <<_ACEOF
  15174. /* confdefs.h. */
  15175. _ACEOF
  15176. cat confdefs.h >>conftest.$ac_ext
  15177. cat >>conftest.$ac_ext <<_ACEOF
  15178. /* end confdefs.h. */
  15179. #include <stdio.h>
  15180. int
  15181. main ()
  15182. {
  15183. #ifndef getc_unlocked
  15184. char *p = (char *) getc_unlocked;
  15185. #endif
  15186. ;
  15187. return 0;
  15188. }
  15189. _ACEOF
  15190. rm -f conftest.$ac_objext
  15191. if { (ac_try="$ac_compile"
  15192. case "(($ac_try" in
  15193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15194. *) ac_try_echo=$ac_try;;
  15195. esac
  15196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15197. (eval "$ac_compile") 2>conftest.er1
  15198. ac_status=$?
  15199. grep -v '^ *+' conftest.er1 >conftest.err
  15200. rm -f conftest.er1
  15201. cat conftest.err >&5
  15202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15203. (exit $ac_status); } && {
  15204. test -z "$ac_cxx_werror_flag" ||
  15205. test ! -s conftest.err
  15206. } && test -s conftest.$ac_objext; then
  15207. ac_cv_have_decl_getc_unlocked=yes
  15208. else
  15209. echo "$as_me: failed program was:" >&5
  15210. sed 's/^/| /' conftest.$ac_ext >&5
  15211. ac_cv_have_decl_getc_unlocked=no
  15212. fi
  15213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15214. fi
  15215. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  15216. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  15217. if test $ac_cv_have_decl_getc_unlocked = yes; then
  15218. gt_value=1
  15219. else
  15220. gt_value=0
  15221. fi
  15222. cat >>confdefs.h <<_ACEOF
  15223. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  15224. _ACEOF
  15225. case $gt_cv_func_printf_posix in
  15226. *yes) HAVE_POSIX_PRINTF=1 ;;
  15227. *) HAVE_POSIX_PRINTF=0 ;;
  15228. esac
  15229. if test "$ac_cv_func_asprintf" = yes; then
  15230. HAVE_ASPRINTF=1
  15231. else
  15232. HAVE_ASPRINTF=0
  15233. fi
  15234. if test "$ac_cv_func_snprintf" = yes; then
  15235. HAVE_SNPRINTF=1
  15236. else
  15237. HAVE_SNPRINTF=0
  15238. fi
  15239. if test "$ac_cv_func_wprintf" = yes; then
  15240. HAVE_WPRINTF=1
  15241. else
  15242. HAVE_WPRINTF=0
  15243. fi
  15244. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  15245. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  15246. if test "${am_cv_langinfo_codeset+set}" = set; then
  15247. echo $ECHO_N "(cached) $ECHO_C" >&6
  15248. else
  15249. cat >conftest.$ac_ext <<_ACEOF
  15250. /* confdefs.h. */
  15251. _ACEOF
  15252. cat confdefs.h >>conftest.$ac_ext
  15253. cat >>conftest.$ac_ext <<_ACEOF
  15254. /* end confdefs.h. */
  15255. #include <langinfo.h>
  15256. int
  15257. main ()
  15258. {
  15259. char* cs = nl_langinfo(CODESET); return !cs;
  15260. ;
  15261. return 0;
  15262. }
  15263. _ACEOF
  15264. rm -f conftest.$ac_objext conftest$ac_exeext
  15265. if { (ac_try="$ac_link"
  15266. case "(($ac_try" in
  15267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15268. *) ac_try_echo=$ac_try;;
  15269. esac
  15270. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15271. (eval "$ac_link") 2>conftest.er1
  15272. ac_status=$?
  15273. grep -v '^ *+' conftest.er1 >conftest.err
  15274. rm -f conftest.er1
  15275. cat conftest.err >&5
  15276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15277. (exit $ac_status); } && {
  15278. test -z "$ac_cxx_werror_flag" ||
  15279. test ! -s conftest.err
  15280. } && test -s conftest$ac_exeext &&
  15281. $as_test_x conftest$ac_exeext; then
  15282. am_cv_langinfo_codeset=yes
  15283. else
  15284. echo "$as_me: failed program was:" >&5
  15285. sed 's/^/| /' conftest.$ac_ext >&5
  15286. am_cv_langinfo_codeset=no
  15287. fi
  15288. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15289. conftest$ac_exeext conftest.$ac_ext
  15290. fi
  15291. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  15292. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  15293. if test $am_cv_langinfo_codeset = yes; then
  15294. cat >>confdefs.h <<\_ACEOF
  15295. #define HAVE_LANGINFO_CODESET 1
  15296. _ACEOF
  15297. fi
  15298. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  15299. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  15300. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  15301. echo $ECHO_N "(cached) $ECHO_C" >&6
  15302. else
  15303. cat >conftest.$ac_ext <<_ACEOF
  15304. /* confdefs.h. */
  15305. _ACEOF
  15306. cat confdefs.h >>conftest.$ac_ext
  15307. cat >>conftest.$ac_ext <<_ACEOF
  15308. /* end confdefs.h. */
  15309. #include <locale.h>
  15310. int
  15311. main ()
  15312. {
  15313. return LC_MESSAGES
  15314. ;
  15315. return 0;
  15316. }
  15317. _ACEOF
  15318. rm -f conftest.$ac_objext conftest$ac_exeext
  15319. if { (ac_try="$ac_link"
  15320. case "(($ac_try" in
  15321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15322. *) ac_try_echo=$ac_try;;
  15323. esac
  15324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15325. (eval "$ac_link") 2>conftest.er1
  15326. ac_status=$?
  15327. grep -v '^ *+' conftest.er1 >conftest.err
  15328. rm -f conftest.er1
  15329. cat conftest.err >&5
  15330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15331. (exit $ac_status); } && {
  15332. test -z "$ac_cxx_werror_flag" ||
  15333. test ! -s conftest.err
  15334. } && test -s conftest$ac_exeext &&
  15335. $as_test_x conftest$ac_exeext; then
  15336. gt_cv_val_LC_MESSAGES=yes
  15337. else
  15338. echo "$as_me: failed program was:" >&5
  15339. sed 's/^/| /' conftest.$ac_ext >&5
  15340. gt_cv_val_LC_MESSAGES=no
  15341. fi
  15342. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15343. conftest$ac_exeext conftest.$ac_ext
  15344. fi
  15345. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15346. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15347. if test $gt_cv_val_LC_MESSAGES = yes; then
  15348. cat >>confdefs.h <<\_ACEOF
  15349. #define HAVE_LC_MESSAGES 1
  15350. _ACEOF
  15351. fi
  15352. if test "$enable_shared" = yes; then
  15353. case "$host_os" in
  15354. mingw* | cygwin*) is_woe32dll=yes ;;
  15355. *) is_woe32dll=no ;;
  15356. esac
  15357. else
  15358. is_woe32dll=no
  15359. fi
  15360. WOE32DLL=$is_woe32dll
  15361. case "$host_os" in
  15362. mingw* | cygwin*) is_woe32=yes ;;
  15363. *) is_woe32=no ;;
  15364. esac
  15365. WOE32=$is_woe32
  15366. if test $WOE32 = yes; then
  15367. if test -n "$ac_tool_prefix"; then
  15368. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15369. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15370. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15371. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15372. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15373. echo $ECHO_N "(cached) $ECHO_C" >&6
  15374. else
  15375. if test -n "$WINDRES"; then
  15376. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15377. else
  15378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15379. for as_dir in $PATH
  15380. do
  15381. IFS=$as_save_IFS
  15382. test -z "$as_dir" && as_dir=.
  15383. for ac_exec_ext in '' $ac_executable_extensions; do
  15384. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15385. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15386. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15387. break 2
  15388. fi
  15389. done
  15390. done
  15391. IFS=$as_save_IFS
  15392. fi
  15393. fi
  15394. WINDRES=$ac_cv_prog_WINDRES
  15395. if test -n "$WINDRES"; then
  15396. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15397. echo "${ECHO_T}$WINDRES" >&6; }
  15398. else
  15399. { echo "$as_me:$LINENO: result: no" >&5
  15400. echo "${ECHO_T}no" >&6; }
  15401. fi
  15402. fi
  15403. if test -z "$ac_cv_prog_WINDRES"; then
  15404. ac_ct_WINDRES=$WINDRES
  15405. # Extract the first word of "windres", so it can be a program name with args.
  15406. set dummy windres; ac_word=$2
  15407. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15408. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15409. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15410. echo $ECHO_N "(cached) $ECHO_C" >&6
  15411. else
  15412. if test -n "$ac_ct_WINDRES"; then
  15413. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15414. else
  15415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15416. for as_dir in $PATH
  15417. do
  15418. IFS=$as_save_IFS
  15419. test -z "$as_dir" && as_dir=.
  15420. for ac_exec_ext in '' $ac_executable_extensions; do
  15421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15422. ac_cv_prog_ac_ct_WINDRES="windres"
  15423. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15424. break 2
  15425. fi
  15426. done
  15427. done
  15428. IFS=$as_save_IFS
  15429. fi
  15430. fi
  15431. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15432. if test -n "$ac_ct_WINDRES"; then
  15433. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15434. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15435. else
  15436. { echo "$as_me:$LINENO: result: no" >&5
  15437. echo "${ECHO_T}no" >&6; }
  15438. fi
  15439. if test "x$ac_ct_WINDRES" = x; then
  15440. WINDRES=""
  15441. else
  15442. case $cross_compiling:$ac_tool_warned in
  15443. yes:)
  15444. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15445. whose name does not start with the host triplet. If you think this
  15446. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15447. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15448. whose name does not start with the host triplet. If you think this
  15449. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15450. ac_tool_warned=yes ;;
  15451. esac
  15452. WINDRES=$ac_ct_WINDRES
  15453. fi
  15454. else
  15455. WINDRES="$ac_cv_prog_WINDRES"
  15456. fi
  15457. fi
  15458. case "$host_os" in
  15459. hpux*) LTLIBC="" ;;
  15460. *) LTLIBC="-lc" ;;
  15461. esac
  15462. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15463. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15464. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15465. echo $ECHO_N "(cached) $ECHO_C" >&6
  15466. else
  15467. gt_save_LIBS="$LIBS"
  15468. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15469. cat >conftest.$ac_ext <<_ACEOF
  15470. /* confdefs.h. */
  15471. _ACEOF
  15472. cat confdefs.h >>conftest.$ac_ext
  15473. cat >>conftest.$ac_ext <<_ACEOF
  15474. /* end confdefs.h. */
  15475. #include <CoreFoundation/CFPreferences.h>
  15476. int
  15477. main ()
  15478. {
  15479. CFPreferencesCopyAppValue(NULL, NULL)
  15480. ;
  15481. return 0;
  15482. }
  15483. _ACEOF
  15484. rm -f conftest.$ac_objext conftest$ac_exeext
  15485. if { (ac_try="$ac_link"
  15486. case "(($ac_try" in
  15487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15488. *) ac_try_echo=$ac_try;;
  15489. esac
  15490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15491. (eval "$ac_link") 2>conftest.er1
  15492. ac_status=$?
  15493. grep -v '^ *+' conftest.er1 >conftest.err
  15494. rm -f conftest.er1
  15495. cat conftest.err >&5
  15496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15497. (exit $ac_status); } && {
  15498. test -z "$ac_cxx_werror_flag" ||
  15499. test ! -s conftest.err
  15500. } && test -s conftest$ac_exeext &&
  15501. $as_test_x conftest$ac_exeext; then
  15502. gt_cv_func_CFPreferencesCopyAppValue=yes
  15503. else
  15504. echo "$as_me: failed program was:" >&5
  15505. sed 's/^/| /' conftest.$ac_ext >&5
  15506. gt_cv_func_CFPreferencesCopyAppValue=no
  15507. fi
  15508. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15509. conftest$ac_exeext conftest.$ac_ext
  15510. LIBS="$gt_save_LIBS"
  15511. fi
  15512. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15513. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15514. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15515. cat >>confdefs.h <<\_ACEOF
  15516. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15517. _ACEOF
  15518. fi
  15519. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15520. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15521. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15522. echo $ECHO_N "(cached) $ECHO_C" >&6
  15523. else
  15524. gt_save_LIBS="$LIBS"
  15525. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15526. cat >conftest.$ac_ext <<_ACEOF
  15527. /* confdefs.h. */
  15528. _ACEOF
  15529. cat confdefs.h >>conftest.$ac_ext
  15530. cat >>conftest.$ac_ext <<_ACEOF
  15531. /* end confdefs.h. */
  15532. #include <CoreFoundation/CFLocale.h>
  15533. int
  15534. main ()
  15535. {
  15536. CFLocaleCopyCurrent();
  15537. ;
  15538. return 0;
  15539. }
  15540. _ACEOF
  15541. rm -f conftest.$ac_objext conftest$ac_exeext
  15542. if { (ac_try="$ac_link"
  15543. case "(($ac_try" in
  15544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15545. *) ac_try_echo=$ac_try;;
  15546. esac
  15547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15548. (eval "$ac_link") 2>conftest.er1
  15549. ac_status=$?
  15550. grep -v '^ *+' conftest.er1 >conftest.err
  15551. rm -f conftest.er1
  15552. cat conftest.err >&5
  15553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15554. (exit $ac_status); } && {
  15555. test -z "$ac_cxx_werror_flag" ||
  15556. test ! -s conftest.err
  15557. } && test -s conftest$ac_exeext &&
  15558. $as_test_x conftest$ac_exeext; then
  15559. gt_cv_func_CFLocaleCopyCurrent=yes
  15560. else
  15561. echo "$as_me: failed program was:" >&5
  15562. sed 's/^/| /' conftest.$ac_ext >&5
  15563. gt_cv_func_CFLocaleCopyCurrent=no
  15564. fi
  15565. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15566. conftest$ac_exeext conftest.$ac_ext
  15567. LIBS="$gt_save_LIBS"
  15568. fi
  15569. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15570. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15571. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15572. cat >>confdefs.h <<\_ACEOF
  15573. #define HAVE_CFLOCALECOPYCURRENT 1
  15574. _ACEOF
  15575. fi
  15576. INTL_MACOSX_LIBS=
  15577. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15578. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15579. fi
  15580. BUILD_INCLUDED_LIBINTL=no
  15581. USE_INCLUDED_LIBINTL=no
  15582. LIBINTL=
  15583. LTLIBINTL=
  15584. POSUB=
  15585. case " $gt_needs " in
  15586. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15587. *" need-ngettext "*) gt_api_version=2 ;;
  15588. *) gt_api_version=1 ;;
  15589. esac
  15590. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15591. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15592. if test "$USE_NLS" = "yes"; then
  15593. gt_use_preinstalled_gnugettext=no
  15594. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15595. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15596. # Check whether --with-included-gettext was given.
  15597. if test "${with_included_gettext+set}" = set; then
  15598. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15599. else
  15600. nls_cv_force_use_gnu_gettext=no
  15601. fi
  15602. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15603. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15604. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15605. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15606. if test $gt_api_version -ge 3; then
  15607. gt_revision_test_code='
  15608. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15609. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15610. #endif
  15611. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15612. '
  15613. else
  15614. gt_revision_test_code=
  15615. fi
  15616. if test $gt_api_version -ge 2; then
  15617. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15618. else
  15619. gt_expression_test_code=
  15620. fi
  15621. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15622. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15623. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15624. echo $ECHO_N "(cached) $ECHO_C" >&6
  15625. else
  15626. cat >conftest.$ac_ext <<_ACEOF
  15627. /* confdefs.h. */
  15628. _ACEOF
  15629. cat confdefs.h >>conftest.$ac_ext
  15630. cat >>conftest.$ac_ext <<_ACEOF
  15631. /* end confdefs.h. */
  15632. #include <libintl.h>
  15633. $gt_revision_test_code
  15634. extern int _nl_msg_cat_cntr;
  15635. extern int *_nl_domain_bindings;
  15636. int
  15637. main ()
  15638. {
  15639. bindtextdomain ("", "");
  15640. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15641. ;
  15642. return 0;
  15643. }
  15644. _ACEOF
  15645. rm -f conftest.$ac_objext conftest$ac_exeext
  15646. if { (ac_try="$ac_link"
  15647. case "(($ac_try" in
  15648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15649. *) ac_try_echo=$ac_try;;
  15650. esac
  15651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15652. (eval "$ac_link") 2>conftest.er1
  15653. ac_status=$?
  15654. grep -v '^ *+' conftest.er1 >conftest.err
  15655. rm -f conftest.er1
  15656. cat conftest.err >&5
  15657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15658. (exit $ac_status); } && {
  15659. test -z "$ac_cxx_werror_flag" ||
  15660. test ! -s conftest.err
  15661. } && test -s conftest$ac_exeext &&
  15662. $as_test_x conftest$ac_exeext; then
  15663. eval "$gt_func_gnugettext_libc=yes"
  15664. else
  15665. echo "$as_me: failed program was:" >&5
  15666. sed 's/^/| /' conftest.$ac_ext >&5
  15667. eval "$gt_func_gnugettext_libc=no"
  15668. fi
  15669. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15670. conftest$ac_exeext conftest.$ac_ext
  15671. fi
  15672. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15673. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15674. echo "${ECHO_T}$ac_res" >&6; }
  15675. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15676. use_additional=yes
  15677. acl_save_prefix="$prefix"
  15678. prefix="$acl_final_prefix"
  15679. acl_save_exec_prefix="$exec_prefix"
  15680. exec_prefix="$acl_final_exec_prefix"
  15681. eval additional_includedir=\"$includedir\"
  15682. eval additional_libdir=\"$libdir\"
  15683. exec_prefix="$acl_save_exec_prefix"
  15684. prefix="$acl_save_prefix"
  15685. # Check whether --with-libintl-prefix was given.
  15686. if test "${with_libintl_prefix+set}" = set; then
  15687. withval=$with_libintl_prefix;
  15688. if test "X$withval" = "Xno"; then
  15689. use_additional=no
  15690. else
  15691. if test "X$withval" = "X"; then
  15692. acl_save_prefix="$prefix"
  15693. prefix="$acl_final_prefix"
  15694. acl_save_exec_prefix="$exec_prefix"
  15695. exec_prefix="$acl_final_exec_prefix"
  15696. eval additional_includedir=\"$includedir\"
  15697. eval additional_libdir=\"$libdir\"
  15698. exec_prefix="$acl_save_exec_prefix"
  15699. prefix="$acl_save_prefix"
  15700. else
  15701. additional_includedir="$withval/include"
  15702. additional_libdir="$withval/$acl_libdirstem"
  15703. fi
  15704. fi
  15705. fi
  15706. LIBINTL=
  15707. LTLIBINTL=
  15708. INCINTL=
  15709. LIBINTL_PREFIX=
  15710. rpathdirs=
  15711. ltrpathdirs=
  15712. names_already_handled=
  15713. names_next_round='intl '
  15714. while test -n "$names_next_round"; do
  15715. names_this_round="$names_next_round"
  15716. names_next_round=
  15717. for name in $names_this_round; do
  15718. already_handled=
  15719. for n in $names_already_handled; do
  15720. if test "$n" = "$name"; then
  15721. already_handled=yes
  15722. break
  15723. fi
  15724. done
  15725. if test -z "$already_handled"; then
  15726. names_already_handled="$names_already_handled $name"
  15727. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15728. eval value=\"\$HAVE_LIB$uppername\"
  15729. if test -n "$value"; then
  15730. if test "$value" = yes; then
  15731. eval value=\"\$LIB$uppername\"
  15732. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15733. eval value=\"\$LTLIB$uppername\"
  15734. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15735. else
  15736. :
  15737. fi
  15738. else
  15739. found_dir=
  15740. found_la=
  15741. found_so=
  15742. found_a=
  15743. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15744. if test -n "$acl_shlibext"; then
  15745. shrext=".$acl_shlibext" # typically: shrext=.so
  15746. else
  15747. shrext=
  15748. fi
  15749. if test $use_additional = yes; then
  15750. dir="$additional_libdir"
  15751. if test -n "$acl_shlibext"; then
  15752. if test -f "$dir/$libname$shrext"; then
  15753. found_dir="$dir"
  15754. found_so="$dir/$libname$shrext"
  15755. else
  15756. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15757. ver=`(cd "$dir" && \
  15758. for f in "$libname$shrext".*; do echo "$f"; done \
  15759. | sed -e "s,^$libname$shrext\\\\.,," \
  15760. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15761. | sed 1q ) 2>/dev/null`
  15762. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15763. found_dir="$dir"
  15764. found_so="$dir/$libname$shrext.$ver"
  15765. fi
  15766. else
  15767. eval library_names=\"$acl_library_names_spec\"
  15768. for f in $library_names; do
  15769. if test -f "$dir/$f"; then
  15770. found_dir="$dir"
  15771. found_so="$dir/$f"
  15772. break
  15773. fi
  15774. done
  15775. fi
  15776. fi
  15777. fi
  15778. if test "X$found_dir" = "X"; then
  15779. if test -f "$dir/$libname.$acl_libext"; then
  15780. found_dir="$dir"
  15781. found_a="$dir/$libname.$acl_libext"
  15782. fi
  15783. fi
  15784. if test "X$found_dir" != "X"; then
  15785. if test -f "$dir/$libname.la"; then
  15786. found_la="$dir/$libname.la"
  15787. fi
  15788. fi
  15789. fi
  15790. if test "X$found_dir" = "X"; then
  15791. for x in $LDFLAGS $LTLIBINTL; do
  15792. acl_save_prefix="$prefix"
  15793. prefix="$acl_final_prefix"
  15794. acl_save_exec_prefix="$exec_prefix"
  15795. exec_prefix="$acl_final_exec_prefix"
  15796. eval x=\"$x\"
  15797. exec_prefix="$acl_save_exec_prefix"
  15798. prefix="$acl_save_prefix"
  15799. case "$x" in
  15800. -L*)
  15801. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15802. if test -n "$acl_shlibext"; then
  15803. if test -f "$dir/$libname$shrext"; then
  15804. found_dir="$dir"
  15805. found_so="$dir/$libname$shrext"
  15806. else
  15807. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15808. ver=`(cd "$dir" && \
  15809. for f in "$libname$shrext".*; do echo "$f"; done \
  15810. | sed -e "s,^$libname$shrext\\\\.,," \
  15811. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15812. | sed 1q ) 2>/dev/null`
  15813. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15814. found_dir="$dir"
  15815. found_so="$dir/$libname$shrext.$ver"
  15816. fi
  15817. else
  15818. eval library_names=\"$acl_library_names_spec\"
  15819. for f in $library_names; do
  15820. if test -f "$dir/$f"; then
  15821. found_dir="$dir"
  15822. found_so="$dir/$f"
  15823. break
  15824. fi
  15825. done
  15826. fi
  15827. fi
  15828. fi
  15829. if test "X$found_dir" = "X"; then
  15830. if test -f "$dir/$libname.$acl_libext"; then
  15831. found_dir="$dir"
  15832. found_a="$dir/$libname.$acl_libext"
  15833. fi
  15834. fi
  15835. if test "X$found_dir" != "X"; then
  15836. if test -f "$dir/$libname.la"; then
  15837. found_la="$dir/$libname.la"
  15838. fi
  15839. fi
  15840. ;;
  15841. esac
  15842. if test "X$found_dir" != "X"; then
  15843. break
  15844. fi
  15845. done
  15846. fi
  15847. if test "X$found_dir" != "X"; then
  15848. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15849. if test "X$found_so" != "X"; then
  15850. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15851. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15852. else
  15853. haveit=
  15854. for x in $ltrpathdirs; do
  15855. if test "X$x" = "X$found_dir"; then
  15856. haveit=yes
  15857. break
  15858. fi
  15859. done
  15860. if test -z "$haveit"; then
  15861. ltrpathdirs="$ltrpathdirs $found_dir"
  15862. fi
  15863. if test "$acl_hardcode_direct" = yes; then
  15864. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15865. else
  15866. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15867. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15868. haveit=
  15869. for x in $rpathdirs; do
  15870. if test "X$x" = "X$found_dir"; then
  15871. haveit=yes
  15872. break
  15873. fi
  15874. done
  15875. if test -z "$haveit"; then
  15876. rpathdirs="$rpathdirs $found_dir"
  15877. fi
  15878. else
  15879. haveit=
  15880. for x in $LDFLAGS $LIBINTL; do
  15881. acl_save_prefix="$prefix"
  15882. prefix="$acl_final_prefix"
  15883. acl_save_exec_prefix="$exec_prefix"
  15884. exec_prefix="$acl_final_exec_prefix"
  15885. eval x=\"$x\"
  15886. exec_prefix="$acl_save_exec_prefix"
  15887. prefix="$acl_save_prefix"
  15888. if test "X$x" = "X-L$found_dir"; then
  15889. haveit=yes
  15890. break
  15891. fi
  15892. done
  15893. if test -z "$haveit"; then
  15894. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15895. fi
  15896. if test "$acl_hardcode_minus_L" != no; then
  15897. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15898. else
  15899. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15900. fi
  15901. fi
  15902. fi
  15903. fi
  15904. else
  15905. if test "X$found_a" != "X"; then
  15906. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15907. else
  15908. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15909. fi
  15910. fi
  15911. additional_includedir=
  15912. case "$found_dir" in
  15913. */$acl_libdirstem | */$acl_libdirstem/)
  15914. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15915. LIBINTL_PREFIX="$basedir"
  15916. additional_includedir="$basedir/include"
  15917. ;;
  15918. esac
  15919. if test "X$additional_includedir" != "X"; then
  15920. if test "X$additional_includedir" != "X/usr/include"; then
  15921. haveit=
  15922. if test "X$additional_includedir" = "X/usr/local/include"; then
  15923. if test -n "$GCC"; then
  15924. case $host_os in
  15925. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15926. esac
  15927. fi
  15928. fi
  15929. if test -z "$haveit"; then
  15930. for x in $CPPFLAGS $INCINTL; do
  15931. acl_save_prefix="$prefix"
  15932. prefix="$acl_final_prefix"
  15933. acl_save_exec_prefix="$exec_prefix"
  15934. exec_prefix="$acl_final_exec_prefix"
  15935. eval x=\"$x\"
  15936. exec_prefix="$acl_save_exec_prefix"
  15937. prefix="$acl_save_prefix"
  15938. if test "X$x" = "X-I$additional_includedir"; then
  15939. haveit=yes
  15940. break
  15941. fi
  15942. done
  15943. if test -z "$haveit"; then
  15944. if test -d "$additional_includedir"; then
  15945. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15946. fi
  15947. fi
  15948. fi
  15949. fi
  15950. fi
  15951. if test -n "$found_la"; then
  15952. save_libdir="$libdir"
  15953. case "$found_la" in
  15954. */* | *\\*) . "$found_la" ;;
  15955. *) . "./$found_la" ;;
  15956. esac
  15957. libdir="$save_libdir"
  15958. for dep in $dependency_libs; do
  15959. case "$dep" in
  15960. -L*)
  15961. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15962. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15963. haveit=
  15964. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15965. if test -n "$GCC"; then
  15966. case $host_os in
  15967. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15968. esac
  15969. fi
  15970. fi
  15971. if test -z "$haveit"; then
  15972. haveit=
  15973. for x in $LDFLAGS $LIBINTL; do
  15974. acl_save_prefix="$prefix"
  15975. prefix="$acl_final_prefix"
  15976. acl_save_exec_prefix="$exec_prefix"
  15977. exec_prefix="$acl_final_exec_prefix"
  15978. eval x=\"$x\"
  15979. exec_prefix="$acl_save_exec_prefix"
  15980. prefix="$acl_save_prefix"
  15981. if test "X$x" = "X-L$additional_libdir"; then
  15982. haveit=yes
  15983. break
  15984. fi
  15985. done
  15986. if test -z "$haveit"; then
  15987. if test -d "$additional_libdir"; then
  15988. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15989. fi
  15990. fi
  15991. haveit=
  15992. for x in $LDFLAGS $LTLIBINTL; do
  15993. acl_save_prefix="$prefix"
  15994. prefix="$acl_final_prefix"
  15995. acl_save_exec_prefix="$exec_prefix"
  15996. exec_prefix="$acl_final_exec_prefix"
  15997. eval x=\"$x\"
  15998. exec_prefix="$acl_save_exec_prefix"
  15999. prefix="$acl_save_prefix"
  16000. if test "X$x" = "X-L$additional_libdir"; then
  16001. haveit=yes
  16002. break
  16003. fi
  16004. done
  16005. if test -z "$haveit"; then
  16006. if test -d "$additional_libdir"; then
  16007. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  16008. fi
  16009. fi
  16010. fi
  16011. fi
  16012. ;;
  16013. -R*)
  16014. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  16015. if test "$enable_rpath" != no; then
  16016. haveit=
  16017. for x in $rpathdirs; do
  16018. if test "X$x" = "X$dir"; then
  16019. haveit=yes
  16020. break
  16021. fi
  16022. done
  16023. if test -z "$haveit"; then
  16024. rpathdirs="$rpathdirs $dir"
  16025. fi
  16026. haveit=
  16027. for x in $ltrpathdirs; do
  16028. if test "X$x" = "X$dir"; then
  16029. haveit=yes
  16030. break
  16031. fi
  16032. done
  16033. if test -z "$haveit"; then
  16034. ltrpathdirs="$ltrpathdirs $dir"
  16035. fi
  16036. fi
  16037. ;;
  16038. -l*)
  16039. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16040. ;;
  16041. *.la)
  16042. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16043. ;;
  16044. *)
  16045. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  16046. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  16047. ;;
  16048. esac
  16049. done
  16050. fi
  16051. else
  16052. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16053. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  16054. fi
  16055. fi
  16056. fi
  16057. done
  16058. done
  16059. if test "X$rpathdirs" != "X"; then
  16060. if test -n "$acl_hardcode_libdir_separator"; then
  16061. alldirs=
  16062. for found_dir in $rpathdirs; do
  16063. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  16064. done
  16065. acl_save_libdir="$libdir"
  16066. libdir="$alldirs"
  16067. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16068. libdir="$acl_save_libdir"
  16069. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16070. else
  16071. for found_dir in $rpathdirs; do
  16072. acl_save_libdir="$libdir"
  16073. libdir="$found_dir"
  16074. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16075. libdir="$acl_save_libdir"
  16076. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16077. done
  16078. fi
  16079. fi
  16080. if test "X$ltrpathdirs" != "X"; then
  16081. for found_dir in $ltrpathdirs; do
  16082. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  16083. done
  16084. fi
  16085. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  16086. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  16087. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  16088. echo $ECHO_N "(cached) $ECHO_C" >&6
  16089. else
  16090. gt_save_CPPFLAGS="$CPPFLAGS"
  16091. CPPFLAGS="$CPPFLAGS $INCINTL"
  16092. gt_save_LIBS="$LIBS"
  16093. LIBS="$LIBS $LIBINTL"
  16094. cat >conftest.$ac_ext <<_ACEOF
  16095. /* confdefs.h. */
  16096. _ACEOF
  16097. cat confdefs.h >>conftest.$ac_ext
  16098. cat >>conftest.$ac_ext <<_ACEOF
  16099. /* end confdefs.h. */
  16100. #include <libintl.h>
  16101. $gt_revision_test_code
  16102. extern int _nl_msg_cat_cntr;
  16103. extern
  16104. #ifdef __cplusplus
  16105. "C"
  16106. #endif
  16107. const char *_nl_expand_alias (const char *);
  16108. int
  16109. main ()
  16110. {
  16111. bindtextdomain ("", "");
  16112. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16113. ;
  16114. return 0;
  16115. }
  16116. _ACEOF
  16117. rm -f conftest.$ac_objext conftest$ac_exeext
  16118. if { (ac_try="$ac_link"
  16119. case "(($ac_try" in
  16120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16121. *) ac_try_echo=$ac_try;;
  16122. esac
  16123. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16124. (eval "$ac_link") 2>conftest.er1
  16125. ac_status=$?
  16126. grep -v '^ *+' conftest.er1 >conftest.err
  16127. rm -f conftest.er1
  16128. cat conftest.err >&5
  16129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16130. (exit $ac_status); } && {
  16131. test -z "$ac_cxx_werror_flag" ||
  16132. test ! -s conftest.err
  16133. } && test -s conftest$ac_exeext &&
  16134. $as_test_x conftest$ac_exeext; then
  16135. eval "$gt_func_gnugettext_libintl=yes"
  16136. else
  16137. echo "$as_me: failed program was:" >&5
  16138. sed 's/^/| /' conftest.$ac_ext >&5
  16139. eval "$gt_func_gnugettext_libintl=no"
  16140. fi
  16141. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16142. conftest$ac_exeext conftest.$ac_ext
  16143. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  16144. LIBS="$LIBS $LIBICONV"
  16145. cat >conftest.$ac_ext <<_ACEOF
  16146. /* confdefs.h. */
  16147. _ACEOF
  16148. cat confdefs.h >>conftest.$ac_ext
  16149. cat >>conftest.$ac_ext <<_ACEOF
  16150. /* end confdefs.h. */
  16151. #include <libintl.h>
  16152. $gt_revision_test_code
  16153. extern int _nl_msg_cat_cntr;
  16154. extern
  16155. #ifdef __cplusplus
  16156. "C"
  16157. #endif
  16158. const char *_nl_expand_alias (const char *);
  16159. int
  16160. main ()
  16161. {
  16162. bindtextdomain ("", "");
  16163. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16164. ;
  16165. return 0;
  16166. }
  16167. _ACEOF
  16168. rm -f conftest.$ac_objext conftest$ac_exeext
  16169. if { (ac_try="$ac_link"
  16170. case "(($ac_try" in
  16171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16172. *) ac_try_echo=$ac_try;;
  16173. esac
  16174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16175. (eval "$ac_link") 2>conftest.er1
  16176. ac_status=$?
  16177. grep -v '^ *+' conftest.er1 >conftest.err
  16178. rm -f conftest.er1
  16179. cat conftest.err >&5
  16180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16181. (exit $ac_status); } && {
  16182. test -z "$ac_cxx_werror_flag" ||
  16183. test ! -s conftest.err
  16184. } && test -s conftest$ac_exeext &&
  16185. $as_test_x conftest$ac_exeext; then
  16186. LIBINTL="$LIBINTL $LIBICONV"
  16187. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  16188. eval "$gt_func_gnugettext_libintl=yes"
  16189. else
  16190. echo "$as_me: failed program was:" >&5
  16191. sed 's/^/| /' conftest.$ac_ext >&5
  16192. fi
  16193. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16194. conftest$ac_exeext conftest.$ac_ext
  16195. fi
  16196. CPPFLAGS="$gt_save_CPPFLAGS"
  16197. LIBS="$gt_save_LIBS"
  16198. fi
  16199. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  16200. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16201. echo "${ECHO_T}$ac_res" >&6; }
  16202. fi
  16203. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  16204. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  16205. && test "$PACKAGE" != gettext-runtime \
  16206. && test "$PACKAGE" != gettext-tools; }; then
  16207. gt_use_preinstalled_gnugettext=yes
  16208. else
  16209. LIBINTL=
  16210. LTLIBINTL=
  16211. INCINTL=
  16212. fi
  16213. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  16214. nls_cv_use_gnu_gettext=yes
  16215. fi
  16216. fi
  16217. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  16218. BUILD_INCLUDED_LIBINTL=yes
  16219. USE_INCLUDED_LIBINTL=yes
  16220. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  16221. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  16222. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  16223. fi
  16224. CATOBJEXT=
  16225. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16226. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16227. CATOBJEXT=.gmo
  16228. fi
  16229. if test -n "$INTL_MACOSX_LIBS"; then
  16230. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16231. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16232. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  16233. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  16234. fi
  16235. fi
  16236. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16237. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16238. cat >>confdefs.h <<\_ACEOF
  16239. #define ENABLE_NLS 1
  16240. _ACEOF
  16241. else
  16242. USE_NLS=no
  16243. fi
  16244. fi
  16245. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  16246. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  16247. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  16248. echo "${ECHO_T}$USE_NLS" >&6; }
  16249. if test "$USE_NLS" = "yes"; then
  16250. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  16251. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  16252. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16253. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16254. gt_source="external libintl"
  16255. else
  16256. gt_source="libc"
  16257. fi
  16258. else
  16259. gt_source="included intl directory"
  16260. fi
  16261. { echo "$as_me:$LINENO: result: $gt_source" >&5
  16262. echo "${ECHO_T}$gt_source" >&6; }
  16263. fi
  16264. if test "$USE_NLS" = "yes"; then
  16265. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16266. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16267. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  16268. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  16269. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  16270. echo "${ECHO_T}$LIBINTL" >&6; }
  16271. for element in $INCINTL; do
  16272. haveit=
  16273. for x in $CPPFLAGS; do
  16274. acl_save_prefix="$prefix"
  16275. prefix="$acl_final_prefix"
  16276. acl_save_exec_prefix="$exec_prefix"
  16277. exec_prefix="$acl_final_exec_prefix"
  16278. eval x=\"$x\"
  16279. exec_prefix="$acl_save_exec_prefix"
  16280. prefix="$acl_save_prefix"
  16281. if test "X$x" = "X$element"; then
  16282. haveit=yes
  16283. break
  16284. fi
  16285. done
  16286. if test -z "$haveit"; then
  16287. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16288. fi
  16289. done
  16290. fi
  16291. cat >>confdefs.h <<\_ACEOF
  16292. #define HAVE_GETTEXT 1
  16293. _ACEOF
  16294. cat >>confdefs.h <<\_ACEOF
  16295. #define HAVE_DCGETTEXT 1
  16296. _ACEOF
  16297. fi
  16298. POSUB=po
  16299. fi
  16300. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  16301. BUILD_INCLUDED_LIBINTL=yes
  16302. fi
  16303. nls_cv_header_intl=
  16304. nls_cv_header_libgt=
  16305. DATADIRNAME=share
  16306. INSTOBJEXT=.mo
  16307. GENCAT=gencat
  16308. INTLOBJS=
  16309. if test "$USE_INCLUDED_LIBINTL" = yes; then
  16310. INTLOBJS="\$(GETTOBJS)"
  16311. fi
  16312. INTL_LIBTOOL_SUFFIX_PREFIX=
  16313. INTLLIBS="$LIBINTL"
  16314. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  16315. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  16316. if test "${ac_cv_lib_error_at_line+set}" = set; then
  16317. echo $ECHO_N "(cached) $ECHO_C" >&6
  16318. else
  16319. cat >conftest.$ac_ext <<_ACEOF
  16320. /* confdefs.h. */
  16321. _ACEOF
  16322. cat confdefs.h >>conftest.$ac_ext
  16323. cat >>conftest.$ac_ext <<_ACEOF
  16324. /* end confdefs.h. */
  16325. #include <error.h>
  16326. int
  16327. main ()
  16328. {
  16329. error_at_line (0, 0, "", 0, "an error occurred");
  16330. ;
  16331. return 0;
  16332. }
  16333. _ACEOF
  16334. rm -f conftest.$ac_objext conftest$ac_exeext
  16335. if { (ac_try="$ac_link"
  16336. case "(($ac_try" in
  16337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16338. *) ac_try_echo=$ac_try;;
  16339. esac
  16340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16341. (eval "$ac_link") 2>conftest.er1
  16342. ac_status=$?
  16343. grep -v '^ *+' conftest.er1 >conftest.err
  16344. rm -f conftest.er1
  16345. cat conftest.err >&5
  16346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16347. (exit $ac_status); } && {
  16348. test -z "$ac_cxx_werror_flag" ||
  16349. test ! -s conftest.err
  16350. } && test -s conftest$ac_exeext &&
  16351. $as_test_x conftest$ac_exeext; then
  16352. ac_cv_lib_error_at_line=yes
  16353. else
  16354. echo "$as_me: failed program was:" >&5
  16355. sed 's/^/| /' conftest.$ac_ext >&5
  16356. ac_cv_lib_error_at_line=no
  16357. fi
  16358. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16359. conftest$ac_exeext conftest.$ac_ext
  16360. fi
  16361. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16362. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16363. if test $ac_cv_lib_error_at_line = no; then
  16364. case " $LIBOBJS " in
  16365. *" error.$ac_objext "* ) ;;
  16366. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16367. ;;
  16368. esac
  16369. fi
  16370. if test $ac_cv_c_compiler_gnu = yes; then
  16371. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16372. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16373. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16374. echo $ECHO_N "(cached) $ECHO_C" >&6
  16375. else
  16376. ac_pattern="Autoconf.*'x'"
  16377. cat >conftest.$ac_ext <<_ACEOF
  16378. /* confdefs.h. */
  16379. _ACEOF
  16380. cat confdefs.h >>conftest.$ac_ext
  16381. cat >>conftest.$ac_ext <<_ACEOF
  16382. /* end confdefs.h. */
  16383. #include <sgtty.h>
  16384. Autoconf TIOCGETP
  16385. _ACEOF
  16386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16387. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16388. ac_cv_prog_gcc_traditional=yes
  16389. else
  16390. ac_cv_prog_gcc_traditional=no
  16391. fi
  16392. rm -f conftest*
  16393. if test $ac_cv_prog_gcc_traditional = no; then
  16394. cat >conftest.$ac_ext <<_ACEOF
  16395. /* confdefs.h. */
  16396. _ACEOF
  16397. cat confdefs.h >>conftest.$ac_ext
  16398. cat >>conftest.$ac_ext <<_ACEOF
  16399. /* end confdefs.h. */
  16400. #include <termio.h>
  16401. Autoconf TCGETA
  16402. _ACEOF
  16403. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16404. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16405. ac_cv_prog_gcc_traditional=yes
  16406. fi
  16407. rm -f conftest*
  16408. fi
  16409. fi
  16410. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16411. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16412. if test $ac_cv_prog_gcc_traditional = yes; then
  16413. CC="$CC -traditional"
  16414. fi
  16415. fi
  16416. case "$target" in
  16417. *mingw*)
  16418. ;;
  16419. *)
  16420. for ac_header in stdlib.h
  16421. do
  16422. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16423. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16424. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16425. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16426. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16427. echo $ECHO_N "(cached) $ECHO_C" >&6
  16428. fi
  16429. ac_res=`eval echo '${'$as_ac_Header'}'`
  16430. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16431. echo "${ECHO_T}$ac_res" >&6; }
  16432. else
  16433. # Is the header compilable?
  16434. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16435. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16436. cat >conftest.$ac_ext <<_ACEOF
  16437. /* confdefs.h. */
  16438. _ACEOF
  16439. cat confdefs.h >>conftest.$ac_ext
  16440. cat >>conftest.$ac_ext <<_ACEOF
  16441. /* end confdefs.h. */
  16442. $ac_includes_default
  16443. #include <$ac_header>
  16444. _ACEOF
  16445. rm -f conftest.$ac_objext
  16446. if { (ac_try="$ac_compile"
  16447. case "(($ac_try" in
  16448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16449. *) ac_try_echo=$ac_try;;
  16450. esac
  16451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16452. (eval "$ac_compile") 2>conftest.er1
  16453. ac_status=$?
  16454. grep -v '^ *+' conftest.er1 >conftest.err
  16455. rm -f conftest.er1
  16456. cat conftest.err >&5
  16457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16458. (exit $ac_status); } && {
  16459. test -z "$ac_cxx_werror_flag" ||
  16460. test ! -s conftest.err
  16461. } && test -s conftest.$ac_objext; then
  16462. ac_header_compiler=yes
  16463. else
  16464. echo "$as_me: failed program was:" >&5
  16465. sed 's/^/| /' conftest.$ac_ext >&5
  16466. ac_header_compiler=no
  16467. fi
  16468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16469. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16470. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16471. # Is the header present?
  16472. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16473. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16474. cat >conftest.$ac_ext <<_ACEOF
  16475. /* confdefs.h. */
  16476. _ACEOF
  16477. cat confdefs.h >>conftest.$ac_ext
  16478. cat >>conftest.$ac_ext <<_ACEOF
  16479. /* end confdefs.h. */
  16480. #include <$ac_header>
  16481. _ACEOF
  16482. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16483. case "(($ac_try" in
  16484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16485. *) ac_try_echo=$ac_try;;
  16486. esac
  16487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16488. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16489. ac_status=$?
  16490. grep -v '^ *+' conftest.er1 >conftest.err
  16491. rm -f conftest.er1
  16492. cat conftest.err >&5
  16493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16494. (exit $ac_status); } >/dev/null && {
  16495. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16496. test ! -s conftest.err
  16497. }; then
  16498. ac_header_preproc=yes
  16499. else
  16500. echo "$as_me: failed program was:" >&5
  16501. sed 's/^/| /' conftest.$ac_ext >&5
  16502. ac_header_preproc=no
  16503. fi
  16504. rm -f conftest.err conftest.$ac_ext
  16505. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16506. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16507. # So? What about this header?
  16508. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16509. yes:no: )
  16510. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16511. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16512. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16513. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16514. ac_header_preproc=yes
  16515. ;;
  16516. no:yes:* )
  16517. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16518. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16519. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16520. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16521. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16522. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16523. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16524. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16525. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16526. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16527. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16528. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16529. ( cat <<\_ASBOX
  16530. ## ----------------------------------------------- ##
  16531. ## Report this to t-tujikawa@users.sourceforge.net ##
  16532. ## ----------------------------------------------- ##
  16533. _ASBOX
  16534. ) | sed "s/^/$as_me: WARNING: /" >&2
  16535. ;;
  16536. esac
  16537. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16538. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16539. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16540. echo $ECHO_N "(cached) $ECHO_C" >&6
  16541. else
  16542. eval "$as_ac_Header=\$ac_header_preproc"
  16543. fi
  16544. ac_res=`eval echo '${'$as_ac_Header'}'`
  16545. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16546. echo "${ECHO_T}$ac_res" >&6; }
  16547. fi
  16548. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16549. cat >>confdefs.h <<_ACEOF
  16550. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16551. _ACEOF
  16552. fi
  16553. done
  16554. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16555. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16556. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16557. echo $ECHO_N "(cached) $ECHO_C" >&6
  16558. else
  16559. if test "$cross_compiling" = yes; then
  16560. ac_cv_func_malloc_0_nonnull=no
  16561. else
  16562. cat >conftest.$ac_ext <<_ACEOF
  16563. /* confdefs.h. */
  16564. _ACEOF
  16565. cat confdefs.h >>conftest.$ac_ext
  16566. cat >>conftest.$ac_ext <<_ACEOF
  16567. /* end confdefs.h. */
  16568. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16569. # include <stdlib.h>
  16570. #else
  16571. char *malloc ();
  16572. #endif
  16573. int
  16574. main ()
  16575. {
  16576. return ! malloc (0);
  16577. ;
  16578. return 0;
  16579. }
  16580. _ACEOF
  16581. rm -f conftest$ac_exeext
  16582. if { (ac_try="$ac_link"
  16583. case "(($ac_try" in
  16584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16585. *) ac_try_echo=$ac_try;;
  16586. esac
  16587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16588. (eval "$ac_link") 2>&5
  16589. ac_status=$?
  16590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16591. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16592. { (case "(($ac_try" in
  16593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16594. *) ac_try_echo=$ac_try;;
  16595. esac
  16596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16597. (eval "$ac_try") 2>&5
  16598. ac_status=$?
  16599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16600. (exit $ac_status); }; }; then
  16601. ac_cv_func_malloc_0_nonnull=yes
  16602. else
  16603. echo "$as_me: program exited with status $ac_status" >&5
  16604. echo "$as_me: failed program was:" >&5
  16605. sed 's/^/| /' conftest.$ac_ext >&5
  16606. ( exit $ac_status )
  16607. ac_cv_func_malloc_0_nonnull=no
  16608. fi
  16609. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16610. fi
  16611. fi
  16612. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16613. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16614. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16615. cat >>confdefs.h <<\_ACEOF
  16616. #define HAVE_MALLOC 1
  16617. _ACEOF
  16618. else
  16619. cat >>confdefs.h <<\_ACEOF
  16620. #define HAVE_MALLOC 0
  16621. _ACEOF
  16622. case " $LIBOBJS " in
  16623. *" malloc.$ac_objext "* ) ;;
  16624. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16625. ;;
  16626. esac
  16627. cat >>confdefs.h <<\_ACEOF
  16628. #define malloc rpl_malloc
  16629. _ACEOF
  16630. fi
  16631. for ac_header in stdlib.h
  16632. do
  16633. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16634. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16635. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16636. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16637. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16638. echo $ECHO_N "(cached) $ECHO_C" >&6
  16639. fi
  16640. ac_res=`eval echo '${'$as_ac_Header'}'`
  16641. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16642. echo "${ECHO_T}$ac_res" >&6; }
  16643. else
  16644. # Is the header compilable?
  16645. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16646. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16647. cat >conftest.$ac_ext <<_ACEOF
  16648. /* confdefs.h. */
  16649. _ACEOF
  16650. cat confdefs.h >>conftest.$ac_ext
  16651. cat >>conftest.$ac_ext <<_ACEOF
  16652. /* end confdefs.h. */
  16653. $ac_includes_default
  16654. #include <$ac_header>
  16655. _ACEOF
  16656. rm -f conftest.$ac_objext
  16657. if { (ac_try="$ac_compile"
  16658. case "(($ac_try" in
  16659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16660. *) ac_try_echo=$ac_try;;
  16661. esac
  16662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16663. (eval "$ac_compile") 2>conftest.er1
  16664. ac_status=$?
  16665. grep -v '^ *+' conftest.er1 >conftest.err
  16666. rm -f conftest.er1
  16667. cat conftest.err >&5
  16668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16669. (exit $ac_status); } && {
  16670. test -z "$ac_cxx_werror_flag" ||
  16671. test ! -s conftest.err
  16672. } && test -s conftest.$ac_objext; then
  16673. ac_header_compiler=yes
  16674. else
  16675. echo "$as_me: failed program was:" >&5
  16676. sed 's/^/| /' conftest.$ac_ext >&5
  16677. ac_header_compiler=no
  16678. fi
  16679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16680. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16681. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16682. # Is the header present?
  16683. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16684. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16685. cat >conftest.$ac_ext <<_ACEOF
  16686. /* confdefs.h. */
  16687. _ACEOF
  16688. cat confdefs.h >>conftest.$ac_ext
  16689. cat >>conftest.$ac_ext <<_ACEOF
  16690. /* end confdefs.h. */
  16691. #include <$ac_header>
  16692. _ACEOF
  16693. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16694. case "(($ac_try" in
  16695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16696. *) ac_try_echo=$ac_try;;
  16697. esac
  16698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16699. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16700. ac_status=$?
  16701. grep -v '^ *+' conftest.er1 >conftest.err
  16702. rm -f conftest.er1
  16703. cat conftest.err >&5
  16704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16705. (exit $ac_status); } >/dev/null && {
  16706. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16707. test ! -s conftest.err
  16708. }; then
  16709. ac_header_preproc=yes
  16710. else
  16711. echo "$as_me: failed program was:" >&5
  16712. sed 's/^/| /' conftest.$ac_ext >&5
  16713. ac_header_preproc=no
  16714. fi
  16715. rm -f conftest.err conftest.$ac_ext
  16716. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16717. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16718. # So? What about this header?
  16719. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16720. yes:no: )
  16721. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16722. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16723. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16724. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16725. ac_header_preproc=yes
  16726. ;;
  16727. no:yes:* )
  16728. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16729. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16730. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16731. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16732. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16733. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16734. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16735. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16736. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16737. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16738. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16739. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16740. ( cat <<\_ASBOX
  16741. ## ----------------------------------------------- ##
  16742. ## Report this to t-tujikawa@users.sourceforge.net ##
  16743. ## ----------------------------------------------- ##
  16744. _ASBOX
  16745. ) | sed "s/^/$as_me: WARNING: /" >&2
  16746. ;;
  16747. esac
  16748. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16749. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16750. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16751. echo $ECHO_N "(cached) $ECHO_C" >&6
  16752. else
  16753. eval "$as_ac_Header=\$ac_header_preproc"
  16754. fi
  16755. ac_res=`eval echo '${'$as_ac_Header'}'`
  16756. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16757. echo "${ECHO_T}$ac_res" >&6; }
  16758. fi
  16759. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16760. cat >>confdefs.h <<_ACEOF
  16761. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16762. _ACEOF
  16763. fi
  16764. done
  16765. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16766. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16767. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16768. echo $ECHO_N "(cached) $ECHO_C" >&6
  16769. else
  16770. if test "$cross_compiling" = yes; then
  16771. ac_cv_func_realloc_0_nonnull=no
  16772. else
  16773. cat >conftest.$ac_ext <<_ACEOF
  16774. /* confdefs.h. */
  16775. _ACEOF
  16776. cat confdefs.h >>conftest.$ac_ext
  16777. cat >>conftest.$ac_ext <<_ACEOF
  16778. /* end confdefs.h. */
  16779. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16780. # include <stdlib.h>
  16781. #else
  16782. char *realloc ();
  16783. #endif
  16784. int
  16785. main ()
  16786. {
  16787. return ! realloc (0, 0);
  16788. ;
  16789. return 0;
  16790. }
  16791. _ACEOF
  16792. rm -f conftest$ac_exeext
  16793. if { (ac_try="$ac_link"
  16794. case "(($ac_try" in
  16795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16796. *) ac_try_echo=$ac_try;;
  16797. esac
  16798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16799. (eval "$ac_link") 2>&5
  16800. ac_status=$?
  16801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16802. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16803. { (case "(($ac_try" in
  16804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16805. *) ac_try_echo=$ac_try;;
  16806. esac
  16807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16808. (eval "$ac_try") 2>&5
  16809. ac_status=$?
  16810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16811. (exit $ac_status); }; }; then
  16812. ac_cv_func_realloc_0_nonnull=yes
  16813. else
  16814. echo "$as_me: program exited with status $ac_status" >&5
  16815. echo "$as_me: failed program was:" >&5
  16816. sed 's/^/| /' conftest.$ac_ext >&5
  16817. ( exit $ac_status )
  16818. ac_cv_func_realloc_0_nonnull=no
  16819. fi
  16820. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16821. fi
  16822. fi
  16823. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16824. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16825. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16826. cat >>confdefs.h <<\_ACEOF
  16827. #define HAVE_REALLOC 1
  16828. _ACEOF
  16829. else
  16830. cat >>confdefs.h <<\_ACEOF
  16831. #define HAVE_REALLOC 0
  16832. _ACEOF
  16833. case " $LIBOBJS " in
  16834. *" realloc.$ac_objext "* ) ;;
  16835. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16836. ;;
  16837. esac
  16838. cat >>confdefs.h <<\_ACEOF
  16839. #define realloc rpl_realloc
  16840. _ACEOF
  16841. fi
  16842. ;;
  16843. esac
  16844. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16845. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16846. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16847. echo $ECHO_N "(cached) $ECHO_C" >&6
  16848. else
  16849. if test "$cross_compiling" = yes; then
  16850. ac_cv_func_memcmp_working=no
  16851. else
  16852. cat >conftest.$ac_ext <<_ACEOF
  16853. /* confdefs.h. */
  16854. _ACEOF
  16855. cat confdefs.h >>conftest.$ac_ext
  16856. cat >>conftest.$ac_ext <<_ACEOF
  16857. /* end confdefs.h. */
  16858. $ac_includes_default
  16859. int
  16860. main ()
  16861. {
  16862. /* Some versions of memcmp are not 8-bit clean. */
  16863. char c0 = '\100', c1 = '\200', c2 = '\201';
  16864. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16865. return 1;
  16866. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16867. or more and with at least one buffer not starting on a 4-byte boundary.
  16868. William Lewis provided this test program. */
  16869. {
  16870. char foo[21];
  16871. char bar[21];
  16872. int i;
  16873. for (i = 0; i < 4; i++)
  16874. {
  16875. char *a = foo + i;
  16876. char *b = bar + i;
  16877. strcpy (a, "--------01111111");
  16878. strcpy (b, "--------10000000");
  16879. if (memcmp (a, b, 16) >= 0)
  16880. return 1;
  16881. }
  16882. return 0;
  16883. }
  16884. ;
  16885. return 0;
  16886. }
  16887. _ACEOF
  16888. rm -f conftest$ac_exeext
  16889. if { (ac_try="$ac_link"
  16890. case "(($ac_try" in
  16891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16892. *) ac_try_echo=$ac_try;;
  16893. esac
  16894. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16895. (eval "$ac_link") 2>&5
  16896. ac_status=$?
  16897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16898. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16899. { (case "(($ac_try" in
  16900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16901. *) ac_try_echo=$ac_try;;
  16902. esac
  16903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16904. (eval "$ac_try") 2>&5
  16905. ac_status=$?
  16906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16907. (exit $ac_status); }; }; then
  16908. ac_cv_func_memcmp_working=yes
  16909. else
  16910. echo "$as_me: program exited with status $ac_status" >&5
  16911. echo "$as_me: failed program was:" >&5
  16912. sed 's/^/| /' conftest.$ac_ext >&5
  16913. ( exit $ac_status )
  16914. ac_cv_func_memcmp_working=no
  16915. fi
  16916. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16917. fi
  16918. fi
  16919. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16920. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16921. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16922. *" memcmp.$ac_objext "* ) ;;
  16923. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16924. ;;
  16925. esac
  16926. for ac_header in $ac_header_list
  16927. do
  16928. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16929. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16930. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16931. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16932. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16933. echo $ECHO_N "(cached) $ECHO_C" >&6
  16934. fi
  16935. ac_res=`eval echo '${'$as_ac_Header'}'`
  16936. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16937. echo "${ECHO_T}$ac_res" >&6; }
  16938. else
  16939. # Is the header compilable?
  16940. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16941. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16942. cat >conftest.$ac_ext <<_ACEOF
  16943. /* confdefs.h. */
  16944. _ACEOF
  16945. cat confdefs.h >>conftest.$ac_ext
  16946. cat >>conftest.$ac_ext <<_ACEOF
  16947. /* end confdefs.h. */
  16948. $ac_includes_default
  16949. #include <$ac_header>
  16950. _ACEOF
  16951. rm -f conftest.$ac_objext
  16952. if { (ac_try="$ac_compile"
  16953. case "(($ac_try" in
  16954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16955. *) ac_try_echo=$ac_try;;
  16956. esac
  16957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16958. (eval "$ac_compile") 2>conftest.er1
  16959. ac_status=$?
  16960. grep -v '^ *+' conftest.er1 >conftest.err
  16961. rm -f conftest.er1
  16962. cat conftest.err >&5
  16963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16964. (exit $ac_status); } && {
  16965. test -z "$ac_cxx_werror_flag" ||
  16966. test ! -s conftest.err
  16967. } && test -s conftest.$ac_objext; then
  16968. ac_header_compiler=yes
  16969. else
  16970. echo "$as_me: failed program was:" >&5
  16971. sed 's/^/| /' conftest.$ac_ext >&5
  16972. ac_header_compiler=no
  16973. fi
  16974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16975. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16976. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16977. # Is the header present?
  16978. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16979. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16980. cat >conftest.$ac_ext <<_ACEOF
  16981. /* confdefs.h. */
  16982. _ACEOF
  16983. cat confdefs.h >>conftest.$ac_ext
  16984. cat >>conftest.$ac_ext <<_ACEOF
  16985. /* end confdefs.h. */
  16986. #include <$ac_header>
  16987. _ACEOF
  16988. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16989. case "(($ac_try" in
  16990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16991. *) ac_try_echo=$ac_try;;
  16992. esac
  16993. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16994. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16995. ac_status=$?
  16996. grep -v '^ *+' conftest.er1 >conftest.err
  16997. rm -f conftest.er1
  16998. cat conftest.err >&5
  16999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17000. (exit $ac_status); } >/dev/null && {
  17001. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17002. test ! -s conftest.err
  17003. }; then
  17004. ac_header_preproc=yes
  17005. else
  17006. echo "$as_me: failed program was:" >&5
  17007. sed 's/^/| /' conftest.$ac_ext >&5
  17008. ac_header_preproc=no
  17009. fi
  17010. rm -f conftest.err conftest.$ac_ext
  17011. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17012. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17013. # So? What about this header?
  17014. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17015. yes:no: )
  17016. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17017. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17018. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17019. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17020. ac_header_preproc=yes
  17021. ;;
  17022. no:yes:* )
  17023. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17024. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17025. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17026. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17027. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17028. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17029. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17030. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17031. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17032. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17033. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17034. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17035. ( cat <<\_ASBOX
  17036. ## ----------------------------------------------- ##
  17037. ## Report this to t-tujikawa@users.sourceforge.net ##
  17038. ## ----------------------------------------------- ##
  17039. _ASBOX
  17040. ) | sed "s/^/$as_me: WARNING: /" >&2
  17041. ;;
  17042. esac
  17043. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17044. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17045. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17046. echo $ECHO_N "(cached) $ECHO_C" >&6
  17047. else
  17048. eval "$as_ac_Header=\$ac_header_preproc"
  17049. fi
  17050. ac_res=`eval echo '${'$as_ac_Header'}'`
  17051. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17052. echo "${ECHO_T}$ac_res" >&6; }
  17053. fi
  17054. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17055. cat >>confdefs.h <<_ACEOF
  17056. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17057. _ACEOF
  17058. fi
  17059. done
  17060. for ac_func in $ac_func_list
  17061. do
  17062. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17063. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17064. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17065. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17066. echo $ECHO_N "(cached) $ECHO_C" >&6
  17067. else
  17068. cat >conftest.$ac_ext <<_ACEOF
  17069. /* confdefs.h. */
  17070. _ACEOF
  17071. cat confdefs.h >>conftest.$ac_ext
  17072. cat >>conftest.$ac_ext <<_ACEOF
  17073. /* end confdefs.h. */
  17074. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17075. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17076. #define $ac_func innocuous_$ac_func
  17077. /* System header to define __stub macros and hopefully few prototypes,
  17078. which can conflict with char $ac_func (); below.
  17079. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17080. <limits.h> exists even on freestanding compilers. */
  17081. #ifdef __STDC__
  17082. # include <limits.h>
  17083. #else
  17084. # include <assert.h>
  17085. #endif
  17086. #undef $ac_func
  17087. /* Override any GCC internal prototype to avoid an error.
  17088. Use char because int might match the return type of a GCC
  17089. builtin and then its argument prototype would still apply. */
  17090. #ifdef __cplusplus
  17091. extern "C"
  17092. #endif
  17093. char $ac_func ();
  17094. /* The GNU C library defines this for functions which it implements
  17095. to always fail with ENOSYS. Some functions are actually named
  17096. something starting with __ and the normal name is an alias. */
  17097. #if defined __stub_$ac_func || defined __stub___$ac_func
  17098. choke me
  17099. #endif
  17100. int
  17101. main ()
  17102. {
  17103. return $ac_func ();
  17104. ;
  17105. return 0;
  17106. }
  17107. _ACEOF
  17108. rm -f conftest.$ac_objext conftest$ac_exeext
  17109. if { (ac_try="$ac_link"
  17110. case "(($ac_try" in
  17111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17112. *) ac_try_echo=$ac_try;;
  17113. esac
  17114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17115. (eval "$ac_link") 2>conftest.er1
  17116. ac_status=$?
  17117. grep -v '^ *+' conftest.er1 >conftest.err
  17118. rm -f conftest.er1
  17119. cat conftest.err >&5
  17120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17121. (exit $ac_status); } && {
  17122. test -z "$ac_cxx_werror_flag" ||
  17123. test ! -s conftest.err
  17124. } && test -s conftest$ac_exeext &&
  17125. $as_test_x conftest$ac_exeext; then
  17126. eval "$as_ac_var=yes"
  17127. else
  17128. echo "$as_me: failed program was:" >&5
  17129. sed 's/^/| /' conftest.$ac_ext >&5
  17130. eval "$as_ac_var=no"
  17131. fi
  17132. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17133. conftest$ac_exeext conftest.$ac_ext
  17134. fi
  17135. ac_res=`eval echo '${'$as_ac_var'}'`
  17136. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17137. echo "${ECHO_T}$ac_res" >&6; }
  17138. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17139. cat >>confdefs.h <<_ACEOF
  17140. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17141. _ACEOF
  17142. fi
  17143. done
  17144. { echo "$as_me:$LINENO: checking for working mktime" >&5
  17145. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  17146. if test "${ac_cv_func_working_mktime+set}" = set; then
  17147. echo $ECHO_N "(cached) $ECHO_C" >&6
  17148. else
  17149. if test "$cross_compiling" = yes; then
  17150. ac_cv_func_working_mktime=no
  17151. else
  17152. cat >conftest.$ac_ext <<_ACEOF
  17153. /* confdefs.h. */
  17154. _ACEOF
  17155. cat confdefs.h >>conftest.$ac_ext
  17156. cat >>conftest.$ac_ext <<_ACEOF
  17157. /* end confdefs.h. */
  17158. /* Test program from Paul Eggert and Tony Leneis. */
  17159. #ifdef TIME_WITH_SYS_TIME
  17160. # include <sys/time.h>
  17161. # include <time.h>
  17162. #else
  17163. # ifdef HAVE_SYS_TIME_H
  17164. # include <sys/time.h>
  17165. # else
  17166. # include <time.h>
  17167. # endif
  17168. #endif
  17169. #include <limits.h>
  17170. #include <stdlib.h>
  17171. #ifdef HAVE_UNISTD_H
  17172. # include <unistd.h>
  17173. #endif
  17174. #ifndef HAVE_ALARM
  17175. # define alarm(X) /* empty */
  17176. #endif
  17177. /* Work around redefinition to rpl_putenv by other config tests. */
  17178. #undef putenv
  17179. static time_t time_t_max;
  17180. static time_t time_t_min;
  17181. /* Values we'll use to set the TZ environment variable. */
  17182. static char *tz_strings[] = {
  17183. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17184. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17185. };
  17186. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17187. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17188. Based on a problem report from Andreas Jaeger. */
  17189. static int
  17190. spring_forward_gap ()
  17191. {
  17192. /* glibc (up to about 1998-10-07) failed this test. */
  17193. struct tm tm;
  17194. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17195. instead of "TZ=America/Vancouver" in order to detect the bug even
  17196. on systems that don't support the Olson extension, or don't have the
  17197. full zoneinfo tables installed. */
  17198. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17199. tm.tm_year = 98;
  17200. tm.tm_mon = 3;
  17201. tm.tm_mday = 5;
  17202. tm.tm_hour = 2;
  17203. tm.tm_min = 0;
  17204. tm.tm_sec = 0;
  17205. tm.tm_isdst = -1;
  17206. return mktime (&tm) != (time_t) -1;
  17207. }
  17208. static int
  17209. mktime_test1 (now)
  17210. time_t now;
  17211. {
  17212. struct tm *lt;
  17213. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17214. }
  17215. static int
  17216. mktime_test (now)
  17217. time_t now;
  17218. {
  17219. return (mktime_test1 (now)
  17220. && mktime_test1 ((time_t) (time_t_max - now))
  17221. && mktime_test1 ((time_t) (time_t_min + now)));
  17222. }
  17223. static int
  17224. irix_6_4_bug ()
  17225. {
  17226. /* Based on code from Ariel Faigon. */
  17227. struct tm tm;
  17228. tm.tm_year = 96;
  17229. tm.tm_mon = 3;
  17230. tm.tm_mday = 0;
  17231. tm.tm_hour = 0;
  17232. tm.tm_min = 0;
  17233. tm.tm_sec = 0;
  17234. tm.tm_isdst = -1;
  17235. mktime (&tm);
  17236. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17237. }
  17238. static int
  17239. bigtime_test (j)
  17240. int j;
  17241. {
  17242. struct tm tm;
  17243. time_t now;
  17244. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17245. now = mktime (&tm);
  17246. if (now != (time_t) -1)
  17247. {
  17248. struct tm *lt = localtime (&now);
  17249. if (! (lt
  17250. && lt->tm_year == tm.tm_year
  17251. && lt->tm_mon == tm.tm_mon
  17252. && lt->tm_mday == tm.tm_mday
  17253. && lt->tm_hour == tm.tm_hour
  17254. && lt->tm_min == tm.tm_min
  17255. && lt->tm_sec == tm.tm_sec
  17256. && lt->tm_yday == tm.tm_yday
  17257. && lt->tm_wday == tm.tm_wday
  17258. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17259. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17260. return 0;
  17261. }
  17262. return 1;
  17263. }
  17264. static int
  17265. year_2050_test ()
  17266. {
  17267. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17268. ignoring leap seconds. */
  17269. unsigned long int answer = 2527315200UL;
  17270. struct tm tm;
  17271. time_t t;
  17272. tm.tm_year = 2050 - 1900;
  17273. tm.tm_mon = 2 - 1;
  17274. tm.tm_mday = 1;
  17275. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17276. tm.tm_isdst = -1;
  17277. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17278. instead of "TZ=America/Vancouver" in order to detect the bug even
  17279. on systems that don't support the Olson extension, or don't have the
  17280. full zoneinfo tables installed. */
  17281. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17282. t = mktime (&tm);
  17283. /* Check that the result is either a failure, or close enough
  17284. to the correct answer that we can assume the discrepancy is
  17285. due to leap seconds. */
  17286. return (t == (time_t) -1
  17287. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17288. }
  17289. int
  17290. main ()
  17291. {
  17292. time_t t, delta;
  17293. int i, j;
  17294. /* This test makes some buggy mktime implementations loop.
  17295. Give up after 60 seconds; a mktime slower than that
  17296. isn't worth using anyway. */
  17297. alarm (60);
  17298. for (;;)
  17299. {
  17300. t = (time_t_max << 1) + 1;
  17301. if (t <= time_t_max)
  17302. break;
  17303. time_t_max = t;
  17304. }
  17305. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17306. delta = time_t_max / 997; /* a suitable prime number */
  17307. for (i = 0; i < N_STRINGS; i++)
  17308. {
  17309. if (tz_strings[i])
  17310. putenv (tz_strings[i]);
  17311. for (t = 0; t <= time_t_max - delta; t += delta)
  17312. if (! mktime_test (t))
  17313. return 1;
  17314. if (! (mktime_test ((time_t) 1)
  17315. && mktime_test ((time_t) (60 * 60))
  17316. && mktime_test ((time_t) (60 * 60 * 24))))
  17317. return 1;
  17318. for (j = 1; ; j <<= 1)
  17319. if (! bigtime_test (j))
  17320. return 1;
  17321. else if (INT_MAX / 2 < j)
  17322. break;
  17323. if (! bigtime_test (INT_MAX))
  17324. return 1;
  17325. }
  17326. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17327. }
  17328. _ACEOF
  17329. rm -f conftest$ac_exeext
  17330. if { (ac_try="$ac_link"
  17331. case "(($ac_try" in
  17332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17333. *) ac_try_echo=$ac_try;;
  17334. esac
  17335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17336. (eval "$ac_link") 2>&5
  17337. ac_status=$?
  17338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17339. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17340. { (case "(($ac_try" in
  17341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17342. *) ac_try_echo=$ac_try;;
  17343. esac
  17344. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17345. (eval "$ac_try") 2>&5
  17346. ac_status=$?
  17347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17348. (exit $ac_status); }; }; then
  17349. ac_cv_func_working_mktime=yes
  17350. else
  17351. echo "$as_me: program exited with status $ac_status" >&5
  17352. echo "$as_me: failed program was:" >&5
  17353. sed 's/^/| /' conftest.$ac_ext >&5
  17354. ( exit $ac_status )
  17355. ac_cv_func_working_mktime=no
  17356. fi
  17357. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17358. fi
  17359. fi
  17360. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17361. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17362. if test $ac_cv_func_working_mktime = no; then
  17363. case " $LIBOBJS " in
  17364. *" mktime.$ac_objext "* ) ;;
  17365. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17366. ;;
  17367. esac
  17368. fi
  17369. for ac_header in stdlib.h unistd.h
  17370. do
  17371. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17372. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17373. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17374. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17375. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17376. echo $ECHO_N "(cached) $ECHO_C" >&6
  17377. fi
  17378. ac_res=`eval echo '${'$as_ac_Header'}'`
  17379. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17380. echo "${ECHO_T}$ac_res" >&6; }
  17381. else
  17382. # Is the header compilable?
  17383. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17384. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17385. cat >conftest.$ac_ext <<_ACEOF
  17386. /* confdefs.h. */
  17387. _ACEOF
  17388. cat confdefs.h >>conftest.$ac_ext
  17389. cat >>conftest.$ac_ext <<_ACEOF
  17390. /* end confdefs.h. */
  17391. $ac_includes_default
  17392. #include <$ac_header>
  17393. _ACEOF
  17394. rm -f conftest.$ac_objext
  17395. if { (ac_try="$ac_compile"
  17396. case "(($ac_try" in
  17397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17398. *) ac_try_echo=$ac_try;;
  17399. esac
  17400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17401. (eval "$ac_compile") 2>conftest.er1
  17402. ac_status=$?
  17403. grep -v '^ *+' conftest.er1 >conftest.err
  17404. rm -f conftest.er1
  17405. cat conftest.err >&5
  17406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17407. (exit $ac_status); } && {
  17408. test -z "$ac_cxx_werror_flag" ||
  17409. test ! -s conftest.err
  17410. } && test -s conftest.$ac_objext; then
  17411. ac_header_compiler=yes
  17412. else
  17413. echo "$as_me: failed program was:" >&5
  17414. sed 's/^/| /' conftest.$ac_ext >&5
  17415. ac_header_compiler=no
  17416. fi
  17417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17418. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17419. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17420. # Is the header present?
  17421. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17422. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17423. cat >conftest.$ac_ext <<_ACEOF
  17424. /* confdefs.h. */
  17425. _ACEOF
  17426. cat confdefs.h >>conftest.$ac_ext
  17427. cat >>conftest.$ac_ext <<_ACEOF
  17428. /* end confdefs.h. */
  17429. #include <$ac_header>
  17430. _ACEOF
  17431. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17432. case "(($ac_try" in
  17433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17434. *) ac_try_echo=$ac_try;;
  17435. esac
  17436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17437. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17438. ac_status=$?
  17439. grep -v '^ *+' conftest.er1 >conftest.err
  17440. rm -f conftest.er1
  17441. cat conftest.err >&5
  17442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17443. (exit $ac_status); } >/dev/null && {
  17444. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17445. test ! -s conftest.err
  17446. }; then
  17447. ac_header_preproc=yes
  17448. else
  17449. echo "$as_me: failed program was:" >&5
  17450. sed 's/^/| /' conftest.$ac_ext >&5
  17451. ac_header_preproc=no
  17452. fi
  17453. rm -f conftest.err conftest.$ac_ext
  17454. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17455. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17456. # So? What about this header?
  17457. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17458. yes:no: )
  17459. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17460. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17461. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17462. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17463. ac_header_preproc=yes
  17464. ;;
  17465. no:yes:* )
  17466. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17467. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17468. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17469. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17470. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17471. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17472. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17473. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17474. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17475. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17476. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17477. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17478. ( cat <<\_ASBOX
  17479. ## ----------------------------------------------- ##
  17480. ## Report this to t-tujikawa@users.sourceforge.net ##
  17481. ## ----------------------------------------------- ##
  17482. _ASBOX
  17483. ) | sed "s/^/$as_me: WARNING: /" >&2
  17484. ;;
  17485. esac
  17486. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17487. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17488. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17489. echo $ECHO_N "(cached) $ECHO_C" >&6
  17490. else
  17491. eval "$as_ac_Header=\$ac_header_preproc"
  17492. fi
  17493. ac_res=`eval echo '${'$as_ac_Header'}'`
  17494. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17495. echo "${ECHO_T}$ac_res" >&6; }
  17496. fi
  17497. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17498. cat >>confdefs.h <<_ACEOF
  17499. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17500. _ACEOF
  17501. fi
  17502. done
  17503. for ac_func in getpagesize
  17504. do
  17505. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17506. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17507. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17508. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17509. echo $ECHO_N "(cached) $ECHO_C" >&6
  17510. else
  17511. cat >conftest.$ac_ext <<_ACEOF
  17512. /* confdefs.h. */
  17513. _ACEOF
  17514. cat confdefs.h >>conftest.$ac_ext
  17515. cat >>conftest.$ac_ext <<_ACEOF
  17516. /* end confdefs.h. */
  17517. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17518. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17519. #define $ac_func innocuous_$ac_func
  17520. /* System header to define __stub macros and hopefully few prototypes,
  17521. which can conflict with char $ac_func (); below.
  17522. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17523. <limits.h> exists even on freestanding compilers. */
  17524. #ifdef __STDC__
  17525. # include <limits.h>
  17526. #else
  17527. # include <assert.h>
  17528. #endif
  17529. #undef $ac_func
  17530. /* Override any GCC internal prototype to avoid an error.
  17531. Use char because int might match the return type of a GCC
  17532. builtin and then its argument prototype would still apply. */
  17533. #ifdef __cplusplus
  17534. extern "C"
  17535. #endif
  17536. char $ac_func ();
  17537. /* The GNU C library defines this for functions which it implements
  17538. to always fail with ENOSYS. Some functions are actually named
  17539. something starting with __ and the normal name is an alias. */
  17540. #if defined __stub_$ac_func || defined __stub___$ac_func
  17541. choke me
  17542. #endif
  17543. int
  17544. main ()
  17545. {
  17546. return $ac_func ();
  17547. ;
  17548. return 0;
  17549. }
  17550. _ACEOF
  17551. rm -f conftest.$ac_objext conftest$ac_exeext
  17552. if { (ac_try="$ac_link"
  17553. case "(($ac_try" in
  17554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17555. *) ac_try_echo=$ac_try;;
  17556. esac
  17557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17558. (eval "$ac_link") 2>conftest.er1
  17559. ac_status=$?
  17560. grep -v '^ *+' conftest.er1 >conftest.err
  17561. rm -f conftest.er1
  17562. cat conftest.err >&5
  17563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17564. (exit $ac_status); } && {
  17565. test -z "$ac_cxx_werror_flag" ||
  17566. test ! -s conftest.err
  17567. } && test -s conftest$ac_exeext &&
  17568. $as_test_x conftest$ac_exeext; then
  17569. eval "$as_ac_var=yes"
  17570. else
  17571. echo "$as_me: failed program was:" >&5
  17572. sed 's/^/| /' conftest.$ac_ext >&5
  17573. eval "$as_ac_var=no"
  17574. fi
  17575. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17576. conftest$ac_exeext conftest.$ac_ext
  17577. fi
  17578. ac_res=`eval echo '${'$as_ac_var'}'`
  17579. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17580. echo "${ECHO_T}$ac_res" >&6; }
  17581. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17582. cat >>confdefs.h <<_ACEOF
  17583. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17584. _ACEOF
  17585. fi
  17586. done
  17587. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17588. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17589. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17590. echo $ECHO_N "(cached) $ECHO_C" >&6
  17591. else
  17592. if test "$cross_compiling" = yes; then
  17593. ac_cv_func_mmap_fixed_mapped=no
  17594. else
  17595. cat >conftest.$ac_ext <<_ACEOF
  17596. /* confdefs.h. */
  17597. _ACEOF
  17598. cat confdefs.h >>conftest.$ac_ext
  17599. cat >>conftest.$ac_ext <<_ACEOF
  17600. /* end confdefs.h. */
  17601. $ac_includes_default
  17602. /* malloc might have been renamed as rpl_malloc. */
  17603. #undef malloc
  17604. /* Thanks to Mike Haertel and Jim Avera for this test.
  17605. Here is a matrix of mmap possibilities:
  17606. mmap private not fixed
  17607. mmap private fixed at somewhere currently unmapped
  17608. mmap private fixed at somewhere already mapped
  17609. mmap shared not fixed
  17610. mmap shared fixed at somewhere currently unmapped
  17611. mmap shared fixed at somewhere already mapped
  17612. For private mappings, we should verify that changes cannot be read()
  17613. back from the file, nor mmap's back from the file at a different
  17614. address. (There have been systems where private was not correctly
  17615. implemented like the infamous i386 svr4.0, and systems where the
  17616. VM page cache was not coherent with the file system buffer cache
  17617. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17618. For shared mappings, we should conversely verify that changes get
  17619. propagated back to all the places they're supposed to be.
  17620. Grep wants private fixed already mapped.
  17621. The main things grep needs to know about mmap are:
  17622. * does it exist and is it safe to write into the mmap'd area
  17623. * how to use it (BSD variants) */
  17624. #include <fcntl.h>
  17625. #include <sys/mman.h>
  17626. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17627. char *malloc ();
  17628. #endif
  17629. /* This mess was copied from the GNU getpagesize.h. */
  17630. #ifndef HAVE_GETPAGESIZE
  17631. /* Assume that all systems that can run configure have sys/param.h. */
  17632. # ifndef HAVE_SYS_PARAM_H
  17633. # define HAVE_SYS_PARAM_H 1
  17634. # endif
  17635. # ifdef _SC_PAGESIZE
  17636. # define getpagesize() sysconf(_SC_PAGESIZE)
  17637. # else /* no _SC_PAGESIZE */
  17638. # ifdef HAVE_SYS_PARAM_H
  17639. # include <sys/param.h>
  17640. # ifdef EXEC_PAGESIZE
  17641. # define getpagesize() EXEC_PAGESIZE
  17642. # else /* no EXEC_PAGESIZE */
  17643. # ifdef NBPG
  17644. # define getpagesize() NBPG * CLSIZE
  17645. # ifndef CLSIZE
  17646. # define CLSIZE 1
  17647. # endif /* no CLSIZE */
  17648. # else /* no NBPG */
  17649. # ifdef NBPC
  17650. # define getpagesize() NBPC
  17651. # else /* no NBPC */
  17652. # ifdef PAGESIZE
  17653. # define getpagesize() PAGESIZE
  17654. # endif /* PAGESIZE */
  17655. # endif /* no NBPC */
  17656. # endif /* no NBPG */
  17657. # endif /* no EXEC_PAGESIZE */
  17658. # else /* no HAVE_SYS_PARAM_H */
  17659. # define getpagesize() 8192 /* punt totally */
  17660. # endif /* no HAVE_SYS_PARAM_H */
  17661. # endif /* no _SC_PAGESIZE */
  17662. #endif /* no HAVE_GETPAGESIZE */
  17663. int
  17664. main ()
  17665. {
  17666. char *data, *data2, *data3;
  17667. int i, pagesize;
  17668. int fd;
  17669. pagesize = getpagesize ();
  17670. /* First, make a file with some known garbage in it. */
  17671. data = (char *) malloc (pagesize);
  17672. if (!data)
  17673. return 1;
  17674. for (i = 0; i < pagesize; ++i)
  17675. *(data + i) = rand ();
  17676. umask (0);
  17677. fd = creat ("conftest.mmap", 0600);
  17678. if (fd < 0)
  17679. return 1;
  17680. if (write (fd, data, pagesize) != pagesize)
  17681. return 1;
  17682. close (fd);
  17683. /* Next, try to mmap the file at a fixed address which already has
  17684. something else allocated at it. If we can, also make sure that
  17685. we see the same garbage. */
  17686. fd = open ("conftest.mmap", O_RDWR);
  17687. if (fd < 0)
  17688. return 1;
  17689. data2 = (char *) malloc (2 * pagesize);
  17690. if (!data2)
  17691. return 1;
  17692. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17693. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17694. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17695. return 1;
  17696. for (i = 0; i < pagesize; ++i)
  17697. if (*(data + i) != *(data2 + i))
  17698. return 1;
  17699. /* Finally, make sure that changes to the mapped area do not
  17700. percolate back to the file as seen by read(). (This is a bug on
  17701. some variants of i386 svr4.0.) */
  17702. for (i = 0; i < pagesize; ++i)
  17703. *(data2 + i) = *(data2 + i) + 1;
  17704. data3 = (char *) malloc (pagesize);
  17705. if (!data3)
  17706. return 1;
  17707. if (read (fd, data3, pagesize) != pagesize)
  17708. return 1;
  17709. for (i = 0; i < pagesize; ++i)
  17710. if (*(data + i) != *(data3 + i))
  17711. return 1;
  17712. close (fd);
  17713. return 0;
  17714. }
  17715. _ACEOF
  17716. rm -f conftest$ac_exeext
  17717. if { (ac_try="$ac_link"
  17718. case "(($ac_try" in
  17719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17720. *) ac_try_echo=$ac_try;;
  17721. esac
  17722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17723. (eval "$ac_link") 2>&5
  17724. ac_status=$?
  17725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17726. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17727. { (case "(($ac_try" in
  17728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17729. *) ac_try_echo=$ac_try;;
  17730. esac
  17731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17732. (eval "$ac_try") 2>&5
  17733. ac_status=$?
  17734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17735. (exit $ac_status); }; }; then
  17736. ac_cv_func_mmap_fixed_mapped=yes
  17737. else
  17738. echo "$as_me: program exited with status $ac_status" >&5
  17739. echo "$as_me: failed program was:" >&5
  17740. sed 's/^/| /' conftest.$ac_ext >&5
  17741. ( exit $ac_status )
  17742. ac_cv_func_mmap_fixed_mapped=no
  17743. fi
  17744. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17745. fi
  17746. fi
  17747. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17748. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17749. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17750. cat >>confdefs.h <<\_ACEOF
  17751. #define HAVE_MMAP 1
  17752. _ACEOF
  17753. fi
  17754. rm -f conftest.mmap
  17755. for ac_header in sys/select.h sys/socket.h
  17756. do
  17757. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17758. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17759. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17760. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17761. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17762. echo $ECHO_N "(cached) $ECHO_C" >&6
  17763. fi
  17764. ac_res=`eval echo '${'$as_ac_Header'}'`
  17765. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17766. echo "${ECHO_T}$ac_res" >&6; }
  17767. else
  17768. # Is the header compilable?
  17769. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17770. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17771. cat >conftest.$ac_ext <<_ACEOF
  17772. /* confdefs.h. */
  17773. _ACEOF
  17774. cat confdefs.h >>conftest.$ac_ext
  17775. cat >>conftest.$ac_ext <<_ACEOF
  17776. /* end confdefs.h. */
  17777. $ac_includes_default
  17778. #include <$ac_header>
  17779. _ACEOF
  17780. rm -f conftest.$ac_objext
  17781. if { (ac_try="$ac_compile"
  17782. case "(($ac_try" in
  17783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17784. *) ac_try_echo=$ac_try;;
  17785. esac
  17786. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17787. (eval "$ac_compile") 2>conftest.er1
  17788. ac_status=$?
  17789. grep -v '^ *+' conftest.er1 >conftest.err
  17790. rm -f conftest.er1
  17791. cat conftest.err >&5
  17792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17793. (exit $ac_status); } && {
  17794. test -z "$ac_cxx_werror_flag" ||
  17795. test ! -s conftest.err
  17796. } && test -s conftest.$ac_objext; then
  17797. ac_header_compiler=yes
  17798. else
  17799. echo "$as_me: failed program was:" >&5
  17800. sed 's/^/| /' conftest.$ac_ext >&5
  17801. ac_header_compiler=no
  17802. fi
  17803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17804. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17805. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17806. # Is the header present?
  17807. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17808. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17809. cat >conftest.$ac_ext <<_ACEOF
  17810. /* confdefs.h. */
  17811. _ACEOF
  17812. cat confdefs.h >>conftest.$ac_ext
  17813. cat >>conftest.$ac_ext <<_ACEOF
  17814. /* end confdefs.h. */
  17815. #include <$ac_header>
  17816. _ACEOF
  17817. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17818. case "(($ac_try" in
  17819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17820. *) ac_try_echo=$ac_try;;
  17821. esac
  17822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17823. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17824. ac_status=$?
  17825. grep -v '^ *+' conftest.er1 >conftest.err
  17826. rm -f conftest.er1
  17827. cat conftest.err >&5
  17828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17829. (exit $ac_status); } >/dev/null && {
  17830. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17831. test ! -s conftest.err
  17832. }; then
  17833. ac_header_preproc=yes
  17834. else
  17835. echo "$as_me: failed program was:" >&5
  17836. sed 's/^/| /' conftest.$ac_ext >&5
  17837. ac_header_preproc=no
  17838. fi
  17839. rm -f conftest.err conftest.$ac_ext
  17840. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17841. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17842. # So? What about this header?
  17843. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17844. yes:no: )
  17845. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17846. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17847. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17848. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17849. ac_header_preproc=yes
  17850. ;;
  17851. no:yes:* )
  17852. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17853. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17854. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17855. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17856. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17857. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17858. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17859. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17860. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17861. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17862. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17863. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17864. ( cat <<\_ASBOX
  17865. ## ----------------------------------------------- ##
  17866. ## Report this to t-tujikawa@users.sourceforge.net ##
  17867. ## ----------------------------------------------- ##
  17868. _ASBOX
  17869. ) | sed "s/^/$as_me: WARNING: /" >&2
  17870. ;;
  17871. esac
  17872. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17873. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17874. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17875. echo $ECHO_N "(cached) $ECHO_C" >&6
  17876. else
  17877. eval "$as_ac_Header=\$ac_header_preproc"
  17878. fi
  17879. ac_res=`eval echo '${'$as_ac_Header'}'`
  17880. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17881. echo "${ECHO_T}$ac_res" >&6; }
  17882. fi
  17883. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17884. cat >>confdefs.h <<_ACEOF
  17885. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17886. _ACEOF
  17887. fi
  17888. done
  17889. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17890. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17891. if test "${ac_cv_func_select_args+set}" = set; then
  17892. echo $ECHO_N "(cached) $ECHO_C" >&6
  17893. else
  17894. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17895. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17896. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17897. cat >conftest.$ac_ext <<_ACEOF
  17898. /* confdefs.h. */
  17899. _ACEOF
  17900. cat confdefs.h >>conftest.$ac_ext
  17901. cat >>conftest.$ac_ext <<_ACEOF
  17902. /* end confdefs.h. */
  17903. $ac_includes_default
  17904. #ifdef HAVE_SYS_SELECT_H
  17905. # include <sys/select.h>
  17906. #endif
  17907. #ifdef HAVE_SYS_SOCKET_H
  17908. # include <sys/socket.h>
  17909. #endif
  17910. int
  17911. main ()
  17912. {
  17913. extern int select ($ac_arg1,
  17914. $ac_arg234, $ac_arg234, $ac_arg234,
  17915. $ac_arg5);
  17916. ;
  17917. return 0;
  17918. }
  17919. _ACEOF
  17920. rm -f conftest.$ac_objext
  17921. if { (ac_try="$ac_compile"
  17922. case "(($ac_try" in
  17923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17924. *) ac_try_echo=$ac_try;;
  17925. esac
  17926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17927. (eval "$ac_compile") 2>conftest.er1
  17928. ac_status=$?
  17929. grep -v '^ *+' conftest.er1 >conftest.err
  17930. rm -f conftest.er1
  17931. cat conftest.err >&5
  17932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17933. (exit $ac_status); } && {
  17934. test -z "$ac_cxx_werror_flag" ||
  17935. test ! -s conftest.err
  17936. } && test -s conftest.$ac_objext; then
  17937. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17938. else
  17939. echo "$as_me: failed program was:" >&5
  17940. sed 's/^/| /' conftest.$ac_ext >&5
  17941. fi
  17942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17943. done
  17944. done
  17945. done
  17946. # Provide a safe default value.
  17947. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17948. fi
  17949. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17950. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17951. ac_save_IFS=$IFS; IFS=','
  17952. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17953. IFS=$ac_save_IFS
  17954. shift
  17955. cat >>confdefs.h <<_ACEOF
  17956. #define SELECT_TYPE_ARG1 $1
  17957. _ACEOF
  17958. cat >>confdefs.h <<_ACEOF
  17959. #define SELECT_TYPE_ARG234 ($2)
  17960. _ACEOF
  17961. cat >>confdefs.h <<_ACEOF
  17962. #define SELECT_TYPE_ARG5 ($3)
  17963. _ACEOF
  17964. rm -f conftest*
  17965. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17966. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17967. if test "${ac_cv_type_signal+set}" = set; then
  17968. echo $ECHO_N "(cached) $ECHO_C" >&6
  17969. else
  17970. cat >conftest.$ac_ext <<_ACEOF
  17971. /* confdefs.h. */
  17972. _ACEOF
  17973. cat confdefs.h >>conftest.$ac_ext
  17974. cat >>conftest.$ac_ext <<_ACEOF
  17975. /* end confdefs.h. */
  17976. #include <sys/types.h>
  17977. #include <signal.h>
  17978. int
  17979. main ()
  17980. {
  17981. return *(signal (0, 0)) (0) == 1;
  17982. ;
  17983. return 0;
  17984. }
  17985. _ACEOF
  17986. rm -f conftest.$ac_objext
  17987. if { (ac_try="$ac_compile"
  17988. case "(($ac_try" in
  17989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17990. *) ac_try_echo=$ac_try;;
  17991. esac
  17992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17993. (eval "$ac_compile") 2>conftest.er1
  17994. ac_status=$?
  17995. grep -v '^ *+' conftest.er1 >conftest.err
  17996. rm -f conftest.er1
  17997. cat conftest.err >&5
  17998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17999. (exit $ac_status); } && {
  18000. test -z "$ac_cxx_werror_flag" ||
  18001. test ! -s conftest.err
  18002. } && test -s conftest.$ac_objext; then
  18003. ac_cv_type_signal=int
  18004. else
  18005. echo "$as_me: failed program was:" >&5
  18006. sed 's/^/| /' conftest.$ac_ext >&5
  18007. ac_cv_type_signal=void
  18008. fi
  18009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18010. fi
  18011. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18012. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  18013. cat >>confdefs.h <<_ACEOF
  18014. #define RETSIGTYPE $ac_cv_type_signal
  18015. _ACEOF
  18016. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18017. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  18018. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18019. echo $ECHO_N "(cached) $ECHO_C" >&6
  18020. else
  18021. rm -f conftest.sym conftest.file
  18022. echo >conftest.file
  18023. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18024. if test "$cross_compiling" = yes; then
  18025. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18026. else
  18027. cat >conftest.$ac_ext <<_ACEOF
  18028. /* confdefs.h. */
  18029. _ACEOF
  18030. cat confdefs.h >>conftest.$ac_ext
  18031. cat >>conftest.$ac_ext <<_ACEOF
  18032. /* end confdefs.h. */
  18033. $ac_includes_default
  18034. int
  18035. main ()
  18036. {
  18037. struct stat sbuf;
  18038. /* Linux will dereference the symlink and fail.
  18039. That is better in the sense that it means we will not
  18040. have to compile and use the lstat wrapper. */
  18041. return lstat ("conftest.sym/", &sbuf) == 0;
  18042. ;
  18043. return 0;
  18044. }
  18045. _ACEOF
  18046. rm -f conftest$ac_exeext
  18047. if { (ac_try="$ac_link"
  18048. case "(($ac_try" in
  18049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18050. *) ac_try_echo=$ac_try;;
  18051. esac
  18052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18053. (eval "$ac_link") 2>&5
  18054. ac_status=$?
  18055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18056. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18057. { (case "(($ac_try" in
  18058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18059. *) ac_try_echo=$ac_try;;
  18060. esac
  18061. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18062. (eval "$ac_try") 2>&5
  18063. ac_status=$?
  18064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18065. (exit $ac_status); }; }; then
  18066. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18067. else
  18068. echo "$as_me: program exited with status $ac_status" >&5
  18069. echo "$as_me: failed program was:" >&5
  18070. sed 's/^/| /' conftest.$ac_ext >&5
  18071. ( exit $ac_status )
  18072. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18073. fi
  18074. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18075. fi
  18076. else
  18077. # If the `ln -s' command failed, then we probably don't even
  18078. # have an lstat function.
  18079. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18080. fi
  18081. rm -f conftest.sym conftest.file
  18082. fi
  18083. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18084. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18085. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18086. cat >>confdefs.h <<_ACEOF
  18087. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18088. _ACEOF
  18089. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18090. case " $LIBOBJS " in
  18091. *" lstat.$ac_objext "* ) ;;
  18092. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18093. ;;
  18094. esac
  18095. fi
  18096. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18097. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  18098. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18099. echo $ECHO_N "(cached) $ECHO_C" >&6
  18100. else
  18101. if test "$cross_compiling" = yes; then
  18102. ac_cv_func_stat_empty_string_bug=yes
  18103. else
  18104. cat >conftest.$ac_ext <<_ACEOF
  18105. /* confdefs.h. */
  18106. _ACEOF
  18107. cat confdefs.h >>conftest.$ac_ext
  18108. cat >>conftest.$ac_ext <<_ACEOF
  18109. /* end confdefs.h. */
  18110. $ac_includes_default
  18111. int
  18112. main ()
  18113. {
  18114. struct stat sbuf;
  18115. return stat ("", &sbuf) == 0;
  18116. ;
  18117. return 0;
  18118. }
  18119. _ACEOF
  18120. rm -f conftest$ac_exeext
  18121. if { (ac_try="$ac_link"
  18122. case "(($ac_try" in
  18123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18124. *) ac_try_echo=$ac_try;;
  18125. esac
  18126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18127. (eval "$ac_link") 2>&5
  18128. ac_status=$?
  18129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18130. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18131. { (case "(($ac_try" in
  18132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18133. *) ac_try_echo=$ac_try;;
  18134. esac
  18135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18136. (eval "$ac_try") 2>&5
  18137. ac_status=$?
  18138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18139. (exit $ac_status); }; }; then
  18140. ac_cv_func_stat_empty_string_bug=no
  18141. else
  18142. echo "$as_me: program exited with status $ac_status" >&5
  18143. echo "$as_me: failed program was:" >&5
  18144. sed 's/^/| /' conftest.$ac_ext >&5
  18145. ( exit $ac_status )
  18146. ac_cv_func_stat_empty_string_bug=yes
  18147. fi
  18148. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18149. fi
  18150. fi
  18151. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18152. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  18153. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18154. case " $LIBOBJS " in
  18155. *" stat.$ac_objext "* ) ;;
  18156. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18157. ;;
  18158. esac
  18159. cat >>confdefs.h <<_ACEOF
  18160. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18161. _ACEOF
  18162. fi
  18163. for ac_func in strftime
  18164. do
  18165. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18166. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18167. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18168. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18169. echo $ECHO_N "(cached) $ECHO_C" >&6
  18170. else
  18171. cat >conftest.$ac_ext <<_ACEOF
  18172. /* confdefs.h. */
  18173. _ACEOF
  18174. cat confdefs.h >>conftest.$ac_ext
  18175. cat >>conftest.$ac_ext <<_ACEOF
  18176. /* end confdefs.h. */
  18177. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18178. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18179. #define $ac_func innocuous_$ac_func
  18180. /* System header to define __stub macros and hopefully few prototypes,
  18181. which can conflict with char $ac_func (); below.
  18182. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18183. <limits.h> exists even on freestanding compilers. */
  18184. #ifdef __STDC__
  18185. # include <limits.h>
  18186. #else
  18187. # include <assert.h>
  18188. #endif
  18189. #undef $ac_func
  18190. /* Override any GCC internal prototype to avoid an error.
  18191. Use char because int might match the return type of a GCC
  18192. builtin and then its argument prototype would still apply. */
  18193. #ifdef __cplusplus
  18194. extern "C"
  18195. #endif
  18196. char $ac_func ();
  18197. /* The GNU C library defines this for functions which it implements
  18198. to always fail with ENOSYS. Some functions are actually named
  18199. something starting with __ and the normal name is an alias. */
  18200. #if defined __stub_$ac_func || defined __stub___$ac_func
  18201. choke me
  18202. #endif
  18203. int
  18204. main ()
  18205. {
  18206. return $ac_func ();
  18207. ;
  18208. return 0;
  18209. }
  18210. _ACEOF
  18211. rm -f conftest.$ac_objext conftest$ac_exeext
  18212. if { (ac_try="$ac_link"
  18213. case "(($ac_try" in
  18214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18215. *) ac_try_echo=$ac_try;;
  18216. esac
  18217. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18218. (eval "$ac_link") 2>conftest.er1
  18219. ac_status=$?
  18220. grep -v '^ *+' conftest.er1 >conftest.err
  18221. rm -f conftest.er1
  18222. cat conftest.err >&5
  18223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18224. (exit $ac_status); } && {
  18225. test -z "$ac_cxx_werror_flag" ||
  18226. test ! -s conftest.err
  18227. } && test -s conftest$ac_exeext &&
  18228. $as_test_x conftest$ac_exeext; then
  18229. eval "$as_ac_var=yes"
  18230. else
  18231. echo "$as_me: failed program was:" >&5
  18232. sed 's/^/| /' conftest.$ac_ext >&5
  18233. eval "$as_ac_var=no"
  18234. fi
  18235. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18236. conftest$ac_exeext conftest.$ac_ext
  18237. fi
  18238. ac_res=`eval echo '${'$as_ac_var'}'`
  18239. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18240. echo "${ECHO_T}$ac_res" >&6; }
  18241. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18242. cat >>confdefs.h <<_ACEOF
  18243. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18244. _ACEOF
  18245. else
  18246. # strftime is in -lintl on SCO UNIX.
  18247. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18248. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18249. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18250. echo $ECHO_N "(cached) $ECHO_C" >&6
  18251. else
  18252. ac_check_lib_save_LIBS=$LIBS
  18253. LIBS="-lintl $LIBS"
  18254. cat >conftest.$ac_ext <<_ACEOF
  18255. /* confdefs.h. */
  18256. _ACEOF
  18257. cat confdefs.h >>conftest.$ac_ext
  18258. cat >>conftest.$ac_ext <<_ACEOF
  18259. /* end confdefs.h. */
  18260. /* Override any GCC internal prototype to avoid an error.
  18261. Use char because int might match the return type of a GCC
  18262. builtin and then its argument prototype would still apply. */
  18263. #ifdef __cplusplus
  18264. extern "C"
  18265. #endif
  18266. char strftime ();
  18267. int
  18268. main ()
  18269. {
  18270. return strftime ();
  18271. ;
  18272. return 0;
  18273. }
  18274. _ACEOF
  18275. rm -f conftest.$ac_objext conftest$ac_exeext
  18276. if { (ac_try="$ac_link"
  18277. case "(($ac_try" in
  18278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18279. *) ac_try_echo=$ac_try;;
  18280. esac
  18281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18282. (eval "$ac_link") 2>conftest.er1
  18283. ac_status=$?
  18284. grep -v '^ *+' conftest.er1 >conftest.err
  18285. rm -f conftest.er1
  18286. cat conftest.err >&5
  18287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18288. (exit $ac_status); } && {
  18289. test -z "$ac_cxx_werror_flag" ||
  18290. test ! -s conftest.err
  18291. } && test -s conftest$ac_exeext &&
  18292. $as_test_x conftest$ac_exeext; then
  18293. ac_cv_lib_intl_strftime=yes
  18294. else
  18295. echo "$as_me: failed program was:" >&5
  18296. sed 's/^/| /' conftest.$ac_ext >&5
  18297. ac_cv_lib_intl_strftime=no
  18298. fi
  18299. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18300. conftest$ac_exeext conftest.$ac_ext
  18301. LIBS=$ac_check_lib_save_LIBS
  18302. fi
  18303. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18304. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  18305. if test $ac_cv_lib_intl_strftime = yes; then
  18306. cat >>confdefs.h <<\_ACEOF
  18307. #define HAVE_STRFTIME 1
  18308. _ACEOF
  18309. LIBS="-lintl $LIBS"
  18310. fi
  18311. fi
  18312. done
  18313. for ac_func in vprintf
  18314. do
  18315. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18316. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18317. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18318. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18319. echo $ECHO_N "(cached) $ECHO_C" >&6
  18320. else
  18321. cat >conftest.$ac_ext <<_ACEOF
  18322. /* confdefs.h. */
  18323. _ACEOF
  18324. cat confdefs.h >>conftest.$ac_ext
  18325. cat >>conftest.$ac_ext <<_ACEOF
  18326. /* end confdefs.h. */
  18327. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18328. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18329. #define $ac_func innocuous_$ac_func
  18330. /* System header to define __stub macros and hopefully few prototypes,
  18331. which can conflict with char $ac_func (); below.
  18332. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18333. <limits.h> exists even on freestanding compilers. */
  18334. #ifdef __STDC__
  18335. # include <limits.h>
  18336. #else
  18337. # include <assert.h>
  18338. #endif
  18339. #undef $ac_func
  18340. /* Override any GCC internal prototype to avoid an error.
  18341. Use char because int might match the return type of a GCC
  18342. builtin and then its argument prototype would still apply. */
  18343. #ifdef __cplusplus
  18344. extern "C"
  18345. #endif
  18346. char $ac_func ();
  18347. /* The GNU C library defines this for functions which it implements
  18348. to always fail with ENOSYS. Some functions are actually named
  18349. something starting with __ and the normal name is an alias. */
  18350. #if defined __stub_$ac_func || defined __stub___$ac_func
  18351. choke me
  18352. #endif
  18353. int
  18354. main ()
  18355. {
  18356. return $ac_func ();
  18357. ;
  18358. return 0;
  18359. }
  18360. _ACEOF
  18361. rm -f conftest.$ac_objext conftest$ac_exeext
  18362. if { (ac_try="$ac_link"
  18363. case "(($ac_try" in
  18364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18365. *) ac_try_echo=$ac_try;;
  18366. esac
  18367. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18368. (eval "$ac_link") 2>conftest.er1
  18369. ac_status=$?
  18370. grep -v '^ *+' conftest.er1 >conftest.err
  18371. rm -f conftest.er1
  18372. cat conftest.err >&5
  18373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18374. (exit $ac_status); } && {
  18375. test -z "$ac_cxx_werror_flag" ||
  18376. test ! -s conftest.err
  18377. } && test -s conftest$ac_exeext &&
  18378. $as_test_x conftest$ac_exeext; then
  18379. eval "$as_ac_var=yes"
  18380. else
  18381. echo "$as_me: failed program was:" >&5
  18382. sed 's/^/| /' conftest.$ac_ext >&5
  18383. eval "$as_ac_var=no"
  18384. fi
  18385. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18386. conftest$ac_exeext conftest.$ac_ext
  18387. fi
  18388. ac_res=`eval echo '${'$as_ac_var'}'`
  18389. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18390. echo "${ECHO_T}$ac_res" >&6; }
  18391. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18392. cat >>confdefs.h <<_ACEOF
  18393. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18394. _ACEOF
  18395. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18396. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18397. if test "${ac_cv_func__doprnt+set}" = set; then
  18398. echo $ECHO_N "(cached) $ECHO_C" >&6
  18399. else
  18400. cat >conftest.$ac_ext <<_ACEOF
  18401. /* confdefs.h. */
  18402. _ACEOF
  18403. cat confdefs.h >>conftest.$ac_ext
  18404. cat >>conftest.$ac_ext <<_ACEOF
  18405. /* end confdefs.h. */
  18406. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18407. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18408. #define _doprnt innocuous__doprnt
  18409. /* System header to define __stub macros and hopefully few prototypes,
  18410. which can conflict with char _doprnt (); below.
  18411. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18412. <limits.h> exists even on freestanding compilers. */
  18413. #ifdef __STDC__
  18414. # include <limits.h>
  18415. #else
  18416. # include <assert.h>
  18417. #endif
  18418. #undef _doprnt
  18419. /* Override any GCC internal prototype to avoid an error.
  18420. Use char because int might match the return type of a GCC
  18421. builtin and then its argument prototype would still apply. */
  18422. #ifdef __cplusplus
  18423. extern "C"
  18424. #endif
  18425. char _doprnt ();
  18426. /* The GNU C library defines this for functions which it implements
  18427. to always fail with ENOSYS. Some functions are actually named
  18428. something starting with __ and the normal name is an alias. */
  18429. #if defined __stub__doprnt || defined __stub____doprnt
  18430. choke me
  18431. #endif
  18432. int
  18433. main ()
  18434. {
  18435. return _doprnt ();
  18436. ;
  18437. return 0;
  18438. }
  18439. _ACEOF
  18440. rm -f conftest.$ac_objext conftest$ac_exeext
  18441. if { (ac_try="$ac_link"
  18442. case "(($ac_try" in
  18443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18444. *) ac_try_echo=$ac_try;;
  18445. esac
  18446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18447. (eval "$ac_link") 2>conftest.er1
  18448. ac_status=$?
  18449. grep -v '^ *+' conftest.er1 >conftest.err
  18450. rm -f conftest.er1
  18451. cat conftest.err >&5
  18452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18453. (exit $ac_status); } && {
  18454. test -z "$ac_cxx_werror_flag" ||
  18455. test ! -s conftest.err
  18456. } && test -s conftest$ac_exeext &&
  18457. $as_test_x conftest$ac_exeext; then
  18458. ac_cv_func__doprnt=yes
  18459. else
  18460. echo "$as_me: failed program was:" >&5
  18461. sed 's/^/| /' conftest.$ac_ext >&5
  18462. ac_cv_func__doprnt=no
  18463. fi
  18464. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18465. conftest$ac_exeext conftest.$ac_ext
  18466. fi
  18467. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18468. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18469. if test $ac_cv_func__doprnt = yes; then
  18470. cat >>confdefs.h <<\_ACEOF
  18471. #define HAVE_DOPRNT 1
  18472. _ACEOF
  18473. fi
  18474. fi
  18475. done
  18476. for ac_func in __argz_count \
  18477. __argz_next \
  18478. __argz_stringify \
  18479. atexit \
  18480. daemon \
  18481. ftruncate \
  18482. getcwd \
  18483. gethostbyaddr \
  18484. gethostbyname \
  18485. getpagesize \
  18486. inet_ntoa \
  18487. memchr \
  18488. memmove \
  18489. mempcpy \
  18490. memset \
  18491. mkdir \
  18492. munmap \
  18493. nl_langinfo \
  18494. posix_memalign \
  18495. putenv \
  18496. rmdir \
  18497. select \
  18498. setlocale \
  18499. sleep \
  18500. socket \
  18501. stpcpy \
  18502. strcasecmp \
  18503. strchr \
  18504. strcspn \
  18505. strdup \
  18506. strerror \
  18507. strncasecmp \
  18508. strstr \
  18509. strtol \
  18510. strtoul \
  18511. strtoull \
  18512. tzset \
  18513. unsetenv \
  18514. usleep
  18515. do
  18516. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18517. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18518. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18519. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18520. echo $ECHO_N "(cached) $ECHO_C" >&6
  18521. else
  18522. cat >conftest.$ac_ext <<_ACEOF
  18523. /* confdefs.h. */
  18524. _ACEOF
  18525. cat confdefs.h >>conftest.$ac_ext
  18526. cat >>conftest.$ac_ext <<_ACEOF
  18527. /* end confdefs.h. */
  18528. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18529. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18530. #define $ac_func innocuous_$ac_func
  18531. /* System header to define __stub macros and hopefully few prototypes,
  18532. which can conflict with char $ac_func (); below.
  18533. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18534. <limits.h> exists even on freestanding compilers. */
  18535. #ifdef __STDC__
  18536. # include <limits.h>
  18537. #else
  18538. # include <assert.h>
  18539. #endif
  18540. #undef $ac_func
  18541. /* Override any GCC internal prototype to avoid an error.
  18542. Use char because int might match the return type of a GCC
  18543. builtin and then its argument prototype would still apply. */
  18544. #ifdef __cplusplus
  18545. extern "C"
  18546. #endif
  18547. char $ac_func ();
  18548. /* The GNU C library defines this for functions which it implements
  18549. to always fail with ENOSYS. Some functions are actually named
  18550. something starting with __ and the normal name is an alias. */
  18551. #if defined __stub_$ac_func || defined __stub___$ac_func
  18552. choke me
  18553. #endif
  18554. int
  18555. main ()
  18556. {
  18557. return $ac_func ();
  18558. ;
  18559. return 0;
  18560. }
  18561. _ACEOF
  18562. rm -f conftest.$ac_objext conftest$ac_exeext
  18563. if { (ac_try="$ac_link"
  18564. case "(($ac_try" in
  18565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18566. *) ac_try_echo=$ac_try;;
  18567. esac
  18568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18569. (eval "$ac_link") 2>conftest.er1
  18570. ac_status=$?
  18571. grep -v '^ *+' conftest.er1 >conftest.err
  18572. rm -f conftest.er1
  18573. cat conftest.err >&5
  18574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18575. (exit $ac_status); } && {
  18576. test -z "$ac_cxx_werror_flag" ||
  18577. test ! -s conftest.err
  18578. } && test -s conftest$ac_exeext &&
  18579. $as_test_x conftest$ac_exeext; then
  18580. eval "$as_ac_var=yes"
  18581. else
  18582. echo "$as_me: failed program was:" >&5
  18583. sed 's/^/| /' conftest.$ac_ext >&5
  18584. eval "$as_ac_var=no"
  18585. fi
  18586. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18587. conftest$ac_exeext conftest.$ac_ext
  18588. fi
  18589. ac_res=`eval echo '${'$as_ac_var'}'`
  18590. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18591. echo "${ECHO_T}$ac_res" >&6; }
  18592. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18593. cat >>confdefs.h <<_ACEOF
  18594. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18595. _ACEOF
  18596. fi
  18597. done
  18598. if test "x$enable_epoll" = "xyes"; then
  18599. for ac_func in epoll_create
  18600. do
  18601. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18602. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18603. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18604. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18605. echo $ECHO_N "(cached) $ECHO_C" >&6
  18606. else
  18607. cat >conftest.$ac_ext <<_ACEOF
  18608. /* confdefs.h. */
  18609. _ACEOF
  18610. cat confdefs.h >>conftest.$ac_ext
  18611. cat >>conftest.$ac_ext <<_ACEOF
  18612. /* end confdefs.h. */
  18613. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18614. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18615. #define $ac_func innocuous_$ac_func
  18616. /* System header to define __stub macros and hopefully few prototypes,
  18617. which can conflict with char $ac_func (); below.
  18618. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18619. <limits.h> exists even on freestanding compilers. */
  18620. #ifdef __STDC__
  18621. # include <limits.h>
  18622. #else
  18623. # include <assert.h>
  18624. #endif
  18625. #undef $ac_func
  18626. /* Override any GCC internal prototype to avoid an error.
  18627. Use char because int might match the return type of a GCC
  18628. builtin and then its argument prototype would still apply. */
  18629. #ifdef __cplusplus
  18630. extern "C"
  18631. #endif
  18632. char $ac_func ();
  18633. /* The GNU C library defines this for functions which it implements
  18634. to always fail with ENOSYS. Some functions are actually named
  18635. something starting with __ and the normal name is an alias. */
  18636. #if defined __stub_$ac_func || defined __stub___$ac_func
  18637. choke me
  18638. #endif
  18639. int
  18640. main ()
  18641. {
  18642. return $ac_func ();
  18643. ;
  18644. return 0;
  18645. }
  18646. _ACEOF
  18647. rm -f conftest.$ac_objext conftest$ac_exeext
  18648. if { (ac_try="$ac_link"
  18649. case "(($ac_try" in
  18650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18651. *) ac_try_echo=$ac_try;;
  18652. esac
  18653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18654. (eval "$ac_link") 2>conftest.er1
  18655. ac_status=$?
  18656. grep -v '^ *+' conftest.er1 >conftest.err
  18657. rm -f conftest.er1
  18658. cat conftest.err >&5
  18659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18660. (exit $ac_status); } && {
  18661. test -z "$ac_cxx_werror_flag" ||
  18662. test ! -s conftest.err
  18663. } && test -s conftest$ac_exeext &&
  18664. $as_test_x conftest$ac_exeext; then
  18665. eval "$as_ac_var=yes"
  18666. else
  18667. echo "$as_me: failed program was:" >&5
  18668. sed 's/^/| /' conftest.$ac_ext >&5
  18669. eval "$as_ac_var=no"
  18670. fi
  18671. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18672. conftest$ac_exeext conftest.$ac_ext
  18673. fi
  18674. ac_res=`eval echo '${'$as_ac_var'}'`
  18675. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18676. echo "${ECHO_T}$ac_res" >&6; }
  18677. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18678. cat >>confdefs.h <<_ACEOF
  18679. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18680. _ACEOF
  18681. fi
  18682. done
  18683. fi
  18684. for ac_func in asctime_r
  18685. do
  18686. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18687. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18688. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18689. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18690. echo $ECHO_N "(cached) $ECHO_C" >&6
  18691. else
  18692. cat >conftest.$ac_ext <<_ACEOF
  18693. /* confdefs.h. */
  18694. _ACEOF
  18695. cat confdefs.h >>conftest.$ac_ext
  18696. cat >>conftest.$ac_ext <<_ACEOF
  18697. /* end confdefs.h. */
  18698. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18699. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18700. #define $ac_func innocuous_$ac_func
  18701. /* System header to define __stub macros and hopefully few prototypes,
  18702. which can conflict with char $ac_func (); below.
  18703. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18704. <limits.h> exists even on freestanding compilers. */
  18705. #ifdef __STDC__
  18706. # include <limits.h>
  18707. #else
  18708. # include <assert.h>
  18709. #endif
  18710. #undef $ac_func
  18711. /* Override any GCC internal prototype to avoid an error.
  18712. Use char because int might match the return type of a GCC
  18713. builtin and then its argument prototype would still apply. */
  18714. #ifdef __cplusplus
  18715. extern "C"
  18716. #endif
  18717. char $ac_func ();
  18718. /* The GNU C library defines this for functions which it implements
  18719. to always fail with ENOSYS. Some functions are actually named
  18720. something starting with __ and the normal name is an alias. */
  18721. #if defined __stub_$ac_func || defined __stub___$ac_func
  18722. choke me
  18723. #endif
  18724. int
  18725. main ()
  18726. {
  18727. return $ac_func ();
  18728. ;
  18729. return 0;
  18730. }
  18731. _ACEOF
  18732. rm -f conftest.$ac_objext conftest$ac_exeext
  18733. if { (ac_try="$ac_link"
  18734. case "(($ac_try" in
  18735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18736. *) ac_try_echo=$ac_try;;
  18737. esac
  18738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18739. (eval "$ac_link") 2>conftest.er1
  18740. ac_status=$?
  18741. grep -v '^ *+' conftest.er1 >conftest.err
  18742. rm -f conftest.er1
  18743. cat conftest.err >&5
  18744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18745. (exit $ac_status); } && {
  18746. test -z "$ac_cxx_werror_flag" ||
  18747. test ! -s conftest.err
  18748. } && test -s conftest$ac_exeext &&
  18749. $as_test_x conftest$ac_exeext; then
  18750. eval "$as_ac_var=yes"
  18751. else
  18752. echo "$as_me: failed program was:" >&5
  18753. sed 's/^/| /' conftest.$ac_ext >&5
  18754. eval "$as_ac_var=no"
  18755. fi
  18756. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18757. conftest$ac_exeext conftest.$ac_ext
  18758. fi
  18759. ac_res=`eval echo '${'$as_ac_var'}'`
  18760. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18761. echo "${ECHO_T}$ac_res" >&6; }
  18762. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18763. cat >>confdefs.h <<_ACEOF
  18764. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18765. _ACEOF
  18766. if true; then
  18767. HAVE_ASCTIME_R_TRUE=
  18768. HAVE_ASCTIME_R_FALSE='#'
  18769. else
  18770. HAVE_ASCTIME_R_TRUE='#'
  18771. HAVE_ASCTIME_R_FALSE=
  18772. fi
  18773. else
  18774. if false; 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. fi
  18782. done
  18783. for ac_func in basename
  18784. do
  18785. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18786. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18787. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18788. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18789. echo $ECHO_N "(cached) $ECHO_C" >&6
  18790. else
  18791. cat >conftest.$ac_ext <<_ACEOF
  18792. /* confdefs.h. */
  18793. _ACEOF
  18794. cat confdefs.h >>conftest.$ac_ext
  18795. cat >>conftest.$ac_ext <<_ACEOF
  18796. /* end confdefs.h. */
  18797. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18798. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18799. #define $ac_func innocuous_$ac_func
  18800. /* System header to define __stub macros and hopefully few prototypes,
  18801. which can conflict with char $ac_func (); below.
  18802. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18803. <limits.h> exists even on freestanding compilers. */
  18804. #ifdef __STDC__
  18805. # include <limits.h>
  18806. #else
  18807. # include <assert.h>
  18808. #endif
  18809. #undef $ac_func
  18810. /* Override any GCC internal prototype to avoid an error.
  18811. Use char because int might match the return type of a GCC
  18812. builtin and then its argument prototype would still apply. */
  18813. #ifdef __cplusplus
  18814. extern "C"
  18815. #endif
  18816. char $ac_func ();
  18817. /* The GNU C library defines this for functions which it implements
  18818. to always fail with ENOSYS. Some functions are actually named
  18819. something starting with __ and the normal name is an alias. */
  18820. #if defined __stub_$ac_func || defined __stub___$ac_func
  18821. choke me
  18822. #endif
  18823. int
  18824. main ()
  18825. {
  18826. return $ac_func ();
  18827. ;
  18828. return 0;
  18829. }
  18830. _ACEOF
  18831. rm -f conftest.$ac_objext conftest$ac_exeext
  18832. if { (ac_try="$ac_link"
  18833. case "(($ac_try" in
  18834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18835. *) ac_try_echo=$ac_try;;
  18836. esac
  18837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18838. (eval "$ac_link") 2>conftest.er1
  18839. ac_status=$?
  18840. grep -v '^ *+' conftest.er1 >conftest.err
  18841. rm -f conftest.er1
  18842. cat conftest.err >&5
  18843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18844. (exit $ac_status); } && {
  18845. test -z "$ac_cxx_werror_flag" ||
  18846. test ! -s conftest.err
  18847. } && test -s conftest$ac_exeext &&
  18848. $as_test_x conftest$ac_exeext; then
  18849. eval "$as_ac_var=yes"
  18850. else
  18851. echo "$as_me: failed program was:" >&5
  18852. sed 's/^/| /' conftest.$ac_ext >&5
  18853. eval "$as_ac_var=no"
  18854. fi
  18855. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18856. conftest$ac_exeext conftest.$ac_ext
  18857. fi
  18858. ac_res=`eval echo '${'$as_ac_var'}'`
  18859. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18860. echo "${ECHO_T}$ac_res" >&6; }
  18861. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18862. cat >>confdefs.h <<_ACEOF
  18863. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18864. _ACEOF
  18865. if true; then
  18866. HAVE_BASENAME_TRUE=
  18867. HAVE_BASENAME_FALSE='#'
  18868. else
  18869. HAVE_BASENAME_TRUE='#'
  18870. HAVE_BASENAME_FALSE=
  18871. fi
  18872. else
  18873. if false; then
  18874. HAVE_BASENAME_TRUE=
  18875. HAVE_BASENAME_FALSE='#'
  18876. else
  18877. HAVE_BASENAME_TRUE='#'
  18878. HAVE_BASENAME_FALSE=
  18879. fi
  18880. fi
  18881. done
  18882. for ac_func in gai_strerror
  18883. do
  18884. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18885. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18886. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18887. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18888. echo $ECHO_N "(cached) $ECHO_C" >&6
  18889. else
  18890. cat >conftest.$ac_ext <<_ACEOF
  18891. /* confdefs.h. */
  18892. _ACEOF
  18893. cat confdefs.h >>conftest.$ac_ext
  18894. cat >>conftest.$ac_ext <<_ACEOF
  18895. /* end confdefs.h. */
  18896. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18897. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18898. #define $ac_func innocuous_$ac_func
  18899. /* System header to define __stub macros and hopefully few prototypes,
  18900. which can conflict with char $ac_func (); below.
  18901. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18902. <limits.h> exists even on freestanding compilers. */
  18903. #ifdef __STDC__
  18904. # include <limits.h>
  18905. #else
  18906. # include <assert.h>
  18907. #endif
  18908. #undef $ac_func
  18909. /* Override any GCC internal prototype to avoid an error.
  18910. Use char because int might match the return type of a GCC
  18911. builtin and then its argument prototype would still apply. */
  18912. #ifdef __cplusplus
  18913. extern "C"
  18914. #endif
  18915. char $ac_func ();
  18916. /* The GNU C library defines this for functions which it implements
  18917. to always fail with ENOSYS. Some functions are actually named
  18918. something starting with __ and the normal name is an alias. */
  18919. #if defined __stub_$ac_func || defined __stub___$ac_func
  18920. choke me
  18921. #endif
  18922. int
  18923. main ()
  18924. {
  18925. return $ac_func ();
  18926. ;
  18927. return 0;
  18928. }
  18929. _ACEOF
  18930. rm -f conftest.$ac_objext conftest$ac_exeext
  18931. if { (ac_try="$ac_link"
  18932. case "(($ac_try" in
  18933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18934. *) ac_try_echo=$ac_try;;
  18935. esac
  18936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18937. (eval "$ac_link") 2>conftest.er1
  18938. ac_status=$?
  18939. grep -v '^ *+' conftest.er1 >conftest.err
  18940. rm -f conftest.er1
  18941. cat conftest.err >&5
  18942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18943. (exit $ac_status); } && {
  18944. test -z "$ac_cxx_werror_flag" ||
  18945. test ! -s conftest.err
  18946. } && test -s conftest$ac_exeext &&
  18947. $as_test_x conftest$ac_exeext; then
  18948. eval "$as_ac_var=yes"
  18949. else
  18950. echo "$as_me: failed program was:" >&5
  18951. sed 's/^/| /' conftest.$ac_ext >&5
  18952. eval "$as_ac_var=no"
  18953. fi
  18954. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18955. conftest$ac_exeext conftest.$ac_ext
  18956. fi
  18957. ac_res=`eval echo '${'$as_ac_var'}'`
  18958. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18959. echo "${ECHO_T}$ac_res" >&6; }
  18960. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18961. cat >>confdefs.h <<_ACEOF
  18962. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18963. _ACEOF
  18964. if true; then
  18965. HAVE_GAI_STRERROR_TRUE=
  18966. HAVE_GAI_STRERROR_FALSE='#'
  18967. else
  18968. HAVE_GAI_STRERROR_TRUE='#'
  18969. HAVE_GAI_STRERROR_FALSE=
  18970. fi
  18971. else
  18972. if false; 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. fi
  18980. done
  18981. for ac_func in getaddrinfo
  18982. do
  18983. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18984. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18985. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18986. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18987. echo $ECHO_N "(cached) $ECHO_C" >&6
  18988. else
  18989. cat >conftest.$ac_ext <<_ACEOF
  18990. /* confdefs.h. */
  18991. _ACEOF
  18992. cat confdefs.h >>conftest.$ac_ext
  18993. cat >>conftest.$ac_ext <<_ACEOF
  18994. /* end confdefs.h. */
  18995. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18996. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18997. #define $ac_func innocuous_$ac_func
  18998. /* System header to define __stub macros and hopefully few prototypes,
  18999. which can conflict with char $ac_func (); below.
  19000. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19001. <limits.h> exists even on freestanding compilers. */
  19002. #ifdef __STDC__
  19003. # include <limits.h>
  19004. #else
  19005. # include <assert.h>
  19006. #endif
  19007. #undef $ac_func
  19008. /* Override any GCC internal prototype to avoid an error.
  19009. Use char because int might match the return type of a GCC
  19010. builtin and then its argument prototype would still apply. */
  19011. #ifdef __cplusplus
  19012. extern "C"
  19013. #endif
  19014. char $ac_func ();
  19015. /* The GNU C library defines this for functions which it implements
  19016. to always fail with ENOSYS. Some functions are actually named
  19017. something starting with __ and the normal name is an alias. */
  19018. #if defined __stub_$ac_func || defined __stub___$ac_func
  19019. choke me
  19020. #endif
  19021. int
  19022. main ()
  19023. {
  19024. return $ac_func ();
  19025. ;
  19026. return 0;
  19027. }
  19028. _ACEOF
  19029. rm -f conftest.$ac_objext conftest$ac_exeext
  19030. if { (ac_try="$ac_link"
  19031. case "(($ac_try" in
  19032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19033. *) ac_try_echo=$ac_try;;
  19034. esac
  19035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19036. (eval "$ac_link") 2>conftest.er1
  19037. ac_status=$?
  19038. grep -v '^ *+' conftest.er1 >conftest.err
  19039. rm -f conftest.er1
  19040. cat conftest.err >&5
  19041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19042. (exit $ac_status); } && {
  19043. test -z "$ac_cxx_werror_flag" ||
  19044. test ! -s conftest.err
  19045. } && test -s conftest$ac_exeext &&
  19046. $as_test_x conftest$ac_exeext; then
  19047. eval "$as_ac_var=yes"
  19048. else
  19049. echo "$as_me: failed program was:" >&5
  19050. sed 's/^/| /' conftest.$ac_ext >&5
  19051. eval "$as_ac_var=no"
  19052. fi
  19053. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19054. conftest$ac_exeext conftest.$ac_ext
  19055. fi
  19056. ac_res=`eval echo '${'$as_ac_var'}'`
  19057. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19058. echo "${ECHO_T}$ac_res" >&6; }
  19059. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19060. cat >>confdefs.h <<_ACEOF
  19061. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19062. _ACEOF
  19063. if true; then
  19064. HAVE_GETADDRINFO_TRUE=
  19065. HAVE_GETADDRINFO_FALSE='#'
  19066. else
  19067. HAVE_GETADDRINFO_TRUE='#'
  19068. HAVE_GETADDRINFO_FALSE=
  19069. fi
  19070. else
  19071. if false; then
  19072. HAVE_GETADDRINFO_TRUE=
  19073. HAVE_GETADDRINFO_FALSE='#'
  19074. else
  19075. HAVE_GETADDRINFO_TRUE='#'
  19076. HAVE_GETADDRINFO_FALSE=
  19077. fi
  19078. fi
  19079. done
  19080. for ac_func in gettimeofday
  19081. do
  19082. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19083. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19084. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19085. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19086. echo $ECHO_N "(cached) $ECHO_C" >&6
  19087. else
  19088. cat >conftest.$ac_ext <<_ACEOF
  19089. /* confdefs.h. */
  19090. _ACEOF
  19091. cat confdefs.h >>conftest.$ac_ext
  19092. cat >>conftest.$ac_ext <<_ACEOF
  19093. /* end confdefs.h. */
  19094. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19095. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19096. #define $ac_func innocuous_$ac_func
  19097. /* System header to define __stub macros and hopefully few prototypes,
  19098. which can conflict with char $ac_func (); below.
  19099. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19100. <limits.h> exists even on freestanding compilers. */
  19101. #ifdef __STDC__
  19102. # include <limits.h>
  19103. #else
  19104. # include <assert.h>
  19105. #endif
  19106. #undef $ac_func
  19107. /* Override any GCC internal prototype to avoid an error.
  19108. Use char because int might match the return type of a GCC
  19109. builtin and then its argument prototype would still apply. */
  19110. #ifdef __cplusplus
  19111. extern "C"
  19112. #endif
  19113. char $ac_func ();
  19114. /* The GNU C library defines this for functions which it implements
  19115. to always fail with ENOSYS. Some functions are actually named
  19116. something starting with __ and the normal name is an alias. */
  19117. #if defined __stub_$ac_func || defined __stub___$ac_func
  19118. choke me
  19119. #endif
  19120. int
  19121. main ()
  19122. {
  19123. return $ac_func ();
  19124. ;
  19125. return 0;
  19126. }
  19127. _ACEOF
  19128. rm -f conftest.$ac_objext conftest$ac_exeext
  19129. if { (ac_try="$ac_link"
  19130. case "(($ac_try" in
  19131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19132. *) ac_try_echo=$ac_try;;
  19133. esac
  19134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19135. (eval "$ac_link") 2>conftest.er1
  19136. ac_status=$?
  19137. grep -v '^ *+' conftest.er1 >conftest.err
  19138. rm -f conftest.er1
  19139. cat conftest.err >&5
  19140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19141. (exit $ac_status); } && {
  19142. test -z "$ac_cxx_werror_flag" ||
  19143. test ! -s conftest.err
  19144. } && test -s conftest$ac_exeext &&
  19145. $as_test_x conftest$ac_exeext; then
  19146. eval "$as_ac_var=yes"
  19147. else
  19148. echo "$as_me: failed program was:" >&5
  19149. sed 's/^/| /' conftest.$ac_ext >&5
  19150. eval "$as_ac_var=no"
  19151. fi
  19152. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19153. conftest$ac_exeext conftest.$ac_ext
  19154. fi
  19155. ac_res=`eval echo '${'$as_ac_var'}'`
  19156. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19157. echo "${ECHO_T}$ac_res" >&6; }
  19158. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19159. cat >>confdefs.h <<_ACEOF
  19160. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19161. _ACEOF
  19162. if true; then
  19163. HAVE_GETTIMEOFDAY_TRUE=
  19164. HAVE_GETTIMEOFDAY_FALSE='#'
  19165. else
  19166. HAVE_GETTIMEOFDAY_TRUE='#'
  19167. HAVE_GETTIMEOFDAY_FALSE=
  19168. fi
  19169. else
  19170. if false; then
  19171. HAVE_GETTIMEOFDAY_TRUE=
  19172. HAVE_GETTIMEOFDAY_FALSE='#'
  19173. else
  19174. HAVE_GETTIMEOFDAY_TRUE='#'
  19175. HAVE_GETTIMEOFDAY_FALSE=
  19176. fi
  19177. fi
  19178. done
  19179. for ac_func in inet_aton
  19180. do
  19181. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19182. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19183. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19184. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19185. echo $ECHO_N "(cached) $ECHO_C" >&6
  19186. else
  19187. cat >conftest.$ac_ext <<_ACEOF
  19188. /* confdefs.h. */
  19189. _ACEOF
  19190. cat confdefs.h >>conftest.$ac_ext
  19191. cat >>conftest.$ac_ext <<_ACEOF
  19192. /* end confdefs.h. */
  19193. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19194. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19195. #define $ac_func innocuous_$ac_func
  19196. /* System header to define __stub macros and hopefully few prototypes,
  19197. which can conflict with char $ac_func (); below.
  19198. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19199. <limits.h> exists even on freestanding compilers. */
  19200. #ifdef __STDC__
  19201. # include <limits.h>
  19202. #else
  19203. # include <assert.h>
  19204. #endif
  19205. #undef $ac_func
  19206. /* Override any GCC internal prototype to avoid an error.
  19207. Use char because int might match the return type of a GCC
  19208. builtin and then its argument prototype would still apply. */
  19209. #ifdef __cplusplus
  19210. extern "C"
  19211. #endif
  19212. char $ac_func ();
  19213. /* The GNU C library defines this for functions which it implements
  19214. to always fail with ENOSYS. Some functions are actually named
  19215. something starting with __ and the normal name is an alias. */
  19216. #if defined __stub_$ac_func || defined __stub___$ac_func
  19217. choke me
  19218. #endif
  19219. int
  19220. main ()
  19221. {
  19222. return $ac_func ();
  19223. ;
  19224. return 0;
  19225. }
  19226. _ACEOF
  19227. rm -f conftest.$ac_objext conftest$ac_exeext
  19228. if { (ac_try="$ac_link"
  19229. case "(($ac_try" in
  19230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19231. *) ac_try_echo=$ac_try;;
  19232. esac
  19233. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19234. (eval "$ac_link") 2>conftest.er1
  19235. ac_status=$?
  19236. grep -v '^ *+' conftest.er1 >conftest.err
  19237. rm -f conftest.er1
  19238. cat conftest.err >&5
  19239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19240. (exit $ac_status); } && {
  19241. test -z "$ac_cxx_werror_flag" ||
  19242. test ! -s conftest.err
  19243. } && test -s conftest$ac_exeext &&
  19244. $as_test_x conftest$ac_exeext; then
  19245. eval "$as_ac_var=yes"
  19246. else
  19247. echo "$as_me: failed program was:" >&5
  19248. sed 's/^/| /' conftest.$ac_ext >&5
  19249. eval "$as_ac_var=no"
  19250. fi
  19251. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19252. conftest$ac_exeext conftest.$ac_ext
  19253. fi
  19254. ac_res=`eval echo '${'$as_ac_var'}'`
  19255. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19256. echo "${ECHO_T}$ac_res" >&6; }
  19257. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19258. cat >>confdefs.h <<_ACEOF
  19259. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19260. _ACEOF
  19261. if true; then
  19262. HAVE_INET_ATON_TRUE=
  19263. HAVE_INET_ATON_FALSE='#'
  19264. else
  19265. HAVE_INET_ATON_TRUE='#'
  19266. HAVE_INET_ATON_FALSE=
  19267. fi
  19268. else
  19269. if false; 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. fi
  19277. done
  19278. for ac_func in localtime_r
  19279. do
  19280. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19281. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19282. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19283. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19284. echo $ECHO_N "(cached) $ECHO_C" >&6
  19285. else
  19286. cat >conftest.$ac_ext <<_ACEOF
  19287. /* confdefs.h. */
  19288. _ACEOF
  19289. cat confdefs.h >>conftest.$ac_ext
  19290. cat >>conftest.$ac_ext <<_ACEOF
  19291. /* end confdefs.h. */
  19292. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19293. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19294. #define $ac_func innocuous_$ac_func
  19295. /* System header to define __stub macros and hopefully few prototypes,
  19296. which can conflict with char $ac_func (); below.
  19297. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19298. <limits.h> exists even on freestanding compilers. */
  19299. #ifdef __STDC__
  19300. # include <limits.h>
  19301. #else
  19302. # include <assert.h>
  19303. #endif
  19304. #undef $ac_func
  19305. /* Override any GCC internal prototype to avoid an error.
  19306. Use char because int might match the return type of a GCC
  19307. builtin and then its argument prototype would still apply. */
  19308. #ifdef __cplusplus
  19309. extern "C"
  19310. #endif
  19311. char $ac_func ();
  19312. /* The GNU C library defines this for functions which it implements
  19313. to always fail with ENOSYS. Some functions are actually named
  19314. something starting with __ and the normal name is an alias. */
  19315. #if defined __stub_$ac_func || defined __stub___$ac_func
  19316. choke me
  19317. #endif
  19318. int
  19319. main ()
  19320. {
  19321. return $ac_func ();
  19322. ;
  19323. return 0;
  19324. }
  19325. _ACEOF
  19326. rm -f conftest.$ac_objext conftest$ac_exeext
  19327. if { (ac_try="$ac_link"
  19328. case "(($ac_try" in
  19329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19330. *) ac_try_echo=$ac_try;;
  19331. esac
  19332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19333. (eval "$ac_link") 2>conftest.er1
  19334. ac_status=$?
  19335. grep -v '^ *+' conftest.er1 >conftest.err
  19336. rm -f conftest.er1
  19337. cat conftest.err >&5
  19338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19339. (exit $ac_status); } && {
  19340. test -z "$ac_cxx_werror_flag" ||
  19341. test ! -s conftest.err
  19342. } && test -s conftest$ac_exeext &&
  19343. $as_test_x conftest$ac_exeext; then
  19344. eval "$as_ac_var=yes"
  19345. else
  19346. echo "$as_me: failed program was:" >&5
  19347. sed 's/^/| /' conftest.$ac_ext >&5
  19348. eval "$as_ac_var=no"
  19349. fi
  19350. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19351. conftest$ac_exeext conftest.$ac_ext
  19352. fi
  19353. ac_res=`eval echo '${'$as_ac_var'}'`
  19354. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19355. echo "${ECHO_T}$ac_res" >&6; }
  19356. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19357. cat >>confdefs.h <<_ACEOF
  19358. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19359. _ACEOF
  19360. if true; then
  19361. HAVE_LOCALTIME_R_TRUE=
  19362. HAVE_LOCALTIME_R_FALSE='#'
  19363. else
  19364. HAVE_LOCALTIME_R_TRUE='#'
  19365. HAVE_LOCALTIME_R_FALSE=
  19366. fi
  19367. else
  19368. if false; 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. fi
  19376. done
  19377. for ac_func in strptime
  19378. do
  19379. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19380. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19381. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19382. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19383. echo $ECHO_N "(cached) $ECHO_C" >&6
  19384. else
  19385. cat >conftest.$ac_ext <<_ACEOF
  19386. /* confdefs.h. */
  19387. _ACEOF
  19388. cat confdefs.h >>conftest.$ac_ext
  19389. cat >>conftest.$ac_ext <<_ACEOF
  19390. /* end confdefs.h. */
  19391. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19392. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19393. #define $ac_func innocuous_$ac_func
  19394. /* System header to define __stub macros and hopefully few prototypes,
  19395. which can conflict with char $ac_func (); below.
  19396. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19397. <limits.h> exists even on freestanding compilers. */
  19398. #ifdef __STDC__
  19399. # include <limits.h>
  19400. #else
  19401. # include <assert.h>
  19402. #endif
  19403. #undef $ac_func
  19404. /* Override any GCC internal prototype to avoid an error.
  19405. Use char because int might match the return type of a GCC
  19406. builtin and then its argument prototype would still apply. */
  19407. #ifdef __cplusplus
  19408. extern "C"
  19409. #endif
  19410. char $ac_func ();
  19411. /* The GNU C library defines this for functions which it implements
  19412. to always fail with ENOSYS. Some functions are actually named
  19413. something starting with __ and the normal name is an alias. */
  19414. #if defined __stub_$ac_func || defined __stub___$ac_func
  19415. choke me
  19416. #endif
  19417. int
  19418. main ()
  19419. {
  19420. return $ac_func ();
  19421. ;
  19422. return 0;
  19423. }
  19424. _ACEOF
  19425. rm -f conftest.$ac_objext conftest$ac_exeext
  19426. if { (ac_try="$ac_link"
  19427. case "(($ac_try" in
  19428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19429. *) ac_try_echo=$ac_try;;
  19430. esac
  19431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19432. (eval "$ac_link") 2>conftest.er1
  19433. ac_status=$?
  19434. grep -v '^ *+' conftest.er1 >conftest.err
  19435. rm -f conftest.er1
  19436. cat conftest.err >&5
  19437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19438. (exit $ac_status); } && {
  19439. test -z "$ac_cxx_werror_flag" ||
  19440. test ! -s conftest.err
  19441. } && test -s conftest$ac_exeext &&
  19442. $as_test_x conftest$ac_exeext; then
  19443. eval "$as_ac_var=yes"
  19444. else
  19445. echo "$as_me: failed program was:" >&5
  19446. sed 's/^/| /' conftest.$ac_ext >&5
  19447. eval "$as_ac_var=no"
  19448. fi
  19449. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19450. conftest$ac_exeext conftest.$ac_ext
  19451. fi
  19452. ac_res=`eval echo '${'$as_ac_var'}'`
  19453. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19454. echo "${ECHO_T}$ac_res" >&6; }
  19455. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19456. cat >>confdefs.h <<_ACEOF
  19457. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19458. _ACEOF
  19459. if true; then
  19460. HAVE_STRPTIME_TRUE=
  19461. HAVE_STRPTIME_FALSE='#'
  19462. else
  19463. HAVE_STRPTIME_TRUE='#'
  19464. HAVE_STRPTIME_FALSE=
  19465. fi
  19466. else
  19467. if false; then
  19468. HAVE_STRPTIME_TRUE=
  19469. HAVE_STRPTIME_FALSE='#'
  19470. else
  19471. HAVE_STRPTIME_TRUE='#'
  19472. HAVE_STRPTIME_FALSE=
  19473. fi
  19474. fi
  19475. done
  19476. for ac_func in timegm
  19477. do
  19478. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19479. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19480. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19481. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19482. echo $ECHO_N "(cached) $ECHO_C" >&6
  19483. else
  19484. cat >conftest.$ac_ext <<_ACEOF
  19485. /* confdefs.h. */
  19486. _ACEOF
  19487. cat confdefs.h >>conftest.$ac_ext
  19488. cat >>conftest.$ac_ext <<_ACEOF
  19489. /* end confdefs.h. */
  19490. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19491. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19492. #define $ac_func innocuous_$ac_func
  19493. /* System header to define __stub macros and hopefully few prototypes,
  19494. which can conflict with char $ac_func (); below.
  19495. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19496. <limits.h> exists even on freestanding compilers. */
  19497. #ifdef __STDC__
  19498. # include <limits.h>
  19499. #else
  19500. # include <assert.h>
  19501. #endif
  19502. #undef $ac_func
  19503. /* Override any GCC internal prototype to avoid an error.
  19504. Use char because int might match the return type of a GCC
  19505. builtin and then its argument prototype would still apply. */
  19506. #ifdef __cplusplus
  19507. extern "C"
  19508. #endif
  19509. char $ac_func ();
  19510. /* The GNU C library defines this for functions which it implements
  19511. to always fail with ENOSYS. Some functions are actually named
  19512. something starting with __ and the normal name is an alias. */
  19513. #if defined __stub_$ac_func || defined __stub___$ac_func
  19514. choke me
  19515. #endif
  19516. int
  19517. main ()
  19518. {
  19519. return $ac_func ();
  19520. ;
  19521. return 0;
  19522. }
  19523. _ACEOF
  19524. rm -f conftest.$ac_objext conftest$ac_exeext
  19525. if { (ac_try="$ac_link"
  19526. case "(($ac_try" in
  19527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19528. *) ac_try_echo=$ac_try;;
  19529. esac
  19530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19531. (eval "$ac_link") 2>conftest.er1
  19532. ac_status=$?
  19533. grep -v '^ *+' conftest.er1 >conftest.err
  19534. rm -f conftest.er1
  19535. cat conftest.err >&5
  19536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19537. (exit $ac_status); } && {
  19538. test -z "$ac_cxx_werror_flag" ||
  19539. test ! -s conftest.err
  19540. } && test -s conftest$ac_exeext &&
  19541. $as_test_x conftest$ac_exeext; then
  19542. eval "$as_ac_var=yes"
  19543. else
  19544. echo "$as_me: failed program was:" >&5
  19545. sed 's/^/| /' conftest.$ac_ext >&5
  19546. eval "$as_ac_var=no"
  19547. fi
  19548. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19549. conftest$ac_exeext conftest.$ac_ext
  19550. fi
  19551. ac_res=`eval echo '${'$as_ac_var'}'`
  19552. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19553. echo "${ECHO_T}$ac_res" >&6; }
  19554. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19555. cat >>confdefs.h <<_ACEOF
  19556. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19557. _ACEOF
  19558. if true; then
  19559. HAVE_TIMEGM_TRUE=
  19560. HAVE_TIMEGM_FALSE='#'
  19561. else
  19562. HAVE_TIMEGM_TRUE='#'
  19563. HAVE_TIMEGM_FALSE=
  19564. fi
  19565. else
  19566. if false; then
  19567. HAVE_TIMEGM_TRUE=
  19568. HAVE_TIMEGM_FALSE='#'
  19569. else
  19570. HAVE_TIMEGM_TRUE='#'
  19571. HAVE_TIMEGM_FALSE=
  19572. fi
  19573. fi
  19574. done
  19575. case "$target" in
  19576. *mingw*)
  19577. if true; then
  19578. HAVE_GETADDRINFO_TRUE=
  19579. HAVE_GETADDRINFO_FALSE='#'
  19580. else
  19581. HAVE_GETADDRINFO_TRUE='#'
  19582. HAVE_GETADDRINFO_FALSE=
  19583. fi
  19584. if false; then
  19585. HAVE_GAI_STRERROR_TRUE=
  19586. HAVE_GAI_STRERROR_FALSE='#'
  19587. else
  19588. HAVE_GAI_STRERROR_TRUE='#'
  19589. HAVE_GAI_STRERROR_FALSE=
  19590. fi
  19591. ;;
  19592. esac
  19593. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19594. cat >confcache <<\_ACEOF
  19595. # This file is a shell script that caches the results of configure
  19596. # tests run on this system so they can be shared between configure
  19597. # scripts and configure runs, see configure's option --config-cache.
  19598. # It is not useful on other systems. If it contains results you don't
  19599. # want to keep, you may remove or edit it.
  19600. #
  19601. # config.status only pays attention to the cache file if you give it
  19602. # the --recheck option to rerun configure.
  19603. #
  19604. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19605. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19606. # following values.
  19607. _ACEOF
  19608. # The following way of writing the cache mishandles newlines in values,
  19609. # but we know of no workaround that is simple, portable, and efficient.
  19610. # So, we kill variables containing newlines.
  19611. # Ultrix sh set writes to stderr and can't be redirected directly,
  19612. # and sets the high bit in the cache file unless we assign to the vars.
  19613. (
  19614. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19615. eval ac_val=\$$ac_var
  19616. case $ac_val in #(
  19617. *${as_nl}*)
  19618. case $ac_var in #(
  19619. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19620. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19621. esac
  19622. case $ac_var in #(
  19623. _ | IFS | as_nl) ;; #(
  19624. *) $as_unset $ac_var ;;
  19625. esac ;;
  19626. esac
  19627. done
  19628. (set) 2>&1 |
  19629. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19630. *${as_nl}ac_space=\ *)
  19631. # `set' does not quote correctly, so add quotes (double-quote
  19632. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19633. sed -n \
  19634. "s/'/'\\\\''/g;
  19635. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19636. ;; #(
  19637. *)
  19638. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19639. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19640. ;;
  19641. esac |
  19642. sort
  19643. ) |
  19644. sed '
  19645. /^ac_cv_env_/b end
  19646. t clear
  19647. :clear
  19648. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19649. t end
  19650. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19651. :end' >>confcache
  19652. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19653. if test -w "$cache_file"; then
  19654. test "x$cache_file" != "x/dev/null" &&
  19655. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19656. echo "$as_me: updating cache $cache_file" >&6;}
  19657. cat confcache >$cache_file
  19658. else
  19659. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19660. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19661. fi
  19662. fi
  19663. rm -f confcache
  19664. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19665. # Let make expand exec_prefix.
  19666. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19667. DEFS=-DHAVE_CONFIG_H
  19668. ac_libobjs=
  19669. ac_ltlibobjs=
  19670. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19671. # 1. Remove the extension, and $U if already installed.
  19672. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19673. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19674. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19675. # will be set to the directory where LIBOBJS objects are built.
  19676. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19677. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19678. done
  19679. LIBOBJS=$ac_libobjs
  19680. LTLIBOBJS=$ac_ltlibobjs
  19681. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19682. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19683. Usually this means the macro was only invoked conditionally." >&5
  19684. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19685. Usually this means the macro was only invoked conditionally." >&2;}
  19686. { (exit 1); exit 1; }; }
  19687. fi
  19688. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19689. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19690. Usually this means the macro was only invoked conditionally." >&5
  19691. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19692. Usually this means the macro was only invoked conditionally." >&2;}
  19693. { (exit 1); exit 1; }; }
  19694. fi
  19695. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19696. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19697. Usually this means the macro was only invoked conditionally." >&5
  19698. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19699. Usually this means the macro was only invoked conditionally." >&2;}
  19700. { (exit 1); exit 1; }; }
  19701. fi
  19702. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19703. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19704. Usually this means the macro was only invoked conditionally." >&5
  19705. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19706. Usually this means the macro was only invoked conditionally." >&2;}
  19707. { (exit 1); exit 1; }; }
  19708. fi
  19709. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  19710. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19711. Usually this means the macro was only invoked conditionally." >&5
  19712. echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19713. Usually this means the macro was only invoked conditionally." >&2;}
  19714. { (exit 1); exit 1; }; }
  19715. fi
  19716. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  19717. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  19718. Usually this means the macro was only invoked conditionally." >&5
  19719. echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  19720. Usually this means the macro was only invoked conditionally." >&2;}
  19721. { (exit 1); exit 1; }; }
  19722. fi
  19723. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19724. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19725. Usually this means the macro was only invoked conditionally." >&5
  19726. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19727. Usually this means the macro was only invoked conditionally." >&2;}
  19728. { (exit 1); exit 1; }; }
  19729. fi
  19730. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19731. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19732. Usually this means the macro was only invoked conditionally." >&5
  19733. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19734. Usually this means the macro was only invoked conditionally." >&2;}
  19735. { (exit 1); exit 1; }; }
  19736. fi
  19737. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19738. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19739. Usually this means the macro was only invoked conditionally." >&5
  19740. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19741. Usually this means the macro was only invoked conditionally." >&2;}
  19742. { (exit 1); exit 1; }; }
  19743. fi
  19744. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19745. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19746. Usually this means the macro was only invoked conditionally." >&5
  19747. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19748. Usually this means the macro was only invoked conditionally." >&2;}
  19749. { (exit 1); exit 1; }; }
  19750. fi
  19751. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19752. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19753. Usually this means the macro was only invoked conditionally." >&5
  19754. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19755. Usually this means the macro was only invoked conditionally." >&2;}
  19756. { (exit 1); exit 1; }; }
  19757. fi
  19758. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19759. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19760. Usually this means the macro was only invoked conditionally." >&5
  19761. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19762. Usually this means the macro was only invoked conditionally." >&2;}
  19763. { (exit 1); exit 1; }; }
  19764. fi
  19765. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19766. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19767. Usually this means the macro was only invoked conditionally." >&5
  19768. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19769. Usually this means the macro was only invoked conditionally." >&2;}
  19770. { (exit 1); exit 1; }; }
  19771. fi
  19772. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19773. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19774. Usually this means the macro was only invoked conditionally." >&5
  19775. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19776. Usually this means the macro was only invoked conditionally." >&2;}
  19777. { (exit 1); exit 1; }; }
  19778. fi
  19779. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19780. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19781. Usually this means the macro was only invoked conditionally." >&5
  19782. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19783. Usually this means the macro was only invoked conditionally." >&2;}
  19784. { (exit 1); exit 1; }; }
  19785. fi
  19786. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19787. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19788. Usually this means the macro was only invoked conditionally." >&5
  19789. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19790. Usually this means the macro was only invoked conditionally." >&2;}
  19791. { (exit 1); exit 1; }; }
  19792. fi
  19793. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19794. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19795. Usually this means the macro was only invoked conditionally." >&5
  19796. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19797. Usually this means the macro was only invoked conditionally." >&2;}
  19798. { (exit 1); exit 1; }; }
  19799. fi
  19800. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19801. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19802. Usually this means the macro was only invoked conditionally." >&5
  19803. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19804. Usually this means the macro was only invoked conditionally." >&2;}
  19805. { (exit 1); exit 1; }; }
  19806. fi
  19807. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19808. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19809. Usually this means the macro was only invoked conditionally." >&5
  19810. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19811. Usually this means the macro was only invoked conditionally." >&2;}
  19812. { (exit 1); exit 1; }; }
  19813. fi
  19814. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19815. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19816. Usually this means the macro was only invoked conditionally." >&5
  19817. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19818. Usually this means the macro was only invoked conditionally." >&2;}
  19819. { (exit 1); exit 1; }; }
  19820. fi
  19821. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19822. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19823. Usually this means the macro was only invoked conditionally." >&5
  19824. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19825. Usually this means the macro was only invoked conditionally." >&2;}
  19826. { (exit 1); exit 1; }; }
  19827. fi
  19828. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19829. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19830. Usually this means the macro was only invoked conditionally." >&5
  19831. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19832. Usually this means the macro was only invoked conditionally." >&2;}
  19833. { (exit 1); exit 1; }; }
  19834. fi
  19835. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19836. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19837. Usually this means the macro was only invoked conditionally." >&5
  19838. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19839. Usually this means the macro was only invoked conditionally." >&2;}
  19840. { (exit 1); exit 1; }; }
  19841. fi
  19842. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19843. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19844. Usually this means the macro was only invoked conditionally." >&5
  19845. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19846. Usually this means the macro was only invoked conditionally." >&2;}
  19847. { (exit 1); exit 1; }; }
  19848. fi
  19849. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19850. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19851. Usually this means the macro was only invoked conditionally." >&5
  19852. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19853. Usually this means the macro was only invoked conditionally." >&2;}
  19854. { (exit 1); exit 1; }; }
  19855. fi
  19856. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19857. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19858. Usually this means the macro was only invoked conditionally." >&5
  19859. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19860. Usually this means the macro was only invoked conditionally." >&2;}
  19861. { (exit 1); exit 1; }; }
  19862. fi
  19863. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19864. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19865. Usually this means the macro was only invoked conditionally." >&5
  19866. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19867. Usually this means the macro was only invoked conditionally." >&2;}
  19868. { (exit 1); exit 1; }; }
  19869. fi
  19870. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19871. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19872. Usually this means the macro was only invoked conditionally." >&5
  19873. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19874. Usually this means the macro was only invoked conditionally." >&2;}
  19875. { (exit 1); exit 1; }; }
  19876. fi
  19877. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19878. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19879. Usually this means the macro was only invoked conditionally." >&5
  19880. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19881. Usually this means the macro was only invoked conditionally." >&2;}
  19882. { (exit 1); exit 1; }; }
  19883. fi
  19884. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19885. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19886. Usually this means the macro was only invoked conditionally." >&5
  19887. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19888. Usually this means the macro was only invoked conditionally." >&2;}
  19889. { (exit 1); exit 1; }; }
  19890. fi
  19891. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19892. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19893. Usually this means the macro was only invoked conditionally." >&5
  19894. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19895. Usually this means the macro was only invoked conditionally." >&2;}
  19896. { (exit 1); exit 1; }; }
  19897. fi
  19898. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19899. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19900. Usually this means the macro was only invoked conditionally." >&5
  19901. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19902. Usually this means the macro was only invoked conditionally." >&2;}
  19903. { (exit 1); exit 1; }; }
  19904. fi
  19905. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19906. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19907. Usually this means the macro was only invoked conditionally." >&5
  19908. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19909. Usually this means the macro was only invoked conditionally." >&2;}
  19910. { (exit 1); exit 1; }; }
  19911. fi
  19912. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19913. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19914. Usually this means the macro was only invoked conditionally." >&5
  19915. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19916. Usually this means the macro was only invoked conditionally." >&2;}
  19917. { (exit 1); exit 1; }; }
  19918. fi
  19919. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19920. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19921. Usually this means the macro was only invoked conditionally." >&5
  19922. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19923. Usually this means the macro was only invoked conditionally." >&2;}
  19924. { (exit 1); exit 1; }; }
  19925. fi
  19926. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19927. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19928. Usually this means the macro was only invoked conditionally." >&5
  19929. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19930. Usually this means the macro was only invoked conditionally." >&2;}
  19931. { (exit 1); exit 1; }; }
  19932. fi
  19933. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19934. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19935. Usually this means the macro was only invoked conditionally." >&5
  19936. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19937. Usually this means the macro was only invoked conditionally." >&2;}
  19938. { (exit 1); exit 1; }; }
  19939. fi
  19940. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19941. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19942. Usually this means the macro was only invoked conditionally." >&5
  19943. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19944. Usually this means the macro was only invoked conditionally." >&2;}
  19945. { (exit 1); exit 1; }; }
  19946. fi
  19947. : ${CONFIG_STATUS=./config.status}
  19948. ac_clean_files_save=$ac_clean_files
  19949. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19950. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19951. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19952. cat >$CONFIG_STATUS <<_ACEOF
  19953. #! $SHELL
  19954. # Generated by $as_me.
  19955. # Run this file to recreate the current configuration.
  19956. # Compiler output produced by configure, useful for debugging
  19957. # configure, is in config.log if it exists.
  19958. debug=false
  19959. ac_cs_recheck=false
  19960. ac_cs_silent=false
  19961. SHELL=\${CONFIG_SHELL-$SHELL}
  19962. _ACEOF
  19963. cat >>$CONFIG_STATUS <<\_ACEOF
  19964. ## --------------------- ##
  19965. ## M4sh Initialization. ##
  19966. ## --------------------- ##
  19967. # Be more Bourne compatible
  19968. DUALCASE=1; export DUALCASE # for MKS sh
  19969. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19970. emulate sh
  19971. NULLCMD=:
  19972. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19973. # is contrary to our usage. Disable this feature.
  19974. alias -g '${1+"$@"}'='"$@"'
  19975. setopt NO_GLOB_SUBST
  19976. else
  19977. case `(set -o) 2>/dev/null` in
  19978. *posix*) set -o posix ;;
  19979. esac
  19980. fi
  19981. # PATH needs CR
  19982. # Avoid depending upon Character Ranges.
  19983. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19984. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19985. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19986. as_cr_digits='0123456789'
  19987. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19988. # The user is always right.
  19989. if test "${PATH_SEPARATOR+set}" != set; then
  19990. echo "#! /bin/sh" >conf$$.sh
  19991. echo "exit 0" >>conf$$.sh
  19992. chmod +x conf$$.sh
  19993. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19994. PATH_SEPARATOR=';'
  19995. else
  19996. PATH_SEPARATOR=:
  19997. fi
  19998. rm -f conf$$.sh
  19999. fi
  20000. # Support unset when possible.
  20001. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20002. as_unset=unset
  20003. else
  20004. as_unset=false
  20005. fi
  20006. # IFS
  20007. # We need space, tab and new line, in precisely that order. Quoting is
  20008. # there to prevent editors from complaining about space-tab.
  20009. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20010. # splitting by setting IFS to empty value.)
  20011. as_nl='
  20012. '
  20013. IFS=" "" $as_nl"
  20014. # Find who we are. Look in the path if we contain no directory separator.
  20015. case $0 in
  20016. *[\\/]* ) as_myself=$0 ;;
  20017. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20018. for as_dir in $PATH
  20019. do
  20020. IFS=$as_save_IFS
  20021. test -z "$as_dir" && as_dir=.
  20022. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20023. done
  20024. IFS=$as_save_IFS
  20025. ;;
  20026. esac
  20027. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20028. # in which case we are not to be found in the path.
  20029. if test "x$as_myself" = x; then
  20030. as_myself=$0
  20031. fi
  20032. if test ! -f "$as_myself"; then
  20033. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20034. { (exit 1); exit 1; }
  20035. fi
  20036. # Work around bugs in pre-3.0 UWIN ksh.
  20037. for as_var in ENV MAIL MAILPATH
  20038. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20039. done
  20040. PS1='$ '
  20041. PS2='> '
  20042. PS4='+ '
  20043. # NLS nuisances.
  20044. for as_var in \
  20045. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20046. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20047. LC_TELEPHONE LC_TIME
  20048. do
  20049. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20050. eval $as_var=C; export $as_var
  20051. else
  20052. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20053. fi
  20054. done
  20055. # Required to use basename.
  20056. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20057. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20058. as_expr=expr
  20059. else
  20060. as_expr=false
  20061. fi
  20062. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20063. as_basename=basename
  20064. else
  20065. as_basename=false
  20066. fi
  20067. # Name of the executable.
  20068. as_me=`$as_basename -- "$0" ||
  20069. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20070. X"$0" : 'X\(//\)$' \| \
  20071. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20072. echo X/"$0" |
  20073. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20074. s//\1/
  20075. q
  20076. }
  20077. /^X\/\(\/\/\)$/{
  20078. s//\1/
  20079. q
  20080. }
  20081. /^X\/\(\/\).*/{
  20082. s//\1/
  20083. q
  20084. }
  20085. s/.*/./; q'`
  20086. # CDPATH.
  20087. $as_unset CDPATH
  20088. as_lineno_1=$LINENO
  20089. as_lineno_2=$LINENO
  20090. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20091. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20092. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20093. # uniformly replaced by the line number. The first 'sed' inserts a
  20094. # line-number line after each line using $LINENO; the second 'sed'
  20095. # does the real work. The second script uses 'N' to pair each
  20096. # line-number line with the line containing $LINENO, and appends
  20097. # trailing '-' during substitution so that $LINENO is not a special
  20098. # case at line end.
  20099. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20100. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20101. # E. McMahon (1931-1989) for sed's syntax. :-)
  20102. sed -n '
  20103. p
  20104. /[$]LINENO/=
  20105. ' <$as_myself |
  20106. sed '
  20107. s/[$]LINENO.*/&-/
  20108. t lineno
  20109. b
  20110. :lineno
  20111. N
  20112. :loop
  20113. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20114. t loop
  20115. s/-\n.*//
  20116. ' >$as_me.lineno &&
  20117. chmod +x "$as_me.lineno" ||
  20118. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20119. { (exit 1); exit 1; }; }
  20120. # Don't try to exec as it changes $[0], causing all sort of problems
  20121. # (the dirname of $[0] is not the place where we might find the
  20122. # original and so on. Autoconf is especially sensitive to this).
  20123. . "./$as_me.lineno"
  20124. # Exit status is that of the last command.
  20125. exit
  20126. }
  20127. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20128. as_dirname=dirname
  20129. else
  20130. as_dirname=false
  20131. fi
  20132. ECHO_C= ECHO_N= ECHO_T=
  20133. case `echo -n x` in
  20134. -n*)
  20135. case `echo 'x\c'` in
  20136. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20137. *) ECHO_C='\c';;
  20138. esac;;
  20139. *)
  20140. ECHO_N='-n';;
  20141. esac
  20142. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20143. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20144. as_expr=expr
  20145. else
  20146. as_expr=false
  20147. fi
  20148. rm -f conf$$ conf$$.exe conf$$.file
  20149. if test -d conf$$.dir; then
  20150. rm -f conf$$.dir/conf$$.file
  20151. else
  20152. rm -f conf$$.dir
  20153. mkdir conf$$.dir
  20154. fi
  20155. echo >conf$$.file
  20156. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20157. as_ln_s='ln -s'
  20158. # ... but there are two gotchas:
  20159. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20160. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20161. # In both cases, we have to default to `cp -p'.
  20162. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20163. as_ln_s='cp -p'
  20164. elif ln conf$$.file conf$$ 2>/dev/null; then
  20165. as_ln_s=ln
  20166. else
  20167. as_ln_s='cp -p'
  20168. fi
  20169. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20170. rmdir conf$$.dir 2>/dev/null
  20171. if mkdir -p . 2>/dev/null; then
  20172. as_mkdir_p=:
  20173. else
  20174. test -d ./-p && rmdir ./-p
  20175. as_mkdir_p=false
  20176. fi
  20177. if test -x / >/dev/null 2>&1; then
  20178. as_test_x='test -x'
  20179. else
  20180. if ls -dL / >/dev/null 2>&1; then
  20181. as_ls_L_option=L
  20182. else
  20183. as_ls_L_option=
  20184. fi
  20185. as_test_x='
  20186. eval sh -c '\''
  20187. if test -d "$1"; then
  20188. test -d "$1/.";
  20189. else
  20190. case $1 in
  20191. -*)set "./$1";;
  20192. esac;
  20193. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  20194. ???[sx]*):;;*)false;;esac;fi
  20195. '\'' sh
  20196. '
  20197. fi
  20198. as_executable_p=$as_test_x
  20199. # Sed expression to map a string onto a valid CPP name.
  20200. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20201. # Sed expression to map a string onto a valid variable name.
  20202. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20203. exec 6>&1
  20204. # Save the log message, to keep $[0] and so on meaningful, and to
  20205. # report actual input values of CONFIG_FILES etc. instead of their
  20206. # values after options handling.
  20207. ac_log="
  20208. This file was extended by aria2c $as_me 0.16.2, which was
  20209. generated by GNU Autoconf 2.61. Invocation command line was
  20210. CONFIG_FILES = $CONFIG_FILES
  20211. CONFIG_HEADERS = $CONFIG_HEADERS
  20212. CONFIG_LINKS = $CONFIG_LINKS
  20213. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20214. $ $0 $@
  20215. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20216. "
  20217. _ACEOF
  20218. cat >>$CONFIG_STATUS <<_ACEOF
  20219. # Files that config.status was made for.
  20220. config_files="$ac_config_files"
  20221. config_headers="$ac_config_headers"
  20222. config_commands="$ac_config_commands"
  20223. _ACEOF
  20224. cat >>$CONFIG_STATUS <<\_ACEOF
  20225. ac_cs_usage="\
  20226. \`$as_me' instantiates files from templates according to the
  20227. current configuration.
  20228. Usage: $0 [OPTIONS] [FILE]...
  20229. -h, --help print this help, then exit
  20230. -V, --version print version number and configuration settings, then exit
  20231. -q, --quiet do not print progress messages
  20232. -d, --debug don't remove temporary files
  20233. --recheck update $as_me by reconfiguring in the same conditions
  20234. --file=FILE[:TEMPLATE]
  20235. instantiate the configuration file FILE
  20236. --header=FILE[:TEMPLATE]
  20237. instantiate the configuration header FILE
  20238. Configuration files:
  20239. $config_files
  20240. Configuration headers:
  20241. $config_headers
  20242. Configuration commands:
  20243. $config_commands
  20244. Report bugs to <bug-autoconf@gnu.org>."
  20245. _ACEOF
  20246. cat >>$CONFIG_STATUS <<_ACEOF
  20247. ac_cs_version="\\
  20248. aria2c config.status 0.16.2
  20249. configured by $0, generated by GNU Autoconf 2.61,
  20250. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20251. Copyright (C) 2006 Free Software Foundation, Inc.
  20252. This config.status script is free software; the Free Software Foundation
  20253. gives unlimited permission to copy, distribute and modify it."
  20254. ac_pwd='$ac_pwd'
  20255. srcdir='$srcdir'
  20256. INSTALL='$INSTALL'
  20257. MKDIR_P='$MKDIR_P'
  20258. _ACEOF
  20259. cat >>$CONFIG_STATUS <<\_ACEOF
  20260. # If no file are specified by the user, then we need to provide default
  20261. # value. By we need to know if files were specified by the user.
  20262. ac_need_defaults=:
  20263. while test $# != 0
  20264. do
  20265. case $1 in
  20266. --*=*)
  20267. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20268. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20269. ac_shift=:
  20270. ;;
  20271. *)
  20272. ac_option=$1
  20273. ac_optarg=$2
  20274. ac_shift=shift
  20275. ;;
  20276. esac
  20277. case $ac_option in
  20278. # Handling of the options.
  20279. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20280. ac_cs_recheck=: ;;
  20281. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20282. echo "$ac_cs_version"; exit ;;
  20283. --debug | --debu | --deb | --de | --d | -d )
  20284. debug=: ;;
  20285. --file | --fil | --fi | --f )
  20286. $ac_shift
  20287. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20288. ac_need_defaults=false;;
  20289. --header | --heade | --head | --hea )
  20290. $ac_shift
  20291. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20292. ac_need_defaults=false;;
  20293. --he | --h)
  20294. # Conflict between --help and --header
  20295. { echo "$as_me: error: ambiguous option: $1
  20296. Try \`$0 --help' for more information." >&2
  20297. { (exit 1); exit 1; }; };;
  20298. --help | --hel | -h )
  20299. echo "$ac_cs_usage"; exit ;;
  20300. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20301. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20302. ac_cs_silent=: ;;
  20303. # This is an error.
  20304. -*) { echo "$as_me: error: unrecognized option: $1
  20305. Try \`$0 --help' for more information." >&2
  20306. { (exit 1); exit 1; }; } ;;
  20307. *) ac_config_targets="$ac_config_targets $1"
  20308. ac_need_defaults=false ;;
  20309. esac
  20310. shift
  20311. done
  20312. ac_configure_extra_args=
  20313. if $ac_cs_silent; then
  20314. exec 6>/dev/null
  20315. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20316. fi
  20317. _ACEOF
  20318. cat >>$CONFIG_STATUS <<_ACEOF
  20319. if \$ac_cs_recheck; then
  20320. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20321. CONFIG_SHELL=$SHELL
  20322. export CONFIG_SHELL
  20323. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20324. fi
  20325. _ACEOF
  20326. cat >>$CONFIG_STATUS <<\_ACEOF
  20327. exec 5>>config.log
  20328. {
  20329. echo
  20330. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20331. ## Running $as_me. ##
  20332. _ASBOX
  20333. echo "$ac_log"
  20334. } >&5
  20335. _ACEOF
  20336. cat >>$CONFIG_STATUS <<_ACEOF
  20337. #
  20338. # INIT-COMMANDS
  20339. #
  20340. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20341. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  20342. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  20343. # from automake < 1.5.
  20344. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  20345. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  20346. LINGUAS="${LINGUAS-%UNSET%}"
  20347. _ACEOF
  20348. cat >>$CONFIG_STATUS <<\_ACEOF
  20349. # Handling of arguments.
  20350. for ac_config_target in $ac_config_targets
  20351. do
  20352. case $ac_config_target in
  20353. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20354. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20355. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  20356. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20357. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20358. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20359. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20360. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20361. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20362. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20363. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20364. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20365. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20366. { (exit 1); exit 1; }; };;
  20367. esac
  20368. done
  20369. # If the user did not use the arguments to specify the items to instantiate,
  20370. # then the envvar interface is used. Set only those that are not.
  20371. # We use the long form for the default assignment because of an extremely
  20372. # bizarre bug on SunOS 4.1.3.
  20373. if $ac_need_defaults; then
  20374. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20375. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20376. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20377. fi
  20378. # Have a temporary directory for convenience. Make it in the build tree
  20379. # simply because there is no reason against having it here, and in addition,
  20380. # creating and moving files from /tmp can sometimes cause problems.
  20381. # Hook for its removal unless debugging.
  20382. # Note that there is a small window in which the directory will not be cleaned:
  20383. # after its creation but before its name has been assigned to `$tmp'.
  20384. $debug ||
  20385. {
  20386. tmp=
  20387. trap 'exit_status=$?
  20388. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20389. ' 0
  20390. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20391. }
  20392. # Create a (secure) tmp directory for tmp files.
  20393. {
  20394. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20395. test -n "$tmp" && test -d "$tmp"
  20396. } ||
  20397. {
  20398. tmp=./conf$$-$RANDOM
  20399. (umask 077 && mkdir "$tmp")
  20400. } ||
  20401. {
  20402. echo "$me: cannot create a temporary directory in ." >&2
  20403. { (exit 1); exit 1; }
  20404. }
  20405. #
  20406. # Set up the sed scripts for CONFIG_FILES section.
  20407. #
  20408. # No need to generate the scripts if there are no CONFIG_FILES.
  20409. # This happens for instance when ./config.status config.h
  20410. if test -n "$CONFIG_FILES"; then
  20411. _ACEOF
  20412. ac_delim='%!_!# '
  20413. for ac_last_try in false false false false false :; do
  20414. cat >conf$$subs.sed <<_ACEOF
  20415. SHELL!$SHELL$ac_delim
  20416. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20417. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20418. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20419. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20420. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20421. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20422. exec_prefix!$exec_prefix$ac_delim
  20423. prefix!$prefix$ac_delim
  20424. program_transform_name!$program_transform_name$ac_delim
  20425. bindir!$bindir$ac_delim
  20426. sbindir!$sbindir$ac_delim
  20427. libexecdir!$libexecdir$ac_delim
  20428. datarootdir!$datarootdir$ac_delim
  20429. datadir!$datadir$ac_delim
  20430. sysconfdir!$sysconfdir$ac_delim
  20431. sharedstatedir!$sharedstatedir$ac_delim
  20432. localstatedir!$localstatedir$ac_delim
  20433. includedir!$includedir$ac_delim
  20434. oldincludedir!$oldincludedir$ac_delim
  20435. docdir!$docdir$ac_delim
  20436. infodir!$infodir$ac_delim
  20437. htmldir!$htmldir$ac_delim
  20438. dvidir!$dvidir$ac_delim
  20439. pdfdir!$pdfdir$ac_delim
  20440. psdir!$psdir$ac_delim
  20441. libdir!$libdir$ac_delim
  20442. localedir!$localedir$ac_delim
  20443. mandir!$mandir$ac_delim
  20444. DEFS!$DEFS$ac_delim
  20445. ECHO_C!$ECHO_C$ac_delim
  20446. ECHO_N!$ECHO_N$ac_delim
  20447. ECHO_T!$ECHO_T$ac_delim
  20448. LIBS!$LIBS$ac_delim
  20449. build_alias!$build_alias$ac_delim
  20450. host_alias!$host_alias$ac_delim
  20451. target_alias!$target_alias$ac_delim
  20452. build!$build$ac_delim
  20453. build_cpu!$build_cpu$ac_delim
  20454. build_vendor!$build_vendor$ac_delim
  20455. build_os!$build_os$ac_delim
  20456. host!$host$ac_delim
  20457. host_cpu!$host_cpu$ac_delim
  20458. host_vendor!$host_vendor$ac_delim
  20459. host_os!$host_os$ac_delim
  20460. target!$target$ac_delim
  20461. target_cpu!$target_cpu$ac_delim
  20462. target_vendor!$target_vendor$ac_delim
  20463. target_os!$target_os$ac_delim
  20464. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20465. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20466. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20467. am__isrc!$am__isrc$ac_delim
  20468. CYGPATH_W!$CYGPATH_W$ac_delim
  20469. PACKAGE!$PACKAGE$ac_delim
  20470. VERSION!$VERSION$ac_delim
  20471. ACLOCAL!$ACLOCAL$ac_delim
  20472. AUTOCONF!$AUTOCONF$ac_delim
  20473. AUTOMAKE!$AUTOMAKE$ac_delim
  20474. AUTOHEADER!$AUTOHEADER$ac_delim
  20475. MAKEINFO!$MAKEINFO$ac_delim
  20476. install_sh!$install_sh$ac_delim
  20477. STRIP!$STRIP$ac_delim
  20478. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20479. mkdir_p!$mkdir_p$ac_delim
  20480. AWK!$AWK$ac_delim
  20481. SET_MAKE!$SET_MAKE$ac_delim
  20482. am__leading_dot!$am__leading_dot$ac_delim
  20483. AMTAR!$AMTAR$ac_delim
  20484. am__tar!$am__tar$ac_delim
  20485. am__untar!$am__untar$ac_delim
  20486. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20487. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20488. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20489. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20490. CXX!$CXX$ac_delim
  20491. CXXFLAGS!$CXXFLAGS$ac_delim
  20492. LDFLAGS!$LDFLAGS$ac_delim
  20493. CPPFLAGS!$CPPFLAGS$ac_delim
  20494. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20495. EXEEXT!$EXEEXT$ac_delim
  20496. OBJEXT!$OBJEXT$ac_delim
  20497. DEPDIR!$DEPDIR$ac_delim
  20498. am__include!$am__include$ac_delim
  20499. am__quote!$am__quote$ac_delim
  20500. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20501. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20502. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20503. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20504. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20505. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20506. CC!$CC$ac_delim
  20507. CFLAGS!$CFLAGS$ac_delim
  20508. ac_ct_CC!$ac_ct_CC$ac_delim
  20509. CCDEPMODE!$CCDEPMODE$ac_delim
  20510. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20511. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20512. _ACEOF
  20513. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20514. break
  20515. elif $ac_last_try; then
  20516. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20517. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20518. { (exit 1); exit 1; }; }
  20519. else
  20520. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20521. fi
  20522. done
  20523. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20524. if test -n "$ac_eof"; then
  20525. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20526. ac_eof=`expr $ac_eof + 1`
  20527. fi
  20528. cat >>$CONFIG_STATUS <<_ACEOF
  20529. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20530. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20531. _ACEOF
  20532. sed '
  20533. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20534. s/^/s,@/; s/!/@,|#_!!_#|/
  20535. :n
  20536. t n
  20537. s/'"$ac_delim"'$/,g/; t
  20538. s/$/\\/; p
  20539. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20540. ' >>$CONFIG_STATUS <conf$$subs.sed
  20541. rm -f conf$$subs.sed
  20542. cat >>$CONFIG_STATUS <<_ACEOF
  20543. CEOF$ac_eof
  20544. _ACEOF
  20545. ac_delim='%!_!# '
  20546. for ac_last_try in false false false false false :; do
  20547. cat >conf$$subs.sed <<_ACEOF
  20548. RANLIB!$RANLIB$ac_delim
  20549. YACC!$YACC$ac_delim
  20550. YFLAGS!$YFLAGS$ac_delim
  20551. CXXCPP!$CXXCPP$ac_delim
  20552. GREP!$GREP$ac_delim
  20553. EGREP!$EGREP$ac_delim
  20554. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20555. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20556. XML_LIBS!$XML_LIBS$ac_delim
  20557. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20558. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20559. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20560. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20561. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20562. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20563. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20564. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20565. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20566. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20567. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20568. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20569. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20570. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20571. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  20572. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  20573. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20574. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20575. ENABLE_SSL_TRUE!$ENABLE_SSL_TRUE$ac_delim
  20576. ENABLE_SSL_FALSE!$ENABLE_SSL_FALSE$ac_delim
  20577. HAVE_LIBGNUTLS_TRUE!$HAVE_LIBGNUTLS_TRUE$ac_delim
  20578. HAVE_LIBGNUTLS_FALSE!$HAVE_LIBGNUTLS_FALSE$ac_delim
  20579. HAVE_LIBSSL_TRUE!$HAVE_LIBSSL_TRUE$ac_delim
  20580. HAVE_LIBSSL_FALSE!$HAVE_LIBSSL_FALSE$ac_delim
  20581. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20582. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20583. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20584. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20585. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20586. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20587. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20588. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20589. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20590. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20591. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20592. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20593. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20594. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20595. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20596. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20597. ALLOCA!$ALLOCA$ac_delim
  20598. USE_NLS!$USE_NLS$ac_delim
  20599. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20600. MSGFMT!$MSGFMT$ac_delim
  20601. GMSGFMT!$GMSGFMT$ac_delim
  20602. MSGFMT_015!$MSGFMT_015$ac_delim
  20603. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20604. XGETTEXT!$XGETTEXT$ac_delim
  20605. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20606. MSGMERGE!$MSGMERGE$ac_delim
  20607. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20608. GLIBC2!$GLIBC2$ac_delim
  20609. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20610. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20611. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20612. LIBPTH!$LIBPTH$ac_delim
  20613. LTLIBPTH!$LTLIBPTH$ac_delim
  20614. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20615. LIBTHREAD!$LIBTHREAD$ac_delim
  20616. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20617. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20618. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20619. LIBICONV!$LIBICONV$ac_delim
  20620. LTLIBICONV!$LTLIBICONV$ac_delim
  20621. INTLBISON!$INTLBISON$ac_delim
  20622. GLIBC21!$GLIBC21$ac_delim
  20623. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20624. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20625. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20626. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20627. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20628. WOE32DLL!$WOE32DLL$ac_delim
  20629. WOE32!$WOE32$ac_delim
  20630. WINDRES!$WINDRES$ac_delim
  20631. LTLIBC!$LTLIBC$ac_delim
  20632. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20633. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20634. CATOBJEXT!$CATOBJEXT$ac_delim
  20635. DATADIRNAME!$DATADIRNAME$ac_delim
  20636. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20637. GENCAT!$GENCAT$ac_delim
  20638. INTLOBJS!$INTLOBJS$ac_delim
  20639. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20640. INTLLIBS!$INTLLIBS$ac_delim
  20641. LIBINTL!$LIBINTL$ac_delim
  20642. LTLIBINTL!$LTLIBINTL$ac_delim
  20643. POSUB!$POSUB$ac_delim
  20644. LIBOBJS!$LIBOBJS$ac_delim
  20645. _ACEOF
  20646. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20647. break
  20648. elif $ac_last_try; then
  20649. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20650. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20651. { (exit 1); exit 1; }; }
  20652. else
  20653. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20654. fi
  20655. done
  20656. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20657. if test -n "$ac_eof"; then
  20658. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20659. ac_eof=`expr $ac_eof + 1`
  20660. fi
  20661. cat >>$CONFIG_STATUS <<_ACEOF
  20662. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20663. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20664. _ACEOF
  20665. sed '
  20666. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20667. s/^/s,@/; s/!/@,|#_!!_#|/
  20668. :n
  20669. t n
  20670. s/'"$ac_delim"'$/,g/; t
  20671. s/$/\\/; p
  20672. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20673. ' >>$CONFIG_STATUS <conf$$subs.sed
  20674. rm -f conf$$subs.sed
  20675. cat >>$CONFIG_STATUS <<_ACEOF
  20676. CEOF$ac_eof
  20677. _ACEOF
  20678. ac_delim='%!_!# '
  20679. for ac_last_try in false false false false false :; do
  20680. cat >conf$$subs.sed <<_ACEOF
  20681. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20682. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20683. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20684. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20685. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20686. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20687. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20688. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20689. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20690. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20691. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20692. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20693. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20694. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20695. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20696. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20697. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20698. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20699. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20700. _ACEOF
  20701. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
  20702. break
  20703. elif $ac_last_try; then
  20704. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20705. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20706. { (exit 1); exit 1; }; }
  20707. else
  20708. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20709. fi
  20710. done
  20711. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20712. if test -n "$ac_eof"; then
  20713. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20714. ac_eof=`expr $ac_eof + 1`
  20715. fi
  20716. cat >>$CONFIG_STATUS <<_ACEOF
  20717. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20718. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20719. _ACEOF
  20720. sed '
  20721. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20722. s/^/s,@/; s/!/@,|#_!!_#|/
  20723. :n
  20724. t n
  20725. s/'"$ac_delim"'$/,g/; t
  20726. s/$/\\/; p
  20727. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20728. ' >>$CONFIG_STATUS <conf$$subs.sed
  20729. rm -f conf$$subs.sed
  20730. cat >>$CONFIG_STATUS <<_ACEOF
  20731. :end
  20732. s/|#_!!_#|//g
  20733. CEOF$ac_eof
  20734. _ACEOF
  20735. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20736. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20737. # trailing colons and then remove the whole line if VPATH becomes empty
  20738. # (actually we leave an empty line to preserve line numbers).
  20739. if test "x$srcdir" = x.; then
  20740. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20741. s/:*\$(srcdir):*/:/
  20742. s/:*\${srcdir}:*/:/
  20743. s/:*@srcdir@:*/:/
  20744. s/^\([^=]*=[ ]*\):*/\1/
  20745. s/:*$//
  20746. s/^[^=]*=[ ]*$//
  20747. }'
  20748. fi
  20749. cat >>$CONFIG_STATUS <<\_ACEOF
  20750. fi # test -n "$CONFIG_FILES"
  20751. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20752. do
  20753. case $ac_tag in
  20754. :[FHLC]) ac_mode=$ac_tag; continue;;
  20755. esac
  20756. case $ac_mode$ac_tag in
  20757. :[FHL]*:*);;
  20758. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20759. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20760. { (exit 1); exit 1; }; };;
  20761. :[FH]-) ac_tag=-:-;;
  20762. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20763. esac
  20764. ac_save_IFS=$IFS
  20765. IFS=:
  20766. set x $ac_tag
  20767. IFS=$ac_save_IFS
  20768. shift
  20769. ac_file=$1
  20770. shift
  20771. case $ac_mode in
  20772. :L) ac_source=$1;;
  20773. :[FH])
  20774. ac_file_inputs=
  20775. for ac_f
  20776. do
  20777. case $ac_f in
  20778. -) ac_f="$tmp/stdin";;
  20779. *) # Look for the file first in the build tree, then in the source tree
  20780. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20781. # because $ac_f cannot contain `:'.
  20782. test -f "$ac_f" ||
  20783. case $ac_f in
  20784. [\\/$]*) false;;
  20785. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20786. esac ||
  20787. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20788. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20789. { (exit 1); exit 1; }; };;
  20790. esac
  20791. ac_file_inputs="$ac_file_inputs $ac_f"
  20792. done
  20793. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20794. # use $as_me), people would be surprised to read:
  20795. # /* config.h. Generated by config.status. */
  20796. configure_input="Generated from "`IFS=:
  20797. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20798. if test x"$ac_file" != x-; then
  20799. configure_input="$ac_file. $configure_input"
  20800. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20801. echo "$as_me: creating $ac_file" >&6;}
  20802. fi
  20803. case $ac_tag in
  20804. *:-:* | *:-) cat >"$tmp/stdin";;
  20805. esac
  20806. ;;
  20807. esac
  20808. ac_dir=`$as_dirname -- "$ac_file" ||
  20809. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20810. X"$ac_file" : 'X\(//\)[^/]' \| \
  20811. X"$ac_file" : 'X\(//\)$' \| \
  20812. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20813. echo X"$ac_file" |
  20814. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20815. s//\1/
  20816. q
  20817. }
  20818. /^X\(\/\/\)[^/].*/{
  20819. s//\1/
  20820. q
  20821. }
  20822. /^X\(\/\/\)$/{
  20823. s//\1/
  20824. q
  20825. }
  20826. /^X\(\/\).*/{
  20827. s//\1/
  20828. q
  20829. }
  20830. s/.*/./; q'`
  20831. { as_dir="$ac_dir"
  20832. case $as_dir in #(
  20833. -*) as_dir=./$as_dir;;
  20834. esac
  20835. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20836. as_dirs=
  20837. while :; do
  20838. case $as_dir in #(
  20839. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20840. *) as_qdir=$as_dir;;
  20841. esac
  20842. as_dirs="'$as_qdir' $as_dirs"
  20843. as_dir=`$as_dirname -- "$as_dir" ||
  20844. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20845. X"$as_dir" : 'X\(//\)[^/]' \| \
  20846. X"$as_dir" : 'X\(//\)$' \| \
  20847. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20848. echo X"$as_dir" |
  20849. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20850. s//\1/
  20851. q
  20852. }
  20853. /^X\(\/\/\)[^/].*/{
  20854. s//\1/
  20855. q
  20856. }
  20857. /^X\(\/\/\)$/{
  20858. s//\1/
  20859. q
  20860. }
  20861. /^X\(\/\).*/{
  20862. s//\1/
  20863. q
  20864. }
  20865. s/.*/./; q'`
  20866. test -d "$as_dir" && break
  20867. done
  20868. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20869. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20870. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20871. { (exit 1); exit 1; }; }; }
  20872. ac_builddir=.
  20873. case "$ac_dir" in
  20874. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20875. *)
  20876. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20877. # A ".." for each directory in $ac_dir_suffix.
  20878. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20879. case $ac_top_builddir_sub in
  20880. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20881. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20882. esac ;;
  20883. esac
  20884. ac_abs_top_builddir=$ac_pwd
  20885. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20886. # for backward compatibility:
  20887. ac_top_builddir=$ac_top_build_prefix
  20888. case $srcdir in
  20889. .) # We are building in place.
  20890. ac_srcdir=.
  20891. ac_top_srcdir=$ac_top_builddir_sub
  20892. ac_abs_top_srcdir=$ac_pwd ;;
  20893. [\\/]* | ?:[\\/]* ) # Absolute name.
  20894. ac_srcdir=$srcdir$ac_dir_suffix;
  20895. ac_top_srcdir=$srcdir
  20896. ac_abs_top_srcdir=$srcdir ;;
  20897. *) # Relative name.
  20898. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20899. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20900. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20901. esac
  20902. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20903. case $ac_mode in
  20904. :F)
  20905. #
  20906. # CONFIG_FILE
  20907. #
  20908. case $INSTALL in
  20909. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20910. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20911. esac
  20912. ac_MKDIR_P=$MKDIR_P
  20913. case $MKDIR_P in
  20914. [\\/$]* | ?:[\\/]* ) ;;
  20915. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20916. esac
  20917. _ACEOF
  20918. cat >>$CONFIG_STATUS <<\_ACEOF
  20919. # If the template does not know about datarootdir, expand it.
  20920. # FIXME: This hack should be removed a few years after 2.60.
  20921. ac_datarootdir_hack=; ac_datarootdir_seen=
  20922. case `sed -n '/datarootdir/ {
  20923. p
  20924. q
  20925. }
  20926. /@datadir@/p
  20927. /@docdir@/p
  20928. /@infodir@/p
  20929. /@localedir@/p
  20930. /@mandir@/p
  20931. ' $ac_file_inputs` in
  20932. *datarootdir*) ac_datarootdir_seen=yes;;
  20933. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20934. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20935. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20936. _ACEOF
  20937. cat >>$CONFIG_STATUS <<_ACEOF
  20938. ac_datarootdir_hack='
  20939. s&@datadir@&$datadir&g
  20940. s&@docdir@&$docdir&g
  20941. s&@infodir@&$infodir&g
  20942. s&@localedir@&$localedir&g
  20943. s&@mandir@&$mandir&g
  20944. s&\\\${datarootdir}&$datarootdir&g' ;;
  20945. esac
  20946. _ACEOF
  20947. # Neutralize VPATH when `$srcdir' = `.'.
  20948. # Shell code in configure.ac might set extrasub.
  20949. # FIXME: do we really want to maintain this feature?
  20950. cat >>$CONFIG_STATUS <<_ACEOF
  20951. sed "$ac_vpsub
  20952. $extrasub
  20953. _ACEOF
  20954. cat >>$CONFIG_STATUS <<\_ACEOF
  20955. :t
  20956. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20957. s&@configure_input@&$configure_input&;t t
  20958. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20959. s&@srcdir@&$ac_srcdir&;t t
  20960. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20961. s&@top_srcdir@&$ac_top_srcdir&;t t
  20962. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20963. s&@builddir@&$ac_builddir&;t t
  20964. s&@abs_builddir@&$ac_abs_builddir&;t t
  20965. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20966. s&@INSTALL@&$ac_INSTALL&;t t
  20967. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20968. $ac_datarootdir_hack
  20969. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20970. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20971. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20972. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20973. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20974. which seems to be undefined. Please make sure it is defined." >&5
  20975. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20976. which seems to be undefined. Please make sure it is defined." >&2;}
  20977. rm -f "$tmp/stdin"
  20978. case $ac_file in
  20979. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20980. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20981. esac
  20982. ;;
  20983. :H)
  20984. #
  20985. # CONFIG_HEADER
  20986. #
  20987. _ACEOF
  20988. # Transform confdefs.h into a sed script `conftest.defines', that
  20989. # substitutes the proper values into config.h.in to produce config.h.
  20990. rm -f conftest.defines conftest.tail
  20991. # First, append a space to every undef/define line, to ease matching.
  20992. echo 's/$/ /' >conftest.defines
  20993. # Then, protect against being on the right side of a sed subst, or in
  20994. # an unquoted here document, in config.status. If some macros were
  20995. # called several times there might be several #defines for the same
  20996. # symbol, which is useless. But do not sort them, since the last
  20997. # AC_DEFINE must be honored.
  20998. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20999. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  21000. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  21001. # PARAMS is the parameter list in the macro definition--in most cases, it's
  21002. # just an empty string.
  21003. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  21004. ac_dB='\\)[ (].*,\\1define\\2'
  21005. ac_dC=' '
  21006. ac_dD=' ,'
  21007. uniq confdefs.h |
  21008. sed -n '
  21009. t rset
  21010. :rset
  21011. s/^[ ]*#[ ]*define[ ][ ]*//
  21012. t ok
  21013. d
  21014. :ok
  21015. s/[\\&,]/\\&/g
  21016. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  21017. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  21018. ' >>conftest.defines
  21019. # Remove the space that was appended to ease matching.
  21020. # Then replace #undef with comments. This is necessary, for
  21021. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21022. # on some systems where configure will not decide to define it.
  21023. # (The regexp can be short, since the line contains either #define or #undef.)
  21024. echo 's/ $//
  21025. s,^[ #]*u.*,/* & */,' >>conftest.defines
  21026. # Break up conftest.defines:
  21027. ac_max_sed_lines=50
  21028. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  21029. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  21030. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  21031. # et cetera.
  21032. ac_in='$ac_file_inputs'
  21033. ac_out='"$tmp/out1"'
  21034. ac_nxt='"$tmp/out2"'
  21035. while :
  21036. do
  21037. # Write a here document:
  21038. cat >>$CONFIG_STATUS <<_ACEOF
  21039. # First, check the format of the line:
  21040. cat >"\$tmp/defines.sed" <<\\CEOF
  21041. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  21042. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  21043. b
  21044. :def
  21045. _ACEOF
  21046. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  21047. echo 'CEOF
  21048. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  21049. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  21050. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  21051. grep . conftest.tail >/dev/null || break
  21052. rm -f conftest.defines
  21053. mv conftest.tail conftest.defines
  21054. done
  21055. rm -f conftest.defines conftest.tail
  21056. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  21057. cat >>$CONFIG_STATUS <<\_ACEOF
  21058. if test x"$ac_file" != x-; then
  21059. echo "/* $configure_input */" >"$tmp/config.h"
  21060. cat "$ac_result" >>"$tmp/config.h"
  21061. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  21062. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21063. echo "$as_me: $ac_file is unchanged" >&6;}
  21064. else
  21065. rm -f $ac_file
  21066. mv "$tmp/config.h" $ac_file
  21067. fi
  21068. else
  21069. echo "/* $configure_input */"
  21070. cat "$ac_result"
  21071. fi
  21072. rm -f "$tmp/out12"
  21073. # Compute $ac_file's index in $config_headers.
  21074. _am_arg=$ac_file
  21075. _am_stamp_count=1
  21076. for _am_header in $config_headers :; do
  21077. case $_am_header in
  21078. $_am_arg | $_am_arg:* )
  21079. break ;;
  21080. * )
  21081. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21082. esac
  21083. done
  21084. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21085. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21086. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21087. X"$_am_arg" : 'X\(//\)$' \| \
  21088. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21089. echo X"$_am_arg" |
  21090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21091. s//\1/
  21092. q
  21093. }
  21094. /^X\(\/\/\)[^/].*/{
  21095. s//\1/
  21096. q
  21097. }
  21098. /^X\(\/\/\)$/{
  21099. s//\1/
  21100. q
  21101. }
  21102. /^X\(\/\).*/{
  21103. s//\1/
  21104. q
  21105. }
  21106. s/.*/./; q'`/stamp-h$_am_stamp_count
  21107. ;;
  21108. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21109. echo "$as_me: executing $ac_file commands" >&6;}
  21110. ;;
  21111. esac
  21112. case $ac_file$ac_mode in
  21113. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21114. # Strip MF so we end up with the name of the file.
  21115. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21116. # Check whether this is an Automake generated Makefile or not.
  21117. # We used to match only the files named `Makefile.in', but
  21118. # some people rename them; so instead we look at the file content.
  21119. # Grep'ing the first line is not enough: some people post-process
  21120. # each Makefile.in and add a new line on top of each file to say so.
  21121. # Grep'ing the whole file is not good either: AIX grep has a line
  21122. # limit of 2048, but all sed's we know have understand at least 4000.
  21123. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21124. dirpart=`$as_dirname -- "$mf" ||
  21125. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21126. X"$mf" : 'X\(//\)[^/]' \| \
  21127. X"$mf" : 'X\(//\)$' \| \
  21128. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21129. echo X"$mf" |
  21130. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21131. s//\1/
  21132. q
  21133. }
  21134. /^X\(\/\/\)[^/].*/{
  21135. s//\1/
  21136. q
  21137. }
  21138. /^X\(\/\/\)$/{
  21139. s//\1/
  21140. q
  21141. }
  21142. /^X\(\/\).*/{
  21143. s//\1/
  21144. q
  21145. }
  21146. s/.*/./; q'`
  21147. else
  21148. continue
  21149. fi
  21150. # Extract the definition of DEPDIR, am__include, and am__quote
  21151. # from the Makefile without running `make'.
  21152. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21153. test -z "$DEPDIR" && continue
  21154. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21155. test -z "am__include" && continue
  21156. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21157. # When using ansi2knr, U may be empty or an underscore; expand it
  21158. U=`sed -n 's/^U = //p' < "$mf"`
  21159. # Find all dependency output files, they are included files with
  21160. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21161. # simplest approach to changing $(DEPDIR) to its actual value in the
  21162. # expansion.
  21163. for file in `sed -n "
  21164. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21165. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21166. # Make sure the directory exists.
  21167. test -f "$dirpart/$file" && continue
  21168. fdir=`$as_dirname -- "$file" ||
  21169. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21170. X"$file" : 'X\(//\)[^/]' \| \
  21171. X"$file" : 'X\(//\)$' \| \
  21172. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21173. echo X"$file" |
  21174. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21175. s//\1/
  21176. q
  21177. }
  21178. /^X\(\/\/\)[^/].*/{
  21179. s//\1/
  21180. q
  21181. }
  21182. /^X\(\/\/\)$/{
  21183. s//\1/
  21184. q
  21185. }
  21186. /^X\(\/\).*/{
  21187. s//\1/
  21188. q
  21189. }
  21190. s/.*/./; q'`
  21191. { as_dir=$dirpart/$fdir
  21192. case $as_dir in #(
  21193. -*) as_dir=./$as_dir;;
  21194. esac
  21195. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21196. as_dirs=
  21197. while :; do
  21198. case $as_dir in #(
  21199. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21200. *) as_qdir=$as_dir;;
  21201. esac
  21202. as_dirs="'$as_qdir' $as_dirs"
  21203. as_dir=`$as_dirname -- "$as_dir" ||
  21204. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21205. X"$as_dir" : 'X\(//\)[^/]' \| \
  21206. X"$as_dir" : 'X\(//\)$' \| \
  21207. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21208. echo X"$as_dir" |
  21209. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21210. s//\1/
  21211. q
  21212. }
  21213. /^X\(\/\/\)[^/].*/{
  21214. s//\1/
  21215. q
  21216. }
  21217. /^X\(\/\/\)$/{
  21218. s//\1/
  21219. q
  21220. }
  21221. /^X\(\/\).*/{
  21222. s//\1/
  21223. q
  21224. }
  21225. s/.*/./; q'`
  21226. test -d "$as_dir" && break
  21227. done
  21228. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21229. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21230. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21231. { (exit 1); exit 1; }; }; }
  21232. # echo "creating $dirpart/$file"
  21233. echo '# dummy' > "$dirpart/$file"
  21234. done
  21235. done
  21236. ;;
  21237. "po-directories":C)
  21238. for ac_file in $CONFIG_FILES; do
  21239. # Support "outfile[:infile[:infile...]]"
  21240. case "$ac_file" in
  21241. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21242. esac
  21243. # PO directories have a Makefile.in generated from Makefile.in.in.
  21244. case "$ac_file" in */Makefile.in)
  21245. # Adjust a relative srcdir.
  21246. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  21247. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  21248. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  21249. # In autoconf-2.13 it is called $ac_given_srcdir.
  21250. # In autoconf-2.50 it is called $srcdir.
  21251. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  21252. case "$ac_given_srcdir" in
  21253. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  21254. /*) top_srcdir="$ac_given_srcdir" ;;
  21255. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  21256. esac
  21257. # Treat a directory as a PO directory if and only if it has a
  21258. # POTFILES.in file. This allows packages to have multiple PO
  21259. # directories under different names or in different locations.
  21260. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  21261. rm -f "$ac_dir/POTFILES"
  21262. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  21263. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  21264. POMAKEFILEDEPS="POTFILES.in"
  21265. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  21266. # on $ac_dir but don't depend on user-specified configuration
  21267. # parameters.
  21268. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  21269. # The LINGUAS file contains the set of available languages.
  21270. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  21271. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  21272. fi
  21273. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  21274. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21275. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  21276. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  21277. else
  21278. # The set of available languages was given in configure.in.
  21279. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21280. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  21281. fi
  21282. # Compute POFILES
  21283. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21284. # Compute UPDATEPOFILES
  21285. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21286. # Compute DUMMYPOFILES
  21287. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21288. # Compute GMOFILES
  21289. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21290. case "$ac_given_srcdir" in
  21291. .) srcdirpre= ;;
  21292. *) srcdirpre='$(srcdir)/' ;;
  21293. esac
  21294. POFILES=
  21295. UPDATEPOFILES=
  21296. DUMMYPOFILES=
  21297. GMOFILES=
  21298. for lang in $ALL_LINGUAS; do
  21299. POFILES="$POFILES $srcdirpre$lang.po"
  21300. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  21301. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  21302. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  21303. done
  21304. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  21305. # environment variable.
  21306. INST_LINGUAS=
  21307. if test -n "$ALL_LINGUAS"; then
  21308. for presentlang in $ALL_LINGUAS; do
  21309. useit=no
  21310. if test "%UNSET%" != "$LINGUAS"; then
  21311. desiredlanguages="$LINGUAS"
  21312. else
  21313. desiredlanguages="$ALL_LINGUAS"
  21314. fi
  21315. for desiredlang in $desiredlanguages; do
  21316. # Use the presentlang catalog if desiredlang is
  21317. # a. equal to presentlang, or
  21318. # b. a variant of presentlang (because in this case,
  21319. # presentlang can be used as a fallback for messages
  21320. # which are not translated in the desiredlang catalog).
  21321. case "$desiredlang" in
  21322. "$presentlang"*) useit=yes;;
  21323. esac
  21324. done
  21325. if test $useit = yes; then
  21326. INST_LINGUAS="$INST_LINGUAS $presentlang"
  21327. fi
  21328. done
  21329. fi
  21330. CATALOGS=
  21331. if test -n "$INST_LINGUAS"; then
  21332. for lang in $INST_LINGUAS; do
  21333. CATALOGS="$CATALOGS $lang.gmo"
  21334. done
  21335. fi
  21336. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  21337. 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"
  21338. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  21339. if test -f "$f"; then
  21340. case "$f" in
  21341. *.orig | *.bak | *~) ;;
  21342. *) cat "$f" >> "$ac_dir/Makefile" ;;
  21343. esac
  21344. fi
  21345. done
  21346. fi
  21347. ;;
  21348. esac
  21349. done ;;
  21350. esac
  21351. done # for ac_tag
  21352. { (exit 0); exit 0; }
  21353. _ACEOF
  21354. chmod +x $CONFIG_STATUS
  21355. ac_clean_files=$ac_clean_files_save
  21356. # configure is writing to config.log, and then calls config.status.
  21357. # config.status does its own redirection, appending to config.log.
  21358. # Unfortunately, on DOS this fails, as config.log is still kept open
  21359. # by configure, so config.status won't be able to write to it; its
  21360. # output is simply discarded. So we exec the FD to /dev/null,
  21361. # effectively closing config.log, so it can be properly (re)opened and
  21362. # appended to by config.status. When coming back to configure, we
  21363. # need to make the FD available again.
  21364. if test "$no_create" != yes; then
  21365. ac_cs_success=:
  21366. ac_config_status_args=
  21367. test "$silent" = yes &&
  21368. ac_config_status_args="$ac_config_status_args --quiet"
  21369. exec 5>/dev/null
  21370. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21371. exec 5>>config.log
  21372. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21373. # would make configure fail if this is the last instruction.
  21374. $ac_cs_success || { (exit 1); exit 1; }
  21375. fi
  21376. echo " "
  21377. echo "Build: $build"
  21378. echo "Target: $target"
  21379. echo "Install prefix: $prefix"
  21380. echo "CFLAGS: $CFLAGS"
  21381. echo "CPPFLAGS: $CPPFLAGS"
  21382. echo "LDFLAGS: $LDFLAGS"
  21383. echo "LIBS: $LIBS"
  21384. echo "SQLite3: $have_sqlite3"
  21385. echo "GnuTLS: $have_libgnutls"
  21386. echo "OpenSSL: $have_openssl"
  21387. echo "LibXML2: $have_libxml2"
  21388. echo "LibExpat: $have_libexpat"
  21389. echo "LibAres: $have_libares"
  21390. echo "LibCares: $have_libcares"
  21391. echo "Libz: $have_libz"
  21392. echo "Bittorrent: $enable_bittorrent"
  21393. echo "Metalink: $enable_metalink"