configure 672 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2 1.1.0.
  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='aria2'
  494. PACKAGE_TARNAME='aria2'
  495. PACKAGE_VERSION='1.1.0'
  496. PACKAGE_STRING='aria2 1.1.0'
  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. LIBZ_LIBS
  658. LIBZ_CPPFLAGS
  659. ENABLE_SSL_TRUE
  660. ENABLE_SSL_FALSE
  661. ca_bundle
  662. HAVE_LIBGNUTLS_TRUE
  663. HAVE_LIBGNUTLS_FALSE
  664. HAVE_LIBSSL_TRUE
  665. HAVE_LIBSSL_FALSE
  666. ENABLE_MESSAGE_DIGEST_TRUE
  667. ENABLE_MESSAGE_DIGEST_FALSE
  668. ENABLE_BITTORRENT_TRUE
  669. ENABLE_BITTORRENT_FALSE
  670. ENABLE_METALINK_TRUE
  671. ENABLE_METALINK_FALSE
  672. ENABLE_LIBXML2_TRUE
  673. ENABLE_LIBXML2_FALSE
  674. ENABLE_LIBEXPAT_TRUE
  675. ENABLE_LIBEXPAT_FALSE
  676. ENABLE_ASYNC_DNS_TRUE
  677. ENABLE_ASYNC_DNS_FALSE
  678. HAVE_LIBZ_TRUE
  679. HAVE_LIBZ_FALSE
  680. HAVE_SQLITE3_TRUE
  681. HAVE_SQLITE3_FALSE
  682. ALLOCA
  683. USE_NLS
  684. GETTEXT_MACRO_VERSION
  685. MSGFMT
  686. GMSGFMT
  687. MSGFMT_015
  688. GMSGFMT_015
  689. XGETTEXT
  690. XGETTEXT_015
  691. MSGMERGE
  692. XGETTEXT_EXTRA_OPTIONS
  693. GLIBC2
  694. CFLAG_VISIBILITY
  695. HAVE_VISIBILITY
  696. PRI_MACROS_BROKEN
  697. LIBPTH
  698. LTLIBPTH
  699. LIBPTH_PREFIX
  700. LIBTHREAD
  701. LTLIBTHREAD
  702. LIBMULTITHREAD
  703. LTLIBMULTITHREAD
  704. LIBICONV
  705. LTLIBICONV
  706. INTLBISON
  707. GLIBC21
  708. INTL_MACOSX_LIBS
  709. HAVE_POSIX_PRINTF
  710. HAVE_ASPRINTF
  711. HAVE_SNPRINTF
  712. HAVE_WPRINTF
  713. WOE32DLL
  714. WOE32
  715. WINDRES
  716. LTLIBC
  717. BUILD_INCLUDED_LIBINTL
  718. USE_INCLUDED_LIBINTL
  719. CATOBJEXT
  720. DATADIRNAME
  721. INSTOBJEXT
  722. GENCAT
  723. INTLOBJS
  724. INTL_LIBTOOL_SUFFIX_PREFIX
  725. INTLLIBS
  726. LIBINTL
  727. LTLIBINTL
  728. POSUB
  729. LIBOBJS
  730. HAVE_ASCTIME_R_TRUE
  731. HAVE_ASCTIME_R_FALSE
  732. HAVE_BASENAME_TRUE
  733. HAVE_BASENAME_FALSE
  734. HAVE_GAI_STRERROR_TRUE
  735. HAVE_GAI_STRERROR_FALSE
  736. HAVE_GETADDRINFO_TRUE
  737. HAVE_GETADDRINFO_FALSE
  738. HAVE_GETTIMEOFDAY_TRUE
  739. HAVE_GETTIMEOFDAY_FALSE
  740. HAVE_INET_ATON_TRUE
  741. HAVE_INET_ATON_FALSE
  742. HAVE_LOCALTIME_R_TRUE
  743. HAVE_LOCALTIME_R_FALSE
  744. HAVE_STRPTIME_TRUE
  745. HAVE_STRPTIME_FALSE
  746. HAVE_TIMEGM_TRUE
  747. HAVE_TIMEGM_FALSE
  748. LTLIBOBJS'
  749. ac_subst_files=''
  750. ac_precious_vars='build_alias
  751. host_alias
  752. target_alias
  753. CXX
  754. CXXFLAGS
  755. LDFLAGS
  756. LIBS
  757. CPPFLAGS
  758. CCC
  759. CC
  760. CFLAGS
  761. YACC
  762. YFLAGS
  763. CXXCPP'
  764. # Initialize some variables set by options.
  765. ac_init_help=
  766. ac_init_version=false
  767. # The variables have the same names as the options, with
  768. # dashes changed to underlines.
  769. cache_file=/dev/null
  770. exec_prefix=NONE
  771. no_create=
  772. no_recursion=
  773. prefix=NONE
  774. program_prefix=NONE
  775. program_suffix=NONE
  776. program_transform_name=s,x,x,
  777. silent=
  778. site=
  779. srcdir=
  780. verbose=
  781. x_includes=NONE
  782. x_libraries=NONE
  783. # Installation directory options.
  784. # These are left unexpanded so users can "make install exec_prefix=/foo"
  785. # and all the variables that are supposed to be based on exec_prefix
  786. # by default will actually change.
  787. # Use braces instead of parens because sh, perl, etc. also accept them.
  788. # (The list follows the same order as the GNU Coding Standards.)
  789. bindir='${exec_prefix}/bin'
  790. sbindir='${exec_prefix}/sbin'
  791. libexecdir='${exec_prefix}/libexec'
  792. datarootdir='${prefix}/share'
  793. datadir='${datarootdir}'
  794. sysconfdir='${prefix}/etc'
  795. sharedstatedir='${prefix}/com'
  796. localstatedir='${prefix}/var'
  797. includedir='${prefix}/include'
  798. oldincludedir='/usr/include'
  799. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  800. infodir='${datarootdir}/info'
  801. htmldir='${docdir}'
  802. dvidir='${docdir}'
  803. pdfdir='${docdir}'
  804. psdir='${docdir}'
  805. libdir='${exec_prefix}/lib'
  806. localedir='${datarootdir}/locale'
  807. mandir='${datarootdir}/man'
  808. ac_prev=
  809. ac_dashdash=
  810. for ac_option
  811. do
  812. # If the previous option needs an argument, assign it.
  813. if test -n "$ac_prev"; then
  814. eval $ac_prev=\$ac_option
  815. ac_prev=
  816. continue
  817. fi
  818. case $ac_option in
  819. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  820. *) ac_optarg=yes ;;
  821. esac
  822. # Accept the important Cygnus configure options, so we can diagnose typos.
  823. case $ac_dashdash$ac_option in
  824. --)
  825. ac_dashdash=yes ;;
  826. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  827. ac_prev=bindir ;;
  828. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  829. bindir=$ac_optarg ;;
  830. -build | --build | --buil | --bui | --bu)
  831. ac_prev=build_alias ;;
  832. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  833. build_alias=$ac_optarg ;;
  834. -cache-file | --cache-file | --cache-fil | --cache-fi \
  835. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  836. ac_prev=cache_file ;;
  837. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  838. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  839. cache_file=$ac_optarg ;;
  840. --config-cache | -C)
  841. cache_file=config.cache ;;
  842. -datadir | --datadir | --datadi | --datad)
  843. ac_prev=datadir ;;
  844. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  845. datadir=$ac_optarg ;;
  846. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  847. | --dataroo | --dataro | --datar)
  848. ac_prev=datarootdir ;;
  849. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  850. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  851. datarootdir=$ac_optarg ;;
  852. -disable-* | --disable-*)
  853. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  856. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  857. { (exit 1); exit 1; }; }
  858. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  859. eval enable_$ac_feature=no ;;
  860. -docdir | --docdir | --docdi | --doc | --do)
  861. ac_prev=docdir ;;
  862. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  863. docdir=$ac_optarg ;;
  864. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  865. ac_prev=dvidir ;;
  866. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  867. dvidir=$ac_optarg ;;
  868. -enable-* | --enable-*)
  869. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  870. # Reject names that are not valid shell variable names.
  871. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  872. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  873. { (exit 1); exit 1; }; }
  874. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  875. eval enable_$ac_feature=\$ac_optarg ;;
  876. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  877. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  878. | --exec | --exe | --ex)
  879. ac_prev=exec_prefix ;;
  880. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  881. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  882. | --exec=* | --exe=* | --ex=*)
  883. exec_prefix=$ac_optarg ;;
  884. -gas | --gas | --ga | --g)
  885. # Obsolete; use --with-gas.
  886. with_gas=yes ;;
  887. -help | --help | --hel | --he | -h)
  888. ac_init_help=long ;;
  889. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  890. ac_init_help=recursive ;;
  891. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  892. ac_init_help=short ;;
  893. -host | --host | --hos | --ho)
  894. ac_prev=host_alias ;;
  895. -host=* | --host=* | --hos=* | --ho=*)
  896. host_alias=$ac_optarg ;;
  897. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  898. ac_prev=htmldir ;;
  899. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  900. | --ht=*)
  901. htmldir=$ac_optarg ;;
  902. -includedir | --includedir | --includedi | --included | --include \
  903. | --includ | --inclu | --incl | --inc)
  904. ac_prev=includedir ;;
  905. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  906. | --includ=* | --inclu=* | --incl=* | --inc=*)
  907. includedir=$ac_optarg ;;
  908. -infodir | --infodir | --infodi | --infod | --info | --inf)
  909. ac_prev=infodir ;;
  910. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  911. infodir=$ac_optarg ;;
  912. -libdir | --libdir | --libdi | --libd)
  913. ac_prev=libdir ;;
  914. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  915. libdir=$ac_optarg ;;
  916. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  917. | --libexe | --libex | --libe)
  918. ac_prev=libexecdir ;;
  919. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  920. | --libexe=* | --libex=* | --libe=*)
  921. libexecdir=$ac_optarg ;;
  922. -localedir | --localedir | --localedi | --localed | --locale)
  923. ac_prev=localedir ;;
  924. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  925. localedir=$ac_optarg ;;
  926. -localstatedir | --localstatedir | --localstatedi | --localstated \
  927. | --localstate | --localstat | --localsta | --localst | --locals)
  928. ac_prev=localstatedir ;;
  929. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  930. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  931. localstatedir=$ac_optarg ;;
  932. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  933. ac_prev=mandir ;;
  934. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  935. mandir=$ac_optarg ;;
  936. -nfp | --nfp | --nf)
  937. # Obsolete; use --without-fp.
  938. with_fp=no ;;
  939. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  940. | --no-cr | --no-c | -n)
  941. no_create=yes ;;
  942. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  943. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  944. no_recursion=yes ;;
  945. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  946. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  947. | --oldin | --oldi | --old | --ol | --o)
  948. ac_prev=oldincludedir ;;
  949. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  950. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  951. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  952. oldincludedir=$ac_optarg ;;
  953. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  954. ac_prev=prefix ;;
  955. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  956. prefix=$ac_optarg ;;
  957. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  958. | --program-pre | --program-pr | --program-p)
  959. ac_prev=program_prefix ;;
  960. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  961. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  962. program_prefix=$ac_optarg ;;
  963. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  964. | --program-suf | --program-su | --program-s)
  965. ac_prev=program_suffix ;;
  966. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  967. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  968. program_suffix=$ac_optarg ;;
  969. -program-transform-name | --program-transform-name \
  970. | --program-transform-nam | --program-transform-na \
  971. | --program-transform-n | --program-transform- \
  972. | --program-transform | --program-transfor \
  973. | --program-transfo | --program-transf \
  974. | --program-trans | --program-tran \
  975. | --progr-tra | --program-tr | --program-t)
  976. ac_prev=program_transform_name ;;
  977. -program-transform-name=* | --program-transform-name=* \
  978. | --program-transform-nam=* | --program-transform-na=* \
  979. | --program-transform-n=* | --program-transform-=* \
  980. | --program-transform=* | --program-transfor=* \
  981. | --program-transfo=* | --program-transf=* \
  982. | --program-trans=* | --program-tran=* \
  983. | --progr-tra=* | --program-tr=* | --program-t=*)
  984. program_transform_name=$ac_optarg ;;
  985. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  986. ac_prev=pdfdir ;;
  987. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  988. pdfdir=$ac_optarg ;;
  989. -psdir | --psdir | --psdi | --psd | --ps)
  990. ac_prev=psdir ;;
  991. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  992. psdir=$ac_optarg ;;
  993. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  994. | -silent | --silent | --silen | --sile | --sil)
  995. silent=yes ;;
  996. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  997. ac_prev=sbindir ;;
  998. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  999. | --sbi=* | --sb=*)
  1000. sbindir=$ac_optarg ;;
  1001. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1002. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1003. | --sharedst | --shareds | --shared | --share | --shar \
  1004. | --sha | --sh)
  1005. ac_prev=sharedstatedir ;;
  1006. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1007. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1008. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1009. | --sha=* | --sh=*)
  1010. sharedstatedir=$ac_optarg ;;
  1011. -site | --site | --sit)
  1012. ac_prev=site ;;
  1013. -site=* | --site=* | --sit=*)
  1014. site=$ac_optarg ;;
  1015. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1016. ac_prev=srcdir ;;
  1017. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1018. srcdir=$ac_optarg ;;
  1019. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1020. | --syscon | --sysco | --sysc | --sys | --sy)
  1021. ac_prev=sysconfdir ;;
  1022. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1023. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1024. sysconfdir=$ac_optarg ;;
  1025. -target | --target | --targe | --targ | --tar | --ta | --t)
  1026. ac_prev=target_alias ;;
  1027. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1028. target_alias=$ac_optarg ;;
  1029. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1030. verbose=yes ;;
  1031. -version | --version | --versio | --versi | --vers | -V)
  1032. ac_init_version=: ;;
  1033. -with-* | --with-*)
  1034. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1035. # Reject names that are not valid shell variable names.
  1036. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1037. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1038. { (exit 1); exit 1; }; }
  1039. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1040. eval with_$ac_package=\$ac_optarg ;;
  1041. -without-* | --without-*)
  1042. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1043. # Reject names that are not valid shell variable names.
  1044. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1045. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1046. { (exit 1); exit 1; }; }
  1047. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1048. eval with_$ac_package=no ;;
  1049. --x)
  1050. # Obsolete; use --with-x.
  1051. with_x=yes ;;
  1052. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1053. | --x-incl | --x-inc | --x-in | --x-i)
  1054. ac_prev=x_includes ;;
  1055. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1056. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1057. x_includes=$ac_optarg ;;
  1058. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1059. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1060. ac_prev=x_libraries ;;
  1061. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1062. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1063. x_libraries=$ac_optarg ;;
  1064. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1065. Try \`$0 --help' for more information." >&2
  1066. { (exit 1); exit 1; }; }
  1067. ;;
  1068. *=*)
  1069. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1070. # Reject names that are not valid shell variable names.
  1071. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1072. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1073. { (exit 1); exit 1; }; }
  1074. eval $ac_envvar=\$ac_optarg
  1075. export $ac_envvar ;;
  1076. *)
  1077. # FIXME: should be removed in autoconf 3.0.
  1078. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1079. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1080. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1081. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1082. ;;
  1083. esac
  1084. done
  1085. if test -n "$ac_prev"; then
  1086. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1087. { echo "$as_me: error: missing argument to $ac_option" >&2
  1088. { (exit 1); exit 1; }; }
  1089. fi
  1090. # Be sure to have absolute directory names.
  1091. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1092. datadir sysconfdir sharedstatedir localstatedir includedir \
  1093. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1094. libdir localedir mandir
  1095. do
  1096. eval ac_val=\$$ac_var
  1097. case $ac_val in
  1098. [\\/$]* | ?:[\\/]* ) continue;;
  1099. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1100. esac
  1101. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1102. { (exit 1); exit 1; }; }
  1103. done
  1104. # There might be people who depend on the old broken behavior: `$host'
  1105. # used to hold the argument of --host etc.
  1106. # FIXME: To remove some day.
  1107. build=$build_alias
  1108. host=$host_alias
  1109. target=$target_alias
  1110. # FIXME: To remove some day.
  1111. if test "x$host_alias" != x; then
  1112. if test "x$build_alias" = x; then
  1113. cross_compiling=maybe
  1114. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1115. If a cross compiler is detected then cross compile mode will be used." >&2
  1116. elif test "x$build_alias" != "x$host_alias"; then
  1117. cross_compiling=yes
  1118. fi
  1119. fi
  1120. ac_tool_prefix=
  1121. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1122. test "$silent" = yes && exec 6>/dev/null
  1123. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1124. ac_ls_di=`ls -di .` &&
  1125. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1126. { echo "$as_me: error: Working directory cannot be determined" >&2
  1127. { (exit 1); exit 1; }; }
  1128. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1129. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1130. { (exit 1); exit 1; }; }
  1131. # Find the source files, if location was not specified.
  1132. if test -z "$srcdir"; then
  1133. ac_srcdir_defaulted=yes
  1134. # Try the directory containing this script, then the parent directory.
  1135. ac_confdir=`$as_dirname -- "$0" ||
  1136. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1137. X"$0" : 'X\(//\)[^/]' \| \
  1138. X"$0" : 'X\(//\)$' \| \
  1139. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1140. echo X"$0" |
  1141. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1142. s//\1/
  1143. q
  1144. }
  1145. /^X\(\/\/\)[^/].*/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\/\)$/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\).*/{
  1154. s//\1/
  1155. q
  1156. }
  1157. s/.*/./; q'`
  1158. srcdir=$ac_confdir
  1159. if test ! -r "$srcdir/$ac_unique_file"; then
  1160. srcdir=..
  1161. fi
  1162. else
  1163. ac_srcdir_defaulted=no
  1164. fi
  1165. if test ! -r "$srcdir/$ac_unique_file"; then
  1166. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1167. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1168. { (exit 1); exit 1; }; }
  1169. fi
  1170. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1171. ac_abs_confdir=`(
  1172. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1173. { (exit 1); exit 1; }; }
  1174. pwd)`
  1175. # When building in place, set srcdir=.
  1176. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1177. srcdir=.
  1178. fi
  1179. # Remove unnecessary trailing slashes from srcdir.
  1180. # Double slashes in file names in object file debugging info
  1181. # mess up M-x gdb in Emacs.
  1182. case $srcdir in
  1183. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1184. esac
  1185. for ac_var in $ac_precious_vars; do
  1186. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1187. eval ac_env_${ac_var}_value=\$${ac_var}
  1188. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1189. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1190. done
  1191. #
  1192. # Report the --help message.
  1193. #
  1194. if test "$ac_init_help" = "long"; then
  1195. # Omit some internal or obsolete options to make the list less imposing.
  1196. # This message is too long to be a string in the A/UX 3.1 sh.
  1197. cat <<_ACEOF
  1198. \`configure' configures aria2 1.1.0 to adapt to many kinds of systems.
  1199. Usage: $0 [OPTION]... [VAR=VALUE]...
  1200. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1201. VAR=VALUE. See below for descriptions of some of the useful variables.
  1202. Defaults for the options are specified in brackets.
  1203. Configuration:
  1204. -h, --help display this help and exit
  1205. --help=short display options specific to this package
  1206. --help=recursive display the short help of all the included packages
  1207. -V, --version display version information and exit
  1208. -q, --quiet, --silent do not print \`checking...' messages
  1209. --cache-file=FILE cache test results in FILE [disabled]
  1210. -C, --config-cache alias for \`--cache-file=config.cache'
  1211. -n, --no-create do not create output files
  1212. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1213. Installation directories:
  1214. --prefix=PREFIX install architecture-independent files in PREFIX
  1215. [$ac_default_prefix]
  1216. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1217. [PREFIX]
  1218. By default, \`make install' will install all the files in
  1219. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1220. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1221. for instance \`--prefix=\$HOME'.
  1222. For better control, use the options below.
  1223. Fine tuning of the installation directories:
  1224. --bindir=DIR user executables [EPREFIX/bin]
  1225. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1226. --libexecdir=DIR program executables [EPREFIX/libexec]
  1227. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1228. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1229. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1230. --libdir=DIR object code libraries [EPREFIX/lib]
  1231. --includedir=DIR C header files [PREFIX/include]
  1232. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1233. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1234. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1235. --infodir=DIR info documentation [DATAROOTDIR/info]
  1236. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1237. --mandir=DIR man documentation [DATAROOTDIR/man]
  1238. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1239. --htmldir=DIR html documentation [DOCDIR]
  1240. --dvidir=DIR dvi documentation [DOCDIR]
  1241. --pdfdir=DIR pdf documentation [DOCDIR]
  1242. --psdir=DIR ps documentation [DOCDIR]
  1243. _ACEOF
  1244. cat <<\_ACEOF
  1245. Program names:
  1246. --program-prefix=PREFIX prepend PREFIX to installed program names
  1247. --program-suffix=SUFFIX append SUFFIX to installed program names
  1248. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1249. System types:
  1250. --build=BUILD configure for building on BUILD [guessed]
  1251. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1252. --target=TARGET configure for building compilers for TARGET [HOST]
  1253. _ACEOF
  1254. fi
  1255. if test -n "$ac_init_help"; then
  1256. case $ac_init_help in
  1257. short | recursive ) echo "Configuration of aria2 1.1.0:";;
  1258. esac
  1259. cat <<\_ACEOF
  1260. Optional Features:
  1261. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1262. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1263. --enable-bittorrent enable bittorrent support.
  1264. --enable-metalink enable metalink support.
  1265. --enable-epoll enable epoll support.
  1266. --disable-dependency-tracking speeds up one-time build
  1267. --enable-dependency-tracking do not reject slow dependency extractors
  1268. --disable-xmltest Do not try to compile and run a test LIBXML program
  1269. --disable-largefile omit support for large files
  1270. --disable-nls do not use Native Language Support
  1271. --enable-threads={posix|solaris|pth|win32}
  1272. specify multithreading API
  1273. --disable-threads build without multithread safety
  1274. --disable-rpath do not hardcode runtime library paths
  1275. Optional Packages:
  1276. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1277. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1278. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1279. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1280. --with-gnutls use gnutls if it is installed.
  1281. --with-openssl use openssl if it is installed.
  1282. --with-sqlite3 use sqlite3 if it is installed.
  1283. --with-libxml2 use libxml2 if it is installed.
  1284. --with-libexpat use libexpat if it is installed.
  1285. --with-libcares use libcares if it is installed.
  1286. --with-libz use libz if it is installed.
  1287. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1288. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1289. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1290. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1291. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1292. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1293. --with-libgcrypt-prefix=PFX
  1294. prefix where LIBGCRYPT is installed (optional)
  1295. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1296. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1297. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1298. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1299. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1300. --without-libpth-prefix don't search for libpth in includedir and libdir
  1301. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1302. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1303. --with-included-gettext use the GNU gettext library included here
  1304. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1305. --without-libintl-prefix don't search for libintl in includedir and libdir
  1306. Some influential environment variables:
  1307. CXX C++ compiler command
  1308. CXXFLAGS C++ compiler flags
  1309. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1310. nonstandard directory <lib dir>
  1311. LIBS libraries to pass to the linker, e.g. -l<library>
  1312. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1313. you have headers in a nonstandard directory <include dir>
  1314. CC C compiler command
  1315. CFLAGS C compiler flags
  1316. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1317. the first program found out of: `bison -y', `byacc', `yacc'.
  1318. YFLAGS The list of arguments that will be passed by default to $YACC.
  1319. This script will default YFLAGS to the empty string to avoid a
  1320. default value of `-d' given by some make applications.
  1321. CXXCPP C++ preprocessor
  1322. Use these variables to override the choices made by `configure' or to help
  1323. it to find libraries and programs with nonstandard names/locations.
  1324. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1325. _ACEOF
  1326. ac_status=$?
  1327. fi
  1328. if test "$ac_init_help" = "recursive"; then
  1329. # If there are subdirs, report their specific --help.
  1330. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1331. test -d "$ac_dir" || continue
  1332. ac_builddir=.
  1333. case "$ac_dir" in
  1334. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1335. *)
  1336. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1337. # A ".." for each directory in $ac_dir_suffix.
  1338. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1339. case $ac_top_builddir_sub in
  1340. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1341. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1342. esac ;;
  1343. esac
  1344. ac_abs_top_builddir=$ac_pwd
  1345. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1346. # for backward compatibility:
  1347. ac_top_builddir=$ac_top_build_prefix
  1348. case $srcdir in
  1349. .) # We are building in place.
  1350. ac_srcdir=.
  1351. ac_top_srcdir=$ac_top_builddir_sub
  1352. ac_abs_top_srcdir=$ac_pwd ;;
  1353. [\\/]* | ?:[\\/]* ) # Absolute name.
  1354. ac_srcdir=$srcdir$ac_dir_suffix;
  1355. ac_top_srcdir=$srcdir
  1356. ac_abs_top_srcdir=$srcdir ;;
  1357. *) # Relative name.
  1358. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1359. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1360. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1361. esac
  1362. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1363. cd "$ac_dir" || { ac_status=$?; continue; }
  1364. # Check for guested configure.
  1365. if test -f "$ac_srcdir/configure.gnu"; then
  1366. echo &&
  1367. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1368. elif test -f "$ac_srcdir/configure"; then
  1369. echo &&
  1370. $SHELL "$ac_srcdir/configure" --help=recursive
  1371. else
  1372. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1373. fi || ac_status=$?
  1374. cd "$ac_pwd" || { ac_status=$?; break; }
  1375. done
  1376. fi
  1377. test -n "$ac_init_help" && exit $ac_status
  1378. if $ac_init_version; then
  1379. cat <<\_ACEOF
  1380. aria2 configure 1.1.0
  1381. generated by GNU Autoconf 2.61
  1382. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1383. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1384. This configure script is free software; the Free Software Foundation
  1385. gives unlimited permission to copy, distribute and modify it.
  1386. _ACEOF
  1387. exit
  1388. fi
  1389. cat >config.log <<_ACEOF
  1390. This file contains any messages produced by compilers while
  1391. running configure, to aid debugging if configure makes a mistake.
  1392. It was created by aria2 $as_me 1.1.0, which was
  1393. generated by GNU Autoconf 2.61. Invocation command line was
  1394. $ $0 $@
  1395. _ACEOF
  1396. exec 5>>config.log
  1397. {
  1398. cat <<_ASUNAME
  1399. ## --------- ##
  1400. ## Platform. ##
  1401. ## --------- ##
  1402. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1403. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1404. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1405. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1406. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1407. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1408. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1409. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1410. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1411. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1412. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1413. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1414. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1415. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1416. _ASUNAME
  1417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1418. for as_dir in $PATH
  1419. do
  1420. IFS=$as_save_IFS
  1421. test -z "$as_dir" && as_dir=.
  1422. echo "PATH: $as_dir"
  1423. done
  1424. IFS=$as_save_IFS
  1425. } >&5
  1426. cat >&5 <<_ACEOF
  1427. ## ----------- ##
  1428. ## Core tests. ##
  1429. ## ----------- ##
  1430. _ACEOF
  1431. # Keep a trace of the command line.
  1432. # Strip out --no-create and --no-recursion so they do not pile up.
  1433. # Strip out --silent because we don't want to record it for future runs.
  1434. # Also quote any args containing shell meta-characters.
  1435. # Make two passes to allow for proper duplicate-argument suppression.
  1436. ac_configure_args=
  1437. ac_configure_args0=
  1438. ac_configure_args1=
  1439. ac_must_keep_next=false
  1440. for ac_pass in 1 2
  1441. do
  1442. for ac_arg
  1443. do
  1444. case $ac_arg in
  1445. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1446. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1447. | -silent | --silent | --silen | --sile | --sil)
  1448. continue ;;
  1449. *\'*)
  1450. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1451. esac
  1452. case $ac_pass in
  1453. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1454. 2)
  1455. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1456. if test $ac_must_keep_next = true; then
  1457. ac_must_keep_next=false # Got value, back to normal.
  1458. else
  1459. case $ac_arg in
  1460. *=* | --config-cache | -C | -disable-* | --disable-* \
  1461. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1462. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1463. | -with-* | --with-* | -without-* | --without-* | --x)
  1464. case "$ac_configure_args0 " in
  1465. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1466. esac
  1467. ;;
  1468. -* ) ac_must_keep_next=true ;;
  1469. esac
  1470. fi
  1471. ac_configure_args="$ac_configure_args '$ac_arg'"
  1472. ;;
  1473. esac
  1474. done
  1475. done
  1476. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1477. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1478. # When interrupted or exit'd, cleanup temporary files, and complete
  1479. # config.log. We remove comments because anyway the quotes in there
  1480. # would cause problems or look ugly.
  1481. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1482. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1483. trap 'exit_status=$?
  1484. # Save into config.log some information that might help in debugging.
  1485. {
  1486. echo
  1487. cat <<\_ASBOX
  1488. ## ---------------- ##
  1489. ## Cache variables. ##
  1490. ## ---------------- ##
  1491. _ASBOX
  1492. echo
  1493. # The following way of writing the cache mishandles newlines in values,
  1494. (
  1495. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1496. eval ac_val=\$$ac_var
  1497. case $ac_val in #(
  1498. *${as_nl}*)
  1499. case $ac_var in #(
  1500. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1501. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1502. esac
  1503. case $ac_var in #(
  1504. _ | IFS | as_nl) ;; #(
  1505. *) $as_unset $ac_var ;;
  1506. esac ;;
  1507. esac
  1508. done
  1509. (set) 2>&1 |
  1510. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1511. *${as_nl}ac_space=\ *)
  1512. sed -n \
  1513. "s/'\''/'\''\\\\'\'''\''/g;
  1514. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1515. ;; #(
  1516. *)
  1517. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1518. ;;
  1519. esac |
  1520. sort
  1521. )
  1522. echo
  1523. cat <<\_ASBOX
  1524. ## ----------------- ##
  1525. ## Output variables. ##
  1526. ## ----------------- ##
  1527. _ASBOX
  1528. echo
  1529. for ac_var in $ac_subst_vars
  1530. do
  1531. eval ac_val=\$$ac_var
  1532. case $ac_val in
  1533. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1534. esac
  1535. echo "$ac_var='\''$ac_val'\''"
  1536. done | sort
  1537. echo
  1538. if test -n "$ac_subst_files"; then
  1539. cat <<\_ASBOX
  1540. ## ------------------- ##
  1541. ## File substitutions. ##
  1542. ## ------------------- ##
  1543. _ASBOX
  1544. echo
  1545. for ac_var in $ac_subst_files
  1546. do
  1547. eval ac_val=\$$ac_var
  1548. case $ac_val in
  1549. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1550. esac
  1551. echo "$ac_var='\''$ac_val'\''"
  1552. done | sort
  1553. echo
  1554. fi
  1555. if test -s confdefs.h; then
  1556. cat <<\_ASBOX
  1557. ## ----------- ##
  1558. ## confdefs.h. ##
  1559. ## ----------- ##
  1560. _ASBOX
  1561. echo
  1562. cat confdefs.h
  1563. echo
  1564. fi
  1565. test "$ac_signal" != 0 &&
  1566. echo "$as_me: caught signal $ac_signal"
  1567. echo "$as_me: exit $exit_status"
  1568. } >&5
  1569. rm -f core *.core core.conftest.* &&
  1570. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1571. exit $exit_status
  1572. ' 0
  1573. for ac_signal in 1 2 13 15; do
  1574. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1575. done
  1576. ac_signal=0
  1577. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1578. rm -f -r conftest* confdefs.h
  1579. # Predefined preprocessor variables.
  1580. cat >>confdefs.h <<_ACEOF
  1581. #define PACKAGE_NAME "$PACKAGE_NAME"
  1582. _ACEOF
  1583. cat >>confdefs.h <<_ACEOF
  1584. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1585. _ACEOF
  1586. cat >>confdefs.h <<_ACEOF
  1587. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1588. _ACEOF
  1589. cat >>confdefs.h <<_ACEOF
  1590. #define PACKAGE_STRING "$PACKAGE_STRING"
  1591. _ACEOF
  1592. cat >>confdefs.h <<_ACEOF
  1593. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1594. _ACEOF
  1595. # Let the site file select an alternate cache file if it wants to.
  1596. # Prefer explicitly selected file to automatically selected ones.
  1597. if test -n "$CONFIG_SITE"; then
  1598. set x "$CONFIG_SITE"
  1599. elif test "x$prefix" != xNONE; then
  1600. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1601. else
  1602. set x "$ac_default_prefix/share/config.site" \
  1603. "$ac_default_prefix/etc/config.site"
  1604. fi
  1605. shift
  1606. for ac_site_file
  1607. do
  1608. if test -r "$ac_site_file"; then
  1609. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1610. echo "$as_me: loading site script $ac_site_file" >&6;}
  1611. sed 's/^/| /' "$ac_site_file" >&5
  1612. . "$ac_site_file"
  1613. fi
  1614. done
  1615. if test -r "$cache_file"; then
  1616. # Some versions of bash will fail to source /dev/null (special
  1617. # files actually), so we avoid doing that.
  1618. if test -f "$cache_file"; then
  1619. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1620. echo "$as_me: loading cache $cache_file" >&6;}
  1621. case $cache_file in
  1622. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1623. *) . "./$cache_file";;
  1624. esac
  1625. fi
  1626. else
  1627. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1628. echo "$as_me: creating cache $cache_file" >&6;}
  1629. >$cache_file
  1630. fi
  1631. gt_needs="$gt_needs "
  1632. ac_header_list="$ac_header_list sys/time.h"
  1633. ac_header_list="$ac_header_list unistd.h"
  1634. ac_func_list="$ac_func_list alarm"
  1635. # Check that the precious variables saved in the cache have kept the same
  1636. # value.
  1637. ac_cache_corrupted=false
  1638. for ac_var in $ac_precious_vars; do
  1639. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1640. eval ac_new_set=\$ac_env_${ac_var}_set
  1641. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1642. eval ac_new_val=\$ac_env_${ac_var}_value
  1643. case $ac_old_set,$ac_new_set in
  1644. set,)
  1645. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1646. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1647. ac_cache_corrupted=: ;;
  1648. ,set)
  1649. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1650. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1651. ac_cache_corrupted=: ;;
  1652. ,);;
  1653. *)
  1654. if test "x$ac_old_val" != "x$ac_new_val"; then
  1655. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1656. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1657. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1658. echo "$as_me: former value: $ac_old_val" >&2;}
  1659. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1660. echo "$as_me: current value: $ac_new_val" >&2;}
  1661. ac_cache_corrupted=:
  1662. fi;;
  1663. esac
  1664. # Pass precious variables to config.status.
  1665. if test "$ac_new_set" = set; then
  1666. case $ac_new_val in
  1667. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1668. *) ac_arg=$ac_var=$ac_new_val ;;
  1669. esac
  1670. case " $ac_configure_args " in
  1671. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1672. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1673. esac
  1674. fi
  1675. done
  1676. if $ac_cache_corrupted; then
  1677. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1678. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1679. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1680. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1681. { (exit 1); exit 1; }; }
  1682. fi
  1683. ac_ext=c
  1684. ac_cpp='$CPP $CPPFLAGS'
  1685. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1686. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1687. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1688. ac_aux_dir=
  1689. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1690. if test -f "$ac_dir/install-sh"; then
  1691. ac_aux_dir=$ac_dir
  1692. ac_install_sh="$ac_aux_dir/install-sh -c"
  1693. break
  1694. elif test -f "$ac_dir/install.sh"; then
  1695. ac_aux_dir=$ac_dir
  1696. ac_install_sh="$ac_aux_dir/install.sh -c"
  1697. break
  1698. elif test -f "$ac_dir/shtool"; then
  1699. ac_aux_dir=$ac_dir
  1700. ac_install_sh="$ac_aux_dir/shtool install -c"
  1701. break
  1702. fi
  1703. done
  1704. if test -z "$ac_aux_dir"; then
  1705. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1706. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1707. { (exit 1); exit 1; }; }
  1708. fi
  1709. # These three variables are undocumented and unsupported,
  1710. # and are intended to be withdrawn in a future Autoconf release.
  1711. # They can cause serious problems if a builder's source tree is in a directory
  1712. # whose full name contains unusual characters.
  1713. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1714. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1715. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1716. # Make sure we can run config.sub.
  1717. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1718. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1719. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1720. { (exit 1); exit 1; }; }
  1721. { echo "$as_me:$LINENO: checking build system type" >&5
  1722. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1723. if test "${ac_cv_build+set}" = set; then
  1724. echo $ECHO_N "(cached) $ECHO_C" >&6
  1725. else
  1726. ac_build_alias=$build_alias
  1727. test "x$ac_build_alias" = x &&
  1728. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1729. test "x$ac_build_alias" = x &&
  1730. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1731. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1732. { (exit 1); exit 1; }; }
  1733. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1734. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1735. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1736. { (exit 1); exit 1; }; }
  1737. fi
  1738. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1739. echo "${ECHO_T}$ac_cv_build" >&6; }
  1740. case $ac_cv_build in
  1741. *-*-*) ;;
  1742. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1743. echo "$as_me: error: invalid value of canonical build" >&2;}
  1744. { (exit 1); exit 1; }; };;
  1745. esac
  1746. build=$ac_cv_build
  1747. ac_save_IFS=$IFS; IFS='-'
  1748. set x $ac_cv_build
  1749. shift
  1750. build_cpu=$1
  1751. build_vendor=$2
  1752. shift; shift
  1753. # Remember, the first character of IFS is used to create $*,
  1754. # except with old shells:
  1755. build_os=$*
  1756. IFS=$ac_save_IFS
  1757. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1758. { echo "$as_me:$LINENO: checking host system type" >&5
  1759. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1760. if test "${ac_cv_host+set}" = set; then
  1761. echo $ECHO_N "(cached) $ECHO_C" >&6
  1762. else
  1763. if test "x$host_alias" = x; then
  1764. ac_cv_host=$ac_cv_build
  1765. else
  1766. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1767. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1768. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1769. { (exit 1); exit 1; }; }
  1770. fi
  1771. fi
  1772. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1773. echo "${ECHO_T}$ac_cv_host" >&6; }
  1774. case $ac_cv_host in
  1775. *-*-*) ;;
  1776. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1777. echo "$as_me: error: invalid value of canonical host" >&2;}
  1778. { (exit 1); exit 1; }; };;
  1779. esac
  1780. host=$ac_cv_host
  1781. ac_save_IFS=$IFS; IFS='-'
  1782. set x $ac_cv_host
  1783. shift
  1784. host_cpu=$1
  1785. host_vendor=$2
  1786. shift; shift
  1787. # Remember, the first character of IFS is used to create $*,
  1788. # except with old shells:
  1789. host_os=$*
  1790. IFS=$ac_save_IFS
  1791. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1792. { echo "$as_me:$LINENO: checking target system type" >&5
  1793. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1794. if test "${ac_cv_target+set}" = set; then
  1795. echo $ECHO_N "(cached) $ECHO_C" >&6
  1796. else
  1797. if test "x$target_alias" = x; then
  1798. ac_cv_target=$ac_cv_host
  1799. else
  1800. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1801. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1802. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1803. { (exit 1); exit 1; }; }
  1804. fi
  1805. fi
  1806. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1807. echo "${ECHO_T}$ac_cv_target" >&6; }
  1808. case $ac_cv_target in
  1809. *-*-*) ;;
  1810. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1811. echo "$as_me: error: invalid value of canonical target" >&2;}
  1812. { (exit 1); exit 1; }; };;
  1813. esac
  1814. target=$ac_cv_target
  1815. ac_save_IFS=$IFS; IFS='-'
  1816. set x $ac_cv_target
  1817. shift
  1818. target_cpu=$1
  1819. target_vendor=$2
  1820. shift; shift
  1821. # Remember, the first character of IFS is used to create $*,
  1822. # except with old shells:
  1823. target_os=$*
  1824. IFS=$ac_save_IFS
  1825. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1826. # The aliases save the names the user supplied, while $host etc.
  1827. # will get canonicalized.
  1828. test -n "$target_alias" &&
  1829. test "$program_prefix$program_suffix$program_transform_name" = \
  1830. NONENONEs,x,x, &&
  1831. program_prefix=${target_alias}-
  1832. am__api_version='1.10'
  1833. # Find a good install program. We prefer a C program (faster),
  1834. # so one script is as good as another. But avoid the broken or
  1835. # incompatible versions:
  1836. # SysV /etc/install, /usr/sbin/install
  1837. # SunOS /usr/etc/install
  1838. # IRIX /sbin/install
  1839. # AIX /bin/install
  1840. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1841. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1842. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1843. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1844. # OS/2's system install, which has a completely different semantic
  1845. # ./install, which can be erroneously created by make from ./install.sh.
  1846. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1847. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1848. if test -z "$INSTALL"; then
  1849. if test "${ac_cv_path_install+set}" = set; then
  1850. echo $ECHO_N "(cached) $ECHO_C" >&6
  1851. else
  1852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1853. for as_dir in $PATH
  1854. do
  1855. IFS=$as_save_IFS
  1856. test -z "$as_dir" && as_dir=.
  1857. # Account for people who put trailing slashes in PATH elements.
  1858. case $as_dir/ in
  1859. ./ | .// | /cC/* | \
  1860. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1861. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1862. /usr/ucb/* ) ;;
  1863. *)
  1864. # OSF1 and SCO ODT 3.0 have their own names for install.
  1865. # Don't use installbsd from OSF since it installs stuff as root
  1866. # by default.
  1867. for ac_prog in ginstall scoinst install; do
  1868. for ac_exec_ext in '' $ac_executable_extensions; do
  1869. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1870. if test $ac_prog = install &&
  1871. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1872. # AIX install. It has an incompatible calling convention.
  1873. :
  1874. elif test $ac_prog = install &&
  1875. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1876. # program-specific install script used by HP pwplus--don't use.
  1877. :
  1878. else
  1879. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1880. break 3
  1881. fi
  1882. fi
  1883. done
  1884. done
  1885. ;;
  1886. esac
  1887. done
  1888. IFS=$as_save_IFS
  1889. fi
  1890. if test "${ac_cv_path_install+set}" = set; then
  1891. INSTALL=$ac_cv_path_install
  1892. else
  1893. # As a last resort, use the slow shell script. Don't cache a
  1894. # value for INSTALL within a source directory, because that will
  1895. # break other packages using the cache if that directory is
  1896. # removed, or if the value is a relative name.
  1897. INSTALL=$ac_install_sh
  1898. fi
  1899. fi
  1900. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1901. echo "${ECHO_T}$INSTALL" >&6; }
  1902. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1903. # It thinks the first close brace ends the variable substitution.
  1904. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1905. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1906. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1907. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1908. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1909. # Just in case
  1910. sleep 1
  1911. echo timestamp > conftest.file
  1912. # Do `set' in a subshell so we don't clobber the current shell's
  1913. # arguments. Must try -L first in case configure is actually a
  1914. # symlink; some systems play weird games with the mod time of symlinks
  1915. # (eg FreeBSD returns the mod time of the symlink's containing
  1916. # directory).
  1917. if (
  1918. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1919. if test "$*" = "X"; then
  1920. # -L didn't work.
  1921. set X `ls -t $srcdir/configure conftest.file`
  1922. fi
  1923. rm -f conftest.file
  1924. if test "$*" != "X $srcdir/configure conftest.file" \
  1925. && test "$*" != "X conftest.file $srcdir/configure"; then
  1926. # If neither matched, then we have a broken ls. This can happen
  1927. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1928. # broken ls alias from the environment. This has actually
  1929. # happened. Such a system could not be considered "sane".
  1930. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1931. alias in your environment" >&5
  1932. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1933. alias in your environment" >&2;}
  1934. { (exit 1); exit 1; }; }
  1935. fi
  1936. test "$2" = conftest.file
  1937. )
  1938. then
  1939. # Ok.
  1940. :
  1941. else
  1942. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1943. Check your system clock" >&5
  1944. echo "$as_me: error: newly created file is older than distributed files!
  1945. Check your system clock" >&2;}
  1946. { (exit 1); exit 1; }; }
  1947. fi
  1948. { echo "$as_me:$LINENO: result: yes" >&5
  1949. echo "${ECHO_T}yes" >&6; }
  1950. test "$program_prefix" != NONE &&
  1951. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1952. # Use a double $ so make ignores it.
  1953. test "$program_suffix" != NONE &&
  1954. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1955. # Double any \ or $. echo might interpret backslashes.
  1956. # By default was `s,x,x', remove it if useless.
  1957. cat <<\_ACEOF >conftest.sed
  1958. s/[\\$]/&&/g;s/;s,x,x,$//
  1959. _ACEOF
  1960. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1961. rm -f conftest.sed
  1962. # expand $ac_aux_dir to an absolute path
  1963. am_aux_dir=`cd $ac_aux_dir && pwd`
  1964. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1965. # Use eval to expand $SHELL
  1966. if eval "$MISSING --run true"; then
  1967. am_missing_run="$MISSING --run "
  1968. else
  1969. am_missing_run=
  1970. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1971. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1972. fi
  1973. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1974. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1975. if test -z "$MKDIR_P"; then
  1976. if test "${ac_cv_path_mkdir+set}" = set; then
  1977. echo $ECHO_N "(cached) $ECHO_C" >&6
  1978. else
  1979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1980. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1981. do
  1982. IFS=$as_save_IFS
  1983. test -z "$as_dir" && as_dir=.
  1984. for ac_prog in mkdir gmkdir; do
  1985. for ac_exec_ext in '' $ac_executable_extensions; do
  1986. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1987. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1988. 'mkdir (GNU coreutils) '* | \
  1989. 'mkdir (coreutils) '* | \
  1990. 'mkdir (fileutils) '4.1*)
  1991. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1992. break 3;;
  1993. esac
  1994. done
  1995. done
  1996. done
  1997. IFS=$as_save_IFS
  1998. fi
  1999. if test "${ac_cv_path_mkdir+set}" = set; then
  2000. MKDIR_P="$ac_cv_path_mkdir -p"
  2001. else
  2002. # As a last resort, use the slow shell script. Don't cache a
  2003. # value for MKDIR_P within a source directory, because that will
  2004. # break other packages using the cache if that directory is
  2005. # removed, or if the value is a relative name.
  2006. test -d ./--version && rmdir ./--version
  2007. MKDIR_P="$ac_install_sh -d"
  2008. fi
  2009. fi
  2010. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2011. echo "${ECHO_T}$MKDIR_P" >&6; }
  2012. mkdir_p="$MKDIR_P"
  2013. case $mkdir_p in
  2014. [\\/$]* | ?:[\\/]*) ;;
  2015. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2016. esac
  2017. for ac_prog in gawk mawk nawk awk
  2018. do
  2019. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2020. set dummy $ac_prog; ac_word=$2
  2021. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2022. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2023. if test "${ac_cv_prog_AWK+set}" = set; then
  2024. echo $ECHO_N "(cached) $ECHO_C" >&6
  2025. else
  2026. if test -n "$AWK"; then
  2027. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2028. else
  2029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2030. for as_dir in $PATH
  2031. do
  2032. IFS=$as_save_IFS
  2033. test -z "$as_dir" && as_dir=.
  2034. for ac_exec_ext in '' $ac_executable_extensions; do
  2035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2036. ac_cv_prog_AWK="$ac_prog"
  2037. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2038. break 2
  2039. fi
  2040. done
  2041. done
  2042. IFS=$as_save_IFS
  2043. fi
  2044. fi
  2045. AWK=$ac_cv_prog_AWK
  2046. if test -n "$AWK"; then
  2047. { echo "$as_me:$LINENO: result: $AWK" >&5
  2048. echo "${ECHO_T}$AWK" >&6; }
  2049. else
  2050. { echo "$as_me:$LINENO: result: no" >&5
  2051. echo "${ECHO_T}no" >&6; }
  2052. fi
  2053. test -n "$AWK" && break
  2054. done
  2055. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2056. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2057. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2058. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2059. echo $ECHO_N "(cached) $ECHO_C" >&6
  2060. else
  2061. cat >conftest.make <<\_ACEOF
  2062. SHELL = /bin/sh
  2063. all:
  2064. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2065. _ACEOF
  2066. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2067. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2068. *@@@%%%=?*=@@@%%%*)
  2069. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2070. *)
  2071. eval ac_cv_prog_make_${ac_make}_set=no;;
  2072. esac
  2073. rm -f conftest.make
  2074. fi
  2075. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2076. { echo "$as_me:$LINENO: result: yes" >&5
  2077. echo "${ECHO_T}yes" >&6; }
  2078. SET_MAKE=
  2079. else
  2080. { echo "$as_me:$LINENO: result: no" >&5
  2081. echo "${ECHO_T}no" >&6; }
  2082. SET_MAKE="MAKE=${MAKE-make}"
  2083. fi
  2084. rm -rf .tst 2>/dev/null
  2085. mkdir .tst 2>/dev/null
  2086. if test -d .tst; then
  2087. am__leading_dot=.
  2088. else
  2089. am__leading_dot=_
  2090. fi
  2091. rmdir .tst 2>/dev/null
  2092. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2093. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2094. # is not polluted with repeated "-I."
  2095. am__isrc=' -I$(srcdir)'
  2096. # test to see if srcdir already configured
  2097. if test -f $srcdir/config.status; then
  2098. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2099. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2100. { (exit 1); exit 1; }; }
  2101. fi
  2102. fi
  2103. # test whether we have cygpath
  2104. if test -z "$CYGPATH_W"; then
  2105. if (cygpath --version) >/dev/null 2>/dev/null; then
  2106. CYGPATH_W='cygpath -w'
  2107. else
  2108. CYGPATH_W=echo
  2109. fi
  2110. fi
  2111. # Define the identity of the package.
  2112. PACKAGE='aria2'
  2113. VERSION='1.1.0'
  2114. cat >>confdefs.h <<_ACEOF
  2115. #define PACKAGE "$PACKAGE"
  2116. _ACEOF
  2117. cat >>confdefs.h <<_ACEOF
  2118. #define VERSION "$VERSION"
  2119. _ACEOF
  2120. # Some tools Automake needs.
  2121. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2122. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2123. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2124. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2125. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2126. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2127. # Installed binaries are usually stripped using `strip' when the user
  2128. # run `make install-strip'. However `strip' might not be the right
  2129. # tool to use in cross-compilation environments, therefore Automake
  2130. # will honor the `STRIP' environment variable to overrule this program.
  2131. if test "$cross_compiling" != no; then
  2132. if test -n "$ac_tool_prefix"; then
  2133. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2134. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2135. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2136. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2137. if test "${ac_cv_prog_STRIP+set}" = set; then
  2138. echo $ECHO_N "(cached) $ECHO_C" >&6
  2139. else
  2140. if test -n "$STRIP"; then
  2141. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2142. else
  2143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2144. for as_dir in $PATH
  2145. do
  2146. IFS=$as_save_IFS
  2147. test -z "$as_dir" && as_dir=.
  2148. for ac_exec_ext in '' $ac_executable_extensions; do
  2149. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2150. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2151. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2152. break 2
  2153. fi
  2154. done
  2155. done
  2156. IFS=$as_save_IFS
  2157. fi
  2158. fi
  2159. STRIP=$ac_cv_prog_STRIP
  2160. if test -n "$STRIP"; then
  2161. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2162. echo "${ECHO_T}$STRIP" >&6; }
  2163. else
  2164. { echo "$as_me:$LINENO: result: no" >&5
  2165. echo "${ECHO_T}no" >&6; }
  2166. fi
  2167. fi
  2168. if test -z "$ac_cv_prog_STRIP"; then
  2169. ac_ct_STRIP=$STRIP
  2170. # Extract the first word of "strip", so it can be a program name with args.
  2171. set dummy strip; ac_word=$2
  2172. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2173. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2174. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2175. echo $ECHO_N "(cached) $ECHO_C" >&6
  2176. else
  2177. if test -n "$ac_ct_STRIP"; then
  2178. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2179. else
  2180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2181. for as_dir in $PATH
  2182. do
  2183. IFS=$as_save_IFS
  2184. test -z "$as_dir" && as_dir=.
  2185. for ac_exec_ext in '' $ac_executable_extensions; do
  2186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2187. ac_cv_prog_ac_ct_STRIP="strip"
  2188. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2189. break 2
  2190. fi
  2191. done
  2192. done
  2193. IFS=$as_save_IFS
  2194. fi
  2195. fi
  2196. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2197. if test -n "$ac_ct_STRIP"; then
  2198. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2199. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2200. else
  2201. { echo "$as_me:$LINENO: result: no" >&5
  2202. echo "${ECHO_T}no" >&6; }
  2203. fi
  2204. if test "x$ac_ct_STRIP" = x; then
  2205. STRIP=":"
  2206. else
  2207. case $cross_compiling:$ac_tool_warned in
  2208. yes:)
  2209. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2210. whose name does not start with the host triplet. If you think this
  2211. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2212. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2213. whose name does not start with the host triplet. If you think this
  2214. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2215. ac_tool_warned=yes ;;
  2216. esac
  2217. STRIP=$ac_ct_STRIP
  2218. fi
  2219. else
  2220. STRIP="$ac_cv_prog_STRIP"
  2221. fi
  2222. fi
  2223. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2224. # We need awk for the "check" target. The system "awk" is bad on
  2225. # some platforms.
  2226. # Always define AMTAR for backward compatibility.
  2227. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2228. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2229. # Check whether --with-cppunit-prefix was given.
  2230. if test "${with_cppunit_prefix+set}" = set; then
  2231. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2232. else
  2233. cppunit_config_prefix=""
  2234. fi
  2235. # Check whether --with-cppunit-exec-prefix was given.
  2236. if test "${with_cppunit_exec_prefix+set}" = set; then
  2237. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2238. else
  2239. cppunit_config_exec_prefix=""
  2240. fi
  2241. if test x$cppunit_config_exec_prefix != x ; then
  2242. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2243. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2244. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2245. fi
  2246. fi
  2247. if test x$cppunit_config_prefix != x ; then
  2248. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2249. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2250. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2251. fi
  2252. fi
  2253. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2254. set dummy cppunit-config; ac_word=$2
  2255. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2256. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2257. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2258. echo $ECHO_N "(cached) $ECHO_C" >&6
  2259. else
  2260. case $CPPUNIT_CONFIG in
  2261. [\\/]* | ?:[\\/]*)
  2262. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2263. ;;
  2264. *)
  2265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2266. for as_dir in $PATH
  2267. do
  2268. IFS=$as_save_IFS
  2269. test -z "$as_dir" && as_dir=.
  2270. for ac_exec_ext in '' $ac_executable_extensions; do
  2271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2272. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2273. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2274. break 2
  2275. fi
  2276. done
  2277. done
  2278. IFS=$as_save_IFS
  2279. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2280. ;;
  2281. esac
  2282. fi
  2283. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2284. if test -n "$CPPUNIT_CONFIG"; then
  2285. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2286. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2287. else
  2288. { echo "$as_me:$LINENO: result: no" >&5
  2289. echo "${ECHO_T}no" >&6; }
  2290. fi
  2291. cppunit_version_min=1.10.2
  2292. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2293. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2294. no_cppunit=""
  2295. if test "$CPPUNIT_CONFIG" = "no" ; then
  2296. { echo "$as_me:$LINENO: result: no" >&5
  2297. echo "${ECHO_T}no" >&6; }
  2298. no_cppunit=yes
  2299. else
  2300. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2301. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2302. cppunit_version=`$CPPUNIT_CONFIG --version`
  2303. cppunit_major_version=`echo $cppunit_version | \
  2304. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2305. cppunit_minor_version=`echo $cppunit_version | \
  2306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2307. cppunit_micro_version=`echo $cppunit_version | \
  2308. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2309. cppunit_major_min=`echo $cppunit_version_min | \
  2310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2311. if test "x${cppunit_major_min}" = "x" ; then
  2312. cppunit_major_min=0
  2313. fi
  2314. cppunit_minor_min=`echo $cppunit_version_min | \
  2315. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2316. if test "x${cppunit_minor_min}" = "x" ; then
  2317. cppunit_minor_min=0
  2318. fi
  2319. cppunit_micro_min=`echo $cppunit_version_min | \
  2320. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2321. if test "x${cppunit_micro_min}" = "x" ; then
  2322. cppunit_micro_min=0
  2323. fi
  2324. cppunit_version_proper=`expr \
  2325. $cppunit_major_version \> $cppunit_major_min \| \
  2326. $cppunit_major_version \= $cppunit_major_min \& \
  2327. $cppunit_minor_version \> $cppunit_minor_min \| \
  2328. $cppunit_major_version \= $cppunit_major_min \& \
  2329. $cppunit_minor_version \= $cppunit_minor_min \& \
  2330. $cppunit_micro_version \>= $cppunit_micro_min `
  2331. if test "$cppunit_version_proper" = "1" ; then
  2332. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2333. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2334. else
  2335. { echo "$as_me:$LINENO: result: no" >&5
  2336. echo "${ECHO_T}no" >&6; }
  2337. no_cppunit=yes
  2338. fi
  2339. fi
  2340. if test "x$no_cppunit" = x ; then
  2341. :
  2342. else
  2343. CPPUNIT_CFLAGS=""
  2344. CPPUNIT_LIBS=""
  2345. :
  2346. fi
  2347. ac_config_headers="$ac_config_headers config.h"
  2348. case "$target" in
  2349. *mingw*|*cygwin*)
  2350. WINSOCK_LIBS="-lws2_32 -lpthread"
  2351. ;;
  2352. esac
  2353. cat >>confdefs.h <<_ACEOF
  2354. #define TARGET "$target"
  2355. _ACEOF
  2356. # Set localedir
  2357. localedir=${datadir}/locale
  2358. # Checks for arguments.
  2359. # Check whether --with-gnutls was given.
  2360. if test "${with_gnutls+set}" = set; then
  2361. withval=$with_gnutls; with_gnutls=$withval
  2362. else
  2363. with_gnutls=yes
  2364. fi
  2365. # Check whether --with-openssl was given.
  2366. if test "${with_openssl+set}" = set; then
  2367. withval=$with_openssl; with_openssl=$withval
  2368. else
  2369. with_openssl=yes
  2370. fi
  2371. # Check whether --with-sqlite3 was given.
  2372. if test "${with_sqlite3+set}" = set; then
  2373. withval=$with_sqlite3; with_sqlite3=$withval
  2374. else
  2375. with_sqlite3=yes
  2376. fi
  2377. # Check whether --with-libxml2 was given.
  2378. if test "${with_libxml2+set}" = set; then
  2379. withval=$with_libxml2; with_libxml2=$withval
  2380. else
  2381. with_libxml2=yes
  2382. fi
  2383. # Check whether --with-libexpat was given.
  2384. if test "${with_libexpat+set}" = set; then
  2385. withval=$with_libexpat; with_libexpat=$withval
  2386. else
  2387. with_libexpat=yes
  2388. fi
  2389. # Check whether --with-libcares was given.
  2390. if test "${with_libcares+set}" = set; then
  2391. withval=$with_libcares; with_libcares=$withval
  2392. else
  2393. with_libcares=yes
  2394. fi
  2395. # Check whether --with-libz was given.
  2396. if test "${with_libz+set}" = set; then
  2397. withval=$with_libz; with_libz=$withval
  2398. else
  2399. with_libz=yes
  2400. fi
  2401. # Check whether --enable-bittorrent was given.
  2402. if test "${enable_bittorrent+set}" = set; then
  2403. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2404. else
  2405. enable_bittorrent=yes
  2406. fi
  2407. # Check whether --enable-metalink was given.
  2408. if test "${enable_metalink+set}" = set; then
  2409. enableval=$enable_metalink; enable_metalink=$enableval
  2410. else
  2411. enable_metalink=yes
  2412. fi
  2413. # Check whether --enable-epoll was given.
  2414. if test "${enable_epoll+set}" = set; then
  2415. enableval=$enable_epoll; enable_epoll=$enableval
  2416. else
  2417. enable_epoll=yes
  2418. fi
  2419. # Check whether --with-ca-bundle was given.
  2420. if test "${with_ca_bundle+set}" = set; then
  2421. withval=$with_ca_bundle; ca_bundle=$withval
  2422. else
  2423. ca_bundle=""
  2424. fi
  2425. # Checks for programs.
  2426. ac_ext=cpp
  2427. ac_cpp='$CXXCPP $CPPFLAGS'
  2428. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2429. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2430. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2431. if test -z "$CXX"; then
  2432. if test -n "$CCC"; then
  2433. CXX=$CCC
  2434. else
  2435. if test -n "$ac_tool_prefix"; then
  2436. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2437. do
  2438. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2439. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2440. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2441. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2442. if test "${ac_cv_prog_CXX+set}" = set; then
  2443. echo $ECHO_N "(cached) $ECHO_C" >&6
  2444. else
  2445. if test -n "$CXX"; then
  2446. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2447. else
  2448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2449. for as_dir in $PATH
  2450. do
  2451. IFS=$as_save_IFS
  2452. test -z "$as_dir" && as_dir=.
  2453. for ac_exec_ext in '' $ac_executable_extensions; do
  2454. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2455. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2456. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2457. break 2
  2458. fi
  2459. done
  2460. done
  2461. IFS=$as_save_IFS
  2462. fi
  2463. fi
  2464. CXX=$ac_cv_prog_CXX
  2465. if test -n "$CXX"; then
  2466. { echo "$as_me:$LINENO: result: $CXX" >&5
  2467. echo "${ECHO_T}$CXX" >&6; }
  2468. else
  2469. { echo "$as_me:$LINENO: result: no" >&5
  2470. echo "${ECHO_T}no" >&6; }
  2471. fi
  2472. test -n "$CXX" && break
  2473. done
  2474. fi
  2475. if test -z "$CXX"; then
  2476. ac_ct_CXX=$CXX
  2477. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2478. do
  2479. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2480. set dummy $ac_prog; ac_word=$2
  2481. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2482. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2483. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2484. echo $ECHO_N "(cached) $ECHO_C" >&6
  2485. else
  2486. if test -n "$ac_ct_CXX"; then
  2487. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2488. else
  2489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2490. for as_dir in $PATH
  2491. do
  2492. IFS=$as_save_IFS
  2493. test -z "$as_dir" && as_dir=.
  2494. for ac_exec_ext in '' $ac_executable_extensions; do
  2495. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2496. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2497. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2498. break 2
  2499. fi
  2500. done
  2501. done
  2502. IFS=$as_save_IFS
  2503. fi
  2504. fi
  2505. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2506. if test -n "$ac_ct_CXX"; then
  2507. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2508. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2509. else
  2510. { echo "$as_me:$LINENO: result: no" >&5
  2511. echo "${ECHO_T}no" >&6; }
  2512. fi
  2513. test -n "$ac_ct_CXX" && break
  2514. done
  2515. if test "x$ac_ct_CXX" = x; then
  2516. CXX="g++"
  2517. else
  2518. case $cross_compiling:$ac_tool_warned in
  2519. yes:)
  2520. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2521. whose name does not start with the host triplet. If you think this
  2522. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2523. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2524. whose name does not start with the host triplet. If you think this
  2525. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2526. ac_tool_warned=yes ;;
  2527. esac
  2528. CXX=$ac_ct_CXX
  2529. fi
  2530. fi
  2531. fi
  2532. fi
  2533. # Provide some information about the compiler.
  2534. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2535. ac_compiler=`set X $ac_compile; echo $2`
  2536. { (ac_try="$ac_compiler --version >&5"
  2537. case "(($ac_try" in
  2538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2539. *) ac_try_echo=$ac_try;;
  2540. esac
  2541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2542. (eval "$ac_compiler --version >&5") 2>&5
  2543. ac_status=$?
  2544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2545. (exit $ac_status); }
  2546. { (ac_try="$ac_compiler -v >&5"
  2547. case "(($ac_try" in
  2548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2549. *) ac_try_echo=$ac_try;;
  2550. esac
  2551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2552. (eval "$ac_compiler -v >&5") 2>&5
  2553. ac_status=$?
  2554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2555. (exit $ac_status); }
  2556. { (ac_try="$ac_compiler -V >&5"
  2557. case "(($ac_try" in
  2558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2559. *) ac_try_echo=$ac_try;;
  2560. esac
  2561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2562. (eval "$ac_compiler -V >&5") 2>&5
  2563. ac_status=$?
  2564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2565. (exit $ac_status); }
  2566. cat >conftest.$ac_ext <<_ACEOF
  2567. /* confdefs.h. */
  2568. _ACEOF
  2569. cat confdefs.h >>conftest.$ac_ext
  2570. cat >>conftest.$ac_ext <<_ACEOF
  2571. /* end confdefs.h. */
  2572. int
  2573. main ()
  2574. {
  2575. ;
  2576. return 0;
  2577. }
  2578. _ACEOF
  2579. ac_clean_files_save=$ac_clean_files
  2580. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2581. # Try to create an executable without -o first, disregard a.out.
  2582. # It will help us diagnose broken compilers, and finding out an intuition
  2583. # of exeext.
  2584. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2585. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2586. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2587. #
  2588. # List of possible output files, starting from the most likely.
  2589. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2590. # only as a last resort. b.out is created by i960 compilers.
  2591. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2592. #
  2593. # The IRIX 6 linker writes into existing files which may not be
  2594. # executable, retaining their permissions. Remove them first so a
  2595. # subsequent execution test works.
  2596. ac_rmfiles=
  2597. for ac_file in $ac_files
  2598. do
  2599. case $ac_file in
  2600. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2601. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2602. esac
  2603. done
  2604. rm -f $ac_rmfiles
  2605. if { (ac_try="$ac_link_default"
  2606. case "(($ac_try" in
  2607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2608. *) ac_try_echo=$ac_try;;
  2609. esac
  2610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2611. (eval "$ac_link_default") 2>&5
  2612. ac_status=$?
  2613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2614. (exit $ac_status); }; then
  2615. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2616. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2617. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2618. # so that the user can short-circuit this test for compilers unknown to
  2619. # Autoconf.
  2620. for ac_file in $ac_files ''
  2621. do
  2622. test -f "$ac_file" || continue
  2623. case $ac_file in
  2624. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2625. ;;
  2626. [ab].out )
  2627. # We found the default executable, but exeext='' is most
  2628. # certainly right.
  2629. break;;
  2630. *.* )
  2631. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2632. then :; else
  2633. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2634. fi
  2635. # We set ac_cv_exeext here because the later test for it is not
  2636. # safe: cross compilers may not add the suffix if given an `-o'
  2637. # argument, so we may need to know it at that point already.
  2638. # Even if this section looks crufty: it has the advantage of
  2639. # actually working.
  2640. break;;
  2641. * )
  2642. break;;
  2643. esac
  2644. done
  2645. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2646. else
  2647. ac_file=''
  2648. fi
  2649. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2650. echo "${ECHO_T}$ac_file" >&6; }
  2651. if test -z "$ac_file"; then
  2652. echo "$as_me: failed program was:" >&5
  2653. sed 's/^/| /' conftest.$ac_ext >&5
  2654. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2655. See \`config.log' for more details." >&5
  2656. echo "$as_me: error: C++ compiler cannot create executables
  2657. See \`config.log' for more details." >&2;}
  2658. { (exit 77); exit 77; }; }
  2659. fi
  2660. ac_exeext=$ac_cv_exeext
  2661. # Check that the compiler produces executables we can run. If not, either
  2662. # the compiler is broken, or we cross compile.
  2663. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2664. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2665. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2666. # If not cross compiling, check that we can run a simple program.
  2667. if test "$cross_compiling" != yes; then
  2668. if { ac_try='./$ac_file'
  2669. { (case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2674. (eval "$ac_try") 2>&5
  2675. ac_status=$?
  2676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2677. (exit $ac_status); }; }; then
  2678. cross_compiling=no
  2679. else
  2680. if test "$cross_compiling" = maybe; then
  2681. cross_compiling=yes
  2682. else
  2683. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2684. If you meant to cross compile, use \`--host'.
  2685. See \`config.log' for more details." >&5
  2686. echo "$as_me: error: cannot run C++ compiled programs.
  2687. If you meant to cross compile, use \`--host'.
  2688. See \`config.log' for more details." >&2;}
  2689. { (exit 1); exit 1; }; }
  2690. fi
  2691. fi
  2692. fi
  2693. { echo "$as_me:$LINENO: result: yes" >&5
  2694. echo "${ECHO_T}yes" >&6; }
  2695. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2696. ac_clean_files=$ac_clean_files_save
  2697. # Check that the compiler produces executables we can run. If not, either
  2698. # the compiler is broken, or we cross compile.
  2699. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2700. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2701. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2702. echo "${ECHO_T}$cross_compiling" >&6; }
  2703. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2704. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2705. if { (ac_try="$ac_link"
  2706. case "(($ac_try" in
  2707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2708. *) ac_try_echo=$ac_try;;
  2709. esac
  2710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2711. (eval "$ac_link") 2>&5
  2712. ac_status=$?
  2713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2714. (exit $ac_status); }; then
  2715. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2716. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2717. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2718. # `rm'.
  2719. for ac_file in conftest.exe conftest conftest.*; do
  2720. test -f "$ac_file" || continue
  2721. case $ac_file in
  2722. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2723. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2724. break;;
  2725. * ) break;;
  2726. esac
  2727. done
  2728. else
  2729. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2730. See \`config.log' for more details." >&5
  2731. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2732. See \`config.log' for more details." >&2;}
  2733. { (exit 1); exit 1; }; }
  2734. fi
  2735. rm -f conftest$ac_cv_exeext
  2736. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2737. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2738. rm -f conftest.$ac_ext
  2739. EXEEXT=$ac_cv_exeext
  2740. ac_exeext=$EXEEXT
  2741. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2742. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2743. if test "${ac_cv_objext+set}" = set; then
  2744. echo $ECHO_N "(cached) $ECHO_C" >&6
  2745. else
  2746. cat >conftest.$ac_ext <<_ACEOF
  2747. /* confdefs.h. */
  2748. _ACEOF
  2749. cat confdefs.h >>conftest.$ac_ext
  2750. cat >>conftest.$ac_ext <<_ACEOF
  2751. /* end confdefs.h. */
  2752. int
  2753. main ()
  2754. {
  2755. ;
  2756. return 0;
  2757. }
  2758. _ACEOF
  2759. rm -f conftest.o conftest.obj
  2760. if { (ac_try="$ac_compile"
  2761. case "(($ac_try" in
  2762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2763. *) ac_try_echo=$ac_try;;
  2764. esac
  2765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2766. (eval "$ac_compile") 2>&5
  2767. ac_status=$?
  2768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2769. (exit $ac_status); }; then
  2770. for ac_file in conftest.o conftest.obj conftest.*; do
  2771. test -f "$ac_file" || continue;
  2772. case $ac_file in
  2773. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2774. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2775. break;;
  2776. esac
  2777. done
  2778. else
  2779. echo "$as_me: failed program was:" >&5
  2780. sed 's/^/| /' conftest.$ac_ext >&5
  2781. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2782. See \`config.log' for more details." >&5
  2783. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2784. See \`config.log' for more details." >&2;}
  2785. { (exit 1); exit 1; }; }
  2786. fi
  2787. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2788. fi
  2789. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2790. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2791. OBJEXT=$ac_cv_objext
  2792. ac_objext=$OBJEXT
  2793. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2794. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2795. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2796. echo $ECHO_N "(cached) $ECHO_C" >&6
  2797. else
  2798. cat >conftest.$ac_ext <<_ACEOF
  2799. /* confdefs.h. */
  2800. _ACEOF
  2801. cat confdefs.h >>conftest.$ac_ext
  2802. cat >>conftest.$ac_ext <<_ACEOF
  2803. /* end confdefs.h. */
  2804. int
  2805. main ()
  2806. {
  2807. #ifndef __GNUC__
  2808. choke me
  2809. #endif
  2810. ;
  2811. return 0;
  2812. }
  2813. _ACEOF
  2814. rm -f conftest.$ac_objext
  2815. if { (ac_try="$ac_compile"
  2816. case "(($ac_try" in
  2817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2818. *) ac_try_echo=$ac_try;;
  2819. esac
  2820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2821. (eval "$ac_compile") 2>conftest.er1
  2822. ac_status=$?
  2823. grep -v '^ *+' conftest.er1 >conftest.err
  2824. rm -f conftest.er1
  2825. cat conftest.err >&5
  2826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2827. (exit $ac_status); } && {
  2828. test -z "$ac_cxx_werror_flag" ||
  2829. test ! -s conftest.err
  2830. } && test -s conftest.$ac_objext; then
  2831. ac_compiler_gnu=yes
  2832. else
  2833. echo "$as_me: failed program was:" >&5
  2834. sed 's/^/| /' conftest.$ac_ext >&5
  2835. ac_compiler_gnu=no
  2836. fi
  2837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2838. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2839. fi
  2840. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2841. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2842. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2843. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2844. ac_save_CXXFLAGS=$CXXFLAGS
  2845. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2846. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2847. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2848. echo $ECHO_N "(cached) $ECHO_C" >&6
  2849. else
  2850. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2851. ac_cxx_werror_flag=yes
  2852. ac_cv_prog_cxx_g=no
  2853. CXXFLAGS="-g"
  2854. cat >conftest.$ac_ext <<_ACEOF
  2855. /* confdefs.h. */
  2856. _ACEOF
  2857. cat confdefs.h >>conftest.$ac_ext
  2858. cat >>conftest.$ac_ext <<_ACEOF
  2859. /* end confdefs.h. */
  2860. int
  2861. main ()
  2862. {
  2863. ;
  2864. return 0;
  2865. }
  2866. _ACEOF
  2867. rm -f conftest.$ac_objext
  2868. if { (ac_try="$ac_compile"
  2869. case "(($ac_try" in
  2870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2871. *) ac_try_echo=$ac_try;;
  2872. esac
  2873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2874. (eval "$ac_compile") 2>conftest.er1
  2875. ac_status=$?
  2876. grep -v '^ *+' conftest.er1 >conftest.err
  2877. rm -f conftest.er1
  2878. cat conftest.err >&5
  2879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2880. (exit $ac_status); } && {
  2881. test -z "$ac_cxx_werror_flag" ||
  2882. test ! -s conftest.err
  2883. } && test -s conftest.$ac_objext; then
  2884. ac_cv_prog_cxx_g=yes
  2885. else
  2886. echo "$as_me: failed program was:" >&5
  2887. sed 's/^/| /' conftest.$ac_ext >&5
  2888. CXXFLAGS=""
  2889. cat >conftest.$ac_ext <<_ACEOF
  2890. /* confdefs.h. */
  2891. _ACEOF
  2892. cat confdefs.h >>conftest.$ac_ext
  2893. cat >>conftest.$ac_ext <<_ACEOF
  2894. /* end confdefs.h. */
  2895. int
  2896. main ()
  2897. {
  2898. ;
  2899. return 0;
  2900. }
  2901. _ACEOF
  2902. rm -f conftest.$ac_objext
  2903. if { (ac_try="$ac_compile"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2909. (eval "$ac_compile") 2>conftest.er1
  2910. ac_status=$?
  2911. grep -v '^ *+' conftest.er1 >conftest.err
  2912. rm -f conftest.er1
  2913. cat conftest.err >&5
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); } && {
  2916. test -z "$ac_cxx_werror_flag" ||
  2917. test ! -s conftest.err
  2918. } && test -s conftest.$ac_objext; then
  2919. :
  2920. else
  2921. echo "$as_me: failed program was:" >&5
  2922. sed 's/^/| /' conftest.$ac_ext >&5
  2923. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2924. CXXFLAGS="-g"
  2925. cat >conftest.$ac_ext <<_ACEOF
  2926. /* confdefs.h. */
  2927. _ACEOF
  2928. cat confdefs.h >>conftest.$ac_ext
  2929. cat >>conftest.$ac_ext <<_ACEOF
  2930. /* end confdefs.h. */
  2931. int
  2932. main ()
  2933. {
  2934. ;
  2935. return 0;
  2936. }
  2937. _ACEOF
  2938. rm -f conftest.$ac_objext
  2939. if { (ac_try="$ac_compile"
  2940. case "(($ac_try" in
  2941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2942. *) ac_try_echo=$ac_try;;
  2943. esac
  2944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2945. (eval "$ac_compile") 2>conftest.er1
  2946. ac_status=$?
  2947. grep -v '^ *+' conftest.er1 >conftest.err
  2948. rm -f conftest.er1
  2949. cat conftest.err >&5
  2950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2951. (exit $ac_status); } && {
  2952. test -z "$ac_cxx_werror_flag" ||
  2953. test ! -s conftest.err
  2954. } && test -s conftest.$ac_objext; then
  2955. ac_cv_prog_cxx_g=yes
  2956. else
  2957. echo "$as_me: failed program was:" >&5
  2958. sed 's/^/| /' conftest.$ac_ext >&5
  2959. fi
  2960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2966. fi
  2967. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2968. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2969. if test "$ac_test_CXXFLAGS" = set; then
  2970. CXXFLAGS=$ac_save_CXXFLAGS
  2971. elif test $ac_cv_prog_cxx_g = yes; then
  2972. if test "$GXX" = yes; then
  2973. CXXFLAGS="-g -O2"
  2974. else
  2975. CXXFLAGS="-g"
  2976. fi
  2977. else
  2978. if test "$GXX" = yes; then
  2979. CXXFLAGS="-O2"
  2980. else
  2981. CXXFLAGS=
  2982. fi
  2983. fi
  2984. ac_ext=c
  2985. ac_cpp='$CPP $CPPFLAGS'
  2986. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2987. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2988. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2989. DEPDIR="${am__leading_dot}deps"
  2990. ac_config_commands="$ac_config_commands depfiles"
  2991. am_make=${MAKE-make}
  2992. cat > confinc << 'END'
  2993. am__doit:
  2994. @echo done
  2995. .PHONY: am__doit
  2996. END
  2997. # If we don't find an include directive, just comment out the code.
  2998. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2999. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3000. am__include="#"
  3001. am__quote=
  3002. _am_result=none
  3003. # First try GNU make style include.
  3004. echo "include confinc" > confmf
  3005. # We grep out `Entering directory' and `Leaving directory'
  3006. # messages which can occur if `w' ends up in MAKEFLAGS.
  3007. # In particular we don't look at `^make:' because GNU make might
  3008. # be invoked under some other name (usually "gmake"), in which
  3009. # case it prints its new name instead of `make'.
  3010. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3011. am__include=include
  3012. am__quote=
  3013. _am_result=GNU
  3014. fi
  3015. # Now try BSD make style include.
  3016. if test "$am__include" = "#"; then
  3017. echo '.include "confinc"' > confmf
  3018. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3019. am__include=.include
  3020. am__quote="\""
  3021. _am_result=BSD
  3022. fi
  3023. fi
  3024. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3025. echo "${ECHO_T}$_am_result" >&6; }
  3026. rm -f confinc confmf
  3027. # Check whether --enable-dependency-tracking was given.
  3028. if test "${enable_dependency_tracking+set}" = set; then
  3029. enableval=$enable_dependency_tracking;
  3030. fi
  3031. if test "x$enable_dependency_tracking" != xno; then
  3032. am_depcomp="$ac_aux_dir/depcomp"
  3033. AMDEPBACKSLASH='\'
  3034. fi
  3035. if test "x$enable_dependency_tracking" != xno; then
  3036. AMDEP_TRUE=
  3037. AMDEP_FALSE='#'
  3038. else
  3039. AMDEP_TRUE='#'
  3040. AMDEP_FALSE=
  3041. fi
  3042. depcc="$CXX" am_compiler_list=
  3043. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3044. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3045. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3046. echo $ECHO_N "(cached) $ECHO_C" >&6
  3047. else
  3048. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3049. # We make a subdir and do the tests there. Otherwise we can end up
  3050. # making bogus files that we don't know about and never remove. For
  3051. # instance it was reported that on HP-UX the gcc test will end up
  3052. # making a dummy file named `D' -- because `-MD' means `put the output
  3053. # in D'.
  3054. mkdir conftest.dir
  3055. # Copy depcomp to subdir because otherwise we won't find it if we're
  3056. # using a relative directory.
  3057. cp "$am_depcomp" conftest.dir
  3058. cd conftest.dir
  3059. # We will build objects and dependencies in a subdirectory because
  3060. # it helps to detect inapplicable dependency modes. For instance
  3061. # both Tru64's cc and ICC support -MD to output dependencies as a
  3062. # side effect of compilation, but ICC will put the dependencies in
  3063. # the current directory while Tru64 will put them in the object
  3064. # directory.
  3065. mkdir sub
  3066. am_cv_CXX_dependencies_compiler_type=none
  3067. if test "$am_compiler_list" = ""; then
  3068. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3069. fi
  3070. for depmode in $am_compiler_list; do
  3071. # Setup a source with many dependencies, because some compilers
  3072. # like to wrap large dependency lists on column 80 (with \), and
  3073. # we should not choose a depcomp mode which is confused by this.
  3074. #
  3075. # We need to recreate these files for each test, as the compiler may
  3076. # overwrite some of them when testing with obscure command lines.
  3077. # This happens at least with the AIX C compiler.
  3078. : > sub/conftest.c
  3079. for i in 1 2 3 4 5 6; do
  3080. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3081. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3082. # Solaris 8's {/usr,}/bin/sh.
  3083. touch sub/conftst$i.h
  3084. done
  3085. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3086. case $depmode in
  3087. nosideeffect)
  3088. # after this tag, mechanisms are not by side-effect, so they'll
  3089. # only be used when explicitly requested
  3090. if test "x$enable_dependency_tracking" = xyes; then
  3091. continue
  3092. else
  3093. break
  3094. fi
  3095. ;;
  3096. none) break ;;
  3097. esac
  3098. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3099. # mode. It turns out that the SunPro C++ compiler does not properly
  3100. # handle `-M -o', and we need to detect this.
  3101. if depmode=$depmode \
  3102. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3103. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3104. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3105. >/dev/null 2>conftest.err &&
  3106. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3107. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3108. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3109. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3110. # icc doesn't choke on unknown options, it will just issue warnings
  3111. # or remarks (even with -Werror). So we grep stderr for any message
  3112. # that says an option was ignored or not supported.
  3113. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3114. # icc: Command line warning: ignoring option '-M'; no argument required
  3115. # The diagnosis changed in icc 8.0:
  3116. # icc: Command line remark: option '-MP' not supported
  3117. if (grep 'ignoring option' conftest.err ||
  3118. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3119. am_cv_CXX_dependencies_compiler_type=$depmode
  3120. break
  3121. fi
  3122. fi
  3123. done
  3124. cd ..
  3125. rm -rf conftest.dir
  3126. else
  3127. am_cv_CXX_dependencies_compiler_type=none
  3128. fi
  3129. fi
  3130. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3131. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3132. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3133. if
  3134. test "x$enable_dependency_tracking" != xno \
  3135. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3136. am__fastdepCXX_TRUE=
  3137. am__fastdepCXX_FALSE='#'
  3138. else
  3139. am__fastdepCXX_TRUE='#'
  3140. am__fastdepCXX_FALSE=
  3141. fi
  3142. ac_ext=c
  3143. ac_cpp='$CPP $CPPFLAGS'
  3144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3147. if test -n "$ac_tool_prefix"; then
  3148. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3149. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3150. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3151. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3152. if test "${ac_cv_prog_CC+set}" = set; then
  3153. echo $ECHO_N "(cached) $ECHO_C" >&6
  3154. else
  3155. if test -n "$CC"; then
  3156. ac_cv_prog_CC="$CC" # Let the user override the test.
  3157. else
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. test -z "$as_dir" && as_dir=.
  3163. for ac_exec_ext in '' $ac_executable_extensions; do
  3164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3165. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3166. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3167. break 2
  3168. fi
  3169. done
  3170. done
  3171. IFS=$as_save_IFS
  3172. fi
  3173. fi
  3174. CC=$ac_cv_prog_CC
  3175. if test -n "$CC"; then
  3176. { echo "$as_me:$LINENO: result: $CC" >&5
  3177. echo "${ECHO_T}$CC" >&6; }
  3178. else
  3179. { echo "$as_me:$LINENO: result: no" >&5
  3180. echo "${ECHO_T}no" >&6; }
  3181. fi
  3182. fi
  3183. if test -z "$ac_cv_prog_CC"; then
  3184. ac_ct_CC=$CC
  3185. # Extract the first word of "gcc", so it can be a program name with args.
  3186. set dummy gcc; ac_word=$2
  3187. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3188. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3189. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3190. echo $ECHO_N "(cached) $ECHO_C" >&6
  3191. else
  3192. if test -n "$ac_ct_CC"; then
  3193. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3194. else
  3195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3196. for as_dir in $PATH
  3197. do
  3198. IFS=$as_save_IFS
  3199. test -z "$as_dir" && as_dir=.
  3200. for ac_exec_ext in '' $ac_executable_extensions; do
  3201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3202. ac_cv_prog_ac_ct_CC="gcc"
  3203. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3204. break 2
  3205. fi
  3206. done
  3207. done
  3208. IFS=$as_save_IFS
  3209. fi
  3210. fi
  3211. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3212. if test -n "$ac_ct_CC"; then
  3213. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3214. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3215. else
  3216. { echo "$as_me:$LINENO: result: no" >&5
  3217. echo "${ECHO_T}no" >&6; }
  3218. fi
  3219. if test "x$ac_ct_CC" = x; then
  3220. CC=""
  3221. else
  3222. case $cross_compiling:$ac_tool_warned in
  3223. yes:)
  3224. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3225. whose name does not start with the host triplet. If you think this
  3226. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3227. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3228. whose name does not start with the host triplet. If you think this
  3229. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3230. ac_tool_warned=yes ;;
  3231. esac
  3232. CC=$ac_ct_CC
  3233. fi
  3234. else
  3235. CC="$ac_cv_prog_CC"
  3236. fi
  3237. if test -z "$CC"; then
  3238. if test -n "$ac_tool_prefix"; then
  3239. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3240. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3241. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3242. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3243. if test "${ac_cv_prog_CC+set}" = set; then
  3244. echo $ECHO_N "(cached) $ECHO_C" >&6
  3245. else
  3246. if test -n "$CC"; then
  3247. ac_cv_prog_CC="$CC" # Let the user override the test.
  3248. else
  3249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3250. for as_dir in $PATH
  3251. do
  3252. IFS=$as_save_IFS
  3253. test -z "$as_dir" && as_dir=.
  3254. for ac_exec_ext in '' $ac_executable_extensions; do
  3255. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3256. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3257. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3258. break 2
  3259. fi
  3260. done
  3261. done
  3262. IFS=$as_save_IFS
  3263. fi
  3264. fi
  3265. CC=$ac_cv_prog_CC
  3266. if test -n "$CC"; then
  3267. { echo "$as_me:$LINENO: result: $CC" >&5
  3268. echo "${ECHO_T}$CC" >&6; }
  3269. else
  3270. { echo "$as_me:$LINENO: result: no" >&5
  3271. echo "${ECHO_T}no" >&6; }
  3272. fi
  3273. fi
  3274. fi
  3275. if test -z "$CC"; then
  3276. # Extract the first word of "cc", so it can be a program name with args.
  3277. set dummy cc; ac_word=$2
  3278. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3279. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3280. if test "${ac_cv_prog_CC+set}" = set; then
  3281. echo $ECHO_N "(cached) $ECHO_C" >&6
  3282. else
  3283. if test -n "$CC"; then
  3284. ac_cv_prog_CC="$CC" # Let the user override the test.
  3285. else
  3286. ac_prog_rejected=no
  3287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3288. for as_dir in $PATH
  3289. do
  3290. IFS=$as_save_IFS
  3291. test -z "$as_dir" && as_dir=.
  3292. for ac_exec_ext in '' $ac_executable_extensions; do
  3293. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3294. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3295. ac_prog_rejected=yes
  3296. continue
  3297. fi
  3298. ac_cv_prog_CC="cc"
  3299. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3300. break 2
  3301. fi
  3302. done
  3303. done
  3304. IFS=$as_save_IFS
  3305. if test $ac_prog_rejected = yes; then
  3306. # We found a bogon in the path, so make sure we never use it.
  3307. set dummy $ac_cv_prog_CC
  3308. shift
  3309. if test $# != 0; then
  3310. # We chose a different compiler from the bogus one.
  3311. # However, it has the same basename, so the bogon will be chosen
  3312. # first if we set CC to just the basename; use the full file name.
  3313. shift
  3314. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3315. fi
  3316. fi
  3317. fi
  3318. fi
  3319. CC=$ac_cv_prog_CC
  3320. if test -n "$CC"; then
  3321. { echo "$as_me:$LINENO: result: $CC" >&5
  3322. echo "${ECHO_T}$CC" >&6; }
  3323. else
  3324. { echo "$as_me:$LINENO: result: no" >&5
  3325. echo "${ECHO_T}no" >&6; }
  3326. fi
  3327. fi
  3328. if test -z "$CC"; then
  3329. if test -n "$ac_tool_prefix"; then
  3330. for ac_prog in cl.exe
  3331. do
  3332. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3333. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3334. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3335. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3336. if test "${ac_cv_prog_CC+set}" = set; then
  3337. echo $ECHO_N "(cached) $ECHO_C" >&6
  3338. else
  3339. if test -n "$CC"; then
  3340. ac_cv_prog_CC="$CC" # Let the user override the test.
  3341. else
  3342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3343. for as_dir in $PATH
  3344. do
  3345. IFS=$as_save_IFS
  3346. test -z "$as_dir" && as_dir=.
  3347. for ac_exec_ext in '' $ac_executable_extensions; do
  3348. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3349. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3350. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3351. break 2
  3352. fi
  3353. done
  3354. done
  3355. IFS=$as_save_IFS
  3356. fi
  3357. fi
  3358. CC=$ac_cv_prog_CC
  3359. if test -n "$CC"; then
  3360. { echo "$as_me:$LINENO: result: $CC" >&5
  3361. echo "${ECHO_T}$CC" >&6; }
  3362. else
  3363. { echo "$as_me:$LINENO: result: no" >&5
  3364. echo "${ECHO_T}no" >&6; }
  3365. fi
  3366. test -n "$CC" && break
  3367. done
  3368. fi
  3369. if test -z "$CC"; then
  3370. ac_ct_CC=$CC
  3371. for ac_prog in cl.exe
  3372. do
  3373. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3374. set dummy $ac_prog; ac_word=$2
  3375. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3376. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3377. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3378. echo $ECHO_N "(cached) $ECHO_C" >&6
  3379. else
  3380. if test -n "$ac_ct_CC"; then
  3381. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3382. else
  3383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3384. for as_dir in $PATH
  3385. do
  3386. IFS=$as_save_IFS
  3387. test -z "$as_dir" && as_dir=.
  3388. for ac_exec_ext in '' $ac_executable_extensions; do
  3389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3390. ac_cv_prog_ac_ct_CC="$ac_prog"
  3391. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3392. break 2
  3393. fi
  3394. done
  3395. done
  3396. IFS=$as_save_IFS
  3397. fi
  3398. fi
  3399. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3400. if test -n "$ac_ct_CC"; then
  3401. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3402. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3403. else
  3404. { echo "$as_me:$LINENO: result: no" >&5
  3405. echo "${ECHO_T}no" >&6; }
  3406. fi
  3407. test -n "$ac_ct_CC" && break
  3408. done
  3409. if test "x$ac_ct_CC" = x; then
  3410. CC=""
  3411. else
  3412. case $cross_compiling:$ac_tool_warned in
  3413. yes:)
  3414. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3415. whose name does not start with the host triplet. If you think this
  3416. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3417. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3418. whose name does not start with the host triplet. If you think this
  3419. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3420. ac_tool_warned=yes ;;
  3421. esac
  3422. CC=$ac_ct_CC
  3423. fi
  3424. fi
  3425. fi
  3426. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3427. See \`config.log' for more details." >&5
  3428. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3429. See \`config.log' for more details." >&2;}
  3430. { (exit 1); exit 1; }; }
  3431. # Provide some information about the compiler.
  3432. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3433. ac_compiler=`set X $ac_compile; echo $2`
  3434. { (ac_try="$ac_compiler --version >&5"
  3435. case "(($ac_try" in
  3436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3437. *) ac_try_echo=$ac_try;;
  3438. esac
  3439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3440. (eval "$ac_compiler --version >&5") 2>&5
  3441. ac_status=$?
  3442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3443. (exit $ac_status); }
  3444. { (ac_try="$ac_compiler -v >&5"
  3445. case "(($ac_try" in
  3446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3447. *) ac_try_echo=$ac_try;;
  3448. esac
  3449. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3450. (eval "$ac_compiler -v >&5") 2>&5
  3451. ac_status=$?
  3452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3453. (exit $ac_status); }
  3454. { (ac_try="$ac_compiler -V >&5"
  3455. case "(($ac_try" in
  3456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3457. *) ac_try_echo=$ac_try;;
  3458. esac
  3459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3460. (eval "$ac_compiler -V >&5") 2>&5
  3461. ac_status=$?
  3462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3463. (exit $ac_status); }
  3464. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3465. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3466. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3467. echo $ECHO_N "(cached) $ECHO_C" >&6
  3468. else
  3469. cat >conftest.$ac_ext <<_ACEOF
  3470. /* confdefs.h. */
  3471. _ACEOF
  3472. cat confdefs.h >>conftest.$ac_ext
  3473. cat >>conftest.$ac_ext <<_ACEOF
  3474. /* end confdefs.h. */
  3475. int
  3476. main ()
  3477. {
  3478. #ifndef __GNUC__
  3479. choke me
  3480. #endif
  3481. ;
  3482. return 0;
  3483. }
  3484. _ACEOF
  3485. rm -f conftest.$ac_objext
  3486. if { (ac_try="$ac_compile"
  3487. case "(($ac_try" in
  3488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3489. *) ac_try_echo=$ac_try;;
  3490. esac
  3491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3492. (eval "$ac_compile") 2>conftest.er1
  3493. ac_status=$?
  3494. grep -v '^ *+' conftest.er1 >conftest.err
  3495. rm -f conftest.er1
  3496. cat conftest.err >&5
  3497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3498. (exit $ac_status); } && {
  3499. test -z "$ac_c_werror_flag" ||
  3500. test ! -s conftest.err
  3501. } && test -s conftest.$ac_objext; then
  3502. ac_compiler_gnu=yes
  3503. else
  3504. echo "$as_me: failed program was:" >&5
  3505. sed 's/^/| /' conftest.$ac_ext >&5
  3506. ac_compiler_gnu=no
  3507. fi
  3508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3509. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3510. fi
  3511. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3512. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3513. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3514. ac_test_CFLAGS=${CFLAGS+set}
  3515. ac_save_CFLAGS=$CFLAGS
  3516. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3517. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3518. if test "${ac_cv_prog_cc_g+set}" = set; then
  3519. echo $ECHO_N "(cached) $ECHO_C" >&6
  3520. else
  3521. ac_save_c_werror_flag=$ac_c_werror_flag
  3522. ac_c_werror_flag=yes
  3523. ac_cv_prog_cc_g=no
  3524. CFLAGS="-g"
  3525. cat >conftest.$ac_ext <<_ACEOF
  3526. /* confdefs.h. */
  3527. _ACEOF
  3528. cat confdefs.h >>conftest.$ac_ext
  3529. cat >>conftest.$ac_ext <<_ACEOF
  3530. /* end confdefs.h. */
  3531. int
  3532. main ()
  3533. {
  3534. ;
  3535. return 0;
  3536. }
  3537. _ACEOF
  3538. rm -f conftest.$ac_objext
  3539. if { (ac_try="$ac_compile"
  3540. case "(($ac_try" in
  3541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3542. *) ac_try_echo=$ac_try;;
  3543. esac
  3544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3545. (eval "$ac_compile") 2>conftest.er1
  3546. ac_status=$?
  3547. grep -v '^ *+' conftest.er1 >conftest.err
  3548. rm -f conftest.er1
  3549. cat conftest.err >&5
  3550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3551. (exit $ac_status); } && {
  3552. test -z "$ac_c_werror_flag" ||
  3553. test ! -s conftest.err
  3554. } && test -s conftest.$ac_objext; then
  3555. ac_cv_prog_cc_g=yes
  3556. else
  3557. echo "$as_me: failed program was:" >&5
  3558. sed 's/^/| /' conftest.$ac_ext >&5
  3559. CFLAGS=""
  3560. cat >conftest.$ac_ext <<_ACEOF
  3561. /* confdefs.h. */
  3562. _ACEOF
  3563. cat confdefs.h >>conftest.$ac_ext
  3564. cat >>conftest.$ac_ext <<_ACEOF
  3565. /* end confdefs.h. */
  3566. int
  3567. main ()
  3568. {
  3569. ;
  3570. return 0;
  3571. }
  3572. _ACEOF
  3573. rm -f conftest.$ac_objext
  3574. if { (ac_try="$ac_compile"
  3575. case "(($ac_try" in
  3576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3577. *) ac_try_echo=$ac_try;;
  3578. esac
  3579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3580. (eval "$ac_compile") 2>conftest.er1
  3581. ac_status=$?
  3582. grep -v '^ *+' conftest.er1 >conftest.err
  3583. rm -f conftest.er1
  3584. cat conftest.err >&5
  3585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3586. (exit $ac_status); } && {
  3587. test -z "$ac_c_werror_flag" ||
  3588. test ! -s conftest.err
  3589. } && test -s conftest.$ac_objext; then
  3590. :
  3591. else
  3592. echo "$as_me: failed program was:" >&5
  3593. sed 's/^/| /' conftest.$ac_ext >&5
  3594. ac_c_werror_flag=$ac_save_c_werror_flag
  3595. CFLAGS="-g"
  3596. cat >conftest.$ac_ext <<_ACEOF
  3597. /* confdefs.h. */
  3598. _ACEOF
  3599. cat confdefs.h >>conftest.$ac_ext
  3600. cat >>conftest.$ac_ext <<_ACEOF
  3601. /* end confdefs.h. */
  3602. int
  3603. main ()
  3604. {
  3605. ;
  3606. return 0;
  3607. }
  3608. _ACEOF
  3609. rm -f conftest.$ac_objext
  3610. if { (ac_try="$ac_compile"
  3611. case "(($ac_try" in
  3612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3613. *) ac_try_echo=$ac_try;;
  3614. esac
  3615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3616. (eval "$ac_compile") 2>conftest.er1
  3617. ac_status=$?
  3618. grep -v '^ *+' conftest.er1 >conftest.err
  3619. rm -f conftest.er1
  3620. cat conftest.err >&5
  3621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); } && {
  3623. test -z "$ac_c_werror_flag" ||
  3624. test ! -s conftest.err
  3625. } && test -s conftest.$ac_objext; then
  3626. ac_cv_prog_cc_g=yes
  3627. else
  3628. echo "$as_me: failed program was:" >&5
  3629. sed 's/^/| /' conftest.$ac_ext >&5
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. ac_c_werror_flag=$ac_save_c_werror_flag
  3637. fi
  3638. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3639. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3640. if test "$ac_test_CFLAGS" = set; then
  3641. CFLAGS=$ac_save_CFLAGS
  3642. elif test $ac_cv_prog_cc_g = yes; then
  3643. if test "$GCC" = yes; then
  3644. CFLAGS="-g -O2"
  3645. else
  3646. CFLAGS="-g"
  3647. fi
  3648. else
  3649. if test "$GCC" = yes; then
  3650. CFLAGS="-O2"
  3651. else
  3652. CFLAGS=
  3653. fi
  3654. fi
  3655. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3656. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3657. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3658. echo $ECHO_N "(cached) $ECHO_C" >&6
  3659. else
  3660. ac_cv_prog_cc_c89=no
  3661. ac_save_CC=$CC
  3662. cat >conftest.$ac_ext <<_ACEOF
  3663. /* confdefs.h. */
  3664. _ACEOF
  3665. cat confdefs.h >>conftest.$ac_ext
  3666. cat >>conftest.$ac_ext <<_ACEOF
  3667. /* end confdefs.h. */
  3668. #include <stdarg.h>
  3669. #include <stdio.h>
  3670. #include <sys/types.h>
  3671. #include <sys/stat.h>
  3672. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3673. struct buf { int x; };
  3674. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3675. static char *e (p, i)
  3676. char **p;
  3677. int i;
  3678. {
  3679. return p[i];
  3680. }
  3681. static char *f (char * (*g) (char **, int), char **p, ...)
  3682. {
  3683. char *s;
  3684. va_list v;
  3685. va_start (v,p);
  3686. s = g (p, va_arg (v,int));
  3687. va_end (v);
  3688. return s;
  3689. }
  3690. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3691. function prototypes and stuff, but not '\xHH' hex character constants.
  3692. These don't provoke an error unfortunately, instead are silently treated
  3693. as 'x'. The following induces an error, until -std is added to get
  3694. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3695. array size at least. It's necessary to write '\x00'==0 to get something
  3696. that's true only with -std. */
  3697. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3698. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3699. inside strings and character constants. */
  3700. #define FOO(x) 'x'
  3701. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3702. int test (int i, double x);
  3703. struct s1 {int (*f) (int a);};
  3704. struct s2 {int (*f) (double a);};
  3705. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3706. int argc;
  3707. char **argv;
  3708. int
  3709. main ()
  3710. {
  3711. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3712. ;
  3713. return 0;
  3714. }
  3715. _ACEOF
  3716. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3717. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3718. do
  3719. CC="$ac_save_CC $ac_arg"
  3720. rm -f conftest.$ac_objext
  3721. if { (ac_try="$ac_compile"
  3722. case "(($ac_try" in
  3723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3724. *) ac_try_echo=$ac_try;;
  3725. esac
  3726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3727. (eval "$ac_compile") 2>conftest.er1
  3728. ac_status=$?
  3729. grep -v '^ *+' conftest.er1 >conftest.err
  3730. rm -f conftest.er1
  3731. cat conftest.err >&5
  3732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3733. (exit $ac_status); } && {
  3734. test -z "$ac_c_werror_flag" ||
  3735. test ! -s conftest.err
  3736. } && test -s conftest.$ac_objext; then
  3737. ac_cv_prog_cc_c89=$ac_arg
  3738. else
  3739. echo "$as_me: failed program was:" >&5
  3740. sed 's/^/| /' conftest.$ac_ext >&5
  3741. fi
  3742. rm -f core conftest.err conftest.$ac_objext
  3743. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3744. done
  3745. rm -f conftest.$ac_ext
  3746. CC=$ac_save_CC
  3747. fi
  3748. # AC_CACHE_VAL
  3749. case "x$ac_cv_prog_cc_c89" in
  3750. x)
  3751. { echo "$as_me:$LINENO: result: none needed" >&5
  3752. echo "${ECHO_T}none needed" >&6; } ;;
  3753. xno)
  3754. { echo "$as_me:$LINENO: result: unsupported" >&5
  3755. echo "${ECHO_T}unsupported" >&6; } ;;
  3756. *)
  3757. CC="$CC $ac_cv_prog_cc_c89"
  3758. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3759. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3760. esac
  3761. ac_ext=c
  3762. ac_cpp='$CPP $CPPFLAGS'
  3763. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3764. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3765. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3766. depcc="$CC" am_compiler_list=
  3767. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3768. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3769. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3770. echo $ECHO_N "(cached) $ECHO_C" >&6
  3771. else
  3772. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3773. # We make a subdir and do the tests there. Otherwise we can end up
  3774. # making bogus files that we don't know about and never remove. For
  3775. # instance it was reported that on HP-UX the gcc test will end up
  3776. # making a dummy file named `D' -- because `-MD' means `put the output
  3777. # in D'.
  3778. mkdir conftest.dir
  3779. # Copy depcomp to subdir because otherwise we won't find it if we're
  3780. # using a relative directory.
  3781. cp "$am_depcomp" conftest.dir
  3782. cd conftest.dir
  3783. # We will build objects and dependencies in a subdirectory because
  3784. # it helps to detect inapplicable dependency modes. For instance
  3785. # both Tru64's cc and ICC support -MD to output dependencies as a
  3786. # side effect of compilation, but ICC will put the dependencies in
  3787. # the current directory while Tru64 will put them in the object
  3788. # directory.
  3789. mkdir sub
  3790. am_cv_CC_dependencies_compiler_type=none
  3791. if test "$am_compiler_list" = ""; then
  3792. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3793. fi
  3794. for depmode in $am_compiler_list; do
  3795. # Setup a source with many dependencies, because some compilers
  3796. # like to wrap large dependency lists on column 80 (with \), and
  3797. # we should not choose a depcomp mode which is confused by this.
  3798. #
  3799. # We need to recreate these files for each test, as the compiler may
  3800. # overwrite some of them when testing with obscure command lines.
  3801. # This happens at least with the AIX C compiler.
  3802. : > sub/conftest.c
  3803. for i in 1 2 3 4 5 6; do
  3804. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3805. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3806. # Solaris 8's {/usr,}/bin/sh.
  3807. touch sub/conftst$i.h
  3808. done
  3809. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3810. case $depmode in
  3811. nosideeffect)
  3812. # after this tag, mechanisms are not by side-effect, so they'll
  3813. # only be used when explicitly requested
  3814. if test "x$enable_dependency_tracking" = xyes; then
  3815. continue
  3816. else
  3817. break
  3818. fi
  3819. ;;
  3820. none) break ;;
  3821. esac
  3822. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3823. # mode. It turns out that the SunPro C++ compiler does not properly
  3824. # handle `-M -o', and we need to detect this.
  3825. if depmode=$depmode \
  3826. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3827. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3828. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3829. >/dev/null 2>conftest.err &&
  3830. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3831. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3832. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3833. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3834. # icc doesn't choke on unknown options, it will just issue warnings
  3835. # or remarks (even with -Werror). So we grep stderr for any message
  3836. # that says an option was ignored or not supported.
  3837. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3838. # icc: Command line warning: ignoring option '-M'; no argument required
  3839. # The diagnosis changed in icc 8.0:
  3840. # icc: Command line remark: option '-MP' not supported
  3841. if (grep 'ignoring option' conftest.err ||
  3842. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3843. am_cv_CC_dependencies_compiler_type=$depmode
  3844. break
  3845. fi
  3846. fi
  3847. done
  3848. cd ..
  3849. rm -rf conftest.dir
  3850. else
  3851. am_cv_CC_dependencies_compiler_type=none
  3852. fi
  3853. fi
  3854. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3855. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3856. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3857. if
  3858. test "x$enable_dependency_tracking" != xno \
  3859. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3860. am__fastdepCC_TRUE=
  3861. am__fastdepCC_FALSE='#'
  3862. else
  3863. am__fastdepCC_TRUE='#'
  3864. am__fastdepCC_FALSE=
  3865. fi
  3866. # Find a good install program. We prefer a C program (faster),
  3867. # so one script is as good as another. But avoid the broken or
  3868. # incompatible versions:
  3869. # SysV /etc/install, /usr/sbin/install
  3870. # SunOS /usr/etc/install
  3871. # IRIX /sbin/install
  3872. # AIX /bin/install
  3873. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3874. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3875. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3876. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3877. # OS/2's system install, which has a completely different semantic
  3878. # ./install, which can be erroneously created by make from ./install.sh.
  3879. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3880. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3881. if test -z "$INSTALL"; then
  3882. if test "${ac_cv_path_install+set}" = set; then
  3883. echo $ECHO_N "(cached) $ECHO_C" >&6
  3884. else
  3885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3886. for as_dir in $PATH
  3887. do
  3888. IFS=$as_save_IFS
  3889. test -z "$as_dir" && as_dir=.
  3890. # Account for people who put trailing slashes in PATH elements.
  3891. case $as_dir/ in
  3892. ./ | .// | /cC/* | \
  3893. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3894. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3895. /usr/ucb/* ) ;;
  3896. *)
  3897. # OSF1 and SCO ODT 3.0 have their own names for install.
  3898. # Don't use installbsd from OSF since it installs stuff as root
  3899. # by default.
  3900. for ac_prog in ginstall scoinst install; do
  3901. for ac_exec_ext in '' $ac_executable_extensions; do
  3902. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3903. if test $ac_prog = install &&
  3904. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3905. # AIX install. It has an incompatible calling convention.
  3906. :
  3907. elif test $ac_prog = install &&
  3908. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3909. # program-specific install script used by HP pwplus--don't use.
  3910. :
  3911. else
  3912. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3913. break 3
  3914. fi
  3915. fi
  3916. done
  3917. done
  3918. ;;
  3919. esac
  3920. done
  3921. IFS=$as_save_IFS
  3922. fi
  3923. if test "${ac_cv_path_install+set}" = set; then
  3924. INSTALL=$ac_cv_path_install
  3925. else
  3926. # As a last resort, use the slow shell script. Don't cache a
  3927. # value for INSTALL within a source directory, because that will
  3928. # break other packages using the cache if that directory is
  3929. # removed, or if the value is a relative name.
  3930. INSTALL=$ac_install_sh
  3931. fi
  3932. fi
  3933. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3934. echo "${ECHO_T}$INSTALL" >&6; }
  3935. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3936. # It thinks the first close brace ends the variable substitution.
  3937. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3938. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3939. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3940. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3941. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3942. if test -z "$MKDIR_P"; then
  3943. if test "${ac_cv_path_mkdir+set}" = set; then
  3944. echo $ECHO_N "(cached) $ECHO_C" >&6
  3945. else
  3946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3947. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3948. do
  3949. IFS=$as_save_IFS
  3950. test -z "$as_dir" && as_dir=.
  3951. for ac_prog in mkdir gmkdir; do
  3952. for ac_exec_ext in '' $ac_executable_extensions; do
  3953. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3954. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3955. 'mkdir (GNU coreutils) '* | \
  3956. 'mkdir (coreutils) '* | \
  3957. 'mkdir (fileutils) '4.1*)
  3958. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3959. break 3;;
  3960. esac
  3961. done
  3962. done
  3963. done
  3964. IFS=$as_save_IFS
  3965. fi
  3966. if test "${ac_cv_path_mkdir+set}" = set; then
  3967. MKDIR_P="$ac_cv_path_mkdir -p"
  3968. else
  3969. # As a last resort, use the slow shell script. Don't cache a
  3970. # value for MKDIR_P within a source directory, because that will
  3971. # break other packages using the cache if that directory is
  3972. # removed, or if the value is a relative name.
  3973. test -d ./--version && rmdir ./--version
  3974. MKDIR_P="$ac_install_sh -d"
  3975. fi
  3976. fi
  3977. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3978. echo "${ECHO_T}$MKDIR_P" >&6; }
  3979. if test -n "$ac_tool_prefix"; then
  3980. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3981. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3982. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3983. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3984. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3985. echo $ECHO_N "(cached) $ECHO_C" >&6
  3986. else
  3987. if test -n "$RANLIB"; then
  3988. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3989. else
  3990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3991. for as_dir in $PATH
  3992. do
  3993. IFS=$as_save_IFS
  3994. test -z "$as_dir" && as_dir=.
  3995. for ac_exec_ext in '' $ac_executable_extensions; do
  3996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3997. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3998. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3999. break 2
  4000. fi
  4001. done
  4002. done
  4003. IFS=$as_save_IFS
  4004. fi
  4005. fi
  4006. RANLIB=$ac_cv_prog_RANLIB
  4007. if test -n "$RANLIB"; then
  4008. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4009. echo "${ECHO_T}$RANLIB" >&6; }
  4010. else
  4011. { echo "$as_me:$LINENO: result: no" >&5
  4012. echo "${ECHO_T}no" >&6; }
  4013. fi
  4014. fi
  4015. if test -z "$ac_cv_prog_RANLIB"; then
  4016. ac_ct_RANLIB=$RANLIB
  4017. # Extract the first word of "ranlib", so it can be a program name with args.
  4018. set dummy ranlib; ac_word=$2
  4019. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4020. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4021. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4022. echo $ECHO_N "(cached) $ECHO_C" >&6
  4023. else
  4024. if test -n "$ac_ct_RANLIB"; then
  4025. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4026. else
  4027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4028. for as_dir in $PATH
  4029. do
  4030. IFS=$as_save_IFS
  4031. test -z "$as_dir" && as_dir=.
  4032. for ac_exec_ext in '' $ac_executable_extensions; do
  4033. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4034. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4035. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4036. break 2
  4037. fi
  4038. done
  4039. done
  4040. IFS=$as_save_IFS
  4041. fi
  4042. fi
  4043. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4044. if test -n "$ac_ct_RANLIB"; then
  4045. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4046. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4047. else
  4048. { echo "$as_me:$LINENO: result: no" >&5
  4049. echo "${ECHO_T}no" >&6; }
  4050. fi
  4051. if test "x$ac_ct_RANLIB" = x; then
  4052. RANLIB=":"
  4053. else
  4054. case $cross_compiling:$ac_tool_warned in
  4055. yes:)
  4056. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4057. whose name does not start with the host triplet. If you think this
  4058. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4059. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4060. whose name does not start with the host triplet. If you think this
  4061. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4062. ac_tool_warned=yes ;;
  4063. esac
  4064. RANLIB=$ac_ct_RANLIB
  4065. fi
  4066. else
  4067. RANLIB="$ac_cv_prog_RANLIB"
  4068. fi
  4069. for ac_prog in 'bison -y' byacc
  4070. do
  4071. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4072. set dummy $ac_prog; ac_word=$2
  4073. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4074. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4075. if test "${ac_cv_prog_YACC+set}" = set; then
  4076. echo $ECHO_N "(cached) $ECHO_C" >&6
  4077. else
  4078. if test -n "$YACC"; then
  4079. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4080. else
  4081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4082. for as_dir in $PATH
  4083. do
  4084. IFS=$as_save_IFS
  4085. test -z "$as_dir" && as_dir=.
  4086. for ac_exec_ext in '' $ac_executable_extensions; do
  4087. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4088. ac_cv_prog_YACC="$ac_prog"
  4089. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4090. break 2
  4091. fi
  4092. done
  4093. done
  4094. IFS=$as_save_IFS
  4095. fi
  4096. fi
  4097. YACC=$ac_cv_prog_YACC
  4098. if test -n "$YACC"; then
  4099. { echo "$as_me:$LINENO: result: $YACC" >&5
  4100. echo "${ECHO_T}$YACC" >&6; }
  4101. else
  4102. { echo "$as_me:$LINENO: result: no" >&5
  4103. echo "${ECHO_T}no" >&6; }
  4104. fi
  4105. test -n "$YACC" && break
  4106. done
  4107. test -n "$YACC" || YACC="yacc"
  4108. # Setting language choice
  4109. ac_ext=cpp
  4110. ac_cpp='$CXXCPP $CPPFLAGS'
  4111. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4112. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4113. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4114. # Check for GNU library
  4115. cat >>confdefs.h <<\_ACEOF
  4116. #define _GNU_SOURCE 1
  4117. _ACEOF
  4118. # Enable system extensions
  4119. ac_ext=cpp
  4120. ac_cpp='$CXXCPP $CPPFLAGS'
  4121. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4122. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4123. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4124. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4125. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4126. if test -z "$CXXCPP"; then
  4127. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4128. echo $ECHO_N "(cached) $ECHO_C" >&6
  4129. else
  4130. # Double quotes because CXXCPP needs to be expanded
  4131. for CXXCPP in "$CXX -E" "/lib/cpp"
  4132. do
  4133. ac_preproc_ok=false
  4134. for ac_cxx_preproc_warn_flag in '' yes
  4135. do
  4136. # Use a header file that comes with gcc, so configuring glibc
  4137. # with a fresh cross-compiler works.
  4138. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4139. # <limits.h> exists even on freestanding compilers.
  4140. # On the NeXT, cc -E runs the code through the compiler's parser,
  4141. # not just through cpp. "Syntax error" is here to catch this case.
  4142. cat >conftest.$ac_ext <<_ACEOF
  4143. /* confdefs.h. */
  4144. _ACEOF
  4145. cat confdefs.h >>conftest.$ac_ext
  4146. cat >>conftest.$ac_ext <<_ACEOF
  4147. /* end confdefs.h. */
  4148. #ifdef __STDC__
  4149. # include <limits.h>
  4150. #else
  4151. # include <assert.h>
  4152. #endif
  4153. Syntax error
  4154. _ACEOF
  4155. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4156. case "(($ac_try" in
  4157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4158. *) ac_try_echo=$ac_try;;
  4159. esac
  4160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4161. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4162. ac_status=$?
  4163. grep -v '^ *+' conftest.er1 >conftest.err
  4164. rm -f conftest.er1
  4165. cat conftest.err >&5
  4166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4167. (exit $ac_status); } >/dev/null && {
  4168. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4169. test ! -s conftest.err
  4170. }; then
  4171. :
  4172. else
  4173. echo "$as_me: failed program was:" >&5
  4174. sed 's/^/| /' conftest.$ac_ext >&5
  4175. # Broken: fails on valid input.
  4176. continue
  4177. fi
  4178. rm -f conftest.err conftest.$ac_ext
  4179. # OK, works on sane cases. Now check whether nonexistent headers
  4180. # can be detected and how.
  4181. cat >conftest.$ac_ext <<_ACEOF
  4182. /* confdefs.h. */
  4183. _ACEOF
  4184. cat confdefs.h >>conftest.$ac_ext
  4185. cat >>conftest.$ac_ext <<_ACEOF
  4186. /* end confdefs.h. */
  4187. #include <ac_nonexistent.h>
  4188. _ACEOF
  4189. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4190. case "(($ac_try" in
  4191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4192. *) ac_try_echo=$ac_try;;
  4193. esac
  4194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4195. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4196. ac_status=$?
  4197. grep -v '^ *+' conftest.er1 >conftest.err
  4198. rm -f conftest.er1
  4199. cat conftest.err >&5
  4200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4201. (exit $ac_status); } >/dev/null && {
  4202. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4203. test ! -s conftest.err
  4204. }; then
  4205. # Broken: success on invalid input.
  4206. continue
  4207. else
  4208. echo "$as_me: failed program was:" >&5
  4209. sed 's/^/| /' conftest.$ac_ext >&5
  4210. # Passes both tests.
  4211. ac_preproc_ok=:
  4212. break
  4213. fi
  4214. rm -f conftest.err conftest.$ac_ext
  4215. done
  4216. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4217. rm -f conftest.err conftest.$ac_ext
  4218. if $ac_preproc_ok; then
  4219. break
  4220. fi
  4221. done
  4222. ac_cv_prog_CXXCPP=$CXXCPP
  4223. fi
  4224. CXXCPP=$ac_cv_prog_CXXCPP
  4225. else
  4226. ac_cv_prog_CXXCPP=$CXXCPP
  4227. fi
  4228. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4229. echo "${ECHO_T}$CXXCPP" >&6; }
  4230. ac_preproc_ok=false
  4231. for ac_cxx_preproc_warn_flag in '' yes
  4232. do
  4233. # Use a header file that comes with gcc, so configuring glibc
  4234. # with a fresh cross-compiler works.
  4235. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4236. # <limits.h> exists even on freestanding compilers.
  4237. # On the NeXT, cc -E runs the code through the compiler's parser,
  4238. # not just through cpp. "Syntax error" is here to catch this case.
  4239. cat >conftest.$ac_ext <<_ACEOF
  4240. /* confdefs.h. */
  4241. _ACEOF
  4242. cat confdefs.h >>conftest.$ac_ext
  4243. cat >>conftest.$ac_ext <<_ACEOF
  4244. /* end confdefs.h. */
  4245. #ifdef __STDC__
  4246. # include <limits.h>
  4247. #else
  4248. # include <assert.h>
  4249. #endif
  4250. Syntax error
  4251. _ACEOF
  4252. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4253. case "(($ac_try" in
  4254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4255. *) ac_try_echo=$ac_try;;
  4256. esac
  4257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4258. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4259. ac_status=$?
  4260. grep -v '^ *+' conftest.er1 >conftest.err
  4261. rm -f conftest.er1
  4262. cat conftest.err >&5
  4263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4264. (exit $ac_status); } >/dev/null && {
  4265. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4266. test ! -s conftest.err
  4267. }; then
  4268. :
  4269. else
  4270. echo "$as_me: failed program was:" >&5
  4271. sed 's/^/| /' conftest.$ac_ext >&5
  4272. # Broken: fails on valid input.
  4273. continue
  4274. fi
  4275. rm -f conftest.err conftest.$ac_ext
  4276. # OK, works on sane cases. Now check whether nonexistent headers
  4277. # can be detected and how.
  4278. cat >conftest.$ac_ext <<_ACEOF
  4279. /* confdefs.h. */
  4280. _ACEOF
  4281. cat confdefs.h >>conftest.$ac_ext
  4282. cat >>conftest.$ac_ext <<_ACEOF
  4283. /* end confdefs.h. */
  4284. #include <ac_nonexistent.h>
  4285. _ACEOF
  4286. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4287. case "(($ac_try" in
  4288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4289. *) ac_try_echo=$ac_try;;
  4290. esac
  4291. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4292. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4293. ac_status=$?
  4294. grep -v '^ *+' conftest.er1 >conftest.err
  4295. rm -f conftest.er1
  4296. cat conftest.err >&5
  4297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4298. (exit $ac_status); } >/dev/null && {
  4299. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4300. test ! -s conftest.err
  4301. }; then
  4302. # Broken: success on invalid input.
  4303. continue
  4304. else
  4305. echo "$as_me: failed program was:" >&5
  4306. sed 's/^/| /' conftest.$ac_ext >&5
  4307. # Passes both tests.
  4308. ac_preproc_ok=:
  4309. break
  4310. fi
  4311. rm -f conftest.err conftest.$ac_ext
  4312. done
  4313. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4314. rm -f conftest.err conftest.$ac_ext
  4315. if $ac_preproc_ok; then
  4316. :
  4317. else
  4318. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4319. See \`config.log' for more details." >&5
  4320. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4321. See \`config.log' for more details." >&2;}
  4322. { (exit 1); exit 1; }; }
  4323. fi
  4324. ac_ext=cpp
  4325. ac_cpp='$CXXCPP $CPPFLAGS'
  4326. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4327. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4328. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4329. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4330. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4331. if test "${ac_cv_path_GREP+set}" = set; then
  4332. echo $ECHO_N "(cached) $ECHO_C" >&6
  4333. else
  4334. # Extract the first word of "grep ggrep" to use in msg output
  4335. if test -z "$GREP"; then
  4336. set dummy grep ggrep; ac_prog_name=$2
  4337. if test "${ac_cv_path_GREP+set}" = set; then
  4338. echo $ECHO_N "(cached) $ECHO_C" >&6
  4339. else
  4340. ac_path_GREP_found=false
  4341. # Loop through the user's path and test for each of PROGNAME-LIST
  4342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4343. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4344. do
  4345. IFS=$as_save_IFS
  4346. test -z "$as_dir" && as_dir=.
  4347. for ac_prog in grep ggrep; do
  4348. for ac_exec_ext in '' $ac_executable_extensions; do
  4349. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4350. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4351. # Check for GNU ac_path_GREP and select it if it is found.
  4352. # Check for GNU $ac_path_GREP
  4353. case `"$ac_path_GREP" --version 2>&1` in
  4354. *GNU*)
  4355. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4356. *)
  4357. ac_count=0
  4358. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4359. while :
  4360. do
  4361. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4362. mv "conftest.tmp" "conftest.in"
  4363. cp "conftest.in" "conftest.nl"
  4364. echo 'GREP' >> "conftest.nl"
  4365. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4366. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4367. ac_count=`expr $ac_count + 1`
  4368. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4369. # Best one so far, save it but keep looking for a better one
  4370. ac_cv_path_GREP="$ac_path_GREP"
  4371. ac_path_GREP_max=$ac_count
  4372. fi
  4373. # 10*(2^10) chars as input seems more than enough
  4374. test $ac_count -gt 10 && break
  4375. done
  4376. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4377. esac
  4378. $ac_path_GREP_found && break 3
  4379. done
  4380. done
  4381. done
  4382. IFS=$as_save_IFS
  4383. fi
  4384. GREP="$ac_cv_path_GREP"
  4385. if test -z "$GREP"; then
  4386. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4387. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4388. { (exit 1); exit 1; }; }
  4389. fi
  4390. else
  4391. ac_cv_path_GREP=$GREP
  4392. fi
  4393. fi
  4394. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4395. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4396. GREP="$ac_cv_path_GREP"
  4397. { echo "$as_me:$LINENO: checking for egrep" >&5
  4398. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4399. if test "${ac_cv_path_EGREP+set}" = set; then
  4400. echo $ECHO_N "(cached) $ECHO_C" >&6
  4401. else
  4402. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4403. then ac_cv_path_EGREP="$GREP -E"
  4404. else
  4405. # Extract the first word of "egrep" to use in msg output
  4406. if test -z "$EGREP"; then
  4407. set dummy egrep; ac_prog_name=$2
  4408. if test "${ac_cv_path_EGREP+set}" = set; then
  4409. echo $ECHO_N "(cached) $ECHO_C" >&6
  4410. else
  4411. ac_path_EGREP_found=false
  4412. # Loop through the user's path and test for each of PROGNAME-LIST
  4413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4414. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4415. do
  4416. IFS=$as_save_IFS
  4417. test -z "$as_dir" && as_dir=.
  4418. for ac_prog in egrep; do
  4419. for ac_exec_ext in '' $ac_executable_extensions; do
  4420. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4421. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4422. # Check for GNU ac_path_EGREP and select it if it is found.
  4423. # Check for GNU $ac_path_EGREP
  4424. case `"$ac_path_EGREP" --version 2>&1` in
  4425. *GNU*)
  4426. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4427. *)
  4428. ac_count=0
  4429. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4430. while :
  4431. do
  4432. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4433. mv "conftest.tmp" "conftest.in"
  4434. cp "conftest.in" "conftest.nl"
  4435. echo 'EGREP' >> "conftest.nl"
  4436. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4437. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4438. ac_count=`expr $ac_count + 1`
  4439. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4440. # Best one so far, save it but keep looking for a better one
  4441. ac_cv_path_EGREP="$ac_path_EGREP"
  4442. ac_path_EGREP_max=$ac_count
  4443. fi
  4444. # 10*(2^10) chars as input seems more than enough
  4445. test $ac_count -gt 10 && break
  4446. done
  4447. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4448. esac
  4449. $ac_path_EGREP_found && break 3
  4450. done
  4451. done
  4452. done
  4453. IFS=$as_save_IFS
  4454. fi
  4455. EGREP="$ac_cv_path_EGREP"
  4456. if test -z "$EGREP"; then
  4457. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4458. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4459. { (exit 1); exit 1; }; }
  4460. fi
  4461. else
  4462. ac_cv_path_EGREP=$EGREP
  4463. fi
  4464. fi
  4465. fi
  4466. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4467. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4468. EGREP="$ac_cv_path_EGREP"
  4469. { echo "$as_me:$LINENO: checking for AIX" >&5
  4470. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4471. cat >conftest.$ac_ext <<_ACEOF
  4472. /* confdefs.h. */
  4473. _ACEOF
  4474. cat confdefs.h >>conftest.$ac_ext
  4475. cat >>conftest.$ac_ext <<_ACEOF
  4476. /* end confdefs.h. */
  4477. #ifdef _AIX
  4478. yes
  4479. #endif
  4480. _ACEOF
  4481. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4482. $EGREP "yes" >/dev/null 2>&1; then
  4483. { echo "$as_me:$LINENO: result: yes" >&5
  4484. echo "${ECHO_T}yes" >&6; }
  4485. cat >>confdefs.h <<\_ACEOF
  4486. #define _ALL_SOURCE 1
  4487. _ACEOF
  4488. else
  4489. { echo "$as_me:$LINENO: result: no" >&5
  4490. echo "${ECHO_T}no" >&6; }
  4491. fi
  4492. rm -f conftest*
  4493. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4494. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4495. if test "${ac_cv_header_stdc+set}" = set; then
  4496. echo $ECHO_N "(cached) $ECHO_C" >&6
  4497. else
  4498. cat >conftest.$ac_ext <<_ACEOF
  4499. /* confdefs.h. */
  4500. _ACEOF
  4501. cat confdefs.h >>conftest.$ac_ext
  4502. cat >>conftest.$ac_ext <<_ACEOF
  4503. /* end confdefs.h. */
  4504. #include <stdlib.h>
  4505. #include <stdarg.h>
  4506. #include <string.h>
  4507. #include <float.h>
  4508. int
  4509. main ()
  4510. {
  4511. ;
  4512. return 0;
  4513. }
  4514. _ACEOF
  4515. rm -f conftest.$ac_objext
  4516. if { (ac_try="$ac_compile"
  4517. case "(($ac_try" in
  4518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4519. *) ac_try_echo=$ac_try;;
  4520. esac
  4521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4522. (eval "$ac_compile") 2>conftest.er1
  4523. ac_status=$?
  4524. grep -v '^ *+' conftest.er1 >conftest.err
  4525. rm -f conftest.er1
  4526. cat conftest.err >&5
  4527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4528. (exit $ac_status); } && {
  4529. test -z "$ac_cxx_werror_flag" ||
  4530. test ! -s conftest.err
  4531. } && test -s conftest.$ac_objext; then
  4532. ac_cv_header_stdc=yes
  4533. else
  4534. echo "$as_me: failed program was:" >&5
  4535. sed 's/^/| /' conftest.$ac_ext >&5
  4536. ac_cv_header_stdc=no
  4537. fi
  4538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4539. if test $ac_cv_header_stdc = yes; then
  4540. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4541. cat >conftest.$ac_ext <<_ACEOF
  4542. /* confdefs.h. */
  4543. _ACEOF
  4544. cat confdefs.h >>conftest.$ac_ext
  4545. cat >>conftest.$ac_ext <<_ACEOF
  4546. /* end confdefs.h. */
  4547. #include <string.h>
  4548. _ACEOF
  4549. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4550. $EGREP "memchr" >/dev/null 2>&1; then
  4551. :
  4552. else
  4553. ac_cv_header_stdc=no
  4554. fi
  4555. rm -f conftest*
  4556. fi
  4557. if test $ac_cv_header_stdc = yes; then
  4558. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4559. cat >conftest.$ac_ext <<_ACEOF
  4560. /* confdefs.h. */
  4561. _ACEOF
  4562. cat confdefs.h >>conftest.$ac_ext
  4563. cat >>conftest.$ac_ext <<_ACEOF
  4564. /* end confdefs.h. */
  4565. #include <stdlib.h>
  4566. _ACEOF
  4567. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4568. $EGREP "free" >/dev/null 2>&1; then
  4569. :
  4570. else
  4571. ac_cv_header_stdc=no
  4572. fi
  4573. rm -f conftest*
  4574. fi
  4575. if test $ac_cv_header_stdc = yes; then
  4576. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4577. if test "$cross_compiling" = yes; then
  4578. :
  4579. else
  4580. cat >conftest.$ac_ext <<_ACEOF
  4581. /* confdefs.h. */
  4582. _ACEOF
  4583. cat confdefs.h >>conftest.$ac_ext
  4584. cat >>conftest.$ac_ext <<_ACEOF
  4585. /* end confdefs.h. */
  4586. #include <ctype.h>
  4587. #include <stdlib.h>
  4588. #if ((' ' & 0x0FF) == 0x020)
  4589. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4590. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4591. #else
  4592. # define ISLOWER(c) \
  4593. (('a' <= (c) && (c) <= 'i') \
  4594. || ('j' <= (c) && (c) <= 'r') \
  4595. || ('s' <= (c) && (c) <= 'z'))
  4596. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4597. #endif
  4598. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4599. int
  4600. main ()
  4601. {
  4602. int i;
  4603. for (i = 0; i < 256; i++)
  4604. if (XOR (islower (i), ISLOWER (i))
  4605. || toupper (i) != TOUPPER (i))
  4606. return 2;
  4607. return 0;
  4608. }
  4609. _ACEOF
  4610. rm -f conftest$ac_exeext
  4611. if { (ac_try="$ac_link"
  4612. case "(($ac_try" in
  4613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4614. *) ac_try_echo=$ac_try;;
  4615. esac
  4616. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4617. (eval "$ac_link") 2>&5
  4618. ac_status=$?
  4619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4620. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4621. { (case "(($ac_try" in
  4622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4623. *) ac_try_echo=$ac_try;;
  4624. esac
  4625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4626. (eval "$ac_try") 2>&5
  4627. ac_status=$?
  4628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4629. (exit $ac_status); }; }; then
  4630. :
  4631. else
  4632. echo "$as_me: program exited with status $ac_status" >&5
  4633. echo "$as_me: failed program was:" >&5
  4634. sed 's/^/| /' conftest.$ac_ext >&5
  4635. ( exit $ac_status )
  4636. ac_cv_header_stdc=no
  4637. fi
  4638. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4639. fi
  4640. fi
  4641. fi
  4642. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4643. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4644. if test $ac_cv_header_stdc = yes; then
  4645. cat >>confdefs.h <<\_ACEOF
  4646. #define STDC_HEADERS 1
  4647. _ACEOF
  4648. fi
  4649. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4650. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4651. inttypes.h stdint.h unistd.h
  4652. do
  4653. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4654. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4655. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4656. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4657. echo $ECHO_N "(cached) $ECHO_C" >&6
  4658. else
  4659. cat >conftest.$ac_ext <<_ACEOF
  4660. /* confdefs.h. */
  4661. _ACEOF
  4662. cat confdefs.h >>conftest.$ac_ext
  4663. cat >>conftest.$ac_ext <<_ACEOF
  4664. /* end confdefs.h. */
  4665. $ac_includes_default
  4666. #include <$ac_header>
  4667. _ACEOF
  4668. rm -f conftest.$ac_objext
  4669. if { (ac_try="$ac_compile"
  4670. case "(($ac_try" in
  4671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4672. *) ac_try_echo=$ac_try;;
  4673. esac
  4674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4675. (eval "$ac_compile") 2>conftest.er1
  4676. ac_status=$?
  4677. grep -v '^ *+' conftest.er1 >conftest.err
  4678. rm -f conftest.er1
  4679. cat conftest.err >&5
  4680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4681. (exit $ac_status); } && {
  4682. test -z "$ac_cxx_werror_flag" ||
  4683. test ! -s conftest.err
  4684. } && test -s conftest.$ac_objext; then
  4685. eval "$as_ac_Header=yes"
  4686. else
  4687. echo "$as_me: failed program was:" >&5
  4688. sed 's/^/| /' conftest.$ac_ext >&5
  4689. eval "$as_ac_Header=no"
  4690. fi
  4691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4692. fi
  4693. ac_res=`eval echo '${'$as_ac_Header'}'`
  4694. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4695. echo "${ECHO_T}$ac_res" >&6; }
  4696. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4697. cat >>confdefs.h <<_ACEOF
  4698. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4699. _ACEOF
  4700. fi
  4701. done
  4702. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4703. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4704. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4705. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4706. echo $ECHO_N "(cached) $ECHO_C" >&6
  4707. fi
  4708. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4709. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4710. else
  4711. # Is the header compilable?
  4712. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4713. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4714. cat >conftest.$ac_ext <<_ACEOF
  4715. /* confdefs.h. */
  4716. _ACEOF
  4717. cat confdefs.h >>conftest.$ac_ext
  4718. cat >>conftest.$ac_ext <<_ACEOF
  4719. /* end confdefs.h. */
  4720. $ac_includes_default
  4721. #include <minix/config.h>
  4722. _ACEOF
  4723. rm -f conftest.$ac_objext
  4724. if { (ac_try="$ac_compile"
  4725. case "(($ac_try" in
  4726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4727. *) ac_try_echo=$ac_try;;
  4728. esac
  4729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4730. (eval "$ac_compile") 2>conftest.er1
  4731. ac_status=$?
  4732. grep -v '^ *+' conftest.er1 >conftest.err
  4733. rm -f conftest.er1
  4734. cat conftest.err >&5
  4735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4736. (exit $ac_status); } && {
  4737. test -z "$ac_cxx_werror_flag" ||
  4738. test ! -s conftest.err
  4739. } && test -s conftest.$ac_objext; then
  4740. ac_header_compiler=yes
  4741. else
  4742. echo "$as_me: failed program was:" >&5
  4743. sed 's/^/| /' conftest.$ac_ext >&5
  4744. ac_header_compiler=no
  4745. fi
  4746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4747. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4748. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4749. # Is the header present?
  4750. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4751. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4752. cat >conftest.$ac_ext <<_ACEOF
  4753. /* confdefs.h. */
  4754. _ACEOF
  4755. cat confdefs.h >>conftest.$ac_ext
  4756. cat >>conftest.$ac_ext <<_ACEOF
  4757. /* end confdefs.h. */
  4758. #include <minix/config.h>
  4759. _ACEOF
  4760. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4761. case "(($ac_try" in
  4762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4763. *) ac_try_echo=$ac_try;;
  4764. esac
  4765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4766. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4767. ac_status=$?
  4768. grep -v '^ *+' conftest.er1 >conftest.err
  4769. rm -f conftest.er1
  4770. cat conftest.err >&5
  4771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4772. (exit $ac_status); } >/dev/null && {
  4773. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4774. test ! -s conftest.err
  4775. }; then
  4776. ac_header_preproc=yes
  4777. else
  4778. echo "$as_me: failed program was:" >&5
  4779. sed 's/^/| /' conftest.$ac_ext >&5
  4780. ac_header_preproc=no
  4781. fi
  4782. rm -f conftest.err conftest.$ac_ext
  4783. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4784. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4785. # So? What about this header?
  4786. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4787. yes:no: )
  4788. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4789. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4790. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4791. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4792. ac_header_preproc=yes
  4793. ;;
  4794. no:yes:* )
  4795. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4796. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4797. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4798. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4799. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4800. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4801. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4802. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4803. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4804. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4805. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4806. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4807. ( cat <<\_ASBOX
  4808. ## ----------------------------------------------- ##
  4809. ## Report this to t-tujikawa@users.sourceforge.net ##
  4810. ## ----------------------------------------------- ##
  4811. _ASBOX
  4812. ) | sed "s/^/$as_me: WARNING: /" >&2
  4813. ;;
  4814. esac
  4815. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4816. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4817. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4818. echo $ECHO_N "(cached) $ECHO_C" >&6
  4819. else
  4820. ac_cv_header_minix_config_h=$ac_header_preproc
  4821. fi
  4822. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4823. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4824. fi
  4825. if test $ac_cv_header_minix_config_h = yes; then
  4826. MINIX=yes
  4827. else
  4828. MINIX=
  4829. fi
  4830. if test "$MINIX" = yes; then
  4831. cat >>confdefs.h <<\_ACEOF
  4832. #define _POSIX_SOURCE 1
  4833. _ACEOF
  4834. cat >>confdefs.h <<\_ACEOF
  4835. #define _POSIX_1_SOURCE 2
  4836. _ACEOF
  4837. cat >>confdefs.h <<\_ACEOF
  4838. #define _MINIX 1
  4839. _ACEOF
  4840. fi
  4841. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4842. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4843. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4844. echo $ECHO_N "(cached) $ECHO_C" >&6
  4845. else
  4846. cat >conftest.$ac_ext <<_ACEOF
  4847. /* confdefs.h. */
  4848. _ACEOF
  4849. cat confdefs.h >>conftest.$ac_ext
  4850. cat >>conftest.$ac_ext <<_ACEOF
  4851. /* end confdefs.h. */
  4852. # define __EXTENSIONS__ 1
  4853. $ac_includes_default
  4854. int
  4855. main ()
  4856. {
  4857. ;
  4858. return 0;
  4859. }
  4860. _ACEOF
  4861. rm -f conftest.$ac_objext
  4862. if { (ac_try="$ac_compile"
  4863. case "(($ac_try" in
  4864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4865. *) ac_try_echo=$ac_try;;
  4866. esac
  4867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4868. (eval "$ac_compile") 2>conftest.er1
  4869. ac_status=$?
  4870. grep -v '^ *+' conftest.er1 >conftest.err
  4871. rm -f conftest.er1
  4872. cat conftest.err >&5
  4873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874. (exit $ac_status); } && {
  4875. test -z "$ac_cxx_werror_flag" ||
  4876. test ! -s conftest.err
  4877. } && test -s conftest.$ac_objext; then
  4878. ac_cv_safe_to_define___extensions__=yes
  4879. else
  4880. echo "$as_me: failed program was:" >&5
  4881. sed 's/^/| /' conftest.$ac_ext >&5
  4882. ac_cv_safe_to_define___extensions__=no
  4883. fi
  4884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4885. fi
  4886. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4887. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4888. test $ac_cv_safe_to_define___extensions__ = yes &&
  4889. cat >>confdefs.h <<\_ACEOF
  4890. #define __EXTENSIONS__ 1
  4891. _ACEOF
  4892. cat >>confdefs.h <<\_ACEOF
  4893. #define _POSIX_PTHREAD_SEMANTICS 1
  4894. _ACEOF
  4895. cat >>confdefs.h <<\_ACEOF
  4896. #define _TANDEM_SOURCE 1
  4897. _ACEOF
  4898. # Checks for libraries.
  4899. if test "x$with_libxml2" = "xyes"; then
  4900. # Check whether --with-xml-prefix was given.
  4901. if test "${with_xml_prefix+set}" = set; then
  4902. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4903. else
  4904. xml_config_prefix=""
  4905. fi
  4906. # Check whether --with-xml-exec-prefix was given.
  4907. if test "${with_xml_exec_prefix+set}" = set; then
  4908. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4909. else
  4910. xml_config_exec_prefix=""
  4911. fi
  4912. # Check whether --enable-xmltest was given.
  4913. if test "${enable_xmltest+set}" = set; then
  4914. enableval=$enable_xmltest;
  4915. else
  4916. enable_xmltest=yes
  4917. fi
  4918. if test x$xml_config_exec_prefix != x ; then
  4919. xml_config_args="$xml_config_args"
  4920. if test x${XML2_CONFIG+set} != xset ; then
  4921. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4922. fi
  4923. fi
  4924. if test x$xml_config_prefix != x ; then
  4925. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4926. if test x${XML2_CONFIG+set} != xset ; then
  4927. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4928. fi
  4929. fi
  4930. # Extract the first word of "xml2-config", so it can be a program name with args.
  4931. set dummy xml2-config; ac_word=$2
  4932. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4933. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4934. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4935. echo $ECHO_N "(cached) $ECHO_C" >&6
  4936. else
  4937. case $XML2_CONFIG in
  4938. [\\/]* | ?:[\\/]*)
  4939. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4940. ;;
  4941. *)
  4942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4943. for as_dir in $PATH
  4944. do
  4945. IFS=$as_save_IFS
  4946. test -z "$as_dir" && as_dir=.
  4947. for ac_exec_ext in '' $ac_executable_extensions; do
  4948. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4949. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4950. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4951. break 2
  4952. fi
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4957. ;;
  4958. esac
  4959. fi
  4960. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4961. if test -n "$XML2_CONFIG"; then
  4962. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4963. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4964. else
  4965. { echo "$as_me:$LINENO: result: no" >&5
  4966. echo "${ECHO_T}no" >&6; }
  4967. fi
  4968. min_xml_version=2.6.24
  4969. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4970. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4971. no_xml=""
  4972. if test "$XML2_CONFIG" = "no" ; then
  4973. no_xml=yes
  4974. else
  4975. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4976. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4977. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4978. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4979. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4980. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4981. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4982. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4983. if test "x$enable_xmltest" = "xyes" ; then
  4984. ac_save_CPPFLAGS="$CPPFLAGS"
  4985. ac_save_LIBS="$LIBS"
  4986. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4987. LIBS="$XML_LIBS $LIBS"
  4988. rm -f conf.xmltest
  4989. if test "$cross_compiling" = yes; then
  4990. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4991. else
  4992. cat >conftest.$ac_ext <<_ACEOF
  4993. /* confdefs.h. */
  4994. _ACEOF
  4995. cat confdefs.h >>conftest.$ac_ext
  4996. cat >>conftest.$ac_ext <<_ACEOF
  4997. /* end confdefs.h. */
  4998. #include <stdlib.h>
  4999. #include <stdio.h>
  5000. #include <string.h>
  5001. #include <libxml/xmlversion.h>
  5002. int
  5003. main()
  5004. {
  5005. int xml_major_version, xml_minor_version, xml_micro_version;
  5006. int major, minor, micro;
  5007. char *tmp_version;
  5008. system("touch conf.xmltest");
  5009. /* Capture xml2-config output via autoconf/configure variables */
  5010. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5011. tmp_version = (char *)strdup("$min_xml_version");
  5012. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5013. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5014. exit(1);
  5015. }
  5016. free(tmp_version);
  5017. /* Capture the version information from the header files */
  5018. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5019. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5020. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5021. exit(1);
  5022. }
  5023. free(tmp_version);
  5024. /* Compare xml2-config output to the libxml headers */
  5025. if ((xml_major_version != $xml_config_major_version) ||
  5026. (xml_minor_version != $xml_config_minor_version) ||
  5027. (xml_micro_version != $xml_config_micro_version))
  5028. {
  5029. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5030. xml_major_version, xml_minor_version, xml_micro_version);
  5031. printf("*** xml2-config (version %d.%d.%d)\n",
  5032. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5033. return 1;
  5034. }
  5035. /* Compare the headers to the library to make sure we match */
  5036. /* Less than ideal -- doesn't provide us with return value feedback,
  5037. * only exits if there's a serious mismatch between header and library.
  5038. */
  5039. LIBXML_TEST_VERSION;
  5040. /* Test that the library is greater than our minimum version */
  5041. if ((xml_major_version > major) ||
  5042. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5043. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5044. (xml_micro_version >= micro)))
  5045. {
  5046. return 0;
  5047. }
  5048. else
  5049. {
  5050. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5051. xml_major_version, xml_minor_version, xml_micro_version);
  5052. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5053. major, minor, micro);
  5054. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5055. printf("***\n");
  5056. printf("*** If you have already installed a sufficiently new version, this error\n");
  5057. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5058. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5059. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5060. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5061. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5062. printf("*** so that the correct libraries are found at run-time))\n");
  5063. }
  5064. return 1;
  5065. }
  5066. _ACEOF
  5067. rm -f conftest$ac_exeext
  5068. if { (ac_try="$ac_link"
  5069. case "(($ac_try" in
  5070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5071. *) ac_try_echo=$ac_try;;
  5072. esac
  5073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5074. (eval "$ac_link") 2>&5
  5075. ac_status=$?
  5076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5077. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5078. { (case "(($ac_try" in
  5079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5080. *) ac_try_echo=$ac_try;;
  5081. esac
  5082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5083. (eval "$ac_try") 2>&5
  5084. ac_status=$?
  5085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5086. (exit $ac_status); }; }; then
  5087. :
  5088. else
  5089. echo "$as_me: program exited with status $ac_status" >&5
  5090. echo "$as_me: failed program was:" >&5
  5091. sed 's/^/| /' conftest.$ac_ext >&5
  5092. ( exit $ac_status )
  5093. no_xml=yes
  5094. fi
  5095. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5096. fi
  5097. CPPFLAGS="$ac_save_CPPFLAGS"
  5098. LIBS="$ac_save_LIBS"
  5099. fi
  5100. fi
  5101. if test "x$no_xml" = x ; then
  5102. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5103. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5104. have_libxml2=yes
  5105. else
  5106. { echo "$as_me:$LINENO: result: no" >&5
  5107. echo "${ECHO_T}no" >&6; }
  5108. if test "$XML2_CONFIG" = "no" ; then
  5109. echo "*** The xml2-config script installed by LIBXML could not be found"
  5110. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5111. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5112. echo "*** full path to xml2-config."
  5113. else
  5114. if test -f conf.xmltest ; then
  5115. :
  5116. else
  5117. echo "*** Could not run libxml test program, checking why..."
  5118. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5119. LIBS="$LIBS $XML_LIBS"
  5120. cat >conftest.$ac_ext <<_ACEOF
  5121. /* confdefs.h. */
  5122. _ACEOF
  5123. cat confdefs.h >>conftest.$ac_ext
  5124. cat >>conftest.$ac_ext <<_ACEOF
  5125. /* end confdefs.h. */
  5126. #include <libxml/xmlversion.h>
  5127. #include <stdio.h>
  5128. int
  5129. main ()
  5130. {
  5131. LIBXML_TEST_VERSION; return 0;
  5132. ;
  5133. return 0;
  5134. }
  5135. _ACEOF
  5136. rm -f conftest.$ac_objext conftest$ac_exeext
  5137. if { (ac_try="$ac_link"
  5138. case "(($ac_try" in
  5139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5140. *) ac_try_echo=$ac_try;;
  5141. esac
  5142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5143. (eval "$ac_link") 2>conftest.er1
  5144. ac_status=$?
  5145. grep -v '^ *+' conftest.er1 >conftest.err
  5146. rm -f conftest.er1
  5147. cat conftest.err >&5
  5148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5149. (exit $ac_status); } && {
  5150. test -z "$ac_cxx_werror_flag" ||
  5151. test ! -s conftest.err
  5152. } && test -s conftest$ac_exeext &&
  5153. $as_test_x conftest$ac_exeext; then
  5154. echo "*** The test program compiled, but did not run. This usually means"
  5155. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5156. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5157. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5158. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5159. echo "*** is required on your system"
  5160. echo "***"
  5161. echo "*** If you have an old version installed, it is best to remove it, although"
  5162. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5163. else
  5164. echo "$as_me: failed program was:" >&5
  5165. sed 's/^/| /' conftest.$ac_ext >&5
  5166. echo "*** The test program failed to compile or link. See the file config.log for the"
  5167. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5168. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5169. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5170. fi
  5171. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5172. conftest$ac_exeext conftest.$ac_ext
  5173. CPPFLAGS="$ac_save_CPPFLAGS"
  5174. LIBS="$ac_save_LIBS"
  5175. fi
  5176. fi
  5177. XML_CPPFLAGS=""
  5178. XML_LIBS=""
  5179. :
  5180. fi
  5181. rm -f conf.xmltest
  5182. if test "x$have_libxml2" = "xyes"; then
  5183. cat >>confdefs.h <<\_ACEOF
  5184. #define HAVE_LIBXML2 1
  5185. _ACEOF
  5186. fi
  5187. fi
  5188. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5189. # Check whether --with-libexpat-prefix was given.
  5190. if test "${with_libexpat_prefix+set}" = set; then
  5191. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5192. else
  5193. libexpat_prefix=""
  5194. fi
  5195. if test "x$libexpat_prefix" = "x"; then
  5196. libexpat_prefix="/usr"
  5197. fi
  5198. libexpat_prefix_lib=$libexpat_prefix/lib
  5199. libexpat_prefix_include=$libexpat_prefix/include
  5200. LIBS_save=$LIBS
  5201. CPPFLAGS_save=$CPPFLAGS
  5202. LIBS="-L$libexpat_prefix_lib $LIBS"
  5203. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5204. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5205. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5206. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5207. echo $ECHO_N "(cached) $ECHO_C" >&6
  5208. else
  5209. ac_check_lib_save_LIBS=$LIBS
  5210. LIBS="-lexpat $LIBS"
  5211. cat >conftest.$ac_ext <<_ACEOF
  5212. /* confdefs.h. */
  5213. _ACEOF
  5214. cat confdefs.h >>conftest.$ac_ext
  5215. cat >>conftest.$ac_ext <<_ACEOF
  5216. /* end confdefs.h. */
  5217. /* Override any GCC internal prototype to avoid an error.
  5218. Use char because int might match the return type of a GCC
  5219. builtin and then its argument prototype would still apply. */
  5220. #ifdef __cplusplus
  5221. extern "C"
  5222. #endif
  5223. char XML_ParserCreate ();
  5224. int
  5225. main ()
  5226. {
  5227. return XML_ParserCreate ();
  5228. ;
  5229. return 0;
  5230. }
  5231. _ACEOF
  5232. rm -f conftest.$ac_objext conftest$ac_exeext
  5233. if { (ac_try="$ac_link"
  5234. case "(($ac_try" in
  5235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5236. *) ac_try_echo=$ac_try;;
  5237. esac
  5238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5239. (eval "$ac_link") 2>conftest.er1
  5240. ac_status=$?
  5241. grep -v '^ *+' conftest.er1 >conftest.err
  5242. rm -f conftest.er1
  5243. cat conftest.err >&5
  5244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5245. (exit $ac_status); } && {
  5246. test -z "$ac_cxx_werror_flag" ||
  5247. test ! -s conftest.err
  5248. } && test -s conftest$ac_exeext &&
  5249. $as_test_x conftest$ac_exeext; then
  5250. ac_cv_lib_expat_XML_ParserCreate=yes
  5251. else
  5252. echo "$as_me: failed program was:" >&5
  5253. sed 's/^/| /' conftest.$ac_ext >&5
  5254. ac_cv_lib_expat_XML_ParserCreate=no
  5255. fi
  5256. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5257. conftest$ac_exeext conftest.$ac_ext
  5258. LIBS=$ac_check_lib_save_LIBS
  5259. fi
  5260. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5261. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5262. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5263. have_libexpat=yes
  5264. fi
  5265. if test "x$have_libexpat" = "xyes"; then
  5266. cat >>confdefs.h <<\_ACEOF
  5267. #define HAVE_LIBEXPAT 1
  5268. _ACEOF
  5269. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5270. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5271. fi
  5272. LIBS=$LIBS_save
  5273. CPPFLAGS=$CPPFLAGS_save
  5274. fi
  5275. if test "x$with_sqlite3" = "xyes"; then
  5276. # Check whether --with-sqlite3-prefix was given.
  5277. if test "${with_sqlite3_prefix+set}" = set; then
  5278. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5279. else
  5280. sqlite3_prefix=""
  5281. fi
  5282. if test "x$sqlite3_prefix" = "x"; then
  5283. sqlite3_prefix="/usr"
  5284. fi
  5285. LIBS_save=$LIBS
  5286. CPPFLAGS_save=$CPPFLAGS
  5287. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5288. if test -x $PKG_CONFIG; then
  5289. { echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5290. echo $ECHO_N "checking checking availability of sqlite3 using pkg-config... $ECHO_C" >&6; }
  5291. $PKG_CONFIG --exists sqlite3
  5292. if test "$?" = "0"; then
  5293. # Use pkg-config to detect LIBS and CFLAGS
  5294. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5295. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5296. LIBS="$SQLITE3_LIBS $LIBS"
  5297. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5298. have_sqlite3=yes
  5299. { echo "$as_me:$LINENO: result: yes" >&5
  5300. echo "${ECHO_T}yes" >&6; }
  5301. else
  5302. { echo "$as_me:$LINENO: result: no" >&5
  5303. echo "${ECHO_T}no" >&6; }
  5304. fi
  5305. fi
  5306. if test "x$have_sqlite3" != "xyes"; then
  5307. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5308. sqlite3_prefix_include=$sqlite3_prefix/include
  5309. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5310. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5311. { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5312. echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
  5313. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5314. echo $ECHO_N "(cached) $ECHO_C" >&6
  5315. else
  5316. ac_check_lib_save_LIBS=$LIBS
  5317. LIBS="-lsqlite3 $LIBS"
  5318. cat >conftest.$ac_ext <<_ACEOF
  5319. /* confdefs.h. */
  5320. _ACEOF
  5321. cat confdefs.h >>conftest.$ac_ext
  5322. cat >>conftest.$ac_ext <<_ACEOF
  5323. /* end confdefs.h. */
  5324. /* Override any GCC internal prototype to avoid an error.
  5325. Use char because int might match the return type of a GCC
  5326. builtin and then its argument prototype would still apply. */
  5327. #ifdef __cplusplus
  5328. extern "C"
  5329. #endif
  5330. char sqlite3_open ();
  5331. int
  5332. main ()
  5333. {
  5334. return sqlite3_open ();
  5335. ;
  5336. return 0;
  5337. }
  5338. _ACEOF
  5339. rm -f conftest.$ac_objext conftest$ac_exeext
  5340. if { (ac_try="$ac_link"
  5341. case "(($ac_try" in
  5342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5343. *) ac_try_echo=$ac_try;;
  5344. esac
  5345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5346. (eval "$ac_link") 2>conftest.er1
  5347. ac_status=$?
  5348. grep -v '^ *+' conftest.er1 >conftest.err
  5349. rm -f conftest.er1
  5350. cat conftest.err >&5
  5351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5352. (exit $ac_status); } && {
  5353. test -z "$ac_cxx_werror_flag" ||
  5354. test ! -s conftest.err
  5355. } && test -s conftest$ac_exeext &&
  5356. $as_test_x conftest$ac_exeext; then
  5357. ac_cv_lib_sqlite3_sqlite3_open=yes
  5358. else
  5359. echo "$as_me: failed program was:" >&5
  5360. sed 's/^/| /' conftest.$ac_ext >&5
  5361. ac_cv_lib_sqlite3_sqlite3_open=no
  5362. fi
  5363. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5364. conftest$ac_exeext conftest.$ac_ext
  5365. LIBS=$ac_check_lib_save_LIBS
  5366. fi
  5367. { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5368. echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5369. if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
  5370. have_sqlite3=yes
  5371. fi
  5372. if test "x$have_sqlite3" = "xyes"; then
  5373. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5374. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5375. fi
  5376. fi
  5377. if test "x$have_sqlite3" = "xyes"; then
  5378. for ac_func in sqlite3_open_v2
  5379. do
  5380. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5381. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5382. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5383. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5384. echo $ECHO_N "(cached) $ECHO_C" >&6
  5385. else
  5386. cat >conftest.$ac_ext <<_ACEOF
  5387. /* confdefs.h. */
  5388. _ACEOF
  5389. cat confdefs.h >>conftest.$ac_ext
  5390. cat >>conftest.$ac_ext <<_ACEOF
  5391. /* end confdefs.h. */
  5392. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5393. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5394. #define $ac_func innocuous_$ac_func
  5395. /* System header to define __stub macros and hopefully few prototypes,
  5396. which can conflict with char $ac_func (); below.
  5397. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5398. <limits.h> exists even on freestanding compilers. */
  5399. #ifdef __STDC__
  5400. # include <limits.h>
  5401. #else
  5402. # include <assert.h>
  5403. #endif
  5404. #undef $ac_func
  5405. /* Override any GCC internal prototype to avoid an error.
  5406. Use char because int might match the return type of a GCC
  5407. builtin and then its argument prototype would still apply. */
  5408. #ifdef __cplusplus
  5409. extern "C"
  5410. #endif
  5411. char $ac_func ();
  5412. /* The GNU C library defines this for functions which it implements
  5413. to always fail with ENOSYS. Some functions are actually named
  5414. something starting with __ and the normal name is an alias. */
  5415. #if defined __stub_$ac_func || defined __stub___$ac_func
  5416. choke me
  5417. #endif
  5418. int
  5419. main ()
  5420. {
  5421. return $ac_func ();
  5422. ;
  5423. return 0;
  5424. }
  5425. _ACEOF
  5426. rm -f conftest.$ac_objext conftest$ac_exeext
  5427. if { (ac_try="$ac_link"
  5428. case "(($ac_try" in
  5429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5430. *) ac_try_echo=$ac_try;;
  5431. esac
  5432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5433. (eval "$ac_link") 2>conftest.er1
  5434. ac_status=$?
  5435. grep -v '^ *+' conftest.er1 >conftest.err
  5436. rm -f conftest.er1
  5437. cat conftest.err >&5
  5438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5439. (exit $ac_status); } && {
  5440. test -z "$ac_cxx_werror_flag" ||
  5441. test ! -s conftest.err
  5442. } && test -s conftest$ac_exeext &&
  5443. $as_test_x conftest$ac_exeext; then
  5444. eval "$as_ac_var=yes"
  5445. else
  5446. echo "$as_me: failed program was:" >&5
  5447. sed 's/^/| /' conftest.$ac_ext >&5
  5448. eval "$as_ac_var=no"
  5449. fi
  5450. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5451. conftest$ac_exeext conftest.$ac_ext
  5452. fi
  5453. ac_res=`eval echo '${'$as_ac_var'}'`
  5454. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5455. echo "${ECHO_T}$ac_res" >&6; }
  5456. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5457. cat >>confdefs.h <<_ACEOF
  5458. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5459. _ACEOF
  5460. fi
  5461. done
  5462. cat >>confdefs.h <<\_ACEOF
  5463. #define HAVE_SQLITE3 1
  5464. _ACEOF
  5465. fi
  5466. LIBS=$LIBS_save
  5467. CPPFLAGS=$CPPFLAGS_save
  5468. fi
  5469. if test "x$with_gnutls" = "xyes"; then
  5470. # Check whether --with-libgnutls-prefix was given.
  5471. if test "${with_libgnutls_prefix+set}" = set; then
  5472. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5473. else
  5474. libgnutls_config_prefix=""
  5475. fi
  5476. if test x$libgnutls_config_prefix != x ; then
  5477. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5478. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5479. fi
  5480. fi
  5481. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5482. set dummy libgnutls-config; ac_word=$2
  5483. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5484. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5485. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5486. echo $ECHO_N "(cached) $ECHO_C" >&6
  5487. else
  5488. case $LIBGNUTLS_CONFIG in
  5489. [\\/]* | ?:[\\/]*)
  5490. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5491. ;;
  5492. *)
  5493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5494. for as_dir in $PATH
  5495. do
  5496. IFS=$as_save_IFS
  5497. test -z "$as_dir" && as_dir=.
  5498. for ac_exec_ext in '' $ac_executable_extensions; do
  5499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5500. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5501. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5502. break 2
  5503. fi
  5504. done
  5505. done
  5506. IFS=$as_save_IFS
  5507. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5508. ;;
  5509. esac
  5510. fi
  5511. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5512. if test -n "$LIBGNUTLS_CONFIG"; then
  5513. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5514. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5515. else
  5516. { echo "$as_me:$LINENO: result: no" >&5
  5517. echo "${ECHO_T}no" >&6; }
  5518. fi
  5519. min_libgnutls_version=1.2.9
  5520. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5521. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5522. no_libgnutls=""
  5523. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5524. no_libgnutls=yes
  5525. else
  5526. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5527. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5528. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5529. ac_save_CFLAGS="$CFLAGS"
  5530. ac_save_LIBS="$LIBS"
  5531. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5532. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5533. rm -f conf.libgnutlstest
  5534. if test "$cross_compiling" = yes; then
  5535. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5536. else
  5537. cat >conftest.$ac_ext <<_ACEOF
  5538. /* confdefs.h. */
  5539. _ACEOF
  5540. cat confdefs.h >>conftest.$ac_ext
  5541. cat >>conftest.$ac_ext <<_ACEOF
  5542. /* end confdefs.h. */
  5543. #include <stdio.h>
  5544. #include <stdlib.h>
  5545. #include <string.h>
  5546. #include <gnutls/gnutls.h>
  5547. int
  5548. main ()
  5549. {
  5550. system ("touch conf.libgnutlstest");
  5551. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5552. {
  5553. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5554. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5555. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5556. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5557. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5558. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5559. printf("*** required on your system.\n");
  5560. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5561. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5562. printf("*** before re-running configure\n");
  5563. }
  5564. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5565. {
  5566. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5567. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5568. }
  5569. else
  5570. {
  5571. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5572. {
  5573. return 0;
  5574. }
  5575. else
  5576. {
  5577. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5578. gnutls_check_version(NULL) );
  5579. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5580. "$min_libgnutls_version" );
  5581. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5582. printf("*** \n");
  5583. printf("*** If you have already installed a sufficiently new version, this error\n");
  5584. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5585. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5586. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5587. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5588. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5589. printf("*** so that the correct libraries are found at run-time))\n");
  5590. }
  5591. }
  5592. return 1;
  5593. }
  5594. _ACEOF
  5595. rm -f conftest$ac_exeext
  5596. if { (ac_try="$ac_link"
  5597. case "(($ac_try" in
  5598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5599. *) ac_try_echo=$ac_try;;
  5600. esac
  5601. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5602. (eval "$ac_link") 2>&5
  5603. ac_status=$?
  5604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5605. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5606. { (case "(($ac_try" in
  5607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5608. *) ac_try_echo=$ac_try;;
  5609. esac
  5610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5611. (eval "$ac_try") 2>&5
  5612. ac_status=$?
  5613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5614. (exit $ac_status); }; }; then
  5615. :
  5616. else
  5617. echo "$as_me: program exited with status $ac_status" >&5
  5618. echo "$as_me: failed program was:" >&5
  5619. sed 's/^/| /' conftest.$ac_ext >&5
  5620. ( exit $ac_status )
  5621. no_libgnutls=yes
  5622. fi
  5623. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5624. fi
  5625. CFLAGS="$ac_save_CFLAGS"
  5626. LIBS="$ac_save_LIBS"
  5627. fi
  5628. if test "x$no_libgnutls" = x ; then
  5629. { echo "$as_me:$LINENO: result: yes" >&5
  5630. echo "${ECHO_T}yes" >&6; }
  5631. have_libgnutls=yes
  5632. else
  5633. if test -f conf.libgnutlstest ; then
  5634. :
  5635. else
  5636. { echo "$as_me:$LINENO: result: no" >&5
  5637. echo "${ECHO_T}no" >&6; }
  5638. fi
  5639. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5640. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5641. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5642. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5643. echo "*** full path to libgnutls-config."
  5644. else
  5645. if test -f conf.libgnutlstest ; then
  5646. :
  5647. else
  5648. echo "*** Could not run libgnutls test program, checking why..."
  5649. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5650. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5651. cat >conftest.$ac_ext <<_ACEOF
  5652. /* confdefs.h. */
  5653. _ACEOF
  5654. cat confdefs.h >>conftest.$ac_ext
  5655. cat >>conftest.$ac_ext <<_ACEOF
  5656. /* end confdefs.h. */
  5657. #include <stdio.h>
  5658. #include <stdlib.h>
  5659. #include <string.h>
  5660. #include <gnutls/gnutls.h>
  5661. int
  5662. main ()
  5663. {
  5664. return !!gnutls_check_version(NULL);
  5665. ;
  5666. return 0;
  5667. }
  5668. _ACEOF
  5669. rm -f conftest.$ac_objext conftest$ac_exeext
  5670. if { (ac_try="$ac_link"
  5671. case "(($ac_try" in
  5672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5673. *) ac_try_echo=$ac_try;;
  5674. esac
  5675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5676. (eval "$ac_link") 2>conftest.er1
  5677. ac_status=$?
  5678. grep -v '^ *+' conftest.er1 >conftest.err
  5679. rm -f conftest.er1
  5680. cat conftest.err >&5
  5681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5682. (exit $ac_status); } && {
  5683. test -z "$ac_cxx_werror_flag" ||
  5684. test ! -s conftest.err
  5685. } && test -s conftest$ac_exeext &&
  5686. $as_test_x conftest$ac_exeext; then
  5687. echo "*** The test program compiled, but did not run. This usually means"
  5688. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5689. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5690. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5691. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5692. echo "*** is required on your system"
  5693. echo "***"
  5694. echo "*** If you have an old version installed, it is best to remove it, although"
  5695. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5696. echo "***"
  5697. else
  5698. echo "$as_me: failed program was:" >&5
  5699. sed 's/^/| /' conftest.$ac_ext >&5
  5700. echo "*** The test program failed to compile or link. See the file config.log for the"
  5701. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5702. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5703. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5704. fi
  5705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5706. conftest$ac_exeext conftest.$ac_ext
  5707. CFLAGS="$ac_save_CFLAGS"
  5708. LIBS="$ac_save_LIBS"
  5709. fi
  5710. fi
  5711. LIBGNUTLS_CFLAGS=""
  5712. LIBGNUTLS_LIBS=""
  5713. :
  5714. fi
  5715. rm -f conf.libgnutlstest
  5716. if test "x$have_libgnutls" = "xyes"; then
  5717. cat >>confdefs.h <<\_ACEOF
  5718. #define HAVE_LIBGNUTLS 1
  5719. _ACEOF
  5720. fi
  5721. fi
  5722. if test "x$have_libgnutls" = "xyes"; then
  5723. # Check whether --with-libgcrypt-prefix was given.
  5724. if test "${with_libgcrypt_prefix+set}" = set; then
  5725. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5726. else
  5727. libgcrypt_config_prefix=""
  5728. fi
  5729. if test x$libgcrypt_config_prefix != x ; then
  5730. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5731. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5732. fi
  5733. fi
  5734. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5735. set dummy libgcrypt-config; ac_word=$2
  5736. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5737. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5738. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5739. echo $ECHO_N "(cached) $ECHO_C" >&6
  5740. else
  5741. case $LIBGCRYPT_CONFIG in
  5742. [\\/]* | ?:[\\/]*)
  5743. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5744. ;;
  5745. *)
  5746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5747. for as_dir in $PATH
  5748. do
  5749. IFS=$as_save_IFS
  5750. test -z "$as_dir" && as_dir=.
  5751. for ac_exec_ext in '' $ac_executable_extensions; do
  5752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5753. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5754. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5755. break 2
  5756. fi
  5757. done
  5758. done
  5759. IFS=$as_save_IFS
  5760. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5761. ;;
  5762. esac
  5763. fi
  5764. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5765. if test -n "$LIBGCRYPT_CONFIG"; then
  5766. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5767. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5768. else
  5769. { echo "$as_me:$LINENO: result: no" >&5
  5770. echo "${ECHO_T}no" >&6; }
  5771. fi
  5772. tmp=1.2.2
  5773. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5774. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5775. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5776. else
  5777. req_libgcrypt_api=0
  5778. min_libgcrypt_version="$tmp"
  5779. fi
  5780. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5781. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5782. ok=no
  5783. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5784. req_major=`echo $min_libgcrypt_version | \
  5785. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5786. req_minor=`echo $min_libgcrypt_version | \
  5787. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5788. req_micro=`echo $min_libgcrypt_version | \
  5789. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5790. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5791. major=`echo $libgcrypt_config_version | \
  5792. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5793. minor=`echo $libgcrypt_config_version | \
  5794. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5795. micro=`echo $libgcrypt_config_version | \
  5796. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5797. if test "$major" -gt "$req_major"; then
  5798. ok=yes
  5799. else
  5800. if test "$major" -eq "$req_major"; then
  5801. if test "$minor" -gt "$req_minor"; then
  5802. ok=yes
  5803. else
  5804. if test "$minor" -eq "$req_minor"; then
  5805. if test "$micro" -ge "$req_micro"; then
  5806. ok=yes
  5807. fi
  5808. fi
  5809. fi
  5810. fi
  5811. fi
  5812. fi
  5813. if test $ok = yes; then
  5814. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5815. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5816. else
  5817. { echo "$as_me:$LINENO: result: no" >&5
  5818. echo "${ECHO_T}no" >&6; }
  5819. fi
  5820. if test $ok = yes; then
  5821. # If we have a recent libgcrypt, we should also check that the
  5822. # API is compatible
  5823. if test "$req_libgcrypt_api" -gt 0 ; then
  5824. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5825. if test "$tmp" -gt 0 ; then
  5826. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5827. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5828. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5829. { echo "$as_me:$LINENO: result: okay" >&5
  5830. echo "${ECHO_T}okay" >&6; }
  5831. else
  5832. ok=no
  5833. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5834. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5835. fi
  5836. fi
  5837. fi
  5838. fi
  5839. if test $ok = yes; then
  5840. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5841. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5842. have_libgcrypt=yes
  5843. else
  5844. LIBGCRYPT_CFLAGS=""
  5845. LIBGCRYPT_LIBS=""
  5846. :
  5847. fi
  5848. if test "x$have_libgcrypt" = "xyes"; then
  5849. cat >>confdefs.h <<\_ACEOF
  5850. #define HAVE_LIBGCRYPT 1
  5851. _ACEOF
  5852. fi
  5853. fi
  5854. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5855. # Check whether --with-openssl-prefix was given.
  5856. if test "${with_openssl_prefix+set}" = set; then
  5857. withval=$with_openssl_prefix; openssl_prefix=$withval
  5858. else
  5859. openssl_prefix=""
  5860. fi
  5861. if test "x$openssl_prefix" = "x"; then
  5862. openssl_prefix="/usr/local"
  5863. fi
  5864. LIBS_save=$LIBS
  5865. CPPFLAGS_save=$CPPFLAGS
  5866. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  5867. if test -x $PKG_CONFIG; then
  5868. { echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  5869. echo $ECHO_N "checking checking availability of openssl using pkg-config... $ECHO_C" >&6; }
  5870. $PKG_CONFIG --exists openssl
  5871. if test "$?" = "0"; then
  5872. # Use pkg-config to detect LIBS and CFLAGS
  5873. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  5874. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5875. LIBS="$OPENSSL_LIBS $LIBS"
  5876. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  5877. have_openssl=yes
  5878. { echo "$as_me:$LINENO: result: yes" >&5
  5879. echo "${ECHO_T}yes" >&6; }
  5880. else
  5881. { echo "$as_me:$LINENO: result: no" >&5
  5882. echo "${ECHO_T}no" >&6; }
  5883. fi
  5884. fi
  5885. if test "x$have_openssl" != "xyes"; then
  5886. openssl_prefix_lib=$openssl_prefix/lib
  5887. openssl_prefix_include=$openssl_prefix/include
  5888. LIBS="-L$openssl_prefix_lib $LIBS"
  5889. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5890. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5891. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5892. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5893. echo $ECHO_N "(cached) $ECHO_C" >&6
  5894. else
  5895. ac_check_lib_save_LIBS=$LIBS
  5896. LIBS="-lssl $LIBS"
  5897. cat >conftest.$ac_ext <<_ACEOF
  5898. /* confdefs.h. */
  5899. _ACEOF
  5900. cat confdefs.h >>conftest.$ac_ext
  5901. cat >>conftest.$ac_ext <<_ACEOF
  5902. /* end confdefs.h. */
  5903. /* Override any GCC internal prototype to avoid an error.
  5904. Use char because int might match the return type of a GCC
  5905. builtin and then its argument prototype would still apply. */
  5906. #ifdef __cplusplus
  5907. extern "C"
  5908. #endif
  5909. char SSL_library_init ();
  5910. int
  5911. main ()
  5912. {
  5913. return SSL_library_init ();
  5914. ;
  5915. return 0;
  5916. }
  5917. _ACEOF
  5918. rm -f conftest.$ac_objext conftest$ac_exeext
  5919. if { (ac_try="$ac_link"
  5920. case "(($ac_try" in
  5921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5922. *) ac_try_echo=$ac_try;;
  5923. esac
  5924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5925. (eval "$ac_link") 2>conftest.er1
  5926. ac_status=$?
  5927. grep -v '^ *+' conftest.er1 >conftest.err
  5928. rm -f conftest.er1
  5929. cat conftest.err >&5
  5930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5931. (exit $ac_status); } && {
  5932. test -z "$ac_cxx_werror_flag" ||
  5933. test ! -s conftest.err
  5934. } && test -s conftest$ac_exeext &&
  5935. $as_test_x conftest$ac_exeext; then
  5936. ac_cv_lib_ssl_SSL_library_init=yes
  5937. else
  5938. echo "$as_me: failed program was:" >&5
  5939. sed 's/^/| /' conftest.$ac_ext >&5
  5940. ac_cv_lib_ssl_SSL_library_init=no
  5941. fi
  5942. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5943. conftest$ac_exeext conftest.$ac_ext
  5944. LIBS=$ac_check_lib_save_LIBS
  5945. fi
  5946. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5947. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5948. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5949. have_openssl=yes LIBS="-lssl $LIBS"
  5950. fi
  5951. if test "x$have_openssl" = "xyes"; then
  5952. have_openssl=no
  5953. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5954. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5955. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5956. echo $ECHO_N "(cached) $ECHO_C" >&6
  5957. else
  5958. ac_check_lib_save_LIBS=$LIBS
  5959. LIBS="-lcrypto $LIBS"
  5960. cat >conftest.$ac_ext <<_ACEOF
  5961. /* confdefs.h. */
  5962. _ACEOF
  5963. cat confdefs.h >>conftest.$ac_ext
  5964. cat >>conftest.$ac_ext <<_ACEOF
  5965. /* end confdefs.h. */
  5966. int
  5967. main ()
  5968. {
  5969. return main ();
  5970. ;
  5971. return 0;
  5972. }
  5973. _ACEOF
  5974. rm -f conftest.$ac_objext conftest$ac_exeext
  5975. if { (ac_try="$ac_link"
  5976. case "(($ac_try" in
  5977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5978. *) ac_try_echo=$ac_try;;
  5979. esac
  5980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5981. (eval "$ac_link") 2>conftest.er1
  5982. ac_status=$?
  5983. grep -v '^ *+' conftest.er1 >conftest.err
  5984. rm -f conftest.er1
  5985. cat conftest.err >&5
  5986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5987. (exit $ac_status); } && {
  5988. test -z "$ac_cxx_werror_flag" ||
  5989. test ! -s conftest.err
  5990. } && test -s conftest$ac_exeext &&
  5991. $as_test_x conftest$ac_exeext; then
  5992. ac_cv_lib_crypto_main=yes
  5993. else
  5994. echo "$as_me: failed program was:" >&5
  5995. sed 's/^/| /' conftest.$ac_ext >&5
  5996. ac_cv_lib_crypto_main=no
  5997. fi
  5998. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5999. conftest$ac_exeext conftest.$ac_ext
  6000. LIBS=$ac_check_lib_save_LIBS
  6001. fi
  6002. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6003. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  6004. if test $ac_cv_lib_crypto_main = yes; then
  6005. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6006. fi
  6007. if test "x$have_openssl" = "xyes"; then
  6008. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6009. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6010. fi
  6011. fi
  6012. fi
  6013. if test "x$have_openssl" = "xyes"; then
  6014. cat >>confdefs.h <<\_ACEOF
  6015. #define HAVE_LIBSSL 1
  6016. _ACEOF
  6017. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6018. for ac_func in EVP_DigestInit_ex
  6019. do
  6020. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6021. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6022. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6023. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6024. echo $ECHO_N "(cached) $ECHO_C" >&6
  6025. else
  6026. cat >conftest.$ac_ext <<_ACEOF
  6027. /* confdefs.h. */
  6028. _ACEOF
  6029. cat confdefs.h >>conftest.$ac_ext
  6030. cat >>conftest.$ac_ext <<_ACEOF
  6031. /* end confdefs.h. */
  6032. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6033. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6034. #define $ac_func innocuous_$ac_func
  6035. /* System header to define __stub macros and hopefully few prototypes,
  6036. which can conflict with char $ac_func (); below.
  6037. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6038. <limits.h> exists even on freestanding compilers. */
  6039. #ifdef __STDC__
  6040. # include <limits.h>
  6041. #else
  6042. # include <assert.h>
  6043. #endif
  6044. #undef $ac_func
  6045. /* Override any GCC internal prototype to avoid an error.
  6046. Use char because int might match the return type of a GCC
  6047. builtin and then its argument prototype would still apply. */
  6048. #ifdef __cplusplus
  6049. extern "C"
  6050. #endif
  6051. char $ac_func ();
  6052. /* The GNU C library defines this for functions which it implements
  6053. to always fail with ENOSYS. Some functions are actually named
  6054. something starting with __ and the normal name is an alias. */
  6055. #if defined __stub_$ac_func || defined __stub___$ac_func
  6056. choke me
  6057. #endif
  6058. int
  6059. main ()
  6060. {
  6061. return $ac_func ();
  6062. ;
  6063. return 0;
  6064. }
  6065. _ACEOF
  6066. rm -f conftest.$ac_objext conftest$ac_exeext
  6067. if { (ac_try="$ac_link"
  6068. case "(($ac_try" in
  6069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6070. *) ac_try_echo=$ac_try;;
  6071. esac
  6072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6073. (eval "$ac_link") 2>conftest.er1
  6074. ac_status=$?
  6075. grep -v '^ *+' conftest.er1 >conftest.err
  6076. rm -f conftest.er1
  6077. cat conftest.err >&5
  6078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6079. (exit $ac_status); } && {
  6080. test -z "$ac_cxx_werror_flag" ||
  6081. test ! -s conftest.err
  6082. } && test -s conftest$ac_exeext &&
  6083. $as_test_x conftest$ac_exeext; then
  6084. eval "$as_ac_var=yes"
  6085. else
  6086. echo "$as_me: failed program was:" >&5
  6087. sed 's/^/| /' conftest.$ac_ext >&5
  6088. eval "$as_ac_var=no"
  6089. fi
  6090. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6091. conftest$ac_exeext conftest.$ac_ext
  6092. fi
  6093. ac_res=`eval echo '${'$as_ac_var'}'`
  6094. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6095. echo "${ECHO_T}$ac_res" >&6; }
  6096. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6097. cat >>confdefs.h <<_ACEOF
  6098. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6099. _ACEOF
  6100. have_digestinit_ex=yes
  6101. fi
  6102. done
  6103. if test "x$have_digestinit_ex" = "x"; then
  6104. cat >>confdefs.h <<\_ACEOF
  6105. #define HAVE_OLD_LIBSSL 1
  6106. _ACEOF
  6107. fi
  6108. # search for sha256 support
  6109. for ac_func in EVP_sha256
  6110. do
  6111. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6112. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6113. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6114. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6115. echo $ECHO_N "(cached) $ECHO_C" >&6
  6116. else
  6117. cat >conftest.$ac_ext <<_ACEOF
  6118. /* confdefs.h. */
  6119. _ACEOF
  6120. cat confdefs.h >>conftest.$ac_ext
  6121. cat >>conftest.$ac_ext <<_ACEOF
  6122. /* end confdefs.h. */
  6123. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6124. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6125. #define $ac_func innocuous_$ac_func
  6126. /* System header to define __stub macros and hopefully few prototypes,
  6127. which can conflict with char $ac_func (); below.
  6128. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6129. <limits.h> exists even on freestanding compilers. */
  6130. #ifdef __STDC__
  6131. # include <limits.h>
  6132. #else
  6133. # include <assert.h>
  6134. #endif
  6135. #undef $ac_func
  6136. /* Override any GCC internal prototype to avoid an error.
  6137. Use char because int might match the return type of a GCC
  6138. builtin and then its argument prototype would still apply. */
  6139. #ifdef __cplusplus
  6140. extern "C"
  6141. #endif
  6142. char $ac_func ();
  6143. /* The GNU C library defines this for functions which it implements
  6144. to always fail with ENOSYS. Some functions are actually named
  6145. something starting with __ and the normal name is an alias. */
  6146. #if defined __stub_$ac_func || defined __stub___$ac_func
  6147. choke me
  6148. #endif
  6149. int
  6150. main ()
  6151. {
  6152. return $ac_func ();
  6153. ;
  6154. return 0;
  6155. }
  6156. _ACEOF
  6157. rm -f conftest.$ac_objext conftest$ac_exeext
  6158. if { (ac_try="$ac_link"
  6159. case "(($ac_try" in
  6160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6161. *) ac_try_echo=$ac_try;;
  6162. esac
  6163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6164. (eval "$ac_link") 2>conftest.er1
  6165. ac_status=$?
  6166. grep -v '^ *+' conftest.er1 >conftest.err
  6167. rm -f conftest.er1
  6168. cat conftest.err >&5
  6169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6170. (exit $ac_status); } && {
  6171. test -z "$ac_cxx_werror_flag" ||
  6172. test ! -s conftest.err
  6173. } && test -s conftest$ac_exeext &&
  6174. $as_test_x conftest$ac_exeext; then
  6175. eval "$as_ac_var=yes"
  6176. else
  6177. echo "$as_me: failed program was:" >&5
  6178. sed 's/^/| /' conftest.$ac_ext >&5
  6179. eval "$as_ac_var=no"
  6180. fi
  6181. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6182. conftest$ac_exeext conftest.$ac_ext
  6183. fi
  6184. ac_res=`eval echo '${'$as_ac_var'}'`
  6185. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6186. echo "${ECHO_T}$ac_res" >&6; }
  6187. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6188. cat >>confdefs.h <<_ACEOF
  6189. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6190. _ACEOF
  6191. fi
  6192. done
  6193. fi
  6194. LIBS=$LIBS_save
  6195. CPPFLAGS=$CPPFLAGS_save
  6196. fi
  6197. if test "x$with_libcares" = "xyes"; then
  6198. # Check whether --with-libcares-prefix was given.
  6199. if test "${with_libcares_prefix+set}" = set; then
  6200. withval=$with_libcares_prefix; libcares_prefix=$withval
  6201. else
  6202. libcares_prefix=""
  6203. fi
  6204. if test "x$libcares_prefix" = "x"; then
  6205. libcares_prefix="/usr"
  6206. fi
  6207. libcares_prefix_lib=$libcares_prefix/lib
  6208. libcares_prefix_include=$libcares_prefix/include
  6209. LIBS_save=$LIBS
  6210. CPPFLAGS_save=$CPPFLAGS
  6211. LIBS="-L$libcares_prefix_lib $LIBS"
  6212. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6213. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6214. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6215. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6216. echo $ECHO_N "(cached) $ECHO_C" >&6
  6217. else
  6218. ac_check_lib_save_LIBS=$LIBS
  6219. LIBS="-lcares $LIBS"
  6220. cat >conftest.$ac_ext <<_ACEOF
  6221. /* confdefs.h. */
  6222. _ACEOF
  6223. cat confdefs.h >>conftest.$ac_ext
  6224. cat >>conftest.$ac_ext <<_ACEOF
  6225. /* end confdefs.h. */
  6226. /* Override any GCC internal prototype to avoid an error.
  6227. Use char because int might match the return type of a GCC
  6228. builtin and then its argument prototype would still apply. */
  6229. #ifdef __cplusplus
  6230. extern "C"
  6231. #endif
  6232. char ares_init ();
  6233. int
  6234. main ()
  6235. {
  6236. return ares_init ();
  6237. ;
  6238. return 0;
  6239. }
  6240. _ACEOF
  6241. rm -f conftest.$ac_objext conftest$ac_exeext
  6242. if { (ac_try="$ac_link"
  6243. case "(($ac_try" in
  6244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6245. *) ac_try_echo=$ac_try;;
  6246. esac
  6247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6248. (eval "$ac_link") 2>conftest.er1
  6249. ac_status=$?
  6250. grep -v '^ *+' conftest.er1 >conftest.err
  6251. rm -f conftest.er1
  6252. cat conftest.err >&5
  6253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6254. (exit $ac_status); } && {
  6255. test -z "$ac_cxx_werror_flag" ||
  6256. test ! -s conftest.err
  6257. } && test -s conftest$ac_exeext &&
  6258. $as_test_x conftest$ac_exeext; then
  6259. ac_cv_lib_cares_ares_init=yes
  6260. else
  6261. echo "$as_me: failed program was:" >&5
  6262. sed 's/^/| /' conftest.$ac_ext >&5
  6263. ac_cv_lib_cares_ares_init=no
  6264. fi
  6265. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6266. conftest$ac_exeext conftest.$ac_ext
  6267. LIBS=$ac_check_lib_save_LIBS
  6268. fi
  6269. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6270. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6271. if test $ac_cv_lib_cares_ares_init = yes; then
  6272. have_libcares=yes
  6273. fi
  6274. if test "x$have_libcares" != "xyes"; then
  6275. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6276. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6277. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6278. echo $ECHO_N "(cached) $ECHO_C" >&6
  6279. else
  6280. ac_check_lib_save_LIBS=$LIBS
  6281. LIBS="-lcares -lrt $LIBS"
  6282. cat >conftest.$ac_ext <<_ACEOF
  6283. /* confdefs.h. */
  6284. _ACEOF
  6285. cat confdefs.h >>conftest.$ac_ext
  6286. cat >>conftest.$ac_ext <<_ACEOF
  6287. /* end confdefs.h. */
  6288. /* Override any GCC internal prototype to avoid an error.
  6289. Use char because int might match the return type of a GCC
  6290. builtin and then its argument prototype would still apply. */
  6291. #ifdef __cplusplus
  6292. extern "C"
  6293. #endif
  6294. char ares_init ();
  6295. int
  6296. main ()
  6297. {
  6298. return ares_init ();
  6299. ;
  6300. return 0;
  6301. }
  6302. _ACEOF
  6303. rm -f conftest.$ac_objext conftest$ac_exeext
  6304. if { (ac_try="$ac_link"
  6305. case "(($ac_try" in
  6306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6307. *) ac_try_echo=$ac_try;;
  6308. esac
  6309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6310. (eval "$ac_link") 2>conftest.er1
  6311. ac_status=$?
  6312. grep -v '^ *+' conftest.er1 >conftest.err
  6313. rm -f conftest.er1
  6314. cat conftest.err >&5
  6315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6316. (exit $ac_status); } && {
  6317. test -z "$ac_cxx_werror_flag" ||
  6318. test ! -s conftest.err
  6319. } && test -s conftest$ac_exeext &&
  6320. $as_test_x conftest$ac_exeext; then
  6321. ac_cv_lib_cares_ares_init=yes
  6322. else
  6323. echo "$as_me: failed program was:" >&5
  6324. sed 's/^/| /' conftest.$ac_ext >&5
  6325. ac_cv_lib_cares_ares_init=no
  6326. fi
  6327. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6328. conftest$ac_exeext conftest.$ac_ext
  6329. LIBS=$ac_check_lib_save_LIBS
  6330. fi
  6331. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6332. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6333. if test $ac_cv_lib_cares_ares_init = yes; then
  6334. have_libcares=yes need_librt=yes
  6335. fi
  6336. fi
  6337. if test "x$have_libcares" = "xyes"; then
  6338. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6339. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6340. cat >conftest.$ac_ext <<_ACEOF
  6341. /* confdefs.h. */
  6342. _ACEOF
  6343. cat confdefs.h >>conftest.$ac_ext
  6344. cat >>conftest.$ac_ext <<_ACEOF
  6345. /* end confdefs.h. */
  6346. #include <ares.h>
  6347. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6348. int
  6349. main ()
  6350. {
  6351. ares_channel channel;
  6352. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6353. ;
  6354. return 0;
  6355. }
  6356. _ACEOF
  6357. rm -f conftest.$ac_objext
  6358. if { (ac_try="$ac_compile"
  6359. case "(($ac_try" in
  6360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6361. *) ac_try_echo=$ac_try;;
  6362. esac
  6363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6364. (eval "$ac_compile") 2>conftest.er1
  6365. ac_status=$?
  6366. grep -v '^ *+' conftest.er1 >conftest.err
  6367. rm -f conftest.er1
  6368. cat conftest.err >&5
  6369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6370. (exit $ac_status); } && {
  6371. test -z "$ac_cxx_werror_flag" ||
  6372. test ! -s conftest.err
  6373. } && test -s conftest.$ac_objext; then
  6374. have_libcares1_5=yes
  6375. else
  6376. echo "$as_me: failed program was:" >&5
  6377. sed 's/^/| /' conftest.$ac_ext >&5
  6378. have_libcares1_5=no
  6379. fi
  6380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6381. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6382. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6383. if test "x$have_libcares1_5" = "xyes"; then
  6384. cat >>confdefs.h <<\_ACEOF
  6385. #define HAVE_LIBCARES1_5 1
  6386. _ACEOF
  6387. fi
  6388. cat >>confdefs.h <<\_ACEOF
  6389. #define HAVE_LIBCARES 1
  6390. _ACEOF
  6391. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6392. if test "x$need_librt" = "xyes"; then
  6393. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6394. fi
  6395. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6396. fi
  6397. LIBS=$LIBS_save
  6398. CPPFLAGS=$CPPFLAGS_save
  6399. fi
  6400. # Check availability of libz
  6401. if test "x$with_libz" = "xyes"; then
  6402. # Check whether --with-libz-prefix was given.
  6403. if test "${with_libz_prefix+set}" = set; then
  6404. withval=$with_libz_prefix; libz_prefix=$withval
  6405. else
  6406. libz_prefix=""
  6407. fi
  6408. if test "x$libz_prefix" = "x"; then
  6409. libz_prefix="/usr"
  6410. fi
  6411. libz_prefix_lib=$libz_prefix/lib
  6412. libz_prefix_include=$libz_prefix/include
  6413. LIBS_save=$LIBS
  6414. CPPFLAGS_save=$CPPFLAGS
  6415. LIBS="-L$libz_prefix_lib $LIBS"
  6416. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6417. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6418. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6419. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6420. echo $ECHO_N "(cached) $ECHO_C" >&6
  6421. else
  6422. ac_check_lib_save_LIBS=$LIBS
  6423. LIBS="-lz $LIBS"
  6424. cat >conftest.$ac_ext <<_ACEOF
  6425. /* confdefs.h. */
  6426. _ACEOF
  6427. cat confdefs.h >>conftest.$ac_ext
  6428. cat >>conftest.$ac_ext <<_ACEOF
  6429. /* end confdefs.h. */
  6430. /* Override any GCC internal prototype to avoid an error.
  6431. Use char because int might match the return type of a GCC
  6432. builtin and then its argument prototype would still apply. */
  6433. #ifdef __cplusplus
  6434. extern "C"
  6435. #endif
  6436. char zlibVersion ();
  6437. int
  6438. main ()
  6439. {
  6440. return zlibVersion ();
  6441. ;
  6442. return 0;
  6443. }
  6444. _ACEOF
  6445. rm -f conftest.$ac_objext conftest$ac_exeext
  6446. if { (ac_try="$ac_link"
  6447. case "(($ac_try" in
  6448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6449. *) ac_try_echo=$ac_try;;
  6450. esac
  6451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6452. (eval "$ac_link") 2>conftest.er1
  6453. ac_status=$?
  6454. grep -v '^ *+' conftest.er1 >conftest.err
  6455. rm -f conftest.er1
  6456. cat conftest.err >&5
  6457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6458. (exit $ac_status); } && {
  6459. test -z "$ac_cxx_werror_flag" ||
  6460. test ! -s conftest.err
  6461. } && test -s conftest$ac_exeext &&
  6462. $as_test_x conftest$ac_exeext; then
  6463. ac_cv_lib_z_zlibVersion=yes
  6464. else
  6465. echo "$as_me: failed program was:" >&5
  6466. sed 's/^/| /' conftest.$ac_ext >&5
  6467. ac_cv_lib_z_zlibVersion=no
  6468. fi
  6469. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6470. conftest$ac_exeext conftest.$ac_ext
  6471. LIBS=$ac_check_lib_save_LIBS
  6472. fi
  6473. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6474. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6475. if test $ac_cv_lib_z_zlibVersion = yes; then
  6476. have_libz=yes
  6477. fi
  6478. if test "x$have_libz" = "xyes"; then
  6479. cat >>confdefs.h <<\_ACEOF
  6480. #define HAVE_LIBZ 1
  6481. _ACEOF
  6482. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6483. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6484. fi
  6485. LIBS=$LIBS_save
  6486. CPPFLAGS=$CPPFLAGS_save
  6487. fi
  6488. # Define variables based on the result of the checks for libraries.
  6489. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6490. cat >>confdefs.h <<\_ACEOF
  6491. #define ENABLE_SSL 1
  6492. _ACEOF
  6493. if true; then
  6494. ENABLE_SSL_TRUE=
  6495. ENABLE_SSL_FALSE='#'
  6496. else
  6497. ENABLE_SSL_TRUE='#'
  6498. ENABLE_SSL_FALSE=
  6499. fi
  6500. else
  6501. if false; then
  6502. ENABLE_SSL_TRUE=
  6503. ENABLE_SSL_FALSE='#'
  6504. else
  6505. ENABLE_SSL_TRUE='#'
  6506. ENABLE_SSL_FALSE=
  6507. fi
  6508. fi
  6509. if test "x$have_libgnutls" = "xyes" ; then
  6510. HAVE_LIBGNUTLS_TRUE=
  6511. HAVE_LIBGNUTLS_FALSE='#'
  6512. else
  6513. HAVE_LIBGNUTLS_TRUE='#'
  6514. HAVE_LIBGNUTLS_FALSE=
  6515. fi
  6516. if test "x$have_openssl" = "xyes" ; then
  6517. HAVE_LIBSSL_TRUE=
  6518. HAVE_LIBSSL_FALSE='#'
  6519. else
  6520. HAVE_LIBSSL_TRUE='#'
  6521. HAVE_LIBSSL_FALSE=
  6522. fi
  6523. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6524. cat >>confdefs.h <<\_ACEOF
  6525. #define ENABLE_MESSAGE_DIGEST 1
  6526. _ACEOF
  6527. if true; then
  6528. ENABLE_MESSAGE_DIGEST_TRUE=
  6529. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6530. else
  6531. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6532. ENABLE_MESSAGE_DIGEST_FALSE=
  6533. fi
  6534. enable_message_digest=yes
  6535. else
  6536. if false; then
  6537. ENABLE_MESSAGE_DIGEST_TRUE=
  6538. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6539. else
  6540. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6541. ENABLE_MESSAGE_DIGEST_FALSE=
  6542. fi
  6543. fi
  6544. if test "x$enable_bittorrent" = "xyes" &&
  6545. test "x$enable_message_digest" = "xyes"; then
  6546. cat >>confdefs.h <<\_ACEOF
  6547. #define ENABLE_BITTORRENT 1
  6548. _ACEOF
  6549. if true; then
  6550. ENABLE_BITTORRENT_TRUE=
  6551. ENABLE_BITTORRENT_FALSE='#'
  6552. else
  6553. ENABLE_BITTORRENT_TRUE='#'
  6554. ENABLE_BITTORRENT_FALSE=
  6555. fi
  6556. else
  6557. enable_bittorrent=no
  6558. if false; then
  6559. ENABLE_BITTORRENT_TRUE=
  6560. ENABLE_BITTORRENT_FALSE='#'
  6561. else
  6562. ENABLE_BITTORRENT_TRUE='#'
  6563. ENABLE_BITTORRENT_FALSE=
  6564. fi
  6565. fi
  6566. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6567. test "x$enable_metalink" = "xyes"; then
  6568. cat >>confdefs.h <<\_ACEOF
  6569. #define ENABLE_METALINK 1
  6570. _ACEOF
  6571. if true; then
  6572. ENABLE_METALINK_TRUE=
  6573. ENABLE_METALINK_FALSE='#'
  6574. else
  6575. ENABLE_METALINK_TRUE='#'
  6576. ENABLE_METALINK_FALSE=
  6577. fi
  6578. else
  6579. enable_metalink=no
  6580. if false; then
  6581. ENABLE_METALINK_TRUE=
  6582. ENABLE_METALINK_FALSE='#'
  6583. else
  6584. ENABLE_METALINK_TRUE='#'
  6585. ENABLE_METALINK_FALSE=
  6586. fi
  6587. fi
  6588. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6589. ENABLE_LIBXML2_TRUE=
  6590. ENABLE_LIBXML2_FALSE='#'
  6591. else
  6592. ENABLE_LIBXML2_TRUE='#'
  6593. ENABLE_LIBXML2_FALSE=
  6594. fi
  6595. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6596. ENABLE_LIBEXPAT_TRUE=
  6597. ENABLE_LIBEXPAT_FALSE='#'
  6598. else
  6599. ENABLE_LIBEXPAT_TRUE='#'
  6600. ENABLE_LIBEXPAT_FALSE=
  6601. fi
  6602. if test "x$have_libcares" = "xyes"; then
  6603. cat >>confdefs.h <<\_ACEOF
  6604. #define ENABLE_ASYNC_DNS 1
  6605. _ACEOF
  6606. if true; then
  6607. ENABLE_ASYNC_DNS_TRUE=
  6608. ENABLE_ASYNC_DNS_FALSE='#'
  6609. else
  6610. ENABLE_ASYNC_DNS_TRUE='#'
  6611. ENABLE_ASYNC_DNS_FALSE=
  6612. fi
  6613. else
  6614. if false; then
  6615. ENABLE_ASYNC_DNS_TRUE=
  6616. ENABLE_ASYNC_DNS_FALSE='#'
  6617. else
  6618. ENABLE_ASYNC_DNS_TRUE='#'
  6619. ENABLE_ASYNC_DNS_FALSE=
  6620. fi
  6621. fi
  6622. # Set conditional for libz
  6623. if test "x$have_libz" = "xyes"; then
  6624. HAVE_LIBZ_TRUE=
  6625. HAVE_LIBZ_FALSE='#'
  6626. else
  6627. HAVE_LIBZ_TRUE='#'
  6628. HAVE_LIBZ_FALSE=
  6629. fi
  6630. # Set conditional for sqlite3
  6631. if test "x$have_sqlite3" = "xyes"; then
  6632. HAVE_SQLITE3_TRUE=
  6633. HAVE_SQLITE3_FALSE='#'
  6634. else
  6635. HAVE_SQLITE3_TRUE='#'
  6636. HAVE_SQLITE3_FALSE=
  6637. fi
  6638. # Checks for header files.
  6639. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6640. # for constant arguments. Useless!
  6641. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6642. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6643. if test "${ac_cv_working_alloca_h+set}" = set; then
  6644. echo $ECHO_N "(cached) $ECHO_C" >&6
  6645. else
  6646. cat >conftest.$ac_ext <<_ACEOF
  6647. /* confdefs.h. */
  6648. _ACEOF
  6649. cat confdefs.h >>conftest.$ac_ext
  6650. cat >>conftest.$ac_ext <<_ACEOF
  6651. /* end confdefs.h. */
  6652. #include <alloca.h>
  6653. int
  6654. main ()
  6655. {
  6656. char *p = (char *) alloca (2 * sizeof (int));
  6657. if (p) return 0;
  6658. ;
  6659. return 0;
  6660. }
  6661. _ACEOF
  6662. rm -f conftest.$ac_objext conftest$ac_exeext
  6663. if { (ac_try="$ac_link"
  6664. case "(($ac_try" in
  6665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6666. *) ac_try_echo=$ac_try;;
  6667. esac
  6668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6669. (eval "$ac_link") 2>conftest.er1
  6670. ac_status=$?
  6671. grep -v '^ *+' conftest.er1 >conftest.err
  6672. rm -f conftest.er1
  6673. cat conftest.err >&5
  6674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6675. (exit $ac_status); } && {
  6676. test -z "$ac_cxx_werror_flag" ||
  6677. test ! -s conftest.err
  6678. } && test -s conftest$ac_exeext &&
  6679. $as_test_x conftest$ac_exeext; then
  6680. ac_cv_working_alloca_h=yes
  6681. else
  6682. echo "$as_me: failed program was:" >&5
  6683. sed 's/^/| /' conftest.$ac_ext >&5
  6684. ac_cv_working_alloca_h=no
  6685. fi
  6686. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6687. conftest$ac_exeext conftest.$ac_ext
  6688. fi
  6689. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6690. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6691. if test $ac_cv_working_alloca_h = yes; then
  6692. cat >>confdefs.h <<\_ACEOF
  6693. #define HAVE_ALLOCA_H 1
  6694. _ACEOF
  6695. fi
  6696. { echo "$as_me:$LINENO: checking for alloca" >&5
  6697. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6698. if test "${ac_cv_func_alloca_works+set}" = set; then
  6699. echo $ECHO_N "(cached) $ECHO_C" >&6
  6700. else
  6701. cat >conftest.$ac_ext <<_ACEOF
  6702. /* confdefs.h. */
  6703. _ACEOF
  6704. cat confdefs.h >>conftest.$ac_ext
  6705. cat >>conftest.$ac_ext <<_ACEOF
  6706. /* end confdefs.h. */
  6707. #ifdef __GNUC__
  6708. # define alloca __builtin_alloca
  6709. #else
  6710. # ifdef _MSC_VER
  6711. # include <malloc.h>
  6712. # define alloca _alloca
  6713. # else
  6714. # ifdef HAVE_ALLOCA_H
  6715. # include <alloca.h>
  6716. # else
  6717. # ifdef _AIX
  6718. #pragma alloca
  6719. # else
  6720. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6721. char *alloca ();
  6722. # endif
  6723. # endif
  6724. # endif
  6725. # endif
  6726. #endif
  6727. int
  6728. main ()
  6729. {
  6730. char *p = (char *) alloca (1);
  6731. if (p) return 0;
  6732. ;
  6733. return 0;
  6734. }
  6735. _ACEOF
  6736. rm -f conftest.$ac_objext conftest$ac_exeext
  6737. if { (ac_try="$ac_link"
  6738. case "(($ac_try" in
  6739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6740. *) ac_try_echo=$ac_try;;
  6741. esac
  6742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6743. (eval "$ac_link") 2>conftest.er1
  6744. ac_status=$?
  6745. grep -v '^ *+' conftest.er1 >conftest.err
  6746. rm -f conftest.er1
  6747. cat conftest.err >&5
  6748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6749. (exit $ac_status); } && {
  6750. test -z "$ac_cxx_werror_flag" ||
  6751. test ! -s conftest.err
  6752. } && test -s conftest$ac_exeext &&
  6753. $as_test_x conftest$ac_exeext; then
  6754. ac_cv_func_alloca_works=yes
  6755. else
  6756. echo "$as_me: failed program was:" >&5
  6757. sed 's/^/| /' conftest.$ac_ext >&5
  6758. ac_cv_func_alloca_works=no
  6759. fi
  6760. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6761. conftest$ac_exeext conftest.$ac_ext
  6762. fi
  6763. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6764. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6765. if test $ac_cv_func_alloca_works = yes; then
  6766. cat >>confdefs.h <<\_ACEOF
  6767. #define HAVE_ALLOCA 1
  6768. _ACEOF
  6769. else
  6770. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6771. # that cause trouble. Some versions do not even contain alloca or
  6772. # contain a buggy version. If you still want to use their alloca,
  6773. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6774. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6775. cat >>confdefs.h <<\_ACEOF
  6776. #define C_ALLOCA 1
  6777. _ACEOF
  6778. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6779. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6780. if test "${ac_cv_os_cray+set}" = set; then
  6781. echo $ECHO_N "(cached) $ECHO_C" >&6
  6782. else
  6783. cat >conftest.$ac_ext <<_ACEOF
  6784. /* confdefs.h. */
  6785. _ACEOF
  6786. cat confdefs.h >>conftest.$ac_ext
  6787. cat >>conftest.$ac_ext <<_ACEOF
  6788. /* end confdefs.h. */
  6789. #if defined CRAY && ! defined CRAY2
  6790. webecray
  6791. #else
  6792. wenotbecray
  6793. #endif
  6794. _ACEOF
  6795. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6796. $EGREP "webecray" >/dev/null 2>&1; then
  6797. ac_cv_os_cray=yes
  6798. else
  6799. ac_cv_os_cray=no
  6800. fi
  6801. rm -f conftest*
  6802. fi
  6803. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6804. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6805. if test $ac_cv_os_cray = yes; then
  6806. for ac_func in _getb67 GETB67 getb67; do
  6807. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6808. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6809. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6810. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6811. echo $ECHO_N "(cached) $ECHO_C" >&6
  6812. else
  6813. cat >conftest.$ac_ext <<_ACEOF
  6814. /* confdefs.h. */
  6815. _ACEOF
  6816. cat confdefs.h >>conftest.$ac_ext
  6817. cat >>conftest.$ac_ext <<_ACEOF
  6818. /* end confdefs.h. */
  6819. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6820. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6821. #define $ac_func innocuous_$ac_func
  6822. /* System header to define __stub macros and hopefully few prototypes,
  6823. which can conflict with char $ac_func (); below.
  6824. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6825. <limits.h> exists even on freestanding compilers. */
  6826. #ifdef __STDC__
  6827. # include <limits.h>
  6828. #else
  6829. # include <assert.h>
  6830. #endif
  6831. #undef $ac_func
  6832. /* Override any GCC internal prototype to avoid an error.
  6833. Use char because int might match the return type of a GCC
  6834. builtin and then its argument prototype would still apply. */
  6835. #ifdef __cplusplus
  6836. extern "C"
  6837. #endif
  6838. char $ac_func ();
  6839. /* The GNU C library defines this for functions which it implements
  6840. to always fail with ENOSYS. Some functions are actually named
  6841. something starting with __ and the normal name is an alias. */
  6842. #if defined __stub_$ac_func || defined __stub___$ac_func
  6843. choke me
  6844. #endif
  6845. int
  6846. main ()
  6847. {
  6848. return $ac_func ();
  6849. ;
  6850. return 0;
  6851. }
  6852. _ACEOF
  6853. rm -f conftest.$ac_objext conftest$ac_exeext
  6854. if { (ac_try="$ac_link"
  6855. case "(($ac_try" in
  6856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6857. *) ac_try_echo=$ac_try;;
  6858. esac
  6859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6860. (eval "$ac_link") 2>conftest.er1
  6861. ac_status=$?
  6862. grep -v '^ *+' conftest.er1 >conftest.err
  6863. rm -f conftest.er1
  6864. cat conftest.err >&5
  6865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6866. (exit $ac_status); } && {
  6867. test -z "$ac_cxx_werror_flag" ||
  6868. test ! -s conftest.err
  6869. } && test -s conftest$ac_exeext &&
  6870. $as_test_x conftest$ac_exeext; then
  6871. eval "$as_ac_var=yes"
  6872. else
  6873. echo "$as_me: failed program was:" >&5
  6874. sed 's/^/| /' conftest.$ac_ext >&5
  6875. eval "$as_ac_var=no"
  6876. fi
  6877. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6878. conftest$ac_exeext conftest.$ac_ext
  6879. fi
  6880. ac_res=`eval echo '${'$as_ac_var'}'`
  6881. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6882. echo "${ECHO_T}$ac_res" >&6; }
  6883. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6884. cat >>confdefs.h <<_ACEOF
  6885. #define CRAY_STACKSEG_END $ac_func
  6886. _ACEOF
  6887. break
  6888. fi
  6889. done
  6890. fi
  6891. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6892. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6893. if test "${ac_cv_c_stack_direction+set}" = set; then
  6894. echo $ECHO_N "(cached) $ECHO_C" >&6
  6895. else
  6896. if test "$cross_compiling" = yes; then
  6897. ac_cv_c_stack_direction=0
  6898. else
  6899. cat >conftest.$ac_ext <<_ACEOF
  6900. /* confdefs.h. */
  6901. _ACEOF
  6902. cat confdefs.h >>conftest.$ac_ext
  6903. cat >>conftest.$ac_ext <<_ACEOF
  6904. /* end confdefs.h. */
  6905. $ac_includes_default
  6906. int
  6907. find_stack_direction ()
  6908. {
  6909. static char *addr = 0;
  6910. auto char dummy;
  6911. if (addr == 0)
  6912. {
  6913. addr = &dummy;
  6914. return find_stack_direction ();
  6915. }
  6916. else
  6917. return (&dummy > addr) ? 1 : -1;
  6918. }
  6919. int
  6920. main ()
  6921. {
  6922. return find_stack_direction () < 0;
  6923. }
  6924. _ACEOF
  6925. rm -f conftest$ac_exeext
  6926. if { (ac_try="$ac_link"
  6927. case "(($ac_try" in
  6928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6929. *) ac_try_echo=$ac_try;;
  6930. esac
  6931. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6932. (eval "$ac_link") 2>&5
  6933. ac_status=$?
  6934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6935. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6936. { (case "(($ac_try" in
  6937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6938. *) ac_try_echo=$ac_try;;
  6939. esac
  6940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6941. (eval "$ac_try") 2>&5
  6942. ac_status=$?
  6943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. (exit $ac_status); }; }; then
  6945. ac_cv_c_stack_direction=1
  6946. else
  6947. echo "$as_me: program exited with status $ac_status" >&5
  6948. echo "$as_me: failed program was:" >&5
  6949. sed 's/^/| /' conftest.$ac_ext >&5
  6950. ( exit $ac_status )
  6951. ac_cv_c_stack_direction=-1
  6952. fi
  6953. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6954. fi
  6955. fi
  6956. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6957. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6958. cat >>confdefs.h <<_ACEOF
  6959. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6960. _ACEOF
  6961. fi
  6962. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6963. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6964. if test "${ac_cv_header_stdc+set}" = set; then
  6965. echo $ECHO_N "(cached) $ECHO_C" >&6
  6966. else
  6967. cat >conftest.$ac_ext <<_ACEOF
  6968. /* confdefs.h. */
  6969. _ACEOF
  6970. cat confdefs.h >>conftest.$ac_ext
  6971. cat >>conftest.$ac_ext <<_ACEOF
  6972. /* end confdefs.h. */
  6973. #include <stdlib.h>
  6974. #include <stdarg.h>
  6975. #include <string.h>
  6976. #include <float.h>
  6977. int
  6978. main ()
  6979. {
  6980. ;
  6981. return 0;
  6982. }
  6983. _ACEOF
  6984. rm -f conftest.$ac_objext
  6985. if { (ac_try="$ac_compile"
  6986. case "(($ac_try" in
  6987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6988. *) ac_try_echo=$ac_try;;
  6989. esac
  6990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6991. (eval "$ac_compile") 2>conftest.er1
  6992. ac_status=$?
  6993. grep -v '^ *+' conftest.er1 >conftest.err
  6994. rm -f conftest.er1
  6995. cat conftest.err >&5
  6996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6997. (exit $ac_status); } && {
  6998. test -z "$ac_cxx_werror_flag" ||
  6999. test ! -s conftest.err
  7000. } && test -s conftest.$ac_objext; then
  7001. ac_cv_header_stdc=yes
  7002. else
  7003. echo "$as_me: failed program was:" >&5
  7004. sed 's/^/| /' conftest.$ac_ext >&5
  7005. ac_cv_header_stdc=no
  7006. fi
  7007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7008. if test $ac_cv_header_stdc = yes; then
  7009. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7010. cat >conftest.$ac_ext <<_ACEOF
  7011. /* confdefs.h. */
  7012. _ACEOF
  7013. cat confdefs.h >>conftest.$ac_ext
  7014. cat >>conftest.$ac_ext <<_ACEOF
  7015. /* end confdefs.h. */
  7016. #include <string.h>
  7017. _ACEOF
  7018. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7019. $EGREP "memchr" >/dev/null 2>&1; then
  7020. :
  7021. else
  7022. ac_cv_header_stdc=no
  7023. fi
  7024. rm -f conftest*
  7025. fi
  7026. if test $ac_cv_header_stdc = yes; then
  7027. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7028. cat >conftest.$ac_ext <<_ACEOF
  7029. /* confdefs.h. */
  7030. _ACEOF
  7031. cat confdefs.h >>conftest.$ac_ext
  7032. cat >>conftest.$ac_ext <<_ACEOF
  7033. /* end confdefs.h. */
  7034. #include <stdlib.h>
  7035. _ACEOF
  7036. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7037. $EGREP "free" >/dev/null 2>&1; then
  7038. :
  7039. else
  7040. ac_cv_header_stdc=no
  7041. fi
  7042. rm -f conftest*
  7043. fi
  7044. if test $ac_cv_header_stdc = yes; then
  7045. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7046. if test "$cross_compiling" = yes; then
  7047. :
  7048. else
  7049. cat >conftest.$ac_ext <<_ACEOF
  7050. /* confdefs.h. */
  7051. _ACEOF
  7052. cat confdefs.h >>conftest.$ac_ext
  7053. cat >>conftest.$ac_ext <<_ACEOF
  7054. /* end confdefs.h. */
  7055. #include <ctype.h>
  7056. #include <stdlib.h>
  7057. #if ((' ' & 0x0FF) == 0x020)
  7058. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7059. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7060. #else
  7061. # define ISLOWER(c) \
  7062. (('a' <= (c) && (c) <= 'i') \
  7063. || ('j' <= (c) && (c) <= 'r') \
  7064. || ('s' <= (c) && (c) <= 'z'))
  7065. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7066. #endif
  7067. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7068. int
  7069. main ()
  7070. {
  7071. int i;
  7072. for (i = 0; i < 256; i++)
  7073. if (XOR (islower (i), ISLOWER (i))
  7074. || toupper (i) != TOUPPER (i))
  7075. return 2;
  7076. return 0;
  7077. }
  7078. _ACEOF
  7079. rm -f conftest$ac_exeext
  7080. if { (ac_try="$ac_link"
  7081. case "(($ac_try" in
  7082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7083. *) ac_try_echo=$ac_try;;
  7084. esac
  7085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7086. (eval "$ac_link") 2>&5
  7087. ac_status=$?
  7088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7089. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7090. { (case "(($ac_try" in
  7091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7092. *) ac_try_echo=$ac_try;;
  7093. esac
  7094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7095. (eval "$ac_try") 2>&5
  7096. ac_status=$?
  7097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7098. (exit $ac_status); }; }; then
  7099. :
  7100. else
  7101. echo "$as_me: program exited with status $ac_status" >&5
  7102. echo "$as_me: failed program was:" >&5
  7103. sed 's/^/| /' conftest.$ac_ext >&5
  7104. ( exit $ac_status )
  7105. ac_cv_header_stdc=no
  7106. fi
  7107. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7108. fi
  7109. fi
  7110. fi
  7111. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7112. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7113. if test $ac_cv_header_stdc = yes; then
  7114. cat >>confdefs.h <<\_ACEOF
  7115. #define STDC_HEADERS 1
  7116. _ACEOF
  7117. fi
  7118. case "$target" in
  7119. *mingw*)
  7120. for ac_header in winsock2.h \
  7121. ws2tcpip.h
  7122. do
  7123. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7124. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7125. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7126. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7127. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7128. echo $ECHO_N "(cached) $ECHO_C" >&6
  7129. fi
  7130. ac_res=`eval echo '${'$as_ac_Header'}'`
  7131. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7132. echo "${ECHO_T}$ac_res" >&6; }
  7133. else
  7134. # Is the header compilable?
  7135. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7136. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7137. cat >conftest.$ac_ext <<_ACEOF
  7138. /* confdefs.h. */
  7139. _ACEOF
  7140. cat confdefs.h >>conftest.$ac_ext
  7141. cat >>conftest.$ac_ext <<_ACEOF
  7142. /* end confdefs.h. */
  7143. $ac_includes_default
  7144. #include <$ac_header>
  7145. _ACEOF
  7146. rm -f conftest.$ac_objext
  7147. if { (ac_try="$ac_compile"
  7148. case "(($ac_try" in
  7149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7150. *) ac_try_echo=$ac_try;;
  7151. esac
  7152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7153. (eval "$ac_compile") 2>conftest.er1
  7154. ac_status=$?
  7155. grep -v '^ *+' conftest.er1 >conftest.err
  7156. rm -f conftest.er1
  7157. cat conftest.err >&5
  7158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7159. (exit $ac_status); } && {
  7160. test -z "$ac_cxx_werror_flag" ||
  7161. test ! -s conftest.err
  7162. } && test -s conftest.$ac_objext; then
  7163. ac_header_compiler=yes
  7164. else
  7165. echo "$as_me: failed program was:" >&5
  7166. sed 's/^/| /' conftest.$ac_ext >&5
  7167. ac_header_compiler=no
  7168. fi
  7169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7170. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7171. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7172. # Is the header present?
  7173. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7174. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7175. cat >conftest.$ac_ext <<_ACEOF
  7176. /* confdefs.h. */
  7177. _ACEOF
  7178. cat confdefs.h >>conftest.$ac_ext
  7179. cat >>conftest.$ac_ext <<_ACEOF
  7180. /* end confdefs.h. */
  7181. #include <$ac_header>
  7182. _ACEOF
  7183. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7184. case "(($ac_try" in
  7185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7186. *) ac_try_echo=$ac_try;;
  7187. esac
  7188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7189. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7190. ac_status=$?
  7191. grep -v '^ *+' conftest.er1 >conftest.err
  7192. rm -f conftest.er1
  7193. cat conftest.err >&5
  7194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7195. (exit $ac_status); } >/dev/null && {
  7196. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7197. test ! -s conftest.err
  7198. }; then
  7199. ac_header_preproc=yes
  7200. else
  7201. echo "$as_me: failed program was:" >&5
  7202. sed 's/^/| /' conftest.$ac_ext >&5
  7203. ac_header_preproc=no
  7204. fi
  7205. rm -f conftest.err conftest.$ac_ext
  7206. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7207. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7208. # So? What about this header?
  7209. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7210. yes:no: )
  7211. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7212. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7213. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7214. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7215. ac_header_preproc=yes
  7216. ;;
  7217. no:yes:* )
  7218. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7219. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7220. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7221. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7222. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7223. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7224. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7225. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7226. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7227. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7228. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7229. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7230. ( cat <<\_ASBOX
  7231. ## ----------------------------------------------- ##
  7232. ## Report this to t-tujikawa@users.sourceforge.net ##
  7233. ## ----------------------------------------------- ##
  7234. _ASBOX
  7235. ) | sed "s/^/$as_me: WARNING: /" >&2
  7236. ;;
  7237. esac
  7238. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7239. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7240. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7241. echo $ECHO_N "(cached) $ECHO_C" >&6
  7242. else
  7243. eval "$as_ac_Header=\$ac_header_preproc"
  7244. fi
  7245. ac_res=`eval echo '${'$as_ac_Header'}'`
  7246. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7247. echo "${ECHO_T}$ac_res" >&6; }
  7248. fi
  7249. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7250. cat >>confdefs.h <<_ACEOF
  7251. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7252. _ACEOF
  7253. fi
  7254. done
  7255. ;;
  7256. esac
  7257. for ac_header in argz.h \
  7258. arpa/inet.h \
  7259. fcntl.h \
  7260. float.h \
  7261. inttypes.h \
  7262. io.h \
  7263. langinfo.h \
  7264. libintl.h \
  7265. limits.h \
  7266. locale.h \
  7267. malloc.h \
  7268. netdb.h \
  7269. netinet/in.h \
  7270. stddef.h \
  7271. stdint.h \
  7272. stdio_ext.h \
  7273. stdlib.h \
  7274. string.h \
  7275. strings.h \
  7276. sys/ioctl.h \
  7277. sys/param.h \
  7278. sys/socket.h \
  7279. sys/time.h \
  7280. termios.h \
  7281. unistd.h \
  7282. wchar.h
  7283. do
  7284. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7285. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7286. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7287. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7288. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7289. echo $ECHO_N "(cached) $ECHO_C" >&6
  7290. fi
  7291. ac_res=`eval echo '${'$as_ac_Header'}'`
  7292. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7293. echo "${ECHO_T}$ac_res" >&6; }
  7294. else
  7295. # Is the header compilable?
  7296. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7297. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7298. cat >conftest.$ac_ext <<_ACEOF
  7299. /* confdefs.h. */
  7300. _ACEOF
  7301. cat confdefs.h >>conftest.$ac_ext
  7302. cat >>conftest.$ac_ext <<_ACEOF
  7303. /* end confdefs.h. */
  7304. $ac_includes_default
  7305. #include <$ac_header>
  7306. _ACEOF
  7307. rm -f conftest.$ac_objext
  7308. if { (ac_try="$ac_compile"
  7309. case "(($ac_try" in
  7310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7311. *) ac_try_echo=$ac_try;;
  7312. esac
  7313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7314. (eval "$ac_compile") 2>conftest.er1
  7315. ac_status=$?
  7316. grep -v '^ *+' conftest.er1 >conftest.err
  7317. rm -f conftest.er1
  7318. cat conftest.err >&5
  7319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7320. (exit $ac_status); } && {
  7321. test -z "$ac_cxx_werror_flag" ||
  7322. test ! -s conftest.err
  7323. } && test -s conftest.$ac_objext; then
  7324. ac_header_compiler=yes
  7325. else
  7326. echo "$as_me: failed program was:" >&5
  7327. sed 's/^/| /' conftest.$ac_ext >&5
  7328. ac_header_compiler=no
  7329. fi
  7330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7331. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7332. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7333. # Is the header present?
  7334. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7335. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7336. cat >conftest.$ac_ext <<_ACEOF
  7337. /* confdefs.h. */
  7338. _ACEOF
  7339. cat confdefs.h >>conftest.$ac_ext
  7340. cat >>conftest.$ac_ext <<_ACEOF
  7341. /* end confdefs.h. */
  7342. #include <$ac_header>
  7343. _ACEOF
  7344. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7345. case "(($ac_try" in
  7346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7347. *) ac_try_echo=$ac_try;;
  7348. esac
  7349. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7350. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7351. ac_status=$?
  7352. grep -v '^ *+' conftest.er1 >conftest.err
  7353. rm -f conftest.er1
  7354. cat conftest.err >&5
  7355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7356. (exit $ac_status); } >/dev/null && {
  7357. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7358. test ! -s conftest.err
  7359. }; then
  7360. ac_header_preproc=yes
  7361. else
  7362. echo "$as_me: failed program was:" >&5
  7363. sed 's/^/| /' conftest.$ac_ext >&5
  7364. ac_header_preproc=no
  7365. fi
  7366. rm -f conftest.err conftest.$ac_ext
  7367. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7368. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7369. # So? What about this header?
  7370. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7371. yes:no: )
  7372. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7373. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7374. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7375. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7376. ac_header_preproc=yes
  7377. ;;
  7378. no:yes:* )
  7379. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7380. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7381. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7382. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7383. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7384. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7385. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7386. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7387. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7388. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7389. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7390. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7391. ( cat <<\_ASBOX
  7392. ## ----------------------------------------------- ##
  7393. ## Report this to t-tujikawa@users.sourceforge.net ##
  7394. ## ----------------------------------------------- ##
  7395. _ASBOX
  7396. ) | sed "s/^/$as_me: WARNING: /" >&2
  7397. ;;
  7398. esac
  7399. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7400. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7401. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7402. echo $ECHO_N "(cached) $ECHO_C" >&6
  7403. else
  7404. eval "$as_ac_Header=\$ac_header_preproc"
  7405. fi
  7406. ac_res=`eval echo '${'$as_ac_Header'}'`
  7407. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7408. echo "${ECHO_T}$ac_res" >&6; }
  7409. fi
  7410. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7411. cat >>confdefs.h <<_ACEOF
  7412. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7413. _ACEOF
  7414. fi
  7415. done
  7416. # Checks for typedefs, structures, and compiler characteristics.
  7417. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7418. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7419. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7420. echo $ECHO_N "(cached) $ECHO_C" >&6
  7421. else
  7422. cat >conftest.$ac_ext <<_ACEOF
  7423. /* confdefs.h. */
  7424. _ACEOF
  7425. cat confdefs.h >>conftest.$ac_ext
  7426. cat >>conftest.$ac_ext <<_ACEOF
  7427. /* end confdefs.h. */
  7428. #include <stdbool.h>
  7429. #ifndef bool
  7430. "error: bool is not defined"
  7431. #endif
  7432. #ifndef false
  7433. "error: false is not defined"
  7434. #endif
  7435. #if false
  7436. "error: false is not 0"
  7437. #endif
  7438. #ifndef true
  7439. "error: true is not defined"
  7440. #endif
  7441. #if true != 1
  7442. "error: true is not 1"
  7443. #endif
  7444. #ifndef __bool_true_false_are_defined
  7445. "error: __bool_true_false_are_defined is not defined"
  7446. #endif
  7447. struct s { _Bool s: 1; _Bool t; } s;
  7448. char a[true == 1 ? 1 : -1];
  7449. char b[false == 0 ? 1 : -1];
  7450. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7451. char d[(bool) 0.5 == true ? 1 : -1];
  7452. bool e = &s;
  7453. char f[(_Bool) 0.0 == false ? 1 : -1];
  7454. char g[true];
  7455. char h[sizeof (_Bool)];
  7456. char i[sizeof s.t];
  7457. enum { j = false, k = true, l = false * true, m = true * 256 };
  7458. _Bool n[m];
  7459. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7460. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7461. # if defined __xlc__ || defined __GNUC__
  7462. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7463. reported by James Lemley on 2005-10-05; see
  7464. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7465. This test is not quite right, since xlc is allowed to
  7466. reject this program, as the initializer for xlcbug is
  7467. not one of the forms that C requires support for.
  7468. However, doing the test right would require a runtime
  7469. test, and that would make cross-compilation harder.
  7470. Let us hope that IBM fixes the xlc bug, and also adds
  7471. support for this kind of constant expression. In the
  7472. meantime, this test will reject xlc, which is OK, since
  7473. our stdbool.h substitute should suffice. We also test
  7474. this with GCC, where it should work, to detect more
  7475. quickly whether someone messes up the test in the
  7476. future. */
  7477. char digs[] = "0123456789";
  7478. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7479. # endif
  7480. /* Catch a bug in an HP-UX C compiler. See
  7481. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7482. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7483. */
  7484. _Bool q = true;
  7485. _Bool *pq = &q;
  7486. int
  7487. main ()
  7488. {
  7489. *pq |= q;
  7490. *pq |= ! q;
  7491. /* Refer to every declared value, to avoid compiler optimizations. */
  7492. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7493. + !m + !n + !o + !p + !q + !pq);
  7494. ;
  7495. return 0;
  7496. }
  7497. _ACEOF
  7498. rm -f conftest.$ac_objext
  7499. if { (ac_try="$ac_compile"
  7500. case "(($ac_try" in
  7501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7502. *) ac_try_echo=$ac_try;;
  7503. esac
  7504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7505. (eval "$ac_compile") 2>conftest.er1
  7506. ac_status=$?
  7507. grep -v '^ *+' conftest.er1 >conftest.err
  7508. rm -f conftest.er1
  7509. cat conftest.err >&5
  7510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7511. (exit $ac_status); } && {
  7512. test -z "$ac_cxx_werror_flag" ||
  7513. test ! -s conftest.err
  7514. } && test -s conftest.$ac_objext; then
  7515. ac_cv_header_stdbool_h=yes
  7516. else
  7517. echo "$as_me: failed program was:" >&5
  7518. sed 's/^/| /' conftest.$ac_ext >&5
  7519. ac_cv_header_stdbool_h=no
  7520. fi
  7521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7522. fi
  7523. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7524. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7525. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7526. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7527. if test "${ac_cv_type__Bool+set}" = set; then
  7528. echo $ECHO_N "(cached) $ECHO_C" >&6
  7529. else
  7530. cat >conftest.$ac_ext <<_ACEOF
  7531. /* confdefs.h. */
  7532. _ACEOF
  7533. cat confdefs.h >>conftest.$ac_ext
  7534. cat >>conftest.$ac_ext <<_ACEOF
  7535. /* end confdefs.h. */
  7536. $ac_includes_default
  7537. typedef _Bool ac__type_new_;
  7538. int
  7539. main ()
  7540. {
  7541. if ((ac__type_new_ *) 0)
  7542. return 0;
  7543. if (sizeof (ac__type_new_))
  7544. return 0;
  7545. ;
  7546. return 0;
  7547. }
  7548. _ACEOF
  7549. rm -f conftest.$ac_objext
  7550. if { (ac_try="$ac_compile"
  7551. case "(($ac_try" in
  7552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7553. *) ac_try_echo=$ac_try;;
  7554. esac
  7555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7556. (eval "$ac_compile") 2>conftest.er1
  7557. ac_status=$?
  7558. grep -v '^ *+' conftest.er1 >conftest.err
  7559. rm -f conftest.er1
  7560. cat conftest.err >&5
  7561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7562. (exit $ac_status); } && {
  7563. test -z "$ac_cxx_werror_flag" ||
  7564. test ! -s conftest.err
  7565. } && test -s conftest.$ac_objext; then
  7566. ac_cv_type__Bool=yes
  7567. else
  7568. echo "$as_me: failed program was:" >&5
  7569. sed 's/^/| /' conftest.$ac_ext >&5
  7570. ac_cv_type__Bool=no
  7571. fi
  7572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7573. fi
  7574. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7575. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7576. if test $ac_cv_type__Bool = yes; then
  7577. cat >>confdefs.h <<_ACEOF
  7578. #define HAVE__BOOL 1
  7579. _ACEOF
  7580. fi
  7581. if test $ac_cv_header_stdbool_h = yes; then
  7582. cat >>confdefs.h <<\_ACEOF
  7583. #define HAVE_STDBOOL_H 1
  7584. _ACEOF
  7585. fi
  7586. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7587. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7588. if test "${ac_cv_c_const+set}" = set; then
  7589. echo $ECHO_N "(cached) $ECHO_C" >&6
  7590. else
  7591. cat >conftest.$ac_ext <<_ACEOF
  7592. /* confdefs.h. */
  7593. _ACEOF
  7594. cat confdefs.h >>conftest.$ac_ext
  7595. cat >>conftest.$ac_ext <<_ACEOF
  7596. /* end confdefs.h. */
  7597. int
  7598. main ()
  7599. {
  7600. /* FIXME: Include the comments suggested by Paul. */
  7601. #ifndef __cplusplus
  7602. /* Ultrix mips cc rejects this. */
  7603. typedef int charset[2];
  7604. const charset cs;
  7605. /* SunOS 4.1.1 cc rejects this. */
  7606. char const *const *pcpcc;
  7607. char **ppc;
  7608. /* NEC SVR4.0.2 mips cc rejects this. */
  7609. struct point {int x, y;};
  7610. static struct point const zero = {0,0};
  7611. /* AIX XL C 1.02.0.0 rejects this.
  7612. It does not let you subtract one const X* pointer from another in
  7613. an arm of an if-expression whose if-part is not a constant
  7614. expression */
  7615. const char *g = "string";
  7616. pcpcc = &g + (g ? g-g : 0);
  7617. /* HPUX 7.0 cc rejects these. */
  7618. ++pcpcc;
  7619. ppc = (char**) pcpcc;
  7620. pcpcc = (char const *const *) ppc;
  7621. { /* SCO 3.2v4 cc rejects this. */
  7622. char *t;
  7623. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7624. *t++ = 0;
  7625. if (s) return 0;
  7626. }
  7627. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7628. int x[] = {25, 17};
  7629. const int *foo = &x[0];
  7630. ++foo;
  7631. }
  7632. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7633. typedef const int *iptr;
  7634. iptr p = 0;
  7635. ++p;
  7636. }
  7637. { /* AIX XL C 1.02.0.0 rejects this saying
  7638. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7639. struct s { int j; const int *ap[3]; };
  7640. struct s *b; b->j = 5;
  7641. }
  7642. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7643. const int foo = 10;
  7644. if (!foo) return 0;
  7645. }
  7646. return !cs[0] && !zero.x;
  7647. #endif
  7648. ;
  7649. return 0;
  7650. }
  7651. _ACEOF
  7652. rm -f conftest.$ac_objext
  7653. if { (ac_try="$ac_compile"
  7654. case "(($ac_try" in
  7655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7656. *) ac_try_echo=$ac_try;;
  7657. esac
  7658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7659. (eval "$ac_compile") 2>conftest.er1
  7660. ac_status=$?
  7661. grep -v '^ *+' conftest.er1 >conftest.err
  7662. rm -f conftest.er1
  7663. cat conftest.err >&5
  7664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7665. (exit $ac_status); } && {
  7666. test -z "$ac_cxx_werror_flag" ||
  7667. test ! -s conftest.err
  7668. } && test -s conftest.$ac_objext; then
  7669. ac_cv_c_const=yes
  7670. else
  7671. echo "$as_me: failed program was:" >&5
  7672. sed 's/^/| /' conftest.$ac_ext >&5
  7673. ac_cv_c_const=no
  7674. fi
  7675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7676. fi
  7677. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7678. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7679. if test $ac_cv_c_const = no; then
  7680. cat >>confdefs.h <<\_ACEOF
  7681. #define const
  7682. _ACEOF
  7683. fi
  7684. { echo "$as_me:$LINENO: checking for inline" >&5
  7685. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7686. if test "${ac_cv_c_inline+set}" = set; then
  7687. echo $ECHO_N "(cached) $ECHO_C" >&6
  7688. else
  7689. ac_cv_c_inline=no
  7690. for ac_kw in inline __inline__ __inline; do
  7691. cat >conftest.$ac_ext <<_ACEOF
  7692. /* confdefs.h. */
  7693. _ACEOF
  7694. cat confdefs.h >>conftest.$ac_ext
  7695. cat >>conftest.$ac_ext <<_ACEOF
  7696. /* end confdefs.h. */
  7697. #ifndef __cplusplus
  7698. typedef int foo_t;
  7699. static $ac_kw foo_t static_foo () {return 0; }
  7700. $ac_kw foo_t foo () {return 0; }
  7701. #endif
  7702. _ACEOF
  7703. rm -f conftest.$ac_objext
  7704. if { (ac_try="$ac_compile"
  7705. case "(($ac_try" in
  7706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7707. *) ac_try_echo=$ac_try;;
  7708. esac
  7709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7710. (eval "$ac_compile") 2>conftest.er1
  7711. ac_status=$?
  7712. grep -v '^ *+' conftest.er1 >conftest.err
  7713. rm -f conftest.er1
  7714. cat conftest.err >&5
  7715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716. (exit $ac_status); } && {
  7717. test -z "$ac_cxx_werror_flag" ||
  7718. test ! -s conftest.err
  7719. } && test -s conftest.$ac_objext; then
  7720. ac_cv_c_inline=$ac_kw
  7721. else
  7722. echo "$as_me: failed program was:" >&5
  7723. sed 's/^/| /' conftest.$ac_ext >&5
  7724. fi
  7725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7726. test "$ac_cv_c_inline" != no && break
  7727. done
  7728. fi
  7729. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7730. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7731. case $ac_cv_c_inline in
  7732. inline | yes) ;;
  7733. *)
  7734. case $ac_cv_c_inline in
  7735. no) ac_val=;;
  7736. *) ac_val=$ac_cv_c_inline;;
  7737. esac
  7738. cat >>confdefs.h <<_ACEOF
  7739. #ifndef __cplusplus
  7740. #define inline $ac_val
  7741. #endif
  7742. _ACEOF
  7743. ;;
  7744. esac
  7745. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7746. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7747. if test "${ac_cv_c_int16_t+set}" = set; then
  7748. echo $ECHO_N "(cached) $ECHO_C" >&6
  7749. else
  7750. ac_cv_c_int16_t=no
  7751. for ac_type in 'int16_t' 'int' 'long int' \
  7752. 'long long int' 'short int' 'signed char'; do
  7753. cat >conftest.$ac_ext <<_ACEOF
  7754. /* confdefs.h. */
  7755. _ACEOF
  7756. cat confdefs.h >>conftest.$ac_ext
  7757. cat >>conftest.$ac_ext <<_ACEOF
  7758. /* end confdefs.h. */
  7759. $ac_includes_default
  7760. int
  7761. main ()
  7762. {
  7763. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7764. test_array [0] = 0
  7765. ;
  7766. return 0;
  7767. }
  7768. _ACEOF
  7769. rm -f conftest.$ac_objext
  7770. if { (ac_try="$ac_compile"
  7771. case "(($ac_try" in
  7772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7773. *) ac_try_echo=$ac_try;;
  7774. esac
  7775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7776. (eval "$ac_compile") 2>conftest.er1
  7777. ac_status=$?
  7778. grep -v '^ *+' conftest.er1 >conftest.err
  7779. rm -f conftest.er1
  7780. cat conftest.err >&5
  7781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7782. (exit $ac_status); } && {
  7783. test -z "$ac_cxx_werror_flag" ||
  7784. test ! -s conftest.err
  7785. } && test -s conftest.$ac_objext; then
  7786. cat >conftest.$ac_ext <<_ACEOF
  7787. /* confdefs.h. */
  7788. _ACEOF
  7789. cat confdefs.h >>conftest.$ac_ext
  7790. cat >>conftest.$ac_ext <<_ACEOF
  7791. /* end confdefs.h. */
  7792. $ac_includes_default
  7793. int
  7794. main ()
  7795. {
  7796. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7797. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7798. test_array [0] = 0
  7799. ;
  7800. return 0;
  7801. }
  7802. _ACEOF
  7803. rm -f conftest.$ac_objext
  7804. if { (ac_try="$ac_compile"
  7805. case "(($ac_try" in
  7806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7807. *) ac_try_echo=$ac_try;;
  7808. esac
  7809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7810. (eval "$ac_compile") 2>conftest.er1
  7811. ac_status=$?
  7812. grep -v '^ *+' conftest.er1 >conftest.err
  7813. rm -f conftest.er1
  7814. cat conftest.err >&5
  7815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7816. (exit $ac_status); } && {
  7817. test -z "$ac_cxx_werror_flag" ||
  7818. test ! -s conftest.err
  7819. } && test -s conftest.$ac_objext; then
  7820. :
  7821. else
  7822. echo "$as_me: failed program was:" >&5
  7823. sed 's/^/| /' conftest.$ac_ext >&5
  7824. case $ac_type in
  7825. int16_t) ac_cv_c_int16_t=yes ;;
  7826. *) ac_cv_c_int16_t=$ac_type ;;
  7827. esac
  7828. fi
  7829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7830. else
  7831. echo "$as_me: failed program was:" >&5
  7832. sed 's/^/| /' conftest.$ac_ext >&5
  7833. fi
  7834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7835. test "$ac_cv_c_int16_t" != no && break
  7836. done
  7837. fi
  7838. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7839. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7840. case $ac_cv_c_int16_t in #(
  7841. no|yes) ;; #(
  7842. *)
  7843. cat >>confdefs.h <<_ACEOF
  7844. #define int16_t $ac_cv_c_int16_t
  7845. _ACEOF
  7846. ;;
  7847. esac
  7848. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7849. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7850. if test "${ac_cv_c_int32_t+set}" = set; then
  7851. echo $ECHO_N "(cached) $ECHO_C" >&6
  7852. else
  7853. ac_cv_c_int32_t=no
  7854. for ac_type in 'int32_t' 'int' 'long int' \
  7855. 'long long int' 'short int' 'signed char'; do
  7856. cat >conftest.$ac_ext <<_ACEOF
  7857. /* confdefs.h. */
  7858. _ACEOF
  7859. cat confdefs.h >>conftest.$ac_ext
  7860. cat >>conftest.$ac_ext <<_ACEOF
  7861. /* end confdefs.h. */
  7862. $ac_includes_default
  7863. int
  7864. main ()
  7865. {
  7866. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7867. test_array [0] = 0
  7868. ;
  7869. return 0;
  7870. }
  7871. _ACEOF
  7872. rm -f conftest.$ac_objext
  7873. if { (ac_try="$ac_compile"
  7874. case "(($ac_try" in
  7875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7876. *) ac_try_echo=$ac_try;;
  7877. esac
  7878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7879. (eval "$ac_compile") 2>conftest.er1
  7880. ac_status=$?
  7881. grep -v '^ *+' conftest.er1 >conftest.err
  7882. rm -f conftest.er1
  7883. cat conftest.err >&5
  7884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7885. (exit $ac_status); } && {
  7886. test -z "$ac_cxx_werror_flag" ||
  7887. test ! -s conftest.err
  7888. } && test -s conftest.$ac_objext; then
  7889. cat >conftest.$ac_ext <<_ACEOF
  7890. /* confdefs.h. */
  7891. _ACEOF
  7892. cat confdefs.h >>conftest.$ac_ext
  7893. cat >>conftest.$ac_ext <<_ACEOF
  7894. /* end confdefs.h. */
  7895. $ac_includes_default
  7896. int
  7897. main ()
  7898. {
  7899. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7900. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7901. test_array [0] = 0
  7902. ;
  7903. return 0;
  7904. }
  7905. _ACEOF
  7906. rm -f conftest.$ac_objext
  7907. if { (ac_try="$ac_compile"
  7908. case "(($ac_try" in
  7909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7910. *) ac_try_echo=$ac_try;;
  7911. esac
  7912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7913. (eval "$ac_compile") 2>conftest.er1
  7914. ac_status=$?
  7915. grep -v '^ *+' conftest.er1 >conftest.err
  7916. rm -f conftest.er1
  7917. cat conftest.err >&5
  7918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7919. (exit $ac_status); } && {
  7920. test -z "$ac_cxx_werror_flag" ||
  7921. test ! -s conftest.err
  7922. } && test -s conftest.$ac_objext; then
  7923. :
  7924. else
  7925. echo "$as_me: failed program was:" >&5
  7926. sed 's/^/| /' conftest.$ac_ext >&5
  7927. case $ac_type in
  7928. int32_t) ac_cv_c_int32_t=yes ;;
  7929. *) ac_cv_c_int32_t=$ac_type ;;
  7930. esac
  7931. fi
  7932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7933. else
  7934. echo "$as_me: failed program was:" >&5
  7935. sed 's/^/| /' conftest.$ac_ext >&5
  7936. fi
  7937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7938. test "$ac_cv_c_int32_t" != no && break
  7939. done
  7940. fi
  7941. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7942. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7943. case $ac_cv_c_int32_t in #(
  7944. no|yes) ;; #(
  7945. *)
  7946. cat >>confdefs.h <<_ACEOF
  7947. #define int32_t $ac_cv_c_int32_t
  7948. _ACEOF
  7949. ;;
  7950. esac
  7951. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7952. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7953. if test "${ac_cv_c_int64_t+set}" = set; then
  7954. echo $ECHO_N "(cached) $ECHO_C" >&6
  7955. else
  7956. ac_cv_c_int64_t=no
  7957. for ac_type in 'int64_t' 'int' 'long int' \
  7958. 'long long int' 'short int' 'signed char'; do
  7959. cat >conftest.$ac_ext <<_ACEOF
  7960. /* confdefs.h. */
  7961. _ACEOF
  7962. cat confdefs.h >>conftest.$ac_ext
  7963. cat >>conftest.$ac_ext <<_ACEOF
  7964. /* end confdefs.h. */
  7965. $ac_includes_default
  7966. int
  7967. main ()
  7968. {
  7969. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7970. test_array [0] = 0
  7971. ;
  7972. return 0;
  7973. }
  7974. _ACEOF
  7975. rm -f conftest.$ac_objext
  7976. if { (ac_try="$ac_compile"
  7977. case "(($ac_try" in
  7978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7979. *) ac_try_echo=$ac_try;;
  7980. esac
  7981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7982. (eval "$ac_compile") 2>conftest.er1
  7983. ac_status=$?
  7984. grep -v '^ *+' conftest.er1 >conftest.err
  7985. rm -f conftest.er1
  7986. cat conftest.err >&5
  7987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7988. (exit $ac_status); } && {
  7989. test -z "$ac_cxx_werror_flag" ||
  7990. test ! -s conftest.err
  7991. } && test -s conftest.$ac_objext; then
  7992. cat >conftest.$ac_ext <<_ACEOF
  7993. /* confdefs.h. */
  7994. _ACEOF
  7995. cat confdefs.h >>conftest.$ac_ext
  7996. cat >>conftest.$ac_ext <<_ACEOF
  7997. /* end confdefs.h. */
  7998. $ac_includes_default
  7999. int
  8000. main ()
  8001. {
  8002. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8003. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8004. test_array [0] = 0
  8005. ;
  8006. return 0;
  8007. }
  8008. _ACEOF
  8009. rm -f conftest.$ac_objext
  8010. if { (ac_try="$ac_compile"
  8011. case "(($ac_try" in
  8012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8013. *) ac_try_echo=$ac_try;;
  8014. esac
  8015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8016. (eval "$ac_compile") 2>conftest.er1
  8017. ac_status=$?
  8018. grep -v '^ *+' conftest.er1 >conftest.err
  8019. rm -f conftest.er1
  8020. cat conftest.err >&5
  8021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8022. (exit $ac_status); } && {
  8023. test -z "$ac_cxx_werror_flag" ||
  8024. test ! -s conftest.err
  8025. } && test -s conftest.$ac_objext; then
  8026. :
  8027. else
  8028. echo "$as_me: failed program was:" >&5
  8029. sed 's/^/| /' conftest.$ac_ext >&5
  8030. case $ac_type in
  8031. int64_t) ac_cv_c_int64_t=yes ;;
  8032. *) ac_cv_c_int64_t=$ac_type ;;
  8033. esac
  8034. fi
  8035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8036. else
  8037. echo "$as_me: failed program was:" >&5
  8038. sed 's/^/| /' conftest.$ac_ext >&5
  8039. fi
  8040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8041. test "$ac_cv_c_int64_t" != no && break
  8042. done
  8043. fi
  8044. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8045. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  8046. case $ac_cv_c_int64_t in #(
  8047. no|yes) ;; #(
  8048. *)
  8049. cat >>confdefs.h <<_ACEOF
  8050. #define int64_t $ac_cv_c_int64_t
  8051. _ACEOF
  8052. ;;
  8053. esac
  8054. { echo "$as_me:$LINENO: checking for int8_t" >&5
  8055. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  8056. if test "${ac_cv_c_int8_t+set}" = set; then
  8057. echo $ECHO_N "(cached) $ECHO_C" >&6
  8058. else
  8059. ac_cv_c_int8_t=no
  8060. for ac_type in 'int8_t' 'int' 'long int' \
  8061. 'long long int' 'short int' 'signed char'; do
  8062. cat >conftest.$ac_ext <<_ACEOF
  8063. /* confdefs.h. */
  8064. _ACEOF
  8065. cat confdefs.h >>conftest.$ac_ext
  8066. cat >>conftest.$ac_ext <<_ACEOF
  8067. /* end confdefs.h. */
  8068. $ac_includes_default
  8069. int
  8070. main ()
  8071. {
  8072. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8073. test_array [0] = 0
  8074. ;
  8075. return 0;
  8076. }
  8077. _ACEOF
  8078. rm -f conftest.$ac_objext
  8079. if { (ac_try="$ac_compile"
  8080. case "(($ac_try" in
  8081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8082. *) ac_try_echo=$ac_try;;
  8083. esac
  8084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8085. (eval "$ac_compile") 2>conftest.er1
  8086. ac_status=$?
  8087. grep -v '^ *+' conftest.er1 >conftest.err
  8088. rm -f conftest.er1
  8089. cat conftest.err >&5
  8090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8091. (exit $ac_status); } && {
  8092. test -z "$ac_cxx_werror_flag" ||
  8093. test ! -s conftest.err
  8094. } && test -s conftest.$ac_objext; then
  8095. cat >conftest.$ac_ext <<_ACEOF
  8096. /* confdefs.h. */
  8097. _ACEOF
  8098. cat confdefs.h >>conftest.$ac_ext
  8099. cat >>conftest.$ac_ext <<_ACEOF
  8100. /* end confdefs.h. */
  8101. $ac_includes_default
  8102. int
  8103. main ()
  8104. {
  8105. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8106. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8107. test_array [0] = 0
  8108. ;
  8109. return 0;
  8110. }
  8111. _ACEOF
  8112. rm -f conftest.$ac_objext
  8113. if { (ac_try="$ac_compile"
  8114. case "(($ac_try" in
  8115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8116. *) ac_try_echo=$ac_try;;
  8117. esac
  8118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8119. (eval "$ac_compile") 2>conftest.er1
  8120. ac_status=$?
  8121. grep -v '^ *+' conftest.er1 >conftest.err
  8122. rm -f conftest.er1
  8123. cat conftest.err >&5
  8124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8125. (exit $ac_status); } && {
  8126. test -z "$ac_cxx_werror_flag" ||
  8127. test ! -s conftest.err
  8128. } && test -s conftest.$ac_objext; then
  8129. :
  8130. else
  8131. echo "$as_me: failed program was:" >&5
  8132. sed 's/^/| /' conftest.$ac_ext >&5
  8133. case $ac_type in
  8134. int8_t) ac_cv_c_int8_t=yes ;;
  8135. *) ac_cv_c_int8_t=$ac_type ;;
  8136. esac
  8137. fi
  8138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8139. else
  8140. echo "$as_me: failed program was:" >&5
  8141. sed 's/^/| /' conftest.$ac_ext >&5
  8142. fi
  8143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8144. test "$ac_cv_c_int8_t" != no && break
  8145. done
  8146. fi
  8147. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8148. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  8149. case $ac_cv_c_int8_t in #(
  8150. no|yes) ;; #(
  8151. *)
  8152. cat >>confdefs.h <<_ACEOF
  8153. #define int8_t $ac_cv_c_int8_t
  8154. _ACEOF
  8155. ;;
  8156. esac
  8157. { echo "$as_me:$LINENO: checking for mode_t" >&5
  8158. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  8159. if test "${ac_cv_type_mode_t+set}" = set; then
  8160. echo $ECHO_N "(cached) $ECHO_C" >&6
  8161. else
  8162. cat >conftest.$ac_ext <<_ACEOF
  8163. /* confdefs.h. */
  8164. _ACEOF
  8165. cat confdefs.h >>conftest.$ac_ext
  8166. cat >>conftest.$ac_ext <<_ACEOF
  8167. /* end confdefs.h. */
  8168. $ac_includes_default
  8169. typedef mode_t ac__type_new_;
  8170. int
  8171. main ()
  8172. {
  8173. if ((ac__type_new_ *) 0)
  8174. return 0;
  8175. if (sizeof (ac__type_new_))
  8176. return 0;
  8177. ;
  8178. return 0;
  8179. }
  8180. _ACEOF
  8181. rm -f conftest.$ac_objext
  8182. if { (ac_try="$ac_compile"
  8183. case "(($ac_try" in
  8184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8185. *) ac_try_echo=$ac_try;;
  8186. esac
  8187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8188. (eval "$ac_compile") 2>conftest.er1
  8189. ac_status=$?
  8190. grep -v '^ *+' conftest.er1 >conftest.err
  8191. rm -f conftest.er1
  8192. cat conftest.err >&5
  8193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8194. (exit $ac_status); } && {
  8195. test -z "$ac_cxx_werror_flag" ||
  8196. test ! -s conftest.err
  8197. } && test -s conftest.$ac_objext; then
  8198. ac_cv_type_mode_t=yes
  8199. else
  8200. echo "$as_me: failed program was:" >&5
  8201. sed 's/^/| /' conftest.$ac_ext >&5
  8202. ac_cv_type_mode_t=no
  8203. fi
  8204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8205. fi
  8206. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8207. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  8208. if test $ac_cv_type_mode_t = yes; then
  8209. :
  8210. else
  8211. cat >>confdefs.h <<_ACEOF
  8212. #define mode_t int
  8213. _ACEOF
  8214. fi
  8215. { echo "$as_me:$LINENO: checking for off_t" >&5
  8216. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8217. if test "${ac_cv_type_off_t+set}" = set; then
  8218. echo $ECHO_N "(cached) $ECHO_C" >&6
  8219. else
  8220. cat >conftest.$ac_ext <<_ACEOF
  8221. /* confdefs.h. */
  8222. _ACEOF
  8223. cat confdefs.h >>conftest.$ac_ext
  8224. cat >>conftest.$ac_ext <<_ACEOF
  8225. /* end confdefs.h. */
  8226. $ac_includes_default
  8227. typedef off_t ac__type_new_;
  8228. int
  8229. main ()
  8230. {
  8231. if ((ac__type_new_ *) 0)
  8232. return 0;
  8233. if (sizeof (ac__type_new_))
  8234. return 0;
  8235. ;
  8236. return 0;
  8237. }
  8238. _ACEOF
  8239. rm -f conftest.$ac_objext
  8240. if { (ac_try="$ac_compile"
  8241. case "(($ac_try" in
  8242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8243. *) ac_try_echo=$ac_try;;
  8244. esac
  8245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8246. (eval "$ac_compile") 2>conftest.er1
  8247. ac_status=$?
  8248. grep -v '^ *+' conftest.er1 >conftest.err
  8249. rm -f conftest.er1
  8250. cat conftest.err >&5
  8251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8252. (exit $ac_status); } && {
  8253. test -z "$ac_cxx_werror_flag" ||
  8254. test ! -s conftest.err
  8255. } && test -s conftest.$ac_objext; then
  8256. ac_cv_type_off_t=yes
  8257. else
  8258. echo "$as_me: failed program was:" >&5
  8259. sed 's/^/| /' conftest.$ac_ext >&5
  8260. ac_cv_type_off_t=no
  8261. fi
  8262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8263. fi
  8264. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8265. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8266. if test $ac_cv_type_off_t = yes; then
  8267. :
  8268. else
  8269. cat >>confdefs.h <<_ACEOF
  8270. #define off_t long int
  8271. _ACEOF
  8272. fi
  8273. { echo "$as_me:$LINENO: checking for size_t" >&5
  8274. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8275. if test "${ac_cv_type_size_t+set}" = set; then
  8276. echo $ECHO_N "(cached) $ECHO_C" >&6
  8277. else
  8278. cat >conftest.$ac_ext <<_ACEOF
  8279. /* confdefs.h. */
  8280. _ACEOF
  8281. cat confdefs.h >>conftest.$ac_ext
  8282. cat >>conftest.$ac_ext <<_ACEOF
  8283. /* end confdefs.h. */
  8284. $ac_includes_default
  8285. typedef size_t ac__type_new_;
  8286. int
  8287. main ()
  8288. {
  8289. if ((ac__type_new_ *) 0)
  8290. return 0;
  8291. if (sizeof (ac__type_new_))
  8292. return 0;
  8293. ;
  8294. return 0;
  8295. }
  8296. _ACEOF
  8297. rm -f conftest.$ac_objext
  8298. if { (ac_try="$ac_compile"
  8299. case "(($ac_try" in
  8300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8301. *) ac_try_echo=$ac_try;;
  8302. esac
  8303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8304. (eval "$ac_compile") 2>conftest.er1
  8305. ac_status=$?
  8306. grep -v '^ *+' conftest.er1 >conftest.err
  8307. rm -f conftest.er1
  8308. cat conftest.err >&5
  8309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8310. (exit $ac_status); } && {
  8311. test -z "$ac_cxx_werror_flag" ||
  8312. test ! -s conftest.err
  8313. } && test -s conftest.$ac_objext; then
  8314. ac_cv_type_size_t=yes
  8315. else
  8316. echo "$as_me: failed program was:" >&5
  8317. sed 's/^/| /' conftest.$ac_ext >&5
  8318. ac_cv_type_size_t=no
  8319. fi
  8320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8321. fi
  8322. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8323. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8324. if test $ac_cv_type_size_t = yes; then
  8325. :
  8326. else
  8327. cat >>confdefs.h <<_ACEOF
  8328. #define size_t unsigned int
  8329. _ACEOF
  8330. fi
  8331. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8332. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8333. if test "${ac_cv_type_ssize_t+set}" = set; then
  8334. echo $ECHO_N "(cached) $ECHO_C" >&6
  8335. else
  8336. cat >conftest.$ac_ext <<_ACEOF
  8337. /* confdefs.h. */
  8338. _ACEOF
  8339. cat confdefs.h >>conftest.$ac_ext
  8340. cat >>conftest.$ac_ext <<_ACEOF
  8341. /* end confdefs.h. */
  8342. $ac_includes_default
  8343. typedef ssize_t ac__type_new_;
  8344. int
  8345. main ()
  8346. {
  8347. if ((ac__type_new_ *) 0)
  8348. return 0;
  8349. if (sizeof (ac__type_new_))
  8350. return 0;
  8351. ;
  8352. return 0;
  8353. }
  8354. _ACEOF
  8355. rm -f conftest.$ac_objext
  8356. if { (ac_try="$ac_compile"
  8357. case "(($ac_try" in
  8358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8359. *) ac_try_echo=$ac_try;;
  8360. esac
  8361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8362. (eval "$ac_compile") 2>conftest.er1
  8363. ac_status=$?
  8364. grep -v '^ *+' conftest.er1 >conftest.err
  8365. rm -f conftest.er1
  8366. cat conftest.err >&5
  8367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8368. (exit $ac_status); } && {
  8369. test -z "$ac_cxx_werror_flag" ||
  8370. test ! -s conftest.err
  8371. } && test -s conftest.$ac_objext; then
  8372. ac_cv_type_ssize_t=yes
  8373. else
  8374. echo "$as_me: failed program was:" >&5
  8375. sed 's/^/| /' conftest.$ac_ext >&5
  8376. ac_cv_type_ssize_t=no
  8377. fi
  8378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8379. fi
  8380. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8381. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8382. if test $ac_cv_type_ssize_t = yes; then
  8383. :
  8384. else
  8385. cat >>confdefs.h <<_ACEOF
  8386. #define ssize_t int
  8387. _ACEOF
  8388. fi
  8389. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8390. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8391. if test "${ac_cv_header_time+set}" = set; then
  8392. echo $ECHO_N "(cached) $ECHO_C" >&6
  8393. else
  8394. cat >conftest.$ac_ext <<_ACEOF
  8395. /* confdefs.h. */
  8396. _ACEOF
  8397. cat confdefs.h >>conftest.$ac_ext
  8398. cat >>conftest.$ac_ext <<_ACEOF
  8399. /* end confdefs.h. */
  8400. #include <sys/types.h>
  8401. #include <sys/time.h>
  8402. #include <time.h>
  8403. int
  8404. main ()
  8405. {
  8406. if ((struct tm *) 0)
  8407. return 0;
  8408. ;
  8409. return 0;
  8410. }
  8411. _ACEOF
  8412. rm -f conftest.$ac_objext
  8413. if { (ac_try="$ac_compile"
  8414. case "(($ac_try" in
  8415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8416. *) ac_try_echo=$ac_try;;
  8417. esac
  8418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8419. (eval "$ac_compile") 2>conftest.er1
  8420. ac_status=$?
  8421. grep -v '^ *+' conftest.er1 >conftest.err
  8422. rm -f conftest.er1
  8423. cat conftest.err >&5
  8424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8425. (exit $ac_status); } && {
  8426. test -z "$ac_cxx_werror_flag" ||
  8427. test ! -s conftest.err
  8428. } && test -s conftest.$ac_objext; then
  8429. ac_cv_header_time=yes
  8430. else
  8431. echo "$as_me: failed program was:" >&5
  8432. sed 's/^/| /' conftest.$ac_ext >&5
  8433. ac_cv_header_time=no
  8434. fi
  8435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8436. fi
  8437. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8438. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8439. if test $ac_cv_header_time = yes; then
  8440. cat >>confdefs.h <<\_ACEOF
  8441. #define TIME_WITH_SYS_TIME 1
  8442. _ACEOF
  8443. fi
  8444. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8445. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8446. if test "${ac_cv_struct_tm+set}" = set; then
  8447. echo $ECHO_N "(cached) $ECHO_C" >&6
  8448. else
  8449. cat >conftest.$ac_ext <<_ACEOF
  8450. /* confdefs.h. */
  8451. _ACEOF
  8452. cat confdefs.h >>conftest.$ac_ext
  8453. cat >>conftest.$ac_ext <<_ACEOF
  8454. /* end confdefs.h. */
  8455. #include <sys/types.h>
  8456. #include <time.h>
  8457. int
  8458. main ()
  8459. {
  8460. struct tm tm;
  8461. int *p = &tm.tm_sec;
  8462. return !p;
  8463. ;
  8464. return 0;
  8465. }
  8466. _ACEOF
  8467. rm -f conftest.$ac_objext
  8468. if { (ac_try="$ac_compile"
  8469. case "(($ac_try" in
  8470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8471. *) ac_try_echo=$ac_try;;
  8472. esac
  8473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8474. (eval "$ac_compile") 2>conftest.er1
  8475. ac_status=$?
  8476. grep -v '^ *+' conftest.er1 >conftest.err
  8477. rm -f conftest.er1
  8478. cat conftest.err >&5
  8479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8480. (exit $ac_status); } && {
  8481. test -z "$ac_cxx_werror_flag" ||
  8482. test ! -s conftest.err
  8483. } && test -s conftest.$ac_objext; then
  8484. ac_cv_struct_tm=time.h
  8485. else
  8486. echo "$as_me: failed program was:" >&5
  8487. sed 's/^/| /' conftest.$ac_ext >&5
  8488. ac_cv_struct_tm=sys/time.h
  8489. fi
  8490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8491. fi
  8492. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8493. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8494. if test $ac_cv_struct_tm = sys/time.h; then
  8495. cat >>confdefs.h <<\_ACEOF
  8496. #define TM_IN_SYS_TIME 1
  8497. _ACEOF
  8498. fi
  8499. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8500. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8501. if test "${ac_cv_c_uint16_t+set}" = set; then
  8502. echo $ECHO_N "(cached) $ECHO_C" >&6
  8503. else
  8504. ac_cv_c_uint16_t=no
  8505. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8506. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8507. cat >conftest.$ac_ext <<_ACEOF
  8508. /* confdefs.h. */
  8509. _ACEOF
  8510. cat confdefs.h >>conftest.$ac_ext
  8511. cat >>conftest.$ac_ext <<_ACEOF
  8512. /* end confdefs.h. */
  8513. $ac_includes_default
  8514. int
  8515. main ()
  8516. {
  8517. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8518. test_array [0] = 0
  8519. ;
  8520. return 0;
  8521. }
  8522. _ACEOF
  8523. rm -f conftest.$ac_objext
  8524. if { (ac_try="$ac_compile"
  8525. case "(($ac_try" in
  8526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8527. *) ac_try_echo=$ac_try;;
  8528. esac
  8529. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8530. (eval "$ac_compile") 2>conftest.er1
  8531. ac_status=$?
  8532. grep -v '^ *+' conftest.er1 >conftest.err
  8533. rm -f conftest.er1
  8534. cat conftest.err >&5
  8535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8536. (exit $ac_status); } && {
  8537. test -z "$ac_cxx_werror_flag" ||
  8538. test ! -s conftest.err
  8539. } && test -s conftest.$ac_objext; then
  8540. case $ac_type in
  8541. uint16_t) ac_cv_c_uint16_t=yes ;;
  8542. *) ac_cv_c_uint16_t=$ac_type ;;
  8543. esac
  8544. else
  8545. echo "$as_me: failed program was:" >&5
  8546. sed 's/^/| /' conftest.$ac_ext >&5
  8547. fi
  8548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8549. test "$ac_cv_c_uint16_t" != no && break
  8550. done
  8551. fi
  8552. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8553. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8554. case $ac_cv_c_uint16_t in #(
  8555. no|yes) ;; #(
  8556. *)
  8557. cat >>confdefs.h <<_ACEOF
  8558. #define uint16_t $ac_cv_c_uint16_t
  8559. _ACEOF
  8560. ;;
  8561. esac
  8562. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8563. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8564. if test "${ac_cv_c_uint32_t+set}" = set; then
  8565. echo $ECHO_N "(cached) $ECHO_C" >&6
  8566. else
  8567. ac_cv_c_uint32_t=no
  8568. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8569. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8570. cat >conftest.$ac_ext <<_ACEOF
  8571. /* confdefs.h. */
  8572. _ACEOF
  8573. cat confdefs.h >>conftest.$ac_ext
  8574. cat >>conftest.$ac_ext <<_ACEOF
  8575. /* end confdefs.h. */
  8576. $ac_includes_default
  8577. int
  8578. main ()
  8579. {
  8580. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8581. test_array [0] = 0
  8582. ;
  8583. return 0;
  8584. }
  8585. _ACEOF
  8586. rm -f conftest.$ac_objext
  8587. if { (ac_try="$ac_compile"
  8588. case "(($ac_try" in
  8589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8590. *) ac_try_echo=$ac_try;;
  8591. esac
  8592. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8593. (eval "$ac_compile") 2>conftest.er1
  8594. ac_status=$?
  8595. grep -v '^ *+' conftest.er1 >conftest.err
  8596. rm -f conftest.er1
  8597. cat conftest.err >&5
  8598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8599. (exit $ac_status); } && {
  8600. test -z "$ac_cxx_werror_flag" ||
  8601. test ! -s conftest.err
  8602. } && test -s conftest.$ac_objext; then
  8603. case $ac_type in
  8604. uint32_t) ac_cv_c_uint32_t=yes ;;
  8605. *) ac_cv_c_uint32_t=$ac_type ;;
  8606. esac
  8607. else
  8608. echo "$as_me: failed program was:" >&5
  8609. sed 's/^/| /' conftest.$ac_ext >&5
  8610. fi
  8611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8612. test "$ac_cv_c_uint32_t" != no && break
  8613. done
  8614. fi
  8615. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8616. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8617. case $ac_cv_c_uint32_t in #(
  8618. no|yes) ;; #(
  8619. *)
  8620. cat >>confdefs.h <<\_ACEOF
  8621. #define _UINT32_T 1
  8622. _ACEOF
  8623. cat >>confdefs.h <<_ACEOF
  8624. #define uint32_t $ac_cv_c_uint32_t
  8625. _ACEOF
  8626. ;;
  8627. esac
  8628. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8629. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8630. if test "${ac_cv_c_uint64_t+set}" = set; then
  8631. echo $ECHO_N "(cached) $ECHO_C" >&6
  8632. else
  8633. ac_cv_c_uint64_t=no
  8634. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8635. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8636. cat >conftest.$ac_ext <<_ACEOF
  8637. /* confdefs.h. */
  8638. _ACEOF
  8639. cat confdefs.h >>conftest.$ac_ext
  8640. cat >>conftest.$ac_ext <<_ACEOF
  8641. /* end confdefs.h. */
  8642. $ac_includes_default
  8643. int
  8644. main ()
  8645. {
  8646. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8647. test_array [0] = 0
  8648. ;
  8649. return 0;
  8650. }
  8651. _ACEOF
  8652. rm -f conftest.$ac_objext
  8653. if { (ac_try="$ac_compile"
  8654. case "(($ac_try" in
  8655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8656. *) ac_try_echo=$ac_try;;
  8657. esac
  8658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8659. (eval "$ac_compile") 2>conftest.er1
  8660. ac_status=$?
  8661. grep -v '^ *+' conftest.er1 >conftest.err
  8662. rm -f conftest.er1
  8663. cat conftest.err >&5
  8664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8665. (exit $ac_status); } && {
  8666. test -z "$ac_cxx_werror_flag" ||
  8667. test ! -s conftest.err
  8668. } && test -s conftest.$ac_objext; then
  8669. case $ac_type in
  8670. uint64_t) ac_cv_c_uint64_t=yes ;;
  8671. *) ac_cv_c_uint64_t=$ac_type ;;
  8672. esac
  8673. else
  8674. echo "$as_me: failed program was:" >&5
  8675. sed 's/^/| /' conftest.$ac_ext >&5
  8676. fi
  8677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8678. test "$ac_cv_c_uint64_t" != no && break
  8679. done
  8680. fi
  8681. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8682. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8683. case $ac_cv_c_uint64_t in #(
  8684. no|yes) ;; #(
  8685. *)
  8686. cat >>confdefs.h <<\_ACEOF
  8687. #define _UINT64_T 1
  8688. _ACEOF
  8689. cat >>confdefs.h <<_ACEOF
  8690. #define uint64_t $ac_cv_c_uint64_t
  8691. _ACEOF
  8692. ;;
  8693. esac
  8694. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8695. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8696. if test "${ac_cv_c_uint8_t+set}" = set; then
  8697. echo $ECHO_N "(cached) $ECHO_C" >&6
  8698. else
  8699. ac_cv_c_uint8_t=no
  8700. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8701. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8702. cat >conftest.$ac_ext <<_ACEOF
  8703. /* confdefs.h. */
  8704. _ACEOF
  8705. cat confdefs.h >>conftest.$ac_ext
  8706. cat >>conftest.$ac_ext <<_ACEOF
  8707. /* end confdefs.h. */
  8708. $ac_includes_default
  8709. int
  8710. main ()
  8711. {
  8712. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8713. test_array [0] = 0
  8714. ;
  8715. return 0;
  8716. }
  8717. _ACEOF
  8718. rm -f conftest.$ac_objext
  8719. if { (ac_try="$ac_compile"
  8720. case "(($ac_try" in
  8721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8722. *) ac_try_echo=$ac_try;;
  8723. esac
  8724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8725. (eval "$ac_compile") 2>conftest.er1
  8726. ac_status=$?
  8727. grep -v '^ *+' conftest.er1 >conftest.err
  8728. rm -f conftest.er1
  8729. cat conftest.err >&5
  8730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8731. (exit $ac_status); } && {
  8732. test -z "$ac_cxx_werror_flag" ||
  8733. test ! -s conftest.err
  8734. } && test -s conftest.$ac_objext; then
  8735. case $ac_type in
  8736. uint8_t) ac_cv_c_uint8_t=yes ;;
  8737. *) ac_cv_c_uint8_t=$ac_type ;;
  8738. esac
  8739. else
  8740. echo "$as_me: failed program was:" >&5
  8741. sed 's/^/| /' conftest.$ac_ext >&5
  8742. fi
  8743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8744. test "$ac_cv_c_uint8_t" != no && break
  8745. done
  8746. fi
  8747. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8748. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8749. case $ac_cv_c_uint8_t in #(
  8750. no|yes) ;; #(
  8751. *)
  8752. cat >>confdefs.h <<\_ACEOF
  8753. #define _UINT8_T 1
  8754. _ACEOF
  8755. cat >>confdefs.h <<_ACEOF
  8756. #define uint8_t $ac_cv_c_uint8_t
  8757. _ACEOF
  8758. ;;
  8759. esac
  8760. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8761. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8762. if test "${ac_cv_c_volatile+set}" = set; then
  8763. echo $ECHO_N "(cached) $ECHO_C" >&6
  8764. else
  8765. cat >conftest.$ac_ext <<_ACEOF
  8766. /* confdefs.h. */
  8767. _ACEOF
  8768. cat confdefs.h >>conftest.$ac_ext
  8769. cat >>conftest.$ac_ext <<_ACEOF
  8770. /* end confdefs.h. */
  8771. int
  8772. main ()
  8773. {
  8774. volatile int x;
  8775. int * volatile y = (int *) 0;
  8776. return !x && !y;
  8777. ;
  8778. return 0;
  8779. }
  8780. _ACEOF
  8781. rm -f conftest.$ac_objext
  8782. if { (ac_try="$ac_compile"
  8783. case "(($ac_try" in
  8784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8785. *) ac_try_echo=$ac_try;;
  8786. esac
  8787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8788. (eval "$ac_compile") 2>conftest.er1
  8789. ac_status=$?
  8790. grep -v '^ *+' conftest.er1 >conftest.err
  8791. rm -f conftest.er1
  8792. cat conftest.err >&5
  8793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8794. (exit $ac_status); } && {
  8795. test -z "$ac_cxx_werror_flag" ||
  8796. test ! -s conftest.err
  8797. } && test -s conftest.$ac_objext; then
  8798. ac_cv_c_volatile=yes
  8799. else
  8800. echo "$as_me: failed program was:" >&5
  8801. sed 's/^/| /' conftest.$ac_ext >&5
  8802. ac_cv_c_volatile=no
  8803. fi
  8804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8805. fi
  8806. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8807. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8808. if test $ac_cv_c_volatile = no; then
  8809. cat >>confdefs.h <<\_ACEOF
  8810. #define volatile
  8811. _ACEOF
  8812. fi
  8813. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8814. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8815. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8816. echo $ECHO_N "(cached) $ECHO_C" >&6
  8817. else
  8818. cat >conftest.$ac_ext <<_ACEOF
  8819. /* confdefs.h. */
  8820. _ACEOF
  8821. cat confdefs.h >>conftest.$ac_ext
  8822. cat >>conftest.$ac_ext <<_ACEOF
  8823. /* end confdefs.h. */
  8824. $ac_includes_default
  8825. typedef ptrdiff_t ac__type_new_;
  8826. int
  8827. main ()
  8828. {
  8829. if ((ac__type_new_ *) 0)
  8830. return 0;
  8831. if (sizeof (ac__type_new_))
  8832. return 0;
  8833. ;
  8834. return 0;
  8835. }
  8836. _ACEOF
  8837. rm -f conftest.$ac_objext
  8838. if { (ac_try="$ac_compile"
  8839. case "(($ac_try" in
  8840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8841. *) ac_try_echo=$ac_try;;
  8842. esac
  8843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8844. (eval "$ac_compile") 2>conftest.er1
  8845. ac_status=$?
  8846. grep -v '^ *+' conftest.er1 >conftest.err
  8847. rm -f conftest.er1
  8848. cat conftest.err >&5
  8849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8850. (exit $ac_status); } && {
  8851. test -z "$ac_cxx_werror_flag" ||
  8852. test ! -s conftest.err
  8853. } && test -s conftest.$ac_objext; then
  8854. ac_cv_type_ptrdiff_t=yes
  8855. else
  8856. echo "$as_me: failed program was:" >&5
  8857. sed 's/^/| /' conftest.$ac_ext >&5
  8858. ac_cv_type_ptrdiff_t=no
  8859. fi
  8860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8861. fi
  8862. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8863. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8864. if test $ac_cv_type_ptrdiff_t = yes; then
  8865. cat >>confdefs.h <<_ACEOF
  8866. #define HAVE_PTRDIFF_T 1
  8867. _ACEOF
  8868. fi
  8869. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8870. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8871. if test "${ac_cv_c_bigendian+set}" = set; then
  8872. echo $ECHO_N "(cached) $ECHO_C" >&6
  8873. else
  8874. # See if sys/param.h defines the BYTE_ORDER macro.
  8875. cat >conftest.$ac_ext <<_ACEOF
  8876. /* confdefs.h. */
  8877. _ACEOF
  8878. cat confdefs.h >>conftest.$ac_ext
  8879. cat >>conftest.$ac_ext <<_ACEOF
  8880. /* end confdefs.h. */
  8881. #include <sys/types.h>
  8882. #include <sys/param.h>
  8883. int
  8884. main ()
  8885. {
  8886. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8887. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8888. bogus endian macros
  8889. #endif
  8890. ;
  8891. return 0;
  8892. }
  8893. _ACEOF
  8894. rm -f conftest.$ac_objext
  8895. if { (ac_try="$ac_compile"
  8896. case "(($ac_try" in
  8897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8898. *) ac_try_echo=$ac_try;;
  8899. esac
  8900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8901. (eval "$ac_compile") 2>conftest.er1
  8902. ac_status=$?
  8903. grep -v '^ *+' conftest.er1 >conftest.err
  8904. rm -f conftest.er1
  8905. cat conftest.err >&5
  8906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8907. (exit $ac_status); } && {
  8908. test -z "$ac_cxx_werror_flag" ||
  8909. test ! -s conftest.err
  8910. } && test -s conftest.$ac_objext; then
  8911. # It does; now see whether it defined to BIG_ENDIAN or not.
  8912. cat >conftest.$ac_ext <<_ACEOF
  8913. /* confdefs.h. */
  8914. _ACEOF
  8915. cat confdefs.h >>conftest.$ac_ext
  8916. cat >>conftest.$ac_ext <<_ACEOF
  8917. /* end confdefs.h. */
  8918. #include <sys/types.h>
  8919. #include <sys/param.h>
  8920. int
  8921. main ()
  8922. {
  8923. #if BYTE_ORDER != BIG_ENDIAN
  8924. not big endian
  8925. #endif
  8926. ;
  8927. return 0;
  8928. }
  8929. _ACEOF
  8930. rm -f conftest.$ac_objext
  8931. if { (ac_try="$ac_compile"
  8932. case "(($ac_try" in
  8933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8934. *) ac_try_echo=$ac_try;;
  8935. esac
  8936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8937. (eval "$ac_compile") 2>conftest.er1
  8938. ac_status=$?
  8939. grep -v '^ *+' conftest.er1 >conftest.err
  8940. rm -f conftest.er1
  8941. cat conftest.err >&5
  8942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8943. (exit $ac_status); } && {
  8944. test -z "$ac_cxx_werror_flag" ||
  8945. test ! -s conftest.err
  8946. } && test -s conftest.$ac_objext; then
  8947. ac_cv_c_bigendian=yes
  8948. else
  8949. echo "$as_me: failed program was:" >&5
  8950. sed 's/^/| /' conftest.$ac_ext >&5
  8951. ac_cv_c_bigendian=no
  8952. fi
  8953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8954. else
  8955. echo "$as_me: failed program was:" >&5
  8956. sed 's/^/| /' conftest.$ac_ext >&5
  8957. # It does not; compile a test program.
  8958. if test "$cross_compiling" = yes; then
  8959. # try to guess the endianness by grepping values into an object file
  8960. ac_cv_c_bigendian=unknown
  8961. cat >conftest.$ac_ext <<_ACEOF
  8962. /* confdefs.h. */
  8963. _ACEOF
  8964. cat confdefs.h >>conftest.$ac_ext
  8965. cat >>conftest.$ac_ext <<_ACEOF
  8966. /* end confdefs.h. */
  8967. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8968. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8969. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  8970. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8971. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8972. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  8973. int
  8974. main ()
  8975. {
  8976. _ascii (); _ebcdic ();
  8977. ;
  8978. return 0;
  8979. }
  8980. _ACEOF
  8981. rm -f conftest.$ac_objext
  8982. if { (ac_try="$ac_compile"
  8983. case "(($ac_try" in
  8984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8985. *) ac_try_echo=$ac_try;;
  8986. esac
  8987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8988. (eval "$ac_compile") 2>conftest.er1
  8989. ac_status=$?
  8990. grep -v '^ *+' conftest.er1 >conftest.err
  8991. rm -f conftest.er1
  8992. cat conftest.err >&5
  8993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8994. (exit $ac_status); } && {
  8995. test -z "$ac_cxx_werror_flag" ||
  8996. test ! -s conftest.err
  8997. } && test -s conftest.$ac_objext; then
  8998. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  8999. ac_cv_c_bigendian=yes
  9000. fi
  9001. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9002. if test "$ac_cv_c_bigendian" = unknown; then
  9003. ac_cv_c_bigendian=no
  9004. else
  9005. # finding both strings is unlikely to happen, but who knows?
  9006. ac_cv_c_bigendian=unknown
  9007. fi
  9008. fi
  9009. else
  9010. echo "$as_me: failed program was:" >&5
  9011. sed 's/^/| /' conftest.$ac_ext >&5
  9012. fi
  9013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9014. else
  9015. cat >conftest.$ac_ext <<_ACEOF
  9016. /* confdefs.h. */
  9017. _ACEOF
  9018. cat confdefs.h >>conftest.$ac_ext
  9019. cat >>conftest.$ac_ext <<_ACEOF
  9020. /* end confdefs.h. */
  9021. $ac_includes_default
  9022. int
  9023. main ()
  9024. {
  9025. /* Are we little or big endian? From Harbison&Steele. */
  9026. union
  9027. {
  9028. long int l;
  9029. char c[sizeof (long int)];
  9030. } u;
  9031. u.l = 1;
  9032. return u.c[sizeof (long int) - 1] == 1;
  9033. ;
  9034. return 0;
  9035. }
  9036. _ACEOF
  9037. rm -f conftest$ac_exeext
  9038. if { (ac_try="$ac_link"
  9039. case "(($ac_try" in
  9040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9041. *) ac_try_echo=$ac_try;;
  9042. esac
  9043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9044. (eval "$ac_link") 2>&5
  9045. ac_status=$?
  9046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9047. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9048. { (case "(($ac_try" in
  9049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9050. *) ac_try_echo=$ac_try;;
  9051. esac
  9052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9053. (eval "$ac_try") 2>&5
  9054. ac_status=$?
  9055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9056. (exit $ac_status); }; }; then
  9057. ac_cv_c_bigendian=no
  9058. else
  9059. echo "$as_me: program exited with status $ac_status" >&5
  9060. echo "$as_me: failed program was:" >&5
  9061. sed 's/^/| /' conftest.$ac_ext >&5
  9062. ( exit $ac_status )
  9063. ac_cv_c_bigendian=yes
  9064. fi
  9065. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9066. fi
  9067. fi
  9068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9069. fi
  9070. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9071. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  9072. case $ac_cv_c_bigendian in
  9073. yes)
  9074. cat >>confdefs.h <<\_ACEOF
  9075. #define WORDS_BIGENDIAN 1
  9076. _ACEOF
  9077. ;;
  9078. no)
  9079. ;;
  9080. *)
  9081. { { echo "$as_me:$LINENO: error: unknown endianness
  9082. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9083. echo "$as_me: error: unknown endianness
  9084. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9085. { (exit 1); exit 1; }; } ;;
  9086. esac
  9087. # Check whether --enable-largefile was given.
  9088. if test "${enable_largefile+set}" = set; then
  9089. enableval=$enable_largefile;
  9090. fi
  9091. if test "$enable_largefile" != no; then
  9092. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9093. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  9094. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9095. echo $ECHO_N "(cached) $ECHO_C" >&6
  9096. else
  9097. ac_cv_sys_largefile_CC=no
  9098. if test "$GCC" != yes; then
  9099. ac_save_CC=$CC
  9100. while :; do
  9101. # IRIX 6.2 and later do not support large files by default,
  9102. # so use the C compiler's -n32 option if that helps.
  9103. cat >conftest.$ac_ext <<_ACEOF
  9104. /* confdefs.h. */
  9105. _ACEOF
  9106. cat confdefs.h >>conftest.$ac_ext
  9107. cat >>conftest.$ac_ext <<_ACEOF
  9108. /* end confdefs.h. */
  9109. #include <sys/types.h>
  9110. /* Check that off_t can represent 2**63 - 1 correctly.
  9111. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9112. since some C++ compilers masquerading as C compilers
  9113. incorrectly reject 9223372036854775807. */
  9114. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9115. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9116. && LARGE_OFF_T % 2147483647 == 1)
  9117. ? 1 : -1];
  9118. int
  9119. main ()
  9120. {
  9121. ;
  9122. return 0;
  9123. }
  9124. _ACEOF
  9125. rm -f conftest.$ac_objext
  9126. if { (ac_try="$ac_compile"
  9127. case "(($ac_try" in
  9128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9129. *) ac_try_echo=$ac_try;;
  9130. esac
  9131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9132. (eval "$ac_compile") 2>conftest.er1
  9133. ac_status=$?
  9134. grep -v '^ *+' conftest.er1 >conftest.err
  9135. rm -f conftest.er1
  9136. cat conftest.err >&5
  9137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9138. (exit $ac_status); } && {
  9139. test -z "$ac_cxx_werror_flag" ||
  9140. test ! -s conftest.err
  9141. } && test -s conftest.$ac_objext; then
  9142. break
  9143. else
  9144. echo "$as_me: failed program was:" >&5
  9145. sed 's/^/| /' conftest.$ac_ext >&5
  9146. fi
  9147. rm -f core conftest.err conftest.$ac_objext
  9148. CC="$CC -n32"
  9149. rm -f conftest.$ac_objext
  9150. if { (ac_try="$ac_compile"
  9151. case "(($ac_try" in
  9152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9153. *) ac_try_echo=$ac_try;;
  9154. esac
  9155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9156. (eval "$ac_compile") 2>conftest.er1
  9157. ac_status=$?
  9158. grep -v '^ *+' conftest.er1 >conftest.err
  9159. rm -f conftest.er1
  9160. cat conftest.err >&5
  9161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9162. (exit $ac_status); } && {
  9163. test -z "$ac_cxx_werror_flag" ||
  9164. test ! -s conftest.err
  9165. } && test -s conftest.$ac_objext; then
  9166. ac_cv_sys_largefile_CC=' -n32'; break
  9167. else
  9168. echo "$as_me: failed program was:" >&5
  9169. sed 's/^/| /' conftest.$ac_ext >&5
  9170. fi
  9171. rm -f core conftest.err conftest.$ac_objext
  9172. break
  9173. done
  9174. CC=$ac_save_CC
  9175. rm -f conftest.$ac_ext
  9176. fi
  9177. fi
  9178. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9179. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  9180. if test "$ac_cv_sys_largefile_CC" != no; then
  9181. CC=$CC$ac_cv_sys_largefile_CC
  9182. fi
  9183. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9184. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  9185. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9186. echo $ECHO_N "(cached) $ECHO_C" >&6
  9187. else
  9188. while :; do
  9189. cat >conftest.$ac_ext <<_ACEOF
  9190. /* confdefs.h. */
  9191. _ACEOF
  9192. cat confdefs.h >>conftest.$ac_ext
  9193. cat >>conftest.$ac_ext <<_ACEOF
  9194. /* end confdefs.h. */
  9195. #include <sys/types.h>
  9196. /* Check that off_t can represent 2**63 - 1 correctly.
  9197. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9198. since some C++ compilers masquerading as C compilers
  9199. incorrectly reject 9223372036854775807. */
  9200. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9201. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9202. && LARGE_OFF_T % 2147483647 == 1)
  9203. ? 1 : -1];
  9204. int
  9205. main ()
  9206. {
  9207. ;
  9208. return 0;
  9209. }
  9210. _ACEOF
  9211. rm -f conftest.$ac_objext
  9212. if { (ac_try="$ac_compile"
  9213. case "(($ac_try" in
  9214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9215. *) ac_try_echo=$ac_try;;
  9216. esac
  9217. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9218. (eval "$ac_compile") 2>conftest.er1
  9219. ac_status=$?
  9220. grep -v '^ *+' conftest.er1 >conftest.err
  9221. rm -f conftest.er1
  9222. cat conftest.err >&5
  9223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9224. (exit $ac_status); } && {
  9225. test -z "$ac_cxx_werror_flag" ||
  9226. test ! -s conftest.err
  9227. } && test -s conftest.$ac_objext; then
  9228. ac_cv_sys_file_offset_bits=no; break
  9229. else
  9230. echo "$as_me: failed program was:" >&5
  9231. sed 's/^/| /' conftest.$ac_ext >&5
  9232. fi
  9233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9234. cat >conftest.$ac_ext <<_ACEOF
  9235. /* confdefs.h. */
  9236. _ACEOF
  9237. cat confdefs.h >>conftest.$ac_ext
  9238. cat >>conftest.$ac_ext <<_ACEOF
  9239. /* end confdefs.h. */
  9240. #define _FILE_OFFSET_BITS 64
  9241. #include <sys/types.h>
  9242. /* Check that off_t can represent 2**63 - 1 correctly.
  9243. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9244. since some C++ compilers masquerading as C compilers
  9245. incorrectly reject 9223372036854775807. */
  9246. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9247. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9248. && LARGE_OFF_T % 2147483647 == 1)
  9249. ? 1 : -1];
  9250. int
  9251. main ()
  9252. {
  9253. ;
  9254. return 0;
  9255. }
  9256. _ACEOF
  9257. rm -f conftest.$ac_objext
  9258. if { (ac_try="$ac_compile"
  9259. case "(($ac_try" in
  9260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9261. *) ac_try_echo=$ac_try;;
  9262. esac
  9263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9264. (eval "$ac_compile") 2>conftest.er1
  9265. ac_status=$?
  9266. grep -v '^ *+' conftest.er1 >conftest.err
  9267. rm -f conftest.er1
  9268. cat conftest.err >&5
  9269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9270. (exit $ac_status); } && {
  9271. test -z "$ac_cxx_werror_flag" ||
  9272. test ! -s conftest.err
  9273. } && test -s conftest.$ac_objext; then
  9274. ac_cv_sys_file_offset_bits=64; break
  9275. else
  9276. echo "$as_me: failed program was:" >&5
  9277. sed 's/^/| /' conftest.$ac_ext >&5
  9278. fi
  9279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9280. ac_cv_sys_file_offset_bits=unknown
  9281. break
  9282. done
  9283. fi
  9284. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9285. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9286. case $ac_cv_sys_file_offset_bits in #(
  9287. no | unknown) ;;
  9288. *)
  9289. cat >>confdefs.h <<_ACEOF
  9290. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9291. _ACEOF
  9292. ;;
  9293. esac
  9294. rm -f conftest*
  9295. if test $ac_cv_sys_file_offset_bits = unknown; then
  9296. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9297. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9298. if test "${ac_cv_sys_large_files+set}" = set; then
  9299. echo $ECHO_N "(cached) $ECHO_C" >&6
  9300. else
  9301. while :; do
  9302. cat >conftest.$ac_ext <<_ACEOF
  9303. /* confdefs.h. */
  9304. _ACEOF
  9305. cat confdefs.h >>conftest.$ac_ext
  9306. cat >>conftest.$ac_ext <<_ACEOF
  9307. /* end confdefs.h. */
  9308. #include <sys/types.h>
  9309. /* Check that off_t can represent 2**63 - 1 correctly.
  9310. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9311. since some C++ compilers masquerading as C compilers
  9312. incorrectly reject 9223372036854775807. */
  9313. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9314. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9315. && LARGE_OFF_T % 2147483647 == 1)
  9316. ? 1 : -1];
  9317. int
  9318. main ()
  9319. {
  9320. ;
  9321. return 0;
  9322. }
  9323. _ACEOF
  9324. rm -f conftest.$ac_objext
  9325. if { (ac_try="$ac_compile"
  9326. case "(($ac_try" in
  9327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9328. *) ac_try_echo=$ac_try;;
  9329. esac
  9330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9331. (eval "$ac_compile") 2>conftest.er1
  9332. ac_status=$?
  9333. grep -v '^ *+' conftest.er1 >conftest.err
  9334. rm -f conftest.er1
  9335. cat conftest.err >&5
  9336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9337. (exit $ac_status); } && {
  9338. test -z "$ac_cxx_werror_flag" ||
  9339. test ! -s conftest.err
  9340. } && test -s conftest.$ac_objext; then
  9341. ac_cv_sys_large_files=no; break
  9342. else
  9343. echo "$as_me: failed program was:" >&5
  9344. sed 's/^/| /' conftest.$ac_ext >&5
  9345. fi
  9346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9347. cat >conftest.$ac_ext <<_ACEOF
  9348. /* confdefs.h. */
  9349. _ACEOF
  9350. cat confdefs.h >>conftest.$ac_ext
  9351. cat >>conftest.$ac_ext <<_ACEOF
  9352. /* end confdefs.h. */
  9353. #define _LARGE_FILES 1
  9354. #include <sys/types.h>
  9355. /* Check that off_t can represent 2**63 - 1 correctly.
  9356. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9357. since some C++ compilers masquerading as C compilers
  9358. incorrectly reject 9223372036854775807. */
  9359. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9360. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9361. && LARGE_OFF_T % 2147483647 == 1)
  9362. ? 1 : -1];
  9363. int
  9364. main ()
  9365. {
  9366. ;
  9367. return 0;
  9368. }
  9369. _ACEOF
  9370. rm -f conftest.$ac_objext
  9371. if { (ac_try="$ac_compile"
  9372. case "(($ac_try" in
  9373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9374. *) ac_try_echo=$ac_try;;
  9375. esac
  9376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9377. (eval "$ac_compile") 2>conftest.er1
  9378. ac_status=$?
  9379. grep -v '^ *+' conftest.er1 >conftest.err
  9380. rm -f conftest.er1
  9381. cat conftest.err >&5
  9382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9383. (exit $ac_status); } && {
  9384. test -z "$ac_cxx_werror_flag" ||
  9385. test ! -s conftest.err
  9386. } && test -s conftest.$ac_objext; then
  9387. ac_cv_sys_large_files=1; break
  9388. else
  9389. echo "$as_me: failed program was:" >&5
  9390. sed 's/^/| /' conftest.$ac_ext >&5
  9391. fi
  9392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9393. ac_cv_sys_large_files=unknown
  9394. break
  9395. done
  9396. fi
  9397. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9398. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9399. case $ac_cv_sys_large_files in #(
  9400. no | unknown) ;;
  9401. *)
  9402. cat >>confdefs.h <<_ACEOF
  9403. #define _LARGE_FILES $ac_cv_sys_large_files
  9404. _ACEOF
  9405. ;;
  9406. esac
  9407. rm -f conftest*
  9408. fi
  9409. fi
  9410. # Checks for library functions.
  9411. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9412. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9413. # Check whether --enable-nls was given.
  9414. if test "${enable_nls+set}" = set; then
  9415. enableval=$enable_nls; USE_NLS=$enableval
  9416. else
  9417. USE_NLS=yes
  9418. fi
  9419. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9420. echo "${ECHO_T}$USE_NLS" >&6; }
  9421. GETTEXT_MACRO_VERSION=0.17
  9422. # Prepare PATH_SEPARATOR.
  9423. # The user is always right.
  9424. if test "${PATH_SEPARATOR+set}" != set; then
  9425. echo "#! /bin/sh" >conf$$.sh
  9426. echo "exit 0" >>conf$$.sh
  9427. chmod +x conf$$.sh
  9428. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9429. PATH_SEPARATOR=';'
  9430. else
  9431. PATH_SEPARATOR=:
  9432. fi
  9433. rm -f conf$$.sh
  9434. fi
  9435. # Find out how to test for executable files. Don't use a zero-byte file,
  9436. # as systems may use methods other than mode bits to determine executability.
  9437. cat >conf$$.file <<_ASEOF
  9438. #! /bin/sh
  9439. exit 0
  9440. _ASEOF
  9441. chmod +x conf$$.file
  9442. if test -x conf$$.file >/dev/null 2>&1; then
  9443. ac_executable_p="test -x"
  9444. else
  9445. ac_executable_p="test -f"
  9446. fi
  9447. rm -f conf$$.file
  9448. # Extract the first word of "msgfmt", so it can be a program name with args.
  9449. set dummy msgfmt; ac_word=$2
  9450. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9451. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9452. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9453. echo $ECHO_N "(cached) $ECHO_C" >&6
  9454. else
  9455. case "$MSGFMT" in
  9456. [\\/]* | ?:[\\/]*)
  9457. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9458. ;;
  9459. *)
  9460. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9461. for ac_dir in $PATH; do
  9462. IFS="$ac_save_IFS"
  9463. test -z "$ac_dir" && ac_dir=.
  9464. for ac_exec_ext in '' $ac_executable_extensions; do
  9465. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9466. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9467. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9468. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9469. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9470. break 2
  9471. fi
  9472. fi
  9473. done
  9474. done
  9475. IFS="$ac_save_IFS"
  9476. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9477. ;;
  9478. esac
  9479. fi
  9480. MSGFMT="$ac_cv_path_MSGFMT"
  9481. if test "$MSGFMT" != ":"; then
  9482. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9483. echo "${ECHO_T}$MSGFMT" >&6; }
  9484. else
  9485. { echo "$as_me:$LINENO: result: no" >&5
  9486. echo "${ECHO_T}no" >&6; }
  9487. fi
  9488. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9489. set dummy gmsgfmt; ac_word=$2
  9490. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9491. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9492. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9493. echo $ECHO_N "(cached) $ECHO_C" >&6
  9494. else
  9495. case $GMSGFMT in
  9496. [\\/]* | ?:[\\/]*)
  9497. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9498. ;;
  9499. *)
  9500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9501. for as_dir in $PATH
  9502. do
  9503. IFS=$as_save_IFS
  9504. test -z "$as_dir" && as_dir=.
  9505. for ac_exec_ext in '' $ac_executable_extensions; do
  9506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9507. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9508. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9509. break 2
  9510. fi
  9511. done
  9512. done
  9513. IFS=$as_save_IFS
  9514. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9515. ;;
  9516. esac
  9517. fi
  9518. GMSGFMT=$ac_cv_path_GMSGFMT
  9519. if test -n "$GMSGFMT"; then
  9520. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9521. echo "${ECHO_T}$GMSGFMT" >&6; }
  9522. else
  9523. { echo "$as_me:$LINENO: result: no" >&5
  9524. echo "${ECHO_T}no" >&6; }
  9525. fi
  9526. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9527. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9528. *) MSGFMT_015=$MSGFMT ;;
  9529. esac
  9530. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9531. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9532. *) GMSGFMT_015=$GMSGFMT ;;
  9533. esac
  9534. # Prepare PATH_SEPARATOR.
  9535. # The user is always right.
  9536. if test "${PATH_SEPARATOR+set}" != set; then
  9537. echo "#! /bin/sh" >conf$$.sh
  9538. echo "exit 0" >>conf$$.sh
  9539. chmod +x conf$$.sh
  9540. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9541. PATH_SEPARATOR=';'
  9542. else
  9543. PATH_SEPARATOR=:
  9544. fi
  9545. rm -f conf$$.sh
  9546. fi
  9547. # Find out how to test for executable files. Don't use a zero-byte file,
  9548. # as systems may use methods other than mode bits to determine executability.
  9549. cat >conf$$.file <<_ASEOF
  9550. #! /bin/sh
  9551. exit 0
  9552. _ASEOF
  9553. chmod +x conf$$.file
  9554. if test -x conf$$.file >/dev/null 2>&1; then
  9555. ac_executable_p="test -x"
  9556. else
  9557. ac_executable_p="test -f"
  9558. fi
  9559. rm -f conf$$.file
  9560. # Extract the first word of "xgettext", so it can be a program name with args.
  9561. set dummy xgettext; ac_word=$2
  9562. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9563. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9564. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9565. echo $ECHO_N "(cached) $ECHO_C" >&6
  9566. else
  9567. case "$XGETTEXT" in
  9568. [\\/]* | ?:[\\/]*)
  9569. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9570. ;;
  9571. *)
  9572. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9573. for ac_dir in $PATH; do
  9574. IFS="$ac_save_IFS"
  9575. test -z "$ac_dir" && ac_dir=.
  9576. for ac_exec_ext in '' $ac_executable_extensions; do
  9577. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9578. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9579. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9580. (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
  9581. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9582. break 2
  9583. fi
  9584. fi
  9585. done
  9586. done
  9587. IFS="$ac_save_IFS"
  9588. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9589. ;;
  9590. esac
  9591. fi
  9592. XGETTEXT="$ac_cv_path_XGETTEXT"
  9593. if test "$XGETTEXT" != ":"; then
  9594. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9595. echo "${ECHO_T}$XGETTEXT" >&6; }
  9596. else
  9597. { echo "$as_me:$LINENO: result: no" >&5
  9598. echo "${ECHO_T}no" >&6; }
  9599. fi
  9600. rm -f messages.po
  9601. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9602. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9603. *) XGETTEXT_015=$XGETTEXT ;;
  9604. esac
  9605. # Prepare PATH_SEPARATOR.
  9606. # The user is always right.
  9607. if test "${PATH_SEPARATOR+set}" != set; then
  9608. echo "#! /bin/sh" >conf$$.sh
  9609. echo "exit 0" >>conf$$.sh
  9610. chmod +x conf$$.sh
  9611. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9612. PATH_SEPARATOR=';'
  9613. else
  9614. PATH_SEPARATOR=:
  9615. fi
  9616. rm -f conf$$.sh
  9617. fi
  9618. # Find out how to test for executable files. Don't use a zero-byte file,
  9619. # as systems may use methods other than mode bits to determine executability.
  9620. cat >conf$$.file <<_ASEOF
  9621. #! /bin/sh
  9622. exit 0
  9623. _ASEOF
  9624. chmod +x conf$$.file
  9625. if test -x conf$$.file >/dev/null 2>&1; then
  9626. ac_executable_p="test -x"
  9627. else
  9628. ac_executable_p="test -f"
  9629. fi
  9630. rm -f conf$$.file
  9631. # Extract the first word of "msgmerge", so it can be a program name with args.
  9632. set dummy msgmerge; ac_word=$2
  9633. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9634. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9635. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9636. echo $ECHO_N "(cached) $ECHO_C" >&6
  9637. else
  9638. case "$MSGMERGE" in
  9639. [\\/]* | ?:[\\/]*)
  9640. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9641. ;;
  9642. *)
  9643. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9644. for ac_dir in $PATH; do
  9645. IFS="$ac_save_IFS"
  9646. test -z "$ac_dir" && ac_dir=.
  9647. for ac_exec_ext in '' $ac_executable_extensions; do
  9648. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9649. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9650. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9651. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9652. break 2
  9653. fi
  9654. fi
  9655. done
  9656. done
  9657. IFS="$ac_save_IFS"
  9658. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9659. ;;
  9660. esac
  9661. fi
  9662. MSGMERGE="$ac_cv_path_MSGMERGE"
  9663. if test "$MSGMERGE" != ":"; then
  9664. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9665. echo "${ECHO_T}$MSGMERGE" >&6; }
  9666. else
  9667. { echo "$as_me:$LINENO: result: no" >&5
  9668. echo "${ECHO_T}no" >&6; }
  9669. fi
  9670. test -n "$localedir" || localedir='${datadir}/locale'
  9671. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9672. ac_config_commands="$ac_config_commands po-directories"
  9673. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9674. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9675. if test "${ac_cv_gnu_library_2+set}" = set; then
  9676. echo $ECHO_N "(cached) $ECHO_C" >&6
  9677. else
  9678. cat >conftest.$ac_ext <<_ACEOF
  9679. /* confdefs.h. */
  9680. _ACEOF
  9681. cat confdefs.h >>conftest.$ac_ext
  9682. cat >>conftest.$ac_ext <<_ACEOF
  9683. /* end confdefs.h. */
  9684. #include <features.h>
  9685. #ifdef __GNU_LIBRARY__
  9686. #if (__GLIBC__ >= 2)
  9687. Lucky GNU user
  9688. #endif
  9689. #endif
  9690. _ACEOF
  9691. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9692. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9693. ac_cv_gnu_library_2=yes
  9694. else
  9695. ac_cv_gnu_library_2=no
  9696. fi
  9697. rm -f conftest*
  9698. fi
  9699. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9700. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9701. GLIBC2="$ac_cv_gnu_library_2"
  9702. CFLAG_VISIBILITY=
  9703. HAVE_VISIBILITY=0
  9704. if test -n "$GCC"; then
  9705. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9706. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9707. if test "${gl_cv_cc_visibility+set}" = set; then
  9708. echo $ECHO_N "(cached) $ECHO_C" >&6
  9709. else
  9710. gl_save_CFLAGS="$CFLAGS"
  9711. CFLAGS="$CFLAGS -fvisibility=hidden"
  9712. cat >conftest.$ac_ext <<_ACEOF
  9713. /* confdefs.h. */
  9714. _ACEOF
  9715. cat confdefs.h >>conftest.$ac_ext
  9716. cat >>conftest.$ac_ext <<_ACEOF
  9717. /* end confdefs.h. */
  9718. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9719. extern __attribute__((__visibility__("default"))) int exportedvar;
  9720. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9721. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9722. int
  9723. main ()
  9724. {
  9725. ;
  9726. return 0;
  9727. }
  9728. _ACEOF
  9729. rm -f conftest.$ac_objext
  9730. if { (ac_try="$ac_compile"
  9731. case "(($ac_try" in
  9732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9733. *) ac_try_echo=$ac_try;;
  9734. esac
  9735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9736. (eval "$ac_compile") 2>conftest.er1
  9737. ac_status=$?
  9738. grep -v '^ *+' conftest.er1 >conftest.err
  9739. rm -f conftest.er1
  9740. cat conftest.err >&5
  9741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9742. (exit $ac_status); } && {
  9743. test -z "$ac_cxx_werror_flag" ||
  9744. test ! -s conftest.err
  9745. } && test -s conftest.$ac_objext; then
  9746. gl_cv_cc_visibility=yes
  9747. else
  9748. echo "$as_me: failed program was:" >&5
  9749. sed 's/^/| /' conftest.$ac_ext >&5
  9750. gl_cv_cc_visibility=no
  9751. fi
  9752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9753. CFLAGS="$gl_save_CFLAGS"
  9754. fi
  9755. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9756. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9757. if test $gl_cv_cc_visibility = yes; then
  9758. CFLAG_VISIBILITY="-fvisibility=hidden"
  9759. HAVE_VISIBILITY=1
  9760. fi
  9761. fi
  9762. cat >>confdefs.h <<_ACEOF
  9763. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9764. _ACEOF
  9765. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9766. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9767. if test "${gl_cv_header_stdint_h+set}" = set; then
  9768. echo $ECHO_N "(cached) $ECHO_C" >&6
  9769. else
  9770. cat >conftest.$ac_ext <<_ACEOF
  9771. /* confdefs.h. */
  9772. _ACEOF
  9773. cat confdefs.h >>conftest.$ac_ext
  9774. cat >>conftest.$ac_ext <<_ACEOF
  9775. /* end confdefs.h. */
  9776. #include <sys/types.h>
  9777. #include <stdint.h>
  9778. int
  9779. main ()
  9780. {
  9781. uintmax_t i = (uintmax_t) -1; return !i;
  9782. ;
  9783. return 0;
  9784. }
  9785. _ACEOF
  9786. rm -f conftest.$ac_objext
  9787. if { (ac_try="$ac_compile"
  9788. case "(($ac_try" in
  9789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9790. *) ac_try_echo=$ac_try;;
  9791. esac
  9792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9793. (eval "$ac_compile") 2>conftest.er1
  9794. ac_status=$?
  9795. grep -v '^ *+' conftest.er1 >conftest.err
  9796. rm -f conftest.er1
  9797. cat conftest.err >&5
  9798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9799. (exit $ac_status); } && {
  9800. test -z "$ac_cxx_werror_flag" ||
  9801. test ! -s conftest.err
  9802. } && test -s conftest.$ac_objext; then
  9803. gl_cv_header_stdint_h=yes
  9804. else
  9805. echo "$as_me: failed program was:" >&5
  9806. sed 's/^/| /' conftest.$ac_ext >&5
  9807. gl_cv_header_stdint_h=no
  9808. fi
  9809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9810. fi
  9811. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9812. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9813. if test $gl_cv_header_stdint_h = yes; then
  9814. cat >>confdefs.h <<_ACEOF
  9815. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9816. _ACEOF
  9817. fi
  9818. for ac_header in stdlib.h unistd.h
  9819. do
  9820. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9821. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9822. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9823. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9824. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9825. echo $ECHO_N "(cached) $ECHO_C" >&6
  9826. fi
  9827. ac_res=`eval echo '${'$as_ac_Header'}'`
  9828. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9829. echo "${ECHO_T}$ac_res" >&6; }
  9830. else
  9831. # Is the header compilable?
  9832. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9833. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9834. cat >conftest.$ac_ext <<_ACEOF
  9835. /* confdefs.h. */
  9836. _ACEOF
  9837. cat confdefs.h >>conftest.$ac_ext
  9838. cat >>conftest.$ac_ext <<_ACEOF
  9839. /* end confdefs.h. */
  9840. $ac_includes_default
  9841. #include <$ac_header>
  9842. _ACEOF
  9843. rm -f conftest.$ac_objext
  9844. if { (ac_try="$ac_compile"
  9845. case "(($ac_try" in
  9846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9847. *) ac_try_echo=$ac_try;;
  9848. esac
  9849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9850. (eval "$ac_compile") 2>conftest.er1
  9851. ac_status=$?
  9852. grep -v '^ *+' conftest.er1 >conftest.err
  9853. rm -f conftest.er1
  9854. cat conftest.err >&5
  9855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9856. (exit $ac_status); } && {
  9857. test -z "$ac_cxx_werror_flag" ||
  9858. test ! -s conftest.err
  9859. } && test -s conftest.$ac_objext; then
  9860. ac_header_compiler=yes
  9861. else
  9862. echo "$as_me: failed program was:" >&5
  9863. sed 's/^/| /' conftest.$ac_ext >&5
  9864. ac_header_compiler=no
  9865. fi
  9866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9867. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9868. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9869. # Is the header present?
  9870. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9871. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9872. cat >conftest.$ac_ext <<_ACEOF
  9873. /* confdefs.h. */
  9874. _ACEOF
  9875. cat confdefs.h >>conftest.$ac_ext
  9876. cat >>conftest.$ac_ext <<_ACEOF
  9877. /* end confdefs.h. */
  9878. #include <$ac_header>
  9879. _ACEOF
  9880. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9881. case "(($ac_try" in
  9882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9883. *) ac_try_echo=$ac_try;;
  9884. esac
  9885. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9886. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9887. ac_status=$?
  9888. grep -v '^ *+' conftest.er1 >conftest.err
  9889. rm -f conftest.er1
  9890. cat conftest.err >&5
  9891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9892. (exit $ac_status); } >/dev/null && {
  9893. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9894. test ! -s conftest.err
  9895. }; then
  9896. ac_header_preproc=yes
  9897. else
  9898. echo "$as_me: failed program was:" >&5
  9899. sed 's/^/| /' conftest.$ac_ext >&5
  9900. ac_header_preproc=no
  9901. fi
  9902. rm -f conftest.err conftest.$ac_ext
  9903. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9904. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9905. # So? What about this header?
  9906. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9907. yes:no: )
  9908. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9909. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9910. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9911. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9912. ac_header_preproc=yes
  9913. ;;
  9914. no:yes:* )
  9915. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9916. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9917. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9918. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9919. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9920. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9921. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9922. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9923. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9924. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9925. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9926. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9927. ( cat <<\_ASBOX
  9928. ## ----------------------------------------------- ##
  9929. ## Report this to t-tujikawa@users.sourceforge.net ##
  9930. ## ----------------------------------------------- ##
  9931. _ASBOX
  9932. ) | sed "s/^/$as_me: WARNING: /" >&2
  9933. ;;
  9934. esac
  9935. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9936. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9937. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9938. echo $ECHO_N "(cached) $ECHO_C" >&6
  9939. else
  9940. eval "$as_ac_Header=\$ac_header_preproc"
  9941. fi
  9942. ac_res=`eval echo '${'$as_ac_Header'}'`
  9943. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9944. echo "${ECHO_T}$ac_res" >&6; }
  9945. fi
  9946. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9947. cat >>confdefs.h <<_ACEOF
  9948. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9949. _ACEOF
  9950. fi
  9951. done
  9952. for ac_func in getpagesize
  9953. do
  9954. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9955. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9956. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9957. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9958. echo $ECHO_N "(cached) $ECHO_C" >&6
  9959. else
  9960. cat >conftest.$ac_ext <<_ACEOF
  9961. /* confdefs.h. */
  9962. _ACEOF
  9963. cat confdefs.h >>conftest.$ac_ext
  9964. cat >>conftest.$ac_ext <<_ACEOF
  9965. /* end confdefs.h. */
  9966. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9967. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9968. #define $ac_func innocuous_$ac_func
  9969. /* System header to define __stub macros and hopefully few prototypes,
  9970. which can conflict with char $ac_func (); below.
  9971. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9972. <limits.h> exists even on freestanding compilers. */
  9973. #ifdef __STDC__
  9974. # include <limits.h>
  9975. #else
  9976. # include <assert.h>
  9977. #endif
  9978. #undef $ac_func
  9979. /* Override any GCC internal prototype to avoid an error.
  9980. Use char because int might match the return type of a GCC
  9981. builtin and then its argument prototype would still apply. */
  9982. #ifdef __cplusplus
  9983. extern "C"
  9984. #endif
  9985. char $ac_func ();
  9986. /* The GNU C library defines this for functions which it implements
  9987. to always fail with ENOSYS. Some functions are actually named
  9988. something starting with __ and the normal name is an alias. */
  9989. #if defined __stub_$ac_func || defined __stub___$ac_func
  9990. choke me
  9991. #endif
  9992. int
  9993. main ()
  9994. {
  9995. return $ac_func ();
  9996. ;
  9997. return 0;
  9998. }
  9999. _ACEOF
  10000. rm -f conftest.$ac_objext conftest$ac_exeext
  10001. if { (ac_try="$ac_link"
  10002. case "(($ac_try" in
  10003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10004. *) ac_try_echo=$ac_try;;
  10005. esac
  10006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10007. (eval "$ac_link") 2>conftest.er1
  10008. ac_status=$?
  10009. grep -v '^ *+' conftest.er1 >conftest.err
  10010. rm -f conftest.er1
  10011. cat conftest.err >&5
  10012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10013. (exit $ac_status); } && {
  10014. test -z "$ac_cxx_werror_flag" ||
  10015. test ! -s conftest.err
  10016. } && test -s conftest$ac_exeext &&
  10017. $as_test_x conftest$ac_exeext; then
  10018. eval "$as_ac_var=yes"
  10019. else
  10020. echo "$as_me: failed program was:" >&5
  10021. sed 's/^/| /' conftest.$ac_ext >&5
  10022. eval "$as_ac_var=no"
  10023. fi
  10024. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10025. conftest$ac_exeext conftest.$ac_ext
  10026. fi
  10027. ac_res=`eval echo '${'$as_ac_var'}'`
  10028. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10029. echo "${ECHO_T}$ac_res" >&6; }
  10030. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10031. cat >>confdefs.h <<_ACEOF
  10032. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10033. _ACEOF
  10034. fi
  10035. done
  10036. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10037. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10038. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10039. echo $ECHO_N "(cached) $ECHO_C" >&6
  10040. else
  10041. if test "$cross_compiling" = yes; then
  10042. ac_cv_func_mmap_fixed_mapped=no
  10043. else
  10044. cat >conftest.$ac_ext <<_ACEOF
  10045. /* confdefs.h. */
  10046. _ACEOF
  10047. cat confdefs.h >>conftest.$ac_ext
  10048. cat >>conftest.$ac_ext <<_ACEOF
  10049. /* end confdefs.h. */
  10050. $ac_includes_default
  10051. /* malloc might have been renamed as rpl_malloc. */
  10052. #undef malloc
  10053. /* Thanks to Mike Haertel and Jim Avera for this test.
  10054. Here is a matrix of mmap possibilities:
  10055. mmap private not fixed
  10056. mmap private fixed at somewhere currently unmapped
  10057. mmap private fixed at somewhere already mapped
  10058. mmap shared not fixed
  10059. mmap shared fixed at somewhere currently unmapped
  10060. mmap shared fixed at somewhere already mapped
  10061. For private mappings, we should verify that changes cannot be read()
  10062. back from the file, nor mmap's back from the file at a different
  10063. address. (There have been systems where private was not correctly
  10064. implemented like the infamous i386 svr4.0, and systems where the
  10065. VM page cache was not coherent with the file system buffer cache
  10066. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10067. For shared mappings, we should conversely verify that changes get
  10068. propagated back to all the places they're supposed to be.
  10069. Grep wants private fixed already mapped.
  10070. The main things grep needs to know about mmap are:
  10071. * does it exist and is it safe to write into the mmap'd area
  10072. * how to use it (BSD variants) */
  10073. #include <fcntl.h>
  10074. #include <sys/mman.h>
  10075. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10076. char *malloc ();
  10077. #endif
  10078. /* This mess was copied from the GNU getpagesize.h. */
  10079. #ifndef HAVE_GETPAGESIZE
  10080. /* Assume that all systems that can run configure have sys/param.h. */
  10081. # ifndef HAVE_SYS_PARAM_H
  10082. # define HAVE_SYS_PARAM_H 1
  10083. # endif
  10084. # ifdef _SC_PAGESIZE
  10085. # define getpagesize() sysconf(_SC_PAGESIZE)
  10086. # else /* no _SC_PAGESIZE */
  10087. # ifdef HAVE_SYS_PARAM_H
  10088. # include <sys/param.h>
  10089. # ifdef EXEC_PAGESIZE
  10090. # define getpagesize() EXEC_PAGESIZE
  10091. # else /* no EXEC_PAGESIZE */
  10092. # ifdef NBPG
  10093. # define getpagesize() NBPG * CLSIZE
  10094. # ifndef CLSIZE
  10095. # define CLSIZE 1
  10096. # endif /* no CLSIZE */
  10097. # else /* no NBPG */
  10098. # ifdef NBPC
  10099. # define getpagesize() NBPC
  10100. # else /* no NBPC */
  10101. # ifdef PAGESIZE
  10102. # define getpagesize() PAGESIZE
  10103. # endif /* PAGESIZE */
  10104. # endif /* no NBPC */
  10105. # endif /* no NBPG */
  10106. # endif /* no EXEC_PAGESIZE */
  10107. # else /* no HAVE_SYS_PARAM_H */
  10108. # define getpagesize() 8192 /* punt totally */
  10109. # endif /* no HAVE_SYS_PARAM_H */
  10110. # endif /* no _SC_PAGESIZE */
  10111. #endif /* no HAVE_GETPAGESIZE */
  10112. int
  10113. main ()
  10114. {
  10115. char *data, *data2, *data3;
  10116. int i, pagesize;
  10117. int fd;
  10118. pagesize = getpagesize ();
  10119. /* First, make a file with some known garbage in it. */
  10120. data = (char *) malloc (pagesize);
  10121. if (!data)
  10122. return 1;
  10123. for (i = 0; i < pagesize; ++i)
  10124. *(data + i) = rand ();
  10125. umask (0);
  10126. fd = creat ("conftest.mmap", 0600);
  10127. if (fd < 0)
  10128. return 1;
  10129. if (write (fd, data, pagesize) != pagesize)
  10130. return 1;
  10131. close (fd);
  10132. /* Next, try to mmap the file at a fixed address which already has
  10133. something else allocated at it. If we can, also make sure that
  10134. we see the same garbage. */
  10135. fd = open ("conftest.mmap", O_RDWR);
  10136. if (fd < 0)
  10137. return 1;
  10138. data2 = (char *) malloc (2 * pagesize);
  10139. if (!data2)
  10140. return 1;
  10141. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10142. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10143. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10144. return 1;
  10145. for (i = 0; i < pagesize; ++i)
  10146. if (*(data + i) != *(data2 + i))
  10147. return 1;
  10148. /* Finally, make sure that changes to the mapped area do not
  10149. percolate back to the file as seen by read(). (This is a bug on
  10150. some variants of i386 svr4.0.) */
  10151. for (i = 0; i < pagesize; ++i)
  10152. *(data2 + i) = *(data2 + i) + 1;
  10153. data3 = (char *) malloc (pagesize);
  10154. if (!data3)
  10155. return 1;
  10156. if (read (fd, data3, pagesize) != pagesize)
  10157. return 1;
  10158. for (i = 0; i < pagesize; ++i)
  10159. if (*(data + i) != *(data3 + i))
  10160. return 1;
  10161. close (fd);
  10162. return 0;
  10163. }
  10164. _ACEOF
  10165. rm -f conftest$ac_exeext
  10166. if { (ac_try="$ac_link"
  10167. case "(($ac_try" in
  10168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10169. *) ac_try_echo=$ac_try;;
  10170. esac
  10171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10172. (eval "$ac_link") 2>&5
  10173. ac_status=$?
  10174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10175. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10176. { (case "(($ac_try" in
  10177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10178. *) ac_try_echo=$ac_try;;
  10179. esac
  10180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10181. (eval "$ac_try") 2>&5
  10182. ac_status=$?
  10183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10184. (exit $ac_status); }; }; then
  10185. ac_cv_func_mmap_fixed_mapped=yes
  10186. else
  10187. echo "$as_me: program exited with status $ac_status" >&5
  10188. echo "$as_me: failed program was:" >&5
  10189. sed 's/^/| /' conftest.$ac_ext >&5
  10190. ( exit $ac_status )
  10191. ac_cv_func_mmap_fixed_mapped=no
  10192. fi
  10193. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10194. fi
  10195. fi
  10196. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10197. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10198. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10199. cat >>confdefs.h <<\_ACEOF
  10200. #define HAVE_MMAP 1
  10201. _ACEOF
  10202. fi
  10203. rm -f conftest.mmap
  10204. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10205. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  10206. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10207. echo $ECHO_N "(cached) $ECHO_C" >&6
  10208. else
  10209. gt_cv_int_divbyzero_sigfpe=
  10210. case "$host_os" in
  10211. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10212. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10213. # compiling. If we were to perform the real test, 1 Crash Report
  10214. # dialog window would pop up.
  10215. case "$host_cpu" in
  10216. i[34567]86 | x86_64)
  10217. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10218. esac
  10219. ;;
  10220. esac
  10221. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10222. if test "$cross_compiling" = yes; then
  10223. # Guess based on the CPU.
  10224. case "$host_cpu" in
  10225. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10226. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10227. *)
  10228. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10229. esac
  10230. else
  10231. cat >conftest.$ac_ext <<_ACEOF
  10232. /* confdefs.h. */
  10233. _ACEOF
  10234. cat confdefs.h >>conftest.$ac_ext
  10235. cat >>conftest.$ac_ext <<_ACEOF
  10236. /* end confdefs.h. */
  10237. #include <stdlib.h>
  10238. #include <signal.h>
  10239. static void
  10240. sigfpe_handler (int sig)
  10241. {
  10242. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10243. exit (sig != SIGFPE);
  10244. }
  10245. int x = 1;
  10246. int y = 0;
  10247. int z;
  10248. int nan;
  10249. int main ()
  10250. {
  10251. signal (SIGFPE, sigfpe_handler);
  10252. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10253. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10254. signal (SIGTRAP, sigfpe_handler);
  10255. #endif
  10256. /* Linux/SPARC yields signal SIGILL. */
  10257. #if defined (__sparc__) && defined (__linux__)
  10258. signal (SIGILL, sigfpe_handler);
  10259. #endif
  10260. z = x / y;
  10261. nan = y / y;
  10262. exit (1);
  10263. }
  10264. _ACEOF
  10265. rm -f conftest$ac_exeext
  10266. if { (ac_try="$ac_link"
  10267. case "(($ac_try" in
  10268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10269. *) ac_try_echo=$ac_try;;
  10270. esac
  10271. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10272. (eval "$ac_link") 2>&5
  10273. ac_status=$?
  10274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10275. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10276. { (case "(($ac_try" in
  10277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10278. *) ac_try_echo=$ac_try;;
  10279. esac
  10280. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10281. (eval "$ac_try") 2>&5
  10282. ac_status=$?
  10283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10284. (exit $ac_status); }; }; then
  10285. gt_cv_int_divbyzero_sigfpe=yes
  10286. else
  10287. echo "$as_me: program exited with status $ac_status" >&5
  10288. echo "$as_me: failed program was:" >&5
  10289. sed 's/^/| /' conftest.$ac_ext >&5
  10290. ( exit $ac_status )
  10291. gt_cv_int_divbyzero_sigfpe=no
  10292. fi
  10293. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10294. fi
  10295. fi
  10296. fi
  10297. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10298. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10299. case "$gt_cv_int_divbyzero_sigfpe" in
  10300. *yes) value=1;;
  10301. *) value=0;;
  10302. esac
  10303. cat >>confdefs.h <<_ACEOF
  10304. #define INTDIV0_RAISES_SIGFPE $value
  10305. _ACEOF
  10306. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10307. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10308. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10309. echo $ECHO_N "(cached) $ECHO_C" >&6
  10310. else
  10311. cat >conftest.$ac_ext <<_ACEOF
  10312. /* confdefs.h. */
  10313. _ACEOF
  10314. cat confdefs.h >>conftest.$ac_ext
  10315. cat >>conftest.$ac_ext <<_ACEOF
  10316. /* end confdefs.h. */
  10317. #include <sys/types.h>
  10318. #include <inttypes.h>
  10319. int
  10320. main ()
  10321. {
  10322. uintmax_t i = (uintmax_t) -1; return !i;
  10323. ;
  10324. return 0;
  10325. }
  10326. _ACEOF
  10327. rm -f conftest.$ac_objext
  10328. if { (ac_try="$ac_compile"
  10329. case "(($ac_try" in
  10330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10331. *) ac_try_echo=$ac_try;;
  10332. esac
  10333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10334. (eval "$ac_compile") 2>conftest.er1
  10335. ac_status=$?
  10336. grep -v '^ *+' conftest.er1 >conftest.err
  10337. rm -f conftest.er1
  10338. cat conftest.err >&5
  10339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10340. (exit $ac_status); } && {
  10341. test -z "$ac_cxx_werror_flag" ||
  10342. test ! -s conftest.err
  10343. } && test -s conftest.$ac_objext; then
  10344. gl_cv_header_inttypes_h=yes
  10345. else
  10346. echo "$as_me: failed program was:" >&5
  10347. sed 's/^/| /' conftest.$ac_ext >&5
  10348. gl_cv_header_inttypes_h=no
  10349. fi
  10350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10351. fi
  10352. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10353. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10354. if test $gl_cv_header_inttypes_h = yes; then
  10355. cat >>confdefs.h <<_ACEOF
  10356. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10357. _ACEOF
  10358. fi
  10359. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10360. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10361. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10362. echo $ECHO_N "(cached) $ECHO_C" >&6
  10363. else
  10364. cat >conftest.$ac_ext <<_ACEOF
  10365. /* confdefs.h. */
  10366. _ACEOF
  10367. cat confdefs.h >>conftest.$ac_ext
  10368. cat >>conftest.$ac_ext <<_ACEOF
  10369. /* end confdefs.h. */
  10370. /* Test preprocessor. */
  10371. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10372. error in preprocessor;
  10373. #endif
  10374. #if ! (18446744073709551615ULL <= -1ull)
  10375. error in preprocessor;
  10376. #endif
  10377. /* Test literals. */
  10378. long long int ll = 9223372036854775807ll;
  10379. long long int nll = -9223372036854775807LL;
  10380. unsigned long long int ull = 18446744073709551615ULL;
  10381. /* Test constant expressions. */
  10382. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10383. ? 1 : -1)];
  10384. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10385. ? 1 : -1)];
  10386. int i = 63;
  10387. int
  10388. main ()
  10389. {
  10390. /* Test availability of runtime routines for shift and division. */
  10391. long long int llmax = 9223372036854775807ll;
  10392. unsigned long long int ullmax = 18446744073709551615ull;
  10393. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10394. | (llmax / ll) | (llmax % ll)
  10395. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10396. | (ullmax / ull) | (ullmax % ull));
  10397. ;
  10398. return 0;
  10399. }
  10400. _ACEOF
  10401. rm -f conftest.$ac_objext conftest$ac_exeext
  10402. if { (ac_try="$ac_link"
  10403. case "(($ac_try" in
  10404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10405. *) ac_try_echo=$ac_try;;
  10406. esac
  10407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10408. (eval "$ac_link") 2>conftest.er1
  10409. ac_status=$?
  10410. grep -v '^ *+' conftest.er1 >conftest.err
  10411. rm -f conftest.er1
  10412. cat conftest.err >&5
  10413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10414. (exit $ac_status); } && {
  10415. test -z "$ac_cxx_werror_flag" ||
  10416. test ! -s conftest.err
  10417. } && test -s conftest$ac_exeext &&
  10418. $as_test_x conftest$ac_exeext; then
  10419. ac_cv_type_unsigned_long_long_int=yes
  10420. else
  10421. echo "$as_me: failed program was:" >&5
  10422. sed 's/^/| /' conftest.$ac_ext >&5
  10423. ac_cv_type_unsigned_long_long_int=no
  10424. fi
  10425. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10426. conftest$ac_exeext conftest.$ac_ext
  10427. fi
  10428. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10429. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10430. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10431. cat >>confdefs.h <<\_ACEOF
  10432. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10433. _ACEOF
  10434. fi
  10435. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10436. test $ac_cv_type_unsigned_long_long_int = yes \
  10437. && ac_type='unsigned long long' \
  10438. || ac_type='unsigned long'
  10439. cat >>confdefs.h <<_ACEOF
  10440. #define uintmax_t $ac_type
  10441. _ACEOF
  10442. else
  10443. cat >>confdefs.h <<\_ACEOF
  10444. #define HAVE_UINTMAX_T 1
  10445. _ACEOF
  10446. fi
  10447. for ac_header in inttypes.h
  10448. do
  10449. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10450. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10451. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10452. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10453. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10454. echo $ECHO_N "(cached) $ECHO_C" >&6
  10455. fi
  10456. ac_res=`eval echo '${'$as_ac_Header'}'`
  10457. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10458. echo "${ECHO_T}$ac_res" >&6; }
  10459. else
  10460. # Is the header compilable?
  10461. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10462. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10463. cat >conftest.$ac_ext <<_ACEOF
  10464. /* confdefs.h. */
  10465. _ACEOF
  10466. cat confdefs.h >>conftest.$ac_ext
  10467. cat >>conftest.$ac_ext <<_ACEOF
  10468. /* end confdefs.h. */
  10469. $ac_includes_default
  10470. #include <$ac_header>
  10471. _ACEOF
  10472. rm -f conftest.$ac_objext
  10473. if { (ac_try="$ac_compile"
  10474. case "(($ac_try" in
  10475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10476. *) ac_try_echo=$ac_try;;
  10477. esac
  10478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10479. (eval "$ac_compile") 2>conftest.er1
  10480. ac_status=$?
  10481. grep -v '^ *+' conftest.er1 >conftest.err
  10482. rm -f conftest.er1
  10483. cat conftest.err >&5
  10484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10485. (exit $ac_status); } && {
  10486. test -z "$ac_cxx_werror_flag" ||
  10487. test ! -s conftest.err
  10488. } && test -s conftest.$ac_objext; then
  10489. ac_header_compiler=yes
  10490. else
  10491. echo "$as_me: failed program was:" >&5
  10492. sed 's/^/| /' conftest.$ac_ext >&5
  10493. ac_header_compiler=no
  10494. fi
  10495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10496. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10497. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10498. # Is the header present?
  10499. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10500. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10501. cat >conftest.$ac_ext <<_ACEOF
  10502. /* confdefs.h. */
  10503. _ACEOF
  10504. cat confdefs.h >>conftest.$ac_ext
  10505. cat >>conftest.$ac_ext <<_ACEOF
  10506. /* end confdefs.h. */
  10507. #include <$ac_header>
  10508. _ACEOF
  10509. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10510. case "(($ac_try" in
  10511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10512. *) ac_try_echo=$ac_try;;
  10513. esac
  10514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10515. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10516. ac_status=$?
  10517. grep -v '^ *+' conftest.er1 >conftest.err
  10518. rm -f conftest.er1
  10519. cat conftest.err >&5
  10520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10521. (exit $ac_status); } >/dev/null && {
  10522. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10523. test ! -s conftest.err
  10524. }; then
  10525. ac_header_preproc=yes
  10526. else
  10527. echo "$as_me: failed program was:" >&5
  10528. sed 's/^/| /' conftest.$ac_ext >&5
  10529. ac_header_preproc=no
  10530. fi
  10531. rm -f conftest.err conftest.$ac_ext
  10532. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10533. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10534. # So? What about this header?
  10535. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10536. yes:no: )
  10537. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10538. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10539. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10540. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10541. ac_header_preproc=yes
  10542. ;;
  10543. no:yes:* )
  10544. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10545. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10546. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10547. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10548. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10549. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10550. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10551. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10552. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10553. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10554. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10555. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10556. ( cat <<\_ASBOX
  10557. ## ----------------------------------------------- ##
  10558. ## Report this to t-tujikawa@users.sourceforge.net ##
  10559. ## ----------------------------------------------- ##
  10560. _ASBOX
  10561. ) | sed "s/^/$as_me: WARNING: /" >&2
  10562. ;;
  10563. esac
  10564. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10565. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10566. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10567. echo $ECHO_N "(cached) $ECHO_C" >&6
  10568. else
  10569. eval "$as_ac_Header=\$ac_header_preproc"
  10570. fi
  10571. ac_res=`eval echo '${'$as_ac_Header'}'`
  10572. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10573. echo "${ECHO_T}$ac_res" >&6; }
  10574. fi
  10575. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10576. cat >>confdefs.h <<_ACEOF
  10577. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10578. _ACEOF
  10579. fi
  10580. done
  10581. if test $ac_cv_header_inttypes_h = yes; then
  10582. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10583. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10584. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10585. echo $ECHO_N "(cached) $ECHO_C" >&6
  10586. else
  10587. cat >conftest.$ac_ext <<_ACEOF
  10588. /* confdefs.h. */
  10589. _ACEOF
  10590. cat confdefs.h >>conftest.$ac_ext
  10591. cat >>conftest.$ac_ext <<_ACEOF
  10592. /* end confdefs.h. */
  10593. #include <inttypes.h>
  10594. #ifdef PRId32
  10595. char *p = PRId32;
  10596. #endif
  10597. int
  10598. main ()
  10599. {
  10600. ;
  10601. return 0;
  10602. }
  10603. _ACEOF
  10604. rm -f conftest.$ac_objext
  10605. if { (ac_try="$ac_compile"
  10606. case "(($ac_try" in
  10607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10608. *) ac_try_echo=$ac_try;;
  10609. esac
  10610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10611. (eval "$ac_compile") 2>conftest.er1
  10612. ac_status=$?
  10613. grep -v '^ *+' conftest.er1 >conftest.err
  10614. rm -f conftest.er1
  10615. cat conftest.err >&5
  10616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10617. (exit $ac_status); } && {
  10618. test -z "$ac_cxx_werror_flag" ||
  10619. test ! -s conftest.err
  10620. } && test -s conftest.$ac_objext; then
  10621. gt_cv_inttypes_pri_broken=no
  10622. else
  10623. echo "$as_me: failed program was:" >&5
  10624. sed 's/^/| /' conftest.$ac_ext >&5
  10625. gt_cv_inttypes_pri_broken=yes
  10626. fi
  10627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10628. fi
  10629. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10630. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10631. fi
  10632. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10633. cat >>confdefs.h <<_ACEOF
  10634. #define PRI_MACROS_BROKEN 1
  10635. _ACEOF
  10636. PRI_MACROS_BROKEN=1
  10637. else
  10638. PRI_MACROS_BROKEN=0
  10639. fi
  10640. # Check whether --enable-threads was given.
  10641. if test "${enable_threads+set}" = set; then
  10642. enableval=$enable_threads; gl_use_threads=$enableval
  10643. else
  10644. case "$host_os" in
  10645. osf*) gl_use_threads=no ;;
  10646. *) gl_use_threads=yes ;;
  10647. esac
  10648. fi
  10649. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10650. # For using <pthread.h>:
  10651. case "$host_os" in
  10652. osf*)
  10653. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10654. # groks <pthread.h>. cc also understands the flag -pthread, but
  10655. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10656. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10657. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10658. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10659. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10660. ;;
  10661. esac
  10662. # Some systems optimize for single-threaded programs by default, and
  10663. # need special flags to disable these optimizations. For example, the
  10664. # definition of 'errno' in <errno.h>.
  10665. case "$host_os" in
  10666. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10667. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10668. esac
  10669. fi
  10670. if test "X$prefix" = "XNONE"; then
  10671. acl_final_prefix="$ac_default_prefix"
  10672. else
  10673. acl_final_prefix="$prefix"
  10674. fi
  10675. if test "X$exec_prefix" = "XNONE"; then
  10676. acl_final_exec_prefix='${prefix}'
  10677. else
  10678. acl_final_exec_prefix="$exec_prefix"
  10679. fi
  10680. acl_save_prefix="$prefix"
  10681. prefix="$acl_final_prefix"
  10682. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10683. prefix="$acl_save_prefix"
  10684. # Check whether --with-gnu-ld was given.
  10685. if test "${with_gnu_ld+set}" = set; then
  10686. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10687. else
  10688. with_gnu_ld=no
  10689. fi
  10690. # Prepare PATH_SEPARATOR.
  10691. # The user is always right.
  10692. if test "${PATH_SEPARATOR+set}" != set; then
  10693. echo "#! /bin/sh" >conf$$.sh
  10694. echo "exit 0" >>conf$$.sh
  10695. chmod +x conf$$.sh
  10696. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10697. PATH_SEPARATOR=';'
  10698. else
  10699. PATH_SEPARATOR=:
  10700. fi
  10701. rm -f conf$$.sh
  10702. fi
  10703. ac_prog=ld
  10704. if test "$GCC" = yes; then
  10705. # Check if gcc -print-prog-name=ld gives a path.
  10706. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10707. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10708. case $host in
  10709. *-*-mingw*)
  10710. # gcc leaves a trailing carriage return which upsets mingw
  10711. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10712. *)
  10713. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10714. esac
  10715. case $ac_prog in
  10716. # Accept absolute paths.
  10717. [\\/]* | [A-Za-z]:[\\/]*)
  10718. re_direlt='/[^/][^/]*/\.\./'
  10719. # Canonicalize the path of ld
  10720. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10721. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10722. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10723. done
  10724. test -z "$LD" && LD="$ac_prog"
  10725. ;;
  10726. "")
  10727. # If it fails, then pretend we aren't using GCC.
  10728. ac_prog=ld
  10729. ;;
  10730. *)
  10731. # If it is relative, then search for the first ld in PATH.
  10732. with_gnu_ld=unknown
  10733. ;;
  10734. esac
  10735. elif test "$with_gnu_ld" = yes; then
  10736. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10737. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10738. else
  10739. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10740. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10741. fi
  10742. if test "${acl_cv_path_LD+set}" = set; then
  10743. echo $ECHO_N "(cached) $ECHO_C" >&6
  10744. else
  10745. if test -z "$LD"; then
  10746. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10747. for ac_dir in $PATH; do
  10748. test -z "$ac_dir" && ac_dir=.
  10749. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10750. acl_cv_path_LD="$ac_dir/$ac_prog"
  10751. # Check to see if the program is GNU ld. I'd rather use --version,
  10752. # but apparently some GNU ld's only accept -v.
  10753. # Break only if it was the GNU/non-GNU ld that we prefer.
  10754. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10755. *GNU* | *'with BFD'*)
  10756. test "$with_gnu_ld" != no && break ;;
  10757. *)
  10758. test "$with_gnu_ld" != yes && break ;;
  10759. esac
  10760. fi
  10761. done
  10762. IFS="$ac_save_ifs"
  10763. else
  10764. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10765. fi
  10766. fi
  10767. LD="$acl_cv_path_LD"
  10768. if test -n "$LD"; then
  10769. { echo "$as_me:$LINENO: result: $LD" >&5
  10770. echo "${ECHO_T}$LD" >&6; }
  10771. else
  10772. { echo "$as_me:$LINENO: result: no" >&5
  10773. echo "${ECHO_T}no" >&6; }
  10774. fi
  10775. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10776. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10777. { (exit 1); exit 1; }; }
  10778. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10779. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10780. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10781. echo $ECHO_N "(cached) $ECHO_C" >&6
  10782. else
  10783. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10784. case `$LD -v 2>&1 </dev/null` in
  10785. *GNU* | *'with BFD'*)
  10786. acl_cv_prog_gnu_ld=yes ;;
  10787. *)
  10788. acl_cv_prog_gnu_ld=no ;;
  10789. esac
  10790. fi
  10791. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10792. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10793. with_gnu_ld=$acl_cv_prog_gnu_ld
  10794. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10795. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10796. if test "${acl_cv_rpath+set}" = set; then
  10797. echo $ECHO_N "(cached) $ECHO_C" >&6
  10798. else
  10799. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10800. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10801. . ./conftest.sh
  10802. rm -f ./conftest.sh
  10803. acl_cv_rpath=done
  10804. fi
  10805. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10806. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10807. wl="$acl_cv_wl"
  10808. acl_libext="$acl_cv_libext"
  10809. acl_shlibext="$acl_cv_shlibext"
  10810. acl_libname_spec="$acl_cv_libname_spec"
  10811. acl_library_names_spec="$acl_cv_library_names_spec"
  10812. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10813. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10814. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10815. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10816. # Check whether --enable-rpath was given.
  10817. if test "${enable_rpath+set}" = set; then
  10818. enableval=$enable_rpath; :
  10819. else
  10820. enable_rpath=yes
  10821. fi
  10822. acl_libdirstem=lib
  10823. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10824. if test -n "$searchpath"; then
  10825. acl_save_IFS="${IFS= }"; IFS=":"
  10826. for searchdir in $searchpath; do
  10827. if test -d "$searchdir"; then
  10828. case "$searchdir" in
  10829. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10830. *) searchdir=`cd "$searchdir" && pwd`
  10831. case "$searchdir" in
  10832. */lib64 ) acl_libdirstem=lib64 ;;
  10833. esac ;;
  10834. esac
  10835. fi
  10836. done
  10837. IFS="$acl_save_IFS"
  10838. fi
  10839. gl_threads_api=none
  10840. LIBTHREAD=
  10841. LTLIBTHREAD=
  10842. LIBMULTITHREAD=
  10843. LTLIBMULTITHREAD=
  10844. if test "$gl_use_threads" != no; then
  10845. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10846. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10847. gl_have_weak=no
  10848. cat >conftest.$ac_ext <<_ACEOF
  10849. /* confdefs.h. */
  10850. _ACEOF
  10851. cat confdefs.h >>conftest.$ac_ext
  10852. cat >>conftest.$ac_ext <<_ACEOF
  10853. /* end confdefs.h. */
  10854. extern void xyzzy ();
  10855. #pragma weak xyzzy
  10856. int
  10857. main ()
  10858. {
  10859. xyzzy();
  10860. ;
  10861. return 0;
  10862. }
  10863. _ACEOF
  10864. rm -f conftest.$ac_objext conftest$ac_exeext
  10865. if { (ac_try="$ac_link"
  10866. case "(($ac_try" in
  10867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10868. *) ac_try_echo=$ac_try;;
  10869. esac
  10870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10871. (eval "$ac_link") 2>conftest.er1
  10872. ac_status=$?
  10873. grep -v '^ *+' conftest.er1 >conftest.err
  10874. rm -f conftest.er1
  10875. cat conftest.err >&5
  10876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10877. (exit $ac_status); } && {
  10878. test -z "$ac_cxx_werror_flag" ||
  10879. test ! -s conftest.err
  10880. } && test -s conftest$ac_exeext &&
  10881. $as_test_x conftest$ac_exeext; then
  10882. gl_have_weak=yes
  10883. else
  10884. echo "$as_me: failed program was:" >&5
  10885. sed 's/^/| /' conftest.$ac_ext >&5
  10886. fi
  10887. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10888. conftest$ac_exeext conftest.$ac_ext
  10889. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10890. echo "${ECHO_T}$gl_have_weak" >&6; }
  10891. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10892. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10893. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10894. if test "${ac_cv_header_pthread_h+set}" = set; then
  10895. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10896. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10897. if test "${ac_cv_header_pthread_h+set}" = set; then
  10898. echo $ECHO_N "(cached) $ECHO_C" >&6
  10899. fi
  10900. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10901. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10902. else
  10903. # Is the header compilable?
  10904. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10905. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10906. cat >conftest.$ac_ext <<_ACEOF
  10907. /* confdefs.h. */
  10908. _ACEOF
  10909. cat confdefs.h >>conftest.$ac_ext
  10910. cat >>conftest.$ac_ext <<_ACEOF
  10911. /* end confdefs.h. */
  10912. $ac_includes_default
  10913. #include <pthread.h>
  10914. _ACEOF
  10915. rm -f conftest.$ac_objext
  10916. if { (ac_try="$ac_compile"
  10917. case "(($ac_try" in
  10918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10919. *) ac_try_echo=$ac_try;;
  10920. esac
  10921. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10922. (eval "$ac_compile") 2>conftest.er1
  10923. ac_status=$?
  10924. grep -v '^ *+' conftest.er1 >conftest.err
  10925. rm -f conftest.er1
  10926. cat conftest.err >&5
  10927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10928. (exit $ac_status); } && {
  10929. test -z "$ac_cxx_werror_flag" ||
  10930. test ! -s conftest.err
  10931. } && test -s conftest.$ac_objext; then
  10932. ac_header_compiler=yes
  10933. else
  10934. echo "$as_me: failed program was:" >&5
  10935. sed 's/^/| /' conftest.$ac_ext >&5
  10936. ac_header_compiler=no
  10937. fi
  10938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10939. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10940. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10941. # Is the header present?
  10942. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10943. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10944. cat >conftest.$ac_ext <<_ACEOF
  10945. /* confdefs.h. */
  10946. _ACEOF
  10947. cat confdefs.h >>conftest.$ac_ext
  10948. cat >>conftest.$ac_ext <<_ACEOF
  10949. /* end confdefs.h. */
  10950. #include <pthread.h>
  10951. _ACEOF
  10952. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10953. case "(($ac_try" in
  10954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10955. *) ac_try_echo=$ac_try;;
  10956. esac
  10957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10958. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10959. ac_status=$?
  10960. grep -v '^ *+' conftest.er1 >conftest.err
  10961. rm -f conftest.er1
  10962. cat conftest.err >&5
  10963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10964. (exit $ac_status); } >/dev/null && {
  10965. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10966. test ! -s conftest.err
  10967. }; then
  10968. ac_header_preproc=yes
  10969. else
  10970. echo "$as_me: failed program was:" >&5
  10971. sed 's/^/| /' conftest.$ac_ext >&5
  10972. ac_header_preproc=no
  10973. fi
  10974. rm -f conftest.err conftest.$ac_ext
  10975. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10976. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10977. # So? What about this header?
  10978. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10979. yes:no: )
  10980. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10981. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10982. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10983. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10984. ac_header_preproc=yes
  10985. ;;
  10986. no:yes:* )
  10987. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10988. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10989. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10990. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10991. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10992. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10993. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10994. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10995. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10996. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10997. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10998. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10999. ( cat <<\_ASBOX
  11000. ## ----------------------------------------------- ##
  11001. ## Report this to t-tujikawa@users.sourceforge.net ##
  11002. ## ----------------------------------------------- ##
  11003. _ASBOX
  11004. ) | sed "s/^/$as_me: WARNING: /" >&2
  11005. ;;
  11006. esac
  11007. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  11008. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  11009. if test "${ac_cv_header_pthread_h+set}" = set; then
  11010. echo $ECHO_N "(cached) $ECHO_C" >&6
  11011. else
  11012. ac_cv_header_pthread_h=$ac_header_preproc
  11013. fi
  11014. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11015. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  11016. fi
  11017. if test $ac_cv_header_pthread_h = yes; then
  11018. gl_have_pthread_h=yes
  11019. else
  11020. gl_have_pthread_h=no
  11021. fi
  11022. if test "$gl_have_pthread_h" = yes; then
  11023. # Other possible tests:
  11024. # -lpthreads (FSU threads, PCthreads)
  11025. # -lgthreads
  11026. gl_have_pthread=
  11027. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11028. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11029. # the second one only in libpthread, and lock.c needs it.
  11030. cat >conftest.$ac_ext <<_ACEOF
  11031. /* confdefs.h. */
  11032. _ACEOF
  11033. cat confdefs.h >>conftest.$ac_ext
  11034. cat >>conftest.$ac_ext <<_ACEOF
  11035. /* end confdefs.h. */
  11036. #include <pthread.h>
  11037. int
  11038. main ()
  11039. {
  11040. pthread_mutex_lock((pthread_mutex_t*)0);
  11041. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11042. ;
  11043. return 0;
  11044. }
  11045. _ACEOF
  11046. rm -f conftest.$ac_objext conftest$ac_exeext
  11047. if { (ac_try="$ac_link"
  11048. case "(($ac_try" in
  11049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11050. *) ac_try_echo=$ac_try;;
  11051. esac
  11052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11053. (eval "$ac_link") 2>conftest.er1
  11054. ac_status=$?
  11055. grep -v '^ *+' conftest.er1 >conftest.err
  11056. rm -f conftest.er1
  11057. cat conftest.err >&5
  11058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11059. (exit $ac_status); } && {
  11060. test -z "$ac_cxx_werror_flag" ||
  11061. test ! -s conftest.err
  11062. } && test -s conftest$ac_exeext &&
  11063. $as_test_x conftest$ac_exeext; then
  11064. gl_have_pthread=yes
  11065. else
  11066. echo "$as_me: failed program was:" >&5
  11067. sed 's/^/| /' conftest.$ac_ext >&5
  11068. fi
  11069. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11070. conftest$ac_exeext conftest.$ac_ext
  11071. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11072. # since it is defined as a macro on OSF/1.)
  11073. if test -n "$gl_have_pthread"; then
  11074. # The program links fine without libpthread. But it may actually
  11075. # need to link with libpthread in order to create multiple threads.
  11076. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11077. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11078. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11079. echo $ECHO_N "(cached) $ECHO_C" >&6
  11080. else
  11081. ac_check_lib_save_LIBS=$LIBS
  11082. LIBS="-lpthread $LIBS"
  11083. cat >conftest.$ac_ext <<_ACEOF
  11084. /* confdefs.h. */
  11085. _ACEOF
  11086. cat confdefs.h >>conftest.$ac_ext
  11087. cat >>conftest.$ac_ext <<_ACEOF
  11088. /* end confdefs.h. */
  11089. /* Override any GCC internal prototype to avoid an error.
  11090. Use char because int might match the return type of a GCC
  11091. builtin and then its argument prototype would still apply. */
  11092. #ifdef __cplusplus
  11093. extern "C"
  11094. #endif
  11095. char pthread_kill ();
  11096. int
  11097. main ()
  11098. {
  11099. return pthread_kill ();
  11100. ;
  11101. return 0;
  11102. }
  11103. _ACEOF
  11104. rm -f conftest.$ac_objext conftest$ac_exeext
  11105. if { (ac_try="$ac_link"
  11106. case "(($ac_try" in
  11107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11108. *) ac_try_echo=$ac_try;;
  11109. esac
  11110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11111. (eval "$ac_link") 2>conftest.er1
  11112. ac_status=$?
  11113. grep -v '^ *+' conftest.er1 >conftest.err
  11114. rm -f conftest.er1
  11115. cat conftest.err >&5
  11116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11117. (exit $ac_status); } && {
  11118. test -z "$ac_cxx_werror_flag" ||
  11119. test ! -s conftest.err
  11120. } && test -s conftest$ac_exeext &&
  11121. $as_test_x conftest$ac_exeext; then
  11122. ac_cv_lib_pthread_pthread_kill=yes
  11123. else
  11124. echo "$as_me: failed program was:" >&5
  11125. sed 's/^/| /' conftest.$ac_ext >&5
  11126. ac_cv_lib_pthread_pthread_kill=no
  11127. fi
  11128. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11129. conftest$ac_exeext conftest.$ac_ext
  11130. LIBS=$ac_check_lib_save_LIBS
  11131. fi
  11132. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11133. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11134. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11135. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11136. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11137. # Therefore pthread_in_use() needs to actually try to create a
  11138. # thread: pthread_create from libc will fail, whereas
  11139. # pthread_create will actually create a thread.
  11140. case "$host_os" in
  11141. solaris* | hpux*)
  11142. cat >>confdefs.h <<\_ACEOF
  11143. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11144. _ACEOF
  11145. esac
  11146. fi
  11147. else
  11148. # Some library is needed. Try libpthread and libc_r.
  11149. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11150. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11151. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11152. echo $ECHO_N "(cached) $ECHO_C" >&6
  11153. else
  11154. ac_check_lib_save_LIBS=$LIBS
  11155. LIBS="-lpthread $LIBS"
  11156. cat >conftest.$ac_ext <<_ACEOF
  11157. /* confdefs.h. */
  11158. _ACEOF
  11159. cat confdefs.h >>conftest.$ac_ext
  11160. cat >>conftest.$ac_ext <<_ACEOF
  11161. /* end confdefs.h. */
  11162. /* Override any GCC internal prototype to avoid an error.
  11163. Use char because int might match the return type of a GCC
  11164. builtin and then its argument prototype would still apply. */
  11165. #ifdef __cplusplus
  11166. extern "C"
  11167. #endif
  11168. char pthread_kill ();
  11169. int
  11170. main ()
  11171. {
  11172. return pthread_kill ();
  11173. ;
  11174. return 0;
  11175. }
  11176. _ACEOF
  11177. rm -f conftest.$ac_objext conftest$ac_exeext
  11178. if { (ac_try="$ac_link"
  11179. case "(($ac_try" in
  11180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11181. *) ac_try_echo=$ac_try;;
  11182. esac
  11183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11184. (eval "$ac_link") 2>conftest.er1
  11185. ac_status=$?
  11186. grep -v '^ *+' conftest.er1 >conftest.err
  11187. rm -f conftest.er1
  11188. cat conftest.err >&5
  11189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11190. (exit $ac_status); } && {
  11191. test -z "$ac_cxx_werror_flag" ||
  11192. test ! -s conftest.err
  11193. } && test -s conftest$ac_exeext &&
  11194. $as_test_x conftest$ac_exeext; then
  11195. ac_cv_lib_pthread_pthread_kill=yes
  11196. else
  11197. echo "$as_me: failed program was:" >&5
  11198. sed 's/^/| /' conftest.$ac_ext >&5
  11199. ac_cv_lib_pthread_pthread_kill=no
  11200. fi
  11201. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11202. conftest$ac_exeext conftest.$ac_ext
  11203. LIBS=$ac_check_lib_save_LIBS
  11204. fi
  11205. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11206. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11207. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11208. gl_have_pthread=yes
  11209. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11210. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11211. fi
  11212. if test -z "$gl_have_pthread"; then
  11213. # For FreeBSD 4.
  11214. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11215. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  11216. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11217. echo $ECHO_N "(cached) $ECHO_C" >&6
  11218. else
  11219. ac_check_lib_save_LIBS=$LIBS
  11220. LIBS="-lc_r $LIBS"
  11221. cat >conftest.$ac_ext <<_ACEOF
  11222. /* confdefs.h. */
  11223. _ACEOF
  11224. cat confdefs.h >>conftest.$ac_ext
  11225. cat >>conftest.$ac_ext <<_ACEOF
  11226. /* end confdefs.h. */
  11227. /* Override any GCC internal prototype to avoid an error.
  11228. Use char because int might match the return type of a GCC
  11229. builtin and then its argument prototype would still apply. */
  11230. #ifdef __cplusplus
  11231. extern "C"
  11232. #endif
  11233. char pthread_kill ();
  11234. int
  11235. main ()
  11236. {
  11237. return pthread_kill ();
  11238. ;
  11239. return 0;
  11240. }
  11241. _ACEOF
  11242. rm -f conftest.$ac_objext conftest$ac_exeext
  11243. if { (ac_try="$ac_link"
  11244. case "(($ac_try" in
  11245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11246. *) ac_try_echo=$ac_try;;
  11247. esac
  11248. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11249. (eval "$ac_link") 2>conftest.er1
  11250. ac_status=$?
  11251. grep -v '^ *+' conftest.er1 >conftest.err
  11252. rm -f conftest.er1
  11253. cat conftest.err >&5
  11254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11255. (exit $ac_status); } && {
  11256. test -z "$ac_cxx_werror_flag" ||
  11257. test ! -s conftest.err
  11258. } && test -s conftest$ac_exeext &&
  11259. $as_test_x conftest$ac_exeext; then
  11260. ac_cv_lib_c_r_pthread_kill=yes
  11261. else
  11262. echo "$as_me: failed program was:" >&5
  11263. sed 's/^/| /' conftest.$ac_ext >&5
  11264. ac_cv_lib_c_r_pthread_kill=no
  11265. fi
  11266. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11267. conftest$ac_exeext conftest.$ac_ext
  11268. LIBS=$ac_check_lib_save_LIBS
  11269. fi
  11270. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11271. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11272. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11273. gl_have_pthread=yes
  11274. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11275. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11276. fi
  11277. fi
  11278. fi
  11279. if test -n "$gl_have_pthread"; then
  11280. gl_threads_api=posix
  11281. cat >>confdefs.h <<\_ACEOF
  11282. #define USE_POSIX_THREADS 1
  11283. _ACEOF
  11284. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11285. if test $gl_have_weak = yes; then
  11286. cat >>confdefs.h <<\_ACEOF
  11287. #define USE_POSIX_THREADS_WEAK 1
  11288. _ACEOF
  11289. LIBTHREAD=
  11290. LTLIBTHREAD=
  11291. fi
  11292. fi
  11293. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11294. # pthread_rwlock_* functions.
  11295. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11296. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11297. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11298. echo $ECHO_N "(cached) $ECHO_C" >&6
  11299. else
  11300. cat >conftest.$ac_ext <<_ACEOF
  11301. /* confdefs.h. */
  11302. _ACEOF
  11303. cat confdefs.h >>conftest.$ac_ext
  11304. cat >>conftest.$ac_ext <<_ACEOF
  11305. /* end confdefs.h. */
  11306. #include <pthread.h>
  11307. typedef pthread_rwlock_t ac__type_new_;
  11308. int
  11309. main ()
  11310. {
  11311. if ((ac__type_new_ *) 0)
  11312. return 0;
  11313. if (sizeof (ac__type_new_))
  11314. return 0;
  11315. ;
  11316. return 0;
  11317. }
  11318. _ACEOF
  11319. rm -f conftest.$ac_objext
  11320. if { (ac_try="$ac_compile"
  11321. case "(($ac_try" in
  11322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11323. *) ac_try_echo=$ac_try;;
  11324. esac
  11325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11326. (eval "$ac_compile") 2>conftest.er1
  11327. ac_status=$?
  11328. grep -v '^ *+' conftest.er1 >conftest.err
  11329. rm -f conftest.er1
  11330. cat conftest.err >&5
  11331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11332. (exit $ac_status); } && {
  11333. test -z "$ac_cxx_werror_flag" ||
  11334. test ! -s conftest.err
  11335. } && test -s conftest.$ac_objext; then
  11336. ac_cv_type_pthread_rwlock_t=yes
  11337. else
  11338. echo "$as_me: failed program was:" >&5
  11339. sed 's/^/| /' conftest.$ac_ext >&5
  11340. ac_cv_type_pthread_rwlock_t=no
  11341. fi
  11342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11343. fi
  11344. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11345. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11346. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11347. cat >>confdefs.h <<\_ACEOF
  11348. #define HAVE_PTHREAD_RWLOCK 1
  11349. _ACEOF
  11350. fi
  11351. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11352. cat >conftest.$ac_ext <<_ACEOF
  11353. /* confdefs.h. */
  11354. _ACEOF
  11355. cat confdefs.h >>conftest.$ac_ext
  11356. cat >>conftest.$ac_ext <<_ACEOF
  11357. /* end confdefs.h. */
  11358. #include <pthread.h>
  11359. int
  11360. main ()
  11361. {
  11362. #if __FreeBSD__ == 4
  11363. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11364. #else
  11365. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11366. return !x;
  11367. #endif
  11368. ;
  11369. return 0;
  11370. }
  11371. _ACEOF
  11372. rm -f conftest.$ac_objext
  11373. if { (ac_try="$ac_compile"
  11374. case "(($ac_try" in
  11375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11376. *) ac_try_echo=$ac_try;;
  11377. esac
  11378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11379. (eval "$ac_compile") 2>conftest.er1
  11380. ac_status=$?
  11381. grep -v '^ *+' conftest.er1 >conftest.err
  11382. rm -f conftest.er1
  11383. cat conftest.err >&5
  11384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11385. (exit $ac_status); } && {
  11386. test -z "$ac_cxx_werror_flag" ||
  11387. test ! -s conftest.err
  11388. } && test -s conftest.$ac_objext; then
  11389. cat >>confdefs.h <<\_ACEOF
  11390. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11391. _ACEOF
  11392. else
  11393. echo "$as_me: failed program was:" >&5
  11394. sed 's/^/| /' conftest.$ac_ext >&5
  11395. fi
  11396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11397. fi
  11398. fi
  11399. fi
  11400. if test -z "$gl_have_pthread"; then
  11401. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11402. gl_have_solaristhread=
  11403. gl_save_LIBS="$LIBS"
  11404. LIBS="$LIBS -lthread"
  11405. cat >conftest.$ac_ext <<_ACEOF
  11406. /* confdefs.h. */
  11407. _ACEOF
  11408. cat confdefs.h >>conftest.$ac_ext
  11409. cat >>conftest.$ac_ext <<_ACEOF
  11410. /* end confdefs.h. */
  11411. #include <thread.h>
  11412. #include <synch.h>
  11413. int
  11414. main ()
  11415. {
  11416. thr_self();
  11417. ;
  11418. return 0;
  11419. }
  11420. _ACEOF
  11421. rm -f conftest.$ac_objext conftest$ac_exeext
  11422. if { (ac_try="$ac_link"
  11423. case "(($ac_try" in
  11424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11425. *) ac_try_echo=$ac_try;;
  11426. esac
  11427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11428. (eval "$ac_link") 2>conftest.er1
  11429. ac_status=$?
  11430. grep -v '^ *+' conftest.er1 >conftest.err
  11431. rm -f conftest.er1
  11432. cat conftest.err >&5
  11433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11434. (exit $ac_status); } && {
  11435. test -z "$ac_cxx_werror_flag" ||
  11436. test ! -s conftest.err
  11437. } && test -s conftest$ac_exeext &&
  11438. $as_test_x conftest$ac_exeext; then
  11439. gl_have_solaristhread=yes
  11440. else
  11441. echo "$as_me: failed program was:" >&5
  11442. sed 's/^/| /' conftest.$ac_ext >&5
  11443. fi
  11444. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11445. conftest$ac_exeext conftest.$ac_ext
  11446. LIBS="$gl_save_LIBS"
  11447. if test -n "$gl_have_solaristhread"; then
  11448. gl_threads_api=solaris
  11449. LIBTHREAD=-lthread
  11450. LTLIBTHREAD=-lthread
  11451. LIBMULTITHREAD="$LIBTHREAD"
  11452. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11453. cat >>confdefs.h <<\_ACEOF
  11454. #define USE_SOLARIS_THREADS 1
  11455. _ACEOF
  11456. if test $gl_have_weak = yes; then
  11457. cat >>confdefs.h <<\_ACEOF
  11458. #define USE_SOLARIS_THREADS_WEAK 1
  11459. _ACEOF
  11460. LIBTHREAD=
  11461. LTLIBTHREAD=
  11462. fi
  11463. fi
  11464. fi
  11465. fi
  11466. if test "$gl_use_threads" = pth; then
  11467. gl_save_CPPFLAGS="$CPPFLAGS"
  11468. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11469. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11470. if test "${ac_cv_libpth_libs+set}" = set; then
  11471. echo $ECHO_N "(cached) $ECHO_C" >&6
  11472. else
  11473. use_additional=yes
  11474. acl_save_prefix="$prefix"
  11475. prefix="$acl_final_prefix"
  11476. acl_save_exec_prefix="$exec_prefix"
  11477. exec_prefix="$acl_final_exec_prefix"
  11478. eval additional_includedir=\"$includedir\"
  11479. eval additional_libdir=\"$libdir\"
  11480. exec_prefix="$acl_save_exec_prefix"
  11481. prefix="$acl_save_prefix"
  11482. # Check whether --with-libpth-prefix was given.
  11483. if test "${with_libpth_prefix+set}" = set; then
  11484. withval=$with_libpth_prefix;
  11485. if test "X$withval" = "Xno"; then
  11486. use_additional=no
  11487. else
  11488. if test "X$withval" = "X"; then
  11489. acl_save_prefix="$prefix"
  11490. prefix="$acl_final_prefix"
  11491. acl_save_exec_prefix="$exec_prefix"
  11492. exec_prefix="$acl_final_exec_prefix"
  11493. eval additional_includedir=\"$includedir\"
  11494. eval additional_libdir=\"$libdir\"
  11495. exec_prefix="$acl_save_exec_prefix"
  11496. prefix="$acl_save_prefix"
  11497. else
  11498. additional_includedir="$withval/include"
  11499. additional_libdir="$withval/$acl_libdirstem"
  11500. fi
  11501. fi
  11502. fi
  11503. LIBPTH=
  11504. LTLIBPTH=
  11505. INCPTH=
  11506. LIBPTH_PREFIX=
  11507. rpathdirs=
  11508. ltrpathdirs=
  11509. names_already_handled=
  11510. names_next_round='pth '
  11511. while test -n "$names_next_round"; do
  11512. names_this_round="$names_next_round"
  11513. names_next_round=
  11514. for name in $names_this_round; do
  11515. already_handled=
  11516. for n in $names_already_handled; do
  11517. if test "$n" = "$name"; then
  11518. already_handled=yes
  11519. break
  11520. fi
  11521. done
  11522. if test -z "$already_handled"; then
  11523. names_already_handled="$names_already_handled $name"
  11524. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11525. eval value=\"\$HAVE_LIB$uppername\"
  11526. if test -n "$value"; then
  11527. if test "$value" = yes; then
  11528. eval value=\"\$LIB$uppername\"
  11529. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11530. eval value=\"\$LTLIB$uppername\"
  11531. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11532. else
  11533. :
  11534. fi
  11535. else
  11536. found_dir=
  11537. found_la=
  11538. found_so=
  11539. found_a=
  11540. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11541. if test -n "$acl_shlibext"; then
  11542. shrext=".$acl_shlibext" # typically: shrext=.so
  11543. else
  11544. shrext=
  11545. fi
  11546. if test $use_additional = yes; then
  11547. dir="$additional_libdir"
  11548. if test -n "$acl_shlibext"; then
  11549. if test -f "$dir/$libname$shrext"; then
  11550. found_dir="$dir"
  11551. found_so="$dir/$libname$shrext"
  11552. else
  11553. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11554. ver=`(cd "$dir" && \
  11555. for f in "$libname$shrext".*; do echo "$f"; done \
  11556. | sed -e "s,^$libname$shrext\\\\.,," \
  11557. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11558. | sed 1q ) 2>/dev/null`
  11559. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11560. found_dir="$dir"
  11561. found_so="$dir/$libname$shrext.$ver"
  11562. fi
  11563. else
  11564. eval library_names=\"$acl_library_names_spec\"
  11565. for f in $library_names; do
  11566. if test -f "$dir/$f"; then
  11567. found_dir="$dir"
  11568. found_so="$dir/$f"
  11569. break
  11570. fi
  11571. done
  11572. fi
  11573. fi
  11574. fi
  11575. if test "X$found_dir" = "X"; then
  11576. if test -f "$dir/$libname.$acl_libext"; then
  11577. found_dir="$dir"
  11578. found_a="$dir/$libname.$acl_libext"
  11579. fi
  11580. fi
  11581. if test "X$found_dir" != "X"; then
  11582. if test -f "$dir/$libname.la"; then
  11583. found_la="$dir/$libname.la"
  11584. fi
  11585. fi
  11586. fi
  11587. if test "X$found_dir" = "X"; then
  11588. for x in $LDFLAGS $LTLIBPTH; do
  11589. acl_save_prefix="$prefix"
  11590. prefix="$acl_final_prefix"
  11591. acl_save_exec_prefix="$exec_prefix"
  11592. exec_prefix="$acl_final_exec_prefix"
  11593. eval x=\"$x\"
  11594. exec_prefix="$acl_save_exec_prefix"
  11595. prefix="$acl_save_prefix"
  11596. case "$x" in
  11597. -L*)
  11598. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11599. if test -n "$acl_shlibext"; then
  11600. if test -f "$dir/$libname$shrext"; then
  11601. found_dir="$dir"
  11602. found_so="$dir/$libname$shrext"
  11603. else
  11604. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11605. ver=`(cd "$dir" && \
  11606. for f in "$libname$shrext".*; do echo "$f"; done \
  11607. | sed -e "s,^$libname$shrext\\\\.,," \
  11608. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11609. | sed 1q ) 2>/dev/null`
  11610. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11611. found_dir="$dir"
  11612. found_so="$dir/$libname$shrext.$ver"
  11613. fi
  11614. else
  11615. eval library_names=\"$acl_library_names_spec\"
  11616. for f in $library_names; do
  11617. if test -f "$dir/$f"; then
  11618. found_dir="$dir"
  11619. found_so="$dir/$f"
  11620. break
  11621. fi
  11622. done
  11623. fi
  11624. fi
  11625. fi
  11626. if test "X$found_dir" = "X"; then
  11627. if test -f "$dir/$libname.$acl_libext"; then
  11628. found_dir="$dir"
  11629. found_a="$dir/$libname.$acl_libext"
  11630. fi
  11631. fi
  11632. if test "X$found_dir" != "X"; then
  11633. if test -f "$dir/$libname.la"; then
  11634. found_la="$dir/$libname.la"
  11635. fi
  11636. fi
  11637. ;;
  11638. esac
  11639. if test "X$found_dir" != "X"; then
  11640. break
  11641. fi
  11642. done
  11643. fi
  11644. if test "X$found_dir" != "X"; then
  11645. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11646. if test "X$found_so" != "X"; then
  11647. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11648. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11649. else
  11650. haveit=
  11651. for x in $ltrpathdirs; do
  11652. if test "X$x" = "X$found_dir"; then
  11653. haveit=yes
  11654. break
  11655. fi
  11656. done
  11657. if test -z "$haveit"; then
  11658. ltrpathdirs="$ltrpathdirs $found_dir"
  11659. fi
  11660. if test "$acl_hardcode_direct" = yes; then
  11661. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11662. else
  11663. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11664. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11665. haveit=
  11666. for x in $rpathdirs; do
  11667. if test "X$x" = "X$found_dir"; then
  11668. haveit=yes
  11669. break
  11670. fi
  11671. done
  11672. if test -z "$haveit"; then
  11673. rpathdirs="$rpathdirs $found_dir"
  11674. fi
  11675. else
  11676. haveit=
  11677. for x in $LDFLAGS $LIBPTH; do
  11678. acl_save_prefix="$prefix"
  11679. prefix="$acl_final_prefix"
  11680. acl_save_exec_prefix="$exec_prefix"
  11681. exec_prefix="$acl_final_exec_prefix"
  11682. eval x=\"$x\"
  11683. exec_prefix="$acl_save_exec_prefix"
  11684. prefix="$acl_save_prefix"
  11685. if test "X$x" = "X-L$found_dir"; then
  11686. haveit=yes
  11687. break
  11688. fi
  11689. done
  11690. if test -z "$haveit"; then
  11691. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11692. fi
  11693. if test "$acl_hardcode_minus_L" != no; then
  11694. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11695. else
  11696. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11697. fi
  11698. fi
  11699. fi
  11700. fi
  11701. else
  11702. if test "X$found_a" != "X"; then
  11703. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11704. else
  11705. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11706. fi
  11707. fi
  11708. additional_includedir=
  11709. case "$found_dir" in
  11710. */$acl_libdirstem | */$acl_libdirstem/)
  11711. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11712. LIBPTH_PREFIX="$basedir"
  11713. additional_includedir="$basedir/include"
  11714. ;;
  11715. esac
  11716. if test "X$additional_includedir" != "X"; then
  11717. if test "X$additional_includedir" != "X/usr/include"; then
  11718. haveit=
  11719. if test "X$additional_includedir" = "X/usr/local/include"; then
  11720. if test -n "$GCC"; then
  11721. case $host_os in
  11722. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11723. esac
  11724. fi
  11725. fi
  11726. if test -z "$haveit"; then
  11727. for x in $CPPFLAGS $INCPTH; do
  11728. acl_save_prefix="$prefix"
  11729. prefix="$acl_final_prefix"
  11730. acl_save_exec_prefix="$exec_prefix"
  11731. exec_prefix="$acl_final_exec_prefix"
  11732. eval x=\"$x\"
  11733. exec_prefix="$acl_save_exec_prefix"
  11734. prefix="$acl_save_prefix"
  11735. if test "X$x" = "X-I$additional_includedir"; then
  11736. haveit=yes
  11737. break
  11738. fi
  11739. done
  11740. if test -z "$haveit"; then
  11741. if test -d "$additional_includedir"; then
  11742. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11743. fi
  11744. fi
  11745. fi
  11746. fi
  11747. fi
  11748. if test -n "$found_la"; then
  11749. save_libdir="$libdir"
  11750. case "$found_la" in
  11751. */* | *\\*) . "$found_la" ;;
  11752. *) . "./$found_la" ;;
  11753. esac
  11754. libdir="$save_libdir"
  11755. for dep in $dependency_libs; do
  11756. case "$dep" in
  11757. -L*)
  11758. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11759. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11760. haveit=
  11761. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11762. if test -n "$GCC"; then
  11763. case $host_os in
  11764. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11765. esac
  11766. fi
  11767. fi
  11768. if test -z "$haveit"; then
  11769. haveit=
  11770. for x in $LDFLAGS $LIBPTH; do
  11771. acl_save_prefix="$prefix"
  11772. prefix="$acl_final_prefix"
  11773. acl_save_exec_prefix="$exec_prefix"
  11774. exec_prefix="$acl_final_exec_prefix"
  11775. eval x=\"$x\"
  11776. exec_prefix="$acl_save_exec_prefix"
  11777. prefix="$acl_save_prefix"
  11778. if test "X$x" = "X-L$additional_libdir"; then
  11779. haveit=yes
  11780. break
  11781. fi
  11782. done
  11783. if test -z "$haveit"; then
  11784. if test -d "$additional_libdir"; then
  11785. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11786. fi
  11787. fi
  11788. haveit=
  11789. for x in $LDFLAGS $LTLIBPTH; do
  11790. acl_save_prefix="$prefix"
  11791. prefix="$acl_final_prefix"
  11792. acl_save_exec_prefix="$exec_prefix"
  11793. exec_prefix="$acl_final_exec_prefix"
  11794. eval x=\"$x\"
  11795. exec_prefix="$acl_save_exec_prefix"
  11796. prefix="$acl_save_prefix"
  11797. if test "X$x" = "X-L$additional_libdir"; then
  11798. haveit=yes
  11799. break
  11800. fi
  11801. done
  11802. if test -z "$haveit"; then
  11803. if test -d "$additional_libdir"; then
  11804. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11805. fi
  11806. fi
  11807. fi
  11808. fi
  11809. ;;
  11810. -R*)
  11811. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11812. if test "$enable_rpath" != no; then
  11813. haveit=
  11814. for x in $rpathdirs; do
  11815. if test "X$x" = "X$dir"; then
  11816. haveit=yes
  11817. break
  11818. fi
  11819. done
  11820. if test -z "$haveit"; then
  11821. rpathdirs="$rpathdirs $dir"
  11822. fi
  11823. haveit=
  11824. for x in $ltrpathdirs; do
  11825. if test "X$x" = "X$dir"; then
  11826. haveit=yes
  11827. break
  11828. fi
  11829. done
  11830. if test -z "$haveit"; then
  11831. ltrpathdirs="$ltrpathdirs $dir"
  11832. fi
  11833. fi
  11834. ;;
  11835. -l*)
  11836. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11837. ;;
  11838. *.la)
  11839. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11840. ;;
  11841. *)
  11842. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11843. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11844. ;;
  11845. esac
  11846. done
  11847. fi
  11848. else
  11849. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11850. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11851. fi
  11852. fi
  11853. fi
  11854. done
  11855. done
  11856. if test "X$rpathdirs" != "X"; then
  11857. if test -n "$acl_hardcode_libdir_separator"; then
  11858. alldirs=
  11859. for found_dir in $rpathdirs; do
  11860. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11861. done
  11862. acl_save_libdir="$libdir"
  11863. libdir="$alldirs"
  11864. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11865. libdir="$acl_save_libdir"
  11866. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11867. else
  11868. for found_dir in $rpathdirs; do
  11869. acl_save_libdir="$libdir"
  11870. libdir="$found_dir"
  11871. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11872. libdir="$acl_save_libdir"
  11873. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11874. done
  11875. fi
  11876. fi
  11877. if test "X$ltrpathdirs" != "X"; then
  11878. for found_dir in $ltrpathdirs; do
  11879. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11880. done
  11881. fi
  11882. ac_cv_libpth_libs="$LIBPTH"
  11883. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11884. ac_cv_libpth_cppflags="$INCPTH"
  11885. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11886. fi
  11887. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11888. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11889. LIBPTH="$ac_cv_libpth_libs"
  11890. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11891. INCPTH="$ac_cv_libpth_cppflags"
  11892. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11893. for element in $INCPTH; do
  11894. haveit=
  11895. for x in $CPPFLAGS; do
  11896. acl_save_prefix="$prefix"
  11897. prefix="$acl_final_prefix"
  11898. acl_save_exec_prefix="$exec_prefix"
  11899. exec_prefix="$acl_final_exec_prefix"
  11900. eval x=\"$x\"
  11901. exec_prefix="$acl_save_exec_prefix"
  11902. prefix="$acl_save_prefix"
  11903. if test "X$x" = "X$element"; then
  11904. haveit=yes
  11905. break
  11906. fi
  11907. done
  11908. if test -z "$haveit"; then
  11909. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11910. fi
  11911. done
  11912. HAVE_LIBPTH=yes
  11913. gl_have_pth=
  11914. gl_save_LIBS="$LIBS"
  11915. LIBS="$LIBS -lpth"
  11916. cat >conftest.$ac_ext <<_ACEOF
  11917. /* confdefs.h. */
  11918. _ACEOF
  11919. cat confdefs.h >>conftest.$ac_ext
  11920. cat >>conftest.$ac_ext <<_ACEOF
  11921. /* end confdefs.h. */
  11922. #include <pth.h>
  11923. int
  11924. main ()
  11925. {
  11926. pth_self();
  11927. ;
  11928. return 0;
  11929. }
  11930. _ACEOF
  11931. rm -f conftest.$ac_objext conftest$ac_exeext
  11932. if { (ac_try="$ac_link"
  11933. case "(($ac_try" in
  11934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11935. *) ac_try_echo=$ac_try;;
  11936. esac
  11937. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11938. (eval "$ac_link") 2>conftest.er1
  11939. ac_status=$?
  11940. grep -v '^ *+' conftest.er1 >conftest.err
  11941. rm -f conftest.er1
  11942. cat conftest.err >&5
  11943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11944. (exit $ac_status); } && {
  11945. test -z "$ac_cxx_werror_flag" ||
  11946. test ! -s conftest.err
  11947. } && test -s conftest$ac_exeext &&
  11948. $as_test_x conftest$ac_exeext; then
  11949. gl_have_pth=yes
  11950. else
  11951. echo "$as_me: failed program was:" >&5
  11952. sed 's/^/| /' conftest.$ac_ext >&5
  11953. fi
  11954. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11955. conftest$ac_exeext conftest.$ac_ext
  11956. LIBS="$gl_save_LIBS"
  11957. if test -n "$gl_have_pth"; then
  11958. gl_threads_api=pth
  11959. LIBTHREAD="$LIBPTH"
  11960. LTLIBTHREAD="$LTLIBPTH"
  11961. LIBMULTITHREAD="$LIBTHREAD"
  11962. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11963. cat >>confdefs.h <<\_ACEOF
  11964. #define USE_PTH_THREADS 1
  11965. _ACEOF
  11966. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11967. if test $gl_have_weak = yes; then
  11968. cat >>confdefs.h <<\_ACEOF
  11969. #define USE_PTH_THREADS_WEAK 1
  11970. _ACEOF
  11971. LIBTHREAD=
  11972. LTLIBTHREAD=
  11973. fi
  11974. fi
  11975. else
  11976. CPPFLAGS="$gl_save_CPPFLAGS"
  11977. fi
  11978. fi
  11979. if test -z "$gl_have_pthread"; then
  11980. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11981. if { case "$host_os" in
  11982. mingw*) true;;
  11983. *) false;;
  11984. esac
  11985. }; then
  11986. gl_threads_api=win32
  11987. cat >>confdefs.h <<\_ACEOF
  11988. #define USE_WIN32_THREADS 1
  11989. _ACEOF
  11990. fi
  11991. fi
  11992. fi
  11993. fi
  11994. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11995. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11996. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11997. echo "${ECHO_T}$gl_threads_api" >&6; }
  11998. use_additional=yes
  11999. acl_save_prefix="$prefix"
  12000. prefix="$acl_final_prefix"
  12001. acl_save_exec_prefix="$exec_prefix"
  12002. exec_prefix="$acl_final_exec_prefix"
  12003. eval additional_includedir=\"$includedir\"
  12004. eval additional_libdir=\"$libdir\"
  12005. exec_prefix="$acl_save_exec_prefix"
  12006. prefix="$acl_save_prefix"
  12007. # Check whether --with-libiconv-prefix was given.
  12008. if test "${with_libiconv_prefix+set}" = set; then
  12009. withval=$with_libiconv_prefix;
  12010. if test "X$withval" = "Xno"; then
  12011. use_additional=no
  12012. else
  12013. if test "X$withval" = "X"; then
  12014. acl_save_prefix="$prefix"
  12015. prefix="$acl_final_prefix"
  12016. acl_save_exec_prefix="$exec_prefix"
  12017. exec_prefix="$acl_final_exec_prefix"
  12018. eval additional_includedir=\"$includedir\"
  12019. eval additional_libdir=\"$libdir\"
  12020. exec_prefix="$acl_save_exec_prefix"
  12021. prefix="$acl_save_prefix"
  12022. else
  12023. additional_includedir="$withval/include"
  12024. additional_libdir="$withval/$acl_libdirstem"
  12025. fi
  12026. fi
  12027. fi
  12028. LIBICONV=
  12029. LTLIBICONV=
  12030. INCICONV=
  12031. LIBICONV_PREFIX=
  12032. rpathdirs=
  12033. ltrpathdirs=
  12034. names_already_handled=
  12035. names_next_round='iconv '
  12036. while test -n "$names_next_round"; do
  12037. names_this_round="$names_next_round"
  12038. names_next_round=
  12039. for name in $names_this_round; do
  12040. already_handled=
  12041. for n in $names_already_handled; do
  12042. if test "$n" = "$name"; then
  12043. already_handled=yes
  12044. break
  12045. fi
  12046. done
  12047. if test -z "$already_handled"; then
  12048. names_already_handled="$names_already_handled $name"
  12049. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12050. eval value=\"\$HAVE_LIB$uppername\"
  12051. if test -n "$value"; then
  12052. if test "$value" = yes; then
  12053. eval value=\"\$LIB$uppername\"
  12054. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12055. eval value=\"\$LTLIB$uppername\"
  12056. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12057. else
  12058. :
  12059. fi
  12060. else
  12061. found_dir=
  12062. found_la=
  12063. found_so=
  12064. found_a=
  12065. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12066. if test -n "$acl_shlibext"; then
  12067. shrext=".$acl_shlibext" # typically: shrext=.so
  12068. else
  12069. shrext=
  12070. fi
  12071. if test $use_additional = yes; then
  12072. dir="$additional_libdir"
  12073. if test -n "$acl_shlibext"; then
  12074. if test -f "$dir/$libname$shrext"; then
  12075. found_dir="$dir"
  12076. found_so="$dir/$libname$shrext"
  12077. else
  12078. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12079. ver=`(cd "$dir" && \
  12080. for f in "$libname$shrext".*; do echo "$f"; done \
  12081. | sed -e "s,^$libname$shrext\\\\.,," \
  12082. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12083. | sed 1q ) 2>/dev/null`
  12084. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12085. found_dir="$dir"
  12086. found_so="$dir/$libname$shrext.$ver"
  12087. fi
  12088. else
  12089. eval library_names=\"$acl_library_names_spec\"
  12090. for f in $library_names; do
  12091. if test -f "$dir/$f"; then
  12092. found_dir="$dir"
  12093. found_so="$dir/$f"
  12094. break
  12095. fi
  12096. done
  12097. fi
  12098. fi
  12099. fi
  12100. if test "X$found_dir" = "X"; then
  12101. if test -f "$dir/$libname.$acl_libext"; then
  12102. found_dir="$dir"
  12103. found_a="$dir/$libname.$acl_libext"
  12104. fi
  12105. fi
  12106. if test "X$found_dir" != "X"; then
  12107. if test -f "$dir/$libname.la"; then
  12108. found_la="$dir/$libname.la"
  12109. fi
  12110. fi
  12111. fi
  12112. if test "X$found_dir" = "X"; then
  12113. for x in $LDFLAGS $LTLIBICONV; do
  12114. acl_save_prefix="$prefix"
  12115. prefix="$acl_final_prefix"
  12116. acl_save_exec_prefix="$exec_prefix"
  12117. exec_prefix="$acl_final_exec_prefix"
  12118. eval x=\"$x\"
  12119. exec_prefix="$acl_save_exec_prefix"
  12120. prefix="$acl_save_prefix"
  12121. case "$x" in
  12122. -L*)
  12123. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12124. if test -n "$acl_shlibext"; then
  12125. if test -f "$dir/$libname$shrext"; then
  12126. found_dir="$dir"
  12127. found_so="$dir/$libname$shrext"
  12128. else
  12129. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12130. ver=`(cd "$dir" && \
  12131. for f in "$libname$shrext".*; do echo "$f"; done \
  12132. | sed -e "s,^$libname$shrext\\\\.,," \
  12133. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12134. | sed 1q ) 2>/dev/null`
  12135. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12136. found_dir="$dir"
  12137. found_so="$dir/$libname$shrext.$ver"
  12138. fi
  12139. else
  12140. eval library_names=\"$acl_library_names_spec\"
  12141. for f in $library_names; do
  12142. if test -f "$dir/$f"; then
  12143. found_dir="$dir"
  12144. found_so="$dir/$f"
  12145. break
  12146. fi
  12147. done
  12148. fi
  12149. fi
  12150. fi
  12151. if test "X$found_dir" = "X"; then
  12152. if test -f "$dir/$libname.$acl_libext"; then
  12153. found_dir="$dir"
  12154. found_a="$dir/$libname.$acl_libext"
  12155. fi
  12156. fi
  12157. if test "X$found_dir" != "X"; then
  12158. if test -f "$dir/$libname.la"; then
  12159. found_la="$dir/$libname.la"
  12160. fi
  12161. fi
  12162. ;;
  12163. esac
  12164. if test "X$found_dir" != "X"; then
  12165. break
  12166. fi
  12167. done
  12168. fi
  12169. if test "X$found_dir" != "X"; then
  12170. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12171. if test "X$found_so" != "X"; then
  12172. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12173. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12174. else
  12175. haveit=
  12176. for x in $ltrpathdirs; do
  12177. if test "X$x" = "X$found_dir"; then
  12178. haveit=yes
  12179. break
  12180. fi
  12181. done
  12182. if test -z "$haveit"; then
  12183. ltrpathdirs="$ltrpathdirs $found_dir"
  12184. fi
  12185. if test "$acl_hardcode_direct" = yes; then
  12186. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12187. else
  12188. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12189. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12190. haveit=
  12191. for x in $rpathdirs; do
  12192. if test "X$x" = "X$found_dir"; then
  12193. haveit=yes
  12194. break
  12195. fi
  12196. done
  12197. if test -z "$haveit"; then
  12198. rpathdirs="$rpathdirs $found_dir"
  12199. fi
  12200. else
  12201. haveit=
  12202. for x in $LDFLAGS $LIBICONV; do
  12203. acl_save_prefix="$prefix"
  12204. prefix="$acl_final_prefix"
  12205. acl_save_exec_prefix="$exec_prefix"
  12206. exec_prefix="$acl_final_exec_prefix"
  12207. eval x=\"$x\"
  12208. exec_prefix="$acl_save_exec_prefix"
  12209. prefix="$acl_save_prefix"
  12210. if test "X$x" = "X-L$found_dir"; then
  12211. haveit=yes
  12212. break
  12213. fi
  12214. done
  12215. if test -z "$haveit"; then
  12216. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12217. fi
  12218. if test "$acl_hardcode_minus_L" != no; then
  12219. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12220. else
  12221. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12222. fi
  12223. fi
  12224. fi
  12225. fi
  12226. else
  12227. if test "X$found_a" != "X"; then
  12228. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12229. else
  12230. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12231. fi
  12232. fi
  12233. additional_includedir=
  12234. case "$found_dir" in
  12235. */$acl_libdirstem | */$acl_libdirstem/)
  12236. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12237. LIBICONV_PREFIX="$basedir"
  12238. additional_includedir="$basedir/include"
  12239. ;;
  12240. esac
  12241. if test "X$additional_includedir" != "X"; then
  12242. if test "X$additional_includedir" != "X/usr/include"; then
  12243. haveit=
  12244. if test "X$additional_includedir" = "X/usr/local/include"; then
  12245. if test -n "$GCC"; then
  12246. case $host_os in
  12247. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12248. esac
  12249. fi
  12250. fi
  12251. if test -z "$haveit"; then
  12252. for x in $CPPFLAGS $INCICONV; do
  12253. acl_save_prefix="$prefix"
  12254. prefix="$acl_final_prefix"
  12255. acl_save_exec_prefix="$exec_prefix"
  12256. exec_prefix="$acl_final_exec_prefix"
  12257. eval x=\"$x\"
  12258. exec_prefix="$acl_save_exec_prefix"
  12259. prefix="$acl_save_prefix"
  12260. if test "X$x" = "X-I$additional_includedir"; then
  12261. haveit=yes
  12262. break
  12263. fi
  12264. done
  12265. if test -z "$haveit"; then
  12266. if test -d "$additional_includedir"; then
  12267. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12268. fi
  12269. fi
  12270. fi
  12271. fi
  12272. fi
  12273. if test -n "$found_la"; then
  12274. save_libdir="$libdir"
  12275. case "$found_la" in
  12276. */* | *\\*) . "$found_la" ;;
  12277. *) . "./$found_la" ;;
  12278. esac
  12279. libdir="$save_libdir"
  12280. for dep in $dependency_libs; do
  12281. case "$dep" in
  12282. -L*)
  12283. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12284. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12285. haveit=
  12286. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12287. if test -n "$GCC"; then
  12288. case $host_os in
  12289. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12290. esac
  12291. fi
  12292. fi
  12293. if test -z "$haveit"; then
  12294. haveit=
  12295. for x in $LDFLAGS $LIBICONV; do
  12296. acl_save_prefix="$prefix"
  12297. prefix="$acl_final_prefix"
  12298. acl_save_exec_prefix="$exec_prefix"
  12299. exec_prefix="$acl_final_exec_prefix"
  12300. eval x=\"$x\"
  12301. exec_prefix="$acl_save_exec_prefix"
  12302. prefix="$acl_save_prefix"
  12303. if test "X$x" = "X-L$additional_libdir"; then
  12304. haveit=yes
  12305. break
  12306. fi
  12307. done
  12308. if test -z "$haveit"; then
  12309. if test -d "$additional_libdir"; then
  12310. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12311. fi
  12312. fi
  12313. haveit=
  12314. for x in $LDFLAGS $LTLIBICONV; do
  12315. acl_save_prefix="$prefix"
  12316. prefix="$acl_final_prefix"
  12317. acl_save_exec_prefix="$exec_prefix"
  12318. exec_prefix="$acl_final_exec_prefix"
  12319. eval x=\"$x\"
  12320. exec_prefix="$acl_save_exec_prefix"
  12321. prefix="$acl_save_prefix"
  12322. if test "X$x" = "X-L$additional_libdir"; then
  12323. haveit=yes
  12324. break
  12325. fi
  12326. done
  12327. if test -z "$haveit"; then
  12328. if test -d "$additional_libdir"; then
  12329. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12330. fi
  12331. fi
  12332. fi
  12333. fi
  12334. ;;
  12335. -R*)
  12336. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12337. if test "$enable_rpath" != no; then
  12338. haveit=
  12339. for x in $rpathdirs; do
  12340. if test "X$x" = "X$dir"; then
  12341. haveit=yes
  12342. break
  12343. fi
  12344. done
  12345. if test -z "$haveit"; then
  12346. rpathdirs="$rpathdirs $dir"
  12347. fi
  12348. haveit=
  12349. for x in $ltrpathdirs; do
  12350. if test "X$x" = "X$dir"; then
  12351. haveit=yes
  12352. break
  12353. fi
  12354. done
  12355. if test -z "$haveit"; then
  12356. ltrpathdirs="$ltrpathdirs $dir"
  12357. fi
  12358. fi
  12359. ;;
  12360. -l*)
  12361. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12362. ;;
  12363. *.la)
  12364. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12365. ;;
  12366. *)
  12367. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12368. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12369. ;;
  12370. esac
  12371. done
  12372. fi
  12373. else
  12374. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12375. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12376. fi
  12377. fi
  12378. fi
  12379. done
  12380. done
  12381. if test "X$rpathdirs" != "X"; then
  12382. if test -n "$acl_hardcode_libdir_separator"; then
  12383. alldirs=
  12384. for found_dir in $rpathdirs; do
  12385. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12386. done
  12387. acl_save_libdir="$libdir"
  12388. libdir="$alldirs"
  12389. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12390. libdir="$acl_save_libdir"
  12391. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12392. else
  12393. for found_dir in $rpathdirs; do
  12394. acl_save_libdir="$libdir"
  12395. libdir="$found_dir"
  12396. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12397. libdir="$acl_save_libdir"
  12398. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12399. done
  12400. fi
  12401. fi
  12402. if test "X$ltrpathdirs" != "X"; then
  12403. for found_dir in $ltrpathdirs; do
  12404. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12405. done
  12406. fi
  12407. cat >conftest.$ac_ext <<_ACEOF
  12408. /* confdefs.h. */
  12409. _ACEOF
  12410. cat confdefs.h >>conftest.$ac_ext
  12411. cat >>conftest.$ac_ext <<_ACEOF
  12412. /* end confdefs.h. */
  12413. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12414. int
  12415. main ()
  12416. {
  12417. ;
  12418. return 0;
  12419. }
  12420. _ACEOF
  12421. rm -f conftest.$ac_objext conftest$ac_exeext
  12422. if { (ac_try="$ac_link"
  12423. case "(($ac_try" in
  12424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12425. *) ac_try_echo=$ac_try;;
  12426. esac
  12427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12428. (eval "$ac_link") 2>conftest.er1
  12429. ac_status=$?
  12430. grep -v '^ *+' conftest.er1 >conftest.err
  12431. rm -f conftest.er1
  12432. cat conftest.err >&5
  12433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12434. (exit $ac_status); } && {
  12435. test -z "$ac_cxx_werror_flag" ||
  12436. test ! -s conftest.err
  12437. } && test -s conftest$ac_exeext &&
  12438. $as_test_x conftest$ac_exeext; then
  12439. cat >>confdefs.h <<\_ACEOF
  12440. #define HAVE_BUILTIN_EXPECT 1
  12441. _ACEOF
  12442. else
  12443. echo "$as_me: failed program was:" >&5
  12444. sed 's/^/| /' conftest.$ac_ext >&5
  12445. fi
  12446. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12447. conftest$ac_exeext conftest.$ac_ext
  12448. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12449. do
  12450. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12451. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12452. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12453. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12454. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12455. echo $ECHO_N "(cached) $ECHO_C" >&6
  12456. fi
  12457. ac_res=`eval echo '${'$as_ac_Header'}'`
  12458. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12459. echo "${ECHO_T}$ac_res" >&6; }
  12460. else
  12461. # Is the header compilable?
  12462. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12463. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12464. cat >conftest.$ac_ext <<_ACEOF
  12465. /* confdefs.h. */
  12466. _ACEOF
  12467. cat confdefs.h >>conftest.$ac_ext
  12468. cat >>conftest.$ac_ext <<_ACEOF
  12469. /* end confdefs.h. */
  12470. $ac_includes_default
  12471. #include <$ac_header>
  12472. _ACEOF
  12473. rm -f conftest.$ac_objext
  12474. if { (ac_try="$ac_compile"
  12475. case "(($ac_try" in
  12476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12477. *) ac_try_echo=$ac_try;;
  12478. esac
  12479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12480. (eval "$ac_compile") 2>conftest.er1
  12481. ac_status=$?
  12482. grep -v '^ *+' conftest.er1 >conftest.err
  12483. rm -f conftest.er1
  12484. cat conftest.err >&5
  12485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12486. (exit $ac_status); } && {
  12487. test -z "$ac_cxx_werror_flag" ||
  12488. test ! -s conftest.err
  12489. } && test -s conftest.$ac_objext; then
  12490. ac_header_compiler=yes
  12491. else
  12492. echo "$as_me: failed program was:" >&5
  12493. sed 's/^/| /' conftest.$ac_ext >&5
  12494. ac_header_compiler=no
  12495. fi
  12496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12497. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12498. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12499. # Is the header present?
  12500. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12501. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12502. cat >conftest.$ac_ext <<_ACEOF
  12503. /* confdefs.h. */
  12504. _ACEOF
  12505. cat confdefs.h >>conftest.$ac_ext
  12506. cat >>conftest.$ac_ext <<_ACEOF
  12507. /* end confdefs.h. */
  12508. #include <$ac_header>
  12509. _ACEOF
  12510. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12511. case "(($ac_try" in
  12512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12513. *) ac_try_echo=$ac_try;;
  12514. esac
  12515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12516. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12517. ac_status=$?
  12518. grep -v '^ *+' conftest.er1 >conftest.err
  12519. rm -f conftest.er1
  12520. cat conftest.err >&5
  12521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12522. (exit $ac_status); } >/dev/null && {
  12523. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12524. test ! -s conftest.err
  12525. }; then
  12526. ac_header_preproc=yes
  12527. else
  12528. echo "$as_me: failed program was:" >&5
  12529. sed 's/^/| /' conftest.$ac_ext >&5
  12530. ac_header_preproc=no
  12531. fi
  12532. rm -f conftest.err conftest.$ac_ext
  12533. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12534. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12535. # So? What about this header?
  12536. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12537. yes:no: )
  12538. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12539. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12540. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12541. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12542. ac_header_preproc=yes
  12543. ;;
  12544. no:yes:* )
  12545. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12546. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12547. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12548. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12549. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12550. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12551. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12552. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12553. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12554. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12555. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12556. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12557. ( cat <<\_ASBOX
  12558. ## ----------------------------------------------- ##
  12559. ## Report this to t-tujikawa@users.sourceforge.net ##
  12560. ## ----------------------------------------------- ##
  12561. _ASBOX
  12562. ) | sed "s/^/$as_me: WARNING: /" >&2
  12563. ;;
  12564. esac
  12565. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12566. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12567. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12568. echo $ECHO_N "(cached) $ECHO_C" >&6
  12569. else
  12570. eval "$as_ac_Header=\$ac_header_preproc"
  12571. fi
  12572. ac_res=`eval echo '${'$as_ac_Header'}'`
  12573. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12574. echo "${ECHO_T}$ac_res" >&6; }
  12575. fi
  12576. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12577. cat >>confdefs.h <<_ACEOF
  12578. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12579. _ACEOF
  12580. fi
  12581. done
  12582. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12583. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12584. argz_next __fsetlocking
  12585. do
  12586. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12587. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12588. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12589. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12590. echo $ECHO_N "(cached) $ECHO_C" >&6
  12591. else
  12592. cat >conftest.$ac_ext <<_ACEOF
  12593. /* confdefs.h. */
  12594. _ACEOF
  12595. cat confdefs.h >>conftest.$ac_ext
  12596. cat >>conftest.$ac_ext <<_ACEOF
  12597. /* end confdefs.h. */
  12598. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12599. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12600. #define $ac_func innocuous_$ac_func
  12601. /* System header to define __stub macros and hopefully few prototypes,
  12602. which can conflict with char $ac_func (); below.
  12603. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12604. <limits.h> exists even on freestanding compilers. */
  12605. #ifdef __STDC__
  12606. # include <limits.h>
  12607. #else
  12608. # include <assert.h>
  12609. #endif
  12610. #undef $ac_func
  12611. /* Override any GCC internal prototype to avoid an error.
  12612. Use char because int might match the return type of a GCC
  12613. builtin and then its argument prototype would still apply. */
  12614. #ifdef __cplusplus
  12615. extern "C"
  12616. #endif
  12617. char $ac_func ();
  12618. /* The GNU C library defines this for functions which it implements
  12619. to always fail with ENOSYS. Some functions are actually named
  12620. something starting with __ and the normal name is an alias. */
  12621. #if defined __stub_$ac_func || defined __stub___$ac_func
  12622. choke me
  12623. #endif
  12624. int
  12625. main ()
  12626. {
  12627. return $ac_func ();
  12628. ;
  12629. return 0;
  12630. }
  12631. _ACEOF
  12632. rm -f conftest.$ac_objext conftest$ac_exeext
  12633. if { (ac_try="$ac_link"
  12634. case "(($ac_try" in
  12635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12636. *) ac_try_echo=$ac_try;;
  12637. esac
  12638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12639. (eval "$ac_link") 2>conftest.er1
  12640. ac_status=$?
  12641. grep -v '^ *+' conftest.er1 >conftest.err
  12642. rm -f conftest.er1
  12643. cat conftest.err >&5
  12644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12645. (exit $ac_status); } && {
  12646. test -z "$ac_cxx_werror_flag" ||
  12647. test ! -s conftest.err
  12648. } && test -s conftest$ac_exeext &&
  12649. $as_test_x conftest$ac_exeext; then
  12650. eval "$as_ac_var=yes"
  12651. else
  12652. echo "$as_me: failed program was:" >&5
  12653. sed 's/^/| /' conftest.$ac_ext >&5
  12654. eval "$as_ac_var=no"
  12655. fi
  12656. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12657. conftest$ac_exeext conftest.$ac_ext
  12658. fi
  12659. ac_res=`eval echo '${'$as_ac_var'}'`
  12660. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12661. echo "${ECHO_T}$ac_res" >&6; }
  12662. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12663. cat >>confdefs.h <<_ACEOF
  12664. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12665. _ACEOF
  12666. fi
  12667. done
  12668. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12669. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12670. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12671. echo $ECHO_N "(cached) $ECHO_C" >&6
  12672. else
  12673. cat >conftest.$ac_ext <<_ACEOF
  12674. /* confdefs.h. */
  12675. _ACEOF
  12676. cat confdefs.h >>conftest.$ac_ext
  12677. cat >>conftest.$ac_ext <<_ACEOF
  12678. /* end confdefs.h. */
  12679. #include <stdio.h>
  12680. int
  12681. main ()
  12682. {
  12683. #ifndef feof_unlocked
  12684. char *p = (char *) feof_unlocked;
  12685. #endif
  12686. ;
  12687. return 0;
  12688. }
  12689. _ACEOF
  12690. rm -f conftest.$ac_objext
  12691. if { (ac_try="$ac_compile"
  12692. case "(($ac_try" in
  12693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12694. *) ac_try_echo=$ac_try;;
  12695. esac
  12696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12697. (eval "$ac_compile") 2>conftest.er1
  12698. ac_status=$?
  12699. grep -v '^ *+' conftest.er1 >conftest.err
  12700. rm -f conftest.er1
  12701. cat conftest.err >&5
  12702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12703. (exit $ac_status); } && {
  12704. test -z "$ac_cxx_werror_flag" ||
  12705. test ! -s conftest.err
  12706. } && test -s conftest.$ac_objext; then
  12707. ac_cv_have_decl_feof_unlocked=yes
  12708. else
  12709. echo "$as_me: failed program was:" >&5
  12710. sed 's/^/| /' conftest.$ac_ext >&5
  12711. ac_cv_have_decl_feof_unlocked=no
  12712. fi
  12713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12714. fi
  12715. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12716. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12717. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12718. gt_value=1
  12719. else
  12720. gt_value=0
  12721. fi
  12722. cat >>confdefs.h <<_ACEOF
  12723. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12724. _ACEOF
  12725. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12726. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12727. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12728. echo $ECHO_N "(cached) $ECHO_C" >&6
  12729. else
  12730. cat >conftest.$ac_ext <<_ACEOF
  12731. /* confdefs.h. */
  12732. _ACEOF
  12733. cat confdefs.h >>conftest.$ac_ext
  12734. cat >>conftest.$ac_ext <<_ACEOF
  12735. /* end confdefs.h. */
  12736. #include <stdio.h>
  12737. int
  12738. main ()
  12739. {
  12740. #ifndef fgets_unlocked
  12741. char *p = (char *) fgets_unlocked;
  12742. #endif
  12743. ;
  12744. return 0;
  12745. }
  12746. _ACEOF
  12747. rm -f conftest.$ac_objext
  12748. if { (ac_try="$ac_compile"
  12749. case "(($ac_try" in
  12750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12751. *) ac_try_echo=$ac_try;;
  12752. esac
  12753. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12754. (eval "$ac_compile") 2>conftest.er1
  12755. ac_status=$?
  12756. grep -v '^ *+' conftest.er1 >conftest.err
  12757. rm -f conftest.er1
  12758. cat conftest.err >&5
  12759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12760. (exit $ac_status); } && {
  12761. test -z "$ac_cxx_werror_flag" ||
  12762. test ! -s conftest.err
  12763. } && test -s conftest.$ac_objext; then
  12764. ac_cv_have_decl_fgets_unlocked=yes
  12765. else
  12766. echo "$as_me: failed program was:" >&5
  12767. sed 's/^/| /' conftest.$ac_ext >&5
  12768. ac_cv_have_decl_fgets_unlocked=no
  12769. fi
  12770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12771. fi
  12772. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12773. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12774. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12775. gt_value=1
  12776. else
  12777. gt_value=0
  12778. fi
  12779. cat >>confdefs.h <<_ACEOF
  12780. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12781. _ACEOF
  12782. am_save_CPPFLAGS="$CPPFLAGS"
  12783. for element in $INCICONV; do
  12784. haveit=
  12785. for x in $CPPFLAGS; do
  12786. acl_save_prefix="$prefix"
  12787. prefix="$acl_final_prefix"
  12788. acl_save_exec_prefix="$exec_prefix"
  12789. exec_prefix="$acl_final_exec_prefix"
  12790. eval x=\"$x\"
  12791. exec_prefix="$acl_save_exec_prefix"
  12792. prefix="$acl_save_prefix"
  12793. if test "X$x" = "X$element"; then
  12794. haveit=yes
  12795. break
  12796. fi
  12797. done
  12798. if test -z "$haveit"; then
  12799. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12800. fi
  12801. done
  12802. { echo "$as_me:$LINENO: checking for iconv" >&5
  12803. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12804. if test "${am_cv_func_iconv+set}" = set; then
  12805. echo $ECHO_N "(cached) $ECHO_C" >&6
  12806. else
  12807. am_cv_func_iconv="no, consider installing GNU libiconv"
  12808. am_cv_lib_iconv=no
  12809. cat >conftest.$ac_ext <<_ACEOF
  12810. /* confdefs.h. */
  12811. _ACEOF
  12812. cat confdefs.h >>conftest.$ac_ext
  12813. cat >>conftest.$ac_ext <<_ACEOF
  12814. /* end confdefs.h. */
  12815. #include <stdlib.h>
  12816. #include <iconv.h>
  12817. int
  12818. main ()
  12819. {
  12820. iconv_t cd = iconv_open("","");
  12821. iconv(cd,NULL,NULL,NULL,NULL);
  12822. iconv_close(cd);
  12823. ;
  12824. return 0;
  12825. }
  12826. _ACEOF
  12827. rm -f conftest.$ac_objext conftest$ac_exeext
  12828. if { (ac_try="$ac_link"
  12829. case "(($ac_try" in
  12830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12831. *) ac_try_echo=$ac_try;;
  12832. esac
  12833. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12834. (eval "$ac_link") 2>conftest.er1
  12835. ac_status=$?
  12836. grep -v '^ *+' conftest.er1 >conftest.err
  12837. rm -f conftest.er1
  12838. cat conftest.err >&5
  12839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12840. (exit $ac_status); } && {
  12841. test -z "$ac_cxx_werror_flag" ||
  12842. test ! -s conftest.err
  12843. } && test -s conftest$ac_exeext &&
  12844. $as_test_x conftest$ac_exeext; then
  12845. am_cv_func_iconv=yes
  12846. else
  12847. echo "$as_me: failed program was:" >&5
  12848. sed 's/^/| /' conftest.$ac_ext >&5
  12849. fi
  12850. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12851. conftest$ac_exeext conftest.$ac_ext
  12852. if test "$am_cv_func_iconv" != yes; then
  12853. am_save_LIBS="$LIBS"
  12854. LIBS="$LIBS $LIBICONV"
  12855. cat >conftest.$ac_ext <<_ACEOF
  12856. /* confdefs.h. */
  12857. _ACEOF
  12858. cat confdefs.h >>conftest.$ac_ext
  12859. cat >>conftest.$ac_ext <<_ACEOF
  12860. /* end confdefs.h. */
  12861. #include <stdlib.h>
  12862. #include <iconv.h>
  12863. int
  12864. main ()
  12865. {
  12866. iconv_t cd = iconv_open("","");
  12867. iconv(cd,NULL,NULL,NULL,NULL);
  12868. iconv_close(cd);
  12869. ;
  12870. return 0;
  12871. }
  12872. _ACEOF
  12873. rm -f conftest.$ac_objext conftest$ac_exeext
  12874. if { (ac_try="$ac_link"
  12875. case "(($ac_try" in
  12876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12877. *) ac_try_echo=$ac_try;;
  12878. esac
  12879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12880. (eval "$ac_link") 2>conftest.er1
  12881. ac_status=$?
  12882. grep -v '^ *+' conftest.er1 >conftest.err
  12883. rm -f conftest.er1
  12884. cat conftest.err >&5
  12885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12886. (exit $ac_status); } && {
  12887. test -z "$ac_cxx_werror_flag" ||
  12888. test ! -s conftest.err
  12889. } && test -s conftest$ac_exeext &&
  12890. $as_test_x conftest$ac_exeext; then
  12891. am_cv_lib_iconv=yes
  12892. am_cv_func_iconv=yes
  12893. else
  12894. echo "$as_me: failed program was:" >&5
  12895. sed 's/^/| /' conftest.$ac_ext >&5
  12896. fi
  12897. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12898. conftest$ac_exeext conftest.$ac_ext
  12899. LIBS="$am_save_LIBS"
  12900. fi
  12901. fi
  12902. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12903. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12904. if test "$am_cv_func_iconv" = yes; then
  12905. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12906. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12907. if test "${am_cv_func_iconv_works+set}" = set; then
  12908. echo $ECHO_N "(cached) $ECHO_C" >&6
  12909. else
  12910. am_save_LIBS="$LIBS"
  12911. if test $am_cv_lib_iconv = yes; then
  12912. LIBS="$LIBS $LIBICONV"
  12913. fi
  12914. if test "$cross_compiling" = yes; then
  12915. case "$host_os" in
  12916. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12917. *) am_cv_func_iconv_works="guessing yes" ;;
  12918. esac
  12919. else
  12920. cat >conftest.$ac_ext <<_ACEOF
  12921. /* confdefs.h. */
  12922. _ACEOF
  12923. cat confdefs.h >>conftest.$ac_ext
  12924. cat >>conftest.$ac_ext <<_ACEOF
  12925. /* end confdefs.h. */
  12926. #include <iconv.h>
  12927. #include <string.h>
  12928. int main ()
  12929. {
  12930. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12931. returns. */
  12932. {
  12933. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12934. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12935. {
  12936. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12937. char buf[10];
  12938. const char *inptr = input;
  12939. size_t inbytesleft = strlen (input);
  12940. char *outptr = buf;
  12941. size_t outbytesleft = sizeof (buf);
  12942. size_t res = iconv (cd_utf8_to_88591,
  12943. (char **) &inptr, &inbytesleft,
  12944. &outptr, &outbytesleft);
  12945. if (res == 0)
  12946. return 1;
  12947. }
  12948. }
  12949. #if 0 /* This bug could be worked around by the caller. */
  12950. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12951. {
  12952. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12953. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12954. {
  12955. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12956. char buf[50];
  12957. const char *inptr = input;
  12958. size_t inbytesleft = strlen (input);
  12959. char *outptr = buf;
  12960. size_t outbytesleft = sizeof (buf);
  12961. size_t res = iconv (cd_88591_to_utf8,
  12962. (char **) &inptr, &inbytesleft,
  12963. &outptr, &outbytesleft);
  12964. if ((int)res > 0)
  12965. return 1;
  12966. }
  12967. }
  12968. #endif
  12969. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12970. provided. */
  12971. if (/* Try standardized names. */
  12972. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12973. /* Try IRIX, OSF/1 names. */
  12974. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12975. /* Try AIX names. */
  12976. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12977. /* Try HP-UX names. */
  12978. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12979. return 1;
  12980. return 0;
  12981. }
  12982. _ACEOF
  12983. rm -f conftest$ac_exeext
  12984. if { (ac_try="$ac_link"
  12985. case "(($ac_try" in
  12986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12987. *) ac_try_echo=$ac_try;;
  12988. esac
  12989. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12990. (eval "$ac_link") 2>&5
  12991. ac_status=$?
  12992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12993. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12994. { (case "(($ac_try" in
  12995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12996. *) ac_try_echo=$ac_try;;
  12997. esac
  12998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12999. (eval "$ac_try") 2>&5
  13000. ac_status=$?
  13001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13002. (exit $ac_status); }; }; then
  13003. am_cv_func_iconv_works=yes
  13004. else
  13005. echo "$as_me: program exited with status $ac_status" >&5
  13006. echo "$as_me: failed program was:" >&5
  13007. sed 's/^/| /' conftest.$ac_ext >&5
  13008. ( exit $ac_status )
  13009. am_cv_func_iconv_works=no
  13010. fi
  13011. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13012. fi
  13013. LIBS="$am_save_LIBS"
  13014. fi
  13015. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13016. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  13017. case "$am_cv_func_iconv_works" in
  13018. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13019. *) am_func_iconv=yes ;;
  13020. esac
  13021. else
  13022. am_func_iconv=no am_cv_lib_iconv=no
  13023. fi
  13024. if test "$am_func_iconv" = yes; then
  13025. cat >>confdefs.h <<\_ACEOF
  13026. #define HAVE_ICONV 1
  13027. _ACEOF
  13028. fi
  13029. if test "$am_cv_lib_iconv" = yes; then
  13030. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13031. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  13032. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13033. echo "${ECHO_T}$LIBICONV" >&6; }
  13034. else
  13035. CPPFLAGS="$am_save_CPPFLAGS"
  13036. LIBICONV=
  13037. LTLIBICONV=
  13038. fi
  13039. if test "$am_cv_func_iconv" = yes; then
  13040. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13041. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  13042. if test "${am_cv_proto_iconv+set}" = set; then
  13043. echo $ECHO_N "(cached) $ECHO_C" >&6
  13044. else
  13045. cat >conftest.$ac_ext <<_ACEOF
  13046. /* confdefs.h. */
  13047. _ACEOF
  13048. cat confdefs.h >>conftest.$ac_ext
  13049. cat >>conftest.$ac_ext <<_ACEOF
  13050. /* end confdefs.h. */
  13051. #include <stdlib.h>
  13052. #include <iconv.h>
  13053. extern
  13054. #ifdef __cplusplus
  13055. "C"
  13056. #endif
  13057. #if defined(__STDC__) || defined(__cplusplus)
  13058. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13059. #else
  13060. size_t iconv();
  13061. #endif
  13062. int
  13063. main ()
  13064. {
  13065. ;
  13066. return 0;
  13067. }
  13068. _ACEOF
  13069. rm -f conftest.$ac_objext
  13070. if { (ac_try="$ac_compile"
  13071. case "(($ac_try" in
  13072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13073. *) ac_try_echo=$ac_try;;
  13074. esac
  13075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13076. (eval "$ac_compile") 2>conftest.er1
  13077. ac_status=$?
  13078. grep -v '^ *+' conftest.er1 >conftest.err
  13079. rm -f conftest.er1
  13080. cat conftest.err >&5
  13081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13082. (exit $ac_status); } && {
  13083. test -z "$ac_cxx_werror_flag" ||
  13084. test ! -s conftest.err
  13085. } && test -s conftest.$ac_objext; then
  13086. am_cv_proto_iconv_arg1=""
  13087. else
  13088. echo "$as_me: failed program was:" >&5
  13089. sed 's/^/| /' conftest.$ac_ext >&5
  13090. am_cv_proto_iconv_arg1="const"
  13091. fi
  13092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13093. 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);"
  13094. fi
  13095. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13096. { echo "$as_me:$LINENO: result: ${ac_t:-
  13097. }$am_cv_proto_iconv" >&5
  13098. echo "${ECHO_T}${ac_t:-
  13099. }$am_cv_proto_iconv" >&6; }
  13100. cat >>confdefs.h <<_ACEOF
  13101. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13102. _ACEOF
  13103. fi
  13104. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13105. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  13106. if test "${gt_cv_nl_locale_name+set}" = set; then
  13107. echo $ECHO_N "(cached) $ECHO_C" >&6
  13108. else
  13109. cat >conftest.$ac_ext <<_ACEOF
  13110. /* confdefs.h. */
  13111. _ACEOF
  13112. cat confdefs.h >>conftest.$ac_ext
  13113. cat >>conftest.$ac_ext <<_ACEOF
  13114. /* end confdefs.h. */
  13115. #include <langinfo.h>
  13116. #include <locale.h>
  13117. int
  13118. main ()
  13119. {
  13120. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13121. return !cs;
  13122. ;
  13123. return 0;
  13124. }
  13125. _ACEOF
  13126. rm -f conftest.$ac_objext conftest$ac_exeext
  13127. if { (ac_try="$ac_link"
  13128. case "(($ac_try" in
  13129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13130. *) ac_try_echo=$ac_try;;
  13131. esac
  13132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13133. (eval "$ac_link") 2>conftest.er1
  13134. ac_status=$?
  13135. grep -v '^ *+' conftest.er1 >conftest.err
  13136. rm -f conftest.er1
  13137. cat conftest.err >&5
  13138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13139. (exit $ac_status); } && {
  13140. test -z "$ac_cxx_werror_flag" ||
  13141. test ! -s conftest.err
  13142. } && test -s conftest$ac_exeext &&
  13143. $as_test_x conftest$ac_exeext; then
  13144. gt_cv_nl_locale_name=yes
  13145. else
  13146. echo "$as_me: failed program was:" >&5
  13147. sed 's/^/| /' conftest.$ac_ext >&5
  13148. gt_cv_nl_locale_name=no
  13149. fi
  13150. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13151. conftest$ac_exeext conftest.$ac_ext
  13152. fi
  13153. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13154. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  13155. if test $gt_cv_nl_locale_name = yes; then
  13156. cat >>confdefs.h <<\_ACEOF
  13157. #define HAVE_NL_LOCALE_NAME 1
  13158. _ACEOF
  13159. fi
  13160. for ac_prog in bison
  13161. do
  13162. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13163. set dummy $ac_prog; ac_word=$2
  13164. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13166. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13167. echo $ECHO_N "(cached) $ECHO_C" >&6
  13168. else
  13169. if test -n "$INTLBISON"; then
  13170. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13171. else
  13172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13173. for as_dir in $PATH
  13174. do
  13175. IFS=$as_save_IFS
  13176. test -z "$as_dir" && as_dir=.
  13177. for ac_exec_ext in '' $ac_executable_extensions; do
  13178. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13179. ac_cv_prog_INTLBISON="$ac_prog"
  13180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13181. break 2
  13182. fi
  13183. done
  13184. done
  13185. IFS=$as_save_IFS
  13186. fi
  13187. fi
  13188. INTLBISON=$ac_cv_prog_INTLBISON
  13189. if test -n "$INTLBISON"; then
  13190. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13191. echo "${ECHO_T}$INTLBISON" >&6; }
  13192. else
  13193. { echo "$as_me:$LINENO: result: no" >&5
  13194. echo "${ECHO_T}no" >&6; }
  13195. fi
  13196. test -n "$INTLBISON" && break
  13197. done
  13198. if test -z "$INTLBISON"; then
  13199. ac_verc_fail=yes
  13200. else
  13201. { echo "$as_me:$LINENO: checking version of bison" >&5
  13202. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  13203. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13204. case $ac_prog_version in
  13205. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13206. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13207. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13208. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13209. esac
  13210. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13211. echo "${ECHO_T}$ac_prog_version" >&6; }
  13212. fi
  13213. if test $ac_verc_fail = yes; then
  13214. INTLBISON=:
  13215. fi
  13216. { echo "$as_me:$LINENO: checking for long long int" >&5
  13217. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  13218. if test "${ac_cv_type_long_long_int+set}" = set; then
  13219. echo $ECHO_N "(cached) $ECHO_C" >&6
  13220. else
  13221. cat >conftest.$ac_ext <<_ACEOF
  13222. /* confdefs.h. */
  13223. _ACEOF
  13224. cat confdefs.h >>conftest.$ac_ext
  13225. cat >>conftest.$ac_ext <<_ACEOF
  13226. /* end confdefs.h. */
  13227. /* Test preprocessor. */
  13228. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13229. error in preprocessor;
  13230. #endif
  13231. #if ! (18446744073709551615ULL <= -1ull)
  13232. error in preprocessor;
  13233. #endif
  13234. /* Test literals. */
  13235. long long int ll = 9223372036854775807ll;
  13236. long long int nll = -9223372036854775807LL;
  13237. unsigned long long int ull = 18446744073709551615ULL;
  13238. /* Test constant expressions. */
  13239. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13240. ? 1 : -1)];
  13241. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  13242. ? 1 : -1)];
  13243. int i = 63;
  13244. int
  13245. main ()
  13246. {
  13247. /* Test availability of runtime routines for shift and division. */
  13248. long long int llmax = 9223372036854775807ll;
  13249. unsigned long long int ullmax = 18446744073709551615ull;
  13250. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  13251. | (llmax / ll) | (llmax % ll)
  13252. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  13253. | (ullmax / ull) | (ullmax % ull));
  13254. ;
  13255. return 0;
  13256. }
  13257. _ACEOF
  13258. rm -f conftest.$ac_objext conftest$ac_exeext
  13259. if { (ac_try="$ac_link"
  13260. case "(($ac_try" in
  13261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13262. *) ac_try_echo=$ac_try;;
  13263. esac
  13264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13265. (eval "$ac_link") 2>conftest.er1
  13266. ac_status=$?
  13267. grep -v '^ *+' conftest.er1 >conftest.err
  13268. rm -f conftest.er1
  13269. cat conftest.err >&5
  13270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13271. (exit $ac_status); } && {
  13272. test -z "$ac_cxx_werror_flag" ||
  13273. test ! -s conftest.err
  13274. } && test -s conftest$ac_exeext &&
  13275. $as_test_x conftest$ac_exeext; then
  13276. if test "$cross_compiling" = yes; then
  13277. ac_cv_type_long_long_int=yes
  13278. else
  13279. cat >conftest.$ac_ext <<_ACEOF
  13280. /* confdefs.h. */
  13281. _ACEOF
  13282. cat confdefs.h >>conftest.$ac_ext
  13283. cat >>conftest.$ac_ext <<_ACEOF
  13284. /* end confdefs.h. */
  13285. #include <limits.h>
  13286. #ifndef LLONG_MAX
  13287. # define HALF \
  13288. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13289. # define LLONG_MAX (HALF - 1 + HALF)
  13290. #endif
  13291. int
  13292. main ()
  13293. {
  13294. long long int n = 1;
  13295. int i;
  13296. for (i = 0; ; i++)
  13297. {
  13298. long long int m = n << i;
  13299. if (m >> i != n)
  13300. return 1;
  13301. if (LLONG_MAX / 2 < m)
  13302. break;
  13303. }
  13304. return 0;
  13305. ;
  13306. return 0;
  13307. }
  13308. _ACEOF
  13309. rm -f conftest$ac_exeext
  13310. if { (ac_try="$ac_link"
  13311. case "(($ac_try" in
  13312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13313. *) ac_try_echo=$ac_try;;
  13314. esac
  13315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13316. (eval "$ac_link") 2>&5
  13317. ac_status=$?
  13318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13319. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13320. { (case "(($ac_try" in
  13321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13322. *) ac_try_echo=$ac_try;;
  13323. esac
  13324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13325. (eval "$ac_try") 2>&5
  13326. ac_status=$?
  13327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13328. (exit $ac_status); }; }; then
  13329. ac_cv_type_long_long_int=yes
  13330. else
  13331. echo "$as_me: program exited with status $ac_status" >&5
  13332. echo "$as_me: failed program was:" >&5
  13333. sed 's/^/| /' conftest.$ac_ext >&5
  13334. ( exit $ac_status )
  13335. ac_cv_type_long_long_int=no
  13336. fi
  13337. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13338. fi
  13339. else
  13340. echo "$as_me: failed program was:" >&5
  13341. sed 's/^/| /' conftest.$ac_ext >&5
  13342. ac_cv_type_long_long_int=no
  13343. fi
  13344. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13345. conftest$ac_exeext conftest.$ac_ext
  13346. fi
  13347. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13348. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13349. if test $ac_cv_type_long_long_int = yes; then
  13350. cat >>confdefs.h <<\_ACEOF
  13351. #define HAVE_LONG_LONG_INT 1
  13352. _ACEOF
  13353. fi
  13354. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13355. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13356. if test "${gt_cv_c_wchar_t+set}" = set; then
  13357. echo $ECHO_N "(cached) $ECHO_C" >&6
  13358. else
  13359. cat >conftest.$ac_ext <<_ACEOF
  13360. /* confdefs.h. */
  13361. _ACEOF
  13362. cat confdefs.h >>conftest.$ac_ext
  13363. cat >>conftest.$ac_ext <<_ACEOF
  13364. /* end confdefs.h. */
  13365. #include <stddef.h>
  13366. wchar_t foo = (wchar_t)'\0';
  13367. int
  13368. main ()
  13369. {
  13370. ;
  13371. return 0;
  13372. }
  13373. _ACEOF
  13374. rm -f conftest.$ac_objext
  13375. if { (ac_try="$ac_compile"
  13376. case "(($ac_try" in
  13377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13378. *) ac_try_echo=$ac_try;;
  13379. esac
  13380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13381. (eval "$ac_compile") 2>conftest.er1
  13382. ac_status=$?
  13383. grep -v '^ *+' conftest.er1 >conftest.err
  13384. rm -f conftest.er1
  13385. cat conftest.err >&5
  13386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13387. (exit $ac_status); } && {
  13388. test -z "$ac_cxx_werror_flag" ||
  13389. test ! -s conftest.err
  13390. } && test -s conftest.$ac_objext; then
  13391. gt_cv_c_wchar_t=yes
  13392. else
  13393. echo "$as_me: failed program was:" >&5
  13394. sed 's/^/| /' conftest.$ac_ext >&5
  13395. gt_cv_c_wchar_t=no
  13396. fi
  13397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13398. fi
  13399. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13400. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13401. if test $gt_cv_c_wchar_t = yes; then
  13402. cat >>confdefs.h <<\_ACEOF
  13403. #define HAVE_WCHAR_T 1
  13404. _ACEOF
  13405. fi
  13406. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13407. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13408. if test "${gt_cv_c_wint_t+set}" = set; then
  13409. echo $ECHO_N "(cached) $ECHO_C" >&6
  13410. else
  13411. cat >conftest.$ac_ext <<_ACEOF
  13412. /* confdefs.h. */
  13413. _ACEOF
  13414. cat confdefs.h >>conftest.$ac_ext
  13415. cat >>conftest.$ac_ext <<_ACEOF
  13416. /* end confdefs.h. */
  13417. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13418. <wchar.h>.
  13419. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13420. before <wchar.h>. */
  13421. #include <stddef.h>
  13422. #include <stdio.h>
  13423. #include <time.h>
  13424. #include <wchar.h>
  13425. wint_t foo = (wchar_t)'\0';
  13426. int
  13427. main ()
  13428. {
  13429. ;
  13430. return 0;
  13431. }
  13432. _ACEOF
  13433. rm -f conftest.$ac_objext
  13434. if { (ac_try="$ac_compile"
  13435. case "(($ac_try" in
  13436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13437. *) ac_try_echo=$ac_try;;
  13438. esac
  13439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13440. (eval "$ac_compile") 2>conftest.er1
  13441. ac_status=$?
  13442. grep -v '^ *+' conftest.er1 >conftest.err
  13443. rm -f conftest.er1
  13444. cat conftest.err >&5
  13445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13446. (exit $ac_status); } && {
  13447. test -z "$ac_cxx_werror_flag" ||
  13448. test ! -s conftest.err
  13449. } && test -s conftest.$ac_objext; then
  13450. gt_cv_c_wint_t=yes
  13451. else
  13452. echo "$as_me: failed program was:" >&5
  13453. sed 's/^/| /' conftest.$ac_ext >&5
  13454. gt_cv_c_wint_t=no
  13455. fi
  13456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13457. fi
  13458. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13459. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13460. if test $gt_cv_c_wint_t = yes; then
  13461. cat >>confdefs.h <<\_ACEOF
  13462. #define HAVE_WINT_T 1
  13463. _ACEOF
  13464. fi
  13465. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13466. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13467. if test "${gt_cv_c_intmax_t+set}" = set; then
  13468. echo $ECHO_N "(cached) $ECHO_C" >&6
  13469. else
  13470. cat >conftest.$ac_ext <<_ACEOF
  13471. /* confdefs.h. */
  13472. _ACEOF
  13473. cat confdefs.h >>conftest.$ac_ext
  13474. cat >>conftest.$ac_ext <<_ACEOF
  13475. /* end confdefs.h. */
  13476. #include <stddef.h>
  13477. #include <stdlib.h>
  13478. #if HAVE_STDINT_H_WITH_UINTMAX
  13479. #include <stdint.h>
  13480. #endif
  13481. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13482. #include <inttypes.h>
  13483. #endif
  13484. int
  13485. main ()
  13486. {
  13487. intmax_t x = -1;
  13488. return !x;
  13489. ;
  13490. return 0;
  13491. }
  13492. _ACEOF
  13493. rm -f conftest.$ac_objext
  13494. if { (ac_try="$ac_compile"
  13495. case "(($ac_try" in
  13496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13497. *) ac_try_echo=$ac_try;;
  13498. esac
  13499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13500. (eval "$ac_compile") 2>conftest.er1
  13501. ac_status=$?
  13502. grep -v '^ *+' conftest.er1 >conftest.err
  13503. rm -f conftest.er1
  13504. cat conftest.err >&5
  13505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13506. (exit $ac_status); } && {
  13507. test -z "$ac_cxx_werror_flag" ||
  13508. test ! -s conftest.err
  13509. } && test -s conftest.$ac_objext; then
  13510. gt_cv_c_intmax_t=yes
  13511. else
  13512. echo "$as_me: failed program was:" >&5
  13513. sed 's/^/| /' conftest.$ac_ext >&5
  13514. gt_cv_c_intmax_t=no
  13515. fi
  13516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13517. fi
  13518. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13519. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13520. if test $gt_cv_c_intmax_t = yes; then
  13521. cat >>confdefs.h <<\_ACEOF
  13522. #define HAVE_INTMAX_T 1
  13523. _ACEOF
  13524. fi
  13525. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13526. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13527. if test "${gt_cv_func_printf_posix+set}" = set; then
  13528. echo $ECHO_N "(cached) $ECHO_C" >&6
  13529. else
  13530. if test "$cross_compiling" = yes; then
  13531. cat >conftest.$ac_ext <<_ACEOF
  13532. /* confdefs.h. */
  13533. _ACEOF
  13534. cat confdefs.h >>conftest.$ac_ext
  13535. cat >>conftest.$ac_ext <<_ACEOF
  13536. /* end confdefs.h. */
  13537. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13538. notposix
  13539. #endif
  13540. _ACEOF
  13541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13542. $EGREP "notposix" >/dev/null 2>&1; then
  13543. gt_cv_func_printf_posix="guessing no"
  13544. else
  13545. gt_cv_func_printf_posix="guessing yes"
  13546. fi
  13547. rm -f conftest*
  13548. else
  13549. cat >conftest.$ac_ext <<_ACEOF
  13550. /* confdefs.h. */
  13551. _ACEOF
  13552. cat confdefs.h >>conftest.$ac_ext
  13553. cat >>conftest.$ac_ext <<_ACEOF
  13554. /* end confdefs.h. */
  13555. #include <stdio.h>
  13556. #include <string.h>
  13557. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13558. dollar expansion (possibly an autoconf bug). */
  13559. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13560. static char buf[100];
  13561. int main ()
  13562. {
  13563. sprintf (buf, format, 33, 55);
  13564. return (strcmp (buf, "55 33") != 0);
  13565. }
  13566. _ACEOF
  13567. rm -f conftest$ac_exeext
  13568. if { (ac_try="$ac_link"
  13569. case "(($ac_try" in
  13570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13571. *) ac_try_echo=$ac_try;;
  13572. esac
  13573. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13574. (eval "$ac_link") 2>&5
  13575. ac_status=$?
  13576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13577. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  13584. ac_status=$?
  13585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13586. (exit $ac_status); }; }; then
  13587. gt_cv_func_printf_posix=yes
  13588. else
  13589. echo "$as_me: program exited with status $ac_status" >&5
  13590. echo "$as_me: failed program was:" >&5
  13591. sed 's/^/| /' conftest.$ac_ext >&5
  13592. ( exit $ac_status )
  13593. gt_cv_func_printf_posix=no
  13594. fi
  13595. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13596. fi
  13597. fi
  13598. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13599. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13600. case $gt_cv_func_printf_posix in
  13601. *yes)
  13602. cat >>confdefs.h <<\_ACEOF
  13603. #define HAVE_POSIX_PRINTF 1
  13604. _ACEOF
  13605. ;;
  13606. esac
  13607. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13608. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13609. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13610. echo $ECHO_N "(cached) $ECHO_C" >&6
  13611. else
  13612. cat >conftest.$ac_ext <<_ACEOF
  13613. /* confdefs.h. */
  13614. _ACEOF
  13615. cat confdefs.h >>conftest.$ac_ext
  13616. cat >>conftest.$ac_ext <<_ACEOF
  13617. /* end confdefs.h. */
  13618. #include <features.h>
  13619. #ifdef __GNU_LIBRARY__
  13620. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13621. Lucky GNU user
  13622. #endif
  13623. #endif
  13624. _ACEOF
  13625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13626. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13627. ac_cv_gnu_library_2_1=yes
  13628. else
  13629. ac_cv_gnu_library_2_1=no
  13630. fi
  13631. rm -f conftest*
  13632. fi
  13633. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13634. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13635. GLIBC21="$ac_cv_gnu_library_2_1"
  13636. for ac_header in stdint.h
  13637. do
  13638. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13639. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13640. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13641. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13642. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13643. echo $ECHO_N "(cached) $ECHO_C" >&6
  13644. fi
  13645. ac_res=`eval echo '${'$as_ac_Header'}'`
  13646. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13647. echo "${ECHO_T}$ac_res" >&6; }
  13648. else
  13649. # Is the header compilable?
  13650. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13651. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13652. cat >conftest.$ac_ext <<_ACEOF
  13653. /* confdefs.h. */
  13654. _ACEOF
  13655. cat confdefs.h >>conftest.$ac_ext
  13656. cat >>conftest.$ac_ext <<_ACEOF
  13657. /* end confdefs.h. */
  13658. $ac_includes_default
  13659. #include <$ac_header>
  13660. _ACEOF
  13661. rm -f conftest.$ac_objext
  13662. if { (ac_try="$ac_compile"
  13663. case "(($ac_try" in
  13664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13665. *) ac_try_echo=$ac_try;;
  13666. esac
  13667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13668. (eval "$ac_compile") 2>conftest.er1
  13669. ac_status=$?
  13670. grep -v '^ *+' conftest.er1 >conftest.err
  13671. rm -f conftest.er1
  13672. cat conftest.err >&5
  13673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13674. (exit $ac_status); } && {
  13675. test -z "$ac_cxx_werror_flag" ||
  13676. test ! -s conftest.err
  13677. } && test -s conftest.$ac_objext; then
  13678. ac_header_compiler=yes
  13679. else
  13680. echo "$as_me: failed program was:" >&5
  13681. sed 's/^/| /' conftest.$ac_ext >&5
  13682. ac_header_compiler=no
  13683. fi
  13684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13685. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13686. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13687. # Is the header present?
  13688. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13689. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13690. cat >conftest.$ac_ext <<_ACEOF
  13691. /* confdefs.h. */
  13692. _ACEOF
  13693. cat confdefs.h >>conftest.$ac_ext
  13694. cat >>conftest.$ac_ext <<_ACEOF
  13695. /* end confdefs.h. */
  13696. #include <$ac_header>
  13697. _ACEOF
  13698. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13699. case "(($ac_try" in
  13700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13701. *) ac_try_echo=$ac_try;;
  13702. esac
  13703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13704. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13705. ac_status=$?
  13706. grep -v '^ *+' conftest.er1 >conftest.err
  13707. rm -f conftest.er1
  13708. cat conftest.err >&5
  13709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13710. (exit $ac_status); } >/dev/null && {
  13711. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13712. test ! -s conftest.err
  13713. }; then
  13714. ac_header_preproc=yes
  13715. else
  13716. echo "$as_me: failed program was:" >&5
  13717. sed 's/^/| /' conftest.$ac_ext >&5
  13718. ac_header_preproc=no
  13719. fi
  13720. rm -f conftest.err conftest.$ac_ext
  13721. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13722. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13723. # So? What about this header?
  13724. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13725. yes:no: )
  13726. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13727. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13728. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13729. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13730. ac_header_preproc=yes
  13731. ;;
  13732. no:yes:* )
  13733. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13734. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13735. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13736. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13737. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13738. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13739. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13740. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13741. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13742. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13743. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13744. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13745. ( cat <<\_ASBOX
  13746. ## ----------------------------------------------- ##
  13747. ## Report this to t-tujikawa@users.sourceforge.net ##
  13748. ## ----------------------------------------------- ##
  13749. _ASBOX
  13750. ) | sed "s/^/$as_me: WARNING: /" >&2
  13751. ;;
  13752. esac
  13753. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13754. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13755. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13756. echo $ECHO_N "(cached) $ECHO_C" >&6
  13757. else
  13758. eval "$as_ac_Header=\$ac_header_preproc"
  13759. fi
  13760. ac_res=`eval echo '${'$as_ac_Header'}'`
  13761. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13762. echo "${ECHO_T}$ac_res" >&6; }
  13763. fi
  13764. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13765. cat >>confdefs.h <<_ACEOF
  13766. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13767. _ACEOF
  13768. fi
  13769. done
  13770. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13771. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13772. if test "${gl_cv_size_max+set}" = set; then
  13773. echo $ECHO_N "(cached) $ECHO_C" >&6
  13774. else
  13775. gl_cv_size_max=
  13776. cat >conftest.$ac_ext <<_ACEOF
  13777. /* confdefs.h. */
  13778. _ACEOF
  13779. cat confdefs.h >>conftest.$ac_ext
  13780. cat >>conftest.$ac_ext <<_ACEOF
  13781. /* end confdefs.h. */
  13782. #include <limits.h>
  13783. #if HAVE_STDINT_H
  13784. #include <stdint.h>
  13785. #endif
  13786. #ifdef SIZE_MAX
  13787. Found it
  13788. #endif
  13789. _ACEOF
  13790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13791. $EGREP "Found it" >/dev/null 2>&1; then
  13792. gl_cv_size_max=yes
  13793. fi
  13794. rm -f conftest*
  13795. if test -z "$gl_cv_size_max"; then
  13796. if test "$cross_compiling" = yes; then
  13797. # Depending upon the size, compute the lo and hi bounds.
  13798. cat >conftest.$ac_ext <<_ACEOF
  13799. /* confdefs.h. */
  13800. _ACEOF
  13801. cat confdefs.h >>conftest.$ac_ext
  13802. cat >>conftest.$ac_ext <<_ACEOF
  13803. /* end confdefs.h. */
  13804. #include <stddef.h>
  13805. #include <limits.h>
  13806. int
  13807. main ()
  13808. {
  13809. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13810. test_array [0] = 0
  13811. ;
  13812. return 0;
  13813. }
  13814. _ACEOF
  13815. rm -f conftest.$ac_objext
  13816. if { (ac_try="$ac_compile"
  13817. case "(($ac_try" in
  13818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13819. *) ac_try_echo=$ac_try;;
  13820. esac
  13821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13822. (eval "$ac_compile") 2>conftest.er1
  13823. ac_status=$?
  13824. grep -v '^ *+' conftest.er1 >conftest.err
  13825. rm -f conftest.er1
  13826. cat conftest.err >&5
  13827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13828. (exit $ac_status); } && {
  13829. test -z "$ac_cxx_werror_flag" ||
  13830. test ! -s conftest.err
  13831. } && test -s conftest.$ac_objext; then
  13832. ac_lo=0 ac_mid=0
  13833. while :; do
  13834. cat >conftest.$ac_ext <<_ACEOF
  13835. /* confdefs.h. */
  13836. _ACEOF
  13837. cat confdefs.h >>conftest.$ac_ext
  13838. cat >>conftest.$ac_ext <<_ACEOF
  13839. /* end confdefs.h. */
  13840. #include <stddef.h>
  13841. #include <limits.h>
  13842. int
  13843. main ()
  13844. {
  13845. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13846. test_array [0] = 0
  13847. ;
  13848. return 0;
  13849. }
  13850. _ACEOF
  13851. rm -f conftest.$ac_objext
  13852. if { (ac_try="$ac_compile"
  13853. case "(($ac_try" in
  13854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13855. *) ac_try_echo=$ac_try;;
  13856. esac
  13857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13858. (eval "$ac_compile") 2>conftest.er1
  13859. ac_status=$?
  13860. grep -v '^ *+' conftest.er1 >conftest.err
  13861. rm -f conftest.er1
  13862. cat conftest.err >&5
  13863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13864. (exit $ac_status); } && {
  13865. test -z "$ac_cxx_werror_flag" ||
  13866. test ! -s conftest.err
  13867. } && test -s conftest.$ac_objext; then
  13868. ac_hi=$ac_mid; break
  13869. else
  13870. echo "$as_me: failed program was:" >&5
  13871. sed 's/^/| /' conftest.$ac_ext >&5
  13872. ac_lo=`expr $ac_mid + 1`
  13873. if test $ac_lo -le $ac_mid; then
  13874. ac_lo= ac_hi=
  13875. break
  13876. fi
  13877. ac_mid=`expr 2 '*' $ac_mid + 1`
  13878. fi
  13879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13880. done
  13881. else
  13882. echo "$as_me: failed program was:" >&5
  13883. sed 's/^/| /' conftest.$ac_ext >&5
  13884. cat >conftest.$ac_ext <<_ACEOF
  13885. /* confdefs.h. */
  13886. _ACEOF
  13887. cat confdefs.h >>conftest.$ac_ext
  13888. cat >>conftest.$ac_ext <<_ACEOF
  13889. /* end confdefs.h. */
  13890. #include <stddef.h>
  13891. #include <limits.h>
  13892. int
  13893. main ()
  13894. {
  13895. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13896. test_array [0] = 0
  13897. ;
  13898. return 0;
  13899. }
  13900. _ACEOF
  13901. rm -f conftest.$ac_objext
  13902. if { (ac_try="$ac_compile"
  13903. case "(($ac_try" in
  13904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13905. *) ac_try_echo=$ac_try;;
  13906. esac
  13907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13908. (eval "$ac_compile") 2>conftest.er1
  13909. ac_status=$?
  13910. grep -v '^ *+' conftest.er1 >conftest.err
  13911. rm -f conftest.er1
  13912. cat conftest.err >&5
  13913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13914. (exit $ac_status); } && {
  13915. test -z "$ac_cxx_werror_flag" ||
  13916. test ! -s conftest.err
  13917. } && test -s conftest.$ac_objext; then
  13918. ac_hi=-1 ac_mid=-1
  13919. while :; do
  13920. cat >conftest.$ac_ext <<_ACEOF
  13921. /* confdefs.h. */
  13922. _ACEOF
  13923. cat confdefs.h >>conftest.$ac_ext
  13924. cat >>conftest.$ac_ext <<_ACEOF
  13925. /* end confdefs.h. */
  13926. #include <stddef.h>
  13927. #include <limits.h>
  13928. int
  13929. main ()
  13930. {
  13931. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13932. test_array [0] = 0
  13933. ;
  13934. return 0;
  13935. }
  13936. _ACEOF
  13937. rm -f conftest.$ac_objext
  13938. if { (ac_try="$ac_compile"
  13939. case "(($ac_try" in
  13940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13941. *) ac_try_echo=$ac_try;;
  13942. esac
  13943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13944. (eval "$ac_compile") 2>conftest.er1
  13945. ac_status=$?
  13946. grep -v '^ *+' conftest.er1 >conftest.err
  13947. rm -f conftest.er1
  13948. cat conftest.err >&5
  13949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13950. (exit $ac_status); } && {
  13951. test -z "$ac_cxx_werror_flag" ||
  13952. test ! -s conftest.err
  13953. } && test -s conftest.$ac_objext; then
  13954. ac_lo=$ac_mid; break
  13955. else
  13956. echo "$as_me: failed program was:" >&5
  13957. sed 's/^/| /' conftest.$ac_ext >&5
  13958. ac_hi=`expr '(' $ac_mid ')' - 1`
  13959. if test $ac_mid -le $ac_hi; then
  13960. ac_lo= ac_hi=
  13961. break
  13962. fi
  13963. ac_mid=`expr 2 '*' $ac_mid`
  13964. fi
  13965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13966. done
  13967. else
  13968. echo "$as_me: failed program was:" >&5
  13969. sed 's/^/| /' conftest.$ac_ext >&5
  13970. ac_lo= ac_hi=
  13971. fi
  13972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13973. fi
  13974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13975. # Binary search between lo and hi bounds.
  13976. while test "x$ac_lo" != "x$ac_hi"; do
  13977. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13978. cat >conftest.$ac_ext <<_ACEOF
  13979. /* confdefs.h. */
  13980. _ACEOF
  13981. cat confdefs.h >>conftest.$ac_ext
  13982. cat >>conftest.$ac_ext <<_ACEOF
  13983. /* end confdefs.h. */
  13984. #include <stddef.h>
  13985. #include <limits.h>
  13986. int
  13987. main ()
  13988. {
  13989. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13990. test_array [0] = 0
  13991. ;
  13992. return 0;
  13993. }
  13994. _ACEOF
  13995. rm -f conftest.$ac_objext
  13996. if { (ac_try="$ac_compile"
  13997. case "(($ac_try" in
  13998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13999. *) ac_try_echo=$ac_try;;
  14000. esac
  14001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14002. (eval "$ac_compile") 2>conftest.er1
  14003. ac_status=$?
  14004. grep -v '^ *+' conftest.er1 >conftest.err
  14005. rm -f conftest.er1
  14006. cat conftest.err >&5
  14007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14008. (exit $ac_status); } && {
  14009. test -z "$ac_cxx_werror_flag" ||
  14010. test ! -s conftest.err
  14011. } && test -s conftest.$ac_objext; then
  14012. ac_hi=$ac_mid
  14013. else
  14014. echo "$as_me: failed program was:" >&5
  14015. sed 's/^/| /' conftest.$ac_ext >&5
  14016. ac_lo=`expr '(' $ac_mid ')' + 1`
  14017. fi
  14018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14019. done
  14020. case $ac_lo in
  14021. ?*) size_t_bits_minus_1=$ac_lo;;
  14022. '') size_t_bits_minus_1= ;;
  14023. esac
  14024. else
  14025. cat >conftest.$ac_ext <<_ACEOF
  14026. /* confdefs.h. */
  14027. _ACEOF
  14028. cat confdefs.h >>conftest.$ac_ext
  14029. cat >>conftest.$ac_ext <<_ACEOF
  14030. /* end confdefs.h. */
  14031. #include <stddef.h>
  14032. #include <limits.h>
  14033. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14034. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14035. #include <stdio.h>
  14036. #include <stdlib.h>
  14037. int
  14038. main ()
  14039. {
  14040. FILE *f = fopen ("conftest.val", "w");
  14041. if (! f)
  14042. return 1;
  14043. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14044. {
  14045. long int i = longval ();
  14046. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14047. return 1;
  14048. fprintf (f, "%ld\n", i);
  14049. }
  14050. else
  14051. {
  14052. unsigned long int i = ulongval ();
  14053. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14054. return 1;
  14055. fprintf (f, "%lu\n", i);
  14056. }
  14057. return ferror (f) || fclose (f) != 0;
  14058. ;
  14059. return 0;
  14060. }
  14061. _ACEOF
  14062. rm -f conftest$ac_exeext
  14063. if { (ac_try="$ac_link"
  14064. case "(($ac_try" in
  14065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14066. *) ac_try_echo=$ac_try;;
  14067. esac
  14068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14069. (eval "$ac_link") 2>&5
  14070. ac_status=$?
  14071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14072. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14073. { (case "(($ac_try" in
  14074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14075. *) ac_try_echo=$ac_try;;
  14076. esac
  14077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14078. (eval "$ac_try") 2>&5
  14079. ac_status=$?
  14080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14081. (exit $ac_status); }; }; then
  14082. size_t_bits_minus_1=`cat conftest.val`
  14083. else
  14084. echo "$as_me: program exited with status $ac_status" >&5
  14085. echo "$as_me: failed program was:" >&5
  14086. sed 's/^/| /' conftest.$ac_ext >&5
  14087. ( exit $ac_status )
  14088. size_t_bits_minus_1=
  14089. fi
  14090. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14091. fi
  14092. rm -f conftest.val
  14093. if test "$cross_compiling" = yes; then
  14094. # Depending upon the size, compute the lo and hi bounds.
  14095. cat >conftest.$ac_ext <<_ACEOF
  14096. /* confdefs.h. */
  14097. _ACEOF
  14098. cat confdefs.h >>conftest.$ac_ext
  14099. cat >>conftest.$ac_ext <<_ACEOF
  14100. /* end confdefs.h. */
  14101. #include <stddef.h>
  14102. int
  14103. main ()
  14104. {
  14105. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14106. test_array [0] = 0
  14107. ;
  14108. return 0;
  14109. }
  14110. _ACEOF
  14111. rm -f conftest.$ac_objext
  14112. if { (ac_try="$ac_compile"
  14113. case "(($ac_try" in
  14114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14115. *) ac_try_echo=$ac_try;;
  14116. esac
  14117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14118. (eval "$ac_compile") 2>conftest.er1
  14119. ac_status=$?
  14120. grep -v '^ *+' conftest.er1 >conftest.err
  14121. rm -f conftest.er1
  14122. cat conftest.err >&5
  14123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14124. (exit $ac_status); } && {
  14125. test -z "$ac_cxx_werror_flag" ||
  14126. test ! -s conftest.err
  14127. } && test -s conftest.$ac_objext; then
  14128. ac_lo=0 ac_mid=0
  14129. while :; do
  14130. cat >conftest.$ac_ext <<_ACEOF
  14131. /* confdefs.h. */
  14132. _ACEOF
  14133. cat confdefs.h >>conftest.$ac_ext
  14134. cat >>conftest.$ac_ext <<_ACEOF
  14135. /* end confdefs.h. */
  14136. #include <stddef.h>
  14137. int
  14138. main ()
  14139. {
  14140. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14141. test_array [0] = 0
  14142. ;
  14143. return 0;
  14144. }
  14145. _ACEOF
  14146. rm -f conftest.$ac_objext
  14147. if { (ac_try="$ac_compile"
  14148. case "(($ac_try" in
  14149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14150. *) ac_try_echo=$ac_try;;
  14151. esac
  14152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14153. (eval "$ac_compile") 2>conftest.er1
  14154. ac_status=$?
  14155. grep -v '^ *+' conftest.er1 >conftest.err
  14156. rm -f conftest.er1
  14157. cat conftest.err >&5
  14158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14159. (exit $ac_status); } && {
  14160. test -z "$ac_cxx_werror_flag" ||
  14161. test ! -s conftest.err
  14162. } && test -s conftest.$ac_objext; then
  14163. ac_hi=$ac_mid; break
  14164. else
  14165. echo "$as_me: failed program was:" >&5
  14166. sed 's/^/| /' conftest.$ac_ext >&5
  14167. ac_lo=`expr $ac_mid + 1`
  14168. if test $ac_lo -le $ac_mid; then
  14169. ac_lo= ac_hi=
  14170. break
  14171. fi
  14172. ac_mid=`expr 2 '*' $ac_mid + 1`
  14173. fi
  14174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14175. done
  14176. else
  14177. echo "$as_me: failed program was:" >&5
  14178. sed 's/^/| /' conftest.$ac_ext >&5
  14179. cat >conftest.$ac_ext <<_ACEOF
  14180. /* confdefs.h. */
  14181. _ACEOF
  14182. cat confdefs.h >>conftest.$ac_ext
  14183. cat >>conftest.$ac_ext <<_ACEOF
  14184. /* end confdefs.h. */
  14185. #include <stddef.h>
  14186. int
  14187. main ()
  14188. {
  14189. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  14190. test_array [0] = 0
  14191. ;
  14192. return 0;
  14193. }
  14194. _ACEOF
  14195. rm -f conftest.$ac_objext
  14196. if { (ac_try="$ac_compile"
  14197. case "(($ac_try" in
  14198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14199. *) ac_try_echo=$ac_try;;
  14200. esac
  14201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14202. (eval "$ac_compile") 2>conftest.er1
  14203. ac_status=$?
  14204. grep -v '^ *+' conftest.er1 >conftest.err
  14205. rm -f conftest.er1
  14206. cat conftest.err >&5
  14207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14208. (exit $ac_status); } && {
  14209. test -z "$ac_cxx_werror_flag" ||
  14210. test ! -s conftest.err
  14211. } && test -s conftest.$ac_objext; then
  14212. ac_hi=-1 ac_mid=-1
  14213. while :; do
  14214. cat >conftest.$ac_ext <<_ACEOF
  14215. /* confdefs.h. */
  14216. _ACEOF
  14217. cat confdefs.h >>conftest.$ac_ext
  14218. cat >>conftest.$ac_ext <<_ACEOF
  14219. /* end confdefs.h. */
  14220. #include <stddef.h>
  14221. int
  14222. main ()
  14223. {
  14224. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  14225. test_array [0] = 0
  14226. ;
  14227. return 0;
  14228. }
  14229. _ACEOF
  14230. rm -f conftest.$ac_objext
  14231. if { (ac_try="$ac_compile"
  14232. case "(($ac_try" in
  14233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14234. *) ac_try_echo=$ac_try;;
  14235. esac
  14236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14237. (eval "$ac_compile") 2>conftest.er1
  14238. ac_status=$?
  14239. grep -v '^ *+' conftest.er1 >conftest.err
  14240. rm -f conftest.er1
  14241. cat conftest.err >&5
  14242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14243. (exit $ac_status); } && {
  14244. test -z "$ac_cxx_werror_flag" ||
  14245. test ! -s conftest.err
  14246. } && test -s conftest.$ac_objext; then
  14247. ac_lo=$ac_mid; break
  14248. else
  14249. echo "$as_me: failed program was:" >&5
  14250. sed 's/^/| /' conftest.$ac_ext >&5
  14251. ac_hi=`expr '(' $ac_mid ')' - 1`
  14252. if test $ac_mid -le $ac_hi; then
  14253. ac_lo= ac_hi=
  14254. break
  14255. fi
  14256. ac_mid=`expr 2 '*' $ac_mid`
  14257. fi
  14258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14259. done
  14260. else
  14261. echo "$as_me: failed program was:" >&5
  14262. sed 's/^/| /' conftest.$ac_ext >&5
  14263. ac_lo= ac_hi=
  14264. fi
  14265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14266. fi
  14267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14268. # Binary search between lo and hi bounds.
  14269. while test "x$ac_lo" != "x$ac_hi"; do
  14270. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14271. cat >conftest.$ac_ext <<_ACEOF
  14272. /* confdefs.h. */
  14273. _ACEOF
  14274. cat confdefs.h >>conftest.$ac_ext
  14275. cat >>conftest.$ac_ext <<_ACEOF
  14276. /* end confdefs.h. */
  14277. #include <stddef.h>
  14278. int
  14279. main ()
  14280. {
  14281. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14282. test_array [0] = 0
  14283. ;
  14284. return 0;
  14285. }
  14286. _ACEOF
  14287. rm -f conftest.$ac_objext
  14288. if { (ac_try="$ac_compile"
  14289. case "(($ac_try" in
  14290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14291. *) ac_try_echo=$ac_try;;
  14292. esac
  14293. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14294. (eval "$ac_compile") 2>conftest.er1
  14295. ac_status=$?
  14296. grep -v '^ *+' conftest.er1 >conftest.err
  14297. rm -f conftest.er1
  14298. cat conftest.err >&5
  14299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14300. (exit $ac_status); } && {
  14301. test -z "$ac_cxx_werror_flag" ||
  14302. test ! -s conftest.err
  14303. } && test -s conftest.$ac_objext; then
  14304. ac_hi=$ac_mid
  14305. else
  14306. echo "$as_me: failed program was:" >&5
  14307. sed 's/^/| /' conftest.$ac_ext >&5
  14308. ac_lo=`expr '(' $ac_mid ')' + 1`
  14309. fi
  14310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14311. done
  14312. case $ac_lo in
  14313. ?*) fits_in_uint=$ac_lo;;
  14314. '') fits_in_uint= ;;
  14315. esac
  14316. else
  14317. cat >conftest.$ac_ext <<_ACEOF
  14318. /* confdefs.h. */
  14319. _ACEOF
  14320. cat confdefs.h >>conftest.$ac_ext
  14321. cat >>conftest.$ac_ext <<_ACEOF
  14322. /* end confdefs.h. */
  14323. #include <stddef.h>
  14324. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14325. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14326. #include <stdio.h>
  14327. #include <stdlib.h>
  14328. int
  14329. main ()
  14330. {
  14331. FILE *f = fopen ("conftest.val", "w");
  14332. if (! f)
  14333. return 1;
  14334. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14335. {
  14336. long int i = longval ();
  14337. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14338. return 1;
  14339. fprintf (f, "%ld\n", i);
  14340. }
  14341. else
  14342. {
  14343. unsigned long int i = ulongval ();
  14344. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14345. return 1;
  14346. fprintf (f, "%lu\n", i);
  14347. }
  14348. return ferror (f) || fclose (f) != 0;
  14349. ;
  14350. return 0;
  14351. }
  14352. _ACEOF
  14353. rm -f conftest$ac_exeext
  14354. if { (ac_try="$ac_link"
  14355. case "(($ac_try" in
  14356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14357. *) ac_try_echo=$ac_try;;
  14358. esac
  14359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14360. (eval "$ac_link") 2>&5
  14361. ac_status=$?
  14362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14363. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14364. { (case "(($ac_try" in
  14365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14366. *) ac_try_echo=$ac_try;;
  14367. esac
  14368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14369. (eval "$ac_try") 2>&5
  14370. ac_status=$?
  14371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14372. (exit $ac_status); }; }; then
  14373. fits_in_uint=`cat conftest.val`
  14374. else
  14375. echo "$as_me: program exited with status $ac_status" >&5
  14376. echo "$as_me: failed program was:" >&5
  14377. sed 's/^/| /' conftest.$ac_ext >&5
  14378. ( exit $ac_status )
  14379. fits_in_uint=
  14380. fi
  14381. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14382. fi
  14383. rm -f conftest.val
  14384. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14385. if test $fits_in_uint = 1; then
  14386. cat >conftest.$ac_ext <<_ACEOF
  14387. /* confdefs.h. */
  14388. _ACEOF
  14389. cat confdefs.h >>conftest.$ac_ext
  14390. cat >>conftest.$ac_ext <<_ACEOF
  14391. /* end confdefs.h. */
  14392. #include <stddef.h>
  14393. extern size_t foo;
  14394. extern unsigned long foo;
  14395. int
  14396. main ()
  14397. {
  14398. ;
  14399. return 0;
  14400. }
  14401. _ACEOF
  14402. rm -f conftest.$ac_objext
  14403. if { (ac_try="$ac_compile"
  14404. case "(($ac_try" in
  14405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14406. *) ac_try_echo=$ac_try;;
  14407. esac
  14408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14409. (eval "$ac_compile") 2>conftest.er1
  14410. ac_status=$?
  14411. grep -v '^ *+' conftest.er1 >conftest.err
  14412. rm -f conftest.er1
  14413. cat conftest.err >&5
  14414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14415. (exit $ac_status); } && {
  14416. test -z "$ac_cxx_werror_flag" ||
  14417. test ! -s conftest.err
  14418. } && test -s conftest.$ac_objext; then
  14419. fits_in_uint=0
  14420. else
  14421. echo "$as_me: failed program was:" >&5
  14422. sed 's/^/| /' conftest.$ac_ext >&5
  14423. fi
  14424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14425. fi
  14426. if test $fits_in_uint = 1; then
  14427. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14428. else
  14429. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14430. fi
  14431. else
  14432. gl_cv_size_max='((size_t)~(size_t)0)'
  14433. fi
  14434. fi
  14435. fi
  14436. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14437. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14438. if test "$gl_cv_size_max" != yes; then
  14439. cat >>confdefs.h <<_ACEOF
  14440. #define SIZE_MAX $gl_cv_size_max
  14441. _ACEOF
  14442. fi
  14443. for ac_header in stdint.h
  14444. do
  14445. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14446. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14447. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14448. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14449. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14450. echo $ECHO_N "(cached) $ECHO_C" >&6
  14451. fi
  14452. ac_res=`eval echo '${'$as_ac_Header'}'`
  14453. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14454. echo "${ECHO_T}$ac_res" >&6; }
  14455. else
  14456. # Is the header compilable?
  14457. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14458. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14459. cat >conftest.$ac_ext <<_ACEOF
  14460. /* confdefs.h. */
  14461. _ACEOF
  14462. cat confdefs.h >>conftest.$ac_ext
  14463. cat >>conftest.$ac_ext <<_ACEOF
  14464. /* end confdefs.h. */
  14465. $ac_includes_default
  14466. #include <$ac_header>
  14467. _ACEOF
  14468. rm -f conftest.$ac_objext
  14469. if { (ac_try="$ac_compile"
  14470. case "(($ac_try" in
  14471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14472. *) ac_try_echo=$ac_try;;
  14473. esac
  14474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14475. (eval "$ac_compile") 2>conftest.er1
  14476. ac_status=$?
  14477. grep -v '^ *+' conftest.er1 >conftest.err
  14478. rm -f conftest.er1
  14479. cat conftest.err >&5
  14480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14481. (exit $ac_status); } && {
  14482. test -z "$ac_cxx_werror_flag" ||
  14483. test ! -s conftest.err
  14484. } && test -s conftest.$ac_objext; then
  14485. ac_header_compiler=yes
  14486. else
  14487. echo "$as_me: failed program was:" >&5
  14488. sed 's/^/| /' conftest.$ac_ext >&5
  14489. ac_header_compiler=no
  14490. fi
  14491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14492. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14493. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14494. # Is the header present?
  14495. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14496. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14497. cat >conftest.$ac_ext <<_ACEOF
  14498. /* confdefs.h. */
  14499. _ACEOF
  14500. cat confdefs.h >>conftest.$ac_ext
  14501. cat >>conftest.$ac_ext <<_ACEOF
  14502. /* end confdefs.h. */
  14503. #include <$ac_header>
  14504. _ACEOF
  14505. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14506. case "(($ac_try" in
  14507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14508. *) ac_try_echo=$ac_try;;
  14509. esac
  14510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14511. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14512. ac_status=$?
  14513. grep -v '^ *+' conftest.er1 >conftest.err
  14514. rm -f conftest.er1
  14515. cat conftest.err >&5
  14516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14517. (exit $ac_status); } >/dev/null && {
  14518. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14519. test ! -s conftest.err
  14520. }; then
  14521. ac_header_preproc=yes
  14522. else
  14523. echo "$as_me: failed program was:" >&5
  14524. sed 's/^/| /' conftest.$ac_ext >&5
  14525. ac_header_preproc=no
  14526. fi
  14527. rm -f conftest.err conftest.$ac_ext
  14528. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14529. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14530. # So? What about this header?
  14531. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14532. yes:no: )
  14533. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14534. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14535. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14536. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14537. ac_header_preproc=yes
  14538. ;;
  14539. no:yes:* )
  14540. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14541. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14542. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14543. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14544. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14545. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14546. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14547. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14548. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14549. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14550. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14551. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14552. ( cat <<\_ASBOX
  14553. ## ----------------------------------------------- ##
  14554. ## Report this to t-tujikawa@users.sourceforge.net ##
  14555. ## ----------------------------------------------- ##
  14556. _ASBOX
  14557. ) | sed "s/^/$as_me: WARNING: /" >&2
  14558. ;;
  14559. esac
  14560. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14561. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14562. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14563. echo $ECHO_N "(cached) $ECHO_C" >&6
  14564. else
  14565. eval "$as_ac_Header=\$ac_header_preproc"
  14566. fi
  14567. ac_res=`eval echo '${'$as_ac_Header'}'`
  14568. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14569. echo "${ECHO_T}$ac_res" >&6; }
  14570. fi
  14571. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14572. cat >>confdefs.h <<_ACEOF
  14573. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14574. _ACEOF
  14575. fi
  14576. done
  14577. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14578. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14579. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14580. echo $ECHO_N "(cached) $ECHO_C" >&6
  14581. else
  14582. gt_save_LIBS="$LIBS"
  14583. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14584. cat >conftest.$ac_ext <<_ACEOF
  14585. /* confdefs.h. */
  14586. _ACEOF
  14587. cat confdefs.h >>conftest.$ac_ext
  14588. cat >>conftest.$ac_ext <<_ACEOF
  14589. /* end confdefs.h. */
  14590. #include <CoreFoundation/CFPreferences.h>
  14591. int
  14592. main ()
  14593. {
  14594. CFPreferencesCopyAppValue(NULL, NULL)
  14595. ;
  14596. return 0;
  14597. }
  14598. _ACEOF
  14599. rm -f conftest.$ac_objext conftest$ac_exeext
  14600. if { (ac_try="$ac_link"
  14601. case "(($ac_try" in
  14602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14603. *) ac_try_echo=$ac_try;;
  14604. esac
  14605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14606. (eval "$ac_link") 2>conftest.er1
  14607. ac_status=$?
  14608. grep -v '^ *+' conftest.er1 >conftest.err
  14609. rm -f conftest.er1
  14610. cat conftest.err >&5
  14611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14612. (exit $ac_status); } && {
  14613. test -z "$ac_cxx_werror_flag" ||
  14614. test ! -s conftest.err
  14615. } && test -s conftest$ac_exeext &&
  14616. $as_test_x conftest$ac_exeext; then
  14617. gt_cv_func_CFPreferencesCopyAppValue=yes
  14618. else
  14619. echo "$as_me: failed program was:" >&5
  14620. sed 's/^/| /' conftest.$ac_ext >&5
  14621. gt_cv_func_CFPreferencesCopyAppValue=no
  14622. fi
  14623. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14624. conftest$ac_exeext conftest.$ac_ext
  14625. LIBS="$gt_save_LIBS"
  14626. fi
  14627. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14628. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14629. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14630. cat >>confdefs.h <<\_ACEOF
  14631. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14632. _ACEOF
  14633. fi
  14634. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14635. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14636. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14637. echo $ECHO_N "(cached) $ECHO_C" >&6
  14638. else
  14639. gt_save_LIBS="$LIBS"
  14640. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14641. cat >conftest.$ac_ext <<_ACEOF
  14642. /* confdefs.h. */
  14643. _ACEOF
  14644. cat confdefs.h >>conftest.$ac_ext
  14645. cat >>conftest.$ac_ext <<_ACEOF
  14646. /* end confdefs.h. */
  14647. #include <CoreFoundation/CFLocale.h>
  14648. int
  14649. main ()
  14650. {
  14651. CFLocaleCopyCurrent();
  14652. ;
  14653. return 0;
  14654. }
  14655. _ACEOF
  14656. rm -f conftest.$ac_objext conftest$ac_exeext
  14657. if { (ac_try="$ac_link"
  14658. case "(($ac_try" in
  14659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14660. *) ac_try_echo=$ac_try;;
  14661. esac
  14662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14663. (eval "$ac_link") 2>conftest.er1
  14664. ac_status=$?
  14665. grep -v '^ *+' conftest.er1 >conftest.err
  14666. rm -f conftest.er1
  14667. cat conftest.err >&5
  14668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14669. (exit $ac_status); } && {
  14670. test -z "$ac_cxx_werror_flag" ||
  14671. test ! -s conftest.err
  14672. } && test -s conftest$ac_exeext &&
  14673. $as_test_x conftest$ac_exeext; then
  14674. gt_cv_func_CFLocaleCopyCurrent=yes
  14675. else
  14676. echo "$as_me: failed program was:" >&5
  14677. sed 's/^/| /' conftest.$ac_ext >&5
  14678. gt_cv_func_CFLocaleCopyCurrent=no
  14679. fi
  14680. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14681. conftest$ac_exeext conftest.$ac_ext
  14682. LIBS="$gt_save_LIBS"
  14683. fi
  14684. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14685. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14686. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14687. cat >>confdefs.h <<\_ACEOF
  14688. #define HAVE_CFLOCALECOPYCURRENT 1
  14689. _ACEOF
  14690. fi
  14691. INTL_MACOSX_LIBS=
  14692. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14693. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14694. fi
  14695. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14696. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14697. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14698. echo $ECHO_N "(cached) $ECHO_C" >&6
  14699. else
  14700. cat >conftest.$ac_ext <<_ACEOF
  14701. /* confdefs.h. */
  14702. _ACEOF
  14703. cat confdefs.h >>conftest.$ac_ext
  14704. cat >>conftest.$ac_ext <<_ACEOF
  14705. /* end confdefs.h. */
  14706. $ac_includes_default
  14707. typedef ptrdiff_t ac__type_new_;
  14708. int
  14709. main ()
  14710. {
  14711. if ((ac__type_new_ *) 0)
  14712. return 0;
  14713. if (sizeof (ac__type_new_))
  14714. return 0;
  14715. ;
  14716. return 0;
  14717. }
  14718. _ACEOF
  14719. rm -f conftest.$ac_objext
  14720. if { (ac_try="$ac_compile"
  14721. case "(($ac_try" in
  14722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14723. *) ac_try_echo=$ac_try;;
  14724. esac
  14725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14726. (eval "$ac_compile") 2>conftest.er1
  14727. ac_status=$?
  14728. grep -v '^ *+' conftest.er1 >conftest.err
  14729. rm -f conftest.er1
  14730. cat conftest.err >&5
  14731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14732. (exit $ac_status); } && {
  14733. test -z "$ac_cxx_werror_flag" ||
  14734. test ! -s conftest.err
  14735. } && test -s conftest.$ac_objext; then
  14736. ac_cv_type_ptrdiff_t=yes
  14737. else
  14738. echo "$as_me: failed program was:" >&5
  14739. sed 's/^/| /' conftest.$ac_ext >&5
  14740. ac_cv_type_ptrdiff_t=no
  14741. fi
  14742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14743. fi
  14744. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14745. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14746. if test $ac_cv_type_ptrdiff_t = yes; then
  14747. :
  14748. else
  14749. cat >>confdefs.h <<\_ACEOF
  14750. #define ptrdiff_t long
  14751. _ACEOF
  14752. fi
  14753. for ac_header in stddef.h stdlib.h string.h
  14754. do
  14755. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14756. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14757. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14758. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14759. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14760. echo $ECHO_N "(cached) $ECHO_C" >&6
  14761. fi
  14762. ac_res=`eval echo '${'$as_ac_Header'}'`
  14763. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14764. echo "${ECHO_T}$ac_res" >&6; }
  14765. else
  14766. # Is the header compilable?
  14767. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14768. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14769. cat >conftest.$ac_ext <<_ACEOF
  14770. /* confdefs.h. */
  14771. _ACEOF
  14772. cat confdefs.h >>conftest.$ac_ext
  14773. cat >>conftest.$ac_ext <<_ACEOF
  14774. /* end confdefs.h. */
  14775. $ac_includes_default
  14776. #include <$ac_header>
  14777. _ACEOF
  14778. rm -f conftest.$ac_objext
  14779. if { (ac_try="$ac_compile"
  14780. case "(($ac_try" in
  14781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14782. *) ac_try_echo=$ac_try;;
  14783. esac
  14784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14785. (eval "$ac_compile") 2>conftest.er1
  14786. ac_status=$?
  14787. grep -v '^ *+' conftest.er1 >conftest.err
  14788. rm -f conftest.er1
  14789. cat conftest.err >&5
  14790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14791. (exit $ac_status); } && {
  14792. test -z "$ac_cxx_werror_flag" ||
  14793. test ! -s conftest.err
  14794. } && test -s conftest.$ac_objext; then
  14795. ac_header_compiler=yes
  14796. else
  14797. echo "$as_me: failed program was:" >&5
  14798. sed 's/^/| /' conftest.$ac_ext >&5
  14799. ac_header_compiler=no
  14800. fi
  14801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14802. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14803. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14804. # Is the header present?
  14805. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14806. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14807. cat >conftest.$ac_ext <<_ACEOF
  14808. /* confdefs.h. */
  14809. _ACEOF
  14810. cat confdefs.h >>conftest.$ac_ext
  14811. cat >>conftest.$ac_ext <<_ACEOF
  14812. /* end confdefs.h. */
  14813. #include <$ac_header>
  14814. _ACEOF
  14815. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14816. case "(($ac_try" in
  14817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14818. *) ac_try_echo=$ac_try;;
  14819. esac
  14820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14821. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14822. ac_status=$?
  14823. grep -v '^ *+' conftest.er1 >conftest.err
  14824. rm -f conftest.er1
  14825. cat conftest.err >&5
  14826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14827. (exit $ac_status); } >/dev/null && {
  14828. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14829. test ! -s conftest.err
  14830. }; then
  14831. ac_header_preproc=yes
  14832. else
  14833. echo "$as_me: failed program was:" >&5
  14834. sed 's/^/| /' conftest.$ac_ext >&5
  14835. ac_header_preproc=no
  14836. fi
  14837. rm -f conftest.err conftest.$ac_ext
  14838. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14839. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14840. # So? What about this header?
  14841. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14842. yes:no: )
  14843. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14844. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14845. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14846. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14847. ac_header_preproc=yes
  14848. ;;
  14849. no:yes:* )
  14850. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14851. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14852. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14853. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14854. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14855. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14856. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14857. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14858. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14859. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14860. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14861. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14862. ( cat <<\_ASBOX
  14863. ## ----------------------------------------------- ##
  14864. ## Report this to t-tujikawa@users.sourceforge.net ##
  14865. ## ----------------------------------------------- ##
  14866. _ASBOX
  14867. ) | sed "s/^/$as_me: WARNING: /" >&2
  14868. ;;
  14869. esac
  14870. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14871. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14872. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14873. echo $ECHO_N "(cached) $ECHO_C" >&6
  14874. else
  14875. eval "$as_ac_Header=\$ac_header_preproc"
  14876. fi
  14877. ac_res=`eval echo '${'$as_ac_Header'}'`
  14878. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14879. echo "${ECHO_T}$ac_res" >&6; }
  14880. fi
  14881. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14882. cat >>confdefs.h <<_ACEOF
  14883. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14884. _ACEOF
  14885. fi
  14886. done
  14887. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14888. do
  14889. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14890. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14891. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14892. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14893. echo $ECHO_N "(cached) $ECHO_C" >&6
  14894. else
  14895. cat >conftest.$ac_ext <<_ACEOF
  14896. /* confdefs.h. */
  14897. _ACEOF
  14898. cat confdefs.h >>conftest.$ac_ext
  14899. cat >>conftest.$ac_ext <<_ACEOF
  14900. /* end confdefs.h. */
  14901. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14902. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14903. #define $ac_func innocuous_$ac_func
  14904. /* System header to define __stub macros and hopefully few prototypes,
  14905. which can conflict with char $ac_func (); below.
  14906. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14907. <limits.h> exists even on freestanding compilers. */
  14908. #ifdef __STDC__
  14909. # include <limits.h>
  14910. #else
  14911. # include <assert.h>
  14912. #endif
  14913. #undef $ac_func
  14914. /* Override any GCC internal prototype to avoid an error.
  14915. Use char because int might match the return type of a GCC
  14916. builtin and then its argument prototype would still apply. */
  14917. #ifdef __cplusplus
  14918. extern "C"
  14919. #endif
  14920. char $ac_func ();
  14921. /* The GNU C library defines this for functions which it implements
  14922. to always fail with ENOSYS. Some functions are actually named
  14923. something starting with __ and the normal name is an alias. */
  14924. #if defined __stub_$ac_func || defined __stub___$ac_func
  14925. choke me
  14926. #endif
  14927. int
  14928. main ()
  14929. {
  14930. return $ac_func ();
  14931. ;
  14932. return 0;
  14933. }
  14934. _ACEOF
  14935. rm -f conftest.$ac_objext conftest$ac_exeext
  14936. if { (ac_try="$ac_link"
  14937. case "(($ac_try" in
  14938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14939. *) ac_try_echo=$ac_try;;
  14940. esac
  14941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14942. (eval "$ac_link") 2>conftest.er1
  14943. ac_status=$?
  14944. grep -v '^ *+' conftest.er1 >conftest.err
  14945. rm -f conftest.er1
  14946. cat conftest.err >&5
  14947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14948. (exit $ac_status); } && {
  14949. test -z "$ac_cxx_werror_flag" ||
  14950. test ! -s conftest.err
  14951. } && test -s conftest$ac_exeext &&
  14952. $as_test_x conftest$ac_exeext; then
  14953. eval "$as_ac_var=yes"
  14954. else
  14955. echo "$as_me: failed program was:" >&5
  14956. sed 's/^/| /' conftest.$ac_ext >&5
  14957. eval "$as_ac_var=no"
  14958. fi
  14959. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14960. conftest$ac_exeext conftest.$ac_ext
  14961. fi
  14962. ac_res=`eval echo '${'$as_ac_var'}'`
  14963. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14964. echo "${ECHO_T}$ac_res" >&6; }
  14965. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14966. cat >>confdefs.h <<_ACEOF
  14967. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14968. _ACEOF
  14969. fi
  14970. done
  14971. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14972. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14973. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14974. echo $ECHO_N "(cached) $ECHO_C" >&6
  14975. else
  14976. cat >conftest.$ac_ext <<_ACEOF
  14977. /* confdefs.h. */
  14978. _ACEOF
  14979. cat confdefs.h >>conftest.$ac_ext
  14980. cat >>conftest.$ac_ext <<_ACEOF
  14981. /* end confdefs.h. */
  14982. #include <stdio.h>
  14983. int
  14984. main ()
  14985. {
  14986. #ifndef _snprintf
  14987. char *p = (char *) _snprintf;
  14988. #endif
  14989. ;
  14990. return 0;
  14991. }
  14992. _ACEOF
  14993. rm -f conftest.$ac_objext
  14994. if { (ac_try="$ac_compile"
  14995. case "(($ac_try" in
  14996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14997. *) ac_try_echo=$ac_try;;
  14998. esac
  14999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15000. (eval "$ac_compile") 2>conftest.er1
  15001. ac_status=$?
  15002. grep -v '^ *+' conftest.er1 >conftest.err
  15003. rm -f conftest.er1
  15004. cat conftest.err >&5
  15005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15006. (exit $ac_status); } && {
  15007. test -z "$ac_cxx_werror_flag" ||
  15008. test ! -s conftest.err
  15009. } && test -s conftest.$ac_objext; then
  15010. ac_cv_have_decl__snprintf=yes
  15011. else
  15012. echo "$as_me: failed program was:" >&5
  15013. sed 's/^/| /' conftest.$ac_ext >&5
  15014. ac_cv_have_decl__snprintf=no
  15015. fi
  15016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15017. fi
  15018. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15019. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  15020. if test $ac_cv_have_decl__snprintf = yes; then
  15021. gt_value=1
  15022. else
  15023. gt_value=0
  15024. fi
  15025. cat >>confdefs.h <<_ACEOF
  15026. #define HAVE_DECL__SNPRINTF $gt_value
  15027. _ACEOF
  15028. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15029. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  15030. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15031. echo $ECHO_N "(cached) $ECHO_C" >&6
  15032. else
  15033. cat >conftest.$ac_ext <<_ACEOF
  15034. /* confdefs.h. */
  15035. _ACEOF
  15036. cat confdefs.h >>conftest.$ac_ext
  15037. cat >>conftest.$ac_ext <<_ACEOF
  15038. /* end confdefs.h. */
  15039. #include <stdio.h>
  15040. int
  15041. main ()
  15042. {
  15043. #ifndef _snwprintf
  15044. char *p = (char *) _snwprintf;
  15045. #endif
  15046. ;
  15047. return 0;
  15048. }
  15049. _ACEOF
  15050. rm -f conftest.$ac_objext
  15051. if { (ac_try="$ac_compile"
  15052. case "(($ac_try" in
  15053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15054. *) ac_try_echo=$ac_try;;
  15055. esac
  15056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15057. (eval "$ac_compile") 2>conftest.er1
  15058. ac_status=$?
  15059. grep -v '^ *+' conftest.er1 >conftest.err
  15060. rm -f conftest.er1
  15061. cat conftest.err >&5
  15062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15063. (exit $ac_status); } && {
  15064. test -z "$ac_cxx_werror_flag" ||
  15065. test ! -s conftest.err
  15066. } && test -s conftest.$ac_objext; then
  15067. ac_cv_have_decl__snwprintf=yes
  15068. else
  15069. echo "$as_me: failed program was:" >&5
  15070. sed 's/^/| /' conftest.$ac_ext >&5
  15071. ac_cv_have_decl__snwprintf=no
  15072. fi
  15073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15074. fi
  15075. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  15076. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  15077. if test $ac_cv_have_decl__snwprintf = yes; then
  15078. gt_value=1
  15079. else
  15080. gt_value=0
  15081. fi
  15082. cat >>confdefs.h <<_ACEOF
  15083. #define HAVE_DECL__SNWPRINTF $gt_value
  15084. _ACEOF
  15085. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  15086. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  15087. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  15088. echo $ECHO_N "(cached) $ECHO_C" >&6
  15089. else
  15090. cat >conftest.$ac_ext <<_ACEOF
  15091. /* confdefs.h. */
  15092. _ACEOF
  15093. cat confdefs.h >>conftest.$ac_ext
  15094. cat >>conftest.$ac_ext <<_ACEOF
  15095. /* end confdefs.h. */
  15096. #include <stdio.h>
  15097. int
  15098. main ()
  15099. {
  15100. #ifndef getc_unlocked
  15101. char *p = (char *) getc_unlocked;
  15102. #endif
  15103. ;
  15104. return 0;
  15105. }
  15106. _ACEOF
  15107. rm -f conftest.$ac_objext
  15108. if { (ac_try="$ac_compile"
  15109. case "(($ac_try" in
  15110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15111. *) ac_try_echo=$ac_try;;
  15112. esac
  15113. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15114. (eval "$ac_compile") 2>conftest.er1
  15115. ac_status=$?
  15116. grep -v '^ *+' conftest.er1 >conftest.err
  15117. rm -f conftest.er1
  15118. cat conftest.err >&5
  15119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15120. (exit $ac_status); } && {
  15121. test -z "$ac_cxx_werror_flag" ||
  15122. test ! -s conftest.err
  15123. } && test -s conftest.$ac_objext; then
  15124. ac_cv_have_decl_getc_unlocked=yes
  15125. else
  15126. echo "$as_me: failed program was:" >&5
  15127. sed 's/^/| /' conftest.$ac_ext >&5
  15128. ac_cv_have_decl_getc_unlocked=no
  15129. fi
  15130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15131. fi
  15132. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  15133. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  15134. if test $ac_cv_have_decl_getc_unlocked = yes; then
  15135. gt_value=1
  15136. else
  15137. gt_value=0
  15138. fi
  15139. cat >>confdefs.h <<_ACEOF
  15140. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  15141. _ACEOF
  15142. case $gt_cv_func_printf_posix in
  15143. *yes) HAVE_POSIX_PRINTF=1 ;;
  15144. *) HAVE_POSIX_PRINTF=0 ;;
  15145. esac
  15146. if test "$ac_cv_func_asprintf" = yes; then
  15147. HAVE_ASPRINTF=1
  15148. else
  15149. HAVE_ASPRINTF=0
  15150. fi
  15151. if test "$ac_cv_func_snprintf" = yes; then
  15152. HAVE_SNPRINTF=1
  15153. else
  15154. HAVE_SNPRINTF=0
  15155. fi
  15156. if test "$ac_cv_func_wprintf" = yes; then
  15157. HAVE_WPRINTF=1
  15158. else
  15159. HAVE_WPRINTF=0
  15160. fi
  15161. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  15162. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  15163. if test "${am_cv_langinfo_codeset+set}" = set; then
  15164. echo $ECHO_N "(cached) $ECHO_C" >&6
  15165. else
  15166. cat >conftest.$ac_ext <<_ACEOF
  15167. /* confdefs.h. */
  15168. _ACEOF
  15169. cat confdefs.h >>conftest.$ac_ext
  15170. cat >>conftest.$ac_ext <<_ACEOF
  15171. /* end confdefs.h. */
  15172. #include <langinfo.h>
  15173. int
  15174. main ()
  15175. {
  15176. char* cs = nl_langinfo(CODESET); return !cs;
  15177. ;
  15178. return 0;
  15179. }
  15180. _ACEOF
  15181. rm -f conftest.$ac_objext conftest$ac_exeext
  15182. if { (ac_try="$ac_link"
  15183. case "(($ac_try" in
  15184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15185. *) ac_try_echo=$ac_try;;
  15186. esac
  15187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15188. (eval "$ac_link") 2>conftest.er1
  15189. ac_status=$?
  15190. grep -v '^ *+' conftest.er1 >conftest.err
  15191. rm -f conftest.er1
  15192. cat conftest.err >&5
  15193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15194. (exit $ac_status); } && {
  15195. test -z "$ac_cxx_werror_flag" ||
  15196. test ! -s conftest.err
  15197. } && test -s conftest$ac_exeext &&
  15198. $as_test_x conftest$ac_exeext; then
  15199. am_cv_langinfo_codeset=yes
  15200. else
  15201. echo "$as_me: failed program was:" >&5
  15202. sed 's/^/| /' conftest.$ac_ext >&5
  15203. am_cv_langinfo_codeset=no
  15204. fi
  15205. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15206. conftest$ac_exeext conftest.$ac_ext
  15207. fi
  15208. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  15209. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  15210. if test $am_cv_langinfo_codeset = yes; then
  15211. cat >>confdefs.h <<\_ACEOF
  15212. #define HAVE_LANGINFO_CODESET 1
  15213. _ACEOF
  15214. fi
  15215. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  15216. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  15217. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  15218. echo $ECHO_N "(cached) $ECHO_C" >&6
  15219. else
  15220. cat >conftest.$ac_ext <<_ACEOF
  15221. /* confdefs.h. */
  15222. _ACEOF
  15223. cat confdefs.h >>conftest.$ac_ext
  15224. cat >>conftest.$ac_ext <<_ACEOF
  15225. /* end confdefs.h. */
  15226. #include <locale.h>
  15227. int
  15228. main ()
  15229. {
  15230. return LC_MESSAGES
  15231. ;
  15232. return 0;
  15233. }
  15234. _ACEOF
  15235. rm -f conftest.$ac_objext conftest$ac_exeext
  15236. if { (ac_try="$ac_link"
  15237. case "(($ac_try" in
  15238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15239. *) ac_try_echo=$ac_try;;
  15240. esac
  15241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15242. (eval "$ac_link") 2>conftest.er1
  15243. ac_status=$?
  15244. grep -v '^ *+' conftest.er1 >conftest.err
  15245. rm -f conftest.er1
  15246. cat conftest.err >&5
  15247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15248. (exit $ac_status); } && {
  15249. test -z "$ac_cxx_werror_flag" ||
  15250. test ! -s conftest.err
  15251. } && test -s conftest$ac_exeext &&
  15252. $as_test_x conftest$ac_exeext; then
  15253. gt_cv_val_LC_MESSAGES=yes
  15254. else
  15255. echo "$as_me: failed program was:" >&5
  15256. sed 's/^/| /' conftest.$ac_ext >&5
  15257. gt_cv_val_LC_MESSAGES=no
  15258. fi
  15259. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15260. conftest$ac_exeext conftest.$ac_ext
  15261. fi
  15262. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15263. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15264. if test $gt_cv_val_LC_MESSAGES = yes; then
  15265. cat >>confdefs.h <<\_ACEOF
  15266. #define HAVE_LC_MESSAGES 1
  15267. _ACEOF
  15268. fi
  15269. if test "$enable_shared" = yes; then
  15270. case "$host_os" in
  15271. mingw* | cygwin*) is_woe32dll=yes ;;
  15272. *) is_woe32dll=no ;;
  15273. esac
  15274. else
  15275. is_woe32dll=no
  15276. fi
  15277. WOE32DLL=$is_woe32dll
  15278. case "$host_os" in
  15279. mingw* | cygwin*) is_woe32=yes ;;
  15280. *) is_woe32=no ;;
  15281. esac
  15282. WOE32=$is_woe32
  15283. if test $WOE32 = yes; then
  15284. if test -n "$ac_tool_prefix"; then
  15285. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15286. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15287. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15288. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15289. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15290. echo $ECHO_N "(cached) $ECHO_C" >&6
  15291. else
  15292. if test -n "$WINDRES"; then
  15293. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15294. else
  15295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15296. for as_dir in $PATH
  15297. do
  15298. IFS=$as_save_IFS
  15299. test -z "$as_dir" && as_dir=.
  15300. for ac_exec_ext in '' $ac_executable_extensions; do
  15301. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15302. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15303. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15304. break 2
  15305. fi
  15306. done
  15307. done
  15308. IFS=$as_save_IFS
  15309. fi
  15310. fi
  15311. WINDRES=$ac_cv_prog_WINDRES
  15312. if test -n "$WINDRES"; then
  15313. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15314. echo "${ECHO_T}$WINDRES" >&6; }
  15315. else
  15316. { echo "$as_me:$LINENO: result: no" >&5
  15317. echo "${ECHO_T}no" >&6; }
  15318. fi
  15319. fi
  15320. if test -z "$ac_cv_prog_WINDRES"; then
  15321. ac_ct_WINDRES=$WINDRES
  15322. # Extract the first word of "windres", so it can be a program name with args.
  15323. set dummy windres; ac_word=$2
  15324. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15325. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15326. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15327. echo $ECHO_N "(cached) $ECHO_C" >&6
  15328. else
  15329. if test -n "$ac_ct_WINDRES"; then
  15330. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15331. else
  15332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15333. for as_dir in $PATH
  15334. do
  15335. IFS=$as_save_IFS
  15336. test -z "$as_dir" && as_dir=.
  15337. for ac_exec_ext in '' $ac_executable_extensions; do
  15338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15339. ac_cv_prog_ac_ct_WINDRES="windres"
  15340. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15341. break 2
  15342. fi
  15343. done
  15344. done
  15345. IFS=$as_save_IFS
  15346. fi
  15347. fi
  15348. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15349. if test -n "$ac_ct_WINDRES"; then
  15350. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15351. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15352. else
  15353. { echo "$as_me:$LINENO: result: no" >&5
  15354. echo "${ECHO_T}no" >&6; }
  15355. fi
  15356. if test "x$ac_ct_WINDRES" = x; then
  15357. WINDRES=""
  15358. else
  15359. case $cross_compiling:$ac_tool_warned in
  15360. yes:)
  15361. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15362. whose name does not start with the host triplet. If you think this
  15363. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15364. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15365. whose name does not start with the host triplet. If you think this
  15366. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15367. ac_tool_warned=yes ;;
  15368. esac
  15369. WINDRES=$ac_ct_WINDRES
  15370. fi
  15371. else
  15372. WINDRES="$ac_cv_prog_WINDRES"
  15373. fi
  15374. fi
  15375. case "$host_os" in
  15376. hpux*) LTLIBC="" ;;
  15377. *) LTLIBC="-lc" ;;
  15378. esac
  15379. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15380. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15381. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15382. echo $ECHO_N "(cached) $ECHO_C" >&6
  15383. else
  15384. gt_save_LIBS="$LIBS"
  15385. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15386. cat >conftest.$ac_ext <<_ACEOF
  15387. /* confdefs.h. */
  15388. _ACEOF
  15389. cat confdefs.h >>conftest.$ac_ext
  15390. cat >>conftest.$ac_ext <<_ACEOF
  15391. /* end confdefs.h. */
  15392. #include <CoreFoundation/CFPreferences.h>
  15393. int
  15394. main ()
  15395. {
  15396. CFPreferencesCopyAppValue(NULL, NULL)
  15397. ;
  15398. return 0;
  15399. }
  15400. _ACEOF
  15401. rm -f conftest.$ac_objext conftest$ac_exeext
  15402. if { (ac_try="$ac_link"
  15403. case "(($ac_try" in
  15404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15405. *) ac_try_echo=$ac_try;;
  15406. esac
  15407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15408. (eval "$ac_link") 2>conftest.er1
  15409. ac_status=$?
  15410. grep -v '^ *+' conftest.er1 >conftest.err
  15411. rm -f conftest.er1
  15412. cat conftest.err >&5
  15413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15414. (exit $ac_status); } && {
  15415. test -z "$ac_cxx_werror_flag" ||
  15416. test ! -s conftest.err
  15417. } && test -s conftest$ac_exeext &&
  15418. $as_test_x conftest$ac_exeext; then
  15419. gt_cv_func_CFPreferencesCopyAppValue=yes
  15420. else
  15421. echo "$as_me: failed program was:" >&5
  15422. sed 's/^/| /' conftest.$ac_ext >&5
  15423. gt_cv_func_CFPreferencesCopyAppValue=no
  15424. fi
  15425. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15426. conftest$ac_exeext conftest.$ac_ext
  15427. LIBS="$gt_save_LIBS"
  15428. fi
  15429. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15430. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15431. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15432. cat >>confdefs.h <<\_ACEOF
  15433. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15434. _ACEOF
  15435. fi
  15436. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15437. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15438. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15439. echo $ECHO_N "(cached) $ECHO_C" >&6
  15440. else
  15441. gt_save_LIBS="$LIBS"
  15442. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15443. cat >conftest.$ac_ext <<_ACEOF
  15444. /* confdefs.h. */
  15445. _ACEOF
  15446. cat confdefs.h >>conftest.$ac_ext
  15447. cat >>conftest.$ac_ext <<_ACEOF
  15448. /* end confdefs.h. */
  15449. #include <CoreFoundation/CFLocale.h>
  15450. int
  15451. main ()
  15452. {
  15453. CFLocaleCopyCurrent();
  15454. ;
  15455. return 0;
  15456. }
  15457. _ACEOF
  15458. rm -f conftest.$ac_objext conftest$ac_exeext
  15459. if { (ac_try="$ac_link"
  15460. case "(($ac_try" in
  15461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15462. *) ac_try_echo=$ac_try;;
  15463. esac
  15464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15465. (eval "$ac_link") 2>conftest.er1
  15466. ac_status=$?
  15467. grep -v '^ *+' conftest.er1 >conftest.err
  15468. rm -f conftest.er1
  15469. cat conftest.err >&5
  15470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15471. (exit $ac_status); } && {
  15472. test -z "$ac_cxx_werror_flag" ||
  15473. test ! -s conftest.err
  15474. } && test -s conftest$ac_exeext &&
  15475. $as_test_x conftest$ac_exeext; then
  15476. gt_cv_func_CFLocaleCopyCurrent=yes
  15477. else
  15478. echo "$as_me: failed program was:" >&5
  15479. sed 's/^/| /' conftest.$ac_ext >&5
  15480. gt_cv_func_CFLocaleCopyCurrent=no
  15481. fi
  15482. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15483. conftest$ac_exeext conftest.$ac_ext
  15484. LIBS="$gt_save_LIBS"
  15485. fi
  15486. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15487. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15488. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15489. cat >>confdefs.h <<\_ACEOF
  15490. #define HAVE_CFLOCALECOPYCURRENT 1
  15491. _ACEOF
  15492. fi
  15493. INTL_MACOSX_LIBS=
  15494. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15495. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15496. fi
  15497. BUILD_INCLUDED_LIBINTL=no
  15498. USE_INCLUDED_LIBINTL=no
  15499. LIBINTL=
  15500. LTLIBINTL=
  15501. POSUB=
  15502. case " $gt_needs " in
  15503. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15504. *" need-ngettext "*) gt_api_version=2 ;;
  15505. *) gt_api_version=1 ;;
  15506. esac
  15507. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15508. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15509. if test "$USE_NLS" = "yes"; then
  15510. gt_use_preinstalled_gnugettext=no
  15511. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15512. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15513. # Check whether --with-included-gettext was given.
  15514. if test "${with_included_gettext+set}" = set; then
  15515. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15516. else
  15517. nls_cv_force_use_gnu_gettext=no
  15518. fi
  15519. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15520. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15521. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15522. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15523. if test $gt_api_version -ge 3; then
  15524. gt_revision_test_code='
  15525. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15526. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15527. #endif
  15528. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15529. '
  15530. else
  15531. gt_revision_test_code=
  15532. fi
  15533. if test $gt_api_version -ge 2; then
  15534. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15535. else
  15536. gt_expression_test_code=
  15537. fi
  15538. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15539. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15540. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15541. echo $ECHO_N "(cached) $ECHO_C" >&6
  15542. else
  15543. cat >conftest.$ac_ext <<_ACEOF
  15544. /* confdefs.h. */
  15545. _ACEOF
  15546. cat confdefs.h >>conftest.$ac_ext
  15547. cat >>conftest.$ac_ext <<_ACEOF
  15548. /* end confdefs.h. */
  15549. #include <libintl.h>
  15550. $gt_revision_test_code
  15551. extern int _nl_msg_cat_cntr;
  15552. extern int *_nl_domain_bindings;
  15553. int
  15554. main ()
  15555. {
  15556. bindtextdomain ("", "");
  15557. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15558. ;
  15559. return 0;
  15560. }
  15561. _ACEOF
  15562. rm -f conftest.$ac_objext conftest$ac_exeext
  15563. if { (ac_try="$ac_link"
  15564. case "(($ac_try" in
  15565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15566. *) ac_try_echo=$ac_try;;
  15567. esac
  15568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15569. (eval "$ac_link") 2>conftest.er1
  15570. ac_status=$?
  15571. grep -v '^ *+' conftest.er1 >conftest.err
  15572. rm -f conftest.er1
  15573. cat conftest.err >&5
  15574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15575. (exit $ac_status); } && {
  15576. test -z "$ac_cxx_werror_flag" ||
  15577. test ! -s conftest.err
  15578. } && test -s conftest$ac_exeext &&
  15579. $as_test_x conftest$ac_exeext; then
  15580. eval "$gt_func_gnugettext_libc=yes"
  15581. else
  15582. echo "$as_me: failed program was:" >&5
  15583. sed 's/^/| /' conftest.$ac_ext >&5
  15584. eval "$gt_func_gnugettext_libc=no"
  15585. fi
  15586. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15587. conftest$ac_exeext conftest.$ac_ext
  15588. fi
  15589. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15590. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15591. echo "${ECHO_T}$ac_res" >&6; }
  15592. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15593. use_additional=yes
  15594. acl_save_prefix="$prefix"
  15595. prefix="$acl_final_prefix"
  15596. acl_save_exec_prefix="$exec_prefix"
  15597. exec_prefix="$acl_final_exec_prefix"
  15598. eval additional_includedir=\"$includedir\"
  15599. eval additional_libdir=\"$libdir\"
  15600. exec_prefix="$acl_save_exec_prefix"
  15601. prefix="$acl_save_prefix"
  15602. # Check whether --with-libintl-prefix was given.
  15603. if test "${with_libintl_prefix+set}" = set; then
  15604. withval=$with_libintl_prefix;
  15605. if test "X$withval" = "Xno"; then
  15606. use_additional=no
  15607. else
  15608. if test "X$withval" = "X"; then
  15609. acl_save_prefix="$prefix"
  15610. prefix="$acl_final_prefix"
  15611. acl_save_exec_prefix="$exec_prefix"
  15612. exec_prefix="$acl_final_exec_prefix"
  15613. eval additional_includedir=\"$includedir\"
  15614. eval additional_libdir=\"$libdir\"
  15615. exec_prefix="$acl_save_exec_prefix"
  15616. prefix="$acl_save_prefix"
  15617. else
  15618. additional_includedir="$withval/include"
  15619. additional_libdir="$withval/$acl_libdirstem"
  15620. fi
  15621. fi
  15622. fi
  15623. LIBINTL=
  15624. LTLIBINTL=
  15625. INCINTL=
  15626. LIBINTL_PREFIX=
  15627. rpathdirs=
  15628. ltrpathdirs=
  15629. names_already_handled=
  15630. names_next_round='intl '
  15631. while test -n "$names_next_round"; do
  15632. names_this_round="$names_next_round"
  15633. names_next_round=
  15634. for name in $names_this_round; do
  15635. already_handled=
  15636. for n in $names_already_handled; do
  15637. if test "$n" = "$name"; then
  15638. already_handled=yes
  15639. break
  15640. fi
  15641. done
  15642. if test -z "$already_handled"; then
  15643. names_already_handled="$names_already_handled $name"
  15644. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15645. eval value=\"\$HAVE_LIB$uppername\"
  15646. if test -n "$value"; then
  15647. if test "$value" = yes; then
  15648. eval value=\"\$LIB$uppername\"
  15649. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15650. eval value=\"\$LTLIB$uppername\"
  15651. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15652. else
  15653. :
  15654. fi
  15655. else
  15656. found_dir=
  15657. found_la=
  15658. found_so=
  15659. found_a=
  15660. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15661. if test -n "$acl_shlibext"; then
  15662. shrext=".$acl_shlibext" # typically: shrext=.so
  15663. else
  15664. shrext=
  15665. fi
  15666. if test $use_additional = yes; then
  15667. dir="$additional_libdir"
  15668. if test -n "$acl_shlibext"; then
  15669. if test -f "$dir/$libname$shrext"; then
  15670. found_dir="$dir"
  15671. found_so="$dir/$libname$shrext"
  15672. else
  15673. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15674. ver=`(cd "$dir" && \
  15675. for f in "$libname$shrext".*; do echo "$f"; done \
  15676. | sed -e "s,^$libname$shrext\\\\.,," \
  15677. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15678. | sed 1q ) 2>/dev/null`
  15679. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15680. found_dir="$dir"
  15681. found_so="$dir/$libname$shrext.$ver"
  15682. fi
  15683. else
  15684. eval library_names=\"$acl_library_names_spec\"
  15685. for f in $library_names; do
  15686. if test -f "$dir/$f"; then
  15687. found_dir="$dir"
  15688. found_so="$dir/$f"
  15689. break
  15690. fi
  15691. done
  15692. fi
  15693. fi
  15694. fi
  15695. if test "X$found_dir" = "X"; then
  15696. if test -f "$dir/$libname.$acl_libext"; then
  15697. found_dir="$dir"
  15698. found_a="$dir/$libname.$acl_libext"
  15699. fi
  15700. fi
  15701. if test "X$found_dir" != "X"; then
  15702. if test -f "$dir/$libname.la"; then
  15703. found_la="$dir/$libname.la"
  15704. fi
  15705. fi
  15706. fi
  15707. if test "X$found_dir" = "X"; then
  15708. for x in $LDFLAGS $LTLIBINTL; do
  15709. acl_save_prefix="$prefix"
  15710. prefix="$acl_final_prefix"
  15711. acl_save_exec_prefix="$exec_prefix"
  15712. exec_prefix="$acl_final_exec_prefix"
  15713. eval x=\"$x\"
  15714. exec_prefix="$acl_save_exec_prefix"
  15715. prefix="$acl_save_prefix"
  15716. case "$x" in
  15717. -L*)
  15718. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15719. if test -n "$acl_shlibext"; then
  15720. if test -f "$dir/$libname$shrext"; then
  15721. found_dir="$dir"
  15722. found_so="$dir/$libname$shrext"
  15723. else
  15724. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15725. ver=`(cd "$dir" && \
  15726. for f in "$libname$shrext".*; do echo "$f"; done \
  15727. | sed -e "s,^$libname$shrext\\\\.,," \
  15728. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15729. | sed 1q ) 2>/dev/null`
  15730. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15731. found_dir="$dir"
  15732. found_so="$dir/$libname$shrext.$ver"
  15733. fi
  15734. else
  15735. eval library_names=\"$acl_library_names_spec\"
  15736. for f in $library_names; do
  15737. if test -f "$dir/$f"; then
  15738. found_dir="$dir"
  15739. found_so="$dir/$f"
  15740. break
  15741. fi
  15742. done
  15743. fi
  15744. fi
  15745. fi
  15746. if test "X$found_dir" = "X"; then
  15747. if test -f "$dir/$libname.$acl_libext"; then
  15748. found_dir="$dir"
  15749. found_a="$dir/$libname.$acl_libext"
  15750. fi
  15751. fi
  15752. if test "X$found_dir" != "X"; then
  15753. if test -f "$dir/$libname.la"; then
  15754. found_la="$dir/$libname.la"
  15755. fi
  15756. fi
  15757. ;;
  15758. esac
  15759. if test "X$found_dir" != "X"; then
  15760. break
  15761. fi
  15762. done
  15763. fi
  15764. if test "X$found_dir" != "X"; then
  15765. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15766. if test "X$found_so" != "X"; then
  15767. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15768. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15769. else
  15770. haveit=
  15771. for x in $ltrpathdirs; do
  15772. if test "X$x" = "X$found_dir"; then
  15773. haveit=yes
  15774. break
  15775. fi
  15776. done
  15777. if test -z "$haveit"; then
  15778. ltrpathdirs="$ltrpathdirs $found_dir"
  15779. fi
  15780. if test "$acl_hardcode_direct" = yes; then
  15781. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15782. else
  15783. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15784. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15785. haveit=
  15786. for x in $rpathdirs; do
  15787. if test "X$x" = "X$found_dir"; then
  15788. haveit=yes
  15789. break
  15790. fi
  15791. done
  15792. if test -z "$haveit"; then
  15793. rpathdirs="$rpathdirs $found_dir"
  15794. fi
  15795. else
  15796. haveit=
  15797. for x in $LDFLAGS $LIBINTL; do
  15798. acl_save_prefix="$prefix"
  15799. prefix="$acl_final_prefix"
  15800. acl_save_exec_prefix="$exec_prefix"
  15801. exec_prefix="$acl_final_exec_prefix"
  15802. eval x=\"$x\"
  15803. exec_prefix="$acl_save_exec_prefix"
  15804. prefix="$acl_save_prefix"
  15805. if test "X$x" = "X-L$found_dir"; then
  15806. haveit=yes
  15807. break
  15808. fi
  15809. done
  15810. if test -z "$haveit"; then
  15811. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15812. fi
  15813. if test "$acl_hardcode_minus_L" != no; then
  15814. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15815. else
  15816. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15817. fi
  15818. fi
  15819. fi
  15820. fi
  15821. else
  15822. if test "X$found_a" != "X"; then
  15823. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15824. else
  15825. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15826. fi
  15827. fi
  15828. additional_includedir=
  15829. case "$found_dir" in
  15830. */$acl_libdirstem | */$acl_libdirstem/)
  15831. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15832. LIBINTL_PREFIX="$basedir"
  15833. additional_includedir="$basedir/include"
  15834. ;;
  15835. esac
  15836. if test "X$additional_includedir" != "X"; then
  15837. if test "X$additional_includedir" != "X/usr/include"; then
  15838. haveit=
  15839. if test "X$additional_includedir" = "X/usr/local/include"; then
  15840. if test -n "$GCC"; then
  15841. case $host_os in
  15842. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15843. esac
  15844. fi
  15845. fi
  15846. if test -z "$haveit"; then
  15847. for x in $CPPFLAGS $INCINTL; do
  15848. acl_save_prefix="$prefix"
  15849. prefix="$acl_final_prefix"
  15850. acl_save_exec_prefix="$exec_prefix"
  15851. exec_prefix="$acl_final_exec_prefix"
  15852. eval x=\"$x\"
  15853. exec_prefix="$acl_save_exec_prefix"
  15854. prefix="$acl_save_prefix"
  15855. if test "X$x" = "X-I$additional_includedir"; then
  15856. haveit=yes
  15857. break
  15858. fi
  15859. done
  15860. if test -z "$haveit"; then
  15861. if test -d "$additional_includedir"; then
  15862. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15863. fi
  15864. fi
  15865. fi
  15866. fi
  15867. fi
  15868. if test -n "$found_la"; then
  15869. save_libdir="$libdir"
  15870. case "$found_la" in
  15871. */* | *\\*) . "$found_la" ;;
  15872. *) . "./$found_la" ;;
  15873. esac
  15874. libdir="$save_libdir"
  15875. for dep in $dependency_libs; do
  15876. case "$dep" in
  15877. -L*)
  15878. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15879. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15880. haveit=
  15881. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15882. if test -n "$GCC"; then
  15883. case $host_os in
  15884. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15885. esac
  15886. fi
  15887. fi
  15888. if test -z "$haveit"; then
  15889. haveit=
  15890. for x in $LDFLAGS $LIBINTL; do
  15891. acl_save_prefix="$prefix"
  15892. prefix="$acl_final_prefix"
  15893. acl_save_exec_prefix="$exec_prefix"
  15894. exec_prefix="$acl_final_exec_prefix"
  15895. eval x=\"$x\"
  15896. exec_prefix="$acl_save_exec_prefix"
  15897. prefix="$acl_save_prefix"
  15898. if test "X$x" = "X-L$additional_libdir"; then
  15899. haveit=yes
  15900. break
  15901. fi
  15902. done
  15903. if test -z "$haveit"; then
  15904. if test -d "$additional_libdir"; then
  15905. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15906. fi
  15907. fi
  15908. haveit=
  15909. for x in $LDFLAGS $LTLIBINTL; do
  15910. acl_save_prefix="$prefix"
  15911. prefix="$acl_final_prefix"
  15912. acl_save_exec_prefix="$exec_prefix"
  15913. exec_prefix="$acl_final_exec_prefix"
  15914. eval x=\"$x\"
  15915. exec_prefix="$acl_save_exec_prefix"
  15916. prefix="$acl_save_prefix"
  15917. if test "X$x" = "X-L$additional_libdir"; then
  15918. haveit=yes
  15919. break
  15920. fi
  15921. done
  15922. if test -z "$haveit"; then
  15923. if test -d "$additional_libdir"; then
  15924. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15925. fi
  15926. fi
  15927. fi
  15928. fi
  15929. ;;
  15930. -R*)
  15931. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15932. if test "$enable_rpath" != no; then
  15933. haveit=
  15934. for x in $rpathdirs; do
  15935. if test "X$x" = "X$dir"; then
  15936. haveit=yes
  15937. break
  15938. fi
  15939. done
  15940. if test -z "$haveit"; then
  15941. rpathdirs="$rpathdirs $dir"
  15942. fi
  15943. haveit=
  15944. for x in $ltrpathdirs; do
  15945. if test "X$x" = "X$dir"; then
  15946. haveit=yes
  15947. break
  15948. fi
  15949. done
  15950. if test -z "$haveit"; then
  15951. ltrpathdirs="$ltrpathdirs $dir"
  15952. fi
  15953. fi
  15954. ;;
  15955. -l*)
  15956. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15957. ;;
  15958. *.la)
  15959. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15960. ;;
  15961. *)
  15962. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15963. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15964. ;;
  15965. esac
  15966. done
  15967. fi
  15968. else
  15969. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15970. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15971. fi
  15972. fi
  15973. fi
  15974. done
  15975. done
  15976. if test "X$rpathdirs" != "X"; then
  15977. if test -n "$acl_hardcode_libdir_separator"; then
  15978. alldirs=
  15979. for found_dir in $rpathdirs; do
  15980. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15981. done
  15982. acl_save_libdir="$libdir"
  15983. libdir="$alldirs"
  15984. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15985. libdir="$acl_save_libdir"
  15986. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15987. else
  15988. for found_dir in $rpathdirs; do
  15989. acl_save_libdir="$libdir"
  15990. libdir="$found_dir"
  15991. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15992. libdir="$acl_save_libdir"
  15993. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15994. done
  15995. fi
  15996. fi
  15997. if test "X$ltrpathdirs" != "X"; then
  15998. for found_dir in $ltrpathdirs; do
  15999. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  16000. done
  16001. fi
  16002. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  16003. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  16004. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  16005. echo $ECHO_N "(cached) $ECHO_C" >&6
  16006. else
  16007. gt_save_CPPFLAGS="$CPPFLAGS"
  16008. CPPFLAGS="$CPPFLAGS $INCINTL"
  16009. gt_save_LIBS="$LIBS"
  16010. LIBS="$LIBS $LIBINTL"
  16011. cat >conftest.$ac_ext <<_ACEOF
  16012. /* confdefs.h. */
  16013. _ACEOF
  16014. cat confdefs.h >>conftest.$ac_ext
  16015. cat >>conftest.$ac_ext <<_ACEOF
  16016. /* end confdefs.h. */
  16017. #include <libintl.h>
  16018. $gt_revision_test_code
  16019. extern int _nl_msg_cat_cntr;
  16020. extern
  16021. #ifdef __cplusplus
  16022. "C"
  16023. #endif
  16024. const char *_nl_expand_alias (const char *);
  16025. int
  16026. main ()
  16027. {
  16028. bindtextdomain ("", "");
  16029. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16030. ;
  16031. return 0;
  16032. }
  16033. _ACEOF
  16034. rm -f conftest.$ac_objext conftest$ac_exeext
  16035. if { (ac_try="$ac_link"
  16036. case "(($ac_try" in
  16037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16038. *) ac_try_echo=$ac_try;;
  16039. esac
  16040. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16041. (eval "$ac_link") 2>conftest.er1
  16042. ac_status=$?
  16043. grep -v '^ *+' conftest.er1 >conftest.err
  16044. rm -f conftest.er1
  16045. cat conftest.err >&5
  16046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16047. (exit $ac_status); } && {
  16048. test -z "$ac_cxx_werror_flag" ||
  16049. test ! -s conftest.err
  16050. } && test -s conftest$ac_exeext &&
  16051. $as_test_x conftest$ac_exeext; then
  16052. eval "$gt_func_gnugettext_libintl=yes"
  16053. else
  16054. echo "$as_me: failed program was:" >&5
  16055. sed 's/^/| /' conftest.$ac_ext >&5
  16056. eval "$gt_func_gnugettext_libintl=no"
  16057. fi
  16058. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16059. conftest$ac_exeext conftest.$ac_ext
  16060. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  16061. LIBS="$LIBS $LIBICONV"
  16062. cat >conftest.$ac_ext <<_ACEOF
  16063. /* confdefs.h. */
  16064. _ACEOF
  16065. cat confdefs.h >>conftest.$ac_ext
  16066. cat >>conftest.$ac_ext <<_ACEOF
  16067. /* end confdefs.h. */
  16068. #include <libintl.h>
  16069. $gt_revision_test_code
  16070. extern int _nl_msg_cat_cntr;
  16071. extern
  16072. #ifdef __cplusplus
  16073. "C"
  16074. #endif
  16075. const char *_nl_expand_alias (const char *);
  16076. int
  16077. main ()
  16078. {
  16079. bindtextdomain ("", "");
  16080. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16081. ;
  16082. return 0;
  16083. }
  16084. _ACEOF
  16085. rm -f conftest.$ac_objext conftest$ac_exeext
  16086. if { (ac_try="$ac_link"
  16087. case "(($ac_try" in
  16088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16089. *) ac_try_echo=$ac_try;;
  16090. esac
  16091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16092. (eval "$ac_link") 2>conftest.er1
  16093. ac_status=$?
  16094. grep -v '^ *+' conftest.er1 >conftest.err
  16095. rm -f conftest.er1
  16096. cat conftest.err >&5
  16097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16098. (exit $ac_status); } && {
  16099. test -z "$ac_cxx_werror_flag" ||
  16100. test ! -s conftest.err
  16101. } && test -s conftest$ac_exeext &&
  16102. $as_test_x conftest$ac_exeext; then
  16103. LIBINTL="$LIBINTL $LIBICONV"
  16104. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  16105. eval "$gt_func_gnugettext_libintl=yes"
  16106. else
  16107. echo "$as_me: failed program was:" >&5
  16108. sed 's/^/| /' conftest.$ac_ext >&5
  16109. fi
  16110. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16111. conftest$ac_exeext conftest.$ac_ext
  16112. fi
  16113. CPPFLAGS="$gt_save_CPPFLAGS"
  16114. LIBS="$gt_save_LIBS"
  16115. fi
  16116. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  16117. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16118. echo "${ECHO_T}$ac_res" >&6; }
  16119. fi
  16120. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  16121. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  16122. && test "$PACKAGE" != gettext-runtime \
  16123. && test "$PACKAGE" != gettext-tools; }; then
  16124. gt_use_preinstalled_gnugettext=yes
  16125. else
  16126. LIBINTL=
  16127. LTLIBINTL=
  16128. INCINTL=
  16129. fi
  16130. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  16131. nls_cv_use_gnu_gettext=yes
  16132. fi
  16133. fi
  16134. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  16135. BUILD_INCLUDED_LIBINTL=yes
  16136. USE_INCLUDED_LIBINTL=yes
  16137. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  16138. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  16139. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  16140. fi
  16141. CATOBJEXT=
  16142. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16143. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16144. CATOBJEXT=.gmo
  16145. fi
  16146. if test -n "$INTL_MACOSX_LIBS"; then
  16147. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16148. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16149. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  16150. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  16151. fi
  16152. fi
  16153. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16154. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16155. cat >>confdefs.h <<\_ACEOF
  16156. #define ENABLE_NLS 1
  16157. _ACEOF
  16158. else
  16159. USE_NLS=no
  16160. fi
  16161. fi
  16162. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  16163. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  16164. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  16165. echo "${ECHO_T}$USE_NLS" >&6; }
  16166. if test "$USE_NLS" = "yes"; then
  16167. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  16168. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  16169. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16170. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16171. gt_source="external libintl"
  16172. else
  16173. gt_source="libc"
  16174. fi
  16175. else
  16176. gt_source="included intl directory"
  16177. fi
  16178. { echo "$as_me:$LINENO: result: $gt_source" >&5
  16179. echo "${ECHO_T}$gt_source" >&6; }
  16180. fi
  16181. if test "$USE_NLS" = "yes"; then
  16182. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16183. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16184. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  16185. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  16186. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  16187. echo "${ECHO_T}$LIBINTL" >&6; }
  16188. for element in $INCINTL; do
  16189. haveit=
  16190. for x in $CPPFLAGS; do
  16191. acl_save_prefix="$prefix"
  16192. prefix="$acl_final_prefix"
  16193. acl_save_exec_prefix="$exec_prefix"
  16194. exec_prefix="$acl_final_exec_prefix"
  16195. eval x=\"$x\"
  16196. exec_prefix="$acl_save_exec_prefix"
  16197. prefix="$acl_save_prefix"
  16198. if test "X$x" = "X$element"; then
  16199. haveit=yes
  16200. break
  16201. fi
  16202. done
  16203. if test -z "$haveit"; then
  16204. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16205. fi
  16206. done
  16207. fi
  16208. cat >>confdefs.h <<\_ACEOF
  16209. #define HAVE_GETTEXT 1
  16210. _ACEOF
  16211. cat >>confdefs.h <<\_ACEOF
  16212. #define HAVE_DCGETTEXT 1
  16213. _ACEOF
  16214. fi
  16215. POSUB=po
  16216. fi
  16217. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  16218. BUILD_INCLUDED_LIBINTL=yes
  16219. fi
  16220. nls_cv_header_intl=
  16221. nls_cv_header_libgt=
  16222. DATADIRNAME=share
  16223. INSTOBJEXT=.mo
  16224. GENCAT=gencat
  16225. INTLOBJS=
  16226. if test "$USE_INCLUDED_LIBINTL" = yes; then
  16227. INTLOBJS="\$(GETTOBJS)"
  16228. fi
  16229. INTL_LIBTOOL_SUFFIX_PREFIX=
  16230. INTLLIBS="$LIBINTL"
  16231. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  16232. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  16233. if test "${ac_cv_lib_error_at_line+set}" = set; then
  16234. echo $ECHO_N "(cached) $ECHO_C" >&6
  16235. else
  16236. cat >conftest.$ac_ext <<_ACEOF
  16237. /* confdefs.h. */
  16238. _ACEOF
  16239. cat confdefs.h >>conftest.$ac_ext
  16240. cat >>conftest.$ac_ext <<_ACEOF
  16241. /* end confdefs.h. */
  16242. #include <error.h>
  16243. int
  16244. main ()
  16245. {
  16246. error_at_line (0, 0, "", 0, "an error occurred");
  16247. ;
  16248. return 0;
  16249. }
  16250. _ACEOF
  16251. rm -f conftest.$ac_objext conftest$ac_exeext
  16252. if { (ac_try="$ac_link"
  16253. case "(($ac_try" in
  16254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16255. *) ac_try_echo=$ac_try;;
  16256. esac
  16257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16258. (eval "$ac_link") 2>conftest.er1
  16259. ac_status=$?
  16260. grep -v '^ *+' conftest.er1 >conftest.err
  16261. rm -f conftest.er1
  16262. cat conftest.err >&5
  16263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16264. (exit $ac_status); } && {
  16265. test -z "$ac_cxx_werror_flag" ||
  16266. test ! -s conftest.err
  16267. } && test -s conftest$ac_exeext &&
  16268. $as_test_x conftest$ac_exeext; then
  16269. ac_cv_lib_error_at_line=yes
  16270. else
  16271. echo "$as_me: failed program was:" >&5
  16272. sed 's/^/| /' conftest.$ac_ext >&5
  16273. ac_cv_lib_error_at_line=no
  16274. fi
  16275. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16276. conftest$ac_exeext conftest.$ac_ext
  16277. fi
  16278. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16279. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16280. if test $ac_cv_lib_error_at_line = no; then
  16281. case " $LIBOBJS " in
  16282. *" error.$ac_objext "* ) ;;
  16283. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16284. ;;
  16285. esac
  16286. fi
  16287. if test $ac_cv_c_compiler_gnu = yes; then
  16288. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16289. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16290. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16291. echo $ECHO_N "(cached) $ECHO_C" >&6
  16292. else
  16293. ac_pattern="Autoconf.*'x'"
  16294. cat >conftest.$ac_ext <<_ACEOF
  16295. /* confdefs.h. */
  16296. _ACEOF
  16297. cat confdefs.h >>conftest.$ac_ext
  16298. cat >>conftest.$ac_ext <<_ACEOF
  16299. /* end confdefs.h. */
  16300. #include <sgtty.h>
  16301. Autoconf TIOCGETP
  16302. _ACEOF
  16303. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16304. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16305. ac_cv_prog_gcc_traditional=yes
  16306. else
  16307. ac_cv_prog_gcc_traditional=no
  16308. fi
  16309. rm -f conftest*
  16310. if test $ac_cv_prog_gcc_traditional = no; then
  16311. cat >conftest.$ac_ext <<_ACEOF
  16312. /* confdefs.h. */
  16313. _ACEOF
  16314. cat confdefs.h >>conftest.$ac_ext
  16315. cat >>conftest.$ac_ext <<_ACEOF
  16316. /* end confdefs.h. */
  16317. #include <termio.h>
  16318. Autoconf TCGETA
  16319. _ACEOF
  16320. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16321. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16322. ac_cv_prog_gcc_traditional=yes
  16323. fi
  16324. rm -f conftest*
  16325. fi
  16326. fi
  16327. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16328. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16329. if test $ac_cv_prog_gcc_traditional = yes; then
  16330. CC="$CC -traditional"
  16331. fi
  16332. fi
  16333. case "$target" in
  16334. *mingw*)
  16335. ;;
  16336. *)
  16337. for ac_header in stdlib.h
  16338. do
  16339. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16340. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16341. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16342. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16343. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16344. echo $ECHO_N "(cached) $ECHO_C" >&6
  16345. fi
  16346. ac_res=`eval echo '${'$as_ac_Header'}'`
  16347. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16348. echo "${ECHO_T}$ac_res" >&6; }
  16349. else
  16350. # Is the header compilable?
  16351. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16352. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16353. cat >conftest.$ac_ext <<_ACEOF
  16354. /* confdefs.h. */
  16355. _ACEOF
  16356. cat confdefs.h >>conftest.$ac_ext
  16357. cat >>conftest.$ac_ext <<_ACEOF
  16358. /* end confdefs.h. */
  16359. $ac_includes_default
  16360. #include <$ac_header>
  16361. _ACEOF
  16362. rm -f conftest.$ac_objext
  16363. if { (ac_try="$ac_compile"
  16364. case "(($ac_try" in
  16365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16366. *) ac_try_echo=$ac_try;;
  16367. esac
  16368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16369. (eval "$ac_compile") 2>conftest.er1
  16370. ac_status=$?
  16371. grep -v '^ *+' conftest.er1 >conftest.err
  16372. rm -f conftest.er1
  16373. cat conftest.err >&5
  16374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16375. (exit $ac_status); } && {
  16376. test -z "$ac_cxx_werror_flag" ||
  16377. test ! -s conftest.err
  16378. } && test -s conftest.$ac_objext; then
  16379. ac_header_compiler=yes
  16380. else
  16381. echo "$as_me: failed program was:" >&5
  16382. sed 's/^/| /' conftest.$ac_ext >&5
  16383. ac_header_compiler=no
  16384. fi
  16385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16386. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16387. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16388. # Is the header present?
  16389. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16390. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16391. cat >conftest.$ac_ext <<_ACEOF
  16392. /* confdefs.h. */
  16393. _ACEOF
  16394. cat confdefs.h >>conftest.$ac_ext
  16395. cat >>conftest.$ac_ext <<_ACEOF
  16396. /* end confdefs.h. */
  16397. #include <$ac_header>
  16398. _ACEOF
  16399. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16400. case "(($ac_try" in
  16401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16402. *) ac_try_echo=$ac_try;;
  16403. esac
  16404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16405. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16406. ac_status=$?
  16407. grep -v '^ *+' conftest.er1 >conftest.err
  16408. rm -f conftest.er1
  16409. cat conftest.err >&5
  16410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16411. (exit $ac_status); } >/dev/null && {
  16412. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16413. test ! -s conftest.err
  16414. }; then
  16415. ac_header_preproc=yes
  16416. else
  16417. echo "$as_me: failed program was:" >&5
  16418. sed 's/^/| /' conftest.$ac_ext >&5
  16419. ac_header_preproc=no
  16420. fi
  16421. rm -f conftest.err conftest.$ac_ext
  16422. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16423. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16424. # So? What about this header?
  16425. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16426. yes:no: )
  16427. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16428. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16429. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16430. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16431. ac_header_preproc=yes
  16432. ;;
  16433. no:yes:* )
  16434. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16435. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16436. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16437. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16438. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16439. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16440. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16441. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16442. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16443. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16444. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16445. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16446. ( cat <<\_ASBOX
  16447. ## ----------------------------------------------- ##
  16448. ## Report this to t-tujikawa@users.sourceforge.net ##
  16449. ## ----------------------------------------------- ##
  16450. _ASBOX
  16451. ) | sed "s/^/$as_me: WARNING: /" >&2
  16452. ;;
  16453. esac
  16454. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16455. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16456. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16457. echo $ECHO_N "(cached) $ECHO_C" >&6
  16458. else
  16459. eval "$as_ac_Header=\$ac_header_preproc"
  16460. fi
  16461. ac_res=`eval echo '${'$as_ac_Header'}'`
  16462. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16463. echo "${ECHO_T}$ac_res" >&6; }
  16464. fi
  16465. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16466. cat >>confdefs.h <<_ACEOF
  16467. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16468. _ACEOF
  16469. fi
  16470. done
  16471. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16472. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16473. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16474. echo $ECHO_N "(cached) $ECHO_C" >&6
  16475. else
  16476. if test "$cross_compiling" = yes; then
  16477. ac_cv_func_malloc_0_nonnull=no
  16478. else
  16479. cat >conftest.$ac_ext <<_ACEOF
  16480. /* confdefs.h. */
  16481. _ACEOF
  16482. cat confdefs.h >>conftest.$ac_ext
  16483. cat >>conftest.$ac_ext <<_ACEOF
  16484. /* end confdefs.h. */
  16485. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16486. # include <stdlib.h>
  16487. #else
  16488. char *malloc ();
  16489. #endif
  16490. int
  16491. main ()
  16492. {
  16493. return ! malloc (0);
  16494. ;
  16495. return 0;
  16496. }
  16497. _ACEOF
  16498. rm -f conftest$ac_exeext
  16499. if { (ac_try="$ac_link"
  16500. case "(($ac_try" in
  16501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16502. *) ac_try_echo=$ac_try;;
  16503. esac
  16504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16505. (eval "$ac_link") 2>&5
  16506. ac_status=$?
  16507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16508. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16509. { (case "(($ac_try" in
  16510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16511. *) ac_try_echo=$ac_try;;
  16512. esac
  16513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16514. (eval "$ac_try") 2>&5
  16515. ac_status=$?
  16516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16517. (exit $ac_status); }; }; then
  16518. ac_cv_func_malloc_0_nonnull=yes
  16519. else
  16520. echo "$as_me: program exited with status $ac_status" >&5
  16521. echo "$as_me: failed program was:" >&5
  16522. sed 's/^/| /' conftest.$ac_ext >&5
  16523. ( exit $ac_status )
  16524. ac_cv_func_malloc_0_nonnull=no
  16525. fi
  16526. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16527. fi
  16528. fi
  16529. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16530. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16531. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16532. cat >>confdefs.h <<\_ACEOF
  16533. #define HAVE_MALLOC 1
  16534. _ACEOF
  16535. else
  16536. cat >>confdefs.h <<\_ACEOF
  16537. #define HAVE_MALLOC 0
  16538. _ACEOF
  16539. case " $LIBOBJS " in
  16540. *" malloc.$ac_objext "* ) ;;
  16541. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16542. ;;
  16543. esac
  16544. cat >>confdefs.h <<\_ACEOF
  16545. #define malloc rpl_malloc
  16546. _ACEOF
  16547. fi
  16548. for ac_header in stdlib.h
  16549. do
  16550. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16551. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16552. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16553. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16554. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16555. echo $ECHO_N "(cached) $ECHO_C" >&6
  16556. fi
  16557. ac_res=`eval echo '${'$as_ac_Header'}'`
  16558. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16559. echo "${ECHO_T}$ac_res" >&6; }
  16560. else
  16561. # Is the header compilable?
  16562. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16563. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16564. cat >conftest.$ac_ext <<_ACEOF
  16565. /* confdefs.h. */
  16566. _ACEOF
  16567. cat confdefs.h >>conftest.$ac_ext
  16568. cat >>conftest.$ac_ext <<_ACEOF
  16569. /* end confdefs.h. */
  16570. $ac_includes_default
  16571. #include <$ac_header>
  16572. _ACEOF
  16573. rm -f conftest.$ac_objext
  16574. if { (ac_try="$ac_compile"
  16575. case "(($ac_try" in
  16576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16577. *) ac_try_echo=$ac_try;;
  16578. esac
  16579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16580. (eval "$ac_compile") 2>conftest.er1
  16581. ac_status=$?
  16582. grep -v '^ *+' conftest.er1 >conftest.err
  16583. rm -f conftest.er1
  16584. cat conftest.err >&5
  16585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16586. (exit $ac_status); } && {
  16587. test -z "$ac_cxx_werror_flag" ||
  16588. test ! -s conftest.err
  16589. } && test -s conftest.$ac_objext; then
  16590. ac_header_compiler=yes
  16591. else
  16592. echo "$as_me: failed program was:" >&5
  16593. sed 's/^/| /' conftest.$ac_ext >&5
  16594. ac_header_compiler=no
  16595. fi
  16596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16597. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16598. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16599. # Is the header present?
  16600. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16601. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16602. cat >conftest.$ac_ext <<_ACEOF
  16603. /* confdefs.h. */
  16604. _ACEOF
  16605. cat confdefs.h >>conftest.$ac_ext
  16606. cat >>conftest.$ac_ext <<_ACEOF
  16607. /* end confdefs.h. */
  16608. #include <$ac_header>
  16609. _ACEOF
  16610. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16611. case "(($ac_try" in
  16612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16613. *) ac_try_echo=$ac_try;;
  16614. esac
  16615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16616. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16617. ac_status=$?
  16618. grep -v '^ *+' conftest.er1 >conftest.err
  16619. rm -f conftest.er1
  16620. cat conftest.err >&5
  16621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16622. (exit $ac_status); } >/dev/null && {
  16623. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16624. test ! -s conftest.err
  16625. }; then
  16626. ac_header_preproc=yes
  16627. else
  16628. echo "$as_me: failed program was:" >&5
  16629. sed 's/^/| /' conftest.$ac_ext >&5
  16630. ac_header_preproc=no
  16631. fi
  16632. rm -f conftest.err conftest.$ac_ext
  16633. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16634. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16635. # So? What about this header?
  16636. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16637. yes:no: )
  16638. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16639. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16640. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16641. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16642. ac_header_preproc=yes
  16643. ;;
  16644. no:yes:* )
  16645. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16646. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16647. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16648. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16649. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16650. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16651. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16652. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16653. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16654. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16655. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16656. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16657. ( cat <<\_ASBOX
  16658. ## ----------------------------------------------- ##
  16659. ## Report this to t-tujikawa@users.sourceforge.net ##
  16660. ## ----------------------------------------------- ##
  16661. _ASBOX
  16662. ) | sed "s/^/$as_me: WARNING: /" >&2
  16663. ;;
  16664. esac
  16665. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16666. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16667. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16668. echo $ECHO_N "(cached) $ECHO_C" >&6
  16669. else
  16670. eval "$as_ac_Header=\$ac_header_preproc"
  16671. fi
  16672. ac_res=`eval echo '${'$as_ac_Header'}'`
  16673. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16674. echo "${ECHO_T}$ac_res" >&6; }
  16675. fi
  16676. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16677. cat >>confdefs.h <<_ACEOF
  16678. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16679. _ACEOF
  16680. fi
  16681. done
  16682. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16683. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16684. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16685. echo $ECHO_N "(cached) $ECHO_C" >&6
  16686. else
  16687. if test "$cross_compiling" = yes; then
  16688. ac_cv_func_realloc_0_nonnull=no
  16689. else
  16690. cat >conftest.$ac_ext <<_ACEOF
  16691. /* confdefs.h. */
  16692. _ACEOF
  16693. cat confdefs.h >>conftest.$ac_ext
  16694. cat >>conftest.$ac_ext <<_ACEOF
  16695. /* end confdefs.h. */
  16696. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16697. # include <stdlib.h>
  16698. #else
  16699. char *realloc ();
  16700. #endif
  16701. int
  16702. main ()
  16703. {
  16704. return ! realloc (0, 0);
  16705. ;
  16706. return 0;
  16707. }
  16708. _ACEOF
  16709. rm -f conftest$ac_exeext
  16710. if { (ac_try="$ac_link"
  16711. case "(($ac_try" in
  16712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16713. *) ac_try_echo=$ac_try;;
  16714. esac
  16715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16716. (eval "$ac_link") 2>&5
  16717. ac_status=$?
  16718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16719. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16720. { (case "(($ac_try" in
  16721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16722. *) ac_try_echo=$ac_try;;
  16723. esac
  16724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16725. (eval "$ac_try") 2>&5
  16726. ac_status=$?
  16727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16728. (exit $ac_status); }; }; then
  16729. ac_cv_func_realloc_0_nonnull=yes
  16730. else
  16731. echo "$as_me: program exited with status $ac_status" >&5
  16732. echo "$as_me: failed program was:" >&5
  16733. sed 's/^/| /' conftest.$ac_ext >&5
  16734. ( exit $ac_status )
  16735. ac_cv_func_realloc_0_nonnull=no
  16736. fi
  16737. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16738. fi
  16739. fi
  16740. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16741. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16742. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16743. cat >>confdefs.h <<\_ACEOF
  16744. #define HAVE_REALLOC 1
  16745. _ACEOF
  16746. else
  16747. cat >>confdefs.h <<\_ACEOF
  16748. #define HAVE_REALLOC 0
  16749. _ACEOF
  16750. case " $LIBOBJS " in
  16751. *" realloc.$ac_objext "* ) ;;
  16752. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16753. ;;
  16754. esac
  16755. cat >>confdefs.h <<\_ACEOF
  16756. #define realloc rpl_realloc
  16757. _ACEOF
  16758. fi
  16759. ;;
  16760. esac
  16761. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16762. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16763. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16764. echo $ECHO_N "(cached) $ECHO_C" >&6
  16765. else
  16766. if test "$cross_compiling" = yes; then
  16767. ac_cv_func_memcmp_working=no
  16768. else
  16769. cat >conftest.$ac_ext <<_ACEOF
  16770. /* confdefs.h. */
  16771. _ACEOF
  16772. cat confdefs.h >>conftest.$ac_ext
  16773. cat >>conftest.$ac_ext <<_ACEOF
  16774. /* end confdefs.h. */
  16775. $ac_includes_default
  16776. int
  16777. main ()
  16778. {
  16779. /* Some versions of memcmp are not 8-bit clean. */
  16780. char c0 = '\100', c1 = '\200', c2 = '\201';
  16781. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16782. return 1;
  16783. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16784. or more and with at least one buffer not starting on a 4-byte boundary.
  16785. William Lewis provided this test program. */
  16786. {
  16787. char foo[21];
  16788. char bar[21];
  16789. int i;
  16790. for (i = 0; i < 4; i++)
  16791. {
  16792. char *a = foo + i;
  16793. char *b = bar + i;
  16794. strcpy (a, "--------01111111");
  16795. strcpy (b, "--------10000000");
  16796. if (memcmp (a, b, 16) >= 0)
  16797. return 1;
  16798. }
  16799. return 0;
  16800. }
  16801. ;
  16802. return 0;
  16803. }
  16804. _ACEOF
  16805. rm -f conftest$ac_exeext
  16806. if { (ac_try="$ac_link"
  16807. case "(($ac_try" in
  16808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16809. *) ac_try_echo=$ac_try;;
  16810. esac
  16811. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16812. (eval "$ac_link") 2>&5
  16813. ac_status=$?
  16814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16815. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16816. { (case "(($ac_try" in
  16817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16818. *) ac_try_echo=$ac_try;;
  16819. esac
  16820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16821. (eval "$ac_try") 2>&5
  16822. ac_status=$?
  16823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16824. (exit $ac_status); }; }; then
  16825. ac_cv_func_memcmp_working=yes
  16826. else
  16827. echo "$as_me: program exited with status $ac_status" >&5
  16828. echo "$as_me: failed program was:" >&5
  16829. sed 's/^/| /' conftest.$ac_ext >&5
  16830. ( exit $ac_status )
  16831. ac_cv_func_memcmp_working=no
  16832. fi
  16833. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16834. fi
  16835. fi
  16836. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16837. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16838. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16839. *" memcmp.$ac_objext "* ) ;;
  16840. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16841. ;;
  16842. esac
  16843. for ac_header in $ac_header_list
  16844. do
  16845. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16846. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16847. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16848. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16849. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16850. echo $ECHO_N "(cached) $ECHO_C" >&6
  16851. fi
  16852. ac_res=`eval echo '${'$as_ac_Header'}'`
  16853. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16854. echo "${ECHO_T}$ac_res" >&6; }
  16855. else
  16856. # Is the header compilable?
  16857. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16858. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16859. cat >conftest.$ac_ext <<_ACEOF
  16860. /* confdefs.h. */
  16861. _ACEOF
  16862. cat confdefs.h >>conftest.$ac_ext
  16863. cat >>conftest.$ac_ext <<_ACEOF
  16864. /* end confdefs.h. */
  16865. $ac_includes_default
  16866. #include <$ac_header>
  16867. _ACEOF
  16868. rm -f conftest.$ac_objext
  16869. if { (ac_try="$ac_compile"
  16870. case "(($ac_try" in
  16871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16872. *) ac_try_echo=$ac_try;;
  16873. esac
  16874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16875. (eval "$ac_compile") 2>conftest.er1
  16876. ac_status=$?
  16877. grep -v '^ *+' conftest.er1 >conftest.err
  16878. rm -f conftest.er1
  16879. cat conftest.err >&5
  16880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16881. (exit $ac_status); } && {
  16882. test -z "$ac_cxx_werror_flag" ||
  16883. test ! -s conftest.err
  16884. } && test -s conftest.$ac_objext; then
  16885. ac_header_compiler=yes
  16886. else
  16887. echo "$as_me: failed program was:" >&5
  16888. sed 's/^/| /' conftest.$ac_ext >&5
  16889. ac_header_compiler=no
  16890. fi
  16891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16892. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16893. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16894. # Is the header present?
  16895. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16896. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16897. cat >conftest.$ac_ext <<_ACEOF
  16898. /* confdefs.h. */
  16899. _ACEOF
  16900. cat confdefs.h >>conftest.$ac_ext
  16901. cat >>conftest.$ac_ext <<_ACEOF
  16902. /* end confdefs.h. */
  16903. #include <$ac_header>
  16904. _ACEOF
  16905. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16906. case "(($ac_try" in
  16907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16908. *) ac_try_echo=$ac_try;;
  16909. esac
  16910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16911. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16912. ac_status=$?
  16913. grep -v '^ *+' conftest.er1 >conftest.err
  16914. rm -f conftest.er1
  16915. cat conftest.err >&5
  16916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16917. (exit $ac_status); } >/dev/null && {
  16918. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16919. test ! -s conftest.err
  16920. }; then
  16921. ac_header_preproc=yes
  16922. else
  16923. echo "$as_me: failed program was:" >&5
  16924. sed 's/^/| /' conftest.$ac_ext >&5
  16925. ac_header_preproc=no
  16926. fi
  16927. rm -f conftest.err conftest.$ac_ext
  16928. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16929. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16930. # So? What about this header?
  16931. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16932. yes:no: )
  16933. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16934. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16935. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16936. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16937. ac_header_preproc=yes
  16938. ;;
  16939. no:yes:* )
  16940. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16941. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16942. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16943. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16944. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16945. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16946. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16947. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16948. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16949. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16950. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16951. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16952. ( cat <<\_ASBOX
  16953. ## ----------------------------------------------- ##
  16954. ## Report this to t-tujikawa@users.sourceforge.net ##
  16955. ## ----------------------------------------------- ##
  16956. _ASBOX
  16957. ) | sed "s/^/$as_me: WARNING: /" >&2
  16958. ;;
  16959. esac
  16960. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16961. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16962. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16963. echo $ECHO_N "(cached) $ECHO_C" >&6
  16964. else
  16965. eval "$as_ac_Header=\$ac_header_preproc"
  16966. fi
  16967. ac_res=`eval echo '${'$as_ac_Header'}'`
  16968. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16969. echo "${ECHO_T}$ac_res" >&6; }
  16970. fi
  16971. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16972. cat >>confdefs.h <<_ACEOF
  16973. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16974. _ACEOF
  16975. fi
  16976. done
  16977. for ac_func in $ac_func_list
  16978. do
  16979. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16980. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16981. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16982. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16983. echo $ECHO_N "(cached) $ECHO_C" >&6
  16984. else
  16985. cat >conftest.$ac_ext <<_ACEOF
  16986. /* confdefs.h. */
  16987. _ACEOF
  16988. cat confdefs.h >>conftest.$ac_ext
  16989. cat >>conftest.$ac_ext <<_ACEOF
  16990. /* end confdefs.h. */
  16991. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16992. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16993. #define $ac_func innocuous_$ac_func
  16994. /* System header to define __stub macros and hopefully few prototypes,
  16995. which can conflict with char $ac_func (); below.
  16996. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16997. <limits.h> exists even on freestanding compilers. */
  16998. #ifdef __STDC__
  16999. # include <limits.h>
  17000. #else
  17001. # include <assert.h>
  17002. #endif
  17003. #undef $ac_func
  17004. /* Override any GCC internal prototype to avoid an error.
  17005. Use char because int might match the return type of a GCC
  17006. builtin and then its argument prototype would still apply. */
  17007. #ifdef __cplusplus
  17008. extern "C"
  17009. #endif
  17010. char $ac_func ();
  17011. /* The GNU C library defines this for functions which it implements
  17012. to always fail with ENOSYS. Some functions are actually named
  17013. something starting with __ and the normal name is an alias. */
  17014. #if defined __stub_$ac_func || defined __stub___$ac_func
  17015. choke me
  17016. #endif
  17017. int
  17018. main ()
  17019. {
  17020. return $ac_func ();
  17021. ;
  17022. return 0;
  17023. }
  17024. _ACEOF
  17025. rm -f conftest.$ac_objext conftest$ac_exeext
  17026. if { (ac_try="$ac_link"
  17027. case "(($ac_try" in
  17028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17029. *) ac_try_echo=$ac_try;;
  17030. esac
  17031. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17032. (eval "$ac_link") 2>conftest.er1
  17033. ac_status=$?
  17034. grep -v '^ *+' conftest.er1 >conftest.err
  17035. rm -f conftest.er1
  17036. cat conftest.err >&5
  17037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17038. (exit $ac_status); } && {
  17039. test -z "$ac_cxx_werror_flag" ||
  17040. test ! -s conftest.err
  17041. } && test -s conftest$ac_exeext &&
  17042. $as_test_x conftest$ac_exeext; then
  17043. eval "$as_ac_var=yes"
  17044. else
  17045. echo "$as_me: failed program was:" >&5
  17046. sed 's/^/| /' conftest.$ac_ext >&5
  17047. eval "$as_ac_var=no"
  17048. fi
  17049. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17050. conftest$ac_exeext conftest.$ac_ext
  17051. fi
  17052. ac_res=`eval echo '${'$as_ac_var'}'`
  17053. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17054. echo "${ECHO_T}$ac_res" >&6; }
  17055. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17056. cat >>confdefs.h <<_ACEOF
  17057. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17058. _ACEOF
  17059. fi
  17060. done
  17061. { echo "$as_me:$LINENO: checking for working mktime" >&5
  17062. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  17063. if test "${ac_cv_func_working_mktime+set}" = set; then
  17064. echo $ECHO_N "(cached) $ECHO_C" >&6
  17065. else
  17066. if test "$cross_compiling" = yes; then
  17067. ac_cv_func_working_mktime=no
  17068. else
  17069. cat >conftest.$ac_ext <<_ACEOF
  17070. /* confdefs.h. */
  17071. _ACEOF
  17072. cat confdefs.h >>conftest.$ac_ext
  17073. cat >>conftest.$ac_ext <<_ACEOF
  17074. /* end confdefs.h. */
  17075. /* Test program from Paul Eggert and Tony Leneis. */
  17076. #ifdef TIME_WITH_SYS_TIME
  17077. # include <sys/time.h>
  17078. # include <time.h>
  17079. #else
  17080. # ifdef HAVE_SYS_TIME_H
  17081. # include <sys/time.h>
  17082. # else
  17083. # include <time.h>
  17084. # endif
  17085. #endif
  17086. #include <limits.h>
  17087. #include <stdlib.h>
  17088. #ifdef HAVE_UNISTD_H
  17089. # include <unistd.h>
  17090. #endif
  17091. #ifndef HAVE_ALARM
  17092. # define alarm(X) /* empty */
  17093. #endif
  17094. /* Work around redefinition to rpl_putenv by other config tests. */
  17095. #undef putenv
  17096. static time_t time_t_max;
  17097. static time_t time_t_min;
  17098. /* Values we'll use to set the TZ environment variable. */
  17099. static char *tz_strings[] = {
  17100. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17101. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17102. };
  17103. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17104. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17105. Based on a problem report from Andreas Jaeger. */
  17106. static int
  17107. spring_forward_gap ()
  17108. {
  17109. /* glibc (up to about 1998-10-07) failed this test. */
  17110. struct tm tm;
  17111. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17112. instead of "TZ=America/Vancouver" in order to detect the bug even
  17113. on systems that don't support the Olson extension, or don't have the
  17114. full zoneinfo tables installed. */
  17115. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17116. tm.tm_year = 98;
  17117. tm.tm_mon = 3;
  17118. tm.tm_mday = 5;
  17119. tm.tm_hour = 2;
  17120. tm.tm_min = 0;
  17121. tm.tm_sec = 0;
  17122. tm.tm_isdst = -1;
  17123. return mktime (&tm) != (time_t) -1;
  17124. }
  17125. static int
  17126. mktime_test1 (now)
  17127. time_t now;
  17128. {
  17129. struct tm *lt;
  17130. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17131. }
  17132. static int
  17133. mktime_test (now)
  17134. time_t now;
  17135. {
  17136. return (mktime_test1 (now)
  17137. && mktime_test1 ((time_t) (time_t_max - now))
  17138. && mktime_test1 ((time_t) (time_t_min + now)));
  17139. }
  17140. static int
  17141. irix_6_4_bug ()
  17142. {
  17143. /* Based on code from Ariel Faigon. */
  17144. struct tm tm;
  17145. tm.tm_year = 96;
  17146. tm.tm_mon = 3;
  17147. tm.tm_mday = 0;
  17148. tm.tm_hour = 0;
  17149. tm.tm_min = 0;
  17150. tm.tm_sec = 0;
  17151. tm.tm_isdst = -1;
  17152. mktime (&tm);
  17153. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17154. }
  17155. static int
  17156. bigtime_test (j)
  17157. int j;
  17158. {
  17159. struct tm tm;
  17160. time_t now;
  17161. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17162. now = mktime (&tm);
  17163. if (now != (time_t) -1)
  17164. {
  17165. struct tm *lt = localtime (&now);
  17166. if (! (lt
  17167. && lt->tm_year == tm.tm_year
  17168. && lt->tm_mon == tm.tm_mon
  17169. && lt->tm_mday == tm.tm_mday
  17170. && lt->tm_hour == tm.tm_hour
  17171. && lt->tm_min == tm.tm_min
  17172. && lt->tm_sec == tm.tm_sec
  17173. && lt->tm_yday == tm.tm_yday
  17174. && lt->tm_wday == tm.tm_wday
  17175. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17176. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17177. return 0;
  17178. }
  17179. return 1;
  17180. }
  17181. static int
  17182. year_2050_test ()
  17183. {
  17184. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17185. ignoring leap seconds. */
  17186. unsigned long int answer = 2527315200UL;
  17187. struct tm tm;
  17188. time_t t;
  17189. tm.tm_year = 2050 - 1900;
  17190. tm.tm_mon = 2 - 1;
  17191. tm.tm_mday = 1;
  17192. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17193. tm.tm_isdst = -1;
  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. t = mktime (&tm);
  17200. /* Check that the result is either a failure, or close enough
  17201. to the correct answer that we can assume the discrepancy is
  17202. due to leap seconds. */
  17203. return (t == (time_t) -1
  17204. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17205. }
  17206. int
  17207. main ()
  17208. {
  17209. time_t t, delta;
  17210. int i, j;
  17211. /* This test makes some buggy mktime implementations loop.
  17212. Give up after 60 seconds; a mktime slower than that
  17213. isn't worth using anyway. */
  17214. alarm (60);
  17215. for (;;)
  17216. {
  17217. t = (time_t_max << 1) + 1;
  17218. if (t <= time_t_max)
  17219. break;
  17220. time_t_max = t;
  17221. }
  17222. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17223. delta = time_t_max / 997; /* a suitable prime number */
  17224. for (i = 0; i < N_STRINGS; i++)
  17225. {
  17226. if (tz_strings[i])
  17227. putenv (tz_strings[i]);
  17228. for (t = 0; t <= time_t_max - delta; t += delta)
  17229. if (! mktime_test (t))
  17230. return 1;
  17231. if (! (mktime_test ((time_t) 1)
  17232. && mktime_test ((time_t) (60 * 60))
  17233. && mktime_test ((time_t) (60 * 60 * 24))))
  17234. return 1;
  17235. for (j = 1; ; j <<= 1)
  17236. if (! bigtime_test (j))
  17237. return 1;
  17238. else if (INT_MAX / 2 < j)
  17239. break;
  17240. if (! bigtime_test (INT_MAX))
  17241. return 1;
  17242. }
  17243. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17244. }
  17245. _ACEOF
  17246. rm -f conftest$ac_exeext
  17247. if { (ac_try="$ac_link"
  17248. case "(($ac_try" in
  17249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17250. *) ac_try_echo=$ac_try;;
  17251. esac
  17252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17253. (eval "$ac_link") 2>&5
  17254. ac_status=$?
  17255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17256. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17257. { (case "(($ac_try" in
  17258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17259. *) ac_try_echo=$ac_try;;
  17260. esac
  17261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17262. (eval "$ac_try") 2>&5
  17263. ac_status=$?
  17264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17265. (exit $ac_status); }; }; then
  17266. ac_cv_func_working_mktime=yes
  17267. else
  17268. echo "$as_me: program exited with status $ac_status" >&5
  17269. echo "$as_me: failed program was:" >&5
  17270. sed 's/^/| /' conftest.$ac_ext >&5
  17271. ( exit $ac_status )
  17272. ac_cv_func_working_mktime=no
  17273. fi
  17274. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17275. fi
  17276. fi
  17277. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17278. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17279. if test $ac_cv_func_working_mktime = no; then
  17280. case " $LIBOBJS " in
  17281. *" mktime.$ac_objext "* ) ;;
  17282. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17283. ;;
  17284. esac
  17285. fi
  17286. for ac_header in stdlib.h unistd.h
  17287. do
  17288. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17289. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17290. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17291. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17292. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17293. echo $ECHO_N "(cached) $ECHO_C" >&6
  17294. fi
  17295. ac_res=`eval echo '${'$as_ac_Header'}'`
  17296. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17297. echo "${ECHO_T}$ac_res" >&6; }
  17298. else
  17299. # Is the header compilable?
  17300. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17301. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17302. cat >conftest.$ac_ext <<_ACEOF
  17303. /* confdefs.h. */
  17304. _ACEOF
  17305. cat confdefs.h >>conftest.$ac_ext
  17306. cat >>conftest.$ac_ext <<_ACEOF
  17307. /* end confdefs.h. */
  17308. $ac_includes_default
  17309. #include <$ac_header>
  17310. _ACEOF
  17311. rm -f conftest.$ac_objext
  17312. if { (ac_try="$ac_compile"
  17313. case "(($ac_try" in
  17314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17315. *) ac_try_echo=$ac_try;;
  17316. esac
  17317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17318. (eval "$ac_compile") 2>conftest.er1
  17319. ac_status=$?
  17320. grep -v '^ *+' conftest.er1 >conftest.err
  17321. rm -f conftest.er1
  17322. cat conftest.err >&5
  17323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17324. (exit $ac_status); } && {
  17325. test -z "$ac_cxx_werror_flag" ||
  17326. test ! -s conftest.err
  17327. } && test -s conftest.$ac_objext; then
  17328. ac_header_compiler=yes
  17329. else
  17330. echo "$as_me: failed program was:" >&5
  17331. sed 's/^/| /' conftest.$ac_ext >&5
  17332. ac_header_compiler=no
  17333. fi
  17334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17335. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17336. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17337. # Is the header present?
  17338. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17339. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17340. cat >conftest.$ac_ext <<_ACEOF
  17341. /* confdefs.h. */
  17342. _ACEOF
  17343. cat confdefs.h >>conftest.$ac_ext
  17344. cat >>conftest.$ac_ext <<_ACEOF
  17345. /* end confdefs.h. */
  17346. #include <$ac_header>
  17347. _ACEOF
  17348. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17349. case "(($ac_try" in
  17350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17351. *) ac_try_echo=$ac_try;;
  17352. esac
  17353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17354. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17355. ac_status=$?
  17356. grep -v '^ *+' conftest.er1 >conftest.err
  17357. rm -f conftest.er1
  17358. cat conftest.err >&5
  17359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17360. (exit $ac_status); } >/dev/null && {
  17361. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17362. test ! -s conftest.err
  17363. }; then
  17364. ac_header_preproc=yes
  17365. else
  17366. echo "$as_me: failed program was:" >&5
  17367. sed 's/^/| /' conftest.$ac_ext >&5
  17368. ac_header_preproc=no
  17369. fi
  17370. rm -f conftest.err conftest.$ac_ext
  17371. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17372. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17373. # So? What about this header?
  17374. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17375. yes:no: )
  17376. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17377. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17378. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17379. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17380. ac_header_preproc=yes
  17381. ;;
  17382. no:yes:* )
  17383. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17384. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17385. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17386. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17387. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17388. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17389. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17390. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17391. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17392. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17393. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17394. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17395. ( cat <<\_ASBOX
  17396. ## ----------------------------------------------- ##
  17397. ## Report this to t-tujikawa@users.sourceforge.net ##
  17398. ## ----------------------------------------------- ##
  17399. _ASBOX
  17400. ) | sed "s/^/$as_me: WARNING: /" >&2
  17401. ;;
  17402. esac
  17403. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17404. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17405. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17406. echo $ECHO_N "(cached) $ECHO_C" >&6
  17407. else
  17408. eval "$as_ac_Header=\$ac_header_preproc"
  17409. fi
  17410. ac_res=`eval echo '${'$as_ac_Header'}'`
  17411. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17412. echo "${ECHO_T}$ac_res" >&6; }
  17413. fi
  17414. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17415. cat >>confdefs.h <<_ACEOF
  17416. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17417. _ACEOF
  17418. fi
  17419. done
  17420. for ac_func in getpagesize
  17421. do
  17422. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17423. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17424. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17425. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17426. echo $ECHO_N "(cached) $ECHO_C" >&6
  17427. else
  17428. cat >conftest.$ac_ext <<_ACEOF
  17429. /* confdefs.h. */
  17430. _ACEOF
  17431. cat confdefs.h >>conftest.$ac_ext
  17432. cat >>conftest.$ac_ext <<_ACEOF
  17433. /* end confdefs.h. */
  17434. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17435. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17436. #define $ac_func innocuous_$ac_func
  17437. /* System header to define __stub macros and hopefully few prototypes,
  17438. which can conflict with char $ac_func (); below.
  17439. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17440. <limits.h> exists even on freestanding compilers. */
  17441. #ifdef __STDC__
  17442. # include <limits.h>
  17443. #else
  17444. # include <assert.h>
  17445. #endif
  17446. #undef $ac_func
  17447. /* Override any GCC internal prototype to avoid an error.
  17448. Use char because int might match the return type of a GCC
  17449. builtin and then its argument prototype would still apply. */
  17450. #ifdef __cplusplus
  17451. extern "C"
  17452. #endif
  17453. char $ac_func ();
  17454. /* The GNU C library defines this for functions which it implements
  17455. to always fail with ENOSYS. Some functions are actually named
  17456. something starting with __ and the normal name is an alias. */
  17457. #if defined __stub_$ac_func || defined __stub___$ac_func
  17458. choke me
  17459. #endif
  17460. int
  17461. main ()
  17462. {
  17463. return $ac_func ();
  17464. ;
  17465. return 0;
  17466. }
  17467. _ACEOF
  17468. rm -f conftest.$ac_objext conftest$ac_exeext
  17469. if { (ac_try="$ac_link"
  17470. case "(($ac_try" in
  17471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17472. *) ac_try_echo=$ac_try;;
  17473. esac
  17474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17475. (eval "$ac_link") 2>conftest.er1
  17476. ac_status=$?
  17477. grep -v '^ *+' conftest.er1 >conftest.err
  17478. rm -f conftest.er1
  17479. cat conftest.err >&5
  17480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17481. (exit $ac_status); } && {
  17482. test -z "$ac_cxx_werror_flag" ||
  17483. test ! -s conftest.err
  17484. } && test -s conftest$ac_exeext &&
  17485. $as_test_x conftest$ac_exeext; then
  17486. eval "$as_ac_var=yes"
  17487. else
  17488. echo "$as_me: failed program was:" >&5
  17489. sed 's/^/| /' conftest.$ac_ext >&5
  17490. eval "$as_ac_var=no"
  17491. fi
  17492. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17493. conftest$ac_exeext conftest.$ac_ext
  17494. fi
  17495. ac_res=`eval echo '${'$as_ac_var'}'`
  17496. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17497. echo "${ECHO_T}$ac_res" >&6; }
  17498. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17499. cat >>confdefs.h <<_ACEOF
  17500. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17501. _ACEOF
  17502. fi
  17503. done
  17504. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17505. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17506. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17507. echo $ECHO_N "(cached) $ECHO_C" >&6
  17508. else
  17509. if test "$cross_compiling" = yes; then
  17510. ac_cv_func_mmap_fixed_mapped=no
  17511. else
  17512. cat >conftest.$ac_ext <<_ACEOF
  17513. /* confdefs.h. */
  17514. _ACEOF
  17515. cat confdefs.h >>conftest.$ac_ext
  17516. cat >>conftest.$ac_ext <<_ACEOF
  17517. /* end confdefs.h. */
  17518. $ac_includes_default
  17519. /* malloc might have been renamed as rpl_malloc. */
  17520. #undef malloc
  17521. /* Thanks to Mike Haertel and Jim Avera for this test.
  17522. Here is a matrix of mmap possibilities:
  17523. mmap private not fixed
  17524. mmap private fixed at somewhere currently unmapped
  17525. mmap private fixed at somewhere already mapped
  17526. mmap shared not fixed
  17527. mmap shared fixed at somewhere currently unmapped
  17528. mmap shared fixed at somewhere already mapped
  17529. For private mappings, we should verify that changes cannot be read()
  17530. back from the file, nor mmap's back from the file at a different
  17531. address. (There have been systems where private was not correctly
  17532. implemented like the infamous i386 svr4.0, and systems where the
  17533. VM page cache was not coherent with the file system buffer cache
  17534. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17535. For shared mappings, we should conversely verify that changes get
  17536. propagated back to all the places they're supposed to be.
  17537. Grep wants private fixed already mapped.
  17538. The main things grep needs to know about mmap are:
  17539. * does it exist and is it safe to write into the mmap'd area
  17540. * how to use it (BSD variants) */
  17541. #include <fcntl.h>
  17542. #include <sys/mman.h>
  17543. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17544. char *malloc ();
  17545. #endif
  17546. /* This mess was copied from the GNU getpagesize.h. */
  17547. #ifndef HAVE_GETPAGESIZE
  17548. /* Assume that all systems that can run configure have sys/param.h. */
  17549. # ifndef HAVE_SYS_PARAM_H
  17550. # define HAVE_SYS_PARAM_H 1
  17551. # endif
  17552. # ifdef _SC_PAGESIZE
  17553. # define getpagesize() sysconf(_SC_PAGESIZE)
  17554. # else /* no _SC_PAGESIZE */
  17555. # ifdef HAVE_SYS_PARAM_H
  17556. # include <sys/param.h>
  17557. # ifdef EXEC_PAGESIZE
  17558. # define getpagesize() EXEC_PAGESIZE
  17559. # else /* no EXEC_PAGESIZE */
  17560. # ifdef NBPG
  17561. # define getpagesize() NBPG * CLSIZE
  17562. # ifndef CLSIZE
  17563. # define CLSIZE 1
  17564. # endif /* no CLSIZE */
  17565. # else /* no NBPG */
  17566. # ifdef NBPC
  17567. # define getpagesize() NBPC
  17568. # else /* no NBPC */
  17569. # ifdef PAGESIZE
  17570. # define getpagesize() PAGESIZE
  17571. # endif /* PAGESIZE */
  17572. # endif /* no NBPC */
  17573. # endif /* no NBPG */
  17574. # endif /* no EXEC_PAGESIZE */
  17575. # else /* no HAVE_SYS_PARAM_H */
  17576. # define getpagesize() 8192 /* punt totally */
  17577. # endif /* no HAVE_SYS_PARAM_H */
  17578. # endif /* no _SC_PAGESIZE */
  17579. #endif /* no HAVE_GETPAGESIZE */
  17580. int
  17581. main ()
  17582. {
  17583. char *data, *data2, *data3;
  17584. int i, pagesize;
  17585. int fd;
  17586. pagesize = getpagesize ();
  17587. /* First, make a file with some known garbage in it. */
  17588. data = (char *) malloc (pagesize);
  17589. if (!data)
  17590. return 1;
  17591. for (i = 0; i < pagesize; ++i)
  17592. *(data + i) = rand ();
  17593. umask (0);
  17594. fd = creat ("conftest.mmap", 0600);
  17595. if (fd < 0)
  17596. return 1;
  17597. if (write (fd, data, pagesize) != pagesize)
  17598. return 1;
  17599. close (fd);
  17600. /* Next, try to mmap the file at a fixed address which already has
  17601. something else allocated at it. If we can, also make sure that
  17602. we see the same garbage. */
  17603. fd = open ("conftest.mmap", O_RDWR);
  17604. if (fd < 0)
  17605. return 1;
  17606. data2 = (char *) malloc (2 * pagesize);
  17607. if (!data2)
  17608. return 1;
  17609. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17610. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17611. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17612. return 1;
  17613. for (i = 0; i < pagesize; ++i)
  17614. if (*(data + i) != *(data2 + i))
  17615. return 1;
  17616. /* Finally, make sure that changes to the mapped area do not
  17617. percolate back to the file as seen by read(). (This is a bug on
  17618. some variants of i386 svr4.0.) */
  17619. for (i = 0; i < pagesize; ++i)
  17620. *(data2 + i) = *(data2 + i) + 1;
  17621. data3 = (char *) malloc (pagesize);
  17622. if (!data3)
  17623. return 1;
  17624. if (read (fd, data3, pagesize) != pagesize)
  17625. return 1;
  17626. for (i = 0; i < pagesize; ++i)
  17627. if (*(data + i) != *(data3 + i))
  17628. return 1;
  17629. close (fd);
  17630. return 0;
  17631. }
  17632. _ACEOF
  17633. rm -f conftest$ac_exeext
  17634. if { (ac_try="$ac_link"
  17635. case "(($ac_try" in
  17636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17637. *) ac_try_echo=$ac_try;;
  17638. esac
  17639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17640. (eval "$ac_link") 2>&5
  17641. ac_status=$?
  17642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17643. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17644. { (case "(($ac_try" in
  17645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17646. *) ac_try_echo=$ac_try;;
  17647. esac
  17648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17649. (eval "$ac_try") 2>&5
  17650. ac_status=$?
  17651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17652. (exit $ac_status); }; }; then
  17653. ac_cv_func_mmap_fixed_mapped=yes
  17654. else
  17655. echo "$as_me: program exited with status $ac_status" >&5
  17656. echo "$as_me: failed program was:" >&5
  17657. sed 's/^/| /' conftest.$ac_ext >&5
  17658. ( exit $ac_status )
  17659. ac_cv_func_mmap_fixed_mapped=no
  17660. fi
  17661. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17662. fi
  17663. fi
  17664. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17665. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17666. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17667. cat >>confdefs.h <<\_ACEOF
  17668. #define HAVE_MMAP 1
  17669. _ACEOF
  17670. fi
  17671. rm -f conftest.mmap
  17672. for ac_header in sys/select.h sys/socket.h
  17673. do
  17674. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17675. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17676. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17677. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17678. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17679. echo $ECHO_N "(cached) $ECHO_C" >&6
  17680. fi
  17681. ac_res=`eval echo '${'$as_ac_Header'}'`
  17682. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17683. echo "${ECHO_T}$ac_res" >&6; }
  17684. else
  17685. # Is the header compilable?
  17686. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17687. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17688. cat >conftest.$ac_ext <<_ACEOF
  17689. /* confdefs.h. */
  17690. _ACEOF
  17691. cat confdefs.h >>conftest.$ac_ext
  17692. cat >>conftest.$ac_ext <<_ACEOF
  17693. /* end confdefs.h. */
  17694. $ac_includes_default
  17695. #include <$ac_header>
  17696. _ACEOF
  17697. rm -f conftest.$ac_objext
  17698. if { (ac_try="$ac_compile"
  17699. case "(($ac_try" in
  17700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17701. *) ac_try_echo=$ac_try;;
  17702. esac
  17703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17704. (eval "$ac_compile") 2>conftest.er1
  17705. ac_status=$?
  17706. grep -v '^ *+' conftest.er1 >conftest.err
  17707. rm -f conftest.er1
  17708. cat conftest.err >&5
  17709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17710. (exit $ac_status); } && {
  17711. test -z "$ac_cxx_werror_flag" ||
  17712. test ! -s conftest.err
  17713. } && test -s conftest.$ac_objext; then
  17714. ac_header_compiler=yes
  17715. else
  17716. echo "$as_me: failed program was:" >&5
  17717. sed 's/^/| /' conftest.$ac_ext >&5
  17718. ac_header_compiler=no
  17719. fi
  17720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17721. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17722. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17723. # Is the header present?
  17724. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17725. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17726. cat >conftest.$ac_ext <<_ACEOF
  17727. /* confdefs.h. */
  17728. _ACEOF
  17729. cat confdefs.h >>conftest.$ac_ext
  17730. cat >>conftest.$ac_ext <<_ACEOF
  17731. /* end confdefs.h. */
  17732. #include <$ac_header>
  17733. _ACEOF
  17734. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17735. case "(($ac_try" in
  17736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17737. *) ac_try_echo=$ac_try;;
  17738. esac
  17739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17740. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17741. ac_status=$?
  17742. grep -v '^ *+' conftest.er1 >conftest.err
  17743. rm -f conftest.er1
  17744. cat conftest.err >&5
  17745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17746. (exit $ac_status); } >/dev/null && {
  17747. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17748. test ! -s conftest.err
  17749. }; then
  17750. ac_header_preproc=yes
  17751. else
  17752. echo "$as_me: failed program was:" >&5
  17753. sed 's/^/| /' conftest.$ac_ext >&5
  17754. ac_header_preproc=no
  17755. fi
  17756. rm -f conftest.err conftest.$ac_ext
  17757. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17758. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17759. # So? What about this header?
  17760. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17761. yes:no: )
  17762. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17763. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17764. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17765. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17766. ac_header_preproc=yes
  17767. ;;
  17768. no:yes:* )
  17769. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17770. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17771. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17772. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17773. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17774. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17775. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17776. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17777. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17778. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17779. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17780. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17781. ( cat <<\_ASBOX
  17782. ## ----------------------------------------------- ##
  17783. ## Report this to t-tujikawa@users.sourceforge.net ##
  17784. ## ----------------------------------------------- ##
  17785. _ASBOX
  17786. ) | sed "s/^/$as_me: WARNING: /" >&2
  17787. ;;
  17788. esac
  17789. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17790. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17791. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17792. echo $ECHO_N "(cached) $ECHO_C" >&6
  17793. else
  17794. eval "$as_ac_Header=\$ac_header_preproc"
  17795. fi
  17796. ac_res=`eval echo '${'$as_ac_Header'}'`
  17797. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17798. echo "${ECHO_T}$ac_res" >&6; }
  17799. fi
  17800. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17801. cat >>confdefs.h <<_ACEOF
  17802. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17803. _ACEOF
  17804. fi
  17805. done
  17806. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17807. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17808. if test "${ac_cv_func_select_args+set}" = set; then
  17809. echo $ECHO_N "(cached) $ECHO_C" >&6
  17810. else
  17811. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17812. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17813. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17814. cat >conftest.$ac_ext <<_ACEOF
  17815. /* confdefs.h. */
  17816. _ACEOF
  17817. cat confdefs.h >>conftest.$ac_ext
  17818. cat >>conftest.$ac_ext <<_ACEOF
  17819. /* end confdefs.h. */
  17820. $ac_includes_default
  17821. #ifdef HAVE_SYS_SELECT_H
  17822. # include <sys/select.h>
  17823. #endif
  17824. #ifdef HAVE_SYS_SOCKET_H
  17825. # include <sys/socket.h>
  17826. #endif
  17827. int
  17828. main ()
  17829. {
  17830. extern int select ($ac_arg1,
  17831. $ac_arg234, $ac_arg234, $ac_arg234,
  17832. $ac_arg5);
  17833. ;
  17834. return 0;
  17835. }
  17836. _ACEOF
  17837. rm -f conftest.$ac_objext
  17838. if { (ac_try="$ac_compile"
  17839. case "(($ac_try" in
  17840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17841. *) ac_try_echo=$ac_try;;
  17842. esac
  17843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17844. (eval "$ac_compile") 2>conftest.er1
  17845. ac_status=$?
  17846. grep -v '^ *+' conftest.er1 >conftest.err
  17847. rm -f conftest.er1
  17848. cat conftest.err >&5
  17849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17850. (exit $ac_status); } && {
  17851. test -z "$ac_cxx_werror_flag" ||
  17852. test ! -s conftest.err
  17853. } && test -s conftest.$ac_objext; then
  17854. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17855. else
  17856. echo "$as_me: failed program was:" >&5
  17857. sed 's/^/| /' conftest.$ac_ext >&5
  17858. fi
  17859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17860. done
  17861. done
  17862. done
  17863. # Provide a safe default value.
  17864. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17865. fi
  17866. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17867. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17868. ac_save_IFS=$IFS; IFS=','
  17869. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17870. IFS=$ac_save_IFS
  17871. shift
  17872. cat >>confdefs.h <<_ACEOF
  17873. #define SELECT_TYPE_ARG1 $1
  17874. _ACEOF
  17875. cat >>confdefs.h <<_ACEOF
  17876. #define SELECT_TYPE_ARG234 ($2)
  17877. _ACEOF
  17878. cat >>confdefs.h <<_ACEOF
  17879. #define SELECT_TYPE_ARG5 ($3)
  17880. _ACEOF
  17881. rm -f conftest*
  17882. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17883. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17884. if test "${ac_cv_type_signal+set}" = set; then
  17885. echo $ECHO_N "(cached) $ECHO_C" >&6
  17886. else
  17887. cat >conftest.$ac_ext <<_ACEOF
  17888. /* confdefs.h. */
  17889. _ACEOF
  17890. cat confdefs.h >>conftest.$ac_ext
  17891. cat >>conftest.$ac_ext <<_ACEOF
  17892. /* end confdefs.h. */
  17893. #include <sys/types.h>
  17894. #include <signal.h>
  17895. int
  17896. main ()
  17897. {
  17898. return *(signal (0, 0)) (0) == 1;
  17899. ;
  17900. return 0;
  17901. }
  17902. _ACEOF
  17903. rm -f conftest.$ac_objext
  17904. if { (ac_try="$ac_compile"
  17905. case "(($ac_try" in
  17906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17907. *) ac_try_echo=$ac_try;;
  17908. esac
  17909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17910. (eval "$ac_compile") 2>conftest.er1
  17911. ac_status=$?
  17912. grep -v '^ *+' conftest.er1 >conftest.err
  17913. rm -f conftest.er1
  17914. cat conftest.err >&5
  17915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17916. (exit $ac_status); } && {
  17917. test -z "$ac_cxx_werror_flag" ||
  17918. test ! -s conftest.err
  17919. } && test -s conftest.$ac_objext; then
  17920. ac_cv_type_signal=int
  17921. else
  17922. echo "$as_me: failed program was:" >&5
  17923. sed 's/^/| /' conftest.$ac_ext >&5
  17924. ac_cv_type_signal=void
  17925. fi
  17926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17927. fi
  17928. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17929. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17930. cat >>confdefs.h <<_ACEOF
  17931. #define RETSIGTYPE $ac_cv_type_signal
  17932. _ACEOF
  17933. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17934. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17935. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17936. echo $ECHO_N "(cached) $ECHO_C" >&6
  17937. else
  17938. rm -f conftest.sym conftest.file
  17939. echo >conftest.file
  17940. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17941. if test "$cross_compiling" = yes; then
  17942. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17943. else
  17944. cat >conftest.$ac_ext <<_ACEOF
  17945. /* confdefs.h. */
  17946. _ACEOF
  17947. cat confdefs.h >>conftest.$ac_ext
  17948. cat >>conftest.$ac_ext <<_ACEOF
  17949. /* end confdefs.h. */
  17950. $ac_includes_default
  17951. int
  17952. main ()
  17953. {
  17954. struct stat sbuf;
  17955. /* Linux will dereference the symlink and fail.
  17956. That is better in the sense that it means we will not
  17957. have to compile and use the lstat wrapper. */
  17958. return lstat ("conftest.sym/", &sbuf) == 0;
  17959. ;
  17960. return 0;
  17961. }
  17962. _ACEOF
  17963. rm -f conftest$ac_exeext
  17964. if { (ac_try="$ac_link"
  17965. case "(($ac_try" in
  17966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17967. *) ac_try_echo=$ac_try;;
  17968. esac
  17969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17970. (eval "$ac_link") 2>&5
  17971. ac_status=$?
  17972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17973. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17974. { (case "(($ac_try" in
  17975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17976. *) ac_try_echo=$ac_try;;
  17977. esac
  17978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17979. (eval "$ac_try") 2>&5
  17980. ac_status=$?
  17981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17982. (exit $ac_status); }; }; then
  17983. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17984. else
  17985. echo "$as_me: program exited with status $ac_status" >&5
  17986. echo "$as_me: failed program was:" >&5
  17987. sed 's/^/| /' conftest.$ac_ext >&5
  17988. ( exit $ac_status )
  17989. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17990. fi
  17991. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17992. fi
  17993. else
  17994. # If the `ln -s' command failed, then we probably don't even
  17995. # have an lstat function.
  17996. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17997. fi
  17998. rm -f conftest.sym conftest.file
  17999. fi
  18000. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18001. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18002. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18003. cat >>confdefs.h <<_ACEOF
  18004. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18005. _ACEOF
  18006. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18007. case " $LIBOBJS " in
  18008. *" lstat.$ac_objext "* ) ;;
  18009. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18010. ;;
  18011. esac
  18012. fi
  18013. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18014. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  18015. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18016. echo $ECHO_N "(cached) $ECHO_C" >&6
  18017. else
  18018. if test "$cross_compiling" = yes; then
  18019. ac_cv_func_stat_empty_string_bug=yes
  18020. else
  18021. cat >conftest.$ac_ext <<_ACEOF
  18022. /* confdefs.h. */
  18023. _ACEOF
  18024. cat confdefs.h >>conftest.$ac_ext
  18025. cat >>conftest.$ac_ext <<_ACEOF
  18026. /* end confdefs.h. */
  18027. $ac_includes_default
  18028. int
  18029. main ()
  18030. {
  18031. struct stat sbuf;
  18032. return stat ("", &sbuf) == 0;
  18033. ;
  18034. return 0;
  18035. }
  18036. _ACEOF
  18037. rm -f conftest$ac_exeext
  18038. if { (ac_try="$ac_link"
  18039. case "(($ac_try" in
  18040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18041. *) ac_try_echo=$ac_try;;
  18042. esac
  18043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18044. (eval "$ac_link") 2>&5
  18045. ac_status=$?
  18046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18047. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  18054. ac_status=$?
  18055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18056. (exit $ac_status); }; }; then
  18057. ac_cv_func_stat_empty_string_bug=no
  18058. else
  18059. echo "$as_me: program exited with status $ac_status" >&5
  18060. echo "$as_me: failed program was:" >&5
  18061. sed 's/^/| /' conftest.$ac_ext >&5
  18062. ( exit $ac_status )
  18063. ac_cv_func_stat_empty_string_bug=yes
  18064. fi
  18065. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18066. fi
  18067. fi
  18068. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18069. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  18070. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18071. case " $LIBOBJS " in
  18072. *" stat.$ac_objext "* ) ;;
  18073. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18074. ;;
  18075. esac
  18076. cat >>confdefs.h <<_ACEOF
  18077. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18078. _ACEOF
  18079. fi
  18080. for ac_func in strftime
  18081. do
  18082. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18083. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18084. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18085. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18086. echo $ECHO_N "(cached) $ECHO_C" >&6
  18087. else
  18088. cat >conftest.$ac_ext <<_ACEOF
  18089. /* confdefs.h. */
  18090. _ACEOF
  18091. cat confdefs.h >>conftest.$ac_ext
  18092. cat >>conftest.$ac_ext <<_ACEOF
  18093. /* end confdefs.h. */
  18094. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18095. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18096. #define $ac_func innocuous_$ac_func
  18097. /* System header to define __stub macros and hopefully few prototypes,
  18098. which can conflict with char $ac_func (); below.
  18099. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18100. <limits.h> exists even on freestanding compilers. */
  18101. #ifdef __STDC__
  18102. # include <limits.h>
  18103. #else
  18104. # include <assert.h>
  18105. #endif
  18106. #undef $ac_func
  18107. /* Override any GCC internal prototype to avoid an error.
  18108. Use char because int might match the return type of a GCC
  18109. builtin and then its argument prototype would still apply. */
  18110. #ifdef __cplusplus
  18111. extern "C"
  18112. #endif
  18113. char $ac_func ();
  18114. /* The GNU C library defines this for functions which it implements
  18115. to always fail with ENOSYS. Some functions are actually named
  18116. something starting with __ and the normal name is an alias. */
  18117. #if defined __stub_$ac_func || defined __stub___$ac_func
  18118. choke me
  18119. #endif
  18120. int
  18121. main ()
  18122. {
  18123. return $ac_func ();
  18124. ;
  18125. return 0;
  18126. }
  18127. _ACEOF
  18128. rm -f conftest.$ac_objext conftest$ac_exeext
  18129. if { (ac_try="$ac_link"
  18130. case "(($ac_try" in
  18131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18132. *) ac_try_echo=$ac_try;;
  18133. esac
  18134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18135. (eval "$ac_link") 2>conftest.er1
  18136. ac_status=$?
  18137. grep -v '^ *+' conftest.er1 >conftest.err
  18138. rm -f conftest.er1
  18139. cat conftest.err >&5
  18140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18141. (exit $ac_status); } && {
  18142. test -z "$ac_cxx_werror_flag" ||
  18143. test ! -s conftest.err
  18144. } && test -s conftest$ac_exeext &&
  18145. $as_test_x conftest$ac_exeext; then
  18146. eval "$as_ac_var=yes"
  18147. else
  18148. echo "$as_me: failed program was:" >&5
  18149. sed 's/^/| /' conftest.$ac_ext >&5
  18150. eval "$as_ac_var=no"
  18151. fi
  18152. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18153. conftest$ac_exeext conftest.$ac_ext
  18154. fi
  18155. ac_res=`eval echo '${'$as_ac_var'}'`
  18156. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18157. echo "${ECHO_T}$ac_res" >&6; }
  18158. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18159. cat >>confdefs.h <<_ACEOF
  18160. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18161. _ACEOF
  18162. else
  18163. # strftime is in -lintl on SCO UNIX.
  18164. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18165. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18166. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18167. echo $ECHO_N "(cached) $ECHO_C" >&6
  18168. else
  18169. ac_check_lib_save_LIBS=$LIBS
  18170. LIBS="-lintl $LIBS"
  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. /* Override any GCC internal prototype to avoid an error.
  18178. Use char because int might match the return type of a GCC
  18179. builtin and then its argument prototype would still apply. */
  18180. #ifdef __cplusplus
  18181. extern "C"
  18182. #endif
  18183. char strftime ();
  18184. int
  18185. main ()
  18186. {
  18187. return strftime ();
  18188. ;
  18189. return 0;
  18190. }
  18191. _ACEOF
  18192. rm -f conftest.$ac_objext conftest$ac_exeext
  18193. if { (ac_try="$ac_link"
  18194. case "(($ac_try" in
  18195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18196. *) ac_try_echo=$ac_try;;
  18197. esac
  18198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18199. (eval "$ac_link") 2>conftest.er1
  18200. ac_status=$?
  18201. grep -v '^ *+' conftest.er1 >conftest.err
  18202. rm -f conftest.er1
  18203. cat conftest.err >&5
  18204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18205. (exit $ac_status); } && {
  18206. test -z "$ac_cxx_werror_flag" ||
  18207. test ! -s conftest.err
  18208. } && test -s conftest$ac_exeext &&
  18209. $as_test_x conftest$ac_exeext; then
  18210. ac_cv_lib_intl_strftime=yes
  18211. else
  18212. echo "$as_me: failed program was:" >&5
  18213. sed 's/^/| /' conftest.$ac_ext >&5
  18214. ac_cv_lib_intl_strftime=no
  18215. fi
  18216. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18217. conftest$ac_exeext conftest.$ac_ext
  18218. LIBS=$ac_check_lib_save_LIBS
  18219. fi
  18220. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18221. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  18222. if test $ac_cv_lib_intl_strftime = yes; then
  18223. cat >>confdefs.h <<\_ACEOF
  18224. #define HAVE_STRFTIME 1
  18225. _ACEOF
  18226. LIBS="-lintl $LIBS"
  18227. fi
  18228. fi
  18229. done
  18230. for ac_func in vprintf
  18231. do
  18232. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18233. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18234. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18235. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18236. echo $ECHO_N "(cached) $ECHO_C" >&6
  18237. else
  18238. cat >conftest.$ac_ext <<_ACEOF
  18239. /* confdefs.h. */
  18240. _ACEOF
  18241. cat confdefs.h >>conftest.$ac_ext
  18242. cat >>conftest.$ac_ext <<_ACEOF
  18243. /* end confdefs.h. */
  18244. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18245. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18246. #define $ac_func innocuous_$ac_func
  18247. /* System header to define __stub macros and hopefully few prototypes,
  18248. which can conflict with char $ac_func (); below.
  18249. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18250. <limits.h> exists even on freestanding compilers. */
  18251. #ifdef __STDC__
  18252. # include <limits.h>
  18253. #else
  18254. # include <assert.h>
  18255. #endif
  18256. #undef $ac_func
  18257. /* Override any GCC internal prototype to avoid an error.
  18258. Use char because int might match the return type of a GCC
  18259. builtin and then its argument prototype would still apply. */
  18260. #ifdef __cplusplus
  18261. extern "C"
  18262. #endif
  18263. char $ac_func ();
  18264. /* The GNU C library defines this for functions which it implements
  18265. to always fail with ENOSYS. Some functions are actually named
  18266. something starting with __ and the normal name is an alias. */
  18267. #if defined __stub_$ac_func || defined __stub___$ac_func
  18268. choke me
  18269. #endif
  18270. int
  18271. main ()
  18272. {
  18273. return $ac_func ();
  18274. ;
  18275. return 0;
  18276. }
  18277. _ACEOF
  18278. rm -f conftest.$ac_objext conftest$ac_exeext
  18279. if { (ac_try="$ac_link"
  18280. case "(($ac_try" in
  18281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18282. *) ac_try_echo=$ac_try;;
  18283. esac
  18284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18285. (eval "$ac_link") 2>conftest.er1
  18286. ac_status=$?
  18287. grep -v '^ *+' conftest.er1 >conftest.err
  18288. rm -f conftest.er1
  18289. cat conftest.err >&5
  18290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18291. (exit $ac_status); } && {
  18292. test -z "$ac_cxx_werror_flag" ||
  18293. test ! -s conftest.err
  18294. } && test -s conftest$ac_exeext &&
  18295. $as_test_x conftest$ac_exeext; then
  18296. eval "$as_ac_var=yes"
  18297. else
  18298. echo "$as_me: failed program was:" >&5
  18299. sed 's/^/| /' conftest.$ac_ext >&5
  18300. eval "$as_ac_var=no"
  18301. fi
  18302. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18303. conftest$ac_exeext conftest.$ac_ext
  18304. fi
  18305. ac_res=`eval echo '${'$as_ac_var'}'`
  18306. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18307. echo "${ECHO_T}$ac_res" >&6; }
  18308. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18309. cat >>confdefs.h <<_ACEOF
  18310. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18311. _ACEOF
  18312. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18313. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18314. if test "${ac_cv_func__doprnt+set}" = set; then
  18315. echo $ECHO_N "(cached) $ECHO_C" >&6
  18316. else
  18317. cat >conftest.$ac_ext <<_ACEOF
  18318. /* confdefs.h. */
  18319. _ACEOF
  18320. cat confdefs.h >>conftest.$ac_ext
  18321. cat >>conftest.$ac_ext <<_ACEOF
  18322. /* end confdefs.h. */
  18323. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18324. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18325. #define _doprnt innocuous__doprnt
  18326. /* System header to define __stub macros and hopefully few prototypes,
  18327. which can conflict with char _doprnt (); below.
  18328. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18329. <limits.h> exists even on freestanding compilers. */
  18330. #ifdef __STDC__
  18331. # include <limits.h>
  18332. #else
  18333. # include <assert.h>
  18334. #endif
  18335. #undef _doprnt
  18336. /* Override any GCC internal prototype to avoid an error.
  18337. Use char because int might match the return type of a GCC
  18338. builtin and then its argument prototype would still apply. */
  18339. #ifdef __cplusplus
  18340. extern "C"
  18341. #endif
  18342. char _doprnt ();
  18343. /* The GNU C library defines this for functions which it implements
  18344. to always fail with ENOSYS. Some functions are actually named
  18345. something starting with __ and the normal name is an alias. */
  18346. #if defined __stub__doprnt || defined __stub____doprnt
  18347. choke me
  18348. #endif
  18349. int
  18350. main ()
  18351. {
  18352. return _doprnt ();
  18353. ;
  18354. return 0;
  18355. }
  18356. _ACEOF
  18357. rm -f conftest.$ac_objext conftest$ac_exeext
  18358. if { (ac_try="$ac_link"
  18359. case "(($ac_try" in
  18360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18361. *) ac_try_echo=$ac_try;;
  18362. esac
  18363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18364. (eval "$ac_link") 2>conftest.er1
  18365. ac_status=$?
  18366. grep -v '^ *+' conftest.er1 >conftest.err
  18367. rm -f conftest.er1
  18368. cat conftest.err >&5
  18369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18370. (exit $ac_status); } && {
  18371. test -z "$ac_cxx_werror_flag" ||
  18372. test ! -s conftest.err
  18373. } && test -s conftest$ac_exeext &&
  18374. $as_test_x conftest$ac_exeext; then
  18375. ac_cv_func__doprnt=yes
  18376. else
  18377. echo "$as_me: failed program was:" >&5
  18378. sed 's/^/| /' conftest.$ac_ext >&5
  18379. ac_cv_func__doprnt=no
  18380. fi
  18381. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18382. conftest$ac_exeext conftest.$ac_ext
  18383. fi
  18384. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18385. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18386. if test $ac_cv_func__doprnt = yes; then
  18387. cat >>confdefs.h <<\_ACEOF
  18388. #define HAVE_DOPRNT 1
  18389. _ACEOF
  18390. fi
  18391. fi
  18392. done
  18393. for ac_func in __argz_count \
  18394. __argz_next \
  18395. __argz_stringify \
  18396. atexit \
  18397. daemon \
  18398. ftruncate \
  18399. getcwd \
  18400. gethostbyaddr \
  18401. gethostbyname \
  18402. getpagesize \
  18403. inet_ntoa \
  18404. memchr \
  18405. memmove \
  18406. mempcpy \
  18407. memset \
  18408. mkdir \
  18409. munmap \
  18410. nl_langinfo \
  18411. posix_memalign \
  18412. putenv \
  18413. rmdir \
  18414. select \
  18415. setlocale \
  18416. sleep \
  18417. socket \
  18418. stpcpy \
  18419. strcasecmp \
  18420. strchr \
  18421. strcspn \
  18422. strdup \
  18423. strerror \
  18424. strncasecmp \
  18425. strstr \
  18426. strtol \
  18427. strtoul \
  18428. strtoull \
  18429. tzset \
  18430. unsetenv \
  18431. usleep
  18432. do
  18433. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18434. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18435. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18436. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18437. echo $ECHO_N "(cached) $ECHO_C" >&6
  18438. else
  18439. cat >conftest.$ac_ext <<_ACEOF
  18440. /* confdefs.h. */
  18441. _ACEOF
  18442. cat confdefs.h >>conftest.$ac_ext
  18443. cat >>conftest.$ac_ext <<_ACEOF
  18444. /* end confdefs.h. */
  18445. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18446. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18447. #define $ac_func innocuous_$ac_func
  18448. /* System header to define __stub macros and hopefully few prototypes,
  18449. which can conflict with char $ac_func (); below.
  18450. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18451. <limits.h> exists even on freestanding compilers. */
  18452. #ifdef __STDC__
  18453. # include <limits.h>
  18454. #else
  18455. # include <assert.h>
  18456. #endif
  18457. #undef $ac_func
  18458. /* Override any GCC internal prototype to avoid an error.
  18459. Use char because int might match the return type of a GCC
  18460. builtin and then its argument prototype would still apply. */
  18461. #ifdef __cplusplus
  18462. extern "C"
  18463. #endif
  18464. char $ac_func ();
  18465. /* The GNU C library defines this for functions which it implements
  18466. to always fail with ENOSYS. Some functions are actually named
  18467. something starting with __ and the normal name is an alias. */
  18468. #if defined __stub_$ac_func || defined __stub___$ac_func
  18469. choke me
  18470. #endif
  18471. int
  18472. main ()
  18473. {
  18474. return $ac_func ();
  18475. ;
  18476. return 0;
  18477. }
  18478. _ACEOF
  18479. rm -f conftest.$ac_objext conftest$ac_exeext
  18480. if { (ac_try="$ac_link"
  18481. case "(($ac_try" in
  18482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18483. *) ac_try_echo=$ac_try;;
  18484. esac
  18485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18486. (eval "$ac_link") 2>conftest.er1
  18487. ac_status=$?
  18488. grep -v '^ *+' conftest.er1 >conftest.err
  18489. rm -f conftest.er1
  18490. cat conftest.err >&5
  18491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18492. (exit $ac_status); } && {
  18493. test -z "$ac_cxx_werror_flag" ||
  18494. test ! -s conftest.err
  18495. } && test -s conftest$ac_exeext &&
  18496. $as_test_x conftest$ac_exeext; then
  18497. eval "$as_ac_var=yes"
  18498. else
  18499. echo "$as_me: failed program was:" >&5
  18500. sed 's/^/| /' conftest.$ac_ext >&5
  18501. eval "$as_ac_var=no"
  18502. fi
  18503. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18504. conftest$ac_exeext conftest.$ac_ext
  18505. fi
  18506. ac_res=`eval echo '${'$as_ac_var'}'`
  18507. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18508. echo "${ECHO_T}$ac_res" >&6; }
  18509. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18510. cat >>confdefs.h <<_ACEOF
  18511. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18512. _ACEOF
  18513. fi
  18514. done
  18515. if test "x$enable_epoll" = "xyes"; then
  18516. for ac_func in epoll_create
  18517. do
  18518. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18519. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18520. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18521. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18522. echo $ECHO_N "(cached) $ECHO_C" >&6
  18523. else
  18524. cat >conftest.$ac_ext <<_ACEOF
  18525. /* confdefs.h. */
  18526. _ACEOF
  18527. cat confdefs.h >>conftest.$ac_ext
  18528. cat >>conftest.$ac_ext <<_ACEOF
  18529. /* end confdefs.h. */
  18530. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18531. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18532. #define $ac_func innocuous_$ac_func
  18533. /* System header to define __stub macros and hopefully few prototypes,
  18534. which can conflict with char $ac_func (); below.
  18535. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18536. <limits.h> exists even on freestanding compilers. */
  18537. #ifdef __STDC__
  18538. # include <limits.h>
  18539. #else
  18540. # include <assert.h>
  18541. #endif
  18542. #undef $ac_func
  18543. /* Override any GCC internal prototype to avoid an error.
  18544. Use char because int might match the return type of a GCC
  18545. builtin and then its argument prototype would still apply. */
  18546. #ifdef __cplusplus
  18547. extern "C"
  18548. #endif
  18549. char $ac_func ();
  18550. /* The GNU C library defines this for functions which it implements
  18551. to always fail with ENOSYS. Some functions are actually named
  18552. something starting with __ and the normal name is an alias. */
  18553. #if defined __stub_$ac_func || defined __stub___$ac_func
  18554. choke me
  18555. #endif
  18556. int
  18557. main ()
  18558. {
  18559. return $ac_func ();
  18560. ;
  18561. return 0;
  18562. }
  18563. _ACEOF
  18564. rm -f conftest.$ac_objext conftest$ac_exeext
  18565. if { (ac_try="$ac_link"
  18566. case "(($ac_try" in
  18567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18568. *) ac_try_echo=$ac_try;;
  18569. esac
  18570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18571. (eval "$ac_link") 2>conftest.er1
  18572. ac_status=$?
  18573. grep -v '^ *+' conftest.er1 >conftest.err
  18574. rm -f conftest.er1
  18575. cat conftest.err >&5
  18576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18577. (exit $ac_status); } && {
  18578. test -z "$ac_cxx_werror_flag" ||
  18579. test ! -s conftest.err
  18580. } && test -s conftest$ac_exeext &&
  18581. $as_test_x conftest$ac_exeext; then
  18582. eval "$as_ac_var=yes"
  18583. else
  18584. echo "$as_me: failed program was:" >&5
  18585. sed 's/^/| /' conftest.$ac_ext >&5
  18586. eval "$as_ac_var=no"
  18587. fi
  18588. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18589. conftest$ac_exeext conftest.$ac_ext
  18590. fi
  18591. ac_res=`eval echo '${'$as_ac_var'}'`
  18592. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18593. echo "${ECHO_T}$ac_res" >&6; }
  18594. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18595. cat >>confdefs.h <<_ACEOF
  18596. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18597. _ACEOF
  18598. fi
  18599. done
  18600. fi
  18601. for ac_func in asctime_r
  18602. do
  18603. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18604. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18605. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18606. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18607. echo $ECHO_N "(cached) $ECHO_C" >&6
  18608. else
  18609. cat >conftest.$ac_ext <<_ACEOF
  18610. /* confdefs.h. */
  18611. _ACEOF
  18612. cat confdefs.h >>conftest.$ac_ext
  18613. cat >>conftest.$ac_ext <<_ACEOF
  18614. /* end confdefs.h. */
  18615. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18616. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18617. #define $ac_func innocuous_$ac_func
  18618. /* System header to define __stub macros and hopefully few prototypes,
  18619. which can conflict with char $ac_func (); below.
  18620. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18621. <limits.h> exists even on freestanding compilers. */
  18622. #ifdef __STDC__
  18623. # include <limits.h>
  18624. #else
  18625. # include <assert.h>
  18626. #endif
  18627. #undef $ac_func
  18628. /* Override any GCC internal prototype to avoid an error.
  18629. Use char because int might match the return type of a GCC
  18630. builtin and then its argument prototype would still apply. */
  18631. #ifdef __cplusplus
  18632. extern "C"
  18633. #endif
  18634. char $ac_func ();
  18635. /* The GNU C library defines this for functions which it implements
  18636. to always fail with ENOSYS. Some functions are actually named
  18637. something starting with __ and the normal name is an alias. */
  18638. #if defined __stub_$ac_func || defined __stub___$ac_func
  18639. choke me
  18640. #endif
  18641. int
  18642. main ()
  18643. {
  18644. return $ac_func ();
  18645. ;
  18646. return 0;
  18647. }
  18648. _ACEOF
  18649. rm -f conftest.$ac_objext conftest$ac_exeext
  18650. if { (ac_try="$ac_link"
  18651. case "(($ac_try" in
  18652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18653. *) ac_try_echo=$ac_try;;
  18654. esac
  18655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18656. (eval "$ac_link") 2>conftest.er1
  18657. ac_status=$?
  18658. grep -v '^ *+' conftest.er1 >conftest.err
  18659. rm -f conftest.er1
  18660. cat conftest.err >&5
  18661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18662. (exit $ac_status); } && {
  18663. test -z "$ac_cxx_werror_flag" ||
  18664. test ! -s conftest.err
  18665. } && test -s conftest$ac_exeext &&
  18666. $as_test_x conftest$ac_exeext; then
  18667. eval "$as_ac_var=yes"
  18668. else
  18669. echo "$as_me: failed program was:" >&5
  18670. sed 's/^/| /' conftest.$ac_ext >&5
  18671. eval "$as_ac_var=no"
  18672. fi
  18673. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18674. conftest$ac_exeext conftest.$ac_ext
  18675. fi
  18676. ac_res=`eval echo '${'$as_ac_var'}'`
  18677. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18678. echo "${ECHO_T}$ac_res" >&6; }
  18679. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18680. cat >>confdefs.h <<_ACEOF
  18681. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18682. _ACEOF
  18683. if true; then
  18684. HAVE_ASCTIME_R_TRUE=
  18685. HAVE_ASCTIME_R_FALSE='#'
  18686. else
  18687. HAVE_ASCTIME_R_TRUE='#'
  18688. HAVE_ASCTIME_R_FALSE=
  18689. fi
  18690. else
  18691. if false; then
  18692. HAVE_ASCTIME_R_TRUE=
  18693. HAVE_ASCTIME_R_FALSE='#'
  18694. else
  18695. HAVE_ASCTIME_R_TRUE='#'
  18696. HAVE_ASCTIME_R_FALSE=
  18697. fi
  18698. fi
  18699. done
  18700. for ac_func in basename
  18701. do
  18702. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18703. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18704. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18705. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18706. echo $ECHO_N "(cached) $ECHO_C" >&6
  18707. else
  18708. cat >conftest.$ac_ext <<_ACEOF
  18709. /* confdefs.h. */
  18710. _ACEOF
  18711. cat confdefs.h >>conftest.$ac_ext
  18712. cat >>conftest.$ac_ext <<_ACEOF
  18713. /* end confdefs.h. */
  18714. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18715. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18716. #define $ac_func innocuous_$ac_func
  18717. /* System header to define __stub macros and hopefully few prototypes,
  18718. which can conflict with char $ac_func (); below.
  18719. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18720. <limits.h> exists even on freestanding compilers. */
  18721. #ifdef __STDC__
  18722. # include <limits.h>
  18723. #else
  18724. # include <assert.h>
  18725. #endif
  18726. #undef $ac_func
  18727. /* Override any GCC internal prototype to avoid an error.
  18728. Use char because int might match the return type of a GCC
  18729. builtin and then its argument prototype would still apply. */
  18730. #ifdef __cplusplus
  18731. extern "C"
  18732. #endif
  18733. char $ac_func ();
  18734. /* The GNU C library defines this for functions which it implements
  18735. to always fail with ENOSYS. Some functions are actually named
  18736. something starting with __ and the normal name is an alias. */
  18737. #if defined __stub_$ac_func || defined __stub___$ac_func
  18738. choke me
  18739. #endif
  18740. int
  18741. main ()
  18742. {
  18743. return $ac_func ();
  18744. ;
  18745. return 0;
  18746. }
  18747. _ACEOF
  18748. rm -f conftest.$ac_objext conftest$ac_exeext
  18749. if { (ac_try="$ac_link"
  18750. case "(($ac_try" in
  18751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18752. *) ac_try_echo=$ac_try;;
  18753. esac
  18754. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18755. (eval "$ac_link") 2>conftest.er1
  18756. ac_status=$?
  18757. grep -v '^ *+' conftest.er1 >conftest.err
  18758. rm -f conftest.er1
  18759. cat conftest.err >&5
  18760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18761. (exit $ac_status); } && {
  18762. test -z "$ac_cxx_werror_flag" ||
  18763. test ! -s conftest.err
  18764. } && test -s conftest$ac_exeext &&
  18765. $as_test_x conftest$ac_exeext; then
  18766. eval "$as_ac_var=yes"
  18767. else
  18768. echo "$as_me: failed program was:" >&5
  18769. sed 's/^/| /' conftest.$ac_ext >&5
  18770. eval "$as_ac_var=no"
  18771. fi
  18772. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18773. conftest$ac_exeext conftest.$ac_ext
  18774. fi
  18775. ac_res=`eval echo '${'$as_ac_var'}'`
  18776. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18777. echo "${ECHO_T}$ac_res" >&6; }
  18778. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18779. cat >>confdefs.h <<_ACEOF
  18780. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18781. _ACEOF
  18782. if true; then
  18783. HAVE_BASENAME_TRUE=
  18784. HAVE_BASENAME_FALSE='#'
  18785. else
  18786. HAVE_BASENAME_TRUE='#'
  18787. HAVE_BASENAME_FALSE=
  18788. fi
  18789. else
  18790. if false; then
  18791. HAVE_BASENAME_TRUE=
  18792. HAVE_BASENAME_FALSE='#'
  18793. else
  18794. HAVE_BASENAME_TRUE='#'
  18795. HAVE_BASENAME_FALSE=
  18796. fi
  18797. fi
  18798. done
  18799. for ac_func in gai_strerror
  18800. do
  18801. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18802. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18803. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18804. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18805. echo $ECHO_N "(cached) $ECHO_C" >&6
  18806. else
  18807. cat >conftest.$ac_ext <<_ACEOF
  18808. /* confdefs.h. */
  18809. _ACEOF
  18810. cat confdefs.h >>conftest.$ac_ext
  18811. cat >>conftest.$ac_ext <<_ACEOF
  18812. /* end confdefs.h. */
  18813. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18814. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18815. #define $ac_func innocuous_$ac_func
  18816. /* System header to define __stub macros and hopefully few prototypes,
  18817. which can conflict with char $ac_func (); below.
  18818. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18819. <limits.h> exists even on freestanding compilers. */
  18820. #ifdef __STDC__
  18821. # include <limits.h>
  18822. #else
  18823. # include <assert.h>
  18824. #endif
  18825. #undef $ac_func
  18826. /* Override any GCC internal prototype to avoid an error.
  18827. Use char because int might match the return type of a GCC
  18828. builtin and then its argument prototype would still apply. */
  18829. #ifdef __cplusplus
  18830. extern "C"
  18831. #endif
  18832. char $ac_func ();
  18833. /* The GNU C library defines this for functions which it implements
  18834. to always fail with ENOSYS. Some functions are actually named
  18835. something starting with __ and the normal name is an alias. */
  18836. #if defined __stub_$ac_func || defined __stub___$ac_func
  18837. choke me
  18838. #endif
  18839. int
  18840. main ()
  18841. {
  18842. return $ac_func ();
  18843. ;
  18844. return 0;
  18845. }
  18846. _ACEOF
  18847. rm -f conftest.$ac_objext conftest$ac_exeext
  18848. if { (ac_try="$ac_link"
  18849. case "(($ac_try" in
  18850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18851. *) ac_try_echo=$ac_try;;
  18852. esac
  18853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18854. (eval "$ac_link") 2>conftest.er1
  18855. ac_status=$?
  18856. grep -v '^ *+' conftest.er1 >conftest.err
  18857. rm -f conftest.er1
  18858. cat conftest.err >&5
  18859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18860. (exit $ac_status); } && {
  18861. test -z "$ac_cxx_werror_flag" ||
  18862. test ! -s conftest.err
  18863. } && test -s conftest$ac_exeext &&
  18864. $as_test_x conftest$ac_exeext; then
  18865. eval "$as_ac_var=yes"
  18866. else
  18867. echo "$as_me: failed program was:" >&5
  18868. sed 's/^/| /' conftest.$ac_ext >&5
  18869. eval "$as_ac_var=no"
  18870. fi
  18871. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18872. conftest$ac_exeext conftest.$ac_ext
  18873. fi
  18874. ac_res=`eval echo '${'$as_ac_var'}'`
  18875. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18876. echo "${ECHO_T}$ac_res" >&6; }
  18877. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18878. cat >>confdefs.h <<_ACEOF
  18879. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18880. _ACEOF
  18881. if true; then
  18882. HAVE_GAI_STRERROR_TRUE=
  18883. HAVE_GAI_STRERROR_FALSE='#'
  18884. else
  18885. HAVE_GAI_STRERROR_TRUE='#'
  18886. HAVE_GAI_STRERROR_FALSE=
  18887. fi
  18888. else
  18889. if false; then
  18890. HAVE_GAI_STRERROR_TRUE=
  18891. HAVE_GAI_STRERROR_FALSE='#'
  18892. else
  18893. HAVE_GAI_STRERROR_TRUE='#'
  18894. HAVE_GAI_STRERROR_FALSE=
  18895. fi
  18896. fi
  18897. done
  18898. for ac_func in getaddrinfo
  18899. do
  18900. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18901. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18902. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18903. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18904. echo $ECHO_N "(cached) $ECHO_C" >&6
  18905. else
  18906. cat >conftest.$ac_ext <<_ACEOF
  18907. /* confdefs.h. */
  18908. _ACEOF
  18909. cat confdefs.h >>conftest.$ac_ext
  18910. cat >>conftest.$ac_ext <<_ACEOF
  18911. /* end confdefs.h. */
  18912. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18913. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18914. #define $ac_func innocuous_$ac_func
  18915. /* System header to define __stub macros and hopefully few prototypes,
  18916. which can conflict with char $ac_func (); below.
  18917. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18918. <limits.h> exists even on freestanding compilers. */
  18919. #ifdef __STDC__
  18920. # include <limits.h>
  18921. #else
  18922. # include <assert.h>
  18923. #endif
  18924. #undef $ac_func
  18925. /* Override any GCC internal prototype to avoid an error.
  18926. Use char because int might match the return type of a GCC
  18927. builtin and then its argument prototype would still apply. */
  18928. #ifdef __cplusplus
  18929. extern "C"
  18930. #endif
  18931. char $ac_func ();
  18932. /* The GNU C library defines this for functions which it implements
  18933. to always fail with ENOSYS. Some functions are actually named
  18934. something starting with __ and the normal name is an alias. */
  18935. #if defined __stub_$ac_func || defined __stub___$ac_func
  18936. choke me
  18937. #endif
  18938. int
  18939. main ()
  18940. {
  18941. return $ac_func ();
  18942. ;
  18943. return 0;
  18944. }
  18945. _ACEOF
  18946. rm -f conftest.$ac_objext conftest$ac_exeext
  18947. if { (ac_try="$ac_link"
  18948. case "(($ac_try" in
  18949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18950. *) ac_try_echo=$ac_try;;
  18951. esac
  18952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18953. (eval "$ac_link") 2>conftest.er1
  18954. ac_status=$?
  18955. grep -v '^ *+' conftest.er1 >conftest.err
  18956. rm -f conftest.er1
  18957. cat conftest.err >&5
  18958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18959. (exit $ac_status); } && {
  18960. test -z "$ac_cxx_werror_flag" ||
  18961. test ! -s conftest.err
  18962. } && test -s conftest$ac_exeext &&
  18963. $as_test_x conftest$ac_exeext; then
  18964. eval "$as_ac_var=yes"
  18965. else
  18966. echo "$as_me: failed program was:" >&5
  18967. sed 's/^/| /' conftest.$ac_ext >&5
  18968. eval "$as_ac_var=no"
  18969. fi
  18970. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18971. conftest$ac_exeext conftest.$ac_ext
  18972. fi
  18973. ac_res=`eval echo '${'$as_ac_var'}'`
  18974. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18975. echo "${ECHO_T}$ac_res" >&6; }
  18976. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18977. cat >>confdefs.h <<_ACEOF
  18978. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18979. _ACEOF
  18980. if true; then
  18981. HAVE_GETADDRINFO_TRUE=
  18982. HAVE_GETADDRINFO_FALSE='#'
  18983. else
  18984. HAVE_GETADDRINFO_TRUE='#'
  18985. HAVE_GETADDRINFO_FALSE=
  18986. fi
  18987. else
  18988. if false; then
  18989. HAVE_GETADDRINFO_TRUE=
  18990. HAVE_GETADDRINFO_FALSE='#'
  18991. else
  18992. HAVE_GETADDRINFO_TRUE='#'
  18993. HAVE_GETADDRINFO_FALSE=
  18994. fi
  18995. fi
  18996. done
  18997. for ac_func in gettimeofday
  18998. do
  18999. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19000. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19001. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19002. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19003. echo $ECHO_N "(cached) $ECHO_C" >&6
  19004. else
  19005. cat >conftest.$ac_ext <<_ACEOF
  19006. /* confdefs.h. */
  19007. _ACEOF
  19008. cat confdefs.h >>conftest.$ac_ext
  19009. cat >>conftest.$ac_ext <<_ACEOF
  19010. /* end confdefs.h. */
  19011. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19012. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19013. #define $ac_func innocuous_$ac_func
  19014. /* System header to define __stub macros and hopefully few prototypes,
  19015. which can conflict with char $ac_func (); below.
  19016. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19017. <limits.h> exists even on freestanding compilers. */
  19018. #ifdef __STDC__
  19019. # include <limits.h>
  19020. #else
  19021. # include <assert.h>
  19022. #endif
  19023. #undef $ac_func
  19024. /* Override any GCC internal prototype to avoid an error.
  19025. Use char because int might match the return type of a GCC
  19026. builtin and then its argument prototype would still apply. */
  19027. #ifdef __cplusplus
  19028. extern "C"
  19029. #endif
  19030. char $ac_func ();
  19031. /* The GNU C library defines this for functions which it implements
  19032. to always fail with ENOSYS. Some functions are actually named
  19033. something starting with __ and the normal name is an alias. */
  19034. #if defined __stub_$ac_func || defined __stub___$ac_func
  19035. choke me
  19036. #endif
  19037. int
  19038. main ()
  19039. {
  19040. return $ac_func ();
  19041. ;
  19042. return 0;
  19043. }
  19044. _ACEOF
  19045. rm -f conftest.$ac_objext conftest$ac_exeext
  19046. if { (ac_try="$ac_link"
  19047. case "(($ac_try" in
  19048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19049. *) ac_try_echo=$ac_try;;
  19050. esac
  19051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19052. (eval "$ac_link") 2>conftest.er1
  19053. ac_status=$?
  19054. grep -v '^ *+' conftest.er1 >conftest.err
  19055. rm -f conftest.er1
  19056. cat conftest.err >&5
  19057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19058. (exit $ac_status); } && {
  19059. test -z "$ac_cxx_werror_flag" ||
  19060. test ! -s conftest.err
  19061. } && test -s conftest$ac_exeext &&
  19062. $as_test_x conftest$ac_exeext; then
  19063. eval "$as_ac_var=yes"
  19064. else
  19065. echo "$as_me: failed program was:" >&5
  19066. sed 's/^/| /' conftest.$ac_ext >&5
  19067. eval "$as_ac_var=no"
  19068. fi
  19069. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19070. conftest$ac_exeext conftest.$ac_ext
  19071. fi
  19072. ac_res=`eval echo '${'$as_ac_var'}'`
  19073. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19074. echo "${ECHO_T}$ac_res" >&6; }
  19075. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19076. cat >>confdefs.h <<_ACEOF
  19077. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19078. _ACEOF
  19079. if true; then
  19080. HAVE_GETTIMEOFDAY_TRUE=
  19081. HAVE_GETTIMEOFDAY_FALSE='#'
  19082. else
  19083. HAVE_GETTIMEOFDAY_TRUE='#'
  19084. HAVE_GETTIMEOFDAY_FALSE=
  19085. fi
  19086. else
  19087. if false; then
  19088. HAVE_GETTIMEOFDAY_TRUE=
  19089. HAVE_GETTIMEOFDAY_FALSE='#'
  19090. else
  19091. HAVE_GETTIMEOFDAY_TRUE='#'
  19092. HAVE_GETTIMEOFDAY_FALSE=
  19093. fi
  19094. fi
  19095. done
  19096. for ac_func in inet_aton
  19097. do
  19098. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19099. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19100. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19101. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19102. echo $ECHO_N "(cached) $ECHO_C" >&6
  19103. else
  19104. cat >conftest.$ac_ext <<_ACEOF
  19105. /* confdefs.h. */
  19106. _ACEOF
  19107. cat confdefs.h >>conftest.$ac_ext
  19108. cat >>conftest.$ac_ext <<_ACEOF
  19109. /* end confdefs.h. */
  19110. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19111. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19112. #define $ac_func innocuous_$ac_func
  19113. /* System header to define __stub macros and hopefully few prototypes,
  19114. which can conflict with char $ac_func (); below.
  19115. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19116. <limits.h> exists even on freestanding compilers. */
  19117. #ifdef __STDC__
  19118. # include <limits.h>
  19119. #else
  19120. # include <assert.h>
  19121. #endif
  19122. #undef $ac_func
  19123. /* Override any GCC internal prototype to avoid an error.
  19124. Use char because int might match the return type of a GCC
  19125. builtin and then its argument prototype would still apply. */
  19126. #ifdef __cplusplus
  19127. extern "C"
  19128. #endif
  19129. char $ac_func ();
  19130. /* The GNU C library defines this for functions which it implements
  19131. to always fail with ENOSYS. Some functions are actually named
  19132. something starting with __ and the normal name is an alias. */
  19133. #if defined __stub_$ac_func || defined __stub___$ac_func
  19134. choke me
  19135. #endif
  19136. int
  19137. main ()
  19138. {
  19139. return $ac_func ();
  19140. ;
  19141. return 0;
  19142. }
  19143. _ACEOF
  19144. rm -f conftest.$ac_objext conftest$ac_exeext
  19145. if { (ac_try="$ac_link"
  19146. case "(($ac_try" in
  19147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19148. *) ac_try_echo=$ac_try;;
  19149. esac
  19150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19151. (eval "$ac_link") 2>conftest.er1
  19152. ac_status=$?
  19153. grep -v '^ *+' conftest.er1 >conftest.err
  19154. rm -f conftest.er1
  19155. cat conftest.err >&5
  19156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19157. (exit $ac_status); } && {
  19158. test -z "$ac_cxx_werror_flag" ||
  19159. test ! -s conftest.err
  19160. } && test -s conftest$ac_exeext &&
  19161. $as_test_x conftest$ac_exeext; then
  19162. eval "$as_ac_var=yes"
  19163. else
  19164. echo "$as_me: failed program was:" >&5
  19165. sed 's/^/| /' conftest.$ac_ext >&5
  19166. eval "$as_ac_var=no"
  19167. fi
  19168. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19169. conftest$ac_exeext conftest.$ac_ext
  19170. fi
  19171. ac_res=`eval echo '${'$as_ac_var'}'`
  19172. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19173. echo "${ECHO_T}$ac_res" >&6; }
  19174. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19175. cat >>confdefs.h <<_ACEOF
  19176. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19177. _ACEOF
  19178. if true; then
  19179. HAVE_INET_ATON_TRUE=
  19180. HAVE_INET_ATON_FALSE='#'
  19181. else
  19182. HAVE_INET_ATON_TRUE='#'
  19183. HAVE_INET_ATON_FALSE=
  19184. fi
  19185. else
  19186. if false; then
  19187. HAVE_INET_ATON_TRUE=
  19188. HAVE_INET_ATON_FALSE='#'
  19189. else
  19190. HAVE_INET_ATON_TRUE='#'
  19191. HAVE_INET_ATON_FALSE=
  19192. fi
  19193. fi
  19194. done
  19195. for ac_func in localtime_r
  19196. do
  19197. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19198. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19199. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19200. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19201. echo $ECHO_N "(cached) $ECHO_C" >&6
  19202. else
  19203. cat >conftest.$ac_ext <<_ACEOF
  19204. /* confdefs.h. */
  19205. _ACEOF
  19206. cat confdefs.h >>conftest.$ac_ext
  19207. cat >>conftest.$ac_ext <<_ACEOF
  19208. /* end confdefs.h. */
  19209. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19210. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19211. #define $ac_func innocuous_$ac_func
  19212. /* System header to define __stub macros and hopefully few prototypes,
  19213. which can conflict with char $ac_func (); below.
  19214. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19215. <limits.h> exists even on freestanding compilers. */
  19216. #ifdef __STDC__
  19217. # include <limits.h>
  19218. #else
  19219. # include <assert.h>
  19220. #endif
  19221. #undef $ac_func
  19222. /* Override any GCC internal prototype to avoid an error.
  19223. Use char because int might match the return type of a GCC
  19224. builtin and then its argument prototype would still apply. */
  19225. #ifdef __cplusplus
  19226. extern "C"
  19227. #endif
  19228. char $ac_func ();
  19229. /* The GNU C library defines this for functions which it implements
  19230. to always fail with ENOSYS. Some functions are actually named
  19231. something starting with __ and the normal name is an alias. */
  19232. #if defined __stub_$ac_func || defined __stub___$ac_func
  19233. choke me
  19234. #endif
  19235. int
  19236. main ()
  19237. {
  19238. return $ac_func ();
  19239. ;
  19240. return 0;
  19241. }
  19242. _ACEOF
  19243. rm -f conftest.$ac_objext conftest$ac_exeext
  19244. if { (ac_try="$ac_link"
  19245. case "(($ac_try" in
  19246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19247. *) ac_try_echo=$ac_try;;
  19248. esac
  19249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19250. (eval "$ac_link") 2>conftest.er1
  19251. ac_status=$?
  19252. grep -v '^ *+' conftest.er1 >conftest.err
  19253. rm -f conftest.er1
  19254. cat conftest.err >&5
  19255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19256. (exit $ac_status); } && {
  19257. test -z "$ac_cxx_werror_flag" ||
  19258. test ! -s conftest.err
  19259. } && test -s conftest$ac_exeext &&
  19260. $as_test_x conftest$ac_exeext; then
  19261. eval "$as_ac_var=yes"
  19262. else
  19263. echo "$as_me: failed program was:" >&5
  19264. sed 's/^/| /' conftest.$ac_ext >&5
  19265. eval "$as_ac_var=no"
  19266. fi
  19267. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19268. conftest$ac_exeext conftest.$ac_ext
  19269. fi
  19270. ac_res=`eval echo '${'$as_ac_var'}'`
  19271. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19272. echo "${ECHO_T}$ac_res" >&6; }
  19273. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19274. cat >>confdefs.h <<_ACEOF
  19275. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19276. _ACEOF
  19277. if true; then
  19278. HAVE_LOCALTIME_R_TRUE=
  19279. HAVE_LOCALTIME_R_FALSE='#'
  19280. else
  19281. HAVE_LOCALTIME_R_TRUE='#'
  19282. HAVE_LOCALTIME_R_FALSE=
  19283. fi
  19284. else
  19285. if false; then
  19286. HAVE_LOCALTIME_R_TRUE=
  19287. HAVE_LOCALTIME_R_FALSE='#'
  19288. else
  19289. HAVE_LOCALTIME_R_TRUE='#'
  19290. HAVE_LOCALTIME_R_FALSE=
  19291. fi
  19292. fi
  19293. done
  19294. for ac_func in strptime
  19295. do
  19296. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19297. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19298. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19299. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19300. echo $ECHO_N "(cached) $ECHO_C" >&6
  19301. else
  19302. cat >conftest.$ac_ext <<_ACEOF
  19303. /* confdefs.h. */
  19304. _ACEOF
  19305. cat confdefs.h >>conftest.$ac_ext
  19306. cat >>conftest.$ac_ext <<_ACEOF
  19307. /* end confdefs.h. */
  19308. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19309. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19310. #define $ac_func innocuous_$ac_func
  19311. /* System header to define __stub macros and hopefully few prototypes,
  19312. which can conflict with char $ac_func (); below.
  19313. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19314. <limits.h> exists even on freestanding compilers. */
  19315. #ifdef __STDC__
  19316. # include <limits.h>
  19317. #else
  19318. # include <assert.h>
  19319. #endif
  19320. #undef $ac_func
  19321. /* Override any GCC internal prototype to avoid an error.
  19322. Use char because int might match the return type of a GCC
  19323. builtin and then its argument prototype would still apply. */
  19324. #ifdef __cplusplus
  19325. extern "C"
  19326. #endif
  19327. char $ac_func ();
  19328. /* The GNU C library defines this for functions which it implements
  19329. to always fail with ENOSYS. Some functions are actually named
  19330. something starting with __ and the normal name is an alias. */
  19331. #if defined __stub_$ac_func || defined __stub___$ac_func
  19332. choke me
  19333. #endif
  19334. int
  19335. main ()
  19336. {
  19337. return $ac_func ();
  19338. ;
  19339. return 0;
  19340. }
  19341. _ACEOF
  19342. rm -f conftest.$ac_objext conftest$ac_exeext
  19343. if { (ac_try="$ac_link"
  19344. case "(($ac_try" in
  19345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19346. *) ac_try_echo=$ac_try;;
  19347. esac
  19348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19349. (eval "$ac_link") 2>conftest.er1
  19350. ac_status=$?
  19351. grep -v '^ *+' conftest.er1 >conftest.err
  19352. rm -f conftest.er1
  19353. cat conftest.err >&5
  19354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19355. (exit $ac_status); } && {
  19356. test -z "$ac_cxx_werror_flag" ||
  19357. test ! -s conftest.err
  19358. } && test -s conftest$ac_exeext &&
  19359. $as_test_x conftest$ac_exeext; then
  19360. eval "$as_ac_var=yes"
  19361. else
  19362. echo "$as_me: failed program was:" >&5
  19363. sed 's/^/| /' conftest.$ac_ext >&5
  19364. eval "$as_ac_var=no"
  19365. fi
  19366. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19367. conftest$ac_exeext conftest.$ac_ext
  19368. fi
  19369. ac_res=`eval echo '${'$as_ac_var'}'`
  19370. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19371. echo "${ECHO_T}$ac_res" >&6; }
  19372. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19373. cat >>confdefs.h <<_ACEOF
  19374. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19375. _ACEOF
  19376. if true; then
  19377. HAVE_STRPTIME_TRUE=
  19378. HAVE_STRPTIME_FALSE='#'
  19379. else
  19380. HAVE_STRPTIME_TRUE='#'
  19381. HAVE_STRPTIME_FALSE=
  19382. fi
  19383. else
  19384. if false; then
  19385. HAVE_STRPTIME_TRUE=
  19386. HAVE_STRPTIME_FALSE='#'
  19387. else
  19388. HAVE_STRPTIME_TRUE='#'
  19389. HAVE_STRPTIME_FALSE=
  19390. fi
  19391. fi
  19392. done
  19393. for ac_func in timegm
  19394. do
  19395. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19396. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19397. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19398. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19399. echo $ECHO_N "(cached) $ECHO_C" >&6
  19400. else
  19401. cat >conftest.$ac_ext <<_ACEOF
  19402. /* confdefs.h. */
  19403. _ACEOF
  19404. cat confdefs.h >>conftest.$ac_ext
  19405. cat >>conftest.$ac_ext <<_ACEOF
  19406. /* end confdefs.h. */
  19407. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19408. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19409. #define $ac_func innocuous_$ac_func
  19410. /* System header to define __stub macros and hopefully few prototypes,
  19411. which can conflict with char $ac_func (); below.
  19412. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19413. <limits.h> exists even on freestanding compilers. */
  19414. #ifdef __STDC__
  19415. # include <limits.h>
  19416. #else
  19417. # include <assert.h>
  19418. #endif
  19419. #undef $ac_func
  19420. /* Override any GCC internal prototype to avoid an error.
  19421. Use char because int might match the return type of a GCC
  19422. builtin and then its argument prototype would still apply. */
  19423. #ifdef __cplusplus
  19424. extern "C"
  19425. #endif
  19426. char $ac_func ();
  19427. /* The GNU C library defines this for functions which it implements
  19428. to always fail with ENOSYS. Some functions are actually named
  19429. something starting with __ and the normal name is an alias. */
  19430. #if defined __stub_$ac_func || defined __stub___$ac_func
  19431. choke me
  19432. #endif
  19433. int
  19434. main ()
  19435. {
  19436. return $ac_func ();
  19437. ;
  19438. return 0;
  19439. }
  19440. _ACEOF
  19441. rm -f conftest.$ac_objext conftest$ac_exeext
  19442. if { (ac_try="$ac_link"
  19443. case "(($ac_try" in
  19444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19445. *) ac_try_echo=$ac_try;;
  19446. esac
  19447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19448. (eval "$ac_link") 2>conftest.er1
  19449. ac_status=$?
  19450. grep -v '^ *+' conftest.er1 >conftest.err
  19451. rm -f conftest.er1
  19452. cat conftest.err >&5
  19453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19454. (exit $ac_status); } && {
  19455. test -z "$ac_cxx_werror_flag" ||
  19456. test ! -s conftest.err
  19457. } && test -s conftest$ac_exeext &&
  19458. $as_test_x conftest$ac_exeext; then
  19459. eval "$as_ac_var=yes"
  19460. else
  19461. echo "$as_me: failed program was:" >&5
  19462. sed 's/^/| /' conftest.$ac_ext >&5
  19463. eval "$as_ac_var=no"
  19464. fi
  19465. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19466. conftest$ac_exeext conftest.$ac_ext
  19467. fi
  19468. ac_res=`eval echo '${'$as_ac_var'}'`
  19469. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19470. echo "${ECHO_T}$ac_res" >&6; }
  19471. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19472. cat >>confdefs.h <<_ACEOF
  19473. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19474. _ACEOF
  19475. if true; then
  19476. HAVE_TIMEGM_TRUE=
  19477. HAVE_TIMEGM_FALSE='#'
  19478. else
  19479. HAVE_TIMEGM_TRUE='#'
  19480. HAVE_TIMEGM_FALSE=
  19481. fi
  19482. else
  19483. if false; then
  19484. HAVE_TIMEGM_TRUE=
  19485. HAVE_TIMEGM_FALSE='#'
  19486. else
  19487. HAVE_TIMEGM_TRUE='#'
  19488. HAVE_TIMEGM_FALSE=
  19489. fi
  19490. fi
  19491. done
  19492. case "$target" in
  19493. *mingw*)
  19494. if true; then
  19495. HAVE_GETADDRINFO_TRUE=
  19496. HAVE_GETADDRINFO_FALSE='#'
  19497. else
  19498. HAVE_GETADDRINFO_TRUE='#'
  19499. HAVE_GETADDRINFO_FALSE=
  19500. fi
  19501. if false; then
  19502. HAVE_GAI_STRERROR_TRUE=
  19503. HAVE_GAI_STRERROR_FALSE='#'
  19504. else
  19505. HAVE_GAI_STRERROR_TRUE='#'
  19506. HAVE_GAI_STRERROR_FALSE=
  19507. fi
  19508. ;;
  19509. esac
  19510. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19511. cat >confcache <<\_ACEOF
  19512. # This file is a shell script that caches the results of configure
  19513. # tests run on this system so they can be shared between configure
  19514. # scripts and configure runs, see configure's option --config-cache.
  19515. # It is not useful on other systems. If it contains results you don't
  19516. # want to keep, you may remove or edit it.
  19517. #
  19518. # config.status only pays attention to the cache file if you give it
  19519. # the --recheck option to rerun configure.
  19520. #
  19521. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19522. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19523. # following values.
  19524. _ACEOF
  19525. # The following way of writing the cache mishandles newlines in values,
  19526. # but we know of no workaround that is simple, portable, and efficient.
  19527. # So, we kill variables containing newlines.
  19528. # Ultrix sh set writes to stderr and can't be redirected directly,
  19529. # and sets the high bit in the cache file unless we assign to the vars.
  19530. (
  19531. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19532. eval ac_val=\$$ac_var
  19533. case $ac_val in #(
  19534. *${as_nl}*)
  19535. case $ac_var in #(
  19536. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19537. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19538. esac
  19539. case $ac_var in #(
  19540. _ | IFS | as_nl) ;; #(
  19541. *) $as_unset $ac_var ;;
  19542. esac ;;
  19543. esac
  19544. done
  19545. (set) 2>&1 |
  19546. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19547. *${as_nl}ac_space=\ *)
  19548. # `set' does not quote correctly, so add quotes (double-quote
  19549. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19550. sed -n \
  19551. "s/'/'\\\\''/g;
  19552. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19553. ;; #(
  19554. *)
  19555. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19556. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19557. ;;
  19558. esac |
  19559. sort
  19560. ) |
  19561. sed '
  19562. /^ac_cv_env_/b end
  19563. t clear
  19564. :clear
  19565. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19566. t end
  19567. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19568. :end' >>confcache
  19569. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19570. if test -w "$cache_file"; then
  19571. test "x$cache_file" != "x/dev/null" &&
  19572. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19573. echo "$as_me: updating cache $cache_file" >&6;}
  19574. cat confcache >$cache_file
  19575. else
  19576. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19577. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19578. fi
  19579. fi
  19580. rm -f confcache
  19581. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19582. # Let make expand exec_prefix.
  19583. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19584. DEFS=-DHAVE_CONFIG_H
  19585. ac_libobjs=
  19586. ac_ltlibobjs=
  19587. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19588. # 1. Remove the extension, and $U if already installed.
  19589. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19590. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19591. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19592. # will be set to the directory where LIBOBJS objects are built.
  19593. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19594. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19595. done
  19596. LIBOBJS=$ac_libobjs
  19597. LTLIBOBJS=$ac_ltlibobjs
  19598. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19599. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19600. Usually this means the macro was only invoked conditionally." >&5
  19601. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19602. Usually this means the macro was only invoked conditionally." >&2;}
  19603. { (exit 1); exit 1; }; }
  19604. fi
  19605. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19606. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19607. Usually this means the macro was only invoked conditionally." >&5
  19608. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19609. Usually this means the macro was only invoked conditionally." >&2;}
  19610. { (exit 1); exit 1; }; }
  19611. fi
  19612. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19613. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19614. Usually this means the macro was only invoked conditionally." >&5
  19615. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19616. Usually this means the macro was only invoked conditionally." >&2;}
  19617. { (exit 1); exit 1; }; }
  19618. fi
  19619. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19620. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19621. Usually this means the macro was only invoked conditionally." >&5
  19622. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19623. Usually this means the macro was only invoked conditionally." >&2;}
  19624. { (exit 1); exit 1; }; }
  19625. fi
  19626. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19627. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19628. Usually this means the macro was only invoked conditionally." >&5
  19629. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19630. Usually this means the macro was only invoked conditionally." >&2;}
  19631. { (exit 1); exit 1; }; }
  19632. fi
  19633. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  19634. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19635. Usually this means the macro was only invoked conditionally." >&5
  19636. echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19637. Usually this means the macro was only invoked conditionally." >&2;}
  19638. { (exit 1); exit 1; }; }
  19639. fi
  19640. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  19641. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  19642. Usually this means the macro was only invoked conditionally." >&5
  19643. echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  19644. Usually this means the macro was only invoked conditionally." >&2;}
  19645. { (exit 1); exit 1; }; }
  19646. fi
  19647. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19648. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19649. Usually this means the macro was only invoked conditionally." >&5
  19650. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19651. Usually this means the macro was only invoked conditionally." >&2;}
  19652. { (exit 1); exit 1; }; }
  19653. fi
  19654. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19655. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19656. Usually this means the macro was only invoked conditionally." >&5
  19657. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19658. Usually this means the macro was only invoked conditionally." >&2;}
  19659. { (exit 1); exit 1; }; }
  19660. fi
  19661. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19662. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19663. Usually this means the macro was only invoked conditionally." >&5
  19664. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19665. Usually this means the macro was only invoked conditionally." >&2;}
  19666. { (exit 1); exit 1; }; }
  19667. fi
  19668. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19669. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19670. Usually this means the macro was only invoked conditionally." >&5
  19671. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19672. Usually this means the macro was only invoked conditionally." >&2;}
  19673. { (exit 1); exit 1; }; }
  19674. fi
  19675. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19676. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19677. Usually this means the macro was only invoked conditionally." >&5
  19678. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19679. Usually this means the macro was only invoked conditionally." >&2;}
  19680. { (exit 1); exit 1; }; }
  19681. fi
  19682. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19683. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19684. Usually this means the macro was only invoked conditionally." >&5
  19685. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19686. Usually this means the macro was only invoked conditionally." >&2;}
  19687. { (exit 1); exit 1; }; }
  19688. fi
  19689. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19690. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19691. Usually this means the macro was only invoked conditionally." >&5
  19692. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19693. Usually this means the macro was only invoked conditionally." >&2;}
  19694. { (exit 1); exit 1; }; }
  19695. fi
  19696. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19697. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19698. Usually this means the macro was only invoked conditionally." >&5
  19699. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19700. Usually this means the macro was only invoked conditionally." >&2;}
  19701. { (exit 1); exit 1; }; }
  19702. fi
  19703. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19704. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19705. Usually this means the macro was only invoked conditionally." >&5
  19706. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19707. Usually this means the macro was only invoked conditionally." >&2;}
  19708. { (exit 1); exit 1; }; }
  19709. fi
  19710. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19711. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19712. Usually this means the macro was only invoked conditionally." >&5
  19713. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19714. Usually this means the macro was only invoked conditionally." >&2;}
  19715. { (exit 1); exit 1; }; }
  19716. fi
  19717. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19718. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19719. Usually this means the macro was only invoked conditionally." >&5
  19720. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19721. Usually this means the macro was only invoked conditionally." >&2;}
  19722. { (exit 1); exit 1; }; }
  19723. fi
  19724. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19725. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19726. Usually this means the macro was only invoked conditionally." >&5
  19727. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19728. Usually this means the macro was only invoked conditionally." >&2;}
  19729. { (exit 1); exit 1; }; }
  19730. fi
  19731. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19732. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19733. Usually this means the macro was only invoked conditionally." >&5
  19734. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19735. Usually this means the macro was only invoked conditionally." >&2;}
  19736. { (exit 1); exit 1; }; }
  19737. fi
  19738. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19739. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19740. Usually this means the macro was only invoked conditionally." >&5
  19741. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19742. Usually this means the macro was only invoked conditionally." >&2;}
  19743. { (exit 1); exit 1; }; }
  19744. fi
  19745. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19746. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19747. Usually this means the macro was only invoked conditionally." >&5
  19748. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19749. Usually this means the macro was only invoked conditionally." >&2;}
  19750. { (exit 1); exit 1; }; }
  19751. fi
  19752. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19753. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19754. Usually this means the macro was only invoked conditionally." >&5
  19755. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19756. Usually this means the macro was only invoked conditionally." >&2;}
  19757. { (exit 1); exit 1; }; }
  19758. fi
  19759. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19760. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19761. Usually this means the macro was only invoked conditionally." >&5
  19762. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19763. Usually this means the macro was only invoked conditionally." >&2;}
  19764. { (exit 1); exit 1; }; }
  19765. fi
  19766. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19767. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19768. Usually this means the macro was only invoked conditionally." >&5
  19769. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19770. Usually this means the macro was only invoked conditionally." >&2;}
  19771. { (exit 1); exit 1; }; }
  19772. fi
  19773. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19774. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19775. Usually this means the macro was only invoked conditionally." >&5
  19776. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19777. Usually this means the macro was only invoked conditionally." >&2;}
  19778. { (exit 1); exit 1; }; }
  19779. fi
  19780. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19781. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19782. Usually this means the macro was only invoked conditionally." >&5
  19783. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19784. Usually this means the macro was only invoked conditionally." >&2;}
  19785. { (exit 1); exit 1; }; }
  19786. fi
  19787. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19788. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19789. Usually this means the macro was only invoked conditionally." >&5
  19790. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19791. Usually this means the macro was only invoked conditionally." >&2;}
  19792. { (exit 1); exit 1; }; }
  19793. fi
  19794. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19795. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19796. Usually this means the macro was only invoked conditionally." >&5
  19797. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19798. Usually this means the macro was only invoked conditionally." >&2;}
  19799. { (exit 1); exit 1; }; }
  19800. fi
  19801. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19802. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19803. Usually this means the macro was only invoked conditionally." >&5
  19804. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19805. Usually this means the macro was only invoked conditionally." >&2;}
  19806. { (exit 1); exit 1; }; }
  19807. fi
  19808. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19809. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19810. Usually this means the macro was only invoked conditionally." >&5
  19811. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19812. Usually this means the macro was only invoked conditionally." >&2;}
  19813. { (exit 1); exit 1; }; }
  19814. fi
  19815. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19816. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19817. Usually this means the macro was only invoked conditionally." >&5
  19818. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19819. Usually this means the macro was only invoked conditionally." >&2;}
  19820. { (exit 1); exit 1; }; }
  19821. fi
  19822. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19823. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19824. Usually this means the macro was only invoked conditionally." >&5
  19825. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19826. Usually this means the macro was only invoked conditionally." >&2;}
  19827. { (exit 1); exit 1; }; }
  19828. fi
  19829. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19830. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19831. Usually this means the macro was only invoked conditionally." >&5
  19832. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19833. Usually this means the macro was only invoked conditionally." >&2;}
  19834. { (exit 1); exit 1; }; }
  19835. fi
  19836. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19837. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19838. Usually this means the macro was only invoked conditionally." >&5
  19839. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19840. Usually this means the macro was only invoked conditionally." >&2;}
  19841. { (exit 1); exit 1; }; }
  19842. fi
  19843. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19844. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19845. Usually this means the macro was only invoked conditionally." >&5
  19846. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19847. Usually this means the macro was only invoked conditionally." >&2;}
  19848. { (exit 1); exit 1; }; }
  19849. fi
  19850. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19851. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19852. Usually this means the macro was only invoked conditionally." >&5
  19853. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19854. Usually this means the macro was only invoked conditionally." >&2;}
  19855. { (exit 1); exit 1; }; }
  19856. fi
  19857. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19858. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19859. Usually this means the macro was only invoked conditionally." >&5
  19860. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19861. Usually this means the macro was only invoked conditionally." >&2;}
  19862. { (exit 1); exit 1; }; }
  19863. fi
  19864. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19865. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19866. Usually this means the macro was only invoked conditionally." >&5
  19867. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19868. Usually this means the macro was only invoked conditionally." >&2;}
  19869. { (exit 1); exit 1; }; }
  19870. fi
  19871. : ${CONFIG_STATUS=./config.status}
  19872. ac_clean_files_save=$ac_clean_files
  19873. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19874. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19875. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19876. cat >$CONFIG_STATUS <<_ACEOF
  19877. #! $SHELL
  19878. # Generated by $as_me.
  19879. # Run this file to recreate the current configuration.
  19880. # Compiler output produced by configure, useful for debugging
  19881. # configure, is in config.log if it exists.
  19882. debug=false
  19883. ac_cs_recheck=false
  19884. ac_cs_silent=false
  19885. SHELL=\${CONFIG_SHELL-$SHELL}
  19886. _ACEOF
  19887. cat >>$CONFIG_STATUS <<\_ACEOF
  19888. ## --------------------- ##
  19889. ## M4sh Initialization. ##
  19890. ## --------------------- ##
  19891. # Be more Bourne compatible
  19892. DUALCASE=1; export DUALCASE # for MKS sh
  19893. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19894. emulate sh
  19895. NULLCMD=:
  19896. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19897. # is contrary to our usage. Disable this feature.
  19898. alias -g '${1+"$@"}'='"$@"'
  19899. setopt NO_GLOB_SUBST
  19900. else
  19901. case `(set -o) 2>/dev/null` in
  19902. *posix*) set -o posix ;;
  19903. esac
  19904. fi
  19905. # PATH needs CR
  19906. # Avoid depending upon Character Ranges.
  19907. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19908. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19909. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19910. as_cr_digits='0123456789'
  19911. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19912. # The user is always right.
  19913. if test "${PATH_SEPARATOR+set}" != set; then
  19914. echo "#! /bin/sh" >conf$$.sh
  19915. echo "exit 0" >>conf$$.sh
  19916. chmod +x conf$$.sh
  19917. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19918. PATH_SEPARATOR=';'
  19919. else
  19920. PATH_SEPARATOR=:
  19921. fi
  19922. rm -f conf$$.sh
  19923. fi
  19924. # Support unset when possible.
  19925. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19926. as_unset=unset
  19927. else
  19928. as_unset=false
  19929. fi
  19930. # IFS
  19931. # We need space, tab and new line, in precisely that order. Quoting is
  19932. # there to prevent editors from complaining about space-tab.
  19933. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19934. # splitting by setting IFS to empty value.)
  19935. as_nl='
  19936. '
  19937. IFS=" "" $as_nl"
  19938. # Find who we are. Look in the path if we contain no directory separator.
  19939. case $0 in
  19940. *[\\/]* ) as_myself=$0 ;;
  19941. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19942. for as_dir in $PATH
  19943. do
  19944. IFS=$as_save_IFS
  19945. test -z "$as_dir" && as_dir=.
  19946. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19947. done
  19948. IFS=$as_save_IFS
  19949. ;;
  19950. esac
  19951. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19952. # in which case we are not to be found in the path.
  19953. if test "x$as_myself" = x; then
  19954. as_myself=$0
  19955. fi
  19956. if test ! -f "$as_myself"; then
  19957. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19958. { (exit 1); exit 1; }
  19959. fi
  19960. # Work around bugs in pre-3.0 UWIN ksh.
  19961. for as_var in ENV MAIL MAILPATH
  19962. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19963. done
  19964. PS1='$ '
  19965. PS2='> '
  19966. PS4='+ '
  19967. # NLS nuisances.
  19968. for as_var in \
  19969. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19970. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19971. LC_TELEPHONE LC_TIME
  19972. do
  19973. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19974. eval $as_var=C; export $as_var
  19975. else
  19976. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19977. fi
  19978. done
  19979. # Required to use basename.
  19980. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19981. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19982. as_expr=expr
  19983. else
  19984. as_expr=false
  19985. fi
  19986. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19987. as_basename=basename
  19988. else
  19989. as_basename=false
  19990. fi
  19991. # Name of the executable.
  19992. as_me=`$as_basename -- "$0" ||
  19993. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19994. X"$0" : 'X\(//\)$' \| \
  19995. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19996. echo X/"$0" |
  19997. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19998. s//\1/
  19999. q
  20000. }
  20001. /^X\/\(\/\/\)$/{
  20002. s//\1/
  20003. q
  20004. }
  20005. /^X\/\(\/\).*/{
  20006. s//\1/
  20007. q
  20008. }
  20009. s/.*/./; q'`
  20010. # CDPATH.
  20011. $as_unset CDPATH
  20012. as_lineno_1=$LINENO
  20013. as_lineno_2=$LINENO
  20014. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20015. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20016. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20017. # uniformly replaced by the line number. The first 'sed' inserts a
  20018. # line-number line after each line using $LINENO; the second 'sed'
  20019. # does the real work. The second script uses 'N' to pair each
  20020. # line-number line with the line containing $LINENO, and appends
  20021. # trailing '-' during substitution so that $LINENO is not a special
  20022. # case at line end.
  20023. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20024. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20025. # E. McMahon (1931-1989) for sed's syntax. :-)
  20026. sed -n '
  20027. p
  20028. /[$]LINENO/=
  20029. ' <$as_myself |
  20030. sed '
  20031. s/[$]LINENO.*/&-/
  20032. t lineno
  20033. b
  20034. :lineno
  20035. N
  20036. :loop
  20037. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20038. t loop
  20039. s/-\n.*//
  20040. ' >$as_me.lineno &&
  20041. chmod +x "$as_me.lineno" ||
  20042. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20043. { (exit 1); exit 1; }; }
  20044. # Don't try to exec as it changes $[0], causing all sort of problems
  20045. # (the dirname of $[0] is not the place where we might find the
  20046. # original and so on. Autoconf is especially sensitive to this).
  20047. . "./$as_me.lineno"
  20048. # Exit status is that of the last command.
  20049. exit
  20050. }
  20051. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20052. as_dirname=dirname
  20053. else
  20054. as_dirname=false
  20055. fi
  20056. ECHO_C= ECHO_N= ECHO_T=
  20057. case `echo -n x` in
  20058. -n*)
  20059. case `echo 'x\c'` in
  20060. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20061. *) ECHO_C='\c';;
  20062. esac;;
  20063. *)
  20064. ECHO_N='-n';;
  20065. esac
  20066. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20067. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20068. as_expr=expr
  20069. else
  20070. as_expr=false
  20071. fi
  20072. rm -f conf$$ conf$$.exe conf$$.file
  20073. if test -d conf$$.dir; then
  20074. rm -f conf$$.dir/conf$$.file
  20075. else
  20076. rm -f conf$$.dir
  20077. mkdir conf$$.dir
  20078. fi
  20079. echo >conf$$.file
  20080. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20081. as_ln_s='ln -s'
  20082. # ... but there are two gotchas:
  20083. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20084. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20085. # In both cases, we have to default to `cp -p'.
  20086. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20087. as_ln_s='cp -p'
  20088. elif ln conf$$.file conf$$ 2>/dev/null; then
  20089. as_ln_s=ln
  20090. else
  20091. as_ln_s='cp -p'
  20092. fi
  20093. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20094. rmdir conf$$.dir 2>/dev/null
  20095. if mkdir -p . 2>/dev/null; then
  20096. as_mkdir_p=:
  20097. else
  20098. test -d ./-p && rmdir ./-p
  20099. as_mkdir_p=false
  20100. fi
  20101. if test -x / >/dev/null 2>&1; then
  20102. as_test_x='test -x'
  20103. else
  20104. if ls -dL / >/dev/null 2>&1; then
  20105. as_ls_L_option=L
  20106. else
  20107. as_ls_L_option=
  20108. fi
  20109. as_test_x='
  20110. eval sh -c '\''
  20111. if test -d "$1"; then
  20112. test -d "$1/.";
  20113. else
  20114. case $1 in
  20115. -*)set "./$1";;
  20116. esac;
  20117. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  20118. ???[sx]*):;;*)false;;esac;fi
  20119. '\'' sh
  20120. '
  20121. fi
  20122. as_executable_p=$as_test_x
  20123. # Sed expression to map a string onto a valid CPP name.
  20124. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20125. # Sed expression to map a string onto a valid variable name.
  20126. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20127. exec 6>&1
  20128. # Save the log message, to keep $[0] and so on meaningful, and to
  20129. # report actual input values of CONFIG_FILES etc. instead of their
  20130. # values after options handling.
  20131. ac_log="
  20132. This file was extended by aria2 $as_me 1.1.0, which was
  20133. generated by GNU Autoconf 2.61. Invocation command line was
  20134. CONFIG_FILES = $CONFIG_FILES
  20135. CONFIG_HEADERS = $CONFIG_HEADERS
  20136. CONFIG_LINKS = $CONFIG_LINKS
  20137. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20138. $ $0 $@
  20139. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20140. "
  20141. _ACEOF
  20142. cat >>$CONFIG_STATUS <<_ACEOF
  20143. # Files that config.status was made for.
  20144. config_files="$ac_config_files"
  20145. config_headers="$ac_config_headers"
  20146. config_commands="$ac_config_commands"
  20147. _ACEOF
  20148. cat >>$CONFIG_STATUS <<\_ACEOF
  20149. ac_cs_usage="\
  20150. \`$as_me' instantiates files from templates according to the
  20151. current configuration.
  20152. Usage: $0 [OPTIONS] [FILE]...
  20153. -h, --help print this help, then exit
  20154. -V, --version print version number and configuration settings, then exit
  20155. -q, --quiet do not print progress messages
  20156. -d, --debug don't remove temporary files
  20157. --recheck update $as_me by reconfiguring in the same conditions
  20158. --file=FILE[:TEMPLATE]
  20159. instantiate the configuration file FILE
  20160. --header=FILE[:TEMPLATE]
  20161. instantiate the configuration header FILE
  20162. Configuration files:
  20163. $config_files
  20164. Configuration headers:
  20165. $config_headers
  20166. Configuration commands:
  20167. $config_commands
  20168. Report bugs to <bug-autoconf@gnu.org>."
  20169. _ACEOF
  20170. cat >>$CONFIG_STATUS <<_ACEOF
  20171. ac_cs_version="\\
  20172. aria2 config.status 1.1.0
  20173. configured by $0, generated by GNU Autoconf 2.61,
  20174. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20175. Copyright (C) 2006 Free Software Foundation, Inc.
  20176. This config.status script is free software; the Free Software Foundation
  20177. gives unlimited permission to copy, distribute and modify it."
  20178. ac_pwd='$ac_pwd'
  20179. srcdir='$srcdir'
  20180. INSTALL='$INSTALL'
  20181. MKDIR_P='$MKDIR_P'
  20182. _ACEOF
  20183. cat >>$CONFIG_STATUS <<\_ACEOF
  20184. # If no file are specified by the user, then we need to provide default
  20185. # value. By we need to know if files were specified by the user.
  20186. ac_need_defaults=:
  20187. while test $# != 0
  20188. do
  20189. case $1 in
  20190. --*=*)
  20191. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20192. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20193. ac_shift=:
  20194. ;;
  20195. *)
  20196. ac_option=$1
  20197. ac_optarg=$2
  20198. ac_shift=shift
  20199. ;;
  20200. esac
  20201. case $ac_option in
  20202. # Handling of the options.
  20203. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20204. ac_cs_recheck=: ;;
  20205. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20206. echo "$ac_cs_version"; exit ;;
  20207. --debug | --debu | --deb | --de | --d | -d )
  20208. debug=: ;;
  20209. --file | --fil | --fi | --f )
  20210. $ac_shift
  20211. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20212. ac_need_defaults=false;;
  20213. --header | --heade | --head | --hea )
  20214. $ac_shift
  20215. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20216. ac_need_defaults=false;;
  20217. --he | --h)
  20218. # Conflict between --help and --header
  20219. { echo "$as_me: error: ambiguous option: $1
  20220. Try \`$0 --help' for more information." >&2
  20221. { (exit 1); exit 1; }; };;
  20222. --help | --hel | -h )
  20223. echo "$ac_cs_usage"; exit ;;
  20224. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20225. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20226. ac_cs_silent=: ;;
  20227. # This is an error.
  20228. -*) { echo "$as_me: error: unrecognized option: $1
  20229. Try \`$0 --help' for more information." >&2
  20230. { (exit 1); exit 1; }; } ;;
  20231. *) ac_config_targets="$ac_config_targets $1"
  20232. ac_need_defaults=false ;;
  20233. esac
  20234. shift
  20235. done
  20236. ac_configure_extra_args=
  20237. if $ac_cs_silent; then
  20238. exec 6>/dev/null
  20239. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20240. fi
  20241. _ACEOF
  20242. cat >>$CONFIG_STATUS <<_ACEOF
  20243. if \$ac_cs_recheck; then
  20244. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20245. CONFIG_SHELL=$SHELL
  20246. export CONFIG_SHELL
  20247. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20248. fi
  20249. _ACEOF
  20250. cat >>$CONFIG_STATUS <<\_ACEOF
  20251. exec 5>>config.log
  20252. {
  20253. echo
  20254. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20255. ## Running $as_me. ##
  20256. _ASBOX
  20257. echo "$ac_log"
  20258. } >&5
  20259. _ACEOF
  20260. cat >>$CONFIG_STATUS <<_ACEOF
  20261. #
  20262. # INIT-COMMANDS
  20263. #
  20264. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20265. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  20266. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  20267. # from automake < 1.5.
  20268. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  20269. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  20270. LINGUAS="${LINGUAS-%UNSET%}"
  20271. _ACEOF
  20272. cat >>$CONFIG_STATUS <<\_ACEOF
  20273. # Handling of arguments.
  20274. for ac_config_target in $ac_config_targets
  20275. do
  20276. case $ac_config_target in
  20277. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20278. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20279. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  20280. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20281. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20282. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20283. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20284. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20285. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20286. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20287. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20288. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20289. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20290. { (exit 1); exit 1; }; };;
  20291. esac
  20292. done
  20293. # If the user did not use the arguments to specify the items to instantiate,
  20294. # then the envvar interface is used. Set only those that are not.
  20295. # We use the long form for the default assignment because of an extremely
  20296. # bizarre bug on SunOS 4.1.3.
  20297. if $ac_need_defaults; then
  20298. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20299. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20300. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20301. fi
  20302. # Have a temporary directory for convenience. Make it in the build tree
  20303. # simply because there is no reason against having it here, and in addition,
  20304. # creating and moving files from /tmp can sometimes cause problems.
  20305. # Hook for its removal unless debugging.
  20306. # Note that there is a small window in which the directory will not be cleaned:
  20307. # after its creation but before its name has been assigned to `$tmp'.
  20308. $debug ||
  20309. {
  20310. tmp=
  20311. trap 'exit_status=$?
  20312. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20313. ' 0
  20314. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20315. }
  20316. # Create a (secure) tmp directory for tmp files.
  20317. {
  20318. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20319. test -n "$tmp" && test -d "$tmp"
  20320. } ||
  20321. {
  20322. tmp=./conf$$-$RANDOM
  20323. (umask 077 && mkdir "$tmp")
  20324. } ||
  20325. {
  20326. echo "$me: cannot create a temporary directory in ." >&2
  20327. { (exit 1); exit 1; }
  20328. }
  20329. #
  20330. # Set up the sed scripts for CONFIG_FILES section.
  20331. #
  20332. # No need to generate the scripts if there are no CONFIG_FILES.
  20333. # This happens for instance when ./config.status config.h
  20334. if test -n "$CONFIG_FILES"; then
  20335. _ACEOF
  20336. ac_delim='%!_!# '
  20337. for ac_last_try in false false false false false :; do
  20338. cat >conf$$subs.sed <<_ACEOF
  20339. SHELL!$SHELL$ac_delim
  20340. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20341. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20342. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20343. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20344. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20345. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20346. exec_prefix!$exec_prefix$ac_delim
  20347. prefix!$prefix$ac_delim
  20348. program_transform_name!$program_transform_name$ac_delim
  20349. bindir!$bindir$ac_delim
  20350. sbindir!$sbindir$ac_delim
  20351. libexecdir!$libexecdir$ac_delim
  20352. datarootdir!$datarootdir$ac_delim
  20353. datadir!$datadir$ac_delim
  20354. sysconfdir!$sysconfdir$ac_delim
  20355. sharedstatedir!$sharedstatedir$ac_delim
  20356. localstatedir!$localstatedir$ac_delim
  20357. includedir!$includedir$ac_delim
  20358. oldincludedir!$oldincludedir$ac_delim
  20359. docdir!$docdir$ac_delim
  20360. infodir!$infodir$ac_delim
  20361. htmldir!$htmldir$ac_delim
  20362. dvidir!$dvidir$ac_delim
  20363. pdfdir!$pdfdir$ac_delim
  20364. psdir!$psdir$ac_delim
  20365. libdir!$libdir$ac_delim
  20366. localedir!$localedir$ac_delim
  20367. mandir!$mandir$ac_delim
  20368. DEFS!$DEFS$ac_delim
  20369. ECHO_C!$ECHO_C$ac_delim
  20370. ECHO_N!$ECHO_N$ac_delim
  20371. ECHO_T!$ECHO_T$ac_delim
  20372. LIBS!$LIBS$ac_delim
  20373. build_alias!$build_alias$ac_delim
  20374. host_alias!$host_alias$ac_delim
  20375. target_alias!$target_alias$ac_delim
  20376. build!$build$ac_delim
  20377. build_cpu!$build_cpu$ac_delim
  20378. build_vendor!$build_vendor$ac_delim
  20379. build_os!$build_os$ac_delim
  20380. host!$host$ac_delim
  20381. host_cpu!$host_cpu$ac_delim
  20382. host_vendor!$host_vendor$ac_delim
  20383. host_os!$host_os$ac_delim
  20384. target!$target$ac_delim
  20385. target_cpu!$target_cpu$ac_delim
  20386. target_vendor!$target_vendor$ac_delim
  20387. target_os!$target_os$ac_delim
  20388. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20389. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20390. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20391. am__isrc!$am__isrc$ac_delim
  20392. CYGPATH_W!$CYGPATH_W$ac_delim
  20393. PACKAGE!$PACKAGE$ac_delim
  20394. VERSION!$VERSION$ac_delim
  20395. ACLOCAL!$ACLOCAL$ac_delim
  20396. AUTOCONF!$AUTOCONF$ac_delim
  20397. AUTOMAKE!$AUTOMAKE$ac_delim
  20398. AUTOHEADER!$AUTOHEADER$ac_delim
  20399. MAKEINFO!$MAKEINFO$ac_delim
  20400. install_sh!$install_sh$ac_delim
  20401. STRIP!$STRIP$ac_delim
  20402. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20403. mkdir_p!$mkdir_p$ac_delim
  20404. AWK!$AWK$ac_delim
  20405. SET_MAKE!$SET_MAKE$ac_delim
  20406. am__leading_dot!$am__leading_dot$ac_delim
  20407. AMTAR!$AMTAR$ac_delim
  20408. am__tar!$am__tar$ac_delim
  20409. am__untar!$am__untar$ac_delim
  20410. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20411. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20412. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20413. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20414. CXX!$CXX$ac_delim
  20415. CXXFLAGS!$CXXFLAGS$ac_delim
  20416. LDFLAGS!$LDFLAGS$ac_delim
  20417. CPPFLAGS!$CPPFLAGS$ac_delim
  20418. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20419. EXEEXT!$EXEEXT$ac_delim
  20420. OBJEXT!$OBJEXT$ac_delim
  20421. DEPDIR!$DEPDIR$ac_delim
  20422. am__include!$am__include$ac_delim
  20423. am__quote!$am__quote$ac_delim
  20424. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20425. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20426. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20427. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20428. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20429. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20430. CC!$CC$ac_delim
  20431. CFLAGS!$CFLAGS$ac_delim
  20432. ac_ct_CC!$ac_ct_CC$ac_delim
  20433. CCDEPMODE!$CCDEPMODE$ac_delim
  20434. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20435. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20436. _ACEOF
  20437. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20438. break
  20439. elif $ac_last_try; then
  20440. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20441. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20442. { (exit 1); exit 1; }; }
  20443. else
  20444. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20445. fi
  20446. done
  20447. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20448. if test -n "$ac_eof"; then
  20449. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20450. ac_eof=`expr $ac_eof + 1`
  20451. fi
  20452. cat >>$CONFIG_STATUS <<_ACEOF
  20453. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20454. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20455. _ACEOF
  20456. sed '
  20457. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20458. s/^/s,@/; s/!/@,|#_!!_#|/
  20459. :n
  20460. t n
  20461. s/'"$ac_delim"'$/,g/; t
  20462. s/$/\\/; p
  20463. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20464. ' >>$CONFIG_STATUS <conf$$subs.sed
  20465. rm -f conf$$subs.sed
  20466. cat >>$CONFIG_STATUS <<_ACEOF
  20467. CEOF$ac_eof
  20468. _ACEOF
  20469. ac_delim='%!_!# '
  20470. for ac_last_try in false false false false false :; do
  20471. cat >conf$$subs.sed <<_ACEOF
  20472. RANLIB!$RANLIB$ac_delim
  20473. YACC!$YACC$ac_delim
  20474. YFLAGS!$YFLAGS$ac_delim
  20475. CXXCPP!$CXXCPP$ac_delim
  20476. GREP!$GREP$ac_delim
  20477. EGREP!$EGREP$ac_delim
  20478. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20479. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20480. XML_LIBS!$XML_LIBS$ac_delim
  20481. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20482. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20483. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20484. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20485. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20486. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20487. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20488. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20489. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20490. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20491. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20492. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20493. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20494. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20495. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20496. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20497. ENABLE_SSL_TRUE!$ENABLE_SSL_TRUE$ac_delim
  20498. ENABLE_SSL_FALSE!$ENABLE_SSL_FALSE$ac_delim
  20499. ca_bundle!$ca_bundle$ac_delim
  20500. HAVE_LIBGNUTLS_TRUE!$HAVE_LIBGNUTLS_TRUE$ac_delim
  20501. HAVE_LIBGNUTLS_FALSE!$HAVE_LIBGNUTLS_FALSE$ac_delim
  20502. HAVE_LIBSSL_TRUE!$HAVE_LIBSSL_TRUE$ac_delim
  20503. HAVE_LIBSSL_FALSE!$HAVE_LIBSSL_FALSE$ac_delim
  20504. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20505. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20506. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20507. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20508. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20509. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20510. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20511. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20512. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20513. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20514. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20515. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20516. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20517. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20518. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20519. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20520. ALLOCA!$ALLOCA$ac_delim
  20521. USE_NLS!$USE_NLS$ac_delim
  20522. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20523. MSGFMT!$MSGFMT$ac_delim
  20524. GMSGFMT!$GMSGFMT$ac_delim
  20525. MSGFMT_015!$MSGFMT_015$ac_delim
  20526. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20527. XGETTEXT!$XGETTEXT$ac_delim
  20528. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20529. MSGMERGE!$MSGMERGE$ac_delim
  20530. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20531. GLIBC2!$GLIBC2$ac_delim
  20532. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20533. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20534. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20535. LIBPTH!$LIBPTH$ac_delim
  20536. LTLIBPTH!$LTLIBPTH$ac_delim
  20537. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20538. LIBTHREAD!$LIBTHREAD$ac_delim
  20539. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20540. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20541. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20542. LIBICONV!$LIBICONV$ac_delim
  20543. LTLIBICONV!$LTLIBICONV$ac_delim
  20544. INTLBISON!$INTLBISON$ac_delim
  20545. GLIBC21!$GLIBC21$ac_delim
  20546. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20547. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20548. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20549. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20550. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20551. WOE32DLL!$WOE32DLL$ac_delim
  20552. WOE32!$WOE32$ac_delim
  20553. WINDRES!$WINDRES$ac_delim
  20554. LTLIBC!$LTLIBC$ac_delim
  20555. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20556. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20557. CATOBJEXT!$CATOBJEXT$ac_delim
  20558. DATADIRNAME!$DATADIRNAME$ac_delim
  20559. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20560. GENCAT!$GENCAT$ac_delim
  20561. INTLOBJS!$INTLOBJS$ac_delim
  20562. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20563. INTLLIBS!$INTLLIBS$ac_delim
  20564. LIBINTL!$LIBINTL$ac_delim
  20565. LTLIBINTL!$LTLIBINTL$ac_delim
  20566. POSUB!$POSUB$ac_delim
  20567. LIBOBJS!$LIBOBJS$ac_delim
  20568. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20569. _ACEOF
  20570. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20571. break
  20572. elif $ac_last_try; then
  20573. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20574. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20575. { (exit 1); exit 1; }; }
  20576. else
  20577. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20578. fi
  20579. done
  20580. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20581. if test -n "$ac_eof"; then
  20582. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20583. ac_eof=`expr $ac_eof + 1`
  20584. fi
  20585. cat >>$CONFIG_STATUS <<_ACEOF
  20586. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20587. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20588. _ACEOF
  20589. sed '
  20590. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20591. s/^/s,@/; s/!/@,|#_!!_#|/
  20592. :n
  20593. t n
  20594. s/'"$ac_delim"'$/,g/; t
  20595. s/$/\\/; p
  20596. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20597. ' >>$CONFIG_STATUS <conf$$subs.sed
  20598. rm -f conf$$subs.sed
  20599. cat >>$CONFIG_STATUS <<_ACEOF
  20600. CEOF$ac_eof
  20601. _ACEOF
  20602. ac_delim='%!_!# '
  20603. for ac_last_try in false false false false false :; do
  20604. cat >conf$$subs.sed <<_ACEOF
  20605. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20606. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20607. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20608. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20609. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20610. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20611. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20612. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20613. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20614. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20615. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20616. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20617. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20618. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20619. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20620. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20621. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20622. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20623. _ACEOF
  20624. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
  20625. break
  20626. elif $ac_last_try; then
  20627. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20628. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20629. { (exit 1); exit 1; }; }
  20630. else
  20631. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20632. fi
  20633. done
  20634. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20635. if test -n "$ac_eof"; then
  20636. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20637. ac_eof=`expr $ac_eof + 1`
  20638. fi
  20639. cat >>$CONFIG_STATUS <<_ACEOF
  20640. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20641. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20642. _ACEOF
  20643. sed '
  20644. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20645. s/^/s,@/; s/!/@,|#_!!_#|/
  20646. :n
  20647. t n
  20648. s/'"$ac_delim"'$/,g/; t
  20649. s/$/\\/; p
  20650. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20651. ' >>$CONFIG_STATUS <conf$$subs.sed
  20652. rm -f conf$$subs.sed
  20653. cat >>$CONFIG_STATUS <<_ACEOF
  20654. :end
  20655. s/|#_!!_#|//g
  20656. CEOF$ac_eof
  20657. _ACEOF
  20658. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20659. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20660. # trailing colons and then remove the whole line if VPATH becomes empty
  20661. # (actually we leave an empty line to preserve line numbers).
  20662. if test "x$srcdir" = x.; then
  20663. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20664. s/:*\$(srcdir):*/:/
  20665. s/:*\${srcdir}:*/:/
  20666. s/:*@srcdir@:*/:/
  20667. s/^\([^=]*=[ ]*\):*/\1/
  20668. s/:*$//
  20669. s/^[^=]*=[ ]*$//
  20670. }'
  20671. fi
  20672. cat >>$CONFIG_STATUS <<\_ACEOF
  20673. fi # test -n "$CONFIG_FILES"
  20674. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20675. do
  20676. case $ac_tag in
  20677. :[FHLC]) ac_mode=$ac_tag; continue;;
  20678. esac
  20679. case $ac_mode$ac_tag in
  20680. :[FHL]*:*);;
  20681. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20682. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20683. { (exit 1); exit 1; }; };;
  20684. :[FH]-) ac_tag=-:-;;
  20685. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20686. esac
  20687. ac_save_IFS=$IFS
  20688. IFS=:
  20689. set x $ac_tag
  20690. IFS=$ac_save_IFS
  20691. shift
  20692. ac_file=$1
  20693. shift
  20694. case $ac_mode in
  20695. :L) ac_source=$1;;
  20696. :[FH])
  20697. ac_file_inputs=
  20698. for ac_f
  20699. do
  20700. case $ac_f in
  20701. -) ac_f="$tmp/stdin";;
  20702. *) # Look for the file first in the build tree, then in the source tree
  20703. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20704. # because $ac_f cannot contain `:'.
  20705. test -f "$ac_f" ||
  20706. case $ac_f in
  20707. [\\/$]*) false;;
  20708. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20709. esac ||
  20710. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20711. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20712. { (exit 1); exit 1; }; };;
  20713. esac
  20714. ac_file_inputs="$ac_file_inputs $ac_f"
  20715. done
  20716. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20717. # use $as_me), people would be surprised to read:
  20718. # /* config.h. Generated by config.status. */
  20719. configure_input="Generated from "`IFS=:
  20720. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20721. if test x"$ac_file" != x-; then
  20722. configure_input="$ac_file. $configure_input"
  20723. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20724. echo "$as_me: creating $ac_file" >&6;}
  20725. fi
  20726. case $ac_tag in
  20727. *:-:* | *:-) cat >"$tmp/stdin";;
  20728. esac
  20729. ;;
  20730. esac
  20731. ac_dir=`$as_dirname -- "$ac_file" ||
  20732. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20733. X"$ac_file" : 'X\(//\)[^/]' \| \
  20734. X"$ac_file" : 'X\(//\)$' \| \
  20735. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20736. echo X"$ac_file" |
  20737. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20738. s//\1/
  20739. q
  20740. }
  20741. /^X\(\/\/\)[^/].*/{
  20742. s//\1/
  20743. q
  20744. }
  20745. /^X\(\/\/\)$/{
  20746. s//\1/
  20747. q
  20748. }
  20749. /^X\(\/\).*/{
  20750. s//\1/
  20751. q
  20752. }
  20753. s/.*/./; q'`
  20754. { as_dir="$ac_dir"
  20755. case $as_dir in #(
  20756. -*) as_dir=./$as_dir;;
  20757. esac
  20758. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20759. as_dirs=
  20760. while :; do
  20761. case $as_dir in #(
  20762. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20763. *) as_qdir=$as_dir;;
  20764. esac
  20765. as_dirs="'$as_qdir' $as_dirs"
  20766. as_dir=`$as_dirname -- "$as_dir" ||
  20767. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20768. X"$as_dir" : 'X\(//\)[^/]' \| \
  20769. X"$as_dir" : 'X\(//\)$' \| \
  20770. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20771. echo X"$as_dir" |
  20772. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20773. s//\1/
  20774. q
  20775. }
  20776. /^X\(\/\/\)[^/].*/{
  20777. s//\1/
  20778. q
  20779. }
  20780. /^X\(\/\/\)$/{
  20781. s//\1/
  20782. q
  20783. }
  20784. /^X\(\/\).*/{
  20785. s//\1/
  20786. q
  20787. }
  20788. s/.*/./; q'`
  20789. test -d "$as_dir" && break
  20790. done
  20791. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20792. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20793. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20794. { (exit 1); exit 1; }; }; }
  20795. ac_builddir=.
  20796. case "$ac_dir" in
  20797. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20798. *)
  20799. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20800. # A ".." for each directory in $ac_dir_suffix.
  20801. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20802. case $ac_top_builddir_sub in
  20803. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20804. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20805. esac ;;
  20806. esac
  20807. ac_abs_top_builddir=$ac_pwd
  20808. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20809. # for backward compatibility:
  20810. ac_top_builddir=$ac_top_build_prefix
  20811. case $srcdir in
  20812. .) # We are building in place.
  20813. ac_srcdir=.
  20814. ac_top_srcdir=$ac_top_builddir_sub
  20815. ac_abs_top_srcdir=$ac_pwd ;;
  20816. [\\/]* | ?:[\\/]* ) # Absolute name.
  20817. ac_srcdir=$srcdir$ac_dir_suffix;
  20818. ac_top_srcdir=$srcdir
  20819. ac_abs_top_srcdir=$srcdir ;;
  20820. *) # Relative name.
  20821. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20822. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20823. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20824. esac
  20825. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20826. case $ac_mode in
  20827. :F)
  20828. #
  20829. # CONFIG_FILE
  20830. #
  20831. case $INSTALL in
  20832. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20833. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20834. esac
  20835. ac_MKDIR_P=$MKDIR_P
  20836. case $MKDIR_P in
  20837. [\\/$]* | ?:[\\/]* ) ;;
  20838. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20839. esac
  20840. _ACEOF
  20841. cat >>$CONFIG_STATUS <<\_ACEOF
  20842. # If the template does not know about datarootdir, expand it.
  20843. # FIXME: This hack should be removed a few years after 2.60.
  20844. ac_datarootdir_hack=; ac_datarootdir_seen=
  20845. case `sed -n '/datarootdir/ {
  20846. p
  20847. q
  20848. }
  20849. /@datadir@/p
  20850. /@docdir@/p
  20851. /@infodir@/p
  20852. /@localedir@/p
  20853. /@mandir@/p
  20854. ' $ac_file_inputs` in
  20855. *datarootdir*) ac_datarootdir_seen=yes;;
  20856. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20857. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20858. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20859. _ACEOF
  20860. cat >>$CONFIG_STATUS <<_ACEOF
  20861. ac_datarootdir_hack='
  20862. s&@datadir@&$datadir&g
  20863. s&@docdir@&$docdir&g
  20864. s&@infodir@&$infodir&g
  20865. s&@localedir@&$localedir&g
  20866. s&@mandir@&$mandir&g
  20867. s&\\\${datarootdir}&$datarootdir&g' ;;
  20868. esac
  20869. _ACEOF
  20870. # Neutralize VPATH when `$srcdir' = `.'.
  20871. # Shell code in configure.ac might set extrasub.
  20872. # FIXME: do we really want to maintain this feature?
  20873. cat >>$CONFIG_STATUS <<_ACEOF
  20874. sed "$ac_vpsub
  20875. $extrasub
  20876. _ACEOF
  20877. cat >>$CONFIG_STATUS <<\_ACEOF
  20878. :t
  20879. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20880. s&@configure_input@&$configure_input&;t t
  20881. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20882. s&@srcdir@&$ac_srcdir&;t t
  20883. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20884. s&@top_srcdir@&$ac_top_srcdir&;t t
  20885. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20886. s&@builddir@&$ac_builddir&;t t
  20887. s&@abs_builddir@&$ac_abs_builddir&;t t
  20888. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20889. s&@INSTALL@&$ac_INSTALL&;t t
  20890. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20891. $ac_datarootdir_hack
  20892. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20893. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20894. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20895. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20896. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20897. which seems to be undefined. Please make sure it is defined." >&5
  20898. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20899. which seems to be undefined. Please make sure it is defined." >&2;}
  20900. rm -f "$tmp/stdin"
  20901. case $ac_file in
  20902. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20903. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20904. esac
  20905. ;;
  20906. :H)
  20907. #
  20908. # CONFIG_HEADER
  20909. #
  20910. _ACEOF
  20911. # Transform confdefs.h into a sed script `conftest.defines', that
  20912. # substitutes the proper values into config.h.in to produce config.h.
  20913. rm -f conftest.defines conftest.tail
  20914. # First, append a space to every undef/define line, to ease matching.
  20915. echo 's/$/ /' >conftest.defines
  20916. # Then, protect against being on the right side of a sed subst, or in
  20917. # an unquoted here document, in config.status. If some macros were
  20918. # called several times there might be several #defines for the same
  20919. # symbol, which is useless. But do not sort them, since the last
  20920. # AC_DEFINE must be honored.
  20921. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20922. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20923. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20924. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20925. # just an empty string.
  20926. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20927. ac_dB='\\)[ (].*,\\1define\\2'
  20928. ac_dC=' '
  20929. ac_dD=' ,'
  20930. uniq confdefs.h |
  20931. sed -n '
  20932. t rset
  20933. :rset
  20934. s/^[ ]*#[ ]*define[ ][ ]*//
  20935. t ok
  20936. d
  20937. :ok
  20938. s/[\\&,]/\\&/g
  20939. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20940. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20941. ' >>conftest.defines
  20942. # Remove the space that was appended to ease matching.
  20943. # Then replace #undef with comments. This is necessary, for
  20944. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20945. # on some systems where configure will not decide to define it.
  20946. # (The regexp can be short, since the line contains either #define or #undef.)
  20947. echo 's/ $//
  20948. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20949. # Break up conftest.defines:
  20950. ac_max_sed_lines=50
  20951. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20952. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20953. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20954. # et cetera.
  20955. ac_in='$ac_file_inputs'
  20956. ac_out='"$tmp/out1"'
  20957. ac_nxt='"$tmp/out2"'
  20958. while :
  20959. do
  20960. # Write a here document:
  20961. cat >>$CONFIG_STATUS <<_ACEOF
  20962. # First, check the format of the line:
  20963. cat >"\$tmp/defines.sed" <<\\CEOF
  20964. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20965. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20966. b
  20967. :def
  20968. _ACEOF
  20969. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20970. echo 'CEOF
  20971. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20972. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20973. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20974. grep . conftest.tail >/dev/null || break
  20975. rm -f conftest.defines
  20976. mv conftest.tail conftest.defines
  20977. done
  20978. rm -f conftest.defines conftest.tail
  20979. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20980. cat >>$CONFIG_STATUS <<\_ACEOF
  20981. if test x"$ac_file" != x-; then
  20982. echo "/* $configure_input */" >"$tmp/config.h"
  20983. cat "$ac_result" >>"$tmp/config.h"
  20984. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20985. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20986. echo "$as_me: $ac_file is unchanged" >&6;}
  20987. else
  20988. rm -f $ac_file
  20989. mv "$tmp/config.h" $ac_file
  20990. fi
  20991. else
  20992. echo "/* $configure_input */"
  20993. cat "$ac_result"
  20994. fi
  20995. rm -f "$tmp/out12"
  20996. # Compute $ac_file's index in $config_headers.
  20997. _am_arg=$ac_file
  20998. _am_stamp_count=1
  20999. for _am_header in $config_headers :; do
  21000. case $_am_header in
  21001. $_am_arg | $_am_arg:* )
  21002. break ;;
  21003. * )
  21004. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21005. esac
  21006. done
  21007. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21008. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21009. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21010. X"$_am_arg" : 'X\(//\)$' \| \
  21011. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21012. echo X"$_am_arg" |
  21013. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21014. s//\1/
  21015. q
  21016. }
  21017. /^X\(\/\/\)[^/].*/{
  21018. s//\1/
  21019. q
  21020. }
  21021. /^X\(\/\/\)$/{
  21022. s//\1/
  21023. q
  21024. }
  21025. /^X\(\/\).*/{
  21026. s//\1/
  21027. q
  21028. }
  21029. s/.*/./; q'`/stamp-h$_am_stamp_count
  21030. ;;
  21031. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21032. echo "$as_me: executing $ac_file commands" >&6;}
  21033. ;;
  21034. esac
  21035. case $ac_file$ac_mode in
  21036. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21037. # Strip MF so we end up with the name of the file.
  21038. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21039. # Check whether this is an Automake generated Makefile or not.
  21040. # We used to match only the files named `Makefile.in', but
  21041. # some people rename them; so instead we look at the file content.
  21042. # Grep'ing the first line is not enough: some people post-process
  21043. # each Makefile.in and add a new line on top of each file to say so.
  21044. # Grep'ing the whole file is not good either: AIX grep has a line
  21045. # limit of 2048, but all sed's we know have understand at least 4000.
  21046. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21047. dirpart=`$as_dirname -- "$mf" ||
  21048. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21049. X"$mf" : 'X\(//\)[^/]' \| \
  21050. X"$mf" : 'X\(//\)$' \| \
  21051. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21052. echo X"$mf" |
  21053. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21054. s//\1/
  21055. q
  21056. }
  21057. /^X\(\/\/\)[^/].*/{
  21058. s//\1/
  21059. q
  21060. }
  21061. /^X\(\/\/\)$/{
  21062. s//\1/
  21063. q
  21064. }
  21065. /^X\(\/\).*/{
  21066. s//\1/
  21067. q
  21068. }
  21069. s/.*/./; q'`
  21070. else
  21071. continue
  21072. fi
  21073. # Extract the definition of DEPDIR, am__include, and am__quote
  21074. # from the Makefile without running `make'.
  21075. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21076. test -z "$DEPDIR" && continue
  21077. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21078. test -z "am__include" && continue
  21079. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21080. # When using ansi2knr, U may be empty or an underscore; expand it
  21081. U=`sed -n 's/^U = //p' < "$mf"`
  21082. # Find all dependency output files, they are included files with
  21083. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21084. # simplest approach to changing $(DEPDIR) to its actual value in the
  21085. # expansion.
  21086. for file in `sed -n "
  21087. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21088. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21089. # Make sure the directory exists.
  21090. test -f "$dirpart/$file" && continue
  21091. fdir=`$as_dirname -- "$file" ||
  21092. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21093. X"$file" : 'X\(//\)[^/]' \| \
  21094. X"$file" : 'X\(//\)$' \| \
  21095. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21096. echo X"$file" |
  21097. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21098. s//\1/
  21099. q
  21100. }
  21101. /^X\(\/\/\)[^/].*/{
  21102. s//\1/
  21103. q
  21104. }
  21105. /^X\(\/\/\)$/{
  21106. s//\1/
  21107. q
  21108. }
  21109. /^X\(\/\).*/{
  21110. s//\1/
  21111. q
  21112. }
  21113. s/.*/./; q'`
  21114. { as_dir=$dirpart/$fdir
  21115. case $as_dir in #(
  21116. -*) as_dir=./$as_dir;;
  21117. esac
  21118. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21119. as_dirs=
  21120. while :; do
  21121. case $as_dir in #(
  21122. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21123. *) as_qdir=$as_dir;;
  21124. esac
  21125. as_dirs="'$as_qdir' $as_dirs"
  21126. as_dir=`$as_dirname -- "$as_dir" ||
  21127. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21128. X"$as_dir" : 'X\(//\)[^/]' \| \
  21129. X"$as_dir" : 'X\(//\)$' \| \
  21130. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21131. echo X"$as_dir" |
  21132. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21133. s//\1/
  21134. q
  21135. }
  21136. /^X\(\/\/\)[^/].*/{
  21137. s//\1/
  21138. q
  21139. }
  21140. /^X\(\/\/\)$/{
  21141. s//\1/
  21142. q
  21143. }
  21144. /^X\(\/\).*/{
  21145. s//\1/
  21146. q
  21147. }
  21148. s/.*/./; q'`
  21149. test -d "$as_dir" && break
  21150. done
  21151. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21152. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21153. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21154. { (exit 1); exit 1; }; }; }
  21155. # echo "creating $dirpart/$file"
  21156. echo '# dummy' > "$dirpart/$file"
  21157. done
  21158. done
  21159. ;;
  21160. "po-directories":C)
  21161. for ac_file in $CONFIG_FILES; do
  21162. # Support "outfile[:infile[:infile...]]"
  21163. case "$ac_file" in
  21164. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21165. esac
  21166. # PO directories have a Makefile.in generated from Makefile.in.in.
  21167. case "$ac_file" in */Makefile.in)
  21168. # Adjust a relative srcdir.
  21169. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  21170. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  21171. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  21172. # In autoconf-2.13 it is called $ac_given_srcdir.
  21173. # In autoconf-2.50 it is called $srcdir.
  21174. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  21175. case "$ac_given_srcdir" in
  21176. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  21177. /*) top_srcdir="$ac_given_srcdir" ;;
  21178. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  21179. esac
  21180. # Treat a directory as a PO directory if and only if it has a
  21181. # POTFILES.in file. This allows packages to have multiple PO
  21182. # directories under different names or in different locations.
  21183. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  21184. rm -f "$ac_dir/POTFILES"
  21185. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  21186. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  21187. POMAKEFILEDEPS="POTFILES.in"
  21188. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  21189. # on $ac_dir but don't depend on user-specified configuration
  21190. # parameters.
  21191. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  21192. # The LINGUAS file contains the set of available languages.
  21193. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  21194. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  21195. fi
  21196. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  21197. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21198. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  21199. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  21200. else
  21201. # The set of available languages was given in configure.in.
  21202. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21203. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  21204. fi
  21205. # Compute POFILES
  21206. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21207. # Compute UPDATEPOFILES
  21208. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21209. # Compute DUMMYPOFILES
  21210. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21211. # Compute GMOFILES
  21212. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21213. case "$ac_given_srcdir" in
  21214. .) srcdirpre= ;;
  21215. *) srcdirpre='$(srcdir)/' ;;
  21216. esac
  21217. POFILES=
  21218. UPDATEPOFILES=
  21219. DUMMYPOFILES=
  21220. GMOFILES=
  21221. for lang in $ALL_LINGUAS; do
  21222. POFILES="$POFILES $srcdirpre$lang.po"
  21223. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  21224. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  21225. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  21226. done
  21227. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  21228. # environment variable.
  21229. INST_LINGUAS=
  21230. if test -n "$ALL_LINGUAS"; then
  21231. for presentlang in $ALL_LINGUAS; do
  21232. useit=no
  21233. if test "%UNSET%" != "$LINGUAS"; then
  21234. desiredlanguages="$LINGUAS"
  21235. else
  21236. desiredlanguages="$ALL_LINGUAS"
  21237. fi
  21238. for desiredlang in $desiredlanguages; do
  21239. # Use the presentlang catalog if desiredlang is
  21240. # a. equal to presentlang, or
  21241. # b. a variant of presentlang (because in this case,
  21242. # presentlang can be used as a fallback for messages
  21243. # which are not translated in the desiredlang catalog).
  21244. case "$desiredlang" in
  21245. "$presentlang"*) useit=yes;;
  21246. esac
  21247. done
  21248. if test $useit = yes; then
  21249. INST_LINGUAS="$INST_LINGUAS $presentlang"
  21250. fi
  21251. done
  21252. fi
  21253. CATALOGS=
  21254. if test -n "$INST_LINGUAS"; then
  21255. for lang in $INST_LINGUAS; do
  21256. CATALOGS="$CATALOGS $lang.gmo"
  21257. done
  21258. fi
  21259. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  21260. 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"
  21261. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  21262. if test -f "$f"; then
  21263. case "$f" in
  21264. *.orig | *.bak | *~) ;;
  21265. *) cat "$f" >> "$ac_dir/Makefile" ;;
  21266. esac
  21267. fi
  21268. done
  21269. fi
  21270. ;;
  21271. esac
  21272. done ;;
  21273. esac
  21274. done # for ac_tag
  21275. { (exit 0); exit 0; }
  21276. _ACEOF
  21277. chmod +x $CONFIG_STATUS
  21278. ac_clean_files=$ac_clean_files_save
  21279. # configure is writing to config.log, and then calls config.status.
  21280. # config.status does its own redirection, appending to config.log.
  21281. # Unfortunately, on DOS this fails, as config.log is still kept open
  21282. # by configure, so config.status won't be able to write to it; its
  21283. # output is simply discarded. So we exec the FD to /dev/null,
  21284. # effectively closing config.log, so it can be properly (re)opened and
  21285. # appended to by config.status. When coming back to configure, we
  21286. # need to make the FD available again.
  21287. if test "$no_create" != yes; then
  21288. ac_cs_success=:
  21289. ac_config_status_args=
  21290. test "$silent" = yes &&
  21291. ac_config_status_args="$ac_config_status_args --quiet"
  21292. exec 5>/dev/null
  21293. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21294. exec 5>>config.log
  21295. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21296. # would make configure fail if this is the last instruction.
  21297. $ac_cs_success || { (exit 1); exit 1; }
  21298. fi
  21299. echo " "
  21300. echo "Build: $build"
  21301. echo "Target: $target"
  21302. echo "Install prefix: $prefix"
  21303. echo "CFLAGS: $CFLAGS"
  21304. echo "CPPFLAGS: $CPPFLAGS"
  21305. echo "LDFLAGS: $LDFLAGS"
  21306. echo "LIBS: $LIBS"
  21307. echo "SQLite3: $have_sqlite3"
  21308. echo "GnuTLS: $have_libgnutls"
  21309. echo "OpenSSL: $have_openssl"
  21310. echo "CA Bundle: $ca_bundle"
  21311. echo "LibXML2: $have_libxml2"
  21312. echo "LibExpat: $have_libexpat"
  21313. echo "LibCares: $have_libcares"
  21314. echo "Libz: $have_libz"
  21315. echo "Bittorrent: $enable_bittorrent"
  21316. echo "Metalink: $enable_metalink"