configure 673 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2 1.2.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.2.0'
  496. PACKAGE_STRING='aria2 1.2.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_EPOLL_TRUE
  731. HAVE_EPOLL_FALSE
  732. HAVE_ASCTIME_R_TRUE
  733. HAVE_ASCTIME_R_FALSE
  734. HAVE_BASENAME_TRUE
  735. HAVE_BASENAME_FALSE
  736. HAVE_GAI_STRERROR_TRUE
  737. HAVE_GAI_STRERROR_FALSE
  738. HAVE_GETADDRINFO_TRUE
  739. HAVE_GETADDRINFO_FALSE
  740. HAVE_GETTIMEOFDAY_TRUE
  741. HAVE_GETTIMEOFDAY_FALSE
  742. HAVE_INET_ATON_TRUE
  743. HAVE_INET_ATON_FALSE
  744. HAVE_LOCALTIME_R_TRUE
  745. HAVE_LOCALTIME_R_FALSE
  746. HAVE_STRPTIME_TRUE
  747. HAVE_STRPTIME_FALSE
  748. HAVE_TIMEGM_TRUE
  749. HAVE_TIMEGM_FALSE
  750. LTLIBOBJS'
  751. ac_subst_files=''
  752. ac_precious_vars='build_alias
  753. host_alias
  754. target_alias
  755. CXX
  756. CXXFLAGS
  757. LDFLAGS
  758. LIBS
  759. CPPFLAGS
  760. CCC
  761. CC
  762. CFLAGS
  763. YACC
  764. YFLAGS
  765. CXXCPP'
  766. # Initialize some variables set by options.
  767. ac_init_help=
  768. ac_init_version=false
  769. # The variables have the same names as the options, with
  770. # dashes changed to underlines.
  771. cache_file=/dev/null
  772. exec_prefix=NONE
  773. no_create=
  774. no_recursion=
  775. prefix=NONE
  776. program_prefix=NONE
  777. program_suffix=NONE
  778. program_transform_name=s,x,x,
  779. silent=
  780. site=
  781. srcdir=
  782. verbose=
  783. x_includes=NONE
  784. x_libraries=NONE
  785. # Installation directory options.
  786. # These are left unexpanded so users can "make install exec_prefix=/foo"
  787. # and all the variables that are supposed to be based on exec_prefix
  788. # by default will actually change.
  789. # Use braces instead of parens because sh, perl, etc. also accept them.
  790. # (The list follows the same order as the GNU Coding Standards.)
  791. bindir='${exec_prefix}/bin'
  792. sbindir='${exec_prefix}/sbin'
  793. libexecdir='${exec_prefix}/libexec'
  794. datarootdir='${prefix}/share'
  795. datadir='${datarootdir}'
  796. sysconfdir='${prefix}/etc'
  797. sharedstatedir='${prefix}/com'
  798. localstatedir='${prefix}/var'
  799. includedir='${prefix}/include'
  800. oldincludedir='/usr/include'
  801. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  802. infodir='${datarootdir}/info'
  803. htmldir='${docdir}'
  804. dvidir='${docdir}'
  805. pdfdir='${docdir}'
  806. psdir='${docdir}'
  807. libdir='${exec_prefix}/lib'
  808. localedir='${datarootdir}/locale'
  809. mandir='${datarootdir}/man'
  810. ac_prev=
  811. ac_dashdash=
  812. for ac_option
  813. do
  814. # If the previous option needs an argument, assign it.
  815. if test -n "$ac_prev"; then
  816. eval $ac_prev=\$ac_option
  817. ac_prev=
  818. continue
  819. fi
  820. case $ac_option in
  821. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  822. *) ac_optarg=yes ;;
  823. esac
  824. # Accept the important Cygnus configure options, so we can diagnose typos.
  825. case $ac_dashdash$ac_option in
  826. --)
  827. ac_dashdash=yes ;;
  828. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  829. ac_prev=bindir ;;
  830. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  831. bindir=$ac_optarg ;;
  832. -build | --build | --buil | --bui | --bu)
  833. ac_prev=build_alias ;;
  834. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  835. build_alias=$ac_optarg ;;
  836. -cache-file | --cache-file | --cache-fil | --cache-fi \
  837. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  838. ac_prev=cache_file ;;
  839. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  840. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  841. cache_file=$ac_optarg ;;
  842. --config-cache | -C)
  843. cache_file=config.cache ;;
  844. -datadir | --datadir | --datadi | --datad)
  845. ac_prev=datadir ;;
  846. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  847. datadir=$ac_optarg ;;
  848. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  849. | --dataroo | --dataro | --datar)
  850. ac_prev=datarootdir ;;
  851. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  852. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  853. datarootdir=$ac_optarg ;;
  854. -disable-* | --disable-*)
  855. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  856. # Reject names that are not valid shell variable names.
  857. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  858. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  859. { (exit 1); exit 1; }; }
  860. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  861. eval enable_$ac_feature=no ;;
  862. -docdir | --docdir | --docdi | --doc | --do)
  863. ac_prev=docdir ;;
  864. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  865. docdir=$ac_optarg ;;
  866. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  867. ac_prev=dvidir ;;
  868. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  869. dvidir=$ac_optarg ;;
  870. -enable-* | --enable-*)
  871. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  872. # Reject names that are not valid shell variable names.
  873. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  874. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  875. { (exit 1); exit 1; }; }
  876. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  877. eval enable_$ac_feature=\$ac_optarg ;;
  878. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  879. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  880. | --exec | --exe | --ex)
  881. ac_prev=exec_prefix ;;
  882. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  883. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  884. | --exec=* | --exe=* | --ex=*)
  885. exec_prefix=$ac_optarg ;;
  886. -gas | --gas | --ga | --g)
  887. # Obsolete; use --with-gas.
  888. with_gas=yes ;;
  889. -help | --help | --hel | --he | -h)
  890. ac_init_help=long ;;
  891. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  892. ac_init_help=recursive ;;
  893. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  894. ac_init_help=short ;;
  895. -host | --host | --hos | --ho)
  896. ac_prev=host_alias ;;
  897. -host=* | --host=* | --hos=* | --ho=*)
  898. host_alias=$ac_optarg ;;
  899. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  900. ac_prev=htmldir ;;
  901. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  902. | --ht=*)
  903. htmldir=$ac_optarg ;;
  904. -includedir | --includedir | --includedi | --included | --include \
  905. | --includ | --inclu | --incl | --inc)
  906. ac_prev=includedir ;;
  907. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  908. | --includ=* | --inclu=* | --incl=* | --inc=*)
  909. includedir=$ac_optarg ;;
  910. -infodir | --infodir | --infodi | --infod | --info | --inf)
  911. ac_prev=infodir ;;
  912. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  913. infodir=$ac_optarg ;;
  914. -libdir | --libdir | --libdi | --libd)
  915. ac_prev=libdir ;;
  916. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  917. libdir=$ac_optarg ;;
  918. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  919. | --libexe | --libex | --libe)
  920. ac_prev=libexecdir ;;
  921. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  922. | --libexe=* | --libex=* | --libe=*)
  923. libexecdir=$ac_optarg ;;
  924. -localedir | --localedir | --localedi | --localed | --locale)
  925. ac_prev=localedir ;;
  926. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  927. localedir=$ac_optarg ;;
  928. -localstatedir | --localstatedir | --localstatedi | --localstated \
  929. | --localstate | --localstat | --localsta | --localst | --locals)
  930. ac_prev=localstatedir ;;
  931. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  932. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  933. localstatedir=$ac_optarg ;;
  934. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  935. ac_prev=mandir ;;
  936. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  937. mandir=$ac_optarg ;;
  938. -nfp | --nfp | --nf)
  939. # Obsolete; use --without-fp.
  940. with_fp=no ;;
  941. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  942. | --no-cr | --no-c | -n)
  943. no_create=yes ;;
  944. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  945. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  946. no_recursion=yes ;;
  947. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  948. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  949. | --oldin | --oldi | --old | --ol | --o)
  950. ac_prev=oldincludedir ;;
  951. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  952. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  953. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  954. oldincludedir=$ac_optarg ;;
  955. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  956. ac_prev=prefix ;;
  957. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  958. prefix=$ac_optarg ;;
  959. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  960. | --program-pre | --program-pr | --program-p)
  961. ac_prev=program_prefix ;;
  962. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  963. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  964. program_prefix=$ac_optarg ;;
  965. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  966. | --program-suf | --program-su | --program-s)
  967. ac_prev=program_suffix ;;
  968. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  969. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  970. program_suffix=$ac_optarg ;;
  971. -program-transform-name | --program-transform-name \
  972. | --program-transform-nam | --program-transform-na \
  973. | --program-transform-n | --program-transform- \
  974. | --program-transform | --program-transfor \
  975. | --program-transfo | --program-transf \
  976. | --program-trans | --program-tran \
  977. | --progr-tra | --program-tr | --program-t)
  978. ac_prev=program_transform_name ;;
  979. -program-transform-name=* | --program-transform-name=* \
  980. | --program-transform-nam=* | --program-transform-na=* \
  981. | --program-transform-n=* | --program-transform-=* \
  982. | --program-transform=* | --program-transfor=* \
  983. | --program-transfo=* | --program-transf=* \
  984. | --program-trans=* | --program-tran=* \
  985. | --progr-tra=* | --program-tr=* | --program-t=*)
  986. program_transform_name=$ac_optarg ;;
  987. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  988. ac_prev=pdfdir ;;
  989. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  990. pdfdir=$ac_optarg ;;
  991. -psdir | --psdir | --psdi | --psd | --ps)
  992. ac_prev=psdir ;;
  993. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  994. psdir=$ac_optarg ;;
  995. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  996. | -silent | --silent | --silen | --sile | --sil)
  997. silent=yes ;;
  998. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  999. ac_prev=sbindir ;;
  1000. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1001. | --sbi=* | --sb=*)
  1002. sbindir=$ac_optarg ;;
  1003. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1004. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1005. | --sharedst | --shareds | --shared | --share | --shar \
  1006. | --sha | --sh)
  1007. ac_prev=sharedstatedir ;;
  1008. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1009. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1010. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1011. | --sha=* | --sh=*)
  1012. sharedstatedir=$ac_optarg ;;
  1013. -site | --site | --sit)
  1014. ac_prev=site ;;
  1015. -site=* | --site=* | --sit=*)
  1016. site=$ac_optarg ;;
  1017. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1018. ac_prev=srcdir ;;
  1019. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1020. srcdir=$ac_optarg ;;
  1021. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1022. | --syscon | --sysco | --sysc | --sys | --sy)
  1023. ac_prev=sysconfdir ;;
  1024. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1025. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1026. sysconfdir=$ac_optarg ;;
  1027. -target | --target | --targe | --targ | --tar | --ta | --t)
  1028. ac_prev=target_alias ;;
  1029. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1030. target_alias=$ac_optarg ;;
  1031. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1032. verbose=yes ;;
  1033. -version | --version | --versio | --versi | --vers | -V)
  1034. ac_init_version=: ;;
  1035. -with-* | --with-*)
  1036. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1039. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1040. { (exit 1); exit 1; }; }
  1041. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1042. eval with_$ac_package=\$ac_optarg ;;
  1043. -without-* | --without-*)
  1044. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1045. # Reject names that are not valid shell variable names.
  1046. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1047. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1048. { (exit 1); exit 1; }; }
  1049. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1050. eval with_$ac_package=no ;;
  1051. --x)
  1052. # Obsolete; use --with-x.
  1053. with_x=yes ;;
  1054. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1055. | --x-incl | --x-inc | --x-in | --x-i)
  1056. ac_prev=x_includes ;;
  1057. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1058. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1059. x_includes=$ac_optarg ;;
  1060. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1061. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1062. ac_prev=x_libraries ;;
  1063. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1064. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1065. x_libraries=$ac_optarg ;;
  1066. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1067. Try \`$0 --help' for more information." >&2
  1068. { (exit 1); exit 1; }; }
  1069. ;;
  1070. *=*)
  1071. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1072. # Reject names that are not valid shell variable names.
  1073. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1074. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1075. { (exit 1); exit 1; }; }
  1076. eval $ac_envvar=\$ac_optarg
  1077. export $ac_envvar ;;
  1078. *)
  1079. # FIXME: should be removed in autoconf 3.0.
  1080. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1081. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1082. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1083. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1084. ;;
  1085. esac
  1086. done
  1087. if test -n "$ac_prev"; then
  1088. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1089. { echo "$as_me: error: missing argument to $ac_option" >&2
  1090. { (exit 1); exit 1; }; }
  1091. fi
  1092. # Be sure to have absolute directory names.
  1093. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1094. datadir sysconfdir sharedstatedir localstatedir includedir \
  1095. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1096. libdir localedir mandir
  1097. do
  1098. eval ac_val=\$$ac_var
  1099. case $ac_val in
  1100. [\\/$]* | ?:[\\/]* ) continue;;
  1101. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1102. esac
  1103. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1104. { (exit 1); exit 1; }; }
  1105. done
  1106. # There might be people who depend on the old broken behavior: `$host'
  1107. # used to hold the argument of --host etc.
  1108. # FIXME: To remove some day.
  1109. build=$build_alias
  1110. host=$host_alias
  1111. target=$target_alias
  1112. # FIXME: To remove some day.
  1113. if test "x$host_alias" != x; then
  1114. if test "x$build_alias" = x; then
  1115. cross_compiling=maybe
  1116. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1117. If a cross compiler is detected then cross compile mode will be used." >&2
  1118. elif test "x$build_alias" != "x$host_alias"; then
  1119. cross_compiling=yes
  1120. fi
  1121. fi
  1122. ac_tool_prefix=
  1123. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1124. test "$silent" = yes && exec 6>/dev/null
  1125. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1126. ac_ls_di=`ls -di .` &&
  1127. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1128. { echo "$as_me: error: Working directory cannot be determined" >&2
  1129. { (exit 1); exit 1; }; }
  1130. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1131. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1132. { (exit 1); exit 1; }; }
  1133. # Find the source files, if location was not specified.
  1134. if test -z "$srcdir"; then
  1135. ac_srcdir_defaulted=yes
  1136. # Try the directory containing this script, then the parent directory.
  1137. ac_confdir=`$as_dirname -- "$0" ||
  1138. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1139. X"$0" : 'X\(//\)[^/]' \| \
  1140. X"$0" : 'X\(//\)$' \| \
  1141. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1142. echo X"$0" |
  1143. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1144. s//\1/
  1145. q
  1146. }
  1147. /^X\(\/\/\)[^/].*/{
  1148. s//\1/
  1149. q
  1150. }
  1151. /^X\(\/\/\)$/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\).*/{
  1156. s//\1/
  1157. q
  1158. }
  1159. s/.*/./; q'`
  1160. srcdir=$ac_confdir
  1161. if test ! -r "$srcdir/$ac_unique_file"; then
  1162. srcdir=..
  1163. fi
  1164. else
  1165. ac_srcdir_defaulted=no
  1166. fi
  1167. if test ! -r "$srcdir/$ac_unique_file"; then
  1168. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1169. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1170. { (exit 1); exit 1; }; }
  1171. fi
  1172. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1173. ac_abs_confdir=`(
  1174. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1175. { (exit 1); exit 1; }; }
  1176. pwd)`
  1177. # When building in place, set srcdir=.
  1178. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1179. srcdir=.
  1180. fi
  1181. # Remove unnecessary trailing slashes from srcdir.
  1182. # Double slashes in file names in object file debugging info
  1183. # mess up M-x gdb in Emacs.
  1184. case $srcdir in
  1185. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1186. esac
  1187. for ac_var in $ac_precious_vars; do
  1188. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1189. eval ac_env_${ac_var}_value=\$${ac_var}
  1190. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1191. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1192. done
  1193. #
  1194. # Report the --help message.
  1195. #
  1196. if test "$ac_init_help" = "long"; then
  1197. # Omit some internal or obsolete options to make the list less imposing.
  1198. # This message is too long to be a string in the A/UX 3.1 sh.
  1199. cat <<_ACEOF
  1200. \`configure' configures aria2 1.2.0 to adapt to many kinds of systems.
  1201. Usage: $0 [OPTION]... [VAR=VALUE]...
  1202. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1203. VAR=VALUE. See below for descriptions of some of the useful variables.
  1204. Defaults for the options are specified in brackets.
  1205. Configuration:
  1206. -h, --help display this help and exit
  1207. --help=short display options specific to this package
  1208. --help=recursive display the short help of all the included packages
  1209. -V, --version display version information and exit
  1210. -q, --quiet, --silent do not print \`checking...' messages
  1211. --cache-file=FILE cache test results in FILE [disabled]
  1212. -C, --config-cache alias for \`--cache-file=config.cache'
  1213. -n, --no-create do not create output files
  1214. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1215. Installation directories:
  1216. --prefix=PREFIX install architecture-independent files in PREFIX
  1217. [$ac_default_prefix]
  1218. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1219. [PREFIX]
  1220. By default, \`make install' will install all the files in
  1221. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1222. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1223. for instance \`--prefix=\$HOME'.
  1224. For better control, use the options below.
  1225. Fine tuning of the installation directories:
  1226. --bindir=DIR user executables [EPREFIX/bin]
  1227. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1228. --libexecdir=DIR program executables [EPREFIX/libexec]
  1229. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1230. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1231. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1232. --libdir=DIR object code libraries [EPREFIX/lib]
  1233. --includedir=DIR C header files [PREFIX/include]
  1234. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1235. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1236. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1237. --infodir=DIR info documentation [DATAROOTDIR/info]
  1238. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1239. --mandir=DIR man documentation [DATAROOTDIR/man]
  1240. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1241. --htmldir=DIR html documentation [DOCDIR]
  1242. --dvidir=DIR dvi documentation [DOCDIR]
  1243. --pdfdir=DIR pdf documentation [DOCDIR]
  1244. --psdir=DIR ps documentation [DOCDIR]
  1245. _ACEOF
  1246. cat <<\_ACEOF
  1247. Program names:
  1248. --program-prefix=PREFIX prepend PREFIX to installed program names
  1249. --program-suffix=SUFFIX append SUFFIX to installed program names
  1250. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1251. System types:
  1252. --build=BUILD configure for building on BUILD [guessed]
  1253. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1254. --target=TARGET configure for building compilers for TARGET [HOST]
  1255. _ACEOF
  1256. fi
  1257. if test -n "$ac_init_help"; then
  1258. case $ac_init_help in
  1259. short | recursive ) echo "Configuration of aria2 1.2.0:";;
  1260. esac
  1261. cat <<\_ACEOF
  1262. Optional Features:
  1263. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1264. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1265. --enable-bittorrent enable bittorrent support.
  1266. --enable-metalink enable metalink support.
  1267. --enable-epoll enable epoll support.
  1268. --disable-dependency-tracking speeds up one-time build
  1269. --enable-dependency-tracking do not reject slow dependency extractors
  1270. --disable-xmltest Do not try to compile and run a test LIBXML program
  1271. --disable-largefile omit support for large files
  1272. --disable-nls do not use Native Language Support
  1273. --enable-threads={posix|solaris|pth|win32}
  1274. specify multithreading API
  1275. --disable-threads build without multithread safety
  1276. --disable-rpath do not hardcode runtime library paths
  1277. Optional Packages:
  1278. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1279. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1280. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1281. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1282. --with-gnutls use gnutls if it is installed.
  1283. --with-openssl use openssl if it is installed.
  1284. --with-sqlite3 use sqlite3 if it is installed.
  1285. --with-libxml2 use libxml2 if it is installed.
  1286. --with-libexpat use libexpat if it is installed.
  1287. --with-libcares use libcares if it is installed.
  1288. --with-libz use libz if it is installed.
  1289. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1290. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1291. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1292. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1293. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1294. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1295. --with-libgcrypt-prefix=PFX
  1296. prefix where LIBGCRYPT is installed (optional)
  1297. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1298. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1299. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1300. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1301. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1302. --without-libpth-prefix don't search for libpth in includedir and libdir
  1303. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1304. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1305. --with-included-gettext use the GNU gettext library included here
  1306. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1307. --without-libintl-prefix don't search for libintl in includedir and libdir
  1308. Some influential environment variables:
  1309. CXX C++ compiler command
  1310. CXXFLAGS C++ compiler flags
  1311. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1312. nonstandard directory <lib dir>
  1313. LIBS libraries to pass to the linker, e.g. -l<library>
  1314. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1315. you have headers in a nonstandard directory <include dir>
  1316. CC C compiler command
  1317. CFLAGS C compiler flags
  1318. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1319. the first program found out of: `bison -y', `byacc', `yacc'.
  1320. YFLAGS The list of arguments that will be passed by default to $YACC.
  1321. This script will default YFLAGS to the empty string to avoid a
  1322. default value of `-d' given by some make applications.
  1323. CXXCPP C++ preprocessor
  1324. Use these variables to override the choices made by `configure' or to help
  1325. it to find libraries and programs with nonstandard names/locations.
  1326. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1327. _ACEOF
  1328. ac_status=$?
  1329. fi
  1330. if test "$ac_init_help" = "recursive"; then
  1331. # If there are subdirs, report their specific --help.
  1332. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1333. test -d "$ac_dir" || continue
  1334. ac_builddir=.
  1335. case "$ac_dir" in
  1336. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1337. *)
  1338. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1339. # A ".." for each directory in $ac_dir_suffix.
  1340. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1341. case $ac_top_builddir_sub in
  1342. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1343. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1344. esac ;;
  1345. esac
  1346. ac_abs_top_builddir=$ac_pwd
  1347. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1348. # for backward compatibility:
  1349. ac_top_builddir=$ac_top_build_prefix
  1350. case $srcdir in
  1351. .) # We are building in place.
  1352. ac_srcdir=.
  1353. ac_top_srcdir=$ac_top_builddir_sub
  1354. ac_abs_top_srcdir=$ac_pwd ;;
  1355. [\\/]* | ?:[\\/]* ) # Absolute name.
  1356. ac_srcdir=$srcdir$ac_dir_suffix;
  1357. ac_top_srcdir=$srcdir
  1358. ac_abs_top_srcdir=$srcdir ;;
  1359. *) # Relative name.
  1360. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1361. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1362. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1363. esac
  1364. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1365. cd "$ac_dir" || { ac_status=$?; continue; }
  1366. # Check for guested configure.
  1367. if test -f "$ac_srcdir/configure.gnu"; then
  1368. echo &&
  1369. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1370. elif test -f "$ac_srcdir/configure"; then
  1371. echo &&
  1372. $SHELL "$ac_srcdir/configure" --help=recursive
  1373. else
  1374. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1375. fi || ac_status=$?
  1376. cd "$ac_pwd" || { ac_status=$?; break; }
  1377. done
  1378. fi
  1379. test -n "$ac_init_help" && exit $ac_status
  1380. if $ac_init_version; then
  1381. cat <<\_ACEOF
  1382. aria2 configure 1.2.0
  1383. generated by GNU Autoconf 2.61
  1384. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1385. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1386. This configure script is free software; the Free Software Foundation
  1387. gives unlimited permission to copy, distribute and modify it.
  1388. _ACEOF
  1389. exit
  1390. fi
  1391. cat >config.log <<_ACEOF
  1392. This file contains any messages produced by compilers while
  1393. running configure, to aid debugging if configure makes a mistake.
  1394. It was created by aria2 $as_me 1.2.0, which was
  1395. generated by GNU Autoconf 2.61. Invocation command line was
  1396. $ $0 $@
  1397. _ACEOF
  1398. exec 5>>config.log
  1399. {
  1400. cat <<_ASUNAME
  1401. ## --------- ##
  1402. ## Platform. ##
  1403. ## --------- ##
  1404. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1405. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1406. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1407. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1408. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1409. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1410. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1411. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1412. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1413. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1414. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1415. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1416. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1417. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1418. _ASUNAME
  1419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1420. for as_dir in $PATH
  1421. do
  1422. IFS=$as_save_IFS
  1423. test -z "$as_dir" && as_dir=.
  1424. echo "PATH: $as_dir"
  1425. done
  1426. IFS=$as_save_IFS
  1427. } >&5
  1428. cat >&5 <<_ACEOF
  1429. ## ----------- ##
  1430. ## Core tests. ##
  1431. ## ----------- ##
  1432. _ACEOF
  1433. # Keep a trace of the command line.
  1434. # Strip out --no-create and --no-recursion so they do not pile up.
  1435. # Strip out --silent because we don't want to record it for future runs.
  1436. # Also quote any args containing shell meta-characters.
  1437. # Make two passes to allow for proper duplicate-argument suppression.
  1438. ac_configure_args=
  1439. ac_configure_args0=
  1440. ac_configure_args1=
  1441. ac_must_keep_next=false
  1442. for ac_pass in 1 2
  1443. do
  1444. for ac_arg
  1445. do
  1446. case $ac_arg in
  1447. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1448. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1449. | -silent | --silent | --silen | --sile | --sil)
  1450. continue ;;
  1451. *\'*)
  1452. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1453. esac
  1454. case $ac_pass in
  1455. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1456. 2)
  1457. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1458. if test $ac_must_keep_next = true; then
  1459. ac_must_keep_next=false # Got value, back to normal.
  1460. else
  1461. case $ac_arg in
  1462. *=* | --config-cache | -C | -disable-* | --disable-* \
  1463. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1464. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1465. | -with-* | --with-* | -without-* | --without-* | --x)
  1466. case "$ac_configure_args0 " in
  1467. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1468. esac
  1469. ;;
  1470. -* ) ac_must_keep_next=true ;;
  1471. esac
  1472. fi
  1473. ac_configure_args="$ac_configure_args '$ac_arg'"
  1474. ;;
  1475. esac
  1476. done
  1477. done
  1478. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1479. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1480. # When interrupted or exit'd, cleanup temporary files, and complete
  1481. # config.log. We remove comments because anyway the quotes in there
  1482. # would cause problems or look ugly.
  1483. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1484. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1485. trap 'exit_status=$?
  1486. # Save into config.log some information that might help in debugging.
  1487. {
  1488. echo
  1489. cat <<\_ASBOX
  1490. ## ---------------- ##
  1491. ## Cache variables. ##
  1492. ## ---------------- ##
  1493. _ASBOX
  1494. echo
  1495. # The following way of writing the cache mishandles newlines in values,
  1496. (
  1497. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1498. eval ac_val=\$$ac_var
  1499. case $ac_val in #(
  1500. *${as_nl}*)
  1501. case $ac_var in #(
  1502. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1503. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1504. esac
  1505. case $ac_var in #(
  1506. _ | IFS | as_nl) ;; #(
  1507. *) $as_unset $ac_var ;;
  1508. esac ;;
  1509. esac
  1510. done
  1511. (set) 2>&1 |
  1512. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1513. *${as_nl}ac_space=\ *)
  1514. sed -n \
  1515. "s/'\''/'\''\\\\'\'''\''/g;
  1516. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1517. ;; #(
  1518. *)
  1519. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1520. ;;
  1521. esac |
  1522. sort
  1523. )
  1524. echo
  1525. cat <<\_ASBOX
  1526. ## ----------------- ##
  1527. ## Output variables. ##
  1528. ## ----------------- ##
  1529. _ASBOX
  1530. echo
  1531. for ac_var in $ac_subst_vars
  1532. do
  1533. eval ac_val=\$$ac_var
  1534. case $ac_val in
  1535. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1536. esac
  1537. echo "$ac_var='\''$ac_val'\''"
  1538. done | sort
  1539. echo
  1540. if test -n "$ac_subst_files"; then
  1541. cat <<\_ASBOX
  1542. ## ------------------- ##
  1543. ## File substitutions. ##
  1544. ## ------------------- ##
  1545. _ASBOX
  1546. echo
  1547. for ac_var in $ac_subst_files
  1548. do
  1549. eval ac_val=\$$ac_var
  1550. case $ac_val in
  1551. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1552. esac
  1553. echo "$ac_var='\''$ac_val'\''"
  1554. done | sort
  1555. echo
  1556. fi
  1557. if test -s confdefs.h; then
  1558. cat <<\_ASBOX
  1559. ## ----------- ##
  1560. ## confdefs.h. ##
  1561. ## ----------- ##
  1562. _ASBOX
  1563. echo
  1564. cat confdefs.h
  1565. echo
  1566. fi
  1567. test "$ac_signal" != 0 &&
  1568. echo "$as_me: caught signal $ac_signal"
  1569. echo "$as_me: exit $exit_status"
  1570. } >&5
  1571. rm -f core *.core core.conftest.* &&
  1572. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1573. exit $exit_status
  1574. ' 0
  1575. for ac_signal in 1 2 13 15; do
  1576. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1577. done
  1578. ac_signal=0
  1579. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1580. rm -f -r conftest* confdefs.h
  1581. # Predefined preprocessor variables.
  1582. cat >>confdefs.h <<_ACEOF
  1583. #define PACKAGE_NAME "$PACKAGE_NAME"
  1584. _ACEOF
  1585. cat >>confdefs.h <<_ACEOF
  1586. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1587. _ACEOF
  1588. cat >>confdefs.h <<_ACEOF
  1589. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1590. _ACEOF
  1591. cat >>confdefs.h <<_ACEOF
  1592. #define PACKAGE_STRING "$PACKAGE_STRING"
  1593. _ACEOF
  1594. cat >>confdefs.h <<_ACEOF
  1595. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1596. _ACEOF
  1597. # Let the site file select an alternate cache file if it wants to.
  1598. # Prefer explicitly selected file to automatically selected ones.
  1599. if test -n "$CONFIG_SITE"; then
  1600. set x "$CONFIG_SITE"
  1601. elif test "x$prefix" != xNONE; then
  1602. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1603. else
  1604. set x "$ac_default_prefix/share/config.site" \
  1605. "$ac_default_prefix/etc/config.site"
  1606. fi
  1607. shift
  1608. for ac_site_file
  1609. do
  1610. if test -r "$ac_site_file"; then
  1611. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1612. echo "$as_me: loading site script $ac_site_file" >&6;}
  1613. sed 's/^/| /' "$ac_site_file" >&5
  1614. . "$ac_site_file"
  1615. fi
  1616. done
  1617. if test -r "$cache_file"; then
  1618. # Some versions of bash will fail to source /dev/null (special
  1619. # files actually), so we avoid doing that.
  1620. if test -f "$cache_file"; then
  1621. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1622. echo "$as_me: loading cache $cache_file" >&6;}
  1623. case $cache_file in
  1624. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1625. *) . "./$cache_file";;
  1626. esac
  1627. fi
  1628. else
  1629. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1630. echo "$as_me: creating cache $cache_file" >&6;}
  1631. >$cache_file
  1632. fi
  1633. gt_needs="$gt_needs "
  1634. ac_header_list="$ac_header_list sys/time.h"
  1635. ac_header_list="$ac_header_list unistd.h"
  1636. ac_func_list="$ac_func_list alarm"
  1637. # Check that the precious variables saved in the cache have kept the same
  1638. # value.
  1639. ac_cache_corrupted=false
  1640. for ac_var in $ac_precious_vars; do
  1641. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1642. eval ac_new_set=\$ac_env_${ac_var}_set
  1643. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1644. eval ac_new_val=\$ac_env_${ac_var}_value
  1645. case $ac_old_set,$ac_new_set in
  1646. set,)
  1647. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1648. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1649. ac_cache_corrupted=: ;;
  1650. ,set)
  1651. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1652. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1653. ac_cache_corrupted=: ;;
  1654. ,);;
  1655. *)
  1656. if test "x$ac_old_val" != "x$ac_new_val"; then
  1657. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1658. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1659. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1660. echo "$as_me: former value: $ac_old_val" >&2;}
  1661. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1662. echo "$as_me: current value: $ac_new_val" >&2;}
  1663. ac_cache_corrupted=:
  1664. fi;;
  1665. esac
  1666. # Pass precious variables to config.status.
  1667. if test "$ac_new_set" = set; then
  1668. case $ac_new_val in
  1669. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1670. *) ac_arg=$ac_var=$ac_new_val ;;
  1671. esac
  1672. case " $ac_configure_args " in
  1673. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1674. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1675. esac
  1676. fi
  1677. done
  1678. if $ac_cache_corrupted; then
  1679. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1680. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1681. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1682. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1683. { (exit 1); exit 1; }; }
  1684. fi
  1685. ac_ext=c
  1686. ac_cpp='$CPP $CPPFLAGS'
  1687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1690. ac_aux_dir=
  1691. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1692. if test -f "$ac_dir/install-sh"; then
  1693. ac_aux_dir=$ac_dir
  1694. ac_install_sh="$ac_aux_dir/install-sh -c"
  1695. break
  1696. elif test -f "$ac_dir/install.sh"; then
  1697. ac_aux_dir=$ac_dir
  1698. ac_install_sh="$ac_aux_dir/install.sh -c"
  1699. break
  1700. elif test -f "$ac_dir/shtool"; then
  1701. ac_aux_dir=$ac_dir
  1702. ac_install_sh="$ac_aux_dir/shtool install -c"
  1703. break
  1704. fi
  1705. done
  1706. if test -z "$ac_aux_dir"; then
  1707. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1708. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1709. { (exit 1); exit 1; }; }
  1710. fi
  1711. # These three variables are undocumented and unsupported,
  1712. # and are intended to be withdrawn in a future Autoconf release.
  1713. # They can cause serious problems if a builder's source tree is in a directory
  1714. # whose full name contains unusual characters.
  1715. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1716. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1717. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1718. # Make sure we can run config.sub.
  1719. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1720. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1721. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1722. { (exit 1); exit 1; }; }
  1723. { echo "$as_me:$LINENO: checking build system type" >&5
  1724. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1725. if test "${ac_cv_build+set}" = set; then
  1726. echo $ECHO_N "(cached) $ECHO_C" >&6
  1727. else
  1728. ac_build_alias=$build_alias
  1729. test "x$ac_build_alias" = x &&
  1730. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1731. test "x$ac_build_alias" = x &&
  1732. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1733. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1734. { (exit 1); exit 1; }; }
  1735. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1736. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1737. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1738. { (exit 1); exit 1; }; }
  1739. fi
  1740. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1741. echo "${ECHO_T}$ac_cv_build" >&6; }
  1742. case $ac_cv_build in
  1743. *-*-*) ;;
  1744. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1745. echo "$as_me: error: invalid value of canonical build" >&2;}
  1746. { (exit 1); exit 1; }; };;
  1747. esac
  1748. build=$ac_cv_build
  1749. ac_save_IFS=$IFS; IFS='-'
  1750. set x $ac_cv_build
  1751. shift
  1752. build_cpu=$1
  1753. build_vendor=$2
  1754. shift; shift
  1755. # Remember, the first character of IFS is used to create $*,
  1756. # except with old shells:
  1757. build_os=$*
  1758. IFS=$ac_save_IFS
  1759. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1760. { echo "$as_me:$LINENO: checking host system type" >&5
  1761. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1762. if test "${ac_cv_host+set}" = set; then
  1763. echo $ECHO_N "(cached) $ECHO_C" >&6
  1764. else
  1765. if test "x$host_alias" = x; then
  1766. ac_cv_host=$ac_cv_build
  1767. else
  1768. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1769. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1770. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1771. { (exit 1); exit 1; }; }
  1772. fi
  1773. fi
  1774. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1775. echo "${ECHO_T}$ac_cv_host" >&6; }
  1776. case $ac_cv_host in
  1777. *-*-*) ;;
  1778. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1779. echo "$as_me: error: invalid value of canonical host" >&2;}
  1780. { (exit 1); exit 1; }; };;
  1781. esac
  1782. host=$ac_cv_host
  1783. ac_save_IFS=$IFS; IFS='-'
  1784. set x $ac_cv_host
  1785. shift
  1786. host_cpu=$1
  1787. host_vendor=$2
  1788. shift; shift
  1789. # Remember, the first character of IFS is used to create $*,
  1790. # except with old shells:
  1791. host_os=$*
  1792. IFS=$ac_save_IFS
  1793. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1794. { echo "$as_me:$LINENO: checking target system type" >&5
  1795. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1796. if test "${ac_cv_target+set}" = set; then
  1797. echo $ECHO_N "(cached) $ECHO_C" >&6
  1798. else
  1799. if test "x$target_alias" = x; then
  1800. ac_cv_target=$ac_cv_host
  1801. else
  1802. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1803. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1804. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1805. { (exit 1); exit 1; }; }
  1806. fi
  1807. fi
  1808. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1809. echo "${ECHO_T}$ac_cv_target" >&6; }
  1810. case $ac_cv_target in
  1811. *-*-*) ;;
  1812. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1813. echo "$as_me: error: invalid value of canonical target" >&2;}
  1814. { (exit 1); exit 1; }; };;
  1815. esac
  1816. target=$ac_cv_target
  1817. ac_save_IFS=$IFS; IFS='-'
  1818. set x $ac_cv_target
  1819. shift
  1820. target_cpu=$1
  1821. target_vendor=$2
  1822. shift; shift
  1823. # Remember, the first character of IFS is used to create $*,
  1824. # except with old shells:
  1825. target_os=$*
  1826. IFS=$ac_save_IFS
  1827. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1828. # The aliases save the names the user supplied, while $host etc.
  1829. # will get canonicalized.
  1830. test -n "$target_alias" &&
  1831. test "$program_prefix$program_suffix$program_transform_name" = \
  1832. NONENONEs,x,x, &&
  1833. program_prefix=${target_alias}-
  1834. am__api_version='1.10'
  1835. # Find a good install program. We prefer a C program (faster),
  1836. # so one script is as good as another. But avoid the broken or
  1837. # incompatible versions:
  1838. # SysV /etc/install, /usr/sbin/install
  1839. # SunOS /usr/etc/install
  1840. # IRIX /sbin/install
  1841. # AIX /bin/install
  1842. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1843. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1844. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1845. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1846. # OS/2's system install, which has a completely different semantic
  1847. # ./install, which can be erroneously created by make from ./install.sh.
  1848. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1849. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1850. if test -z "$INSTALL"; then
  1851. if test "${ac_cv_path_install+set}" = set; then
  1852. echo $ECHO_N "(cached) $ECHO_C" >&6
  1853. else
  1854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1855. for as_dir in $PATH
  1856. do
  1857. IFS=$as_save_IFS
  1858. test -z "$as_dir" && as_dir=.
  1859. # Account for people who put trailing slashes in PATH elements.
  1860. case $as_dir/ in
  1861. ./ | .// | /cC/* | \
  1862. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1863. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1864. /usr/ucb/* ) ;;
  1865. *)
  1866. # OSF1 and SCO ODT 3.0 have their own names for install.
  1867. # Don't use installbsd from OSF since it installs stuff as root
  1868. # by default.
  1869. for ac_prog in ginstall scoinst install; do
  1870. for ac_exec_ext in '' $ac_executable_extensions; do
  1871. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1872. if test $ac_prog = install &&
  1873. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1874. # AIX install. It has an incompatible calling convention.
  1875. :
  1876. elif test $ac_prog = install &&
  1877. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1878. # program-specific install script used by HP pwplus--don't use.
  1879. :
  1880. else
  1881. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1882. break 3
  1883. fi
  1884. fi
  1885. done
  1886. done
  1887. ;;
  1888. esac
  1889. done
  1890. IFS=$as_save_IFS
  1891. fi
  1892. if test "${ac_cv_path_install+set}" = set; then
  1893. INSTALL=$ac_cv_path_install
  1894. else
  1895. # As a last resort, use the slow shell script. Don't cache a
  1896. # value for INSTALL within a source directory, because that will
  1897. # break other packages using the cache if that directory is
  1898. # removed, or if the value is a relative name.
  1899. INSTALL=$ac_install_sh
  1900. fi
  1901. fi
  1902. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1903. echo "${ECHO_T}$INSTALL" >&6; }
  1904. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1905. # It thinks the first close brace ends the variable substitution.
  1906. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1907. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1908. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1909. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1910. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1911. # Just in case
  1912. sleep 1
  1913. echo timestamp > conftest.file
  1914. # Do `set' in a subshell so we don't clobber the current shell's
  1915. # arguments. Must try -L first in case configure is actually a
  1916. # symlink; some systems play weird games with the mod time of symlinks
  1917. # (eg FreeBSD returns the mod time of the symlink's containing
  1918. # directory).
  1919. if (
  1920. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1921. if test "$*" = "X"; then
  1922. # -L didn't work.
  1923. set X `ls -t $srcdir/configure conftest.file`
  1924. fi
  1925. rm -f conftest.file
  1926. if test "$*" != "X $srcdir/configure conftest.file" \
  1927. && test "$*" != "X conftest.file $srcdir/configure"; then
  1928. # If neither matched, then we have a broken ls. This can happen
  1929. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1930. # broken ls alias from the environment. This has actually
  1931. # happened. Such a system could not be considered "sane".
  1932. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1933. alias in your environment" >&5
  1934. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1935. alias in your environment" >&2;}
  1936. { (exit 1); exit 1; }; }
  1937. fi
  1938. test "$2" = conftest.file
  1939. )
  1940. then
  1941. # Ok.
  1942. :
  1943. else
  1944. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1945. Check your system clock" >&5
  1946. echo "$as_me: error: newly created file is older than distributed files!
  1947. Check your system clock" >&2;}
  1948. { (exit 1); exit 1; }; }
  1949. fi
  1950. { echo "$as_me:$LINENO: result: yes" >&5
  1951. echo "${ECHO_T}yes" >&6; }
  1952. test "$program_prefix" != NONE &&
  1953. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1954. # Use a double $ so make ignores it.
  1955. test "$program_suffix" != NONE &&
  1956. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1957. # Double any \ or $. echo might interpret backslashes.
  1958. # By default was `s,x,x', remove it if useless.
  1959. cat <<\_ACEOF >conftest.sed
  1960. s/[\\$]/&&/g;s/;s,x,x,$//
  1961. _ACEOF
  1962. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1963. rm -f conftest.sed
  1964. # expand $ac_aux_dir to an absolute path
  1965. am_aux_dir=`cd $ac_aux_dir && pwd`
  1966. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1967. # Use eval to expand $SHELL
  1968. if eval "$MISSING --run true"; then
  1969. am_missing_run="$MISSING --run "
  1970. else
  1971. am_missing_run=
  1972. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1973. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1974. fi
  1975. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1976. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1977. if test -z "$MKDIR_P"; then
  1978. if test "${ac_cv_path_mkdir+set}" = set; then
  1979. echo $ECHO_N "(cached) $ECHO_C" >&6
  1980. else
  1981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1982. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1983. do
  1984. IFS=$as_save_IFS
  1985. test -z "$as_dir" && as_dir=.
  1986. for ac_prog in mkdir gmkdir; do
  1987. for ac_exec_ext in '' $ac_executable_extensions; do
  1988. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1989. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1990. 'mkdir (GNU coreutils) '* | \
  1991. 'mkdir (coreutils) '* | \
  1992. 'mkdir (fileutils) '4.1*)
  1993. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1994. break 3;;
  1995. esac
  1996. done
  1997. done
  1998. done
  1999. IFS=$as_save_IFS
  2000. fi
  2001. if test "${ac_cv_path_mkdir+set}" = set; then
  2002. MKDIR_P="$ac_cv_path_mkdir -p"
  2003. else
  2004. # As a last resort, use the slow shell script. Don't cache a
  2005. # value for MKDIR_P within a source directory, because that will
  2006. # break other packages using the cache if that directory is
  2007. # removed, or if the value is a relative name.
  2008. test -d ./--version && rmdir ./--version
  2009. MKDIR_P="$ac_install_sh -d"
  2010. fi
  2011. fi
  2012. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2013. echo "${ECHO_T}$MKDIR_P" >&6; }
  2014. mkdir_p="$MKDIR_P"
  2015. case $mkdir_p in
  2016. [\\/$]* | ?:[\\/]*) ;;
  2017. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2018. esac
  2019. for ac_prog in gawk mawk nawk awk
  2020. do
  2021. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2022. set dummy $ac_prog; ac_word=$2
  2023. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2024. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2025. if test "${ac_cv_prog_AWK+set}" = set; then
  2026. echo $ECHO_N "(cached) $ECHO_C" >&6
  2027. else
  2028. if test -n "$AWK"; then
  2029. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2030. else
  2031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2032. for as_dir in $PATH
  2033. do
  2034. IFS=$as_save_IFS
  2035. test -z "$as_dir" && as_dir=.
  2036. for ac_exec_ext in '' $ac_executable_extensions; do
  2037. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2038. ac_cv_prog_AWK="$ac_prog"
  2039. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2040. break 2
  2041. fi
  2042. done
  2043. done
  2044. IFS=$as_save_IFS
  2045. fi
  2046. fi
  2047. AWK=$ac_cv_prog_AWK
  2048. if test -n "$AWK"; then
  2049. { echo "$as_me:$LINENO: result: $AWK" >&5
  2050. echo "${ECHO_T}$AWK" >&6; }
  2051. else
  2052. { echo "$as_me:$LINENO: result: no" >&5
  2053. echo "${ECHO_T}no" >&6; }
  2054. fi
  2055. test -n "$AWK" && break
  2056. done
  2057. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2058. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2059. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2060. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2061. echo $ECHO_N "(cached) $ECHO_C" >&6
  2062. else
  2063. cat >conftest.make <<\_ACEOF
  2064. SHELL = /bin/sh
  2065. all:
  2066. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2067. _ACEOF
  2068. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2069. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2070. *@@@%%%=?*=@@@%%%*)
  2071. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2072. *)
  2073. eval ac_cv_prog_make_${ac_make}_set=no;;
  2074. esac
  2075. rm -f conftest.make
  2076. fi
  2077. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2078. { echo "$as_me:$LINENO: result: yes" >&5
  2079. echo "${ECHO_T}yes" >&6; }
  2080. SET_MAKE=
  2081. else
  2082. { echo "$as_me:$LINENO: result: no" >&5
  2083. echo "${ECHO_T}no" >&6; }
  2084. SET_MAKE="MAKE=${MAKE-make}"
  2085. fi
  2086. rm -rf .tst 2>/dev/null
  2087. mkdir .tst 2>/dev/null
  2088. if test -d .tst; then
  2089. am__leading_dot=.
  2090. else
  2091. am__leading_dot=_
  2092. fi
  2093. rmdir .tst 2>/dev/null
  2094. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2095. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2096. # is not polluted with repeated "-I."
  2097. am__isrc=' -I$(srcdir)'
  2098. # test to see if srcdir already configured
  2099. if test -f $srcdir/config.status; then
  2100. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2101. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2102. { (exit 1); exit 1; }; }
  2103. fi
  2104. fi
  2105. # test whether we have cygpath
  2106. if test -z "$CYGPATH_W"; then
  2107. if (cygpath --version) >/dev/null 2>/dev/null; then
  2108. CYGPATH_W='cygpath -w'
  2109. else
  2110. CYGPATH_W=echo
  2111. fi
  2112. fi
  2113. # Define the identity of the package.
  2114. PACKAGE='aria2'
  2115. VERSION='1.2.0'
  2116. cat >>confdefs.h <<_ACEOF
  2117. #define PACKAGE "$PACKAGE"
  2118. _ACEOF
  2119. cat >>confdefs.h <<_ACEOF
  2120. #define VERSION "$VERSION"
  2121. _ACEOF
  2122. # Some tools Automake needs.
  2123. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2124. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2125. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2126. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2127. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2128. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2129. # Installed binaries are usually stripped using `strip' when the user
  2130. # run `make install-strip'. However `strip' might not be the right
  2131. # tool to use in cross-compilation environments, therefore Automake
  2132. # will honor the `STRIP' environment variable to overrule this program.
  2133. if test "$cross_compiling" != no; then
  2134. if test -n "$ac_tool_prefix"; then
  2135. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2136. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2137. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2138. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2139. if test "${ac_cv_prog_STRIP+set}" = set; then
  2140. echo $ECHO_N "(cached) $ECHO_C" >&6
  2141. else
  2142. if test -n "$STRIP"; then
  2143. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2144. else
  2145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2146. for as_dir in $PATH
  2147. do
  2148. IFS=$as_save_IFS
  2149. test -z "$as_dir" && as_dir=.
  2150. for ac_exec_ext in '' $ac_executable_extensions; do
  2151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2152. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2153. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2154. break 2
  2155. fi
  2156. done
  2157. done
  2158. IFS=$as_save_IFS
  2159. fi
  2160. fi
  2161. STRIP=$ac_cv_prog_STRIP
  2162. if test -n "$STRIP"; then
  2163. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2164. echo "${ECHO_T}$STRIP" >&6; }
  2165. else
  2166. { echo "$as_me:$LINENO: result: no" >&5
  2167. echo "${ECHO_T}no" >&6; }
  2168. fi
  2169. fi
  2170. if test -z "$ac_cv_prog_STRIP"; then
  2171. ac_ct_STRIP=$STRIP
  2172. # Extract the first word of "strip", so it can be a program name with args.
  2173. set dummy strip; ac_word=$2
  2174. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2175. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2176. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2177. echo $ECHO_N "(cached) $ECHO_C" >&6
  2178. else
  2179. if test -n "$ac_ct_STRIP"; then
  2180. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2181. else
  2182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2183. for as_dir in $PATH
  2184. do
  2185. IFS=$as_save_IFS
  2186. test -z "$as_dir" && as_dir=.
  2187. for ac_exec_ext in '' $ac_executable_extensions; do
  2188. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2189. ac_cv_prog_ac_ct_STRIP="strip"
  2190. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2191. break 2
  2192. fi
  2193. done
  2194. done
  2195. IFS=$as_save_IFS
  2196. fi
  2197. fi
  2198. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2199. if test -n "$ac_ct_STRIP"; then
  2200. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2201. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2202. else
  2203. { echo "$as_me:$LINENO: result: no" >&5
  2204. echo "${ECHO_T}no" >&6; }
  2205. fi
  2206. if test "x$ac_ct_STRIP" = x; then
  2207. STRIP=":"
  2208. else
  2209. case $cross_compiling:$ac_tool_warned in
  2210. yes:)
  2211. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2212. whose name does not start with the host triplet. If you think this
  2213. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2214. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2215. whose name does not start with the host triplet. If you think this
  2216. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2217. ac_tool_warned=yes ;;
  2218. esac
  2219. STRIP=$ac_ct_STRIP
  2220. fi
  2221. else
  2222. STRIP="$ac_cv_prog_STRIP"
  2223. fi
  2224. fi
  2225. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2226. # We need awk for the "check" target. The system "awk" is bad on
  2227. # some platforms.
  2228. # Always define AMTAR for backward compatibility.
  2229. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2230. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2231. # Check whether --with-cppunit-prefix was given.
  2232. if test "${with_cppunit_prefix+set}" = set; then
  2233. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2234. else
  2235. cppunit_config_prefix=""
  2236. fi
  2237. # Check whether --with-cppunit-exec-prefix was given.
  2238. if test "${with_cppunit_exec_prefix+set}" = set; then
  2239. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2240. else
  2241. cppunit_config_exec_prefix=""
  2242. fi
  2243. if test x$cppunit_config_exec_prefix != x ; then
  2244. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2245. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2246. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2247. fi
  2248. fi
  2249. if test x$cppunit_config_prefix != x ; then
  2250. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2251. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2252. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2253. fi
  2254. fi
  2255. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2256. set dummy cppunit-config; ac_word=$2
  2257. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2258. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2259. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2260. echo $ECHO_N "(cached) $ECHO_C" >&6
  2261. else
  2262. case $CPPUNIT_CONFIG in
  2263. [\\/]* | ?:[\\/]*)
  2264. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2265. ;;
  2266. *)
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. for ac_exec_ext in '' $ac_executable_extensions; do
  2273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2274. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2275. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2276. break 2
  2277. fi
  2278. done
  2279. done
  2280. IFS=$as_save_IFS
  2281. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2282. ;;
  2283. esac
  2284. fi
  2285. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2286. if test -n "$CPPUNIT_CONFIG"; then
  2287. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2288. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2289. else
  2290. { echo "$as_me:$LINENO: result: no" >&5
  2291. echo "${ECHO_T}no" >&6; }
  2292. fi
  2293. cppunit_version_min=1.10.2
  2294. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2295. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2296. no_cppunit=""
  2297. if test "$CPPUNIT_CONFIG" = "no" ; then
  2298. { echo "$as_me:$LINENO: result: no" >&5
  2299. echo "${ECHO_T}no" >&6; }
  2300. no_cppunit=yes
  2301. else
  2302. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2303. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2304. cppunit_version=`$CPPUNIT_CONFIG --version`
  2305. cppunit_major_version=`echo $cppunit_version | \
  2306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2307. cppunit_minor_version=`echo $cppunit_version | \
  2308. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2309. cppunit_micro_version=`echo $cppunit_version | \
  2310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2311. cppunit_major_min=`echo $cppunit_version_min | \
  2312. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2313. if test "x${cppunit_major_min}" = "x" ; then
  2314. cppunit_major_min=0
  2315. fi
  2316. cppunit_minor_min=`echo $cppunit_version_min | \
  2317. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2318. if test "x${cppunit_minor_min}" = "x" ; then
  2319. cppunit_minor_min=0
  2320. fi
  2321. cppunit_micro_min=`echo $cppunit_version_min | \
  2322. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2323. if test "x${cppunit_micro_min}" = "x" ; then
  2324. cppunit_micro_min=0
  2325. fi
  2326. cppunit_version_proper=`expr \
  2327. $cppunit_major_version \> $cppunit_major_min \| \
  2328. $cppunit_major_version \= $cppunit_major_min \& \
  2329. $cppunit_minor_version \> $cppunit_minor_min \| \
  2330. $cppunit_major_version \= $cppunit_major_min \& \
  2331. $cppunit_minor_version \= $cppunit_minor_min \& \
  2332. $cppunit_micro_version \>= $cppunit_micro_min `
  2333. if test "$cppunit_version_proper" = "1" ; then
  2334. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2335. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2336. else
  2337. { echo "$as_me:$LINENO: result: no" >&5
  2338. echo "${ECHO_T}no" >&6; }
  2339. no_cppunit=yes
  2340. fi
  2341. fi
  2342. if test "x$no_cppunit" = x ; then
  2343. :
  2344. else
  2345. CPPUNIT_CFLAGS=""
  2346. CPPUNIT_LIBS=""
  2347. :
  2348. fi
  2349. ac_config_headers="$ac_config_headers config.h"
  2350. case "$target" in
  2351. *mingw*|*cygwin*)
  2352. WINSOCK_LIBS="-lws2_32 -lpthread"
  2353. ;;
  2354. esac
  2355. cat >>confdefs.h <<_ACEOF
  2356. #define TARGET "$target"
  2357. _ACEOF
  2358. # Set localedir
  2359. localedir=${datadir}/locale
  2360. # Checks for arguments.
  2361. # Check whether --with-gnutls was given.
  2362. if test "${with_gnutls+set}" = set; then
  2363. withval=$with_gnutls; with_gnutls=$withval
  2364. else
  2365. with_gnutls=yes
  2366. fi
  2367. # Check whether --with-openssl was given.
  2368. if test "${with_openssl+set}" = set; then
  2369. withval=$with_openssl; with_openssl=$withval
  2370. else
  2371. with_openssl=yes
  2372. fi
  2373. # Check whether --with-sqlite3 was given.
  2374. if test "${with_sqlite3+set}" = set; then
  2375. withval=$with_sqlite3; with_sqlite3=$withval
  2376. else
  2377. with_sqlite3=yes
  2378. fi
  2379. # Check whether --with-libxml2 was given.
  2380. if test "${with_libxml2+set}" = set; then
  2381. withval=$with_libxml2; with_libxml2=$withval
  2382. else
  2383. with_libxml2=yes
  2384. fi
  2385. # Check whether --with-libexpat was given.
  2386. if test "${with_libexpat+set}" = set; then
  2387. withval=$with_libexpat; with_libexpat=$withval
  2388. else
  2389. with_libexpat=yes
  2390. fi
  2391. # Check whether --with-libcares was given.
  2392. if test "${with_libcares+set}" = set; then
  2393. withval=$with_libcares; with_libcares=$withval
  2394. else
  2395. with_libcares=yes
  2396. fi
  2397. # Check whether --with-libz was given.
  2398. if test "${with_libz+set}" = set; then
  2399. withval=$with_libz; with_libz=$withval
  2400. else
  2401. with_libz=yes
  2402. fi
  2403. # Check whether --enable-bittorrent was given.
  2404. if test "${enable_bittorrent+set}" = set; then
  2405. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2406. else
  2407. enable_bittorrent=yes
  2408. fi
  2409. # Check whether --enable-metalink was given.
  2410. if test "${enable_metalink+set}" = set; then
  2411. enableval=$enable_metalink; enable_metalink=$enableval
  2412. else
  2413. enable_metalink=yes
  2414. fi
  2415. # Check whether --enable-epoll was given.
  2416. if test "${enable_epoll+set}" = set; then
  2417. enableval=$enable_epoll; enable_epoll=$enableval
  2418. else
  2419. enable_epoll=yes
  2420. fi
  2421. # Check whether --with-ca-bundle was given.
  2422. if test "${with_ca_bundle+set}" = set; then
  2423. withval=$with_ca_bundle; ca_bundle=$withval
  2424. else
  2425. ca_bundle=""
  2426. fi
  2427. # Checks for programs.
  2428. ac_ext=cpp
  2429. ac_cpp='$CXXCPP $CPPFLAGS'
  2430. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2431. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2432. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2433. if test -z "$CXX"; then
  2434. if test -n "$CCC"; then
  2435. CXX=$CCC
  2436. else
  2437. if test -n "$ac_tool_prefix"; then
  2438. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2439. do
  2440. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2441. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2442. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2443. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2444. if test "${ac_cv_prog_CXX+set}" = set; then
  2445. echo $ECHO_N "(cached) $ECHO_C" >&6
  2446. else
  2447. if test -n "$CXX"; then
  2448. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2449. else
  2450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2451. for as_dir in $PATH
  2452. do
  2453. IFS=$as_save_IFS
  2454. test -z "$as_dir" && as_dir=.
  2455. for ac_exec_ext in '' $ac_executable_extensions; do
  2456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2457. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2458. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2459. break 2
  2460. fi
  2461. done
  2462. done
  2463. IFS=$as_save_IFS
  2464. fi
  2465. fi
  2466. CXX=$ac_cv_prog_CXX
  2467. if test -n "$CXX"; then
  2468. { echo "$as_me:$LINENO: result: $CXX" >&5
  2469. echo "${ECHO_T}$CXX" >&6; }
  2470. else
  2471. { echo "$as_me:$LINENO: result: no" >&5
  2472. echo "${ECHO_T}no" >&6; }
  2473. fi
  2474. test -n "$CXX" && break
  2475. done
  2476. fi
  2477. if test -z "$CXX"; then
  2478. ac_ct_CXX=$CXX
  2479. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2480. do
  2481. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2482. set dummy $ac_prog; ac_word=$2
  2483. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2484. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2485. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2486. echo $ECHO_N "(cached) $ECHO_C" >&6
  2487. else
  2488. if test -n "$ac_ct_CXX"; then
  2489. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2490. else
  2491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2492. for as_dir in $PATH
  2493. do
  2494. IFS=$as_save_IFS
  2495. test -z "$as_dir" && as_dir=.
  2496. for ac_exec_ext in '' $ac_executable_extensions; do
  2497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2498. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2499. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2500. break 2
  2501. fi
  2502. done
  2503. done
  2504. IFS=$as_save_IFS
  2505. fi
  2506. fi
  2507. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2508. if test -n "$ac_ct_CXX"; then
  2509. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2510. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2511. else
  2512. { echo "$as_me:$LINENO: result: no" >&5
  2513. echo "${ECHO_T}no" >&6; }
  2514. fi
  2515. test -n "$ac_ct_CXX" && break
  2516. done
  2517. if test "x$ac_ct_CXX" = x; then
  2518. CXX="g++"
  2519. else
  2520. case $cross_compiling:$ac_tool_warned in
  2521. yes:)
  2522. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2523. whose name does not start with the host triplet. If you think this
  2524. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2525. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2526. whose name does not start with the host triplet. If you think this
  2527. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2528. ac_tool_warned=yes ;;
  2529. esac
  2530. CXX=$ac_ct_CXX
  2531. fi
  2532. fi
  2533. fi
  2534. fi
  2535. # Provide some information about the compiler.
  2536. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2537. ac_compiler=`set X $ac_compile; echo $2`
  2538. { (ac_try="$ac_compiler --version >&5"
  2539. case "(($ac_try" in
  2540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2541. *) ac_try_echo=$ac_try;;
  2542. esac
  2543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2544. (eval "$ac_compiler --version >&5") 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }
  2548. { (ac_try="$ac_compiler -v >&5"
  2549. case "(($ac_try" in
  2550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2551. *) ac_try_echo=$ac_try;;
  2552. esac
  2553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2554. (eval "$ac_compiler -v >&5") 2>&5
  2555. ac_status=$?
  2556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2557. (exit $ac_status); }
  2558. { (ac_try="$ac_compiler -V >&5"
  2559. case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2564. (eval "$ac_compiler -V >&5") 2>&5
  2565. ac_status=$?
  2566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2567. (exit $ac_status); }
  2568. cat >conftest.$ac_ext <<_ACEOF
  2569. /* confdefs.h. */
  2570. _ACEOF
  2571. cat confdefs.h >>conftest.$ac_ext
  2572. cat >>conftest.$ac_ext <<_ACEOF
  2573. /* end confdefs.h. */
  2574. int
  2575. main ()
  2576. {
  2577. ;
  2578. return 0;
  2579. }
  2580. _ACEOF
  2581. ac_clean_files_save=$ac_clean_files
  2582. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2583. # Try to create an executable without -o first, disregard a.out.
  2584. # It will help us diagnose broken compilers, and finding out an intuition
  2585. # of exeext.
  2586. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2587. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2588. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2589. #
  2590. # List of possible output files, starting from the most likely.
  2591. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2592. # only as a last resort. b.out is created by i960 compilers.
  2593. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2594. #
  2595. # The IRIX 6 linker writes into existing files which may not be
  2596. # executable, retaining their permissions. Remove them first so a
  2597. # subsequent execution test works.
  2598. ac_rmfiles=
  2599. for ac_file in $ac_files
  2600. do
  2601. case $ac_file in
  2602. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2603. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2604. esac
  2605. done
  2606. rm -f $ac_rmfiles
  2607. if { (ac_try="$ac_link_default"
  2608. case "(($ac_try" in
  2609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2610. *) ac_try_echo=$ac_try;;
  2611. esac
  2612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2613. (eval "$ac_link_default") 2>&5
  2614. ac_status=$?
  2615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2616. (exit $ac_status); }; then
  2617. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2618. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2619. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2620. # so that the user can short-circuit this test for compilers unknown to
  2621. # Autoconf.
  2622. for ac_file in $ac_files ''
  2623. do
  2624. test -f "$ac_file" || continue
  2625. case $ac_file in
  2626. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2627. ;;
  2628. [ab].out )
  2629. # We found the default executable, but exeext='' is most
  2630. # certainly right.
  2631. break;;
  2632. *.* )
  2633. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2634. then :; else
  2635. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2636. fi
  2637. # We set ac_cv_exeext here because the later test for it is not
  2638. # safe: cross compilers may not add the suffix if given an `-o'
  2639. # argument, so we may need to know it at that point already.
  2640. # Even if this section looks crufty: it has the advantage of
  2641. # actually working.
  2642. break;;
  2643. * )
  2644. break;;
  2645. esac
  2646. done
  2647. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2648. else
  2649. ac_file=''
  2650. fi
  2651. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2652. echo "${ECHO_T}$ac_file" >&6; }
  2653. if test -z "$ac_file"; then
  2654. echo "$as_me: failed program was:" >&5
  2655. sed 's/^/| /' conftest.$ac_ext >&5
  2656. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2657. See \`config.log' for more details." >&5
  2658. echo "$as_me: error: C++ compiler cannot create executables
  2659. See \`config.log' for more details." >&2;}
  2660. { (exit 77); exit 77; }; }
  2661. fi
  2662. ac_exeext=$ac_cv_exeext
  2663. # Check that the compiler produces executables we can run. If not, either
  2664. # the compiler is broken, or we cross compile.
  2665. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2666. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2667. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2668. # If not cross compiling, check that we can run a simple program.
  2669. if test "$cross_compiling" != yes; then
  2670. if { ac_try='./$ac_file'
  2671. { (case "(($ac_try" in
  2672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2673. *) ac_try_echo=$ac_try;;
  2674. esac
  2675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2676. (eval "$ac_try") 2>&5
  2677. ac_status=$?
  2678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2679. (exit $ac_status); }; }; then
  2680. cross_compiling=no
  2681. else
  2682. if test "$cross_compiling" = maybe; then
  2683. cross_compiling=yes
  2684. else
  2685. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2686. If you meant to cross compile, use \`--host'.
  2687. See \`config.log' for more details." >&5
  2688. echo "$as_me: error: cannot run C++ compiled programs.
  2689. If you meant to cross compile, use \`--host'.
  2690. See \`config.log' for more details." >&2;}
  2691. { (exit 1); exit 1; }; }
  2692. fi
  2693. fi
  2694. fi
  2695. { echo "$as_me:$LINENO: result: yes" >&5
  2696. echo "${ECHO_T}yes" >&6; }
  2697. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2698. ac_clean_files=$ac_clean_files_save
  2699. # Check that the compiler produces executables we can run. If not, either
  2700. # the compiler is broken, or we cross compile.
  2701. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2702. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2703. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2704. echo "${ECHO_T}$cross_compiling" >&6; }
  2705. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2706. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2707. if { (ac_try="$ac_link"
  2708. case "(($ac_try" in
  2709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2710. *) ac_try_echo=$ac_try;;
  2711. esac
  2712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2713. (eval "$ac_link") 2>&5
  2714. ac_status=$?
  2715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2716. (exit $ac_status); }; then
  2717. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2718. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2719. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2720. # `rm'.
  2721. for ac_file in conftest.exe conftest conftest.*; do
  2722. test -f "$ac_file" || continue
  2723. case $ac_file in
  2724. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2725. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2726. break;;
  2727. * ) break;;
  2728. esac
  2729. done
  2730. else
  2731. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2732. See \`config.log' for more details." >&5
  2733. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2734. See \`config.log' for more details." >&2;}
  2735. { (exit 1); exit 1; }; }
  2736. fi
  2737. rm -f conftest$ac_cv_exeext
  2738. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2739. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2740. rm -f conftest.$ac_ext
  2741. EXEEXT=$ac_cv_exeext
  2742. ac_exeext=$EXEEXT
  2743. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2744. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2745. if test "${ac_cv_objext+set}" = set; then
  2746. echo $ECHO_N "(cached) $ECHO_C" >&6
  2747. else
  2748. cat >conftest.$ac_ext <<_ACEOF
  2749. /* confdefs.h. */
  2750. _ACEOF
  2751. cat confdefs.h >>conftest.$ac_ext
  2752. cat >>conftest.$ac_ext <<_ACEOF
  2753. /* end confdefs.h. */
  2754. int
  2755. main ()
  2756. {
  2757. ;
  2758. return 0;
  2759. }
  2760. _ACEOF
  2761. rm -f conftest.o conftest.obj
  2762. if { (ac_try="$ac_compile"
  2763. case "(($ac_try" in
  2764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2765. *) ac_try_echo=$ac_try;;
  2766. esac
  2767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2768. (eval "$ac_compile") 2>&5
  2769. ac_status=$?
  2770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2771. (exit $ac_status); }; then
  2772. for ac_file in conftest.o conftest.obj conftest.*; do
  2773. test -f "$ac_file" || continue;
  2774. case $ac_file in
  2775. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2776. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2777. break;;
  2778. esac
  2779. done
  2780. else
  2781. echo "$as_me: failed program was:" >&5
  2782. sed 's/^/| /' conftest.$ac_ext >&5
  2783. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2784. See \`config.log' for more details." >&5
  2785. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2786. See \`config.log' for more details." >&2;}
  2787. { (exit 1); exit 1; }; }
  2788. fi
  2789. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2790. fi
  2791. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2792. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2793. OBJEXT=$ac_cv_objext
  2794. ac_objext=$OBJEXT
  2795. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2796. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2797. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2798. echo $ECHO_N "(cached) $ECHO_C" >&6
  2799. else
  2800. cat >conftest.$ac_ext <<_ACEOF
  2801. /* confdefs.h. */
  2802. _ACEOF
  2803. cat confdefs.h >>conftest.$ac_ext
  2804. cat >>conftest.$ac_ext <<_ACEOF
  2805. /* end confdefs.h. */
  2806. int
  2807. main ()
  2808. {
  2809. #ifndef __GNUC__
  2810. choke me
  2811. #endif
  2812. ;
  2813. return 0;
  2814. }
  2815. _ACEOF
  2816. rm -f conftest.$ac_objext
  2817. if { (ac_try="$ac_compile"
  2818. case "(($ac_try" in
  2819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2820. *) ac_try_echo=$ac_try;;
  2821. esac
  2822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2823. (eval "$ac_compile") 2>conftest.er1
  2824. ac_status=$?
  2825. grep -v '^ *+' conftest.er1 >conftest.err
  2826. rm -f conftest.er1
  2827. cat conftest.err >&5
  2828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2829. (exit $ac_status); } && {
  2830. test -z "$ac_cxx_werror_flag" ||
  2831. test ! -s conftest.err
  2832. } && test -s conftest.$ac_objext; then
  2833. ac_compiler_gnu=yes
  2834. else
  2835. echo "$as_me: failed program was:" >&5
  2836. sed 's/^/| /' conftest.$ac_ext >&5
  2837. ac_compiler_gnu=no
  2838. fi
  2839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2840. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2841. fi
  2842. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2843. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2844. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2845. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2846. ac_save_CXXFLAGS=$CXXFLAGS
  2847. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2848. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2849. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2850. echo $ECHO_N "(cached) $ECHO_C" >&6
  2851. else
  2852. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2853. ac_cxx_werror_flag=yes
  2854. ac_cv_prog_cxx_g=no
  2855. CXXFLAGS="-g"
  2856. cat >conftest.$ac_ext <<_ACEOF
  2857. /* confdefs.h. */
  2858. _ACEOF
  2859. cat confdefs.h >>conftest.$ac_ext
  2860. cat >>conftest.$ac_ext <<_ACEOF
  2861. /* end confdefs.h. */
  2862. int
  2863. main ()
  2864. {
  2865. ;
  2866. return 0;
  2867. }
  2868. _ACEOF
  2869. rm -f conftest.$ac_objext
  2870. if { (ac_try="$ac_compile"
  2871. case "(($ac_try" in
  2872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2873. *) ac_try_echo=$ac_try;;
  2874. esac
  2875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2876. (eval "$ac_compile") 2>conftest.er1
  2877. ac_status=$?
  2878. grep -v '^ *+' conftest.er1 >conftest.err
  2879. rm -f conftest.er1
  2880. cat conftest.err >&5
  2881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2882. (exit $ac_status); } && {
  2883. test -z "$ac_cxx_werror_flag" ||
  2884. test ! -s conftest.err
  2885. } && test -s conftest.$ac_objext; then
  2886. ac_cv_prog_cxx_g=yes
  2887. else
  2888. echo "$as_me: failed program was:" >&5
  2889. sed 's/^/| /' conftest.$ac_ext >&5
  2890. CXXFLAGS=""
  2891. cat >conftest.$ac_ext <<_ACEOF
  2892. /* confdefs.h. */
  2893. _ACEOF
  2894. cat confdefs.h >>conftest.$ac_ext
  2895. cat >>conftest.$ac_ext <<_ACEOF
  2896. /* end confdefs.h. */
  2897. int
  2898. main ()
  2899. {
  2900. ;
  2901. return 0;
  2902. }
  2903. _ACEOF
  2904. rm -f conftest.$ac_objext
  2905. if { (ac_try="$ac_compile"
  2906. case "(($ac_try" in
  2907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2908. *) ac_try_echo=$ac_try;;
  2909. esac
  2910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2911. (eval "$ac_compile") 2>conftest.er1
  2912. ac_status=$?
  2913. grep -v '^ *+' conftest.er1 >conftest.err
  2914. rm -f conftest.er1
  2915. cat conftest.err >&5
  2916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2917. (exit $ac_status); } && {
  2918. test -z "$ac_cxx_werror_flag" ||
  2919. test ! -s conftest.err
  2920. } && test -s conftest.$ac_objext; then
  2921. :
  2922. else
  2923. echo "$as_me: failed program was:" >&5
  2924. sed 's/^/| /' conftest.$ac_ext >&5
  2925. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2926. CXXFLAGS="-g"
  2927. cat >conftest.$ac_ext <<_ACEOF
  2928. /* confdefs.h. */
  2929. _ACEOF
  2930. cat confdefs.h >>conftest.$ac_ext
  2931. cat >>conftest.$ac_ext <<_ACEOF
  2932. /* end confdefs.h. */
  2933. int
  2934. main ()
  2935. {
  2936. ;
  2937. return 0;
  2938. }
  2939. _ACEOF
  2940. rm -f conftest.$ac_objext
  2941. if { (ac_try="$ac_compile"
  2942. case "(($ac_try" in
  2943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2944. *) ac_try_echo=$ac_try;;
  2945. esac
  2946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2947. (eval "$ac_compile") 2>conftest.er1
  2948. ac_status=$?
  2949. grep -v '^ *+' conftest.er1 >conftest.err
  2950. rm -f conftest.er1
  2951. cat conftest.err >&5
  2952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); } && {
  2954. test -z "$ac_cxx_werror_flag" ||
  2955. test ! -s conftest.err
  2956. } && test -s conftest.$ac_objext; then
  2957. ac_cv_prog_cxx_g=yes
  2958. else
  2959. echo "$as_me: failed program was:" >&5
  2960. sed 's/^/| /' conftest.$ac_ext >&5
  2961. fi
  2962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2963. fi
  2964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2965. fi
  2966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2967. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2968. fi
  2969. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2970. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2971. if test "$ac_test_CXXFLAGS" = set; then
  2972. CXXFLAGS=$ac_save_CXXFLAGS
  2973. elif test $ac_cv_prog_cxx_g = yes; then
  2974. if test "$GXX" = yes; then
  2975. CXXFLAGS="-g -O2"
  2976. else
  2977. CXXFLAGS="-g"
  2978. fi
  2979. else
  2980. if test "$GXX" = yes; then
  2981. CXXFLAGS="-O2"
  2982. else
  2983. CXXFLAGS=
  2984. fi
  2985. fi
  2986. ac_ext=c
  2987. ac_cpp='$CPP $CPPFLAGS'
  2988. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2989. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2990. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2991. DEPDIR="${am__leading_dot}deps"
  2992. ac_config_commands="$ac_config_commands depfiles"
  2993. am_make=${MAKE-make}
  2994. cat > confinc << 'END'
  2995. am__doit:
  2996. @echo done
  2997. .PHONY: am__doit
  2998. END
  2999. # If we don't find an include directive, just comment out the code.
  3000. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3001. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3002. am__include="#"
  3003. am__quote=
  3004. _am_result=none
  3005. # First try GNU make style include.
  3006. echo "include confinc" > confmf
  3007. # We grep out `Entering directory' and `Leaving directory'
  3008. # messages which can occur if `w' ends up in MAKEFLAGS.
  3009. # In particular we don't look at `^make:' because GNU make might
  3010. # be invoked under some other name (usually "gmake"), in which
  3011. # case it prints its new name instead of `make'.
  3012. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3013. am__include=include
  3014. am__quote=
  3015. _am_result=GNU
  3016. fi
  3017. # Now try BSD make style include.
  3018. if test "$am__include" = "#"; then
  3019. echo '.include "confinc"' > confmf
  3020. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3021. am__include=.include
  3022. am__quote="\""
  3023. _am_result=BSD
  3024. fi
  3025. fi
  3026. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3027. echo "${ECHO_T}$_am_result" >&6; }
  3028. rm -f confinc confmf
  3029. # Check whether --enable-dependency-tracking was given.
  3030. if test "${enable_dependency_tracking+set}" = set; then
  3031. enableval=$enable_dependency_tracking;
  3032. fi
  3033. if test "x$enable_dependency_tracking" != xno; then
  3034. am_depcomp="$ac_aux_dir/depcomp"
  3035. AMDEPBACKSLASH='\'
  3036. fi
  3037. if test "x$enable_dependency_tracking" != xno; then
  3038. AMDEP_TRUE=
  3039. AMDEP_FALSE='#'
  3040. else
  3041. AMDEP_TRUE='#'
  3042. AMDEP_FALSE=
  3043. fi
  3044. depcc="$CXX" am_compiler_list=
  3045. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3046. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3047. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3048. echo $ECHO_N "(cached) $ECHO_C" >&6
  3049. else
  3050. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3051. # We make a subdir and do the tests there. Otherwise we can end up
  3052. # making bogus files that we don't know about and never remove. For
  3053. # instance it was reported that on HP-UX the gcc test will end up
  3054. # making a dummy file named `D' -- because `-MD' means `put the output
  3055. # in D'.
  3056. mkdir conftest.dir
  3057. # Copy depcomp to subdir because otherwise we won't find it if we're
  3058. # using a relative directory.
  3059. cp "$am_depcomp" conftest.dir
  3060. cd conftest.dir
  3061. # We will build objects and dependencies in a subdirectory because
  3062. # it helps to detect inapplicable dependency modes. For instance
  3063. # both Tru64's cc and ICC support -MD to output dependencies as a
  3064. # side effect of compilation, but ICC will put the dependencies in
  3065. # the current directory while Tru64 will put them in the object
  3066. # directory.
  3067. mkdir sub
  3068. am_cv_CXX_dependencies_compiler_type=none
  3069. if test "$am_compiler_list" = ""; then
  3070. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3071. fi
  3072. for depmode in $am_compiler_list; do
  3073. # Setup a source with many dependencies, because some compilers
  3074. # like to wrap large dependency lists on column 80 (with \), and
  3075. # we should not choose a depcomp mode which is confused by this.
  3076. #
  3077. # We need to recreate these files for each test, as the compiler may
  3078. # overwrite some of them when testing with obscure command lines.
  3079. # This happens at least with the AIX C compiler.
  3080. : > sub/conftest.c
  3081. for i in 1 2 3 4 5 6; do
  3082. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3083. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3084. # Solaris 8's {/usr,}/bin/sh.
  3085. touch sub/conftst$i.h
  3086. done
  3087. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3088. case $depmode in
  3089. nosideeffect)
  3090. # after this tag, mechanisms are not by side-effect, so they'll
  3091. # only be used when explicitly requested
  3092. if test "x$enable_dependency_tracking" = xyes; then
  3093. continue
  3094. else
  3095. break
  3096. fi
  3097. ;;
  3098. none) break ;;
  3099. esac
  3100. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3101. # mode. It turns out that the SunPro C++ compiler does not properly
  3102. # handle `-M -o', and we need to detect this.
  3103. if depmode=$depmode \
  3104. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3105. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3106. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3107. >/dev/null 2>conftest.err &&
  3108. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3109. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3110. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3111. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3112. # icc doesn't choke on unknown options, it will just issue warnings
  3113. # or remarks (even with -Werror). So we grep stderr for any message
  3114. # that says an option was ignored or not supported.
  3115. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3116. # icc: Command line warning: ignoring option '-M'; no argument required
  3117. # The diagnosis changed in icc 8.0:
  3118. # icc: Command line remark: option '-MP' not supported
  3119. if (grep 'ignoring option' conftest.err ||
  3120. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3121. am_cv_CXX_dependencies_compiler_type=$depmode
  3122. break
  3123. fi
  3124. fi
  3125. done
  3126. cd ..
  3127. rm -rf conftest.dir
  3128. else
  3129. am_cv_CXX_dependencies_compiler_type=none
  3130. fi
  3131. fi
  3132. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3133. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3134. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3135. if
  3136. test "x$enable_dependency_tracking" != xno \
  3137. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3138. am__fastdepCXX_TRUE=
  3139. am__fastdepCXX_FALSE='#'
  3140. else
  3141. am__fastdepCXX_TRUE='#'
  3142. am__fastdepCXX_FALSE=
  3143. fi
  3144. ac_ext=c
  3145. ac_cpp='$CPP $CPPFLAGS'
  3146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3149. if test -n "$ac_tool_prefix"; then
  3150. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3151. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3152. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3153. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3154. if test "${ac_cv_prog_CC+set}" = set; then
  3155. echo $ECHO_N "(cached) $ECHO_C" >&6
  3156. else
  3157. if test -n "$CC"; then
  3158. ac_cv_prog_CC="$CC" # Let the user override the test.
  3159. else
  3160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3161. for as_dir in $PATH
  3162. do
  3163. IFS=$as_save_IFS
  3164. test -z "$as_dir" && as_dir=.
  3165. for ac_exec_ext in '' $ac_executable_extensions; do
  3166. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3167. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3168. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3169. break 2
  3170. fi
  3171. done
  3172. done
  3173. IFS=$as_save_IFS
  3174. fi
  3175. fi
  3176. CC=$ac_cv_prog_CC
  3177. if test -n "$CC"; then
  3178. { echo "$as_me:$LINENO: result: $CC" >&5
  3179. echo "${ECHO_T}$CC" >&6; }
  3180. else
  3181. { echo "$as_me:$LINENO: result: no" >&5
  3182. echo "${ECHO_T}no" >&6; }
  3183. fi
  3184. fi
  3185. if test -z "$ac_cv_prog_CC"; then
  3186. ac_ct_CC=$CC
  3187. # Extract the first word of "gcc", so it can be a program name with args.
  3188. set dummy gcc; ac_word=$2
  3189. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3190. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3191. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3192. echo $ECHO_N "(cached) $ECHO_C" >&6
  3193. else
  3194. if test -n "$ac_ct_CC"; then
  3195. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3196. else
  3197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3198. for as_dir in $PATH
  3199. do
  3200. IFS=$as_save_IFS
  3201. test -z "$as_dir" && as_dir=.
  3202. for ac_exec_ext in '' $ac_executable_extensions; do
  3203. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3204. ac_cv_prog_ac_ct_CC="gcc"
  3205. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3206. break 2
  3207. fi
  3208. done
  3209. done
  3210. IFS=$as_save_IFS
  3211. fi
  3212. fi
  3213. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3214. if test -n "$ac_ct_CC"; then
  3215. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3216. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3217. else
  3218. { echo "$as_me:$LINENO: result: no" >&5
  3219. echo "${ECHO_T}no" >&6; }
  3220. fi
  3221. if test "x$ac_ct_CC" = x; then
  3222. CC=""
  3223. else
  3224. case $cross_compiling:$ac_tool_warned in
  3225. yes:)
  3226. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3227. whose name does not start with the host triplet. If you think this
  3228. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3229. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3230. whose name does not start with the host triplet. If you think this
  3231. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3232. ac_tool_warned=yes ;;
  3233. esac
  3234. CC=$ac_ct_CC
  3235. fi
  3236. else
  3237. CC="$ac_cv_prog_CC"
  3238. fi
  3239. if test -z "$CC"; then
  3240. if test -n "$ac_tool_prefix"; then
  3241. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3242. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3243. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3244. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3245. if test "${ac_cv_prog_CC+set}" = set; then
  3246. echo $ECHO_N "(cached) $ECHO_C" >&6
  3247. else
  3248. if test -n "$CC"; then
  3249. ac_cv_prog_CC="$CC" # Let the user override the test.
  3250. else
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3258. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3259. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3260. break 2
  3261. fi
  3262. done
  3263. done
  3264. IFS=$as_save_IFS
  3265. fi
  3266. fi
  3267. CC=$ac_cv_prog_CC
  3268. if test -n "$CC"; then
  3269. { echo "$as_me:$LINENO: result: $CC" >&5
  3270. echo "${ECHO_T}$CC" >&6; }
  3271. else
  3272. { echo "$as_me:$LINENO: result: no" >&5
  3273. echo "${ECHO_T}no" >&6; }
  3274. fi
  3275. fi
  3276. fi
  3277. if test -z "$CC"; then
  3278. # Extract the first word of "cc", so it can be a program name with args.
  3279. set dummy cc; ac_word=$2
  3280. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3282. if test "${ac_cv_prog_CC+set}" = set; then
  3283. echo $ECHO_N "(cached) $ECHO_C" >&6
  3284. else
  3285. if test -n "$CC"; then
  3286. ac_cv_prog_CC="$CC" # Let the user override the test.
  3287. else
  3288. ac_prog_rejected=no
  3289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3290. for as_dir in $PATH
  3291. do
  3292. IFS=$as_save_IFS
  3293. test -z "$as_dir" && as_dir=.
  3294. for ac_exec_ext in '' $ac_executable_extensions; do
  3295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3296. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3297. ac_prog_rejected=yes
  3298. continue
  3299. fi
  3300. ac_cv_prog_CC="cc"
  3301. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3302. break 2
  3303. fi
  3304. done
  3305. done
  3306. IFS=$as_save_IFS
  3307. if test $ac_prog_rejected = yes; then
  3308. # We found a bogon in the path, so make sure we never use it.
  3309. set dummy $ac_cv_prog_CC
  3310. shift
  3311. if test $# != 0; then
  3312. # We chose a different compiler from the bogus one.
  3313. # However, it has the same basename, so the bogon will be chosen
  3314. # first if we set CC to just the basename; use the full file name.
  3315. shift
  3316. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3317. fi
  3318. fi
  3319. fi
  3320. fi
  3321. CC=$ac_cv_prog_CC
  3322. if test -n "$CC"; then
  3323. { echo "$as_me:$LINENO: result: $CC" >&5
  3324. echo "${ECHO_T}$CC" >&6; }
  3325. else
  3326. { echo "$as_me:$LINENO: result: no" >&5
  3327. echo "${ECHO_T}no" >&6; }
  3328. fi
  3329. fi
  3330. if test -z "$CC"; then
  3331. if test -n "$ac_tool_prefix"; then
  3332. for ac_prog in cl.exe
  3333. do
  3334. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3335. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3336. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3337. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3338. if test "${ac_cv_prog_CC+set}" = set; then
  3339. echo $ECHO_N "(cached) $ECHO_C" >&6
  3340. else
  3341. if test -n "$CC"; then
  3342. ac_cv_prog_CC="$CC" # Let the user override the test.
  3343. else
  3344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3345. for as_dir in $PATH
  3346. do
  3347. IFS=$as_save_IFS
  3348. test -z "$as_dir" && as_dir=.
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3351. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3352. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3353. break 2
  3354. fi
  3355. done
  3356. done
  3357. IFS=$as_save_IFS
  3358. fi
  3359. fi
  3360. CC=$ac_cv_prog_CC
  3361. if test -n "$CC"; then
  3362. { echo "$as_me:$LINENO: result: $CC" >&5
  3363. echo "${ECHO_T}$CC" >&6; }
  3364. else
  3365. { echo "$as_me:$LINENO: result: no" >&5
  3366. echo "${ECHO_T}no" >&6; }
  3367. fi
  3368. test -n "$CC" && break
  3369. done
  3370. fi
  3371. if test -z "$CC"; then
  3372. ac_ct_CC=$CC
  3373. for ac_prog in cl.exe
  3374. do
  3375. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3376. set dummy $ac_prog; ac_word=$2
  3377. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3378. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3379. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3380. echo $ECHO_N "(cached) $ECHO_C" >&6
  3381. else
  3382. if test -n "$ac_ct_CC"; then
  3383. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3384. else
  3385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3386. for as_dir in $PATH
  3387. do
  3388. IFS=$as_save_IFS
  3389. test -z "$as_dir" && as_dir=.
  3390. for ac_exec_ext in '' $ac_executable_extensions; do
  3391. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3392. ac_cv_prog_ac_ct_CC="$ac_prog"
  3393. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3394. break 2
  3395. fi
  3396. done
  3397. done
  3398. IFS=$as_save_IFS
  3399. fi
  3400. fi
  3401. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3402. if test -n "$ac_ct_CC"; then
  3403. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3404. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3405. else
  3406. { echo "$as_me:$LINENO: result: no" >&5
  3407. echo "${ECHO_T}no" >&6; }
  3408. fi
  3409. test -n "$ac_ct_CC" && break
  3410. done
  3411. if test "x$ac_ct_CC" = x; then
  3412. CC=""
  3413. else
  3414. case $cross_compiling:$ac_tool_warned in
  3415. yes:)
  3416. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3417. whose name does not start with the host triplet. If you think this
  3418. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3419. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3420. whose name does not start with the host triplet. If you think this
  3421. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3422. ac_tool_warned=yes ;;
  3423. esac
  3424. CC=$ac_ct_CC
  3425. fi
  3426. fi
  3427. fi
  3428. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3429. See \`config.log' for more details." >&5
  3430. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3431. See \`config.log' for more details." >&2;}
  3432. { (exit 1); exit 1; }; }
  3433. # Provide some information about the compiler.
  3434. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3435. ac_compiler=`set X $ac_compile; echo $2`
  3436. { (ac_try="$ac_compiler --version >&5"
  3437. case "(($ac_try" in
  3438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3439. *) ac_try_echo=$ac_try;;
  3440. esac
  3441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3442. (eval "$ac_compiler --version >&5") 2>&5
  3443. ac_status=$?
  3444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3445. (exit $ac_status); }
  3446. { (ac_try="$ac_compiler -v >&5"
  3447. case "(($ac_try" in
  3448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3449. *) ac_try_echo=$ac_try;;
  3450. esac
  3451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3452. (eval "$ac_compiler -v >&5") 2>&5
  3453. ac_status=$?
  3454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3455. (exit $ac_status); }
  3456. { (ac_try="$ac_compiler -V >&5"
  3457. case "(($ac_try" in
  3458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3459. *) ac_try_echo=$ac_try;;
  3460. esac
  3461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3462. (eval "$ac_compiler -V >&5") 2>&5
  3463. ac_status=$?
  3464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3465. (exit $ac_status); }
  3466. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3467. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3468. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3469. echo $ECHO_N "(cached) $ECHO_C" >&6
  3470. else
  3471. cat >conftest.$ac_ext <<_ACEOF
  3472. /* confdefs.h. */
  3473. _ACEOF
  3474. cat confdefs.h >>conftest.$ac_ext
  3475. cat >>conftest.$ac_ext <<_ACEOF
  3476. /* end confdefs.h. */
  3477. int
  3478. main ()
  3479. {
  3480. #ifndef __GNUC__
  3481. choke me
  3482. #endif
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. rm -f conftest.$ac_objext
  3488. if { (ac_try="$ac_compile"
  3489. case "(($ac_try" in
  3490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3491. *) ac_try_echo=$ac_try;;
  3492. esac
  3493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3494. (eval "$ac_compile") 2>conftest.er1
  3495. ac_status=$?
  3496. grep -v '^ *+' conftest.er1 >conftest.err
  3497. rm -f conftest.er1
  3498. cat conftest.err >&5
  3499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3500. (exit $ac_status); } && {
  3501. test -z "$ac_c_werror_flag" ||
  3502. test ! -s conftest.err
  3503. } && test -s conftest.$ac_objext; then
  3504. ac_compiler_gnu=yes
  3505. else
  3506. echo "$as_me: failed program was:" >&5
  3507. sed 's/^/| /' conftest.$ac_ext >&5
  3508. ac_compiler_gnu=no
  3509. fi
  3510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3511. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3512. fi
  3513. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3514. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3515. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3516. ac_test_CFLAGS=${CFLAGS+set}
  3517. ac_save_CFLAGS=$CFLAGS
  3518. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3519. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3520. if test "${ac_cv_prog_cc_g+set}" = set; then
  3521. echo $ECHO_N "(cached) $ECHO_C" >&6
  3522. else
  3523. ac_save_c_werror_flag=$ac_c_werror_flag
  3524. ac_c_werror_flag=yes
  3525. ac_cv_prog_cc_g=no
  3526. CFLAGS="-g"
  3527. cat >conftest.$ac_ext <<_ACEOF
  3528. /* confdefs.h. */
  3529. _ACEOF
  3530. cat confdefs.h >>conftest.$ac_ext
  3531. cat >>conftest.$ac_ext <<_ACEOF
  3532. /* end confdefs.h. */
  3533. int
  3534. main ()
  3535. {
  3536. ;
  3537. return 0;
  3538. }
  3539. _ACEOF
  3540. rm -f conftest.$ac_objext
  3541. if { (ac_try="$ac_compile"
  3542. case "(($ac_try" in
  3543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3544. *) ac_try_echo=$ac_try;;
  3545. esac
  3546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3547. (eval "$ac_compile") 2>conftest.er1
  3548. ac_status=$?
  3549. grep -v '^ *+' conftest.er1 >conftest.err
  3550. rm -f conftest.er1
  3551. cat conftest.err >&5
  3552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3553. (exit $ac_status); } && {
  3554. test -z "$ac_c_werror_flag" ||
  3555. test ! -s conftest.err
  3556. } && test -s conftest.$ac_objext; then
  3557. ac_cv_prog_cc_g=yes
  3558. else
  3559. echo "$as_me: failed program was:" >&5
  3560. sed 's/^/| /' conftest.$ac_ext >&5
  3561. CFLAGS=""
  3562. cat >conftest.$ac_ext <<_ACEOF
  3563. /* confdefs.h. */
  3564. _ACEOF
  3565. cat confdefs.h >>conftest.$ac_ext
  3566. cat >>conftest.$ac_ext <<_ACEOF
  3567. /* end confdefs.h. */
  3568. int
  3569. main ()
  3570. {
  3571. ;
  3572. return 0;
  3573. }
  3574. _ACEOF
  3575. rm -f conftest.$ac_objext
  3576. if { (ac_try="$ac_compile"
  3577. case "(($ac_try" in
  3578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3579. *) ac_try_echo=$ac_try;;
  3580. esac
  3581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3582. (eval "$ac_compile") 2>conftest.er1
  3583. ac_status=$?
  3584. grep -v '^ *+' conftest.er1 >conftest.err
  3585. rm -f conftest.er1
  3586. cat conftest.err >&5
  3587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); } && {
  3589. test -z "$ac_c_werror_flag" ||
  3590. test ! -s conftest.err
  3591. } && test -s conftest.$ac_objext; then
  3592. :
  3593. else
  3594. echo "$as_me: failed program was:" >&5
  3595. sed 's/^/| /' conftest.$ac_ext >&5
  3596. ac_c_werror_flag=$ac_save_c_werror_flag
  3597. CFLAGS="-g"
  3598. cat >conftest.$ac_ext <<_ACEOF
  3599. /* confdefs.h. */
  3600. _ACEOF
  3601. cat confdefs.h >>conftest.$ac_ext
  3602. cat >>conftest.$ac_ext <<_ACEOF
  3603. /* end confdefs.h. */
  3604. int
  3605. main ()
  3606. {
  3607. ;
  3608. return 0;
  3609. }
  3610. _ACEOF
  3611. rm -f conftest.$ac_objext
  3612. if { (ac_try="$ac_compile"
  3613. case "(($ac_try" in
  3614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3615. *) ac_try_echo=$ac_try;;
  3616. esac
  3617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3618. (eval "$ac_compile") 2>conftest.er1
  3619. ac_status=$?
  3620. grep -v '^ *+' conftest.er1 >conftest.err
  3621. rm -f conftest.er1
  3622. cat conftest.err >&5
  3623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3624. (exit $ac_status); } && {
  3625. test -z "$ac_c_werror_flag" ||
  3626. test ! -s conftest.err
  3627. } && test -s conftest.$ac_objext; then
  3628. ac_cv_prog_cc_g=yes
  3629. else
  3630. echo "$as_me: failed program was:" >&5
  3631. sed 's/^/| /' conftest.$ac_ext >&5
  3632. fi
  3633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3634. fi
  3635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3636. fi
  3637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3638. ac_c_werror_flag=$ac_save_c_werror_flag
  3639. fi
  3640. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3641. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3642. if test "$ac_test_CFLAGS" = set; then
  3643. CFLAGS=$ac_save_CFLAGS
  3644. elif test $ac_cv_prog_cc_g = yes; then
  3645. if test "$GCC" = yes; then
  3646. CFLAGS="-g -O2"
  3647. else
  3648. CFLAGS="-g"
  3649. fi
  3650. else
  3651. if test "$GCC" = yes; then
  3652. CFLAGS="-O2"
  3653. else
  3654. CFLAGS=
  3655. fi
  3656. fi
  3657. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3658. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3659. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3660. echo $ECHO_N "(cached) $ECHO_C" >&6
  3661. else
  3662. ac_cv_prog_cc_c89=no
  3663. ac_save_CC=$CC
  3664. cat >conftest.$ac_ext <<_ACEOF
  3665. /* confdefs.h. */
  3666. _ACEOF
  3667. cat confdefs.h >>conftest.$ac_ext
  3668. cat >>conftest.$ac_ext <<_ACEOF
  3669. /* end confdefs.h. */
  3670. #include <stdarg.h>
  3671. #include <stdio.h>
  3672. #include <sys/types.h>
  3673. #include <sys/stat.h>
  3674. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3675. struct buf { int x; };
  3676. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3677. static char *e (p, i)
  3678. char **p;
  3679. int i;
  3680. {
  3681. return p[i];
  3682. }
  3683. static char *f (char * (*g) (char **, int), char **p, ...)
  3684. {
  3685. char *s;
  3686. va_list v;
  3687. va_start (v,p);
  3688. s = g (p, va_arg (v,int));
  3689. va_end (v);
  3690. return s;
  3691. }
  3692. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3693. function prototypes and stuff, but not '\xHH' hex character constants.
  3694. These don't provoke an error unfortunately, instead are silently treated
  3695. as 'x'. The following induces an error, until -std is added to get
  3696. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3697. array size at least. It's necessary to write '\x00'==0 to get something
  3698. that's true only with -std. */
  3699. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3700. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3701. inside strings and character constants. */
  3702. #define FOO(x) 'x'
  3703. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3704. int test (int i, double x);
  3705. struct s1 {int (*f) (int a);};
  3706. struct s2 {int (*f) (double a);};
  3707. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3708. int argc;
  3709. char **argv;
  3710. int
  3711. main ()
  3712. {
  3713. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3714. ;
  3715. return 0;
  3716. }
  3717. _ACEOF
  3718. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3719. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3720. do
  3721. CC="$ac_save_CC $ac_arg"
  3722. rm -f conftest.$ac_objext
  3723. if { (ac_try="$ac_compile"
  3724. case "(($ac_try" in
  3725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3726. *) ac_try_echo=$ac_try;;
  3727. esac
  3728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3729. (eval "$ac_compile") 2>conftest.er1
  3730. ac_status=$?
  3731. grep -v '^ *+' conftest.er1 >conftest.err
  3732. rm -f conftest.er1
  3733. cat conftest.err >&5
  3734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3735. (exit $ac_status); } && {
  3736. test -z "$ac_c_werror_flag" ||
  3737. test ! -s conftest.err
  3738. } && test -s conftest.$ac_objext; then
  3739. ac_cv_prog_cc_c89=$ac_arg
  3740. else
  3741. echo "$as_me: failed program was:" >&5
  3742. sed 's/^/| /' conftest.$ac_ext >&5
  3743. fi
  3744. rm -f core conftest.err conftest.$ac_objext
  3745. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3746. done
  3747. rm -f conftest.$ac_ext
  3748. CC=$ac_save_CC
  3749. fi
  3750. # AC_CACHE_VAL
  3751. case "x$ac_cv_prog_cc_c89" in
  3752. x)
  3753. { echo "$as_me:$LINENO: result: none needed" >&5
  3754. echo "${ECHO_T}none needed" >&6; } ;;
  3755. xno)
  3756. { echo "$as_me:$LINENO: result: unsupported" >&5
  3757. echo "${ECHO_T}unsupported" >&6; } ;;
  3758. *)
  3759. CC="$CC $ac_cv_prog_cc_c89"
  3760. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3761. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3762. esac
  3763. ac_ext=c
  3764. ac_cpp='$CPP $CPPFLAGS'
  3765. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3766. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3767. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3768. depcc="$CC" am_compiler_list=
  3769. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3770. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3771. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3772. echo $ECHO_N "(cached) $ECHO_C" >&6
  3773. else
  3774. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3775. # We make a subdir and do the tests there. Otherwise we can end up
  3776. # making bogus files that we don't know about and never remove. For
  3777. # instance it was reported that on HP-UX the gcc test will end up
  3778. # making a dummy file named `D' -- because `-MD' means `put the output
  3779. # in D'.
  3780. mkdir conftest.dir
  3781. # Copy depcomp to subdir because otherwise we won't find it if we're
  3782. # using a relative directory.
  3783. cp "$am_depcomp" conftest.dir
  3784. cd conftest.dir
  3785. # We will build objects and dependencies in a subdirectory because
  3786. # it helps to detect inapplicable dependency modes. For instance
  3787. # both Tru64's cc and ICC support -MD to output dependencies as a
  3788. # side effect of compilation, but ICC will put the dependencies in
  3789. # the current directory while Tru64 will put them in the object
  3790. # directory.
  3791. mkdir sub
  3792. am_cv_CC_dependencies_compiler_type=none
  3793. if test "$am_compiler_list" = ""; then
  3794. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3795. fi
  3796. for depmode in $am_compiler_list; do
  3797. # Setup a source with many dependencies, because some compilers
  3798. # like to wrap large dependency lists on column 80 (with \), and
  3799. # we should not choose a depcomp mode which is confused by this.
  3800. #
  3801. # We need to recreate these files for each test, as the compiler may
  3802. # overwrite some of them when testing with obscure command lines.
  3803. # This happens at least with the AIX C compiler.
  3804. : > sub/conftest.c
  3805. for i in 1 2 3 4 5 6; do
  3806. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3807. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3808. # Solaris 8's {/usr,}/bin/sh.
  3809. touch sub/conftst$i.h
  3810. done
  3811. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3812. case $depmode in
  3813. nosideeffect)
  3814. # after this tag, mechanisms are not by side-effect, so they'll
  3815. # only be used when explicitly requested
  3816. if test "x$enable_dependency_tracking" = xyes; then
  3817. continue
  3818. else
  3819. break
  3820. fi
  3821. ;;
  3822. none) break ;;
  3823. esac
  3824. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3825. # mode. It turns out that the SunPro C++ compiler does not properly
  3826. # handle `-M -o', and we need to detect this.
  3827. if depmode=$depmode \
  3828. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3829. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3830. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3831. >/dev/null 2>conftest.err &&
  3832. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3833. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3834. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3835. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3836. # icc doesn't choke on unknown options, it will just issue warnings
  3837. # or remarks (even with -Werror). So we grep stderr for any message
  3838. # that says an option was ignored or not supported.
  3839. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3840. # icc: Command line warning: ignoring option '-M'; no argument required
  3841. # The diagnosis changed in icc 8.0:
  3842. # icc: Command line remark: option '-MP' not supported
  3843. if (grep 'ignoring option' conftest.err ||
  3844. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3845. am_cv_CC_dependencies_compiler_type=$depmode
  3846. break
  3847. fi
  3848. fi
  3849. done
  3850. cd ..
  3851. rm -rf conftest.dir
  3852. else
  3853. am_cv_CC_dependencies_compiler_type=none
  3854. fi
  3855. fi
  3856. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3857. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3858. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3859. if
  3860. test "x$enable_dependency_tracking" != xno \
  3861. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3862. am__fastdepCC_TRUE=
  3863. am__fastdepCC_FALSE='#'
  3864. else
  3865. am__fastdepCC_TRUE='#'
  3866. am__fastdepCC_FALSE=
  3867. fi
  3868. # Find a good install program. We prefer a C program (faster),
  3869. # so one script is as good as another. But avoid the broken or
  3870. # incompatible versions:
  3871. # SysV /etc/install, /usr/sbin/install
  3872. # SunOS /usr/etc/install
  3873. # IRIX /sbin/install
  3874. # AIX /bin/install
  3875. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3876. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3877. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3878. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3879. # OS/2's system install, which has a completely different semantic
  3880. # ./install, which can be erroneously created by make from ./install.sh.
  3881. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3882. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3883. if test -z "$INSTALL"; then
  3884. if test "${ac_cv_path_install+set}" = set; then
  3885. echo $ECHO_N "(cached) $ECHO_C" >&6
  3886. else
  3887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3888. for as_dir in $PATH
  3889. do
  3890. IFS=$as_save_IFS
  3891. test -z "$as_dir" && as_dir=.
  3892. # Account for people who put trailing slashes in PATH elements.
  3893. case $as_dir/ in
  3894. ./ | .// | /cC/* | \
  3895. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3896. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3897. /usr/ucb/* ) ;;
  3898. *)
  3899. # OSF1 and SCO ODT 3.0 have their own names for install.
  3900. # Don't use installbsd from OSF since it installs stuff as root
  3901. # by default.
  3902. for ac_prog in ginstall scoinst install; do
  3903. for ac_exec_ext in '' $ac_executable_extensions; do
  3904. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3905. if test $ac_prog = install &&
  3906. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3907. # AIX install. It has an incompatible calling convention.
  3908. :
  3909. elif test $ac_prog = install &&
  3910. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3911. # program-specific install script used by HP pwplus--don't use.
  3912. :
  3913. else
  3914. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3915. break 3
  3916. fi
  3917. fi
  3918. done
  3919. done
  3920. ;;
  3921. esac
  3922. done
  3923. IFS=$as_save_IFS
  3924. fi
  3925. if test "${ac_cv_path_install+set}" = set; then
  3926. INSTALL=$ac_cv_path_install
  3927. else
  3928. # As a last resort, use the slow shell script. Don't cache a
  3929. # value for INSTALL within a source directory, because that will
  3930. # break other packages using the cache if that directory is
  3931. # removed, or if the value is a relative name.
  3932. INSTALL=$ac_install_sh
  3933. fi
  3934. fi
  3935. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3936. echo "${ECHO_T}$INSTALL" >&6; }
  3937. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3938. # It thinks the first close brace ends the variable substitution.
  3939. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3940. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3941. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3942. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3943. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3944. if test -z "$MKDIR_P"; then
  3945. if test "${ac_cv_path_mkdir+set}" = set; then
  3946. echo $ECHO_N "(cached) $ECHO_C" >&6
  3947. else
  3948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3949. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3950. do
  3951. IFS=$as_save_IFS
  3952. test -z "$as_dir" && as_dir=.
  3953. for ac_prog in mkdir gmkdir; do
  3954. for ac_exec_ext in '' $ac_executable_extensions; do
  3955. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3956. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3957. 'mkdir (GNU coreutils) '* | \
  3958. 'mkdir (coreutils) '* | \
  3959. 'mkdir (fileutils) '4.1*)
  3960. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3961. break 3;;
  3962. esac
  3963. done
  3964. done
  3965. done
  3966. IFS=$as_save_IFS
  3967. fi
  3968. if test "${ac_cv_path_mkdir+set}" = set; then
  3969. MKDIR_P="$ac_cv_path_mkdir -p"
  3970. else
  3971. # As a last resort, use the slow shell script. Don't cache a
  3972. # value for MKDIR_P within a source directory, because that will
  3973. # break other packages using the cache if that directory is
  3974. # removed, or if the value is a relative name.
  3975. test -d ./--version && rmdir ./--version
  3976. MKDIR_P="$ac_install_sh -d"
  3977. fi
  3978. fi
  3979. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3980. echo "${ECHO_T}$MKDIR_P" >&6; }
  3981. if test -n "$ac_tool_prefix"; then
  3982. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3983. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3984. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3985. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3986. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3987. echo $ECHO_N "(cached) $ECHO_C" >&6
  3988. else
  3989. if test -n "$RANLIB"; then
  3990. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3991. else
  3992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3993. for as_dir in $PATH
  3994. do
  3995. IFS=$as_save_IFS
  3996. test -z "$as_dir" && as_dir=.
  3997. for ac_exec_ext in '' $ac_executable_extensions; do
  3998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3999. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4000. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4001. break 2
  4002. fi
  4003. done
  4004. done
  4005. IFS=$as_save_IFS
  4006. fi
  4007. fi
  4008. RANLIB=$ac_cv_prog_RANLIB
  4009. if test -n "$RANLIB"; then
  4010. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4011. echo "${ECHO_T}$RANLIB" >&6; }
  4012. else
  4013. { echo "$as_me:$LINENO: result: no" >&5
  4014. echo "${ECHO_T}no" >&6; }
  4015. fi
  4016. fi
  4017. if test -z "$ac_cv_prog_RANLIB"; then
  4018. ac_ct_RANLIB=$RANLIB
  4019. # Extract the first word of "ranlib", so it can be a program name with args.
  4020. set dummy ranlib; ac_word=$2
  4021. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4022. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4023. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4024. echo $ECHO_N "(cached) $ECHO_C" >&6
  4025. else
  4026. if test -n "$ac_ct_RANLIB"; then
  4027. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4028. else
  4029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4030. for as_dir in $PATH
  4031. do
  4032. IFS=$as_save_IFS
  4033. test -z "$as_dir" && as_dir=.
  4034. for ac_exec_ext in '' $ac_executable_extensions; do
  4035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4036. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4037. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4038. break 2
  4039. fi
  4040. done
  4041. done
  4042. IFS=$as_save_IFS
  4043. fi
  4044. fi
  4045. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4046. if test -n "$ac_ct_RANLIB"; then
  4047. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4048. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4049. else
  4050. { echo "$as_me:$LINENO: result: no" >&5
  4051. echo "${ECHO_T}no" >&6; }
  4052. fi
  4053. if test "x$ac_ct_RANLIB" = x; then
  4054. RANLIB=":"
  4055. else
  4056. case $cross_compiling:$ac_tool_warned in
  4057. yes:)
  4058. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4059. whose name does not start with the host triplet. If you think this
  4060. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4061. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4062. whose name does not start with the host triplet. If you think this
  4063. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4064. ac_tool_warned=yes ;;
  4065. esac
  4066. RANLIB=$ac_ct_RANLIB
  4067. fi
  4068. else
  4069. RANLIB="$ac_cv_prog_RANLIB"
  4070. fi
  4071. for ac_prog in 'bison -y' byacc
  4072. do
  4073. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4074. set dummy $ac_prog; ac_word=$2
  4075. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4076. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4077. if test "${ac_cv_prog_YACC+set}" = set; then
  4078. echo $ECHO_N "(cached) $ECHO_C" >&6
  4079. else
  4080. if test -n "$YACC"; then
  4081. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4082. else
  4083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4084. for as_dir in $PATH
  4085. do
  4086. IFS=$as_save_IFS
  4087. test -z "$as_dir" && as_dir=.
  4088. for ac_exec_ext in '' $ac_executable_extensions; do
  4089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4090. ac_cv_prog_YACC="$ac_prog"
  4091. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4092. break 2
  4093. fi
  4094. done
  4095. done
  4096. IFS=$as_save_IFS
  4097. fi
  4098. fi
  4099. YACC=$ac_cv_prog_YACC
  4100. if test -n "$YACC"; then
  4101. { echo "$as_me:$LINENO: result: $YACC" >&5
  4102. echo "${ECHO_T}$YACC" >&6; }
  4103. else
  4104. { echo "$as_me:$LINENO: result: no" >&5
  4105. echo "${ECHO_T}no" >&6; }
  4106. fi
  4107. test -n "$YACC" && break
  4108. done
  4109. test -n "$YACC" || YACC="yacc"
  4110. # Setting language choice
  4111. ac_ext=cpp
  4112. ac_cpp='$CXXCPP $CPPFLAGS'
  4113. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4114. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4115. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4116. # Check for GNU library
  4117. cat >>confdefs.h <<\_ACEOF
  4118. #define _GNU_SOURCE 1
  4119. _ACEOF
  4120. # Enable system extensions
  4121. ac_ext=cpp
  4122. ac_cpp='$CXXCPP $CPPFLAGS'
  4123. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4124. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4125. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4126. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4127. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4128. if test -z "$CXXCPP"; then
  4129. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4130. echo $ECHO_N "(cached) $ECHO_C" >&6
  4131. else
  4132. # Double quotes because CXXCPP needs to be expanded
  4133. for CXXCPP in "$CXX -E" "/lib/cpp"
  4134. do
  4135. ac_preproc_ok=false
  4136. for ac_cxx_preproc_warn_flag in '' yes
  4137. do
  4138. # Use a header file that comes with gcc, so configuring glibc
  4139. # with a fresh cross-compiler works.
  4140. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4141. # <limits.h> exists even on freestanding compilers.
  4142. # On the NeXT, cc -E runs the code through the compiler's parser,
  4143. # not just through cpp. "Syntax error" is here to catch this case.
  4144. cat >conftest.$ac_ext <<_ACEOF
  4145. /* confdefs.h. */
  4146. _ACEOF
  4147. cat confdefs.h >>conftest.$ac_ext
  4148. cat >>conftest.$ac_ext <<_ACEOF
  4149. /* end confdefs.h. */
  4150. #ifdef __STDC__
  4151. # include <limits.h>
  4152. #else
  4153. # include <assert.h>
  4154. #endif
  4155. Syntax error
  4156. _ACEOF
  4157. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4158. case "(($ac_try" in
  4159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4160. *) ac_try_echo=$ac_try;;
  4161. esac
  4162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4163. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4164. ac_status=$?
  4165. grep -v '^ *+' conftest.er1 >conftest.err
  4166. rm -f conftest.er1
  4167. cat conftest.err >&5
  4168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4169. (exit $ac_status); } >/dev/null && {
  4170. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4171. test ! -s conftest.err
  4172. }; then
  4173. :
  4174. else
  4175. echo "$as_me: failed program was:" >&5
  4176. sed 's/^/| /' conftest.$ac_ext >&5
  4177. # Broken: fails on valid input.
  4178. continue
  4179. fi
  4180. rm -f conftest.err conftest.$ac_ext
  4181. # OK, works on sane cases. Now check whether nonexistent headers
  4182. # can be detected and how.
  4183. cat >conftest.$ac_ext <<_ACEOF
  4184. /* confdefs.h. */
  4185. _ACEOF
  4186. cat confdefs.h >>conftest.$ac_ext
  4187. cat >>conftest.$ac_ext <<_ACEOF
  4188. /* end confdefs.h. */
  4189. #include <ac_nonexistent.h>
  4190. _ACEOF
  4191. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4192. case "(($ac_try" in
  4193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4194. *) ac_try_echo=$ac_try;;
  4195. esac
  4196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4197. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4198. ac_status=$?
  4199. grep -v '^ *+' conftest.er1 >conftest.err
  4200. rm -f conftest.er1
  4201. cat conftest.err >&5
  4202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4203. (exit $ac_status); } >/dev/null && {
  4204. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4205. test ! -s conftest.err
  4206. }; then
  4207. # Broken: success on invalid input.
  4208. continue
  4209. else
  4210. echo "$as_me: failed program was:" >&5
  4211. sed 's/^/| /' conftest.$ac_ext >&5
  4212. # Passes both tests.
  4213. ac_preproc_ok=:
  4214. break
  4215. fi
  4216. rm -f conftest.err conftest.$ac_ext
  4217. done
  4218. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4219. rm -f conftest.err conftest.$ac_ext
  4220. if $ac_preproc_ok; then
  4221. break
  4222. fi
  4223. done
  4224. ac_cv_prog_CXXCPP=$CXXCPP
  4225. fi
  4226. CXXCPP=$ac_cv_prog_CXXCPP
  4227. else
  4228. ac_cv_prog_CXXCPP=$CXXCPP
  4229. fi
  4230. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4231. echo "${ECHO_T}$CXXCPP" >&6; }
  4232. ac_preproc_ok=false
  4233. for ac_cxx_preproc_warn_flag in '' yes
  4234. do
  4235. # Use a header file that comes with gcc, so configuring glibc
  4236. # with a fresh cross-compiler works.
  4237. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4238. # <limits.h> exists even on freestanding compilers.
  4239. # On the NeXT, cc -E runs the code through the compiler's parser,
  4240. # not just through cpp. "Syntax error" is here to catch this case.
  4241. cat >conftest.$ac_ext <<_ACEOF
  4242. /* confdefs.h. */
  4243. _ACEOF
  4244. cat confdefs.h >>conftest.$ac_ext
  4245. cat >>conftest.$ac_ext <<_ACEOF
  4246. /* end confdefs.h. */
  4247. #ifdef __STDC__
  4248. # include <limits.h>
  4249. #else
  4250. # include <assert.h>
  4251. #endif
  4252. Syntax error
  4253. _ACEOF
  4254. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4255. case "(($ac_try" in
  4256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4257. *) ac_try_echo=$ac_try;;
  4258. esac
  4259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4260. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4261. ac_status=$?
  4262. grep -v '^ *+' conftest.er1 >conftest.err
  4263. rm -f conftest.er1
  4264. cat conftest.err >&5
  4265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4266. (exit $ac_status); } >/dev/null && {
  4267. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4268. test ! -s conftest.err
  4269. }; then
  4270. :
  4271. else
  4272. echo "$as_me: failed program was:" >&5
  4273. sed 's/^/| /' conftest.$ac_ext >&5
  4274. # Broken: fails on valid input.
  4275. continue
  4276. fi
  4277. rm -f conftest.err conftest.$ac_ext
  4278. # OK, works on sane cases. Now check whether nonexistent headers
  4279. # can be detected and how.
  4280. cat >conftest.$ac_ext <<_ACEOF
  4281. /* confdefs.h. */
  4282. _ACEOF
  4283. cat confdefs.h >>conftest.$ac_ext
  4284. cat >>conftest.$ac_ext <<_ACEOF
  4285. /* end confdefs.h. */
  4286. #include <ac_nonexistent.h>
  4287. _ACEOF
  4288. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4289. case "(($ac_try" in
  4290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4291. *) ac_try_echo=$ac_try;;
  4292. esac
  4293. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4294. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4295. ac_status=$?
  4296. grep -v '^ *+' conftest.er1 >conftest.err
  4297. rm -f conftest.er1
  4298. cat conftest.err >&5
  4299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4300. (exit $ac_status); } >/dev/null && {
  4301. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4302. test ! -s conftest.err
  4303. }; then
  4304. # Broken: success on invalid input.
  4305. continue
  4306. else
  4307. echo "$as_me: failed program was:" >&5
  4308. sed 's/^/| /' conftest.$ac_ext >&5
  4309. # Passes both tests.
  4310. ac_preproc_ok=:
  4311. break
  4312. fi
  4313. rm -f conftest.err conftest.$ac_ext
  4314. done
  4315. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4316. rm -f conftest.err conftest.$ac_ext
  4317. if $ac_preproc_ok; then
  4318. :
  4319. else
  4320. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4321. See \`config.log' for more details." >&5
  4322. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4323. See \`config.log' for more details." >&2;}
  4324. { (exit 1); exit 1; }; }
  4325. fi
  4326. ac_ext=cpp
  4327. ac_cpp='$CXXCPP $CPPFLAGS'
  4328. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4329. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4330. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4331. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4332. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4333. if test "${ac_cv_path_GREP+set}" = set; then
  4334. echo $ECHO_N "(cached) $ECHO_C" >&6
  4335. else
  4336. # Extract the first word of "grep ggrep" to use in msg output
  4337. if test -z "$GREP"; then
  4338. set dummy grep ggrep; ac_prog_name=$2
  4339. if test "${ac_cv_path_GREP+set}" = set; then
  4340. echo $ECHO_N "(cached) $ECHO_C" >&6
  4341. else
  4342. ac_path_GREP_found=false
  4343. # Loop through the user's path and test for each of PROGNAME-LIST
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4346. do
  4347. IFS=$as_save_IFS
  4348. test -z "$as_dir" && as_dir=.
  4349. for ac_prog in grep ggrep; do
  4350. for ac_exec_ext in '' $ac_executable_extensions; do
  4351. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4352. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4353. # Check for GNU ac_path_GREP and select it if it is found.
  4354. # Check for GNU $ac_path_GREP
  4355. case `"$ac_path_GREP" --version 2>&1` in
  4356. *GNU*)
  4357. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4358. *)
  4359. ac_count=0
  4360. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4361. while :
  4362. do
  4363. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4364. mv "conftest.tmp" "conftest.in"
  4365. cp "conftest.in" "conftest.nl"
  4366. echo 'GREP' >> "conftest.nl"
  4367. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4368. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4369. ac_count=`expr $ac_count + 1`
  4370. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4371. # Best one so far, save it but keep looking for a better one
  4372. ac_cv_path_GREP="$ac_path_GREP"
  4373. ac_path_GREP_max=$ac_count
  4374. fi
  4375. # 10*(2^10) chars as input seems more than enough
  4376. test $ac_count -gt 10 && break
  4377. done
  4378. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4379. esac
  4380. $ac_path_GREP_found && break 3
  4381. done
  4382. done
  4383. done
  4384. IFS=$as_save_IFS
  4385. fi
  4386. GREP="$ac_cv_path_GREP"
  4387. if test -z "$GREP"; then
  4388. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4389. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4390. { (exit 1); exit 1; }; }
  4391. fi
  4392. else
  4393. ac_cv_path_GREP=$GREP
  4394. fi
  4395. fi
  4396. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4397. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4398. GREP="$ac_cv_path_GREP"
  4399. { echo "$as_me:$LINENO: checking for egrep" >&5
  4400. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4401. if test "${ac_cv_path_EGREP+set}" = set; then
  4402. echo $ECHO_N "(cached) $ECHO_C" >&6
  4403. else
  4404. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4405. then ac_cv_path_EGREP="$GREP -E"
  4406. else
  4407. # Extract the first word of "egrep" to use in msg output
  4408. if test -z "$EGREP"; then
  4409. set dummy egrep; ac_prog_name=$2
  4410. if test "${ac_cv_path_EGREP+set}" = set; then
  4411. echo $ECHO_N "(cached) $ECHO_C" >&6
  4412. else
  4413. ac_path_EGREP_found=false
  4414. # Loop through the user's path and test for each of PROGNAME-LIST
  4415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4416. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4417. do
  4418. IFS=$as_save_IFS
  4419. test -z "$as_dir" && as_dir=.
  4420. for ac_prog in egrep; do
  4421. for ac_exec_ext in '' $ac_executable_extensions; do
  4422. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4423. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4424. # Check for GNU ac_path_EGREP and select it if it is found.
  4425. # Check for GNU $ac_path_EGREP
  4426. case `"$ac_path_EGREP" --version 2>&1` in
  4427. *GNU*)
  4428. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4429. *)
  4430. ac_count=0
  4431. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4432. while :
  4433. do
  4434. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4435. mv "conftest.tmp" "conftest.in"
  4436. cp "conftest.in" "conftest.nl"
  4437. echo 'EGREP' >> "conftest.nl"
  4438. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4439. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4440. ac_count=`expr $ac_count + 1`
  4441. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4442. # Best one so far, save it but keep looking for a better one
  4443. ac_cv_path_EGREP="$ac_path_EGREP"
  4444. ac_path_EGREP_max=$ac_count
  4445. fi
  4446. # 10*(2^10) chars as input seems more than enough
  4447. test $ac_count -gt 10 && break
  4448. done
  4449. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4450. esac
  4451. $ac_path_EGREP_found && break 3
  4452. done
  4453. done
  4454. done
  4455. IFS=$as_save_IFS
  4456. fi
  4457. EGREP="$ac_cv_path_EGREP"
  4458. if test -z "$EGREP"; then
  4459. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4460. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4461. { (exit 1); exit 1; }; }
  4462. fi
  4463. else
  4464. ac_cv_path_EGREP=$EGREP
  4465. fi
  4466. fi
  4467. fi
  4468. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4469. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4470. EGREP="$ac_cv_path_EGREP"
  4471. { echo "$as_me:$LINENO: checking for AIX" >&5
  4472. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4473. cat >conftest.$ac_ext <<_ACEOF
  4474. /* confdefs.h. */
  4475. _ACEOF
  4476. cat confdefs.h >>conftest.$ac_ext
  4477. cat >>conftest.$ac_ext <<_ACEOF
  4478. /* end confdefs.h. */
  4479. #ifdef _AIX
  4480. yes
  4481. #endif
  4482. _ACEOF
  4483. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4484. $EGREP "yes" >/dev/null 2>&1; then
  4485. { echo "$as_me:$LINENO: result: yes" >&5
  4486. echo "${ECHO_T}yes" >&6; }
  4487. cat >>confdefs.h <<\_ACEOF
  4488. #define _ALL_SOURCE 1
  4489. _ACEOF
  4490. else
  4491. { echo "$as_me:$LINENO: result: no" >&5
  4492. echo "${ECHO_T}no" >&6; }
  4493. fi
  4494. rm -f conftest*
  4495. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4496. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4497. if test "${ac_cv_header_stdc+set}" = set; then
  4498. echo $ECHO_N "(cached) $ECHO_C" >&6
  4499. else
  4500. cat >conftest.$ac_ext <<_ACEOF
  4501. /* confdefs.h. */
  4502. _ACEOF
  4503. cat confdefs.h >>conftest.$ac_ext
  4504. cat >>conftest.$ac_ext <<_ACEOF
  4505. /* end confdefs.h. */
  4506. #include <stdlib.h>
  4507. #include <stdarg.h>
  4508. #include <string.h>
  4509. #include <float.h>
  4510. int
  4511. main ()
  4512. {
  4513. ;
  4514. return 0;
  4515. }
  4516. _ACEOF
  4517. rm -f conftest.$ac_objext
  4518. if { (ac_try="$ac_compile"
  4519. case "(($ac_try" in
  4520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4521. *) ac_try_echo=$ac_try;;
  4522. esac
  4523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4524. (eval "$ac_compile") 2>conftest.er1
  4525. ac_status=$?
  4526. grep -v '^ *+' conftest.er1 >conftest.err
  4527. rm -f conftest.er1
  4528. cat conftest.err >&5
  4529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4530. (exit $ac_status); } && {
  4531. test -z "$ac_cxx_werror_flag" ||
  4532. test ! -s conftest.err
  4533. } && test -s conftest.$ac_objext; then
  4534. ac_cv_header_stdc=yes
  4535. else
  4536. echo "$as_me: failed program was:" >&5
  4537. sed 's/^/| /' conftest.$ac_ext >&5
  4538. ac_cv_header_stdc=no
  4539. fi
  4540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4541. if test $ac_cv_header_stdc = yes; then
  4542. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. #include <string.h>
  4550. _ACEOF
  4551. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4552. $EGREP "memchr" >/dev/null 2>&1; then
  4553. :
  4554. else
  4555. ac_cv_header_stdc=no
  4556. fi
  4557. rm -f conftest*
  4558. fi
  4559. if test $ac_cv_header_stdc = yes; then
  4560. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4561. cat >conftest.$ac_ext <<_ACEOF
  4562. /* confdefs.h. */
  4563. _ACEOF
  4564. cat confdefs.h >>conftest.$ac_ext
  4565. cat >>conftest.$ac_ext <<_ACEOF
  4566. /* end confdefs.h. */
  4567. #include <stdlib.h>
  4568. _ACEOF
  4569. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4570. $EGREP "free" >/dev/null 2>&1; then
  4571. :
  4572. else
  4573. ac_cv_header_stdc=no
  4574. fi
  4575. rm -f conftest*
  4576. fi
  4577. if test $ac_cv_header_stdc = yes; then
  4578. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4579. if test "$cross_compiling" = yes; then
  4580. :
  4581. else
  4582. cat >conftest.$ac_ext <<_ACEOF
  4583. /* confdefs.h. */
  4584. _ACEOF
  4585. cat confdefs.h >>conftest.$ac_ext
  4586. cat >>conftest.$ac_ext <<_ACEOF
  4587. /* end confdefs.h. */
  4588. #include <ctype.h>
  4589. #include <stdlib.h>
  4590. #if ((' ' & 0x0FF) == 0x020)
  4591. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4592. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4593. #else
  4594. # define ISLOWER(c) \
  4595. (('a' <= (c) && (c) <= 'i') \
  4596. || ('j' <= (c) && (c) <= 'r') \
  4597. || ('s' <= (c) && (c) <= 'z'))
  4598. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4599. #endif
  4600. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4601. int
  4602. main ()
  4603. {
  4604. int i;
  4605. for (i = 0; i < 256; i++)
  4606. if (XOR (islower (i), ISLOWER (i))
  4607. || toupper (i) != TOUPPER (i))
  4608. return 2;
  4609. return 0;
  4610. }
  4611. _ACEOF
  4612. rm -f conftest$ac_exeext
  4613. if { (ac_try="$ac_link"
  4614. case "(($ac_try" in
  4615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4616. *) ac_try_echo=$ac_try;;
  4617. esac
  4618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4619. (eval "$ac_link") 2>&5
  4620. ac_status=$?
  4621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4622. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4623. { (case "(($ac_try" in
  4624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4625. *) ac_try_echo=$ac_try;;
  4626. esac
  4627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4628. (eval "$ac_try") 2>&5
  4629. ac_status=$?
  4630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4631. (exit $ac_status); }; }; then
  4632. :
  4633. else
  4634. echo "$as_me: program exited with status $ac_status" >&5
  4635. echo "$as_me: failed program was:" >&5
  4636. sed 's/^/| /' conftest.$ac_ext >&5
  4637. ( exit $ac_status )
  4638. ac_cv_header_stdc=no
  4639. fi
  4640. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4641. fi
  4642. fi
  4643. fi
  4644. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4645. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4646. if test $ac_cv_header_stdc = yes; then
  4647. cat >>confdefs.h <<\_ACEOF
  4648. #define STDC_HEADERS 1
  4649. _ACEOF
  4650. fi
  4651. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4652. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4653. inttypes.h stdint.h unistd.h
  4654. do
  4655. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4656. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4657. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4658. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4659. echo $ECHO_N "(cached) $ECHO_C" >&6
  4660. else
  4661. cat >conftest.$ac_ext <<_ACEOF
  4662. /* confdefs.h. */
  4663. _ACEOF
  4664. cat confdefs.h >>conftest.$ac_ext
  4665. cat >>conftest.$ac_ext <<_ACEOF
  4666. /* end confdefs.h. */
  4667. $ac_includes_default
  4668. #include <$ac_header>
  4669. _ACEOF
  4670. rm -f conftest.$ac_objext
  4671. if { (ac_try="$ac_compile"
  4672. case "(($ac_try" in
  4673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4674. *) ac_try_echo=$ac_try;;
  4675. esac
  4676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4677. (eval "$ac_compile") 2>conftest.er1
  4678. ac_status=$?
  4679. grep -v '^ *+' conftest.er1 >conftest.err
  4680. rm -f conftest.er1
  4681. cat conftest.err >&5
  4682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4683. (exit $ac_status); } && {
  4684. test -z "$ac_cxx_werror_flag" ||
  4685. test ! -s conftest.err
  4686. } && test -s conftest.$ac_objext; then
  4687. eval "$as_ac_Header=yes"
  4688. else
  4689. echo "$as_me: failed program was:" >&5
  4690. sed 's/^/| /' conftest.$ac_ext >&5
  4691. eval "$as_ac_Header=no"
  4692. fi
  4693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4694. fi
  4695. ac_res=`eval echo '${'$as_ac_Header'}'`
  4696. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4697. echo "${ECHO_T}$ac_res" >&6; }
  4698. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4699. cat >>confdefs.h <<_ACEOF
  4700. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4701. _ACEOF
  4702. fi
  4703. done
  4704. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4705. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4706. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4707. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4708. echo $ECHO_N "(cached) $ECHO_C" >&6
  4709. fi
  4710. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4711. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4712. else
  4713. # Is the header compilable?
  4714. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4715. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4716. cat >conftest.$ac_ext <<_ACEOF
  4717. /* confdefs.h. */
  4718. _ACEOF
  4719. cat confdefs.h >>conftest.$ac_ext
  4720. cat >>conftest.$ac_ext <<_ACEOF
  4721. /* end confdefs.h. */
  4722. $ac_includes_default
  4723. #include <minix/config.h>
  4724. _ACEOF
  4725. rm -f conftest.$ac_objext
  4726. if { (ac_try="$ac_compile"
  4727. case "(($ac_try" in
  4728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4729. *) ac_try_echo=$ac_try;;
  4730. esac
  4731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4732. (eval "$ac_compile") 2>conftest.er1
  4733. ac_status=$?
  4734. grep -v '^ *+' conftest.er1 >conftest.err
  4735. rm -f conftest.er1
  4736. cat conftest.err >&5
  4737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4738. (exit $ac_status); } && {
  4739. test -z "$ac_cxx_werror_flag" ||
  4740. test ! -s conftest.err
  4741. } && test -s conftest.$ac_objext; then
  4742. ac_header_compiler=yes
  4743. else
  4744. echo "$as_me: failed program was:" >&5
  4745. sed 's/^/| /' conftest.$ac_ext >&5
  4746. ac_header_compiler=no
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4749. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4750. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4751. # Is the header present?
  4752. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4753. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4754. cat >conftest.$ac_ext <<_ACEOF
  4755. /* confdefs.h. */
  4756. _ACEOF
  4757. cat confdefs.h >>conftest.$ac_ext
  4758. cat >>conftest.$ac_ext <<_ACEOF
  4759. /* end confdefs.h. */
  4760. #include <minix/config.h>
  4761. _ACEOF
  4762. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4763. case "(($ac_try" in
  4764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4765. *) ac_try_echo=$ac_try;;
  4766. esac
  4767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4768. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4769. ac_status=$?
  4770. grep -v '^ *+' conftest.er1 >conftest.err
  4771. rm -f conftest.er1
  4772. cat conftest.err >&5
  4773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4774. (exit $ac_status); } >/dev/null && {
  4775. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4776. test ! -s conftest.err
  4777. }; then
  4778. ac_header_preproc=yes
  4779. else
  4780. echo "$as_me: failed program was:" >&5
  4781. sed 's/^/| /' conftest.$ac_ext >&5
  4782. ac_header_preproc=no
  4783. fi
  4784. rm -f conftest.err conftest.$ac_ext
  4785. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4786. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4787. # So? What about this header?
  4788. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4789. yes:no: )
  4790. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4791. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4792. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4793. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4794. ac_header_preproc=yes
  4795. ;;
  4796. no:yes:* )
  4797. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4798. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4799. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4800. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4801. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4802. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4803. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4804. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4805. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4806. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4807. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4808. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4809. ( cat <<\_ASBOX
  4810. ## ----------------------------------------------- ##
  4811. ## Report this to t-tujikawa@users.sourceforge.net ##
  4812. ## ----------------------------------------------- ##
  4813. _ASBOX
  4814. ) | sed "s/^/$as_me: WARNING: /" >&2
  4815. ;;
  4816. esac
  4817. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4818. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4819. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4820. echo $ECHO_N "(cached) $ECHO_C" >&6
  4821. else
  4822. ac_cv_header_minix_config_h=$ac_header_preproc
  4823. fi
  4824. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4825. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4826. fi
  4827. if test $ac_cv_header_minix_config_h = yes; then
  4828. MINIX=yes
  4829. else
  4830. MINIX=
  4831. fi
  4832. if test "$MINIX" = yes; then
  4833. cat >>confdefs.h <<\_ACEOF
  4834. #define _POSIX_SOURCE 1
  4835. _ACEOF
  4836. cat >>confdefs.h <<\_ACEOF
  4837. #define _POSIX_1_SOURCE 2
  4838. _ACEOF
  4839. cat >>confdefs.h <<\_ACEOF
  4840. #define _MINIX 1
  4841. _ACEOF
  4842. fi
  4843. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4844. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4845. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4846. echo $ECHO_N "(cached) $ECHO_C" >&6
  4847. else
  4848. cat >conftest.$ac_ext <<_ACEOF
  4849. /* confdefs.h. */
  4850. _ACEOF
  4851. cat confdefs.h >>conftest.$ac_ext
  4852. cat >>conftest.$ac_ext <<_ACEOF
  4853. /* end confdefs.h. */
  4854. # define __EXTENSIONS__ 1
  4855. $ac_includes_default
  4856. int
  4857. main ()
  4858. {
  4859. ;
  4860. return 0;
  4861. }
  4862. _ACEOF
  4863. rm -f conftest.$ac_objext
  4864. if { (ac_try="$ac_compile"
  4865. case "(($ac_try" in
  4866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4867. *) ac_try_echo=$ac_try;;
  4868. esac
  4869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4870. (eval "$ac_compile") 2>conftest.er1
  4871. ac_status=$?
  4872. grep -v '^ *+' conftest.er1 >conftest.err
  4873. rm -f conftest.er1
  4874. cat conftest.err >&5
  4875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4876. (exit $ac_status); } && {
  4877. test -z "$ac_cxx_werror_flag" ||
  4878. test ! -s conftest.err
  4879. } && test -s conftest.$ac_objext; then
  4880. ac_cv_safe_to_define___extensions__=yes
  4881. else
  4882. echo "$as_me: failed program was:" >&5
  4883. sed 's/^/| /' conftest.$ac_ext >&5
  4884. ac_cv_safe_to_define___extensions__=no
  4885. fi
  4886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4887. fi
  4888. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4889. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4890. test $ac_cv_safe_to_define___extensions__ = yes &&
  4891. cat >>confdefs.h <<\_ACEOF
  4892. #define __EXTENSIONS__ 1
  4893. _ACEOF
  4894. cat >>confdefs.h <<\_ACEOF
  4895. #define _POSIX_PTHREAD_SEMANTICS 1
  4896. _ACEOF
  4897. cat >>confdefs.h <<\_ACEOF
  4898. #define _TANDEM_SOURCE 1
  4899. _ACEOF
  4900. # Checks for libraries.
  4901. if test "x$with_libxml2" = "xyes"; then
  4902. # Check whether --with-xml-prefix was given.
  4903. if test "${with_xml_prefix+set}" = set; then
  4904. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4905. else
  4906. xml_config_prefix=""
  4907. fi
  4908. # Check whether --with-xml-exec-prefix was given.
  4909. if test "${with_xml_exec_prefix+set}" = set; then
  4910. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4911. else
  4912. xml_config_exec_prefix=""
  4913. fi
  4914. # Check whether --enable-xmltest was given.
  4915. if test "${enable_xmltest+set}" = set; then
  4916. enableval=$enable_xmltest;
  4917. else
  4918. enable_xmltest=yes
  4919. fi
  4920. if test x$xml_config_exec_prefix != x ; then
  4921. xml_config_args="$xml_config_args"
  4922. if test x${XML2_CONFIG+set} != xset ; then
  4923. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4924. fi
  4925. fi
  4926. if test x$xml_config_prefix != x ; then
  4927. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4928. if test x${XML2_CONFIG+set} != xset ; then
  4929. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4930. fi
  4931. fi
  4932. # Extract the first word of "xml2-config", so it can be a program name with args.
  4933. set dummy xml2-config; ac_word=$2
  4934. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4935. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4936. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4937. echo $ECHO_N "(cached) $ECHO_C" >&6
  4938. else
  4939. case $XML2_CONFIG in
  4940. [\\/]* | ?:[\\/]*)
  4941. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4942. ;;
  4943. *)
  4944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4945. for as_dir in $PATH
  4946. do
  4947. IFS=$as_save_IFS
  4948. test -z "$as_dir" && as_dir=.
  4949. for ac_exec_ext in '' $ac_executable_extensions; do
  4950. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4951. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4952. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4953. break 2
  4954. fi
  4955. done
  4956. done
  4957. IFS=$as_save_IFS
  4958. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4959. ;;
  4960. esac
  4961. fi
  4962. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4963. if test -n "$XML2_CONFIG"; then
  4964. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4965. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4966. else
  4967. { echo "$as_me:$LINENO: result: no" >&5
  4968. echo "${ECHO_T}no" >&6; }
  4969. fi
  4970. min_xml_version=2.6.24
  4971. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4972. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4973. no_xml=""
  4974. if test "$XML2_CONFIG" = "no" ; then
  4975. no_xml=yes
  4976. else
  4977. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4978. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4979. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4980. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4981. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4982. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4983. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4984. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4985. if test "x$enable_xmltest" = "xyes" ; then
  4986. ac_save_CPPFLAGS="$CPPFLAGS"
  4987. ac_save_LIBS="$LIBS"
  4988. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4989. LIBS="$XML_LIBS $LIBS"
  4990. rm -f conf.xmltest
  4991. if test "$cross_compiling" = yes; then
  4992. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4993. else
  4994. cat >conftest.$ac_ext <<_ACEOF
  4995. /* confdefs.h. */
  4996. _ACEOF
  4997. cat confdefs.h >>conftest.$ac_ext
  4998. cat >>conftest.$ac_ext <<_ACEOF
  4999. /* end confdefs.h. */
  5000. #include <stdlib.h>
  5001. #include <stdio.h>
  5002. #include <string.h>
  5003. #include <libxml/xmlversion.h>
  5004. int
  5005. main()
  5006. {
  5007. int xml_major_version, xml_minor_version, xml_micro_version;
  5008. int major, minor, micro;
  5009. char *tmp_version;
  5010. system("touch conf.xmltest");
  5011. /* Capture xml2-config output via autoconf/configure variables */
  5012. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5013. tmp_version = (char *)strdup("$min_xml_version");
  5014. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5015. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5016. exit(1);
  5017. }
  5018. free(tmp_version);
  5019. /* Capture the version information from the header files */
  5020. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5021. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5022. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5023. exit(1);
  5024. }
  5025. free(tmp_version);
  5026. /* Compare xml2-config output to the libxml headers */
  5027. if ((xml_major_version != $xml_config_major_version) ||
  5028. (xml_minor_version != $xml_config_minor_version) ||
  5029. (xml_micro_version != $xml_config_micro_version))
  5030. {
  5031. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5032. xml_major_version, xml_minor_version, xml_micro_version);
  5033. printf("*** xml2-config (version %d.%d.%d)\n",
  5034. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5035. return 1;
  5036. }
  5037. /* Compare the headers to the library to make sure we match */
  5038. /* Less than ideal -- doesn't provide us with return value feedback,
  5039. * only exits if there's a serious mismatch between header and library.
  5040. */
  5041. LIBXML_TEST_VERSION;
  5042. /* Test that the library is greater than our minimum version */
  5043. if ((xml_major_version > major) ||
  5044. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5045. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5046. (xml_micro_version >= micro)))
  5047. {
  5048. return 0;
  5049. }
  5050. else
  5051. {
  5052. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5053. xml_major_version, xml_minor_version, xml_micro_version);
  5054. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5055. major, minor, micro);
  5056. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5057. printf("***\n");
  5058. printf("*** If you have already installed a sufficiently new version, this error\n");
  5059. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5060. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5061. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5062. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5063. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5064. printf("*** so that the correct libraries are found at run-time))\n");
  5065. }
  5066. return 1;
  5067. }
  5068. _ACEOF
  5069. rm -f conftest$ac_exeext
  5070. if { (ac_try="$ac_link"
  5071. case "(($ac_try" in
  5072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5073. *) ac_try_echo=$ac_try;;
  5074. esac
  5075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5076. (eval "$ac_link") 2>&5
  5077. ac_status=$?
  5078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5079. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5080. { (case "(($ac_try" in
  5081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5082. *) ac_try_echo=$ac_try;;
  5083. esac
  5084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5085. (eval "$ac_try") 2>&5
  5086. ac_status=$?
  5087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. (exit $ac_status); }; }; then
  5089. :
  5090. else
  5091. echo "$as_me: program exited with status $ac_status" >&5
  5092. echo "$as_me: failed program was:" >&5
  5093. sed 's/^/| /' conftest.$ac_ext >&5
  5094. ( exit $ac_status )
  5095. no_xml=yes
  5096. fi
  5097. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5098. fi
  5099. CPPFLAGS="$ac_save_CPPFLAGS"
  5100. LIBS="$ac_save_LIBS"
  5101. fi
  5102. fi
  5103. if test "x$no_xml" = x ; then
  5104. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5105. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5106. have_libxml2=yes
  5107. else
  5108. { echo "$as_me:$LINENO: result: no" >&5
  5109. echo "${ECHO_T}no" >&6; }
  5110. if test "$XML2_CONFIG" = "no" ; then
  5111. echo "*** The xml2-config script installed by LIBXML could not be found"
  5112. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5113. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5114. echo "*** full path to xml2-config."
  5115. else
  5116. if test -f conf.xmltest ; then
  5117. :
  5118. else
  5119. echo "*** Could not run libxml test program, checking why..."
  5120. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5121. LIBS="$LIBS $XML_LIBS"
  5122. cat >conftest.$ac_ext <<_ACEOF
  5123. /* confdefs.h. */
  5124. _ACEOF
  5125. cat confdefs.h >>conftest.$ac_ext
  5126. cat >>conftest.$ac_ext <<_ACEOF
  5127. /* end confdefs.h. */
  5128. #include <libxml/xmlversion.h>
  5129. #include <stdio.h>
  5130. int
  5131. main ()
  5132. {
  5133. LIBXML_TEST_VERSION; return 0;
  5134. ;
  5135. return 0;
  5136. }
  5137. _ACEOF
  5138. rm -f conftest.$ac_objext conftest$ac_exeext
  5139. if { (ac_try="$ac_link"
  5140. case "(($ac_try" in
  5141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5142. *) ac_try_echo=$ac_try;;
  5143. esac
  5144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5145. (eval "$ac_link") 2>conftest.er1
  5146. ac_status=$?
  5147. grep -v '^ *+' conftest.er1 >conftest.err
  5148. rm -f conftest.er1
  5149. cat conftest.err >&5
  5150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151. (exit $ac_status); } && {
  5152. test -z "$ac_cxx_werror_flag" ||
  5153. test ! -s conftest.err
  5154. } && test -s conftest$ac_exeext &&
  5155. $as_test_x conftest$ac_exeext; then
  5156. echo "*** The test program compiled, but did not run. This usually means"
  5157. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5158. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5159. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5160. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5161. echo "*** is required on your system"
  5162. echo "***"
  5163. echo "*** If you have an old version installed, it is best to remove it, although"
  5164. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5165. else
  5166. echo "$as_me: failed program was:" >&5
  5167. sed 's/^/| /' conftest.$ac_ext >&5
  5168. echo "*** The test program failed to compile or link. See the file config.log for the"
  5169. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5170. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5171. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5172. fi
  5173. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5174. conftest$ac_exeext conftest.$ac_ext
  5175. CPPFLAGS="$ac_save_CPPFLAGS"
  5176. LIBS="$ac_save_LIBS"
  5177. fi
  5178. fi
  5179. XML_CPPFLAGS=""
  5180. XML_LIBS=""
  5181. :
  5182. fi
  5183. rm -f conf.xmltest
  5184. if test "x$have_libxml2" = "xyes"; then
  5185. cat >>confdefs.h <<\_ACEOF
  5186. #define HAVE_LIBXML2 1
  5187. _ACEOF
  5188. fi
  5189. fi
  5190. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5191. # Check whether --with-libexpat-prefix was given.
  5192. if test "${with_libexpat_prefix+set}" = set; then
  5193. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5194. else
  5195. libexpat_prefix=""
  5196. fi
  5197. if test "x$libexpat_prefix" = "x"; then
  5198. libexpat_prefix="/usr"
  5199. fi
  5200. libexpat_prefix_lib=$libexpat_prefix/lib
  5201. libexpat_prefix_include=$libexpat_prefix/include
  5202. LIBS_save=$LIBS
  5203. CPPFLAGS_save=$CPPFLAGS
  5204. LIBS="-L$libexpat_prefix_lib $LIBS"
  5205. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5206. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5207. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5208. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5209. echo $ECHO_N "(cached) $ECHO_C" >&6
  5210. else
  5211. ac_check_lib_save_LIBS=$LIBS
  5212. LIBS="-lexpat $LIBS"
  5213. cat >conftest.$ac_ext <<_ACEOF
  5214. /* confdefs.h. */
  5215. _ACEOF
  5216. cat confdefs.h >>conftest.$ac_ext
  5217. cat >>conftest.$ac_ext <<_ACEOF
  5218. /* end confdefs.h. */
  5219. /* Override any GCC internal prototype to avoid an error.
  5220. Use char because int might match the return type of a GCC
  5221. builtin and then its argument prototype would still apply. */
  5222. #ifdef __cplusplus
  5223. extern "C"
  5224. #endif
  5225. char XML_ParserCreate ();
  5226. int
  5227. main ()
  5228. {
  5229. return XML_ParserCreate ();
  5230. ;
  5231. return 0;
  5232. }
  5233. _ACEOF
  5234. rm -f conftest.$ac_objext conftest$ac_exeext
  5235. if { (ac_try="$ac_link"
  5236. case "(($ac_try" in
  5237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5238. *) ac_try_echo=$ac_try;;
  5239. esac
  5240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5241. (eval "$ac_link") 2>conftest.er1
  5242. ac_status=$?
  5243. grep -v '^ *+' conftest.er1 >conftest.err
  5244. rm -f conftest.er1
  5245. cat conftest.err >&5
  5246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5247. (exit $ac_status); } && {
  5248. test -z "$ac_cxx_werror_flag" ||
  5249. test ! -s conftest.err
  5250. } && test -s conftest$ac_exeext &&
  5251. $as_test_x conftest$ac_exeext; then
  5252. ac_cv_lib_expat_XML_ParserCreate=yes
  5253. else
  5254. echo "$as_me: failed program was:" >&5
  5255. sed 's/^/| /' conftest.$ac_ext >&5
  5256. ac_cv_lib_expat_XML_ParserCreate=no
  5257. fi
  5258. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5259. conftest$ac_exeext conftest.$ac_ext
  5260. LIBS=$ac_check_lib_save_LIBS
  5261. fi
  5262. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5263. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5264. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5265. have_libexpat=yes
  5266. fi
  5267. if test "x$have_libexpat" = "xyes"; then
  5268. cat >>confdefs.h <<\_ACEOF
  5269. #define HAVE_LIBEXPAT 1
  5270. _ACEOF
  5271. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5272. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5273. fi
  5274. LIBS=$LIBS_save
  5275. CPPFLAGS=$CPPFLAGS_save
  5276. fi
  5277. if test "x$with_sqlite3" = "xyes"; then
  5278. # Check whether --with-sqlite3-prefix was given.
  5279. if test "${with_sqlite3_prefix+set}" = set; then
  5280. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5281. else
  5282. sqlite3_prefix=""
  5283. fi
  5284. if test "x$sqlite3_prefix" = "x"; then
  5285. sqlite3_prefix="/usr"
  5286. fi
  5287. LIBS_save=$LIBS
  5288. CPPFLAGS_save=$CPPFLAGS
  5289. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5290. if test -x $PKG_CONFIG; then
  5291. { echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5292. echo $ECHO_N "checking checking availability of sqlite3 using pkg-config... $ECHO_C" >&6; }
  5293. $PKG_CONFIG --exists sqlite3
  5294. if test "$?" = "0"; then
  5295. # Use pkg-config to detect LIBS and CFLAGS
  5296. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5297. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5298. LIBS="$SQLITE3_LIBS $LIBS"
  5299. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5300. have_sqlite3=yes
  5301. { echo "$as_me:$LINENO: result: yes" >&5
  5302. echo "${ECHO_T}yes" >&6; }
  5303. else
  5304. { echo "$as_me:$LINENO: result: no" >&5
  5305. echo "${ECHO_T}no" >&6; }
  5306. fi
  5307. fi
  5308. if test "x$have_sqlite3" != "xyes"; then
  5309. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5310. sqlite3_prefix_include=$sqlite3_prefix/include
  5311. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5312. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5313. { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5314. echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
  5315. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5316. echo $ECHO_N "(cached) $ECHO_C" >&6
  5317. else
  5318. ac_check_lib_save_LIBS=$LIBS
  5319. LIBS="-lsqlite3 $LIBS"
  5320. cat >conftest.$ac_ext <<_ACEOF
  5321. /* confdefs.h. */
  5322. _ACEOF
  5323. cat confdefs.h >>conftest.$ac_ext
  5324. cat >>conftest.$ac_ext <<_ACEOF
  5325. /* end confdefs.h. */
  5326. /* Override any GCC internal prototype to avoid an error.
  5327. Use char because int might match the return type of a GCC
  5328. builtin and then its argument prototype would still apply. */
  5329. #ifdef __cplusplus
  5330. extern "C"
  5331. #endif
  5332. char sqlite3_open ();
  5333. int
  5334. main ()
  5335. {
  5336. return sqlite3_open ();
  5337. ;
  5338. return 0;
  5339. }
  5340. _ACEOF
  5341. rm -f conftest.$ac_objext conftest$ac_exeext
  5342. if { (ac_try="$ac_link"
  5343. case "(($ac_try" in
  5344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5345. *) ac_try_echo=$ac_try;;
  5346. esac
  5347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5348. (eval "$ac_link") 2>conftest.er1
  5349. ac_status=$?
  5350. grep -v '^ *+' conftest.er1 >conftest.err
  5351. rm -f conftest.er1
  5352. cat conftest.err >&5
  5353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5354. (exit $ac_status); } && {
  5355. test -z "$ac_cxx_werror_flag" ||
  5356. test ! -s conftest.err
  5357. } && test -s conftest$ac_exeext &&
  5358. $as_test_x conftest$ac_exeext; then
  5359. ac_cv_lib_sqlite3_sqlite3_open=yes
  5360. else
  5361. echo "$as_me: failed program was:" >&5
  5362. sed 's/^/| /' conftest.$ac_ext >&5
  5363. ac_cv_lib_sqlite3_sqlite3_open=no
  5364. fi
  5365. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5366. conftest$ac_exeext conftest.$ac_ext
  5367. LIBS=$ac_check_lib_save_LIBS
  5368. fi
  5369. { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5370. echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5371. if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
  5372. have_sqlite3=yes
  5373. fi
  5374. if test "x$have_sqlite3" = "xyes"; then
  5375. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5376. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5377. fi
  5378. fi
  5379. if test "x$have_sqlite3" = "xyes"; then
  5380. for ac_func in sqlite3_open_v2
  5381. do
  5382. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5383. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5384. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5385. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5386. echo $ECHO_N "(cached) $ECHO_C" >&6
  5387. else
  5388. cat >conftest.$ac_ext <<_ACEOF
  5389. /* confdefs.h. */
  5390. _ACEOF
  5391. cat confdefs.h >>conftest.$ac_ext
  5392. cat >>conftest.$ac_ext <<_ACEOF
  5393. /* end confdefs.h. */
  5394. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5395. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5396. #define $ac_func innocuous_$ac_func
  5397. /* System header to define __stub macros and hopefully few prototypes,
  5398. which can conflict with char $ac_func (); below.
  5399. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5400. <limits.h> exists even on freestanding compilers. */
  5401. #ifdef __STDC__
  5402. # include <limits.h>
  5403. #else
  5404. # include <assert.h>
  5405. #endif
  5406. #undef $ac_func
  5407. /* Override any GCC internal prototype to avoid an error.
  5408. Use char because int might match the return type of a GCC
  5409. builtin and then its argument prototype would still apply. */
  5410. #ifdef __cplusplus
  5411. extern "C"
  5412. #endif
  5413. char $ac_func ();
  5414. /* The GNU C library defines this for functions which it implements
  5415. to always fail with ENOSYS. Some functions are actually named
  5416. something starting with __ and the normal name is an alias. */
  5417. #if defined __stub_$ac_func || defined __stub___$ac_func
  5418. choke me
  5419. #endif
  5420. int
  5421. main ()
  5422. {
  5423. return $ac_func ();
  5424. ;
  5425. return 0;
  5426. }
  5427. _ACEOF
  5428. rm -f conftest.$ac_objext conftest$ac_exeext
  5429. if { (ac_try="$ac_link"
  5430. case "(($ac_try" in
  5431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5432. *) ac_try_echo=$ac_try;;
  5433. esac
  5434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5435. (eval "$ac_link") 2>conftest.er1
  5436. ac_status=$?
  5437. grep -v '^ *+' conftest.er1 >conftest.err
  5438. rm -f conftest.er1
  5439. cat conftest.err >&5
  5440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5441. (exit $ac_status); } && {
  5442. test -z "$ac_cxx_werror_flag" ||
  5443. test ! -s conftest.err
  5444. } && test -s conftest$ac_exeext &&
  5445. $as_test_x conftest$ac_exeext; then
  5446. eval "$as_ac_var=yes"
  5447. else
  5448. echo "$as_me: failed program was:" >&5
  5449. sed 's/^/| /' conftest.$ac_ext >&5
  5450. eval "$as_ac_var=no"
  5451. fi
  5452. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5453. conftest$ac_exeext conftest.$ac_ext
  5454. fi
  5455. ac_res=`eval echo '${'$as_ac_var'}'`
  5456. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5457. echo "${ECHO_T}$ac_res" >&6; }
  5458. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5459. cat >>confdefs.h <<_ACEOF
  5460. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5461. _ACEOF
  5462. fi
  5463. done
  5464. cat >>confdefs.h <<\_ACEOF
  5465. #define HAVE_SQLITE3 1
  5466. _ACEOF
  5467. fi
  5468. LIBS=$LIBS_save
  5469. CPPFLAGS=$CPPFLAGS_save
  5470. fi
  5471. if test "x$with_gnutls" = "xyes"; then
  5472. # Check whether --with-libgnutls-prefix was given.
  5473. if test "${with_libgnutls_prefix+set}" = set; then
  5474. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5475. else
  5476. libgnutls_config_prefix=""
  5477. fi
  5478. if test x$libgnutls_config_prefix != x ; then
  5479. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5480. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5481. fi
  5482. fi
  5483. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5484. set dummy libgnutls-config; ac_word=$2
  5485. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5486. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5487. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5488. echo $ECHO_N "(cached) $ECHO_C" >&6
  5489. else
  5490. case $LIBGNUTLS_CONFIG in
  5491. [\\/]* | ?:[\\/]*)
  5492. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5493. ;;
  5494. *)
  5495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5496. for as_dir in $PATH
  5497. do
  5498. IFS=$as_save_IFS
  5499. test -z "$as_dir" && as_dir=.
  5500. for ac_exec_ext in '' $ac_executable_extensions; do
  5501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5502. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5503. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5504. break 2
  5505. fi
  5506. done
  5507. done
  5508. IFS=$as_save_IFS
  5509. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5510. ;;
  5511. esac
  5512. fi
  5513. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5514. if test -n "$LIBGNUTLS_CONFIG"; then
  5515. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5516. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5517. else
  5518. { echo "$as_me:$LINENO: result: no" >&5
  5519. echo "${ECHO_T}no" >&6; }
  5520. fi
  5521. min_libgnutls_version=1.2.9
  5522. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5523. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5524. no_libgnutls=""
  5525. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5526. no_libgnutls=yes
  5527. else
  5528. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5529. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5530. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5531. ac_save_CFLAGS="$CFLAGS"
  5532. ac_save_LIBS="$LIBS"
  5533. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5534. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5535. rm -f conf.libgnutlstest
  5536. if test "$cross_compiling" = yes; then
  5537. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5538. else
  5539. cat >conftest.$ac_ext <<_ACEOF
  5540. /* confdefs.h. */
  5541. _ACEOF
  5542. cat confdefs.h >>conftest.$ac_ext
  5543. cat >>conftest.$ac_ext <<_ACEOF
  5544. /* end confdefs.h. */
  5545. #include <stdio.h>
  5546. #include <stdlib.h>
  5547. #include <string.h>
  5548. #include <gnutls/gnutls.h>
  5549. int
  5550. main ()
  5551. {
  5552. system ("touch conf.libgnutlstest");
  5553. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5554. {
  5555. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5556. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5557. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5558. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5559. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5560. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5561. printf("*** required on your system.\n");
  5562. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5563. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5564. printf("*** before re-running configure\n");
  5565. }
  5566. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5567. {
  5568. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5569. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5570. }
  5571. else
  5572. {
  5573. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5574. {
  5575. return 0;
  5576. }
  5577. else
  5578. {
  5579. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5580. gnutls_check_version(NULL) );
  5581. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5582. "$min_libgnutls_version" );
  5583. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5584. printf("*** \n");
  5585. printf("*** If you have already installed a sufficiently new version, this error\n");
  5586. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5587. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5588. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5589. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5590. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5591. printf("*** so that the correct libraries are found at run-time))\n");
  5592. }
  5593. }
  5594. return 1;
  5595. }
  5596. _ACEOF
  5597. rm -f conftest$ac_exeext
  5598. if { (ac_try="$ac_link"
  5599. case "(($ac_try" in
  5600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5601. *) ac_try_echo=$ac_try;;
  5602. esac
  5603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5604. (eval "$ac_link") 2>&5
  5605. ac_status=$?
  5606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5607. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5608. { (case "(($ac_try" in
  5609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5610. *) ac_try_echo=$ac_try;;
  5611. esac
  5612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5613. (eval "$ac_try") 2>&5
  5614. ac_status=$?
  5615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5616. (exit $ac_status); }; }; then
  5617. :
  5618. else
  5619. echo "$as_me: program exited with status $ac_status" >&5
  5620. echo "$as_me: failed program was:" >&5
  5621. sed 's/^/| /' conftest.$ac_ext >&5
  5622. ( exit $ac_status )
  5623. no_libgnutls=yes
  5624. fi
  5625. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5626. fi
  5627. CFLAGS="$ac_save_CFLAGS"
  5628. LIBS="$ac_save_LIBS"
  5629. fi
  5630. if test "x$no_libgnutls" = x ; then
  5631. { echo "$as_me:$LINENO: result: yes" >&5
  5632. echo "${ECHO_T}yes" >&6; }
  5633. have_libgnutls=yes
  5634. else
  5635. if test -f conf.libgnutlstest ; then
  5636. :
  5637. else
  5638. { echo "$as_me:$LINENO: result: no" >&5
  5639. echo "${ECHO_T}no" >&6; }
  5640. fi
  5641. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5642. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5643. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5644. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5645. echo "*** full path to libgnutls-config."
  5646. else
  5647. if test -f conf.libgnutlstest ; then
  5648. :
  5649. else
  5650. echo "*** Could not run libgnutls test program, checking why..."
  5651. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5652. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5653. cat >conftest.$ac_ext <<_ACEOF
  5654. /* confdefs.h. */
  5655. _ACEOF
  5656. cat confdefs.h >>conftest.$ac_ext
  5657. cat >>conftest.$ac_ext <<_ACEOF
  5658. /* end confdefs.h. */
  5659. #include <stdio.h>
  5660. #include <stdlib.h>
  5661. #include <string.h>
  5662. #include <gnutls/gnutls.h>
  5663. int
  5664. main ()
  5665. {
  5666. return !!gnutls_check_version(NULL);
  5667. ;
  5668. return 0;
  5669. }
  5670. _ACEOF
  5671. rm -f conftest.$ac_objext conftest$ac_exeext
  5672. if { (ac_try="$ac_link"
  5673. case "(($ac_try" in
  5674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5675. *) ac_try_echo=$ac_try;;
  5676. esac
  5677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5678. (eval "$ac_link") 2>conftest.er1
  5679. ac_status=$?
  5680. grep -v '^ *+' conftest.er1 >conftest.err
  5681. rm -f conftest.er1
  5682. cat conftest.err >&5
  5683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5684. (exit $ac_status); } && {
  5685. test -z "$ac_cxx_werror_flag" ||
  5686. test ! -s conftest.err
  5687. } && test -s conftest$ac_exeext &&
  5688. $as_test_x conftest$ac_exeext; then
  5689. echo "*** The test program compiled, but did not run. This usually means"
  5690. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5691. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5692. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5693. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5694. echo "*** is required on your system"
  5695. echo "***"
  5696. echo "*** If you have an old version installed, it is best to remove it, although"
  5697. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5698. echo "***"
  5699. else
  5700. echo "$as_me: failed program was:" >&5
  5701. sed 's/^/| /' conftest.$ac_ext >&5
  5702. echo "*** The test program failed to compile or link. See the file config.log for the"
  5703. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5704. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5705. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5706. fi
  5707. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5708. conftest$ac_exeext conftest.$ac_ext
  5709. CFLAGS="$ac_save_CFLAGS"
  5710. LIBS="$ac_save_LIBS"
  5711. fi
  5712. fi
  5713. LIBGNUTLS_CFLAGS=""
  5714. LIBGNUTLS_LIBS=""
  5715. :
  5716. fi
  5717. rm -f conf.libgnutlstest
  5718. if test "x$have_libgnutls" = "xyes"; then
  5719. cat >>confdefs.h <<\_ACEOF
  5720. #define HAVE_LIBGNUTLS 1
  5721. _ACEOF
  5722. fi
  5723. fi
  5724. if test "x$have_libgnutls" = "xyes"; then
  5725. # Check whether --with-libgcrypt-prefix was given.
  5726. if test "${with_libgcrypt_prefix+set}" = set; then
  5727. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5728. else
  5729. libgcrypt_config_prefix=""
  5730. fi
  5731. if test x$libgcrypt_config_prefix != x ; then
  5732. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5733. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5734. fi
  5735. fi
  5736. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5737. set dummy libgcrypt-config; ac_word=$2
  5738. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5739. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5740. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5741. echo $ECHO_N "(cached) $ECHO_C" >&6
  5742. else
  5743. case $LIBGCRYPT_CONFIG in
  5744. [\\/]* | ?:[\\/]*)
  5745. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5746. ;;
  5747. *)
  5748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5749. for as_dir in $PATH
  5750. do
  5751. IFS=$as_save_IFS
  5752. test -z "$as_dir" && as_dir=.
  5753. for ac_exec_ext in '' $ac_executable_extensions; do
  5754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5755. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5756. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5757. break 2
  5758. fi
  5759. done
  5760. done
  5761. IFS=$as_save_IFS
  5762. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5763. ;;
  5764. esac
  5765. fi
  5766. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5767. if test -n "$LIBGCRYPT_CONFIG"; then
  5768. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5769. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5770. else
  5771. { echo "$as_me:$LINENO: result: no" >&5
  5772. echo "${ECHO_T}no" >&6; }
  5773. fi
  5774. tmp=1.2.2
  5775. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5776. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5777. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5778. else
  5779. req_libgcrypt_api=0
  5780. min_libgcrypt_version="$tmp"
  5781. fi
  5782. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5783. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5784. ok=no
  5785. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5786. req_major=`echo $min_libgcrypt_version | \
  5787. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5788. req_minor=`echo $min_libgcrypt_version | \
  5789. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5790. req_micro=`echo $min_libgcrypt_version | \
  5791. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5792. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5793. major=`echo $libgcrypt_config_version | \
  5794. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5795. minor=`echo $libgcrypt_config_version | \
  5796. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5797. micro=`echo $libgcrypt_config_version | \
  5798. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5799. if test "$major" -gt "$req_major"; then
  5800. ok=yes
  5801. else
  5802. if test "$major" -eq "$req_major"; then
  5803. if test "$minor" -gt "$req_minor"; then
  5804. ok=yes
  5805. else
  5806. if test "$minor" -eq "$req_minor"; then
  5807. if test "$micro" -ge "$req_micro"; then
  5808. ok=yes
  5809. fi
  5810. fi
  5811. fi
  5812. fi
  5813. fi
  5814. fi
  5815. if test $ok = yes; then
  5816. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5817. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5818. else
  5819. { echo "$as_me:$LINENO: result: no" >&5
  5820. echo "${ECHO_T}no" >&6; }
  5821. fi
  5822. if test $ok = yes; then
  5823. # If we have a recent libgcrypt, we should also check that the
  5824. # API is compatible
  5825. if test "$req_libgcrypt_api" -gt 0 ; then
  5826. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5827. if test "$tmp" -gt 0 ; then
  5828. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5829. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5830. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5831. { echo "$as_me:$LINENO: result: okay" >&5
  5832. echo "${ECHO_T}okay" >&6; }
  5833. else
  5834. ok=no
  5835. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5836. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5837. fi
  5838. fi
  5839. fi
  5840. fi
  5841. if test $ok = yes; then
  5842. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5843. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5844. have_libgcrypt=yes
  5845. else
  5846. LIBGCRYPT_CFLAGS=""
  5847. LIBGCRYPT_LIBS=""
  5848. :
  5849. fi
  5850. if test "x$have_libgcrypt" = "xyes"; then
  5851. cat >>confdefs.h <<\_ACEOF
  5852. #define HAVE_LIBGCRYPT 1
  5853. _ACEOF
  5854. fi
  5855. fi
  5856. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5857. # Check whether --with-openssl-prefix was given.
  5858. if test "${with_openssl_prefix+set}" = set; then
  5859. withval=$with_openssl_prefix; openssl_prefix=$withval
  5860. else
  5861. openssl_prefix=""
  5862. fi
  5863. if test "x$openssl_prefix" = "x"; then
  5864. openssl_prefix="/usr/local"
  5865. fi
  5866. LIBS_save=$LIBS
  5867. CPPFLAGS_save=$CPPFLAGS
  5868. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  5869. if test -x $PKG_CONFIG; then
  5870. { echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  5871. echo $ECHO_N "checking checking availability of openssl using pkg-config... $ECHO_C" >&6; }
  5872. $PKG_CONFIG --exists openssl
  5873. if test "$?" = "0"; then
  5874. # Use pkg-config to detect LIBS and CFLAGS
  5875. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  5876. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5877. LIBS="$OPENSSL_LIBS $LIBS"
  5878. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  5879. have_openssl=yes
  5880. { echo "$as_me:$LINENO: result: yes" >&5
  5881. echo "${ECHO_T}yes" >&6; }
  5882. else
  5883. { echo "$as_me:$LINENO: result: no" >&5
  5884. echo "${ECHO_T}no" >&6; }
  5885. fi
  5886. fi
  5887. if test "x$have_openssl" != "xyes"; then
  5888. openssl_prefix_lib=$openssl_prefix/lib
  5889. openssl_prefix_include=$openssl_prefix/include
  5890. LIBS="-L$openssl_prefix_lib $LIBS"
  5891. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5892. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5893. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5894. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5895. echo $ECHO_N "(cached) $ECHO_C" >&6
  5896. else
  5897. ac_check_lib_save_LIBS=$LIBS
  5898. LIBS="-lssl $LIBS"
  5899. cat >conftest.$ac_ext <<_ACEOF
  5900. /* confdefs.h. */
  5901. _ACEOF
  5902. cat confdefs.h >>conftest.$ac_ext
  5903. cat >>conftest.$ac_ext <<_ACEOF
  5904. /* end confdefs.h. */
  5905. /* Override any GCC internal prototype to avoid an error.
  5906. Use char because int might match the return type of a GCC
  5907. builtin and then its argument prototype would still apply. */
  5908. #ifdef __cplusplus
  5909. extern "C"
  5910. #endif
  5911. char SSL_library_init ();
  5912. int
  5913. main ()
  5914. {
  5915. return SSL_library_init ();
  5916. ;
  5917. return 0;
  5918. }
  5919. _ACEOF
  5920. rm -f conftest.$ac_objext conftest$ac_exeext
  5921. if { (ac_try="$ac_link"
  5922. case "(($ac_try" in
  5923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5924. *) ac_try_echo=$ac_try;;
  5925. esac
  5926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5927. (eval "$ac_link") 2>conftest.er1
  5928. ac_status=$?
  5929. grep -v '^ *+' conftest.er1 >conftest.err
  5930. rm -f conftest.er1
  5931. cat conftest.err >&5
  5932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5933. (exit $ac_status); } && {
  5934. test -z "$ac_cxx_werror_flag" ||
  5935. test ! -s conftest.err
  5936. } && test -s conftest$ac_exeext &&
  5937. $as_test_x conftest$ac_exeext; then
  5938. ac_cv_lib_ssl_SSL_library_init=yes
  5939. else
  5940. echo "$as_me: failed program was:" >&5
  5941. sed 's/^/| /' conftest.$ac_ext >&5
  5942. ac_cv_lib_ssl_SSL_library_init=no
  5943. fi
  5944. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5945. conftest$ac_exeext conftest.$ac_ext
  5946. LIBS=$ac_check_lib_save_LIBS
  5947. fi
  5948. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5949. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5950. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5951. have_openssl=yes LIBS="-lssl $LIBS"
  5952. fi
  5953. if test "x$have_openssl" = "xyes"; then
  5954. have_openssl=no
  5955. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5956. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5957. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5958. echo $ECHO_N "(cached) $ECHO_C" >&6
  5959. else
  5960. ac_check_lib_save_LIBS=$LIBS
  5961. LIBS="-lcrypto $LIBS"
  5962. cat >conftest.$ac_ext <<_ACEOF
  5963. /* confdefs.h. */
  5964. _ACEOF
  5965. cat confdefs.h >>conftest.$ac_ext
  5966. cat >>conftest.$ac_ext <<_ACEOF
  5967. /* end confdefs.h. */
  5968. int
  5969. main ()
  5970. {
  5971. return main ();
  5972. ;
  5973. return 0;
  5974. }
  5975. _ACEOF
  5976. rm -f conftest.$ac_objext conftest$ac_exeext
  5977. if { (ac_try="$ac_link"
  5978. case "(($ac_try" in
  5979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5980. *) ac_try_echo=$ac_try;;
  5981. esac
  5982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5983. (eval "$ac_link") 2>conftest.er1
  5984. ac_status=$?
  5985. grep -v '^ *+' conftest.er1 >conftest.err
  5986. rm -f conftest.er1
  5987. cat conftest.err >&5
  5988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5989. (exit $ac_status); } && {
  5990. test -z "$ac_cxx_werror_flag" ||
  5991. test ! -s conftest.err
  5992. } && test -s conftest$ac_exeext &&
  5993. $as_test_x conftest$ac_exeext; then
  5994. ac_cv_lib_crypto_main=yes
  5995. else
  5996. echo "$as_me: failed program was:" >&5
  5997. sed 's/^/| /' conftest.$ac_ext >&5
  5998. ac_cv_lib_crypto_main=no
  5999. fi
  6000. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6001. conftest$ac_exeext conftest.$ac_ext
  6002. LIBS=$ac_check_lib_save_LIBS
  6003. fi
  6004. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6005. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  6006. if test $ac_cv_lib_crypto_main = yes; then
  6007. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6008. fi
  6009. if test "x$have_openssl" = "xyes"; then
  6010. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6011. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6012. fi
  6013. fi
  6014. fi
  6015. if test "x$have_openssl" = "xyes"; then
  6016. cat >>confdefs.h <<\_ACEOF
  6017. #define HAVE_LIBSSL 1
  6018. _ACEOF
  6019. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6020. for ac_func in EVP_DigestInit_ex
  6021. do
  6022. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6023. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6024. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6025. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6026. echo $ECHO_N "(cached) $ECHO_C" >&6
  6027. else
  6028. cat >conftest.$ac_ext <<_ACEOF
  6029. /* confdefs.h. */
  6030. _ACEOF
  6031. cat confdefs.h >>conftest.$ac_ext
  6032. cat >>conftest.$ac_ext <<_ACEOF
  6033. /* end confdefs.h. */
  6034. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6035. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6036. #define $ac_func innocuous_$ac_func
  6037. /* System header to define __stub macros and hopefully few prototypes,
  6038. which can conflict with char $ac_func (); below.
  6039. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6040. <limits.h> exists even on freestanding compilers. */
  6041. #ifdef __STDC__
  6042. # include <limits.h>
  6043. #else
  6044. # include <assert.h>
  6045. #endif
  6046. #undef $ac_func
  6047. /* Override any GCC internal prototype to avoid an error.
  6048. Use char because int might match the return type of a GCC
  6049. builtin and then its argument prototype would still apply. */
  6050. #ifdef __cplusplus
  6051. extern "C"
  6052. #endif
  6053. char $ac_func ();
  6054. /* The GNU C library defines this for functions which it implements
  6055. to always fail with ENOSYS. Some functions are actually named
  6056. something starting with __ and the normal name is an alias. */
  6057. #if defined __stub_$ac_func || defined __stub___$ac_func
  6058. choke me
  6059. #endif
  6060. int
  6061. main ()
  6062. {
  6063. return $ac_func ();
  6064. ;
  6065. return 0;
  6066. }
  6067. _ACEOF
  6068. rm -f conftest.$ac_objext conftest$ac_exeext
  6069. if { (ac_try="$ac_link"
  6070. case "(($ac_try" in
  6071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6072. *) ac_try_echo=$ac_try;;
  6073. esac
  6074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6075. (eval "$ac_link") 2>conftest.er1
  6076. ac_status=$?
  6077. grep -v '^ *+' conftest.er1 >conftest.err
  6078. rm -f conftest.er1
  6079. cat conftest.err >&5
  6080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6081. (exit $ac_status); } && {
  6082. test -z "$ac_cxx_werror_flag" ||
  6083. test ! -s conftest.err
  6084. } && test -s conftest$ac_exeext &&
  6085. $as_test_x conftest$ac_exeext; then
  6086. eval "$as_ac_var=yes"
  6087. else
  6088. echo "$as_me: failed program was:" >&5
  6089. sed 's/^/| /' conftest.$ac_ext >&5
  6090. eval "$as_ac_var=no"
  6091. fi
  6092. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6093. conftest$ac_exeext conftest.$ac_ext
  6094. fi
  6095. ac_res=`eval echo '${'$as_ac_var'}'`
  6096. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6097. echo "${ECHO_T}$ac_res" >&6; }
  6098. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6099. cat >>confdefs.h <<_ACEOF
  6100. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6101. _ACEOF
  6102. have_digestinit_ex=yes
  6103. fi
  6104. done
  6105. if test "x$have_digestinit_ex" = "x"; then
  6106. cat >>confdefs.h <<\_ACEOF
  6107. #define HAVE_OLD_LIBSSL 1
  6108. _ACEOF
  6109. fi
  6110. # search for sha256 support
  6111. for ac_func in EVP_sha256
  6112. do
  6113. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6114. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6115. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6116. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6117. echo $ECHO_N "(cached) $ECHO_C" >&6
  6118. else
  6119. cat >conftest.$ac_ext <<_ACEOF
  6120. /* confdefs.h. */
  6121. _ACEOF
  6122. cat confdefs.h >>conftest.$ac_ext
  6123. cat >>conftest.$ac_ext <<_ACEOF
  6124. /* end confdefs.h. */
  6125. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6126. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6127. #define $ac_func innocuous_$ac_func
  6128. /* System header to define __stub macros and hopefully few prototypes,
  6129. which can conflict with char $ac_func (); below.
  6130. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6131. <limits.h> exists even on freestanding compilers. */
  6132. #ifdef __STDC__
  6133. # include <limits.h>
  6134. #else
  6135. # include <assert.h>
  6136. #endif
  6137. #undef $ac_func
  6138. /* Override any GCC internal prototype to avoid an error.
  6139. Use char because int might match the return type of a GCC
  6140. builtin and then its argument prototype would still apply. */
  6141. #ifdef __cplusplus
  6142. extern "C"
  6143. #endif
  6144. char $ac_func ();
  6145. /* The GNU C library defines this for functions which it implements
  6146. to always fail with ENOSYS. Some functions are actually named
  6147. something starting with __ and the normal name is an alias. */
  6148. #if defined __stub_$ac_func || defined __stub___$ac_func
  6149. choke me
  6150. #endif
  6151. int
  6152. main ()
  6153. {
  6154. return $ac_func ();
  6155. ;
  6156. return 0;
  6157. }
  6158. _ACEOF
  6159. rm -f conftest.$ac_objext conftest$ac_exeext
  6160. if { (ac_try="$ac_link"
  6161. case "(($ac_try" in
  6162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6163. *) ac_try_echo=$ac_try;;
  6164. esac
  6165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6166. (eval "$ac_link") 2>conftest.er1
  6167. ac_status=$?
  6168. grep -v '^ *+' conftest.er1 >conftest.err
  6169. rm -f conftest.er1
  6170. cat conftest.err >&5
  6171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6172. (exit $ac_status); } && {
  6173. test -z "$ac_cxx_werror_flag" ||
  6174. test ! -s conftest.err
  6175. } && test -s conftest$ac_exeext &&
  6176. $as_test_x conftest$ac_exeext; then
  6177. eval "$as_ac_var=yes"
  6178. else
  6179. echo "$as_me: failed program was:" >&5
  6180. sed 's/^/| /' conftest.$ac_ext >&5
  6181. eval "$as_ac_var=no"
  6182. fi
  6183. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6184. conftest$ac_exeext conftest.$ac_ext
  6185. fi
  6186. ac_res=`eval echo '${'$as_ac_var'}'`
  6187. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6188. echo "${ECHO_T}$ac_res" >&6; }
  6189. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6190. cat >>confdefs.h <<_ACEOF
  6191. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6192. _ACEOF
  6193. fi
  6194. done
  6195. fi
  6196. LIBS=$LIBS_save
  6197. CPPFLAGS=$CPPFLAGS_save
  6198. fi
  6199. if test "x$with_libcares" = "xyes"; then
  6200. # Check whether --with-libcares-prefix was given.
  6201. if test "${with_libcares_prefix+set}" = set; then
  6202. withval=$with_libcares_prefix; libcares_prefix=$withval
  6203. else
  6204. libcares_prefix=""
  6205. fi
  6206. if test "x$libcares_prefix" = "x"; then
  6207. libcares_prefix="/usr"
  6208. fi
  6209. libcares_prefix_lib=$libcares_prefix/lib
  6210. libcares_prefix_include=$libcares_prefix/include
  6211. LIBS_save=$LIBS
  6212. CPPFLAGS_save=$CPPFLAGS
  6213. LIBS="-L$libcares_prefix_lib $LIBS"
  6214. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6215. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6216. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6217. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6218. echo $ECHO_N "(cached) $ECHO_C" >&6
  6219. else
  6220. ac_check_lib_save_LIBS=$LIBS
  6221. LIBS="-lcares $LIBS"
  6222. cat >conftest.$ac_ext <<_ACEOF
  6223. /* confdefs.h. */
  6224. _ACEOF
  6225. cat confdefs.h >>conftest.$ac_ext
  6226. cat >>conftest.$ac_ext <<_ACEOF
  6227. /* end confdefs.h. */
  6228. /* Override any GCC internal prototype to avoid an error.
  6229. Use char because int might match the return type of a GCC
  6230. builtin and then its argument prototype would still apply. */
  6231. #ifdef __cplusplus
  6232. extern "C"
  6233. #endif
  6234. char ares_init ();
  6235. int
  6236. main ()
  6237. {
  6238. return ares_init ();
  6239. ;
  6240. return 0;
  6241. }
  6242. _ACEOF
  6243. rm -f conftest.$ac_objext conftest$ac_exeext
  6244. if { (ac_try="$ac_link"
  6245. case "(($ac_try" in
  6246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6247. *) ac_try_echo=$ac_try;;
  6248. esac
  6249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6250. (eval "$ac_link") 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } && {
  6257. test -z "$ac_cxx_werror_flag" ||
  6258. test ! -s conftest.err
  6259. } && test -s conftest$ac_exeext &&
  6260. $as_test_x conftest$ac_exeext; then
  6261. ac_cv_lib_cares_ares_init=yes
  6262. else
  6263. echo "$as_me: failed program was:" >&5
  6264. sed 's/^/| /' conftest.$ac_ext >&5
  6265. ac_cv_lib_cares_ares_init=no
  6266. fi
  6267. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6268. conftest$ac_exeext conftest.$ac_ext
  6269. LIBS=$ac_check_lib_save_LIBS
  6270. fi
  6271. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6272. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6273. if test $ac_cv_lib_cares_ares_init = yes; then
  6274. have_libcares=yes
  6275. fi
  6276. if test "x$have_libcares" != "xyes"; then
  6277. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6278. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6279. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6280. echo $ECHO_N "(cached) $ECHO_C" >&6
  6281. else
  6282. ac_check_lib_save_LIBS=$LIBS
  6283. LIBS="-lcares -lrt $LIBS"
  6284. cat >conftest.$ac_ext <<_ACEOF
  6285. /* confdefs.h. */
  6286. _ACEOF
  6287. cat confdefs.h >>conftest.$ac_ext
  6288. cat >>conftest.$ac_ext <<_ACEOF
  6289. /* end confdefs.h. */
  6290. /* Override any GCC internal prototype to avoid an error.
  6291. Use char because int might match the return type of a GCC
  6292. builtin and then its argument prototype would still apply. */
  6293. #ifdef __cplusplus
  6294. extern "C"
  6295. #endif
  6296. char ares_init ();
  6297. int
  6298. main ()
  6299. {
  6300. return ares_init ();
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. rm -f conftest.$ac_objext conftest$ac_exeext
  6306. if { (ac_try="$ac_link"
  6307. case "(($ac_try" in
  6308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6309. *) ac_try_echo=$ac_try;;
  6310. esac
  6311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6312. (eval "$ac_link") 2>conftest.er1
  6313. ac_status=$?
  6314. grep -v '^ *+' conftest.er1 >conftest.err
  6315. rm -f conftest.er1
  6316. cat conftest.err >&5
  6317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6318. (exit $ac_status); } && {
  6319. test -z "$ac_cxx_werror_flag" ||
  6320. test ! -s conftest.err
  6321. } && test -s conftest$ac_exeext &&
  6322. $as_test_x conftest$ac_exeext; then
  6323. ac_cv_lib_cares_ares_init=yes
  6324. else
  6325. echo "$as_me: failed program was:" >&5
  6326. sed 's/^/| /' conftest.$ac_ext >&5
  6327. ac_cv_lib_cares_ares_init=no
  6328. fi
  6329. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6330. conftest$ac_exeext conftest.$ac_ext
  6331. LIBS=$ac_check_lib_save_LIBS
  6332. fi
  6333. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6334. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6335. if test $ac_cv_lib_cares_ares_init = yes; then
  6336. have_libcares=yes need_librt=yes
  6337. fi
  6338. fi
  6339. if test "x$have_libcares" = "xyes"; then
  6340. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6341. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6342. cat >conftest.$ac_ext <<_ACEOF
  6343. /* confdefs.h. */
  6344. _ACEOF
  6345. cat confdefs.h >>conftest.$ac_ext
  6346. cat >>conftest.$ac_ext <<_ACEOF
  6347. /* end confdefs.h. */
  6348. #include <ares.h>
  6349. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6350. int
  6351. main ()
  6352. {
  6353. ares_channel channel;
  6354. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6355. ;
  6356. return 0;
  6357. }
  6358. _ACEOF
  6359. rm -f conftest.$ac_objext
  6360. if { (ac_try="$ac_compile"
  6361. case "(($ac_try" in
  6362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6363. *) ac_try_echo=$ac_try;;
  6364. esac
  6365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6366. (eval "$ac_compile") 2>conftest.er1
  6367. ac_status=$?
  6368. grep -v '^ *+' conftest.er1 >conftest.err
  6369. rm -f conftest.er1
  6370. cat conftest.err >&5
  6371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6372. (exit $ac_status); } && {
  6373. test -z "$ac_cxx_werror_flag" ||
  6374. test ! -s conftest.err
  6375. } && test -s conftest.$ac_objext; then
  6376. have_libcares1_5=yes
  6377. else
  6378. echo "$as_me: failed program was:" >&5
  6379. sed 's/^/| /' conftest.$ac_ext >&5
  6380. have_libcares1_5=no
  6381. fi
  6382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6383. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6384. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6385. if test "x$have_libcares1_5" = "xyes"; then
  6386. cat >>confdefs.h <<\_ACEOF
  6387. #define HAVE_LIBCARES1_5 1
  6388. _ACEOF
  6389. fi
  6390. cat >>confdefs.h <<\_ACEOF
  6391. #define HAVE_LIBCARES 1
  6392. _ACEOF
  6393. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6394. if test "x$need_librt" = "xyes"; then
  6395. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6396. fi
  6397. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6398. fi
  6399. LIBS=$LIBS_save
  6400. CPPFLAGS=$CPPFLAGS_save
  6401. fi
  6402. # Check availability of libz
  6403. if test "x$with_libz" = "xyes"; then
  6404. # Check whether --with-libz-prefix was given.
  6405. if test "${with_libz_prefix+set}" = set; then
  6406. withval=$with_libz_prefix; libz_prefix=$withval
  6407. else
  6408. libz_prefix=""
  6409. fi
  6410. if test "x$libz_prefix" = "x"; then
  6411. libz_prefix="/usr"
  6412. fi
  6413. libz_prefix_lib=$libz_prefix/lib
  6414. libz_prefix_include=$libz_prefix/include
  6415. LIBS_save=$LIBS
  6416. CPPFLAGS_save=$CPPFLAGS
  6417. LIBS="-L$libz_prefix_lib $LIBS"
  6418. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6419. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6420. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6421. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6422. echo $ECHO_N "(cached) $ECHO_C" >&6
  6423. else
  6424. ac_check_lib_save_LIBS=$LIBS
  6425. LIBS="-lz $LIBS"
  6426. cat >conftest.$ac_ext <<_ACEOF
  6427. /* confdefs.h. */
  6428. _ACEOF
  6429. cat confdefs.h >>conftest.$ac_ext
  6430. cat >>conftest.$ac_ext <<_ACEOF
  6431. /* end confdefs.h. */
  6432. /* Override any GCC internal prototype to avoid an error.
  6433. Use char because int might match the return type of a GCC
  6434. builtin and then its argument prototype would still apply. */
  6435. #ifdef __cplusplus
  6436. extern "C"
  6437. #endif
  6438. char zlibVersion ();
  6439. int
  6440. main ()
  6441. {
  6442. return zlibVersion ();
  6443. ;
  6444. return 0;
  6445. }
  6446. _ACEOF
  6447. rm -f conftest.$ac_objext conftest$ac_exeext
  6448. if { (ac_try="$ac_link"
  6449. case "(($ac_try" in
  6450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6451. *) ac_try_echo=$ac_try;;
  6452. esac
  6453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6454. (eval "$ac_link") 2>conftest.er1
  6455. ac_status=$?
  6456. grep -v '^ *+' conftest.er1 >conftest.err
  6457. rm -f conftest.er1
  6458. cat conftest.err >&5
  6459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6460. (exit $ac_status); } && {
  6461. test -z "$ac_cxx_werror_flag" ||
  6462. test ! -s conftest.err
  6463. } && test -s conftest$ac_exeext &&
  6464. $as_test_x conftest$ac_exeext; then
  6465. ac_cv_lib_z_zlibVersion=yes
  6466. else
  6467. echo "$as_me: failed program was:" >&5
  6468. sed 's/^/| /' conftest.$ac_ext >&5
  6469. ac_cv_lib_z_zlibVersion=no
  6470. fi
  6471. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6472. conftest$ac_exeext conftest.$ac_ext
  6473. LIBS=$ac_check_lib_save_LIBS
  6474. fi
  6475. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6476. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6477. if test $ac_cv_lib_z_zlibVersion = yes; then
  6478. have_libz=yes
  6479. fi
  6480. if test "x$have_libz" = "xyes"; then
  6481. cat >>confdefs.h <<\_ACEOF
  6482. #define HAVE_LIBZ 1
  6483. _ACEOF
  6484. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6485. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6486. fi
  6487. LIBS=$LIBS_save
  6488. CPPFLAGS=$CPPFLAGS_save
  6489. fi
  6490. # Define variables based on the result of the checks for libraries.
  6491. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6492. cat >>confdefs.h <<\_ACEOF
  6493. #define ENABLE_SSL 1
  6494. _ACEOF
  6495. if true; then
  6496. ENABLE_SSL_TRUE=
  6497. ENABLE_SSL_FALSE='#'
  6498. else
  6499. ENABLE_SSL_TRUE='#'
  6500. ENABLE_SSL_FALSE=
  6501. fi
  6502. else
  6503. if false; then
  6504. ENABLE_SSL_TRUE=
  6505. ENABLE_SSL_FALSE='#'
  6506. else
  6507. ENABLE_SSL_TRUE='#'
  6508. ENABLE_SSL_FALSE=
  6509. fi
  6510. fi
  6511. if test "x$have_libgnutls" = "xyes" ; then
  6512. HAVE_LIBGNUTLS_TRUE=
  6513. HAVE_LIBGNUTLS_FALSE='#'
  6514. else
  6515. HAVE_LIBGNUTLS_TRUE='#'
  6516. HAVE_LIBGNUTLS_FALSE=
  6517. fi
  6518. if test "x$have_openssl" = "xyes" ; then
  6519. HAVE_LIBSSL_TRUE=
  6520. HAVE_LIBSSL_FALSE='#'
  6521. else
  6522. HAVE_LIBSSL_TRUE='#'
  6523. HAVE_LIBSSL_FALSE=
  6524. fi
  6525. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6526. cat >>confdefs.h <<\_ACEOF
  6527. #define ENABLE_MESSAGE_DIGEST 1
  6528. _ACEOF
  6529. if true; then
  6530. ENABLE_MESSAGE_DIGEST_TRUE=
  6531. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6532. else
  6533. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6534. ENABLE_MESSAGE_DIGEST_FALSE=
  6535. fi
  6536. enable_message_digest=yes
  6537. else
  6538. if false; then
  6539. ENABLE_MESSAGE_DIGEST_TRUE=
  6540. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6541. else
  6542. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6543. ENABLE_MESSAGE_DIGEST_FALSE=
  6544. fi
  6545. fi
  6546. if test "x$enable_bittorrent" = "xyes" &&
  6547. test "x$enable_message_digest" = "xyes"; then
  6548. cat >>confdefs.h <<\_ACEOF
  6549. #define ENABLE_BITTORRENT 1
  6550. _ACEOF
  6551. if true; then
  6552. ENABLE_BITTORRENT_TRUE=
  6553. ENABLE_BITTORRENT_FALSE='#'
  6554. else
  6555. ENABLE_BITTORRENT_TRUE='#'
  6556. ENABLE_BITTORRENT_FALSE=
  6557. fi
  6558. else
  6559. enable_bittorrent=no
  6560. if false; then
  6561. ENABLE_BITTORRENT_TRUE=
  6562. ENABLE_BITTORRENT_FALSE='#'
  6563. else
  6564. ENABLE_BITTORRENT_TRUE='#'
  6565. ENABLE_BITTORRENT_FALSE=
  6566. fi
  6567. fi
  6568. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6569. test "x$enable_metalink" = "xyes"; then
  6570. cat >>confdefs.h <<\_ACEOF
  6571. #define ENABLE_METALINK 1
  6572. _ACEOF
  6573. if true; then
  6574. ENABLE_METALINK_TRUE=
  6575. ENABLE_METALINK_FALSE='#'
  6576. else
  6577. ENABLE_METALINK_TRUE='#'
  6578. ENABLE_METALINK_FALSE=
  6579. fi
  6580. else
  6581. enable_metalink=no
  6582. if false; then
  6583. ENABLE_METALINK_TRUE=
  6584. ENABLE_METALINK_FALSE='#'
  6585. else
  6586. ENABLE_METALINK_TRUE='#'
  6587. ENABLE_METALINK_FALSE=
  6588. fi
  6589. fi
  6590. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6591. ENABLE_LIBXML2_TRUE=
  6592. ENABLE_LIBXML2_FALSE='#'
  6593. else
  6594. ENABLE_LIBXML2_TRUE='#'
  6595. ENABLE_LIBXML2_FALSE=
  6596. fi
  6597. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6598. ENABLE_LIBEXPAT_TRUE=
  6599. ENABLE_LIBEXPAT_FALSE='#'
  6600. else
  6601. ENABLE_LIBEXPAT_TRUE='#'
  6602. ENABLE_LIBEXPAT_FALSE=
  6603. fi
  6604. if test "x$have_libcares" = "xyes"; then
  6605. cat >>confdefs.h <<\_ACEOF
  6606. #define ENABLE_ASYNC_DNS 1
  6607. _ACEOF
  6608. if true; then
  6609. ENABLE_ASYNC_DNS_TRUE=
  6610. ENABLE_ASYNC_DNS_FALSE='#'
  6611. else
  6612. ENABLE_ASYNC_DNS_TRUE='#'
  6613. ENABLE_ASYNC_DNS_FALSE=
  6614. fi
  6615. else
  6616. if false; then
  6617. ENABLE_ASYNC_DNS_TRUE=
  6618. ENABLE_ASYNC_DNS_FALSE='#'
  6619. else
  6620. ENABLE_ASYNC_DNS_TRUE='#'
  6621. ENABLE_ASYNC_DNS_FALSE=
  6622. fi
  6623. fi
  6624. # Set conditional for libz
  6625. if test "x$have_libz" = "xyes"; then
  6626. HAVE_LIBZ_TRUE=
  6627. HAVE_LIBZ_FALSE='#'
  6628. else
  6629. HAVE_LIBZ_TRUE='#'
  6630. HAVE_LIBZ_FALSE=
  6631. fi
  6632. # Set conditional for sqlite3
  6633. if test "x$have_sqlite3" = "xyes"; then
  6634. HAVE_SQLITE3_TRUE=
  6635. HAVE_SQLITE3_FALSE='#'
  6636. else
  6637. HAVE_SQLITE3_TRUE='#'
  6638. HAVE_SQLITE3_FALSE=
  6639. fi
  6640. # Checks for header files.
  6641. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6642. # for constant arguments. Useless!
  6643. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6644. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6645. if test "${ac_cv_working_alloca_h+set}" = set; then
  6646. echo $ECHO_N "(cached) $ECHO_C" >&6
  6647. else
  6648. cat >conftest.$ac_ext <<_ACEOF
  6649. /* confdefs.h. */
  6650. _ACEOF
  6651. cat confdefs.h >>conftest.$ac_ext
  6652. cat >>conftest.$ac_ext <<_ACEOF
  6653. /* end confdefs.h. */
  6654. #include <alloca.h>
  6655. int
  6656. main ()
  6657. {
  6658. char *p = (char *) alloca (2 * sizeof (int));
  6659. if (p) return 0;
  6660. ;
  6661. return 0;
  6662. }
  6663. _ACEOF
  6664. rm -f conftest.$ac_objext conftest$ac_exeext
  6665. if { (ac_try="$ac_link"
  6666. case "(($ac_try" in
  6667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6668. *) ac_try_echo=$ac_try;;
  6669. esac
  6670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6671. (eval "$ac_link") 2>conftest.er1
  6672. ac_status=$?
  6673. grep -v '^ *+' conftest.er1 >conftest.err
  6674. rm -f conftest.er1
  6675. cat conftest.err >&5
  6676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6677. (exit $ac_status); } && {
  6678. test -z "$ac_cxx_werror_flag" ||
  6679. test ! -s conftest.err
  6680. } && test -s conftest$ac_exeext &&
  6681. $as_test_x conftest$ac_exeext; then
  6682. ac_cv_working_alloca_h=yes
  6683. else
  6684. echo "$as_me: failed program was:" >&5
  6685. sed 's/^/| /' conftest.$ac_ext >&5
  6686. ac_cv_working_alloca_h=no
  6687. fi
  6688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6689. conftest$ac_exeext conftest.$ac_ext
  6690. fi
  6691. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6692. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6693. if test $ac_cv_working_alloca_h = yes; then
  6694. cat >>confdefs.h <<\_ACEOF
  6695. #define HAVE_ALLOCA_H 1
  6696. _ACEOF
  6697. fi
  6698. { echo "$as_me:$LINENO: checking for alloca" >&5
  6699. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6700. if test "${ac_cv_func_alloca_works+set}" = set; then
  6701. echo $ECHO_N "(cached) $ECHO_C" >&6
  6702. else
  6703. cat >conftest.$ac_ext <<_ACEOF
  6704. /* confdefs.h. */
  6705. _ACEOF
  6706. cat confdefs.h >>conftest.$ac_ext
  6707. cat >>conftest.$ac_ext <<_ACEOF
  6708. /* end confdefs.h. */
  6709. #ifdef __GNUC__
  6710. # define alloca __builtin_alloca
  6711. #else
  6712. # ifdef _MSC_VER
  6713. # include <malloc.h>
  6714. # define alloca _alloca
  6715. # else
  6716. # ifdef HAVE_ALLOCA_H
  6717. # include <alloca.h>
  6718. # else
  6719. # ifdef _AIX
  6720. #pragma alloca
  6721. # else
  6722. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6723. char *alloca ();
  6724. # endif
  6725. # endif
  6726. # endif
  6727. # endif
  6728. #endif
  6729. int
  6730. main ()
  6731. {
  6732. char *p = (char *) alloca (1);
  6733. if (p) return 0;
  6734. ;
  6735. return 0;
  6736. }
  6737. _ACEOF
  6738. rm -f conftest.$ac_objext conftest$ac_exeext
  6739. if { (ac_try="$ac_link"
  6740. case "(($ac_try" in
  6741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6742. *) ac_try_echo=$ac_try;;
  6743. esac
  6744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6745. (eval "$ac_link") 2>conftest.er1
  6746. ac_status=$?
  6747. grep -v '^ *+' conftest.er1 >conftest.err
  6748. rm -f conftest.er1
  6749. cat conftest.err >&5
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); } && {
  6752. test -z "$ac_cxx_werror_flag" ||
  6753. test ! -s conftest.err
  6754. } && test -s conftest$ac_exeext &&
  6755. $as_test_x conftest$ac_exeext; then
  6756. ac_cv_func_alloca_works=yes
  6757. else
  6758. echo "$as_me: failed program was:" >&5
  6759. sed 's/^/| /' conftest.$ac_ext >&5
  6760. ac_cv_func_alloca_works=no
  6761. fi
  6762. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6763. conftest$ac_exeext conftest.$ac_ext
  6764. fi
  6765. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6766. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6767. if test $ac_cv_func_alloca_works = yes; then
  6768. cat >>confdefs.h <<\_ACEOF
  6769. #define HAVE_ALLOCA 1
  6770. _ACEOF
  6771. else
  6772. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6773. # that cause trouble. Some versions do not even contain alloca or
  6774. # contain a buggy version. If you still want to use their alloca,
  6775. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6776. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6777. cat >>confdefs.h <<\_ACEOF
  6778. #define C_ALLOCA 1
  6779. _ACEOF
  6780. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6781. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6782. if test "${ac_cv_os_cray+set}" = set; then
  6783. echo $ECHO_N "(cached) $ECHO_C" >&6
  6784. else
  6785. cat >conftest.$ac_ext <<_ACEOF
  6786. /* confdefs.h. */
  6787. _ACEOF
  6788. cat confdefs.h >>conftest.$ac_ext
  6789. cat >>conftest.$ac_ext <<_ACEOF
  6790. /* end confdefs.h. */
  6791. #if defined CRAY && ! defined CRAY2
  6792. webecray
  6793. #else
  6794. wenotbecray
  6795. #endif
  6796. _ACEOF
  6797. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6798. $EGREP "webecray" >/dev/null 2>&1; then
  6799. ac_cv_os_cray=yes
  6800. else
  6801. ac_cv_os_cray=no
  6802. fi
  6803. rm -f conftest*
  6804. fi
  6805. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6806. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6807. if test $ac_cv_os_cray = yes; then
  6808. for ac_func in _getb67 GETB67 getb67; do
  6809. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6810. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6811. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6812. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6813. echo $ECHO_N "(cached) $ECHO_C" >&6
  6814. else
  6815. cat >conftest.$ac_ext <<_ACEOF
  6816. /* confdefs.h. */
  6817. _ACEOF
  6818. cat confdefs.h >>conftest.$ac_ext
  6819. cat >>conftest.$ac_ext <<_ACEOF
  6820. /* end confdefs.h. */
  6821. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6822. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6823. #define $ac_func innocuous_$ac_func
  6824. /* System header to define __stub macros and hopefully few prototypes,
  6825. which can conflict with char $ac_func (); below.
  6826. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6827. <limits.h> exists even on freestanding compilers. */
  6828. #ifdef __STDC__
  6829. # include <limits.h>
  6830. #else
  6831. # include <assert.h>
  6832. #endif
  6833. #undef $ac_func
  6834. /* Override any GCC internal prototype to avoid an error.
  6835. Use char because int might match the return type of a GCC
  6836. builtin and then its argument prototype would still apply. */
  6837. #ifdef __cplusplus
  6838. extern "C"
  6839. #endif
  6840. char $ac_func ();
  6841. /* The GNU C library defines this for functions which it implements
  6842. to always fail with ENOSYS. Some functions are actually named
  6843. something starting with __ and the normal name is an alias. */
  6844. #if defined __stub_$ac_func || defined __stub___$ac_func
  6845. choke me
  6846. #endif
  6847. int
  6848. main ()
  6849. {
  6850. return $ac_func ();
  6851. ;
  6852. return 0;
  6853. }
  6854. _ACEOF
  6855. rm -f conftest.$ac_objext conftest$ac_exeext
  6856. if { (ac_try="$ac_link"
  6857. case "(($ac_try" in
  6858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6859. *) ac_try_echo=$ac_try;;
  6860. esac
  6861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6862. (eval "$ac_link") 2>conftest.er1
  6863. ac_status=$?
  6864. grep -v '^ *+' conftest.er1 >conftest.err
  6865. rm -f conftest.er1
  6866. cat conftest.err >&5
  6867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6868. (exit $ac_status); } && {
  6869. test -z "$ac_cxx_werror_flag" ||
  6870. test ! -s conftest.err
  6871. } && test -s conftest$ac_exeext &&
  6872. $as_test_x conftest$ac_exeext; then
  6873. eval "$as_ac_var=yes"
  6874. else
  6875. echo "$as_me: failed program was:" >&5
  6876. sed 's/^/| /' conftest.$ac_ext >&5
  6877. eval "$as_ac_var=no"
  6878. fi
  6879. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6880. conftest$ac_exeext conftest.$ac_ext
  6881. fi
  6882. ac_res=`eval echo '${'$as_ac_var'}'`
  6883. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6884. echo "${ECHO_T}$ac_res" >&6; }
  6885. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6886. cat >>confdefs.h <<_ACEOF
  6887. #define CRAY_STACKSEG_END $ac_func
  6888. _ACEOF
  6889. break
  6890. fi
  6891. done
  6892. fi
  6893. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6894. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6895. if test "${ac_cv_c_stack_direction+set}" = set; then
  6896. echo $ECHO_N "(cached) $ECHO_C" >&6
  6897. else
  6898. if test "$cross_compiling" = yes; then
  6899. ac_cv_c_stack_direction=0
  6900. else
  6901. cat >conftest.$ac_ext <<_ACEOF
  6902. /* confdefs.h. */
  6903. _ACEOF
  6904. cat confdefs.h >>conftest.$ac_ext
  6905. cat >>conftest.$ac_ext <<_ACEOF
  6906. /* end confdefs.h. */
  6907. $ac_includes_default
  6908. int
  6909. find_stack_direction ()
  6910. {
  6911. static char *addr = 0;
  6912. auto char dummy;
  6913. if (addr == 0)
  6914. {
  6915. addr = &dummy;
  6916. return find_stack_direction ();
  6917. }
  6918. else
  6919. return (&dummy > addr) ? 1 : -1;
  6920. }
  6921. int
  6922. main ()
  6923. {
  6924. return find_stack_direction () < 0;
  6925. }
  6926. _ACEOF
  6927. rm -f conftest$ac_exeext
  6928. if { (ac_try="$ac_link"
  6929. case "(($ac_try" in
  6930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6931. *) ac_try_echo=$ac_try;;
  6932. esac
  6933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6934. (eval "$ac_link") 2>&5
  6935. ac_status=$?
  6936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6937. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6938. { (case "(($ac_try" in
  6939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6940. *) ac_try_echo=$ac_try;;
  6941. esac
  6942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6943. (eval "$ac_try") 2>&5
  6944. ac_status=$?
  6945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6946. (exit $ac_status); }; }; then
  6947. ac_cv_c_stack_direction=1
  6948. else
  6949. echo "$as_me: program exited with status $ac_status" >&5
  6950. echo "$as_me: failed program was:" >&5
  6951. sed 's/^/| /' conftest.$ac_ext >&5
  6952. ( exit $ac_status )
  6953. ac_cv_c_stack_direction=-1
  6954. fi
  6955. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6956. fi
  6957. fi
  6958. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6959. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6960. cat >>confdefs.h <<_ACEOF
  6961. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6962. _ACEOF
  6963. fi
  6964. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6965. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6966. if test "${ac_cv_header_stdc+set}" = set; then
  6967. echo $ECHO_N "(cached) $ECHO_C" >&6
  6968. else
  6969. cat >conftest.$ac_ext <<_ACEOF
  6970. /* confdefs.h. */
  6971. _ACEOF
  6972. cat confdefs.h >>conftest.$ac_ext
  6973. cat >>conftest.$ac_ext <<_ACEOF
  6974. /* end confdefs.h. */
  6975. #include <stdlib.h>
  6976. #include <stdarg.h>
  6977. #include <string.h>
  6978. #include <float.h>
  6979. int
  6980. main ()
  6981. {
  6982. ;
  6983. return 0;
  6984. }
  6985. _ACEOF
  6986. rm -f conftest.$ac_objext
  6987. if { (ac_try="$ac_compile"
  6988. case "(($ac_try" in
  6989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6990. *) ac_try_echo=$ac_try;;
  6991. esac
  6992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6993. (eval "$ac_compile") 2>conftest.er1
  6994. ac_status=$?
  6995. grep -v '^ *+' conftest.er1 >conftest.err
  6996. rm -f conftest.er1
  6997. cat conftest.err >&5
  6998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6999. (exit $ac_status); } && {
  7000. test -z "$ac_cxx_werror_flag" ||
  7001. test ! -s conftest.err
  7002. } && test -s conftest.$ac_objext; then
  7003. ac_cv_header_stdc=yes
  7004. else
  7005. echo "$as_me: failed program was:" >&5
  7006. sed 's/^/| /' conftest.$ac_ext >&5
  7007. ac_cv_header_stdc=no
  7008. fi
  7009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7010. if test $ac_cv_header_stdc = yes; then
  7011. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7012. cat >conftest.$ac_ext <<_ACEOF
  7013. /* confdefs.h. */
  7014. _ACEOF
  7015. cat confdefs.h >>conftest.$ac_ext
  7016. cat >>conftest.$ac_ext <<_ACEOF
  7017. /* end confdefs.h. */
  7018. #include <string.h>
  7019. _ACEOF
  7020. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7021. $EGREP "memchr" >/dev/null 2>&1; then
  7022. :
  7023. else
  7024. ac_cv_header_stdc=no
  7025. fi
  7026. rm -f conftest*
  7027. fi
  7028. if test $ac_cv_header_stdc = yes; then
  7029. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7030. cat >conftest.$ac_ext <<_ACEOF
  7031. /* confdefs.h. */
  7032. _ACEOF
  7033. cat confdefs.h >>conftest.$ac_ext
  7034. cat >>conftest.$ac_ext <<_ACEOF
  7035. /* end confdefs.h. */
  7036. #include <stdlib.h>
  7037. _ACEOF
  7038. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7039. $EGREP "free" >/dev/null 2>&1; then
  7040. :
  7041. else
  7042. ac_cv_header_stdc=no
  7043. fi
  7044. rm -f conftest*
  7045. fi
  7046. if test $ac_cv_header_stdc = yes; then
  7047. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7048. if test "$cross_compiling" = yes; then
  7049. :
  7050. else
  7051. cat >conftest.$ac_ext <<_ACEOF
  7052. /* confdefs.h. */
  7053. _ACEOF
  7054. cat confdefs.h >>conftest.$ac_ext
  7055. cat >>conftest.$ac_ext <<_ACEOF
  7056. /* end confdefs.h. */
  7057. #include <ctype.h>
  7058. #include <stdlib.h>
  7059. #if ((' ' & 0x0FF) == 0x020)
  7060. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7061. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7062. #else
  7063. # define ISLOWER(c) \
  7064. (('a' <= (c) && (c) <= 'i') \
  7065. || ('j' <= (c) && (c) <= 'r') \
  7066. || ('s' <= (c) && (c) <= 'z'))
  7067. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7068. #endif
  7069. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7070. int
  7071. main ()
  7072. {
  7073. int i;
  7074. for (i = 0; i < 256; i++)
  7075. if (XOR (islower (i), ISLOWER (i))
  7076. || toupper (i) != TOUPPER (i))
  7077. return 2;
  7078. return 0;
  7079. }
  7080. _ACEOF
  7081. rm -f conftest$ac_exeext
  7082. if { (ac_try="$ac_link"
  7083. case "(($ac_try" in
  7084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7085. *) ac_try_echo=$ac_try;;
  7086. esac
  7087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7088. (eval "$ac_link") 2>&5
  7089. ac_status=$?
  7090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7091. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7092. { (case "(($ac_try" in
  7093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7094. *) ac_try_echo=$ac_try;;
  7095. esac
  7096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7097. (eval "$ac_try") 2>&5
  7098. ac_status=$?
  7099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7100. (exit $ac_status); }; }; then
  7101. :
  7102. else
  7103. echo "$as_me: program exited with status $ac_status" >&5
  7104. echo "$as_me: failed program was:" >&5
  7105. sed 's/^/| /' conftest.$ac_ext >&5
  7106. ( exit $ac_status )
  7107. ac_cv_header_stdc=no
  7108. fi
  7109. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7110. fi
  7111. fi
  7112. fi
  7113. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7114. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7115. if test $ac_cv_header_stdc = yes; then
  7116. cat >>confdefs.h <<\_ACEOF
  7117. #define STDC_HEADERS 1
  7118. _ACEOF
  7119. fi
  7120. case "$target" in
  7121. *mingw*)
  7122. for ac_header in winsock2.h \
  7123. ws2tcpip.h
  7124. do
  7125. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7126. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7127. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7128. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7129. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7130. echo $ECHO_N "(cached) $ECHO_C" >&6
  7131. fi
  7132. ac_res=`eval echo '${'$as_ac_Header'}'`
  7133. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7134. echo "${ECHO_T}$ac_res" >&6; }
  7135. else
  7136. # Is the header compilable?
  7137. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7138. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7139. cat >conftest.$ac_ext <<_ACEOF
  7140. /* confdefs.h. */
  7141. _ACEOF
  7142. cat confdefs.h >>conftest.$ac_ext
  7143. cat >>conftest.$ac_ext <<_ACEOF
  7144. /* end confdefs.h. */
  7145. $ac_includes_default
  7146. #include <$ac_header>
  7147. _ACEOF
  7148. rm -f conftest.$ac_objext
  7149. if { (ac_try="$ac_compile"
  7150. case "(($ac_try" in
  7151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7152. *) ac_try_echo=$ac_try;;
  7153. esac
  7154. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7155. (eval "$ac_compile") 2>conftest.er1
  7156. ac_status=$?
  7157. grep -v '^ *+' conftest.er1 >conftest.err
  7158. rm -f conftest.er1
  7159. cat conftest.err >&5
  7160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7161. (exit $ac_status); } && {
  7162. test -z "$ac_cxx_werror_flag" ||
  7163. test ! -s conftest.err
  7164. } && test -s conftest.$ac_objext; then
  7165. ac_header_compiler=yes
  7166. else
  7167. echo "$as_me: failed program was:" >&5
  7168. sed 's/^/| /' conftest.$ac_ext >&5
  7169. ac_header_compiler=no
  7170. fi
  7171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7172. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7173. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7174. # Is the header present?
  7175. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7176. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7177. cat >conftest.$ac_ext <<_ACEOF
  7178. /* confdefs.h. */
  7179. _ACEOF
  7180. cat confdefs.h >>conftest.$ac_ext
  7181. cat >>conftest.$ac_ext <<_ACEOF
  7182. /* end confdefs.h. */
  7183. #include <$ac_header>
  7184. _ACEOF
  7185. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7186. case "(($ac_try" in
  7187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7188. *) ac_try_echo=$ac_try;;
  7189. esac
  7190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7191. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7192. ac_status=$?
  7193. grep -v '^ *+' conftest.er1 >conftest.err
  7194. rm -f conftest.er1
  7195. cat conftest.err >&5
  7196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7197. (exit $ac_status); } >/dev/null && {
  7198. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7199. test ! -s conftest.err
  7200. }; then
  7201. ac_header_preproc=yes
  7202. else
  7203. echo "$as_me: failed program was:" >&5
  7204. sed 's/^/| /' conftest.$ac_ext >&5
  7205. ac_header_preproc=no
  7206. fi
  7207. rm -f conftest.err conftest.$ac_ext
  7208. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7209. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7210. # So? What about this header?
  7211. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7212. yes:no: )
  7213. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7214. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7215. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7216. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7217. ac_header_preproc=yes
  7218. ;;
  7219. no:yes:* )
  7220. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7221. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7222. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7223. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7224. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7225. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7226. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7227. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7228. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7229. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7230. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7231. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7232. ( cat <<\_ASBOX
  7233. ## ----------------------------------------------- ##
  7234. ## Report this to t-tujikawa@users.sourceforge.net ##
  7235. ## ----------------------------------------------- ##
  7236. _ASBOX
  7237. ) | sed "s/^/$as_me: WARNING: /" >&2
  7238. ;;
  7239. esac
  7240. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7241. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7242. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7243. echo $ECHO_N "(cached) $ECHO_C" >&6
  7244. else
  7245. eval "$as_ac_Header=\$ac_header_preproc"
  7246. fi
  7247. ac_res=`eval echo '${'$as_ac_Header'}'`
  7248. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7249. echo "${ECHO_T}$ac_res" >&6; }
  7250. fi
  7251. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7252. cat >>confdefs.h <<_ACEOF
  7253. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7254. _ACEOF
  7255. fi
  7256. done
  7257. ;;
  7258. esac
  7259. for ac_header in argz.h \
  7260. arpa/inet.h \
  7261. fcntl.h \
  7262. float.h \
  7263. inttypes.h \
  7264. io.h \
  7265. langinfo.h \
  7266. libintl.h \
  7267. limits.h \
  7268. locale.h \
  7269. malloc.h \
  7270. netdb.h \
  7271. netinet/in.h \
  7272. stddef.h \
  7273. stdint.h \
  7274. stdio_ext.h \
  7275. stdlib.h \
  7276. string.h \
  7277. strings.h \
  7278. sys/ioctl.h \
  7279. sys/param.h \
  7280. sys/socket.h \
  7281. sys/time.h \
  7282. termios.h \
  7283. unistd.h \
  7284. wchar.h
  7285. do
  7286. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7287. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7288. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7289. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7290. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7291. echo $ECHO_N "(cached) $ECHO_C" >&6
  7292. fi
  7293. ac_res=`eval echo '${'$as_ac_Header'}'`
  7294. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7295. echo "${ECHO_T}$ac_res" >&6; }
  7296. else
  7297. # Is the header compilable?
  7298. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7299. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7300. cat >conftest.$ac_ext <<_ACEOF
  7301. /* confdefs.h. */
  7302. _ACEOF
  7303. cat confdefs.h >>conftest.$ac_ext
  7304. cat >>conftest.$ac_ext <<_ACEOF
  7305. /* end confdefs.h. */
  7306. $ac_includes_default
  7307. #include <$ac_header>
  7308. _ACEOF
  7309. rm -f conftest.$ac_objext
  7310. if { (ac_try="$ac_compile"
  7311. case "(($ac_try" in
  7312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7313. *) ac_try_echo=$ac_try;;
  7314. esac
  7315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7316. (eval "$ac_compile") 2>conftest.er1
  7317. ac_status=$?
  7318. grep -v '^ *+' conftest.er1 >conftest.err
  7319. rm -f conftest.er1
  7320. cat conftest.err >&5
  7321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7322. (exit $ac_status); } && {
  7323. test -z "$ac_cxx_werror_flag" ||
  7324. test ! -s conftest.err
  7325. } && test -s conftest.$ac_objext; then
  7326. ac_header_compiler=yes
  7327. else
  7328. echo "$as_me: failed program was:" >&5
  7329. sed 's/^/| /' conftest.$ac_ext >&5
  7330. ac_header_compiler=no
  7331. fi
  7332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7333. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7334. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7335. # Is the header present?
  7336. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7337. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7338. cat >conftest.$ac_ext <<_ACEOF
  7339. /* confdefs.h. */
  7340. _ACEOF
  7341. cat confdefs.h >>conftest.$ac_ext
  7342. cat >>conftest.$ac_ext <<_ACEOF
  7343. /* end confdefs.h. */
  7344. #include <$ac_header>
  7345. _ACEOF
  7346. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7347. case "(($ac_try" in
  7348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7349. *) ac_try_echo=$ac_try;;
  7350. esac
  7351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7352. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7353. ac_status=$?
  7354. grep -v '^ *+' conftest.er1 >conftest.err
  7355. rm -f conftest.er1
  7356. cat conftest.err >&5
  7357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. (exit $ac_status); } >/dev/null && {
  7359. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7360. test ! -s conftest.err
  7361. }; then
  7362. ac_header_preproc=yes
  7363. else
  7364. echo "$as_me: failed program was:" >&5
  7365. sed 's/^/| /' conftest.$ac_ext >&5
  7366. ac_header_preproc=no
  7367. fi
  7368. rm -f conftest.err conftest.$ac_ext
  7369. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7370. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7371. # So? What about this header?
  7372. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7373. yes:no: )
  7374. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7375. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7376. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7377. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7378. ac_header_preproc=yes
  7379. ;;
  7380. no:yes:* )
  7381. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7382. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7383. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7384. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7385. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7386. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7387. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7388. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7389. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7390. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7391. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7392. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7393. ( cat <<\_ASBOX
  7394. ## ----------------------------------------------- ##
  7395. ## Report this to t-tujikawa@users.sourceforge.net ##
  7396. ## ----------------------------------------------- ##
  7397. _ASBOX
  7398. ) | sed "s/^/$as_me: WARNING: /" >&2
  7399. ;;
  7400. esac
  7401. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7402. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7403. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7404. echo $ECHO_N "(cached) $ECHO_C" >&6
  7405. else
  7406. eval "$as_ac_Header=\$ac_header_preproc"
  7407. fi
  7408. ac_res=`eval echo '${'$as_ac_Header'}'`
  7409. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7410. echo "${ECHO_T}$ac_res" >&6; }
  7411. fi
  7412. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7413. cat >>confdefs.h <<_ACEOF
  7414. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7415. _ACEOF
  7416. fi
  7417. done
  7418. # Checks for typedefs, structures, and compiler characteristics.
  7419. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7420. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7421. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7422. echo $ECHO_N "(cached) $ECHO_C" >&6
  7423. else
  7424. cat >conftest.$ac_ext <<_ACEOF
  7425. /* confdefs.h. */
  7426. _ACEOF
  7427. cat confdefs.h >>conftest.$ac_ext
  7428. cat >>conftest.$ac_ext <<_ACEOF
  7429. /* end confdefs.h. */
  7430. #include <stdbool.h>
  7431. #ifndef bool
  7432. "error: bool is not defined"
  7433. #endif
  7434. #ifndef false
  7435. "error: false is not defined"
  7436. #endif
  7437. #if false
  7438. "error: false is not 0"
  7439. #endif
  7440. #ifndef true
  7441. "error: true is not defined"
  7442. #endif
  7443. #if true != 1
  7444. "error: true is not 1"
  7445. #endif
  7446. #ifndef __bool_true_false_are_defined
  7447. "error: __bool_true_false_are_defined is not defined"
  7448. #endif
  7449. struct s { _Bool s: 1; _Bool t; } s;
  7450. char a[true == 1 ? 1 : -1];
  7451. char b[false == 0 ? 1 : -1];
  7452. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7453. char d[(bool) 0.5 == true ? 1 : -1];
  7454. bool e = &s;
  7455. char f[(_Bool) 0.0 == false ? 1 : -1];
  7456. char g[true];
  7457. char h[sizeof (_Bool)];
  7458. char i[sizeof s.t];
  7459. enum { j = false, k = true, l = false * true, m = true * 256 };
  7460. _Bool n[m];
  7461. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7462. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7463. # if defined __xlc__ || defined __GNUC__
  7464. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7465. reported by James Lemley on 2005-10-05; see
  7466. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7467. This test is not quite right, since xlc is allowed to
  7468. reject this program, as the initializer for xlcbug is
  7469. not one of the forms that C requires support for.
  7470. However, doing the test right would require a runtime
  7471. test, and that would make cross-compilation harder.
  7472. Let us hope that IBM fixes the xlc bug, and also adds
  7473. support for this kind of constant expression. In the
  7474. meantime, this test will reject xlc, which is OK, since
  7475. our stdbool.h substitute should suffice. We also test
  7476. this with GCC, where it should work, to detect more
  7477. quickly whether someone messes up the test in the
  7478. future. */
  7479. char digs[] = "0123456789";
  7480. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7481. # endif
  7482. /* Catch a bug in an HP-UX C compiler. See
  7483. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7484. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7485. */
  7486. _Bool q = true;
  7487. _Bool *pq = &q;
  7488. int
  7489. main ()
  7490. {
  7491. *pq |= q;
  7492. *pq |= ! q;
  7493. /* Refer to every declared value, to avoid compiler optimizations. */
  7494. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7495. + !m + !n + !o + !p + !q + !pq);
  7496. ;
  7497. return 0;
  7498. }
  7499. _ACEOF
  7500. rm -f conftest.$ac_objext
  7501. if { (ac_try="$ac_compile"
  7502. case "(($ac_try" in
  7503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7504. *) ac_try_echo=$ac_try;;
  7505. esac
  7506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7507. (eval "$ac_compile") 2>conftest.er1
  7508. ac_status=$?
  7509. grep -v '^ *+' conftest.er1 >conftest.err
  7510. rm -f conftest.er1
  7511. cat conftest.err >&5
  7512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7513. (exit $ac_status); } && {
  7514. test -z "$ac_cxx_werror_flag" ||
  7515. test ! -s conftest.err
  7516. } && test -s conftest.$ac_objext; then
  7517. ac_cv_header_stdbool_h=yes
  7518. else
  7519. echo "$as_me: failed program was:" >&5
  7520. sed 's/^/| /' conftest.$ac_ext >&5
  7521. ac_cv_header_stdbool_h=no
  7522. fi
  7523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7524. fi
  7525. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7526. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7527. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7528. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7529. if test "${ac_cv_type__Bool+set}" = set; then
  7530. echo $ECHO_N "(cached) $ECHO_C" >&6
  7531. else
  7532. cat >conftest.$ac_ext <<_ACEOF
  7533. /* confdefs.h. */
  7534. _ACEOF
  7535. cat confdefs.h >>conftest.$ac_ext
  7536. cat >>conftest.$ac_ext <<_ACEOF
  7537. /* end confdefs.h. */
  7538. $ac_includes_default
  7539. typedef _Bool ac__type_new_;
  7540. int
  7541. main ()
  7542. {
  7543. if ((ac__type_new_ *) 0)
  7544. return 0;
  7545. if (sizeof (ac__type_new_))
  7546. return 0;
  7547. ;
  7548. return 0;
  7549. }
  7550. _ACEOF
  7551. rm -f conftest.$ac_objext
  7552. if { (ac_try="$ac_compile"
  7553. case "(($ac_try" in
  7554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7555. *) ac_try_echo=$ac_try;;
  7556. esac
  7557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7558. (eval "$ac_compile") 2>conftest.er1
  7559. ac_status=$?
  7560. grep -v '^ *+' conftest.er1 >conftest.err
  7561. rm -f conftest.er1
  7562. cat conftest.err >&5
  7563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7564. (exit $ac_status); } && {
  7565. test -z "$ac_cxx_werror_flag" ||
  7566. test ! -s conftest.err
  7567. } && test -s conftest.$ac_objext; then
  7568. ac_cv_type__Bool=yes
  7569. else
  7570. echo "$as_me: failed program was:" >&5
  7571. sed 's/^/| /' conftest.$ac_ext >&5
  7572. ac_cv_type__Bool=no
  7573. fi
  7574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7575. fi
  7576. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7577. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7578. if test $ac_cv_type__Bool = yes; then
  7579. cat >>confdefs.h <<_ACEOF
  7580. #define HAVE__BOOL 1
  7581. _ACEOF
  7582. fi
  7583. if test $ac_cv_header_stdbool_h = yes; then
  7584. cat >>confdefs.h <<\_ACEOF
  7585. #define HAVE_STDBOOL_H 1
  7586. _ACEOF
  7587. fi
  7588. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7589. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7590. if test "${ac_cv_c_const+set}" = set; then
  7591. echo $ECHO_N "(cached) $ECHO_C" >&6
  7592. else
  7593. cat >conftest.$ac_ext <<_ACEOF
  7594. /* confdefs.h. */
  7595. _ACEOF
  7596. cat confdefs.h >>conftest.$ac_ext
  7597. cat >>conftest.$ac_ext <<_ACEOF
  7598. /* end confdefs.h. */
  7599. int
  7600. main ()
  7601. {
  7602. /* FIXME: Include the comments suggested by Paul. */
  7603. #ifndef __cplusplus
  7604. /* Ultrix mips cc rejects this. */
  7605. typedef int charset[2];
  7606. const charset cs;
  7607. /* SunOS 4.1.1 cc rejects this. */
  7608. char const *const *pcpcc;
  7609. char **ppc;
  7610. /* NEC SVR4.0.2 mips cc rejects this. */
  7611. struct point {int x, y;};
  7612. static struct point const zero = {0,0};
  7613. /* AIX XL C 1.02.0.0 rejects this.
  7614. It does not let you subtract one const X* pointer from another in
  7615. an arm of an if-expression whose if-part is not a constant
  7616. expression */
  7617. const char *g = "string";
  7618. pcpcc = &g + (g ? g-g : 0);
  7619. /* HPUX 7.0 cc rejects these. */
  7620. ++pcpcc;
  7621. ppc = (char**) pcpcc;
  7622. pcpcc = (char const *const *) ppc;
  7623. { /* SCO 3.2v4 cc rejects this. */
  7624. char *t;
  7625. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7626. *t++ = 0;
  7627. if (s) return 0;
  7628. }
  7629. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7630. int x[] = {25, 17};
  7631. const int *foo = &x[0];
  7632. ++foo;
  7633. }
  7634. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7635. typedef const int *iptr;
  7636. iptr p = 0;
  7637. ++p;
  7638. }
  7639. { /* AIX XL C 1.02.0.0 rejects this saying
  7640. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7641. struct s { int j; const int *ap[3]; };
  7642. struct s *b; b->j = 5;
  7643. }
  7644. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7645. const int foo = 10;
  7646. if (!foo) return 0;
  7647. }
  7648. return !cs[0] && !zero.x;
  7649. #endif
  7650. ;
  7651. return 0;
  7652. }
  7653. _ACEOF
  7654. rm -f conftest.$ac_objext
  7655. if { (ac_try="$ac_compile"
  7656. case "(($ac_try" in
  7657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7658. *) ac_try_echo=$ac_try;;
  7659. esac
  7660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7661. (eval "$ac_compile") 2>conftest.er1
  7662. ac_status=$?
  7663. grep -v '^ *+' conftest.er1 >conftest.err
  7664. rm -f conftest.er1
  7665. cat conftest.err >&5
  7666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7667. (exit $ac_status); } && {
  7668. test -z "$ac_cxx_werror_flag" ||
  7669. test ! -s conftest.err
  7670. } && test -s conftest.$ac_objext; then
  7671. ac_cv_c_const=yes
  7672. else
  7673. echo "$as_me: failed program was:" >&5
  7674. sed 's/^/| /' conftest.$ac_ext >&5
  7675. ac_cv_c_const=no
  7676. fi
  7677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7678. fi
  7679. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7680. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7681. if test $ac_cv_c_const = no; then
  7682. cat >>confdefs.h <<\_ACEOF
  7683. #define const
  7684. _ACEOF
  7685. fi
  7686. { echo "$as_me:$LINENO: checking for inline" >&5
  7687. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7688. if test "${ac_cv_c_inline+set}" = set; then
  7689. echo $ECHO_N "(cached) $ECHO_C" >&6
  7690. else
  7691. ac_cv_c_inline=no
  7692. for ac_kw in inline __inline__ __inline; do
  7693. cat >conftest.$ac_ext <<_ACEOF
  7694. /* confdefs.h. */
  7695. _ACEOF
  7696. cat confdefs.h >>conftest.$ac_ext
  7697. cat >>conftest.$ac_ext <<_ACEOF
  7698. /* end confdefs.h. */
  7699. #ifndef __cplusplus
  7700. typedef int foo_t;
  7701. static $ac_kw foo_t static_foo () {return 0; }
  7702. $ac_kw foo_t foo () {return 0; }
  7703. #endif
  7704. _ACEOF
  7705. rm -f conftest.$ac_objext
  7706. if { (ac_try="$ac_compile"
  7707. case "(($ac_try" in
  7708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7709. *) ac_try_echo=$ac_try;;
  7710. esac
  7711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7712. (eval "$ac_compile") 2>conftest.er1
  7713. ac_status=$?
  7714. grep -v '^ *+' conftest.er1 >conftest.err
  7715. rm -f conftest.er1
  7716. cat conftest.err >&5
  7717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7718. (exit $ac_status); } && {
  7719. test -z "$ac_cxx_werror_flag" ||
  7720. test ! -s conftest.err
  7721. } && test -s conftest.$ac_objext; then
  7722. ac_cv_c_inline=$ac_kw
  7723. else
  7724. echo "$as_me: failed program was:" >&5
  7725. sed 's/^/| /' conftest.$ac_ext >&5
  7726. fi
  7727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7728. test "$ac_cv_c_inline" != no && break
  7729. done
  7730. fi
  7731. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7732. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7733. case $ac_cv_c_inline in
  7734. inline | yes) ;;
  7735. *)
  7736. case $ac_cv_c_inline in
  7737. no) ac_val=;;
  7738. *) ac_val=$ac_cv_c_inline;;
  7739. esac
  7740. cat >>confdefs.h <<_ACEOF
  7741. #ifndef __cplusplus
  7742. #define inline $ac_val
  7743. #endif
  7744. _ACEOF
  7745. ;;
  7746. esac
  7747. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7748. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7749. if test "${ac_cv_c_int16_t+set}" = set; then
  7750. echo $ECHO_N "(cached) $ECHO_C" >&6
  7751. else
  7752. ac_cv_c_int16_t=no
  7753. for ac_type in 'int16_t' 'int' 'long int' \
  7754. 'long long int' 'short int' 'signed char'; do
  7755. cat >conftest.$ac_ext <<_ACEOF
  7756. /* confdefs.h. */
  7757. _ACEOF
  7758. cat confdefs.h >>conftest.$ac_ext
  7759. cat >>conftest.$ac_ext <<_ACEOF
  7760. /* end confdefs.h. */
  7761. $ac_includes_default
  7762. int
  7763. main ()
  7764. {
  7765. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7766. test_array [0] = 0
  7767. ;
  7768. return 0;
  7769. }
  7770. _ACEOF
  7771. rm -f conftest.$ac_objext
  7772. if { (ac_try="$ac_compile"
  7773. case "(($ac_try" in
  7774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7775. *) ac_try_echo=$ac_try;;
  7776. esac
  7777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7778. (eval "$ac_compile") 2>conftest.er1
  7779. ac_status=$?
  7780. grep -v '^ *+' conftest.er1 >conftest.err
  7781. rm -f conftest.er1
  7782. cat conftest.err >&5
  7783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7784. (exit $ac_status); } && {
  7785. test -z "$ac_cxx_werror_flag" ||
  7786. test ! -s conftest.err
  7787. } && test -s conftest.$ac_objext; then
  7788. cat >conftest.$ac_ext <<_ACEOF
  7789. /* confdefs.h. */
  7790. _ACEOF
  7791. cat confdefs.h >>conftest.$ac_ext
  7792. cat >>conftest.$ac_ext <<_ACEOF
  7793. /* end confdefs.h. */
  7794. $ac_includes_default
  7795. int
  7796. main ()
  7797. {
  7798. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7799. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7800. test_array [0] = 0
  7801. ;
  7802. return 0;
  7803. }
  7804. _ACEOF
  7805. rm -f conftest.$ac_objext
  7806. if { (ac_try="$ac_compile"
  7807. case "(($ac_try" in
  7808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7809. *) ac_try_echo=$ac_try;;
  7810. esac
  7811. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7812. (eval "$ac_compile") 2>conftest.er1
  7813. ac_status=$?
  7814. grep -v '^ *+' conftest.er1 >conftest.err
  7815. rm -f conftest.er1
  7816. cat conftest.err >&5
  7817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7818. (exit $ac_status); } && {
  7819. test -z "$ac_cxx_werror_flag" ||
  7820. test ! -s conftest.err
  7821. } && test -s conftest.$ac_objext; then
  7822. :
  7823. else
  7824. echo "$as_me: failed program was:" >&5
  7825. sed 's/^/| /' conftest.$ac_ext >&5
  7826. case $ac_type in
  7827. int16_t) ac_cv_c_int16_t=yes ;;
  7828. *) ac_cv_c_int16_t=$ac_type ;;
  7829. esac
  7830. fi
  7831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7832. else
  7833. echo "$as_me: failed program was:" >&5
  7834. sed 's/^/| /' conftest.$ac_ext >&5
  7835. fi
  7836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7837. test "$ac_cv_c_int16_t" != no && break
  7838. done
  7839. fi
  7840. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7841. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7842. case $ac_cv_c_int16_t in #(
  7843. no|yes) ;; #(
  7844. *)
  7845. cat >>confdefs.h <<_ACEOF
  7846. #define int16_t $ac_cv_c_int16_t
  7847. _ACEOF
  7848. ;;
  7849. esac
  7850. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7851. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7852. if test "${ac_cv_c_int32_t+set}" = set; then
  7853. echo $ECHO_N "(cached) $ECHO_C" >&6
  7854. else
  7855. ac_cv_c_int32_t=no
  7856. for ac_type in 'int32_t' 'int' 'long int' \
  7857. 'long long int' 'short int' 'signed char'; do
  7858. cat >conftest.$ac_ext <<_ACEOF
  7859. /* confdefs.h. */
  7860. _ACEOF
  7861. cat confdefs.h >>conftest.$ac_ext
  7862. cat >>conftest.$ac_ext <<_ACEOF
  7863. /* end confdefs.h. */
  7864. $ac_includes_default
  7865. int
  7866. main ()
  7867. {
  7868. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7869. test_array [0] = 0
  7870. ;
  7871. return 0;
  7872. }
  7873. _ACEOF
  7874. rm -f conftest.$ac_objext
  7875. if { (ac_try="$ac_compile"
  7876. case "(($ac_try" in
  7877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7878. *) ac_try_echo=$ac_try;;
  7879. esac
  7880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7881. (eval "$ac_compile") 2>conftest.er1
  7882. ac_status=$?
  7883. grep -v '^ *+' conftest.er1 >conftest.err
  7884. rm -f conftest.er1
  7885. cat conftest.err >&5
  7886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7887. (exit $ac_status); } && {
  7888. test -z "$ac_cxx_werror_flag" ||
  7889. test ! -s conftest.err
  7890. } && test -s conftest.$ac_objext; then
  7891. cat >conftest.$ac_ext <<_ACEOF
  7892. /* confdefs.h. */
  7893. _ACEOF
  7894. cat confdefs.h >>conftest.$ac_ext
  7895. cat >>conftest.$ac_ext <<_ACEOF
  7896. /* end confdefs.h. */
  7897. $ac_includes_default
  7898. int
  7899. main ()
  7900. {
  7901. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7902. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7903. test_array [0] = 0
  7904. ;
  7905. return 0;
  7906. }
  7907. _ACEOF
  7908. rm -f conftest.$ac_objext
  7909. if { (ac_try="$ac_compile"
  7910. case "(($ac_try" in
  7911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7912. *) ac_try_echo=$ac_try;;
  7913. esac
  7914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7915. (eval "$ac_compile") 2>conftest.er1
  7916. ac_status=$?
  7917. grep -v '^ *+' conftest.er1 >conftest.err
  7918. rm -f conftest.er1
  7919. cat conftest.err >&5
  7920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7921. (exit $ac_status); } && {
  7922. test -z "$ac_cxx_werror_flag" ||
  7923. test ! -s conftest.err
  7924. } && test -s conftest.$ac_objext; then
  7925. :
  7926. else
  7927. echo "$as_me: failed program was:" >&5
  7928. sed 's/^/| /' conftest.$ac_ext >&5
  7929. case $ac_type in
  7930. int32_t) ac_cv_c_int32_t=yes ;;
  7931. *) ac_cv_c_int32_t=$ac_type ;;
  7932. esac
  7933. fi
  7934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7935. else
  7936. echo "$as_me: failed program was:" >&5
  7937. sed 's/^/| /' conftest.$ac_ext >&5
  7938. fi
  7939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7940. test "$ac_cv_c_int32_t" != no && break
  7941. done
  7942. fi
  7943. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7944. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7945. case $ac_cv_c_int32_t in #(
  7946. no|yes) ;; #(
  7947. *)
  7948. cat >>confdefs.h <<_ACEOF
  7949. #define int32_t $ac_cv_c_int32_t
  7950. _ACEOF
  7951. ;;
  7952. esac
  7953. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7954. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7955. if test "${ac_cv_c_int64_t+set}" = set; then
  7956. echo $ECHO_N "(cached) $ECHO_C" >&6
  7957. else
  7958. ac_cv_c_int64_t=no
  7959. for ac_type in 'int64_t' 'int' 'long int' \
  7960. 'long long int' 'short int' 'signed char'; do
  7961. cat >conftest.$ac_ext <<_ACEOF
  7962. /* confdefs.h. */
  7963. _ACEOF
  7964. cat confdefs.h >>conftest.$ac_ext
  7965. cat >>conftest.$ac_ext <<_ACEOF
  7966. /* end confdefs.h. */
  7967. $ac_includes_default
  7968. int
  7969. main ()
  7970. {
  7971. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7972. test_array [0] = 0
  7973. ;
  7974. return 0;
  7975. }
  7976. _ACEOF
  7977. rm -f conftest.$ac_objext
  7978. if { (ac_try="$ac_compile"
  7979. case "(($ac_try" in
  7980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7981. *) ac_try_echo=$ac_try;;
  7982. esac
  7983. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7984. (eval "$ac_compile") 2>conftest.er1
  7985. ac_status=$?
  7986. grep -v '^ *+' conftest.er1 >conftest.err
  7987. rm -f conftest.er1
  7988. cat conftest.err >&5
  7989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7990. (exit $ac_status); } && {
  7991. test -z "$ac_cxx_werror_flag" ||
  7992. test ! -s conftest.err
  7993. } && test -s conftest.$ac_objext; then
  7994. cat >conftest.$ac_ext <<_ACEOF
  7995. /* confdefs.h. */
  7996. _ACEOF
  7997. cat confdefs.h >>conftest.$ac_ext
  7998. cat >>conftest.$ac_ext <<_ACEOF
  7999. /* end confdefs.h. */
  8000. $ac_includes_default
  8001. int
  8002. main ()
  8003. {
  8004. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8005. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8006. test_array [0] = 0
  8007. ;
  8008. return 0;
  8009. }
  8010. _ACEOF
  8011. rm -f conftest.$ac_objext
  8012. if { (ac_try="$ac_compile"
  8013. case "(($ac_try" in
  8014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8015. *) ac_try_echo=$ac_try;;
  8016. esac
  8017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8018. (eval "$ac_compile") 2>conftest.er1
  8019. ac_status=$?
  8020. grep -v '^ *+' conftest.er1 >conftest.err
  8021. rm -f conftest.er1
  8022. cat conftest.err >&5
  8023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8024. (exit $ac_status); } && {
  8025. test -z "$ac_cxx_werror_flag" ||
  8026. test ! -s conftest.err
  8027. } && test -s conftest.$ac_objext; then
  8028. :
  8029. else
  8030. echo "$as_me: failed program was:" >&5
  8031. sed 's/^/| /' conftest.$ac_ext >&5
  8032. case $ac_type in
  8033. int64_t) ac_cv_c_int64_t=yes ;;
  8034. *) ac_cv_c_int64_t=$ac_type ;;
  8035. esac
  8036. fi
  8037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8038. else
  8039. echo "$as_me: failed program was:" >&5
  8040. sed 's/^/| /' conftest.$ac_ext >&5
  8041. fi
  8042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8043. test "$ac_cv_c_int64_t" != no && break
  8044. done
  8045. fi
  8046. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8047. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  8048. case $ac_cv_c_int64_t in #(
  8049. no|yes) ;; #(
  8050. *)
  8051. cat >>confdefs.h <<_ACEOF
  8052. #define int64_t $ac_cv_c_int64_t
  8053. _ACEOF
  8054. ;;
  8055. esac
  8056. { echo "$as_me:$LINENO: checking for int8_t" >&5
  8057. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  8058. if test "${ac_cv_c_int8_t+set}" = set; then
  8059. echo $ECHO_N "(cached) $ECHO_C" >&6
  8060. else
  8061. ac_cv_c_int8_t=no
  8062. for ac_type in 'int8_t' 'int' 'long int' \
  8063. 'long long int' 'short int' 'signed char'; do
  8064. cat >conftest.$ac_ext <<_ACEOF
  8065. /* confdefs.h. */
  8066. _ACEOF
  8067. cat confdefs.h >>conftest.$ac_ext
  8068. cat >>conftest.$ac_ext <<_ACEOF
  8069. /* end confdefs.h. */
  8070. $ac_includes_default
  8071. int
  8072. main ()
  8073. {
  8074. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8075. test_array [0] = 0
  8076. ;
  8077. return 0;
  8078. }
  8079. _ACEOF
  8080. rm -f conftest.$ac_objext
  8081. if { (ac_try="$ac_compile"
  8082. case "(($ac_try" in
  8083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8084. *) ac_try_echo=$ac_try;;
  8085. esac
  8086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8087. (eval "$ac_compile") 2>conftest.er1
  8088. ac_status=$?
  8089. grep -v '^ *+' conftest.er1 >conftest.err
  8090. rm -f conftest.er1
  8091. cat conftest.err >&5
  8092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8093. (exit $ac_status); } && {
  8094. test -z "$ac_cxx_werror_flag" ||
  8095. test ! -s conftest.err
  8096. } && test -s conftest.$ac_objext; then
  8097. cat >conftest.$ac_ext <<_ACEOF
  8098. /* confdefs.h. */
  8099. _ACEOF
  8100. cat confdefs.h >>conftest.$ac_ext
  8101. cat >>conftest.$ac_ext <<_ACEOF
  8102. /* end confdefs.h. */
  8103. $ac_includes_default
  8104. int
  8105. main ()
  8106. {
  8107. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8108. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8109. test_array [0] = 0
  8110. ;
  8111. return 0;
  8112. }
  8113. _ACEOF
  8114. rm -f conftest.$ac_objext
  8115. if { (ac_try="$ac_compile"
  8116. case "(($ac_try" in
  8117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8118. *) ac_try_echo=$ac_try;;
  8119. esac
  8120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8121. (eval "$ac_compile") 2>conftest.er1
  8122. ac_status=$?
  8123. grep -v '^ *+' conftest.er1 >conftest.err
  8124. rm -f conftest.er1
  8125. cat conftest.err >&5
  8126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8127. (exit $ac_status); } && {
  8128. test -z "$ac_cxx_werror_flag" ||
  8129. test ! -s conftest.err
  8130. } && test -s conftest.$ac_objext; then
  8131. :
  8132. else
  8133. echo "$as_me: failed program was:" >&5
  8134. sed 's/^/| /' conftest.$ac_ext >&5
  8135. case $ac_type in
  8136. int8_t) ac_cv_c_int8_t=yes ;;
  8137. *) ac_cv_c_int8_t=$ac_type ;;
  8138. esac
  8139. fi
  8140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8141. else
  8142. echo "$as_me: failed program was:" >&5
  8143. sed 's/^/| /' conftest.$ac_ext >&5
  8144. fi
  8145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8146. test "$ac_cv_c_int8_t" != no && break
  8147. done
  8148. fi
  8149. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8150. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  8151. case $ac_cv_c_int8_t in #(
  8152. no|yes) ;; #(
  8153. *)
  8154. cat >>confdefs.h <<_ACEOF
  8155. #define int8_t $ac_cv_c_int8_t
  8156. _ACEOF
  8157. ;;
  8158. esac
  8159. { echo "$as_me:$LINENO: checking for mode_t" >&5
  8160. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  8161. if test "${ac_cv_type_mode_t+set}" = set; then
  8162. echo $ECHO_N "(cached) $ECHO_C" >&6
  8163. else
  8164. cat >conftest.$ac_ext <<_ACEOF
  8165. /* confdefs.h. */
  8166. _ACEOF
  8167. cat confdefs.h >>conftest.$ac_ext
  8168. cat >>conftest.$ac_ext <<_ACEOF
  8169. /* end confdefs.h. */
  8170. $ac_includes_default
  8171. typedef mode_t ac__type_new_;
  8172. int
  8173. main ()
  8174. {
  8175. if ((ac__type_new_ *) 0)
  8176. return 0;
  8177. if (sizeof (ac__type_new_))
  8178. return 0;
  8179. ;
  8180. return 0;
  8181. }
  8182. _ACEOF
  8183. rm -f conftest.$ac_objext
  8184. if { (ac_try="$ac_compile"
  8185. case "(($ac_try" in
  8186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8187. *) ac_try_echo=$ac_try;;
  8188. esac
  8189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8190. (eval "$ac_compile") 2>conftest.er1
  8191. ac_status=$?
  8192. grep -v '^ *+' conftest.er1 >conftest.err
  8193. rm -f conftest.er1
  8194. cat conftest.err >&5
  8195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8196. (exit $ac_status); } && {
  8197. test -z "$ac_cxx_werror_flag" ||
  8198. test ! -s conftest.err
  8199. } && test -s conftest.$ac_objext; then
  8200. ac_cv_type_mode_t=yes
  8201. else
  8202. echo "$as_me: failed program was:" >&5
  8203. sed 's/^/| /' conftest.$ac_ext >&5
  8204. ac_cv_type_mode_t=no
  8205. fi
  8206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8207. fi
  8208. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8209. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  8210. if test $ac_cv_type_mode_t = yes; then
  8211. :
  8212. else
  8213. cat >>confdefs.h <<_ACEOF
  8214. #define mode_t int
  8215. _ACEOF
  8216. fi
  8217. { echo "$as_me:$LINENO: checking for off_t" >&5
  8218. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8219. if test "${ac_cv_type_off_t+set}" = set; then
  8220. echo $ECHO_N "(cached) $ECHO_C" >&6
  8221. else
  8222. cat >conftest.$ac_ext <<_ACEOF
  8223. /* confdefs.h. */
  8224. _ACEOF
  8225. cat confdefs.h >>conftest.$ac_ext
  8226. cat >>conftest.$ac_ext <<_ACEOF
  8227. /* end confdefs.h. */
  8228. $ac_includes_default
  8229. typedef off_t ac__type_new_;
  8230. int
  8231. main ()
  8232. {
  8233. if ((ac__type_new_ *) 0)
  8234. return 0;
  8235. if (sizeof (ac__type_new_))
  8236. return 0;
  8237. ;
  8238. return 0;
  8239. }
  8240. _ACEOF
  8241. rm -f conftest.$ac_objext
  8242. if { (ac_try="$ac_compile"
  8243. case "(($ac_try" in
  8244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8245. *) ac_try_echo=$ac_try;;
  8246. esac
  8247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8248. (eval "$ac_compile") 2>conftest.er1
  8249. ac_status=$?
  8250. grep -v '^ *+' conftest.er1 >conftest.err
  8251. rm -f conftest.er1
  8252. cat conftest.err >&5
  8253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8254. (exit $ac_status); } && {
  8255. test -z "$ac_cxx_werror_flag" ||
  8256. test ! -s conftest.err
  8257. } && test -s conftest.$ac_objext; then
  8258. ac_cv_type_off_t=yes
  8259. else
  8260. echo "$as_me: failed program was:" >&5
  8261. sed 's/^/| /' conftest.$ac_ext >&5
  8262. ac_cv_type_off_t=no
  8263. fi
  8264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8265. fi
  8266. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8267. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8268. if test $ac_cv_type_off_t = yes; then
  8269. :
  8270. else
  8271. cat >>confdefs.h <<_ACEOF
  8272. #define off_t long int
  8273. _ACEOF
  8274. fi
  8275. { echo "$as_me:$LINENO: checking for size_t" >&5
  8276. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8277. if test "${ac_cv_type_size_t+set}" = set; then
  8278. echo $ECHO_N "(cached) $ECHO_C" >&6
  8279. else
  8280. cat >conftest.$ac_ext <<_ACEOF
  8281. /* confdefs.h. */
  8282. _ACEOF
  8283. cat confdefs.h >>conftest.$ac_ext
  8284. cat >>conftest.$ac_ext <<_ACEOF
  8285. /* end confdefs.h. */
  8286. $ac_includes_default
  8287. typedef size_t ac__type_new_;
  8288. int
  8289. main ()
  8290. {
  8291. if ((ac__type_new_ *) 0)
  8292. return 0;
  8293. if (sizeof (ac__type_new_))
  8294. return 0;
  8295. ;
  8296. return 0;
  8297. }
  8298. _ACEOF
  8299. rm -f conftest.$ac_objext
  8300. if { (ac_try="$ac_compile"
  8301. case "(($ac_try" in
  8302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8303. *) ac_try_echo=$ac_try;;
  8304. esac
  8305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8306. (eval "$ac_compile") 2>conftest.er1
  8307. ac_status=$?
  8308. grep -v '^ *+' conftest.er1 >conftest.err
  8309. rm -f conftest.er1
  8310. cat conftest.err >&5
  8311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8312. (exit $ac_status); } && {
  8313. test -z "$ac_cxx_werror_flag" ||
  8314. test ! -s conftest.err
  8315. } && test -s conftest.$ac_objext; then
  8316. ac_cv_type_size_t=yes
  8317. else
  8318. echo "$as_me: failed program was:" >&5
  8319. sed 's/^/| /' conftest.$ac_ext >&5
  8320. ac_cv_type_size_t=no
  8321. fi
  8322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8323. fi
  8324. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8325. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8326. if test $ac_cv_type_size_t = yes; then
  8327. :
  8328. else
  8329. cat >>confdefs.h <<_ACEOF
  8330. #define size_t unsigned int
  8331. _ACEOF
  8332. fi
  8333. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8334. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8335. if test "${ac_cv_type_ssize_t+set}" = set; then
  8336. echo $ECHO_N "(cached) $ECHO_C" >&6
  8337. else
  8338. cat >conftest.$ac_ext <<_ACEOF
  8339. /* confdefs.h. */
  8340. _ACEOF
  8341. cat confdefs.h >>conftest.$ac_ext
  8342. cat >>conftest.$ac_ext <<_ACEOF
  8343. /* end confdefs.h. */
  8344. $ac_includes_default
  8345. typedef ssize_t ac__type_new_;
  8346. int
  8347. main ()
  8348. {
  8349. if ((ac__type_new_ *) 0)
  8350. return 0;
  8351. if (sizeof (ac__type_new_))
  8352. return 0;
  8353. ;
  8354. return 0;
  8355. }
  8356. _ACEOF
  8357. rm -f conftest.$ac_objext
  8358. if { (ac_try="$ac_compile"
  8359. case "(($ac_try" in
  8360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8361. *) ac_try_echo=$ac_try;;
  8362. esac
  8363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8364. (eval "$ac_compile") 2>conftest.er1
  8365. ac_status=$?
  8366. grep -v '^ *+' conftest.er1 >conftest.err
  8367. rm -f conftest.er1
  8368. cat conftest.err >&5
  8369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8370. (exit $ac_status); } && {
  8371. test -z "$ac_cxx_werror_flag" ||
  8372. test ! -s conftest.err
  8373. } && test -s conftest.$ac_objext; then
  8374. ac_cv_type_ssize_t=yes
  8375. else
  8376. echo "$as_me: failed program was:" >&5
  8377. sed 's/^/| /' conftest.$ac_ext >&5
  8378. ac_cv_type_ssize_t=no
  8379. fi
  8380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8381. fi
  8382. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8383. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8384. if test $ac_cv_type_ssize_t = yes; then
  8385. :
  8386. else
  8387. cat >>confdefs.h <<_ACEOF
  8388. #define ssize_t int
  8389. _ACEOF
  8390. fi
  8391. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8392. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8393. if test "${ac_cv_header_time+set}" = set; then
  8394. echo $ECHO_N "(cached) $ECHO_C" >&6
  8395. else
  8396. cat >conftest.$ac_ext <<_ACEOF
  8397. /* confdefs.h. */
  8398. _ACEOF
  8399. cat confdefs.h >>conftest.$ac_ext
  8400. cat >>conftest.$ac_ext <<_ACEOF
  8401. /* end confdefs.h. */
  8402. #include <sys/types.h>
  8403. #include <sys/time.h>
  8404. #include <time.h>
  8405. int
  8406. main ()
  8407. {
  8408. if ((struct tm *) 0)
  8409. return 0;
  8410. ;
  8411. return 0;
  8412. }
  8413. _ACEOF
  8414. rm -f conftest.$ac_objext
  8415. if { (ac_try="$ac_compile"
  8416. case "(($ac_try" in
  8417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8418. *) ac_try_echo=$ac_try;;
  8419. esac
  8420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8421. (eval "$ac_compile") 2>conftest.er1
  8422. ac_status=$?
  8423. grep -v '^ *+' conftest.er1 >conftest.err
  8424. rm -f conftest.er1
  8425. cat conftest.err >&5
  8426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8427. (exit $ac_status); } && {
  8428. test -z "$ac_cxx_werror_flag" ||
  8429. test ! -s conftest.err
  8430. } && test -s conftest.$ac_objext; then
  8431. ac_cv_header_time=yes
  8432. else
  8433. echo "$as_me: failed program was:" >&5
  8434. sed 's/^/| /' conftest.$ac_ext >&5
  8435. ac_cv_header_time=no
  8436. fi
  8437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8438. fi
  8439. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8440. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8441. if test $ac_cv_header_time = yes; then
  8442. cat >>confdefs.h <<\_ACEOF
  8443. #define TIME_WITH_SYS_TIME 1
  8444. _ACEOF
  8445. fi
  8446. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8447. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8448. if test "${ac_cv_struct_tm+set}" = set; then
  8449. echo $ECHO_N "(cached) $ECHO_C" >&6
  8450. else
  8451. cat >conftest.$ac_ext <<_ACEOF
  8452. /* confdefs.h. */
  8453. _ACEOF
  8454. cat confdefs.h >>conftest.$ac_ext
  8455. cat >>conftest.$ac_ext <<_ACEOF
  8456. /* end confdefs.h. */
  8457. #include <sys/types.h>
  8458. #include <time.h>
  8459. int
  8460. main ()
  8461. {
  8462. struct tm tm;
  8463. int *p = &tm.tm_sec;
  8464. return !p;
  8465. ;
  8466. return 0;
  8467. }
  8468. _ACEOF
  8469. rm -f conftest.$ac_objext
  8470. if { (ac_try="$ac_compile"
  8471. case "(($ac_try" in
  8472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8473. *) ac_try_echo=$ac_try;;
  8474. esac
  8475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8476. (eval "$ac_compile") 2>conftest.er1
  8477. ac_status=$?
  8478. grep -v '^ *+' conftest.er1 >conftest.err
  8479. rm -f conftest.er1
  8480. cat conftest.err >&5
  8481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8482. (exit $ac_status); } && {
  8483. test -z "$ac_cxx_werror_flag" ||
  8484. test ! -s conftest.err
  8485. } && test -s conftest.$ac_objext; then
  8486. ac_cv_struct_tm=time.h
  8487. else
  8488. echo "$as_me: failed program was:" >&5
  8489. sed 's/^/| /' conftest.$ac_ext >&5
  8490. ac_cv_struct_tm=sys/time.h
  8491. fi
  8492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8493. fi
  8494. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8495. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8496. if test $ac_cv_struct_tm = sys/time.h; then
  8497. cat >>confdefs.h <<\_ACEOF
  8498. #define TM_IN_SYS_TIME 1
  8499. _ACEOF
  8500. fi
  8501. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8502. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8503. if test "${ac_cv_c_uint16_t+set}" = set; then
  8504. echo $ECHO_N "(cached) $ECHO_C" >&6
  8505. else
  8506. ac_cv_c_uint16_t=no
  8507. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8508. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8509. cat >conftest.$ac_ext <<_ACEOF
  8510. /* confdefs.h. */
  8511. _ACEOF
  8512. cat confdefs.h >>conftest.$ac_ext
  8513. cat >>conftest.$ac_ext <<_ACEOF
  8514. /* end confdefs.h. */
  8515. $ac_includes_default
  8516. int
  8517. main ()
  8518. {
  8519. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8520. test_array [0] = 0
  8521. ;
  8522. return 0;
  8523. }
  8524. _ACEOF
  8525. rm -f conftest.$ac_objext
  8526. if { (ac_try="$ac_compile"
  8527. case "(($ac_try" in
  8528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8529. *) ac_try_echo=$ac_try;;
  8530. esac
  8531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8532. (eval "$ac_compile") 2>conftest.er1
  8533. ac_status=$?
  8534. grep -v '^ *+' conftest.er1 >conftest.err
  8535. rm -f conftest.er1
  8536. cat conftest.err >&5
  8537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8538. (exit $ac_status); } && {
  8539. test -z "$ac_cxx_werror_flag" ||
  8540. test ! -s conftest.err
  8541. } && test -s conftest.$ac_objext; then
  8542. case $ac_type in
  8543. uint16_t) ac_cv_c_uint16_t=yes ;;
  8544. *) ac_cv_c_uint16_t=$ac_type ;;
  8545. esac
  8546. else
  8547. echo "$as_me: failed program was:" >&5
  8548. sed 's/^/| /' conftest.$ac_ext >&5
  8549. fi
  8550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8551. test "$ac_cv_c_uint16_t" != no && break
  8552. done
  8553. fi
  8554. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8555. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8556. case $ac_cv_c_uint16_t in #(
  8557. no|yes) ;; #(
  8558. *)
  8559. cat >>confdefs.h <<_ACEOF
  8560. #define uint16_t $ac_cv_c_uint16_t
  8561. _ACEOF
  8562. ;;
  8563. esac
  8564. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8565. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8566. if test "${ac_cv_c_uint32_t+set}" = set; then
  8567. echo $ECHO_N "(cached) $ECHO_C" >&6
  8568. else
  8569. ac_cv_c_uint32_t=no
  8570. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8571. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8572. cat >conftest.$ac_ext <<_ACEOF
  8573. /* confdefs.h. */
  8574. _ACEOF
  8575. cat confdefs.h >>conftest.$ac_ext
  8576. cat >>conftest.$ac_ext <<_ACEOF
  8577. /* end confdefs.h. */
  8578. $ac_includes_default
  8579. int
  8580. main ()
  8581. {
  8582. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8583. test_array [0] = 0
  8584. ;
  8585. return 0;
  8586. }
  8587. _ACEOF
  8588. rm -f conftest.$ac_objext
  8589. if { (ac_try="$ac_compile"
  8590. case "(($ac_try" in
  8591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8592. *) ac_try_echo=$ac_try;;
  8593. esac
  8594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8595. (eval "$ac_compile") 2>conftest.er1
  8596. ac_status=$?
  8597. grep -v '^ *+' conftest.er1 >conftest.err
  8598. rm -f conftest.er1
  8599. cat conftest.err >&5
  8600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8601. (exit $ac_status); } && {
  8602. test -z "$ac_cxx_werror_flag" ||
  8603. test ! -s conftest.err
  8604. } && test -s conftest.$ac_objext; then
  8605. case $ac_type in
  8606. uint32_t) ac_cv_c_uint32_t=yes ;;
  8607. *) ac_cv_c_uint32_t=$ac_type ;;
  8608. esac
  8609. else
  8610. echo "$as_me: failed program was:" >&5
  8611. sed 's/^/| /' conftest.$ac_ext >&5
  8612. fi
  8613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8614. test "$ac_cv_c_uint32_t" != no && break
  8615. done
  8616. fi
  8617. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8618. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8619. case $ac_cv_c_uint32_t in #(
  8620. no|yes) ;; #(
  8621. *)
  8622. cat >>confdefs.h <<\_ACEOF
  8623. #define _UINT32_T 1
  8624. _ACEOF
  8625. cat >>confdefs.h <<_ACEOF
  8626. #define uint32_t $ac_cv_c_uint32_t
  8627. _ACEOF
  8628. ;;
  8629. esac
  8630. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8631. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8632. if test "${ac_cv_c_uint64_t+set}" = set; then
  8633. echo $ECHO_N "(cached) $ECHO_C" >&6
  8634. else
  8635. ac_cv_c_uint64_t=no
  8636. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8637. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8638. cat >conftest.$ac_ext <<_ACEOF
  8639. /* confdefs.h. */
  8640. _ACEOF
  8641. cat confdefs.h >>conftest.$ac_ext
  8642. cat >>conftest.$ac_ext <<_ACEOF
  8643. /* end confdefs.h. */
  8644. $ac_includes_default
  8645. int
  8646. main ()
  8647. {
  8648. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8649. test_array [0] = 0
  8650. ;
  8651. return 0;
  8652. }
  8653. _ACEOF
  8654. rm -f conftest.$ac_objext
  8655. if { (ac_try="$ac_compile"
  8656. case "(($ac_try" in
  8657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8658. *) ac_try_echo=$ac_try;;
  8659. esac
  8660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8661. (eval "$ac_compile") 2>conftest.er1
  8662. ac_status=$?
  8663. grep -v '^ *+' conftest.er1 >conftest.err
  8664. rm -f conftest.er1
  8665. cat conftest.err >&5
  8666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8667. (exit $ac_status); } && {
  8668. test -z "$ac_cxx_werror_flag" ||
  8669. test ! -s conftest.err
  8670. } && test -s conftest.$ac_objext; then
  8671. case $ac_type in
  8672. uint64_t) ac_cv_c_uint64_t=yes ;;
  8673. *) ac_cv_c_uint64_t=$ac_type ;;
  8674. esac
  8675. else
  8676. echo "$as_me: failed program was:" >&5
  8677. sed 's/^/| /' conftest.$ac_ext >&5
  8678. fi
  8679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8680. test "$ac_cv_c_uint64_t" != no && break
  8681. done
  8682. fi
  8683. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8684. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8685. case $ac_cv_c_uint64_t in #(
  8686. no|yes) ;; #(
  8687. *)
  8688. cat >>confdefs.h <<\_ACEOF
  8689. #define _UINT64_T 1
  8690. _ACEOF
  8691. cat >>confdefs.h <<_ACEOF
  8692. #define uint64_t $ac_cv_c_uint64_t
  8693. _ACEOF
  8694. ;;
  8695. esac
  8696. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8697. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8698. if test "${ac_cv_c_uint8_t+set}" = set; then
  8699. echo $ECHO_N "(cached) $ECHO_C" >&6
  8700. else
  8701. ac_cv_c_uint8_t=no
  8702. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8703. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8704. cat >conftest.$ac_ext <<_ACEOF
  8705. /* confdefs.h. */
  8706. _ACEOF
  8707. cat confdefs.h >>conftest.$ac_ext
  8708. cat >>conftest.$ac_ext <<_ACEOF
  8709. /* end confdefs.h. */
  8710. $ac_includes_default
  8711. int
  8712. main ()
  8713. {
  8714. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8715. test_array [0] = 0
  8716. ;
  8717. return 0;
  8718. }
  8719. _ACEOF
  8720. rm -f conftest.$ac_objext
  8721. if { (ac_try="$ac_compile"
  8722. case "(($ac_try" in
  8723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8724. *) ac_try_echo=$ac_try;;
  8725. esac
  8726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8727. (eval "$ac_compile") 2>conftest.er1
  8728. ac_status=$?
  8729. grep -v '^ *+' conftest.er1 >conftest.err
  8730. rm -f conftest.er1
  8731. cat conftest.err >&5
  8732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8733. (exit $ac_status); } && {
  8734. test -z "$ac_cxx_werror_flag" ||
  8735. test ! -s conftest.err
  8736. } && test -s conftest.$ac_objext; then
  8737. case $ac_type in
  8738. uint8_t) ac_cv_c_uint8_t=yes ;;
  8739. *) ac_cv_c_uint8_t=$ac_type ;;
  8740. esac
  8741. else
  8742. echo "$as_me: failed program was:" >&5
  8743. sed 's/^/| /' conftest.$ac_ext >&5
  8744. fi
  8745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8746. test "$ac_cv_c_uint8_t" != no && break
  8747. done
  8748. fi
  8749. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8750. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8751. case $ac_cv_c_uint8_t in #(
  8752. no|yes) ;; #(
  8753. *)
  8754. cat >>confdefs.h <<\_ACEOF
  8755. #define _UINT8_T 1
  8756. _ACEOF
  8757. cat >>confdefs.h <<_ACEOF
  8758. #define uint8_t $ac_cv_c_uint8_t
  8759. _ACEOF
  8760. ;;
  8761. esac
  8762. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8763. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8764. if test "${ac_cv_c_volatile+set}" = set; then
  8765. echo $ECHO_N "(cached) $ECHO_C" >&6
  8766. else
  8767. cat >conftest.$ac_ext <<_ACEOF
  8768. /* confdefs.h. */
  8769. _ACEOF
  8770. cat confdefs.h >>conftest.$ac_ext
  8771. cat >>conftest.$ac_ext <<_ACEOF
  8772. /* end confdefs.h. */
  8773. int
  8774. main ()
  8775. {
  8776. volatile int x;
  8777. int * volatile y = (int *) 0;
  8778. return !x && !y;
  8779. ;
  8780. return 0;
  8781. }
  8782. _ACEOF
  8783. rm -f conftest.$ac_objext
  8784. if { (ac_try="$ac_compile"
  8785. case "(($ac_try" in
  8786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8787. *) ac_try_echo=$ac_try;;
  8788. esac
  8789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8790. (eval "$ac_compile") 2>conftest.er1
  8791. ac_status=$?
  8792. grep -v '^ *+' conftest.er1 >conftest.err
  8793. rm -f conftest.er1
  8794. cat conftest.err >&5
  8795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8796. (exit $ac_status); } && {
  8797. test -z "$ac_cxx_werror_flag" ||
  8798. test ! -s conftest.err
  8799. } && test -s conftest.$ac_objext; then
  8800. ac_cv_c_volatile=yes
  8801. else
  8802. echo "$as_me: failed program was:" >&5
  8803. sed 's/^/| /' conftest.$ac_ext >&5
  8804. ac_cv_c_volatile=no
  8805. fi
  8806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8807. fi
  8808. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8809. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8810. if test $ac_cv_c_volatile = no; then
  8811. cat >>confdefs.h <<\_ACEOF
  8812. #define volatile
  8813. _ACEOF
  8814. fi
  8815. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8816. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8817. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8818. echo $ECHO_N "(cached) $ECHO_C" >&6
  8819. else
  8820. cat >conftest.$ac_ext <<_ACEOF
  8821. /* confdefs.h. */
  8822. _ACEOF
  8823. cat confdefs.h >>conftest.$ac_ext
  8824. cat >>conftest.$ac_ext <<_ACEOF
  8825. /* end confdefs.h. */
  8826. $ac_includes_default
  8827. typedef ptrdiff_t ac__type_new_;
  8828. int
  8829. main ()
  8830. {
  8831. if ((ac__type_new_ *) 0)
  8832. return 0;
  8833. if (sizeof (ac__type_new_))
  8834. return 0;
  8835. ;
  8836. return 0;
  8837. }
  8838. _ACEOF
  8839. rm -f conftest.$ac_objext
  8840. if { (ac_try="$ac_compile"
  8841. case "(($ac_try" in
  8842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8843. *) ac_try_echo=$ac_try;;
  8844. esac
  8845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8846. (eval "$ac_compile") 2>conftest.er1
  8847. ac_status=$?
  8848. grep -v '^ *+' conftest.er1 >conftest.err
  8849. rm -f conftest.er1
  8850. cat conftest.err >&5
  8851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8852. (exit $ac_status); } && {
  8853. test -z "$ac_cxx_werror_flag" ||
  8854. test ! -s conftest.err
  8855. } && test -s conftest.$ac_objext; then
  8856. ac_cv_type_ptrdiff_t=yes
  8857. else
  8858. echo "$as_me: failed program was:" >&5
  8859. sed 's/^/| /' conftest.$ac_ext >&5
  8860. ac_cv_type_ptrdiff_t=no
  8861. fi
  8862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8863. fi
  8864. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8865. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8866. if test $ac_cv_type_ptrdiff_t = yes; then
  8867. cat >>confdefs.h <<_ACEOF
  8868. #define HAVE_PTRDIFF_T 1
  8869. _ACEOF
  8870. fi
  8871. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8872. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8873. if test "${ac_cv_c_bigendian+set}" = set; then
  8874. echo $ECHO_N "(cached) $ECHO_C" >&6
  8875. else
  8876. # See if sys/param.h defines the BYTE_ORDER macro.
  8877. cat >conftest.$ac_ext <<_ACEOF
  8878. /* confdefs.h. */
  8879. _ACEOF
  8880. cat confdefs.h >>conftest.$ac_ext
  8881. cat >>conftest.$ac_ext <<_ACEOF
  8882. /* end confdefs.h. */
  8883. #include <sys/types.h>
  8884. #include <sys/param.h>
  8885. int
  8886. main ()
  8887. {
  8888. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8889. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8890. bogus endian macros
  8891. #endif
  8892. ;
  8893. return 0;
  8894. }
  8895. _ACEOF
  8896. rm -f conftest.$ac_objext
  8897. if { (ac_try="$ac_compile"
  8898. case "(($ac_try" in
  8899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8900. *) ac_try_echo=$ac_try;;
  8901. esac
  8902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8903. (eval "$ac_compile") 2>conftest.er1
  8904. ac_status=$?
  8905. grep -v '^ *+' conftest.er1 >conftest.err
  8906. rm -f conftest.er1
  8907. cat conftest.err >&5
  8908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8909. (exit $ac_status); } && {
  8910. test -z "$ac_cxx_werror_flag" ||
  8911. test ! -s conftest.err
  8912. } && test -s conftest.$ac_objext; then
  8913. # It does; now see whether it defined to BIG_ENDIAN or not.
  8914. cat >conftest.$ac_ext <<_ACEOF
  8915. /* confdefs.h. */
  8916. _ACEOF
  8917. cat confdefs.h >>conftest.$ac_ext
  8918. cat >>conftest.$ac_ext <<_ACEOF
  8919. /* end confdefs.h. */
  8920. #include <sys/types.h>
  8921. #include <sys/param.h>
  8922. int
  8923. main ()
  8924. {
  8925. #if BYTE_ORDER != BIG_ENDIAN
  8926. not big endian
  8927. #endif
  8928. ;
  8929. return 0;
  8930. }
  8931. _ACEOF
  8932. rm -f conftest.$ac_objext
  8933. if { (ac_try="$ac_compile"
  8934. case "(($ac_try" in
  8935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8936. *) ac_try_echo=$ac_try;;
  8937. esac
  8938. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8939. (eval "$ac_compile") 2>conftest.er1
  8940. ac_status=$?
  8941. grep -v '^ *+' conftest.er1 >conftest.err
  8942. rm -f conftest.er1
  8943. cat conftest.err >&5
  8944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8945. (exit $ac_status); } && {
  8946. test -z "$ac_cxx_werror_flag" ||
  8947. test ! -s conftest.err
  8948. } && test -s conftest.$ac_objext; then
  8949. ac_cv_c_bigendian=yes
  8950. else
  8951. echo "$as_me: failed program was:" >&5
  8952. sed 's/^/| /' conftest.$ac_ext >&5
  8953. ac_cv_c_bigendian=no
  8954. fi
  8955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8956. else
  8957. echo "$as_me: failed program was:" >&5
  8958. sed 's/^/| /' conftest.$ac_ext >&5
  8959. # It does not; compile a test program.
  8960. if test "$cross_compiling" = yes; then
  8961. # try to guess the endianness by grepping values into an object file
  8962. ac_cv_c_bigendian=unknown
  8963. cat >conftest.$ac_ext <<_ACEOF
  8964. /* confdefs.h. */
  8965. _ACEOF
  8966. cat confdefs.h >>conftest.$ac_ext
  8967. cat >>conftest.$ac_ext <<_ACEOF
  8968. /* end confdefs.h. */
  8969. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8970. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8971. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  8972. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8973. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8974. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  8975. int
  8976. main ()
  8977. {
  8978. _ascii (); _ebcdic ();
  8979. ;
  8980. return 0;
  8981. }
  8982. _ACEOF
  8983. rm -f conftest.$ac_objext
  8984. if { (ac_try="$ac_compile"
  8985. case "(($ac_try" in
  8986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8987. *) ac_try_echo=$ac_try;;
  8988. esac
  8989. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8990. (eval "$ac_compile") 2>conftest.er1
  8991. ac_status=$?
  8992. grep -v '^ *+' conftest.er1 >conftest.err
  8993. rm -f conftest.er1
  8994. cat conftest.err >&5
  8995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8996. (exit $ac_status); } && {
  8997. test -z "$ac_cxx_werror_flag" ||
  8998. test ! -s conftest.err
  8999. } && test -s conftest.$ac_objext; then
  9000. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  9001. ac_cv_c_bigendian=yes
  9002. fi
  9003. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9004. if test "$ac_cv_c_bigendian" = unknown; then
  9005. ac_cv_c_bigendian=no
  9006. else
  9007. # finding both strings is unlikely to happen, but who knows?
  9008. ac_cv_c_bigendian=unknown
  9009. fi
  9010. fi
  9011. else
  9012. echo "$as_me: failed program was:" >&5
  9013. sed 's/^/| /' conftest.$ac_ext >&5
  9014. fi
  9015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9016. else
  9017. cat >conftest.$ac_ext <<_ACEOF
  9018. /* confdefs.h. */
  9019. _ACEOF
  9020. cat confdefs.h >>conftest.$ac_ext
  9021. cat >>conftest.$ac_ext <<_ACEOF
  9022. /* end confdefs.h. */
  9023. $ac_includes_default
  9024. int
  9025. main ()
  9026. {
  9027. /* Are we little or big endian? From Harbison&Steele. */
  9028. union
  9029. {
  9030. long int l;
  9031. char c[sizeof (long int)];
  9032. } u;
  9033. u.l = 1;
  9034. return u.c[sizeof (long int) - 1] == 1;
  9035. ;
  9036. return 0;
  9037. }
  9038. _ACEOF
  9039. rm -f conftest$ac_exeext
  9040. if { (ac_try="$ac_link"
  9041. case "(($ac_try" in
  9042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9043. *) ac_try_echo=$ac_try;;
  9044. esac
  9045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9046. (eval "$ac_link") 2>&5
  9047. ac_status=$?
  9048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9049. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9050. { (case "(($ac_try" in
  9051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9052. *) ac_try_echo=$ac_try;;
  9053. esac
  9054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9055. (eval "$ac_try") 2>&5
  9056. ac_status=$?
  9057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9058. (exit $ac_status); }; }; then
  9059. ac_cv_c_bigendian=no
  9060. else
  9061. echo "$as_me: program exited with status $ac_status" >&5
  9062. echo "$as_me: failed program was:" >&5
  9063. sed 's/^/| /' conftest.$ac_ext >&5
  9064. ( exit $ac_status )
  9065. ac_cv_c_bigendian=yes
  9066. fi
  9067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9068. fi
  9069. fi
  9070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9071. fi
  9072. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9073. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  9074. case $ac_cv_c_bigendian in
  9075. yes)
  9076. cat >>confdefs.h <<\_ACEOF
  9077. #define WORDS_BIGENDIAN 1
  9078. _ACEOF
  9079. ;;
  9080. no)
  9081. ;;
  9082. *)
  9083. { { echo "$as_me:$LINENO: error: unknown endianness
  9084. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9085. echo "$as_me: error: unknown endianness
  9086. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9087. { (exit 1); exit 1; }; } ;;
  9088. esac
  9089. # Check whether --enable-largefile was given.
  9090. if test "${enable_largefile+set}" = set; then
  9091. enableval=$enable_largefile;
  9092. fi
  9093. if test "$enable_largefile" != no; then
  9094. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9095. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  9096. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9097. echo $ECHO_N "(cached) $ECHO_C" >&6
  9098. else
  9099. ac_cv_sys_largefile_CC=no
  9100. if test "$GCC" != yes; then
  9101. ac_save_CC=$CC
  9102. while :; do
  9103. # IRIX 6.2 and later do not support large files by default,
  9104. # so use the C compiler's -n32 option if that helps.
  9105. cat >conftest.$ac_ext <<_ACEOF
  9106. /* confdefs.h. */
  9107. _ACEOF
  9108. cat confdefs.h >>conftest.$ac_ext
  9109. cat >>conftest.$ac_ext <<_ACEOF
  9110. /* end confdefs.h. */
  9111. #include <sys/types.h>
  9112. /* Check that off_t can represent 2**63 - 1 correctly.
  9113. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9114. since some C++ compilers masquerading as C compilers
  9115. incorrectly reject 9223372036854775807. */
  9116. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9117. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9118. && LARGE_OFF_T % 2147483647 == 1)
  9119. ? 1 : -1];
  9120. int
  9121. main ()
  9122. {
  9123. ;
  9124. return 0;
  9125. }
  9126. _ACEOF
  9127. rm -f conftest.$ac_objext
  9128. if { (ac_try="$ac_compile"
  9129. case "(($ac_try" in
  9130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9131. *) ac_try_echo=$ac_try;;
  9132. esac
  9133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9134. (eval "$ac_compile") 2>conftest.er1
  9135. ac_status=$?
  9136. grep -v '^ *+' conftest.er1 >conftest.err
  9137. rm -f conftest.er1
  9138. cat conftest.err >&5
  9139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9140. (exit $ac_status); } && {
  9141. test -z "$ac_cxx_werror_flag" ||
  9142. test ! -s conftest.err
  9143. } && test -s conftest.$ac_objext; then
  9144. break
  9145. else
  9146. echo "$as_me: failed program was:" >&5
  9147. sed 's/^/| /' conftest.$ac_ext >&5
  9148. fi
  9149. rm -f core conftest.err conftest.$ac_objext
  9150. CC="$CC -n32"
  9151. rm -f conftest.$ac_objext
  9152. if { (ac_try="$ac_compile"
  9153. case "(($ac_try" in
  9154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9155. *) ac_try_echo=$ac_try;;
  9156. esac
  9157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9158. (eval "$ac_compile") 2>conftest.er1
  9159. ac_status=$?
  9160. grep -v '^ *+' conftest.er1 >conftest.err
  9161. rm -f conftest.er1
  9162. cat conftest.err >&5
  9163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9164. (exit $ac_status); } && {
  9165. test -z "$ac_cxx_werror_flag" ||
  9166. test ! -s conftest.err
  9167. } && test -s conftest.$ac_objext; then
  9168. ac_cv_sys_largefile_CC=' -n32'; break
  9169. else
  9170. echo "$as_me: failed program was:" >&5
  9171. sed 's/^/| /' conftest.$ac_ext >&5
  9172. fi
  9173. rm -f core conftest.err conftest.$ac_objext
  9174. break
  9175. done
  9176. CC=$ac_save_CC
  9177. rm -f conftest.$ac_ext
  9178. fi
  9179. fi
  9180. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9181. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  9182. if test "$ac_cv_sys_largefile_CC" != no; then
  9183. CC=$CC$ac_cv_sys_largefile_CC
  9184. fi
  9185. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9186. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  9187. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9188. echo $ECHO_N "(cached) $ECHO_C" >&6
  9189. else
  9190. while :; do
  9191. cat >conftest.$ac_ext <<_ACEOF
  9192. /* confdefs.h. */
  9193. _ACEOF
  9194. cat confdefs.h >>conftest.$ac_ext
  9195. cat >>conftest.$ac_ext <<_ACEOF
  9196. /* end confdefs.h. */
  9197. #include <sys/types.h>
  9198. /* Check that off_t can represent 2**63 - 1 correctly.
  9199. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9200. since some C++ compilers masquerading as C compilers
  9201. incorrectly reject 9223372036854775807. */
  9202. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9203. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9204. && LARGE_OFF_T % 2147483647 == 1)
  9205. ? 1 : -1];
  9206. int
  9207. main ()
  9208. {
  9209. ;
  9210. return 0;
  9211. }
  9212. _ACEOF
  9213. rm -f conftest.$ac_objext
  9214. if { (ac_try="$ac_compile"
  9215. case "(($ac_try" in
  9216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9217. *) ac_try_echo=$ac_try;;
  9218. esac
  9219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9220. (eval "$ac_compile") 2>conftest.er1
  9221. ac_status=$?
  9222. grep -v '^ *+' conftest.er1 >conftest.err
  9223. rm -f conftest.er1
  9224. cat conftest.err >&5
  9225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9226. (exit $ac_status); } && {
  9227. test -z "$ac_cxx_werror_flag" ||
  9228. test ! -s conftest.err
  9229. } && test -s conftest.$ac_objext; then
  9230. ac_cv_sys_file_offset_bits=no; break
  9231. else
  9232. echo "$as_me: failed program was:" >&5
  9233. sed 's/^/| /' conftest.$ac_ext >&5
  9234. fi
  9235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9236. cat >conftest.$ac_ext <<_ACEOF
  9237. /* confdefs.h. */
  9238. _ACEOF
  9239. cat confdefs.h >>conftest.$ac_ext
  9240. cat >>conftest.$ac_ext <<_ACEOF
  9241. /* end confdefs.h. */
  9242. #define _FILE_OFFSET_BITS 64
  9243. #include <sys/types.h>
  9244. /* Check that off_t can represent 2**63 - 1 correctly.
  9245. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9246. since some C++ compilers masquerading as C compilers
  9247. incorrectly reject 9223372036854775807. */
  9248. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9249. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9250. && LARGE_OFF_T % 2147483647 == 1)
  9251. ? 1 : -1];
  9252. int
  9253. main ()
  9254. {
  9255. ;
  9256. return 0;
  9257. }
  9258. _ACEOF
  9259. rm -f conftest.$ac_objext
  9260. if { (ac_try="$ac_compile"
  9261. case "(($ac_try" in
  9262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9263. *) ac_try_echo=$ac_try;;
  9264. esac
  9265. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9266. (eval "$ac_compile") 2>conftest.er1
  9267. ac_status=$?
  9268. grep -v '^ *+' conftest.er1 >conftest.err
  9269. rm -f conftest.er1
  9270. cat conftest.err >&5
  9271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9272. (exit $ac_status); } && {
  9273. test -z "$ac_cxx_werror_flag" ||
  9274. test ! -s conftest.err
  9275. } && test -s conftest.$ac_objext; then
  9276. ac_cv_sys_file_offset_bits=64; break
  9277. else
  9278. echo "$as_me: failed program was:" >&5
  9279. sed 's/^/| /' conftest.$ac_ext >&5
  9280. fi
  9281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9282. ac_cv_sys_file_offset_bits=unknown
  9283. break
  9284. done
  9285. fi
  9286. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9287. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9288. case $ac_cv_sys_file_offset_bits in #(
  9289. no | unknown) ;;
  9290. *)
  9291. cat >>confdefs.h <<_ACEOF
  9292. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9293. _ACEOF
  9294. ;;
  9295. esac
  9296. rm -f conftest*
  9297. if test $ac_cv_sys_file_offset_bits = unknown; then
  9298. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9299. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9300. if test "${ac_cv_sys_large_files+set}" = set; then
  9301. echo $ECHO_N "(cached) $ECHO_C" >&6
  9302. else
  9303. while :; do
  9304. cat >conftest.$ac_ext <<_ACEOF
  9305. /* confdefs.h. */
  9306. _ACEOF
  9307. cat confdefs.h >>conftest.$ac_ext
  9308. cat >>conftest.$ac_ext <<_ACEOF
  9309. /* end confdefs.h. */
  9310. #include <sys/types.h>
  9311. /* Check that off_t can represent 2**63 - 1 correctly.
  9312. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9313. since some C++ compilers masquerading as C compilers
  9314. incorrectly reject 9223372036854775807. */
  9315. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9316. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9317. && LARGE_OFF_T % 2147483647 == 1)
  9318. ? 1 : -1];
  9319. int
  9320. main ()
  9321. {
  9322. ;
  9323. return 0;
  9324. }
  9325. _ACEOF
  9326. rm -f conftest.$ac_objext
  9327. if { (ac_try="$ac_compile"
  9328. case "(($ac_try" in
  9329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9330. *) ac_try_echo=$ac_try;;
  9331. esac
  9332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9333. (eval "$ac_compile") 2>conftest.er1
  9334. ac_status=$?
  9335. grep -v '^ *+' conftest.er1 >conftest.err
  9336. rm -f conftest.er1
  9337. cat conftest.err >&5
  9338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9339. (exit $ac_status); } && {
  9340. test -z "$ac_cxx_werror_flag" ||
  9341. test ! -s conftest.err
  9342. } && test -s conftest.$ac_objext; then
  9343. ac_cv_sys_large_files=no; break
  9344. else
  9345. echo "$as_me: failed program was:" >&5
  9346. sed 's/^/| /' conftest.$ac_ext >&5
  9347. fi
  9348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9349. cat >conftest.$ac_ext <<_ACEOF
  9350. /* confdefs.h. */
  9351. _ACEOF
  9352. cat confdefs.h >>conftest.$ac_ext
  9353. cat >>conftest.$ac_ext <<_ACEOF
  9354. /* end confdefs.h. */
  9355. #define _LARGE_FILES 1
  9356. #include <sys/types.h>
  9357. /* Check that off_t can represent 2**63 - 1 correctly.
  9358. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9359. since some C++ compilers masquerading as C compilers
  9360. incorrectly reject 9223372036854775807. */
  9361. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9362. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9363. && LARGE_OFF_T % 2147483647 == 1)
  9364. ? 1 : -1];
  9365. int
  9366. main ()
  9367. {
  9368. ;
  9369. return 0;
  9370. }
  9371. _ACEOF
  9372. rm -f conftest.$ac_objext
  9373. if { (ac_try="$ac_compile"
  9374. case "(($ac_try" in
  9375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9376. *) ac_try_echo=$ac_try;;
  9377. esac
  9378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9379. (eval "$ac_compile") 2>conftest.er1
  9380. ac_status=$?
  9381. grep -v '^ *+' conftest.er1 >conftest.err
  9382. rm -f conftest.er1
  9383. cat conftest.err >&5
  9384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9385. (exit $ac_status); } && {
  9386. test -z "$ac_cxx_werror_flag" ||
  9387. test ! -s conftest.err
  9388. } && test -s conftest.$ac_objext; then
  9389. ac_cv_sys_large_files=1; break
  9390. else
  9391. echo "$as_me: failed program was:" >&5
  9392. sed 's/^/| /' conftest.$ac_ext >&5
  9393. fi
  9394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9395. ac_cv_sys_large_files=unknown
  9396. break
  9397. done
  9398. fi
  9399. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9400. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9401. case $ac_cv_sys_large_files in #(
  9402. no | unknown) ;;
  9403. *)
  9404. cat >>confdefs.h <<_ACEOF
  9405. #define _LARGE_FILES $ac_cv_sys_large_files
  9406. _ACEOF
  9407. ;;
  9408. esac
  9409. rm -f conftest*
  9410. fi
  9411. fi
  9412. # Checks for library functions.
  9413. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9414. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9415. # Check whether --enable-nls was given.
  9416. if test "${enable_nls+set}" = set; then
  9417. enableval=$enable_nls; USE_NLS=$enableval
  9418. else
  9419. USE_NLS=yes
  9420. fi
  9421. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9422. echo "${ECHO_T}$USE_NLS" >&6; }
  9423. GETTEXT_MACRO_VERSION=0.17
  9424. # Prepare PATH_SEPARATOR.
  9425. # The user is always right.
  9426. if test "${PATH_SEPARATOR+set}" != set; then
  9427. echo "#! /bin/sh" >conf$$.sh
  9428. echo "exit 0" >>conf$$.sh
  9429. chmod +x conf$$.sh
  9430. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9431. PATH_SEPARATOR=';'
  9432. else
  9433. PATH_SEPARATOR=:
  9434. fi
  9435. rm -f conf$$.sh
  9436. fi
  9437. # Find out how to test for executable files. Don't use a zero-byte file,
  9438. # as systems may use methods other than mode bits to determine executability.
  9439. cat >conf$$.file <<_ASEOF
  9440. #! /bin/sh
  9441. exit 0
  9442. _ASEOF
  9443. chmod +x conf$$.file
  9444. if test -x conf$$.file >/dev/null 2>&1; then
  9445. ac_executable_p="test -x"
  9446. else
  9447. ac_executable_p="test -f"
  9448. fi
  9449. rm -f conf$$.file
  9450. # Extract the first word of "msgfmt", so it can be a program name with args.
  9451. set dummy msgfmt; ac_word=$2
  9452. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9453. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9454. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9455. echo $ECHO_N "(cached) $ECHO_C" >&6
  9456. else
  9457. case "$MSGFMT" in
  9458. [\\/]* | ?:[\\/]*)
  9459. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9460. ;;
  9461. *)
  9462. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9463. for ac_dir in $PATH; do
  9464. IFS="$ac_save_IFS"
  9465. test -z "$ac_dir" && ac_dir=.
  9466. for ac_exec_ext in '' $ac_executable_extensions; do
  9467. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9468. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9469. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9470. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9471. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9472. break 2
  9473. fi
  9474. fi
  9475. done
  9476. done
  9477. IFS="$ac_save_IFS"
  9478. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9479. ;;
  9480. esac
  9481. fi
  9482. MSGFMT="$ac_cv_path_MSGFMT"
  9483. if test "$MSGFMT" != ":"; then
  9484. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9485. echo "${ECHO_T}$MSGFMT" >&6; }
  9486. else
  9487. { echo "$as_me:$LINENO: result: no" >&5
  9488. echo "${ECHO_T}no" >&6; }
  9489. fi
  9490. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9491. set dummy gmsgfmt; ac_word=$2
  9492. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9493. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9494. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9495. echo $ECHO_N "(cached) $ECHO_C" >&6
  9496. else
  9497. case $GMSGFMT in
  9498. [\\/]* | ?:[\\/]*)
  9499. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9500. ;;
  9501. *)
  9502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9503. for as_dir in $PATH
  9504. do
  9505. IFS=$as_save_IFS
  9506. test -z "$as_dir" && as_dir=.
  9507. for ac_exec_ext in '' $ac_executable_extensions; do
  9508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9509. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9510. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9511. break 2
  9512. fi
  9513. done
  9514. done
  9515. IFS=$as_save_IFS
  9516. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9517. ;;
  9518. esac
  9519. fi
  9520. GMSGFMT=$ac_cv_path_GMSGFMT
  9521. if test -n "$GMSGFMT"; then
  9522. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9523. echo "${ECHO_T}$GMSGFMT" >&6; }
  9524. else
  9525. { echo "$as_me:$LINENO: result: no" >&5
  9526. echo "${ECHO_T}no" >&6; }
  9527. fi
  9528. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9529. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9530. *) MSGFMT_015=$MSGFMT ;;
  9531. esac
  9532. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9533. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9534. *) GMSGFMT_015=$GMSGFMT ;;
  9535. esac
  9536. # Prepare PATH_SEPARATOR.
  9537. # The user is always right.
  9538. if test "${PATH_SEPARATOR+set}" != set; then
  9539. echo "#! /bin/sh" >conf$$.sh
  9540. echo "exit 0" >>conf$$.sh
  9541. chmod +x conf$$.sh
  9542. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9543. PATH_SEPARATOR=';'
  9544. else
  9545. PATH_SEPARATOR=:
  9546. fi
  9547. rm -f conf$$.sh
  9548. fi
  9549. # Find out how to test for executable files. Don't use a zero-byte file,
  9550. # as systems may use methods other than mode bits to determine executability.
  9551. cat >conf$$.file <<_ASEOF
  9552. #! /bin/sh
  9553. exit 0
  9554. _ASEOF
  9555. chmod +x conf$$.file
  9556. if test -x conf$$.file >/dev/null 2>&1; then
  9557. ac_executable_p="test -x"
  9558. else
  9559. ac_executable_p="test -f"
  9560. fi
  9561. rm -f conf$$.file
  9562. # Extract the first word of "xgettext", so it can be a program name with args.
  9563. set dummy xgettext; ac_word=$2
  9564. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9565. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9566. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9567. echo $ECHO_N "(cached) $ECHO_C" >&6
  9568. else
  9569. case "$XGETTEXT" in
  9570. [\\/]* | ?:[\\/]*)
  9571. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9572. ;;
  9573. *)
  9574. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9575. for ac_dir in $PATH; do
  9576. IFS="$ac_save_IFS"
  9577. test -z "$ac_dir" && ac_dir=.
  9578. for ac_exec_ext in '' $ac_executable_extensions; do
  9579. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9580. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9581. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9582. (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
  9583. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9584. break 2
  9585. fi
  9586. fi
  9587. done
  9588. done
  9589. IFS="$ac_save_IFS"
  9590. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9591. ;;
  9592. esac
  9593. fi
  9594. XGETTEXT="$ac_cv_path_XGETTEXT"
  9595. if test "$XGETTEXT" != ":"; then
  9596. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9597. echo "${ECHO_T}$XGETTEXT" >&6; }
  9598. else
  9599. { echo "$as_me:$LINENO: result: no" >&5
  9600. echo "${ECHO_T}no" >&6; }
  9601. fi
  9602. rm -f messages.po
  9603. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9604. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9605. *) XGETTEXT_015=$XGETTEXT ;;
  9606. esac
  9607. # Prepare PATH_SEPARATOR.
  9608. # The user is always right.
  9609. if test "${PATH_SEPARATOR+set}" != set; then
  9610. echo "#! /bin/sh" >conf$$.sh
  9611. echo "exit 0" >>conf$$.sh
  9612. chmod +x conf$$.sh
  9613. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9614. PATH_SEPARATOR=';'
  9615. else
  9616. PATH_SEPARATOR=:
  9617. fi
  9618. rm -f conf$$.sh
  9619. fi
  9620. # Find out how to test for executable files. Don't use a zero-byte file,
  9621. # as systems may use methods other than mode bits to determine executability.
  9622. cat >conf$$.file <<_ASEOF
  9623. #! /bin/sh
  9624. exit 0
  9625. _ASEOF
  9626. chmod +x conf$$.file
  9627. if test -x conf$$.file >/dev/null 2>&1; then
  9628. ac_executable_p="test -x"
  9629. else
  9630. ac_executable_p="test -f"
  9631. fi
  9632. rm -f conf$$.file
  9633. # Extract the first word of "msgmerge", so it can be a program name with args.
  9634. set dummy msgmerge; ac_word=$2
  9635. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9636. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9637. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9638. echo $ECHO_N "(cached) $ECHO_C" >&6
  9639. else
  9640. case "$MSGMERGE" in
  9641. [\\/]* | ?:[\\/]*)
  9642. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9643. ;;
  9644. *)
  9645. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9646. for ac_dir in $PATH; do
  9647. IFS="$ac_save_IFS"
  9648. test -z "$ac_dir" && ac_dir=.
  9649. for ac_exec_ext in '' $ac_executable_extensions; do
  9650. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9651. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9652. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9653. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9654. break 2
  9655. fi
  9656. fi
  9657. done
  9658. done
  9659. IFS="$ac_save_IFS"
  9660. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9661. ;;
  9662. esac
  9663. fi
  9664. MSGMERGE="$ac_cv_path_MSGMERGE"
  9665. if test "$MSGMERGE" != ":"; then
  9666. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9667. echo "${ECHO_T}$MSGMERGE" >&6; }
  9668. else
  9669. { echo "$as_me:$LINENO: result: no" >&5
  9670. echo "${ECHO_T}no" >&6; }
  9671. fi
  9672. test -n "$localedir" || localedir='${datadir}/locale'
  9673. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9674. ac_config_commands="$ac_config_commands po-directories"
  9675. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9676. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9677. if test "${ac_cv_gnu_library_2+set}" = set; then
  9678. echo $ECHO_N "(cached) $ECHO_C" >&6
  9679. else
  9680. cat >conftest.$ac_ext <<_ACEOF
  9681. /* confdefs.h. */
  9682. _ACEOF
  9683. cat confdefs.h >>conftest.$ac_ext
  9684. cat >>conftest.$ac_ext <<_ACEOF
  9685. /* end confdefs.h. */
  9686. #include <features.h>
  9687. #ifdef __GNU_LIBRARY__
  9688. #if (__GLIBC__ >= 2)
  9689. Lucky GNU user
  9690. #endif
  9691. #endif
  9692. _ACEOF
  9693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9694. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9695. ac_cv_gnu_library_2=yes
  9696. else
  9697. ac_cv_gnu_library_2=no
  9698. fi
  9699. rm -f conftest*
  9700. fi
  9701. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9702. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9703. GLIBC2="$ac_cv_gnu_library_2"
  9704. CFLAG_VISIBILITY=
  9705. HAVE_VISIBILITY=0
  9706. if test -n "$GCC"; then
  9707. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9708. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9709. if test "${gl_cv_cc_visibility+set}" = set; then
  9710. echo $ECHO_N "(cached) $ECHO_C" >&6
  9711. else
  9712. gl_save_CFLAGS="$CFLAGS"
  9713. CFLAGS="$CFLAGS -fvisibility=hidden"
  9714. cat >conftest.$ac_ext <<_ACEOF
  9715. /* confdefs.h. */
  9716. _ACEOF
  9717. cat confdefs.h >>conftest.$ac_ext
  9718. cat >>conftest.$ac_ext <<_ACEOF
  9719. /* end confdefs.h. */
  9720. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9721. extern __attribute__((__visibility__("default"))) int exportedvar;
  9722. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9723. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9724. int
  9725. main ()
  9726. {
  9727. ;
  9728. return 0;
  9729. }
  9730. _ACEOF
  9731. rm -f conftest.$ac_objext
  9732. if { (ac_try="$ac_compile"
  9733. case "(($ac_try" in
  9734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9735. *) ac_try_echo=$ac_try;;
  9736. esac
  9737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9738. (eval "$ac_compile") 2>conftest.er1
  9739. ac_status=$?
  9740. grep -v '^ *+' conftest.er1 >conftest.err
  9741. rm -f conftest.er1
  9742. cat conftest.err >&5
  9743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9744. (exit $ac_status); } && {
  9745. test -z "$ac_cxx_werror_flag" ||
  9746. test ! -s conftest.err
  9747. } && test -s conftest.$ac_objext; then
  9748. gl_cv_cc_visibility=yes
  9749. else
  9750. echo "$as_me: failed program was:" >&5
  9751. sed 's/^/| /' conftest.$ac_ext >&5
  9752. gl_cv_cc_visibility=no
  9753. fi
  9754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9755. CFLAGS="$gl_save_CFLAGS"
  9756. fi
  9757. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9758. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9759. if test $gl_cv_cc_visibility = yes; then
  9760. CFLAG_VISIBILITY="-fvisibility=hidden"
  9761. HAVE_VISIBILITY=1
  9762. fi
  9763. fi
  9764. cat >>confdefs.h <<_ACEOF
  9765. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9766. _ACEOF
  9767. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9768. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9769. if test "${gl_cv_header_stdint_h+set}" = set; then
  9770. echo $ECHO_N "(cached) $ECHO_C" >&6
  9771. else
  9772. cat >conftest.$ac_ext <<_ACEOF
  9773. /* confdefs.h. */
  9774. _ACEOF
  9775. cat confdefs.h >>conftest.$ac_ext
  9776. cat >>conftest.$ac_ext <<_ACEOF
  9777. /* end confdefs.h. */
  9778. #include <sys/types.h>
  9779. #include <stdint.h>
  9780. int
  9781. main ()
  9782. {
  9783. uintmax_t i = (uintmax_t) -1; return !i;
  9784. ;
  9785. return 0;
  9786. }
  9787. _ACEOF
  9788. rm -f conftest.$ac_objext
  9789. if { (ac_try="$ac_compile"
  9790. case "(($ac_try" in
  9791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9792. *) ac_try_echo=$ac_try;;
  9793. esac
  9794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9795. (eval "$ac_compile") 2>conftest.er1
  9796. ac_status=$?
  9797. grep -v '^ *+' conftest.er1 >conftest.err
  9798. rm -f conftest.er1
  9799. cat conftest.err >&5
  9800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9801. (exit $ac_status); } && {
  9802. test -z "$ac_cxx_werror_flag" ||
  9803. test ! -s conftest.err
  9804. } && test -s conftest.$ac_objext; then
  9805. gl_cv_header_stdint_h=yes
  9806. else
  9807. echo "$as_me: failed program was:" >&5
  9808. sed 's/^/| /' conftest.$ac_ext >&5
  9809. gl_cv_header_stdint_h=no
  9810. fi
  9811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9812. fi
  9813. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9814. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9815. if test $gl_cv_header_stdint_h = yes; then
  9816. cat >>confdefs.h <<_ACEOF
  9817. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9818. _ACEOF
  9819. fi
  9820. for ac_header in stdlib.h unistd.h
  9821. do
  9822. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9823. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9824. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9825. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9826. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9827. echo $ECHO_N "(cached) $ECHO_C" >&6
  9828. fi
  9829. ac_res=`eval echo '${'$as_ac_Header'}'`
  9830. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9831. echo "${ECHO_T}$ac_res" >&6; }
  9832. else
  9833. # Is the header compilable?
  9834. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9835. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9836. cat >conftest.$ac_ext <<_ACEOF
  9837. /* confdefs.h. */
  9838. _ACEOF
  9839. cat confdefs.h >>conftest.$ac_ext
  9840. cat >>conftest.$ac_ext <<_ACEOF
  9841. /* end confdefs.h. */
  9842. $ac_includes_default
  9843. #include <$ac_header>
  9844. _ACEOF
  9845. rm -f conftest.$ac_objext
  9846. if { (ac_try="$ac_compile"
  9847. case "(($ac_try" in
  9848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9849. *) ac_try_echo=$ac_try;;
  9850. esac
  9851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9852. (eval "$ac_compile") 2>conftest.er1
  9853. ac_status=$?
  9854. grep -v '^ *+' conftest.er1 >conftest.err
  9855. rm -f conftest.er1
  9856. cat conftest.err >&5
  9857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9858. (exit $ac_status); } && {
  9859. test -z "$ac_cxx_werror_flag" ||
  9860. test ! -s conftest.err
  9861. } && test -s conftest.$ac_objext; then
  9862. ac_header_compiler=yes
  9863. else
  9864. echo "$as_me: failed program was:" >&5
  9865. sed 's/^/| /' conftest.$ac_ext >&5
  9866. ac_header_compiler=no
  9867. fi
  9868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9869. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9870. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9871. # Is the header present?
  9872. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9873. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9874. cat >conftest.$ac_ext <<_ACEOF
  9875. /* confdefs.h. */
  9876. _ACEOF
  9877. cat confdefs.h >>conftest.$ac_ext
  9878. cat >>conftest.$ac_ext <<_ACEOF
  9879. /* end confdefs.h. */
  9880. #include <$ac_header>
  9881. _ACEOF
  9882. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9883. case "(($ac_try" in
  9884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9885. *) ac_try_echo=$ac_try;;
  9886. esac
  9887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9888. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9889. ac_status=$?
  9890. grep -v '^ *+' conftest.er1 >conftest.err
  9891. rm -f conftest.er1
  9892. cat conftest.err >&5
  9893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9894. (exit $ac_status); } >/dev/null && {
  9895. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9896. test ! -s conftest.err
  9897. }; then
  9898. ac_header_preproc=yes
  9899. else
  9900. echo "$as_me: failed program was:" >&5
  9901. sed 's/^/| /' conftest.$ac_ext >&5
  9902. ac_header_preproc=no
  9903. fi
  9904. rm -f conftest.err conftest.$ac_ext
  9905. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9906. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9907. # So? What about this header?
  9908. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9909. yes:no: )
  9910. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9911. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9912. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9913. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9914. ac_header_preproc=yes
  9915. ;;
  9916. no:yes:* )
  9917. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9918. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9919. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9920. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9921. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9922. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9923. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9924. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9925. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9926. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9927. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9928. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9929. ( cat <<\_ASBOX
  9930. ## ----------------------------------------------- ##
  9931. ## Report this to t-tujikawa@users.sourceforge.net ##
  9932. ## ----------------------------------------------- ##
  9933. _ASBOX
  9934. ) | sed "s/^/$as_me: WARNING: /" >&2
  9935. ;;
  9936. esac
  9937. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9938. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9939. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9940. echo $ECHO_N "(cached) $ECHO_C" >&6
  9941. else
  9942. eval "$as_ac_Header=\$ac_header_preproc"
  9943. fi
  9944. ac_res=`eval echo '${'$as_ac_Header'}'`
  9945. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9946. echo "${ECHO_T}$ac_res" >&6; }
  9947. fi
  9948. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9949. cat >>confdefs.h <<_ACEOF
  9950. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9951. _ACEOF
  9952. fi
  9953. done
  9954. for ac_func in getpagesize
  9955. do
  9956. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9957. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9958. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9959. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9960. echo $ECHO_N "(cached) $ECHO_C" >&6
  9961. else
  9962. cat >conftest.$ac_ext <<_ACEOF
  9963. /* confdefs.h. */
  9964. _ACEOF
  9965. cat confdefs.h >>conftest.$ac_ext
  9966. cat >>conftest.$ac_ext <<_ACEOF
  9967. /* end confdefs.h. */
  9968. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9969. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9970. #define $ac_func innocuous_$ac_func
  9971. /* System header to define __stub macros and hopefully few prototypes,
  9972. which can conflict with char $ac_func (); below.
  9973. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9974. <limits.h> exists even on freestanding compilers. */
  9975. #ifdef __STDC__
  9976. # include <limits.h>
  9977. #else
  9978. # include <assert.h>
  9979. #endif
  9980. #undef $ac_func
  9981. /* Override any GCC internal prototype to avoid an error.
  9982. Use char because int might match the return type of a GCC
  9983. builtin and then its argument prototype would still apply. */
  9984. #ifdef __cplusplus
  9985. extern "C"
  9986. #endif
  9987. char $ac_func ();
  9988. /* The GNU C library defines this for functions which it implements
  9989. to always fail with ENOSYS. Some functions are actually named
  9990. something starting with __ and the normal name is an alias. */
  9991. #if defined __stub_$ac_func || defined __stub___$ac_func
  9992. choke me
  9993. #endif
  9994. int
  9995. main ()
  9996. {
  9997. return $ac_func ();
  9998. ;
  9999. return 0;
  10000. }
  10001. _ACEOF
  10002. rm -f conftest.$ac_objext conftest$ac_exeext
  10003. if { (ac_try="$ac_link"
  10004. case "(($ac_try" in
  10005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10006. *) ac_try_echo=$ac_try;;
  10007. esac
  10008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10009. (eval "$ac_link") 2>conftest.er1
  10010. ac_status=$?
  10011. grep -v '^ *+' conftest.er1 >conftest.err
  10012. rm -f conftest.er1
  10013. cat conftest.err >&5
  10014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10015. (exit $ac_status); } && {
  10016. test -z "$ac_cxx_werror_flag" ||
  10017. test ! -s conftest.err
  10018. } && test -s conftest$ac_exeext &&
  10019. $as_test_x conftest$ac_exeext; then
  10020. eval "$as_ac_var=yes"
  10021. else
  10022. echo "$as_me: failed program was:" >&5
  10023. sed 's/^/| /' conftest.$ac_ext >&5
  10024. eval "$as_ac_var=no"
  10025. fi
  10026. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10027. conftest$ac_exeext conftest.$ac_ext
  10028. fi
  10029. ac_res=`eval echo '${'$as_ac_var'}'`
  10030. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10031. echo "${ECHO_T}$ac_res" >&6; }
  10032. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10033. cat >>confdefs.h <<_ACEOF
  10034. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10035. _ACEOF
  10036. fi
  10037. done
  10038. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10039. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10040. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10041. echo $ECHO_N "(cached) $ECHO_C" >&6
  10042. else
  10043. if test "$cross_compiling" = yes; then
  10044. ac_cv_func_mmap_fixed_mapped=no
  10045. else
  10046. cat >conftest.$ac_ext <<_ACEOF
  10047. /* confdefs.h. */
  10048. _ACEOF
  10049. cat confdefs.h >>conftest.$ac_ext
  10050. cat >>conftest.$ac_ext <<_ACEOF
  10051. /* end confdefs.h. */
  10052. $ac_includes_default
  10053. /* malloc might have been renamed as rpl_malloc. */
  10054. #undef malloc
  10055. /* Thanks to Mike Haertel and Jim Avera for this test.
  10056. Here is a matrix of mmap possibilities:
  10057. mmap private not fixed
  10058. mmap private fixed at somewhere currently unmapped
  10059. mmap private fixed at somewhere already mapped
  10060. mmap shared not fixed
  10061. mmap shared fixed at somewhere currently unmapped
  10062. mmap shared fixed at somewhere already mapped
  10063. For private mappings, we should verify that changes cannot be read()
  10064. back from the file, nor mmap's back from the file at a different
  10065. address. (There have been systems where private was not correctly
  10066. implemented like the infamous i386 svr4.0, and systems where the
  10067. VM page cache was not coherent with the file system buffer cache
  10068. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10069. For shared mappings, we should conversely verify that changes get
  10070. propagated back to all the places they're supposed to be.
  10071. Grep wants private fixed already mapped.
  10072. The main things grep needs to know about mmap are:
  10073. * does it exist and is it safe to write into the mmap'd area
  10074. * how to use it (BSD variants) */
  10075. #include <fcntl.h>
  10076. #include <sys/mman.h>
  10077. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10078. char *malloc ();
  10079. #endif
  10080. /* This mess was copied from the GNU getpagesize.h. */
  10081. #ifndef HAVE_GETPAGESIZE
  10082. /* Assume that all systems that can run configure have sys/param.h. */
  10083. # ifndef HAVE_SYS_PARAM_H
  10084. # define HAVE_SYS_PARAM_H 1
  10085. # endif
  10086. # ifdef _SC_PAGESIZE
  10087. # define getpagesize() sysconf(_SC_PAGESIZE)
  10088. # else /* no _SC_PAGESIZE */
  10089. # ifdef HAVE_SYS_PARAM_H
  10090. # include <sys/param.h>
  10091. # ifdef EXEC_PAGESIZE
  10092. # define getpagesize() EXEC_PAGESIZE
  10093. # else /* no EXEC_PAGESIZE */
  10094. # ifdef NBPG
  10095. # define getpagesize() NBPG * CLSIZE
  10096. # ifndef CLSIZE
  10097. # define CLSIZE 1
  10098. # endif /* no CLSIZE */
  10099. # else /* no NBPG */
  10100. # ifdef NBPC
  10101. # define getpagesize() NBPC
  10102. # else /* no NBPC */
  10103. # ifdef PAGESIZE
  10104. # define getpagesize() PAGESIZE
  10105. # endif /* PAGESIZE */
  10106. # endif /* no NBPC */
  10107. # endif /* no NBPG */
  10108. # endif /* no EXEC_PAGESIZE */
  10109. # else /* no HAVE_SYS_PARAM_H */
  10110. # define getpagesize() 8192 /* punt totally */
  10111. # endif /* no HAVE_SYS_PARAM_H */
  10112. # endif /* no _SC_PAGESIZE */
  10113. #endif /* no HAVE_GETPAGESIZE */
  10114. int
  10115. main ()
  10116. {
  10117. char *data, *data2, *data3;
  10118. int i, pagesize;
  10119. int fd;
  10120. pagesize = getpagesize ();
  10121. /* First, make a file with some known garbage in it. */
  10122. data = (char *) malloc (pagesize);
  10123. if (!data)
  10124. return 1;
  10125. for (i = 0; i < pagesize; ++i)
  10126. *(data + i) = rand ();
  10127. umask (0);
  10128. fd = creat ("conftest.mmap", 0600);
  10129. if (fd < 0)
  10130. return 1;
  10131. if (write (fd, data, pagesize) != pagesize)
  10132. return 1;
  10133. close (fd);
  10134. /* Next, try to mmap the file at a fixed address which already has
  10135. something else allocated at it. If we can, also make sure that
  10136. we see the same garbage. */
  10137. fd = open ("conftest.mmap", O_RDWR);
  10138. if (fd < 0)
  10139. return 1;
  10140. data2 = (char *) malloc (2 * pagesize);
  10141. if (!data2)
  10142. return 1;
  10143. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10144. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10145. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10146. return 1;
  10147. for (i = 0; i < pagesize; ++i)
  10148. if (*(data + i) != *(data2 + i))
  10149. return 1;
  10150. /* Finally, make sure that changes to the mapped area do not
  10151. percolate back to the file as seen by read(). (This is a bug on
  10152. some variants of i386 svr4.0.) */
  10153. for (i = 0; i < pagesize; ++i)
  10154. *(data2 + i) = *(data2 + i) + 1;
  10155. data3 = (char *) malloc (pagesize);
  10156. if (!data3)
  10157. return 1;
  10158. if (read (fd, data3, pagesize) != pagesize)
  10159. return 1;
  10160. for (i = 0; i < pagesize; ++i)
  10161. if (*(data + i) != *(data3 + i))
  10162. return 1;
  10163. close (fd);
  10164. return 0;
  10165. }
  10166. _ACEOF
  10167. rm -f conftest$ac_exeext
  10168. if { (ac_try="$ac_link"
  10169. case "(($ac_try" in
  10170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10171. *) ac_try_echo=$ac_try;;
  10172. esac
  10173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10174. (eval "$ac_link") 2>&5
  10175. ac_status=$?
  10176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10177. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10178. { (case "(($ac_try" in
  10179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10180. *) ac_try_echo=$ac_try;;
  10181. esac
  10182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10183. (eval "$ac_try") 2>&5
  10184. ac_status=$?
  10185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10186. (exit $ac_status); }; }; then
  10187. ac_cv_func_mmap_fixed_mapped=yes
  10188. else
  10189. echo "$as_me: program exited with status $ac_status" >&5
  10190. echo "$as_me: failed program was:" >&5
  10191. sed 's/^/| /' conftest.$ac_ext >&5
  10192. ( exit $ac_status )
  10193. ac_cv_func_mmap_fixed_mapped=no
  10194. fi
  10195. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10196. fi
  10197. fi
  10198. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10199. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10200. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10201. cat >>confdefs.h <<\_ACEOF
  10202. #define HAVE_MMAP 1
  10203. _ACEOF
  10204. fi
  10205. rm -f conftest.mmap
  10206. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10207. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  10208. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10209. echo $ECHO_N "(cached) $ECHO_C" >&6
  10210. else
  10211. gt_cv_int_divbyzero_sigfpe=
  10212. case "$host_os" in
  10213. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10214. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10215. # compiling. If we were to perform the real test, 1 Crash Report
  10216. # dialog window would pop up.
  10217. case "$host_cpu" in
  10218. i[34567]86 | x86_64)
  10219. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10220. esac
  10221. ;;
  10222. esac
  10223. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10224. if test "$cross_compiling" = yes; then
  10225. # Guess based on the CPU.
  10226. case "$host_cpu" in
  10227. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10228. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10229. *)
  10230. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10231. esac
  10232. else
  10233. cat >conftest.$ac_ext <<_ACEOF
  10234. /* confdefs.h. */
  10235. _ACEOF
  10236. cat confdefs.h >>conftest.$ac_ext
  10237. cat >>conftest.$ac_ext <<_ACEOF
  10238. /* end confdefs.h. */
  10239. #include <stdlib.h>
  10240. #include <signal.h>
  10241. static void
  10242. sigfpe_handler (int sig)
  10243. {
  10244. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10245. exit (sig != SIGFPE);
  10246. }
  10247. int x = 1;
  10248. int y = 0;
  10249. int z;
  10250. int nan;
  10251. int main ()
  10252. {
  10253. signal (SIGFPE, sigfpe_handler);
  10254. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10255. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10256. signal (SIGTRAP, sigfpe_handler);
  10257. #endif
  10258. /* Linux/SPARC yields signal SIGILL. */
  10259. #if defined (__sparc__) && defined (__linux__)
  10260. signal (SIGILL, sigfpe_handler);
  10261. #endif
  10262. z = x / y;
  10263. nan = y / y;
  10264. exit (1);
  10265. }
  10266. _ACEOF
  10267. rm -f conftest$ac_exeext
  10268. if { (ac_try="$ac_link"
  10269. case "(($ac_try" in
  10270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10271. *) ac_try_echo=$ac_try;;
  10272. esac
  10273. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10274. (eval "$ac_link") 2>&5
  10275. ac_status=$?
  10276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10277. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10278. { (case "(($ac_try" in
  10279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10280. *) ac_try_echo=$ac_try;;
  10281. esac
  10282. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10283. (eval "$ac_try") 2>&5
  10284. ac_status=$?
  10285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10286. (exit $ac_status); }; }; then
  10287. gt_cv_int_divbyzero_sigfpe=yes
  10288. else
  10289. echo "$as_me: program exited with status $ac_status" >&5
  10290. echo "$as_me: failed program was:" >&5
  10291. sed 's/^/| /' conftest.$ac_ext >&5
  10292. ( exit $ac_status )
  10293. gt_cv_int_divbyzero_sigfpe=no
  10294. fi
  10295. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10296. fi
  10297. fi
  10298. fi
  10299. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10300. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10301. case "$gt_cv_int_divbyzero_sigfpe" in
  10302. *yes) value=1;;
  10303. *) value=0;;
  10304. esac
  10305. cat >>confdefs.h <<_ACEOF
  10306. #define INTDIV0_RAISES_SIGFPE $value
  10307. _ACEOF
  10308. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10309. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10310. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10311. echo $ECHO_N "(cached) $ECHO_C" >&6
  10312. else
  10313. cat >conftest.$ac_ext <<_ACEOF
  10314. /* confdefs.h. */
  10315. _ACEOF
  10316. cat confdefs.h >>conftest.$ac_ext
  10317. cat >>conftest.$ac_ext <<_ACEOF
  10318. /* end confdefs.h. */
  10319. #include <sys/types.h>
  10320. #include <inttypes.h>
  10321. int
  10322. main ()
  10323. {
  10324. uintmax_t i = (uintmax_t) -1; return !i;
  10325. ;
  10326. return 0;
  10327. }
  10328. _ACEOF
  10329. rm -f conftest.$ac_objext
  10330. if { (ac_try="$ac_compile"
  10331. case "(($ac_try" in
  10332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10333. *) ac_try_echo=$ac_try;;
  10334. esac
  10335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10336. (eval "$ac_compile") 2>conftest.er1
  10337. ac_status=$?
  10338. grep -v '^ *+' conftest.er1 >conftest.err
  10339. rm -f conftest.er1
  10340. cat conftest.err >&5
  10341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10342. (exit $ac_status); } && {
  10343. test -z "$ac_cxx_werror_flag" ||
  10344. test ! -s conftest.err
  10345. } && test -s conftest.$ac_objext; then
  10346. gl_cv_header_inttypes_h=yes
  10347. else
  10348. echo "$as_me: failed program was:" >&5
  10349. sed 's/^/| /' conftest.$ac_ext >&5
  10350. gl_cv_header_inttypes_h=no
  10351. fi
  10352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10353. fi
  10354. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10355. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10356. if test $gl_cv_header_inttypes_h = yes; then
  10357. cat >>confdefs.h <<_ACEOF
  10358. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10359. _ACEOF
  10360. fi
  10361. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10362. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10363. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10364. echo $ECHO_N "(cached) $ECHO_C" >&6
  10365. else
  10366. cat >conftest.$ac_ext <<_ACEOF
  10367. /* confdefs.h. */
  10368. _ACEOF
  10369. cat confdefs.h >>conftest.$ac_ext
  10370. cat >>conftest.$ac_ext <<_ACEOF
  10371. /* end confdefs.h. */
  10372. /* Test preprocessor. */
  10373. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10374. error in preprocessor;
  10375. #endif
  10376. #if ! (18446744073709551615ULL <= -1ull)
  10377. error in preprocessor;
  10378. #endif
  10379. /* Test literals. */
  10380. long long int ll = 9223372036854775807ll;
  10381. long long int nll = -9223372036854775807LL;
  10382. unsigned long long int ull = 18446744073709551615ULL;
  10383. /* Test constant expressions. */
  10384. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10385. ? 1 : -1)];
  10386. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10387. ? 1 : -1)];
  10388. int i = 63;
  10389. int
  10390. main ()
  10391. {
  10392. /* Test availability of runtime routines for shift and division. */
  10393. long long int llmax = 9223372036854775807ll;
  10394. unsigned long long int ullmax = 18446744073709551615ull;
  10395. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10396. | (llmax / ll) | (llmax % ll)
  10397. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10398. | (ullmax / ull) | (ullmax % ull));
  10399. ;
  10400. return 0;
  10401. }
  10402. _ACEOF
  10403. rm -f conftest.$ac_objext conftest$ac_exeext
  10404. if { (ac_try="$ac_link"
  10405. case "(($ac_try" in
  10406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10407. *) ac_try_echo=$ac_try;;
  10408. esac
  10409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10410. (eval "$ac_link") 2>conftest.er1
  10411. ac_status=$?
  10412. grep -v '^ *+' conftest.er1 >conftest.err
  10413. rm -f conftest.er1
  10414. cat conftest.err >&5
  10415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10416. (exit $ac_status); } && {
  10417. test -z "$ac_cxx_werror_flag" ||
  10418. test ! -s conftest.err
  10419. } && test -s conftest$ac_exeext &&
  10420. $as_test_x conftest$ac_exeext; then
  10421. ac_cv_type_unsigned_long_long_int=yes
  10422. else
  10423. echo "$as_me: failed program was:" >&5
  10424. sed 's/^/| /' conftest.$ac_ext >&5
  10425. ac_cv_type_unsigned_long_long_int=no
  10426. fi
  10427. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10428. conftest$ac_exeext conftest.$ac_ext
  10429. fi
  10430. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10431. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10432. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10433. cat >>confdefs.h <<\_ACEOF
  10434. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10435. _ACEOF
  10436. fi
  10437. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10438. test $ac_cv_type_unsigned_long_long_int = yes \
  10439. && ac_type='unsigned long long' \
  10440. || ac_type='unsigned long'
  10441. cat >>confdefs.h <<_ACEOF
  10442. #define uintmax_t $ac_type
  10443. _ACEOF
  10444. else
  10445. cat >>confdefs.h <<\_ACEOF
  10446. #define HAVE_UINTMAX_T 1
  10447. _ACEOF
  10448. fi
  10449. for ac_header in inttypes.h
  10450. do
  10451. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10452. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10453. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10454. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10455. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10456. echo $ECHO_N "(cached) $ECHO_C" >&6
  10457. fi
  10458. ac_res=`eval echo '${'$as_ac_Header'}'`
  10459. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10460. echo "${ECHO_T}$ac_res" >&6; }
  10461. else
  10462. # Is the header compilable?
  10463. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10464. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10465. cat >conftest.$ac_ext <<_ACEOF
  10466. /* confdefs.h. */
  10467. _ACEOF
  10468. cat confdefs.h >>conftest.$ac_ext
  10469. cat >>conftest.$ac_ext <<_ACEOF
  10470. /* end confdefs.h. */
  10471. $ac_includes_default
  10472. #include <$ac_header>
  10473. _ACEOF
  10474. rm -f conftest.$ac_objext
  10475. if { (ac_try="$ac_compile"
  10476. case "(($ac_try" in
  10477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10478. *) ac_try_echo=$ac_try;;
  10479. esac
  10480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10481. (eval "$ac_compile") 2>conftest.er1
  10482. ac_status=$?
  10483. grep -v '^ *+' conftest.er1 >conftest.err
  10484. rm -f conftest.er1
  10485. cat conftest.err >&5
  10486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10487. (exit $ac_status); } && {
  10488. test -z "$ac_cxx_werror_flag" ||
  10489. test ! -s conftest.err
  10490. } && test -s conftest.$ac_objext; then
  10491. ac_header_compiler=yes
  10492. else
  10493. echo "$as_me: failed program was:" >&5
  10494. sed 's/^/| /' conftest.$ac_ext >&5
  10495. ac_header_compiler=no
  10496. fi
  10497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10498. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10499. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10500. # Is the header present?
  10501. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10502. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10503. cat >conftest.$ac_ext <<_ACEOF
  10504. /* confdefs.h. */
  10505. _ACEOF
  10506. cat confdefs.h >>conftest.$ac_ext
  10507. cat >>conftest.$ac_ext <<_ACEOF
  10508. /* end confdefs.h. */
  10509. #include <$ac_header>
  10510. _ACEOF
  10511. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10512. case "(($ac_try" in
  10513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10514. *) ac_try_echo=$ac_try;;
  10515. esac
  10516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10517. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10518. ac_status=$?
  10519. grep -v '^ *+' conftest.er1 >conftest.err
  10520. rm -f conftest.er1
  10521. cat conftest.err >&5
  10522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10523. (exit $ac_status); } >/dev/null && {
  10524. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10525. test ! -s conftest.err
  10526. }; then
  10527. ac_header_preproc=yes
  10528. else
  10529. echo "$as_me: failed program was:" >&5
  10530. sed 's/^/| /' conftest.$ac_ext >&5
  10531. ac_header_preproc=no
  10532. fi
  10533. rm -f conftest.err conftest.$ac_ext
  10534. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10535. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10536. # So? What about this header?
  10537. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10538. yes:no: )
  10539. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10540. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10541. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10542. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10543. ac_header_preproc=yes
  10544. ;;
  10545. no:yes:* )
  10546. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10547. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10548. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10549. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10550. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10551. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10552. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10553. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10554. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10555. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10556. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10557. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10558. ( cat <<\_ASBOX
  10559. ## ----------------------------------------------- ##
  10560. ## Report this to t-tujikawa@users.sourceforge.net ##
  10561. ## ----------------------------------------------- ##
  10562. _ASBOX
  10563. ) | sed "s/^/$as_me: WARNING: /" >&2
  10564. ;;
  10565. esac
  10566. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10567. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10568. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10569. echo $ECHO_N "(cached) $ECHO_C" >&6
  10570. else
  10571. eval "$as_ac_Header=\$ac_header_preproc"
  10572. fi
  10573. ac_res=`eval echo '${'$as_ac_Header'}'`
  10574. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10575. echo "${ECHO_T}$ac_res" >&6; }
  10576. fi
  10577. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10578. cat >>confdefs.h <<_ACEOF
  10579. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10580. _ACEOF
  10581. fi
  10582. done
  10583. if test $ac_cv_header_inttypes_h = yes; then
  10584. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10585. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10586. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10587. echo $ECHO_N "(cached) $ECHO_C" >&6
  10588. else
  10589. cat >conftest.$ac_ext <<_ACEOF
  10590. /* confdefs.h. */
  10591. _ACEOF
  10592. cat confdefs.h >>conftest.$ac_ext
  10593. cat >>conftest.$ac_ext <<_ACEOF
  10594. /* end confdefs.h. */
  10595. #include <inttypes.h>
  10596. #ifdef PRId32
  10597. char *p = PRId32;
  10598. #endif
  10599. int
  10600. main ()
  10601. {
  10602. ;
  10603. return 0;
  10604. }
  10605. _ACEOF
  10606. rm -f conftest.$ac_objext
  10607. if { (ac_try="$ac_compile"
  10608. case "(($ac_try" in
  10609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10610. *) ac_try_echo=$ac_try;;
  10611. esac
  10612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10613. (eval "$ac_compile") 2>conftest.er1
  10614. ac_status=$?
  10615. grep -v '^ *+' conftest.er1 >conftest.err
  10616. rm -f conftest.er1
  10617. cat conftest.err >&5
  10618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10619. (exit $ac_status); } && {
  10620. test -z "$ac_cxx_werror_flag" ||
  10621. test ! -s conftest.err
  10622. } && test -s conftest.$ac_objext; then
  10623. gt_cv_inttypes_pri_broken=no
  10624. else
  10625. echo "$as_me: failed program was:" >&5
  10626. sed 's/^/| /' conftest.$ac_ext >&5
  10627. gt_cv_inttypes_pri_broken=yes
  10628. fi
  10629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10630. fi
  10631. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10632. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10633. fi
  10634. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10635. cat >>confdefs.h <<_ACEOF
  10636. #define PRI_MACROS_BROKEN 1
  10637. _ACEOF
  10638. PRI_MACROS_BROKEN=1
  10639. else
  10640. PRI_MACROS_BROKEN=0
  10641. fi
  10642. # Check whether --enable-threads was given.
  10643. if test "${enable_threads+set}" = set; then
  10644. enableval=$enable_threads; gl_use_threads=$enableval
  10645. else
  10646. case "$host_os" in
  10647. osf*) gl_use_threads=no ;;
  10648. *) gl_use_threads=yes ;;
  10649. esac
  10650. fi
  10651. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10652. # For using <pthread.h>:
  10653. case "$host_os" in
  10654. osf*)
  10655. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10656. # groks <pthread.h>. cc also understands the flag -pthread, but
  10657. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10658. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10659. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10660. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10661. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10662. ;;
  10663. esac
  10664. # Some systems optimize for single-threaded programs by default, and
  10665. # need special flags to disable these optimizations. For example, the
  10666. # definition of 'errno' in <errno.h>.
  10667. case "$host_os" in
  10668. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10669. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10670. esac
  10671. fi
  10672. if test "X$prefix" = "XNONE"; then
  10673. acl_final_prefix="$ac_default_prefix"
  10674. else
  10675. acl_final_prefix="$prefix"
  10676. fi
  10677. if test "X$exec_prefix" = "XNONE"; then
  10678. acl_final_exec_prefix='${prefix}'
  10679. else
  10680. acl_final_exec_prefix="$exec_prefix"
  10681. fi
  10682. acl_save_prefix="$prefix"
  10683. prefix="$acl_final_prefix"
  10684. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10685. prefix="$acl_save_prefix"
  10686. # Check whether --with-gnu-ld was given.
  10687. if test "${with_gnu_ld+set}" = set; then
  10688. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10689. else
  10690. with_gnu_ld=no
  10691. fi
  10692. # Prepare PATH_SEPARATOR.
  10693. # The user is always right.
  10694. if test "${PATH_SEPARATOR+set}" != set; then
  10695. echo "#! /bin/sh" >conf$$.sh
  10696. echo "exit 0" >>conf$$.sh
  10697. chmod +x conf$$.sh
  10698. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10699. PATH_SEPARATOR=';'
  10700. else
  10701. PATH_SEPARATOR=:
  10702. fi
  10703. rm -f conf$$.sh
  10704. fi
  10705. ac_prog=ld
  10706. if test "$GCC" = yes; then
  10707. # Check if gcc -print-prog-name=ld gives a path.
  10708. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10709. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10710. case $host in
  10711. *-*-mingw*)
  10712. # gcc leaves a trailing carriage return which upsets mingw
  10713. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10714. *)
  10715. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10716. esac
  10717. case $ac_prog in
  10718. # Accept absolute paths.
  10719. [\\/]* | [A-Za-z]:[\\/]*)
  10720. re_direlt='/[^/][^/]*/\.\./'
  10721. # Canonicalize the path of ld
  10722. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10723. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10724. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10725. done
  10726. test -z "$LD" && LD="$ac_prog"
  10727. ;;
  10728. "")
  10729. # If it fails, then pretend we aren't using GCC.
  10730. ac_prog=ld
  10731. ;;
  10732. *)
  10733. # If it is relative, then search for the first ld in PATH.
  10734. with_gnu_ld=unknown
  10735. ;;
  10736. esac
  10737. elif test "$with_gnu_ld" = yes; then
  10738. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10739. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10740. else
  10741. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10742. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10743. fi
  10744. if test "${acl_cv_path_LD+set}" = set; then
  10745. echo $ECHO_N "(cached) $ECHO_C" >&6
  10746. else
  10747. if test -z "$LD"; then
  10748. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10749. for ac_dir in $PATH; do
  10750. test -z "$ac_dir" && ac_dir=.
  10751. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10752. acl_cv_path_LD="$ac_dir/$ac_prog"
  10753. # Check to see if the program is GNU ld. I'd rather use --version,
  10754. # but apparently some GNU ld's only accept -v.
  10755. # Break only if it was the GNU/non-GNU ld that we prefer.
  10756. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10757. *GNU* | *'with BFD'*)
  10758. test "$with_gnu_ld" != no && break ;;
  10759. *)
  10760. test "$with_gnu_ld" != yes && break ;;
  10761. esac
  10762. fi
  10763. done
  10764. IFS="$ac_save_ifs"
  10765. else
  10766. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10767. fi
  10768. fi
  10769. LD="$acl_cv_path_LD"
  10770. if test -n "$LD"; then
  10771. { echo "$as_me:$LINENO: result: $LD" >&5
  10772. echo "${ECHO_T}$LD" >&6; }
  10773. else
  10774. { echo "$as_me:$LINENO: result: no" >&5
  10775. echo "${ECHO_T}no" >&6; }
  10776. fi
  10777. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10778. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10779. { (exit 1); exit 1; }; }
  10780. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10781. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10782. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10783. echo $ECHO_N "(cached) $ECHO_C" >&6
  10784. else
  10785. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10786. case `$LD -v 2>&1 </dev/null` in
  10787. *GNU* | *'with BFD'*)
  10788. acl_cv_prog_gnu_ld=yes ;;
  10789. *)
  10790. acl_cv_prog_gnu_ld=no ;;
  10791. esac
  10792. fi
  10793. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10794. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10795. with_gnu_ld=$acl_cv_prog_gnu_ld
  10796. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10797. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10798. if test "${acl_cv_rpath+set}" = set; then
  10799. echo $ECHO_N "(cached) $ECHO_C" >&6
  10800. else
  10801. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10802. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10803. . ./conftest.sh
  10804. rm -f ./conftest.sh
  10805. acl_cv_rpath=done
  10806. fi
  10807. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10808. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10809. wl="$acl_cv_wl"
  10810. acl_libext="$acl_cv_libext"
  10811. acl_shlibext="$acl_cv_shlibext"
  10812. acl_libname_spec="$acl_cv_libname_spec"
  10813. acl_library_names_spec="$acl_cv_library_names_spec"
  10814. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10815. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10816. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10817. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10818. # Check whether --enable-rpath was given.
  10819. if test "${enable_rpath+set}" = set; then
  10820. enableval=$enable_rpath; :
  10821. else
  10822. enable_rpath=yes
  10823. fi
  10824. acl_libdirstem=lib
  10825. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10826. if test -n "$searchpath"; then
  10827. acl_save_IFS="${IFS= }"; IFS=":"
  10828. for searchdir in $searchpath; do
  10829. if test -d "$searchdir"; then
  10830. case "$searchdir" in
  10831. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10832. *) searchdir=`cd "$searchdir" && pwd`
  10833. case "$searchdir" in
  10834. */lib64 ) acl_libdirstem=lib64 ;;
  10835. esac ;;
  10836. esac
  10837. fi
  10838. done
  10839. IFS="$acl_save_IFS"
  10840. fi
  10841. gl_threads_api=none
  10842. LIBTHREAD=
  10843. LTLIBTHREAD=
  10844. LIBMULTITHREAD=
  10845. LTLIBMULTITHREAD=
  10846. if test "$gl_use_threads" != no; then
  10847. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10848. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10849. gl_have_weak=no
  10850. cat >conftest.$ac_ext <<_ACEOF
  10851. /* confdefs.h. */
  10852. _ACEOF
  10853. cat confdefs.h >>conftest.$ac_ext
  10854. cat >>conftest.$ac_ext <<_ACEOF
  10855. /* end confdefs.h. */
  10856. extern void xyzzy ();
  10857. #pragma weak xyzzy
  10858. int
  10859. main ()
  10860. {
  10861. xyzzy();
  10862. ;
  10863. return 0;
  10864. }
  10865. _ACEOF
  10866. rm -f conftest.$ac_objext conftest$ac_exeext
  10867. if { (ac_try="$ac_link"
  10868. case "(($ac_try" in
  10869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10870. *) ac_try_echo=$ac_try;;
  10871. esac
  10872. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10873. (eval "$ac_link") 2>conftest.er1
  10874. ac_status=$?
  10875. grep -v '^ *+' conftest.er1 >conftest.err
  10876. rm -f conftest.er1
  10877. cat conftest.err >&5
  10878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10879. (exit $ac_status); } && {
  10880. test -z "$ac_cxx_werror_flag" ||
  10881. test ! -s conftest.err
  10882. } && test -s conftest$ac_exeext &&
  10883. $as_test_x conftest$ac_exeext; then
  10884. gl_have_weak=yes
  10885. else
  10886. echo "$as_me: failed program was:" >&5
  10887. sed 's/^/| /' conftest.$ac_ext >&5
  10888. fi
  10889. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10890. conftest$ac_exeext conftest.$ac_ext
  10891. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10892. echo "${ECHO_T}$gl_have_weak" >&6; }
  10893. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10894. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10895. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10896. if test "${ac_cv_header_pthread_h+set}" = set; then
  10897. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10898. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10899. if test "${ac_cv_header_pthread_h+set}" = set; then
  10900. echo $ECHO_N "(cached) $ECHO_C" >&6
  10901. fi
  10902. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10903. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10904. else
  10905. # Is the header compilable?
  10906. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10907. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10908. cat >conftest.$ac_ext <<_ACEOF
  10909. /* confdefs.h. */
  10910. _ACEOF
  10911. cat confdefs.h >>conftest.$ac_ext
  10912. cat >>conftest.$ac_ext <<_ACEOF
  10913. /* end confdefs.h. */
  10914. $ac_includes_default
  10915. #include <pthread.h>
  10916. _ACEOF
  10917. rm -f conftest.$ac_objext
  10918. if { (ac_try="$ac_compile"
  10919. case "(($ac_try" in
  10920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10921. *) ac_try_echo=$ac_try;;
  10922. esac
  10923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10924. (eval "$ac_compile") 2>conftest.er1
  10925. ac_status=$?
  10926. grep -v '^ *+' conftest.er1 >conftest.err
  10927. rm -f conftest.er1
  10928. cat conftest.err >&5
  10929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10930. (exit $ac_status); } && {
  10931. test -z "$ac_cxx_werror_flag" ||
  10932. test ! -s conftest.err
  10933. } && test -s conftest.$ac_objext; then
  10934. ac_header_compiler=yes
  10935. else
  10936. echo "$as_me: failed program was:" >&5
  10937. sed 's/^/| /' conftest.$ac_ext >&5
  10938. ac_header_compiler=no
  10939. fi
  10940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10941. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10942. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10943. # Is the header present?
  10944. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10945. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10946. cat >conftest.$ac_ext <<_ACEOF
  10947. /* confdefs.h. */
  10948. _ACEOF
  10949. cat confdefs.h >>conftest.$ac_ext
  10950. cat >>conftest.$ac_ext <<_ACEOF
  10951. /* end confdefs.h. */
  10952. #include <pthread.h>
  10953. _ACEOF
  10954. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10955. case "(($ac_try" in
  10956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10957. *) ac_try_echo=$ac_try;;
  10958. esac
  10959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10960. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10961. ac_status=$?
  10962. grep -v '^ *+' conftest.er1 >conftest.err
  10963. rm -f conftest.er1
  10964. cat conftest.err >&5
  10965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10966. (exit $ac_status); } >/dev/null && {
  10967. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10968. test ! -s conftest.err
  10969. }; then
  10970. ac_header_preproc=yes
  10971. else
  10972. echo "$as_me: failed program was:" >&5
  10973. sed 's/^/| /' conftest.$ac_ext >&5
  10974. ac_header_preproc=no
  10975. fi
  10976. rm -f conftest.err conftest.$ac_ext
  10977. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10978. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10979. # So? What about this header?
  10980. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10981. yes:no: )
  10982. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10983. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10984. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10985. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10986. ac_header_preproc=yes
  10987. ;;
  10988. no:yes:* )
  10989. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10990. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10991. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10992. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10993. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10994. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10995. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10996. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10997. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10998. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10999. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11000. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11001. ( cat <<\_ASBOX
  11002. ## ----------------------------------------------- ##
  11003. ## Report this to t-tujikawa@users.sourceforge.net ##
  11004. ## ----------------------------------------------- ##
  11005. _ASBOX
  11006. ) | sed "s/^/$as_me: WARNING: /" >&2
  11007. ;;
  11008. esac
  11009. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  11010. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  11011. if test "${ac_cv_header_pthread_h+set}" = set; then
  11012. echo $ECHO_N "(cached) $ECHO_C" >&6
  11013. else
  11014. ac_cv_header_pthread_h=$ac_header_preproc
  11015. fi
  11016. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11017. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  11018. fi
  11019. if test $ac_cv_header_pthread_h = yes; then
  11020. gl_have_pthread_h=yes
  11021. else
  11022. gl_have_pthread_h=no
  11023. fi
  11024. if test "$gl_have_pthread_h" = yes; then
  11025. # Other possible tests:
  11026. # -lpthreads (FSU threads, PCthreads)
  11027. # -lgthreads
  11028. gl_have_pthread=
  11029. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11030. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11031. # the second one only in libpthread, and lock.c needs it.
  11032. cat >conftest.$ac_ext <<_ACEOF
  11033. /* confdefs.h. */
  11034. _ACEOF
  11035. cat confdefs.h >>conftest.$ac_ext
  11036. cat >>conftest.$ac_ext <<_ACEOF
  11037. /* end confdefs.h. */
  11038. #include <pthread.h>
  11039. int
  11040. main ()
  11041. {
  11042. pthread_mutex_lock((pthread_mutex_t*)0);
  11043. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11044. ;
  11045. return 0;
  11046. }
  11047. _ACEOF
  11048. rm -f conftest.$ac_objext conftest$ac_exeext
  11049. if { (ac_try="$ac_link"
  11050. case "(($ac_try" in
  11051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11052. *) ac_try_echo=$ac_try;;
  11053. esac
  11054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11055. (eval "$ac_link") 2>conftest.er1
  11056. ac_status=$?
  11057. grep -v '^ *+' conftest.er1 >conftest.err
  11058. rm -f conftest.er1
  11059. cat conftest.err >&5
  11060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11061. (exit $ac_status); } && {
  11062. test -z "$ac_cxx_werror_flag" ||
  11063. test ! -s conftest.err
  11064. } && test -s conftest$ac_exeext &&
  11065. $as_test_x conftest$ac_exeext; then
  11066. gl_have_pthread=yes
  11067. else
  11068. echo "$as_me: failed program was:" >&5
  11069. sed 's/^/| /' conftest.$ac_ext >&5
  11070. fi
  11071. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11072. conftest$ac_exeext conftest.$ac_ext
  11073. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11074. # since it is defined as a macro on OSF/1.)
  11075. if test -n "$gl_have_pthread"; then
  11076. # The program links fine without libpthread. But it may actually
  11077. # need to link with libpthread in order to create multiple threads.
  11078. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11079. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11080. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11081. echo $ECHO_N "(cached) $ECHO_C" >&6
  11082. else
  11083. ac_check_lib_save_LIBS=$LIBS
  11084. LIBS="-lpthread $LIBS"
  11085. cat >conftest.$ac_ext <<_ACEOF
  11086. /* confdefs.h. */
  11087. _ACEOF
  11088. cat confdefs.h >>conftest.$ac_ext
  11089. cat >>conftest.$ac_ext <<_ACEOF
  11090. /* end confdefs.h. */
  11091. /* Override any GCC internal prototype to avoid an error.
  11092. Use char because int might match the return type of a GCC
  11093. builtin and then its argument prototype would still apply. */
  11094. #ifdef __cplusplus
  11095. extern "C"
  11096. #endif
  11097. char pthread_kill ();
  11098. int
  11099. main ()
  11100. {
  11101. return pthread_kill ();
  11102. ;
  11103. return 0;
  11104. }
  11105. _ACEOF
  11106. rm -f conftest.$ac_objext conftest$ac_exeext
  11107. if { (ac_try="$ac_link"
  11108. case "(($ac_try" in
  11109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11110. *) ac_try_echo=$ac_try;;
  11111. esac
  11112. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11113. (eval "$ac_link") 2>conftest.er1
  11114. ac_status=$?
  11115. grep -v '^ *+' conftest.er1 >conftest.err
  11116. rm -f conftest.er1
  11117. cat conftest.err >&5
  11118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11119. (exit $ac_status); } && {
  11120. test -z "$ac_cxx_werror_flag" ||
  11121. test ! -s conftest.err
  11122. } && test -s conftest$ac_exeext &&
  11123. $as_test_x conftest$ac_exeext; then
  11124. ac_cv_lib_pthread_pthread_kill=yes
  11125. else
  11126. echo "$as_me: failed program was:" >&5
  11127. sed 's/^/| /' conftest.$ac_ext >&5
  11128. ac_cv_lib_pthread_pthread_kill=no
  11129. fi
  11130. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11131. conftest$ac_exeext conftest.$ac_ext
  11132. LIBS=$ac_check_lib_save_LIBS
  11133. fi
  11134. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11135. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11136. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11137. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11138. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11139. # Therefore pthread_in_use() needs to actually try to create a
  11140. # thread: pthread_create from libc will fail, whereas
  11141. # pthread_create will actually create a thread.
  11142. case "$host_os" in
  11143. solaris* | hpux*)
  11144. cat >>confdefs.h <<\_ACEOF
  11145. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11146. _ACEOF
  11147. esac
  11148. fi
  11149. else
  11150. # Some library is needed. Try libpthread and libc_r.
  11151. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11152. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11153. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11154. echo $ECHO_N "(cached) $ECHO_C" >&6
  11155. else
  11156. ac_check_lib_save_LIBS=$LIBS
  11157. LIBS="-lpthread $LIBS"
  11158. cat >conftest.$ac_ext <<_ACEOF
  11159. /* confdefs.h. */
  11160. _ACEOF
  11161. cat confdefs.h >>conftest.$ac_ext
  11162. cat >>conftest.$ac_ext <<_ACEOF
  11163. /* end confdefs.h. */
  11164. /* Override any GCC internal prototype to avoid an error.
  11165. Use char because int might match the return type of a GCC
  11166. builtin and then its argument prototype would still apply. */
  11167. #ifdef __cplusplus
  11168. extern "C"
  11169. #endif
  11170. char pthread_kill ();
  11171. int
  11172. main ()
  11173. {
  11174. return pthread_kill ();
  11175. ;
  11176. return 0;
  11177. }
  11178. _ACEOF
  11179. rm -f conftest.$ac_objext conftest$ac_exeext
  11180. if { (ac_try="$ac_link"
  11181. case "(($ac_try" in
  11182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11183. *) ac_try_echo=$ac_try;;
  11184. esac
  11185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11186. (eval "$ac_link") 2>conftest.er1
  11187. ac_status=$?
  11188. grep -v '^ *+' conftest.er1 >conftest.err
  11189. rm -f conftest.er1
  11190. cat conftest.err >&5
  11191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11192. (exit $ac_status); } && {
  11193. test -z "$ac_cxx_werror_flag" ||
  11194. test ! -s conftest.err
  11195. } && test -s conftest$ac_exeext &&
  11196. $as_test_x conftest$ac_exeext; then
  11197. ac_cv_lib_pthread_pthread_kill=yes
  11198. else
  11199. echo "$as_me: failed program was:" >&5
  11200. sed 's/^/| /' conftest.$ac_ext >&5
  11201. ac_cv_lib_pthread_pthread_kill=no
  11202. fi
  11203. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11204. conftest$ac_exeext conftest.$ac_ext
  11205. LIBS=$ac_check_lib_save_LIBS
  11206. fi
  11207. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11208. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11209. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11210. gl_have_pthread=yes
  11211. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11212. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11213. fi
  11214. if test -z "$gl_have_pthread"; then
  11215. # For FreeBSD 4.
  11216. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11217. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  11218. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11219. echo $ECHO_N "(cached) $ECHO_C" >&6
  11220. else
  11221. ac_check_lib_save_LIBS=$LIBS
  11222. LIBS="-lc_r $LIBS"
  11223. cat >conftest.$ac_ext <<_ACEOF
  11224. /* confdefs.h. */
  11225. _ACEOF
  11226. cat confdefs.h >>conftest.$ac_ext
  11227. cat >>conftest.$ac_ext <<_ACEOF
  11228. /* end confdefs.h. */
  11229. /* Override any GCC internal prototype to avoid an error.
  11230. Use char because int might match the return type of a GCC
  11231. builtin and then its argument prototype would still apply. */
  11232. #ifdef __cplusplus
  11233. extern "C"
  11234. #endif
  11235. char pthread_kill ();
  11236. int
  11237. main ()
  11238. {
  11239. return pthread_kill ();
  11240. ;
  11241. return 0;
  11242. }
  11243. _ACEOF
  11244. rm -f conftest.$ac_objext conftest$ac_exeext
  11245. if { (ac_try="$ac_link"
  11246. case "(($ac_try" in
  11247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11248. *) ac_try_echo=$ac_try;;
  11249. esac
  11250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11251. (eval "$ac_link") 2>conftest.er1
  11252. ac_status=$?
  11253. grep -v '^ *+' conftest.er1 >conftest.err
  11254. rm -f conftest.er1
  11255. cat conftest.err >&5
  11256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11257. (exit $ac_status); } && {
  11258. test -z "$ac_cxx_werror_flag" ||
  11259. test ! -s conftest.err
  11260. } && test -s conftest$ac_exeext &&
  11261. $as_test_x conftest$ac_exeext; then
  11262. ac_cv_lib_c_r_pthread_kill=yes
  11263. else
  11264. echo "$as_me: failed program was:" >&5
  11265. sed 's/^/| /' conftest.$ac_ext >&5
  11266. ac_cv_lib_c_r_pthread_kill=no
  11267. fi
  11268. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11269. conftest$ac_exeext conftest.$ac_ext
  11270. LIBS=$ac_check_lib_save_LIBS
  11271. fi
  11272. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11273. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11274. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11275. gl_have_pthread=yes
  11276. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11277. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11278. fi
  11279. fi
  11280. fi
  11281. if test -n "$gl_have_pthread"; then
  11282. gl_threads_api=posix
  11283. cat >>confdefs.h <<\_ACEOF
  11284. #define USE_POSIX_THREADS 1
  11285. _ACEOF
  11286. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11287. if test $gl_have_weak = yes; then
  11288. cat >>confdefs.h <<\_ACEOF
  11289. #define USE_POSIX_THREADS_WEAK 1
  11290. _ACEOF
  11291. LIBTHREAD=
  11292. LTLIBTHREAD=
  11293. fi
  11294. fi
  11295. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11296. # pthread_rwlock_* functions.
  11297. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11298. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11299. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11300. echo $ECHO_N "(cached) $ECHO_C" >&6
  11301. else
  11302. cat >conftest.$ac_ext <<_ACEOF
  11303. /* confdefs.h. */
  11304. _ACEOF
  11305. cat confdefs.h >>conftest.$ac_ext
  11306. cat >>conftest.$ac_ext <<_ACEOF
  11307. /* end confdefs.h. */
  11308. #include <pthread.h>
  11309. typedef pthread_rwlock_t ac__type_new_;
  11310. int
  11311. main ()
  11312. {
  11313. if ((ac__type_new_ *) 0)
  11314. return 0;
  11315. if (sizeof (ac__type_new_))
  11316. return 0;
  11317. ;
  11318. return 0;
  11319. }
  11320. _ACEOF
  11321. rm -f conftest.$ac_objext
  11322. if { (ac_try="$ac_compile"
  11323. case "(($ac_try" in
  11324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11325. *) ac_try_echo=$ac_try;;
  11326. esac
  11327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11328. (eval "$ac_compile") 2>conftest.er1
  11329. ac_status=$?
  11330. grep -v '^ *+' conftest.er1 >conftest.err
  11331. rm -f conftest.er1
  11332. cat conftest.err >&5
  11333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11334. (exit $ac_status); } && {
  11335. test -z "$ac_cxx_werror_flag" ||
  11336. test ! -s conftest.err
  11337. } && test -s conftest.$ac_objext; then
  11338. ac_cv_type_pthread_rwlock_t=yes
  11339. else
  11340. echo "$as_me: failed program was:" >&5
  11341. sed 's/^/| /' conftest.$ac_ext >&5
  11342. ac_cv_type_pthread_rwlock_t=no
  11343. fi
  11344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11345. fi
  11346. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11347. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11348. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11349. cat >>confdefs.h <<\_ACEOF
  11350. #define HAVE_PTHREAD_RWLOCK 1
  11351. _ACEOF
  11352. fi
  11353. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11354. cat >conftest.$ac_ext <<_ACEOF
  11355. /* confdefs.h. */
  11356. _ACEOF
  11357. cat confdefs.h >>conftest.$ac_ext
  11358. cat >>conftest.$ac_ext <<_ACEOF
  11359. /* end confdefs.h. */
  11360. #include <pthread.h>
  11361. int
  11362. main ()
  11363. {
  11364. #if __FreeBSD__ == 4
  11365. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11366. #else
  11367. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11368. return !x;
  11369. #endif
  11370. ;
  11371. return 0;
  11372. }
  11373. _ACEOF
  11374. rm -f conftest.$ac_objext
  11375. if { (ac_try="$ac_compile"
  11376. case "(($ac_try" in
  11377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11378. *) ac_try_echo=$ac_try;;
  11379. esac
  11380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11381. (eval "$ac_compile") 2>conftest.er1
  11382. ac_status=$?
  11383. grep -v '^ *+' conftest.er1 >conftest.err
  11384. rm -f conftest.er1
  11385. cat conftest.err >&5
  11386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11387. (exit $ac_status); } && {
  11388. test -z "$ac_cxx_werror_flag" ||
  11389. test ! -s conftest.err
  11390. } && test -s conftest.$ac_objext; then
  11391. cat >>confdefs.h <<\_ACEOF
  11392. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11393. _ACEOF
  11394. else
  11395. echo "$as_me: failed program was:" >&5
  11396. sed 's/^/| /' conftest.$ac_ext >&5
  11397. fi
  11398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11399. fi
  11400. fi
  11401. fi
  11402. if test -z "$gl_have_pthread"; then
  11403. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11404. gl_have_solaristhread=
  11405. gl_save_LIBS="$LIBS"
  11406. LIBS="$LIBS -lthread"
  11407. cat >conftest.$ac_ext <<_ACEOF
  11408. /* confdefs.h. */
  11409. _ACEOF
  11410. cat confdefs.h >>conftest.$ac_ext
  11411. cat >>conftest.$ac_ext <<_ACEOF
  11412. /* end confdefs.h. */
  11413. #include <thread.h>
  11414. #include <synch.h>
  11415. int
  11416. main ()
  11417. {
  11418. thr_self();
  11419. ;
  11420. return 0;
  11421. }
  11422. _ACEOF
  11423. rm -f conftest.$ac_objext conftest$ac_exeext
  11424. if { (ac_try="$ac_link"
  11425. case "(($ac_try" in
  11426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11427. *) ac_try_echo=$ac_try;;
  11428. esac
  11429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11430. (eval "$ac_link") 2>conftest.er1
  11431. ac_status=$?
  11432. grep -v '^ *+' conftest.er1 >conftest.err
  11433. rm -f conftest.er1
  11434. cat conftest.err >&5
  11435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11436. (exit $ac_status); } && {
  11437. test -z "$ac_cxx_werror_flag" ||
  11438. test ! -s conftest.err
  11439. } && test -s conftest$ac_exeext &&
  11440. $as_test_x conftest$ac_exeext; then
  11441. gl_have_solaristhread=yes
  11442. else
  11443. echo "$as_me: failed program was:" >&5
  11444. sed 's/^/| /' conftest.$ac_ext >&5
  11445. fi
  11446. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11447. conftest$ac_exeext conftest.$ac_ext
  11448. LIBS="$gl_save_LIBS"
  11449. if test -n "$gl_have_solaristhread"; then
  11450. gl_threads_api=solaris
  11451. LIBTHREAD=-lthread
  11452. LTLIBTHREAD=-lthread
  11453. LIBMULTITHREAD="$LIBTHREAD"
  11454. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11455. cat >>confdefs.h <<\_ACEOF
  11456. #define USE_SOLARIS_THREADS 1
  11457. _ACEOF
  11458. if test $gl_have_weak = yes; then
  11459. cat >>confdefs.h <<\_ACEOF
  11460. #define USE_SOLARIS_THREADS_WEAK 1
  11461. _ACEOF
  11462. LIBTHREAD=
  11463. LTLIBTHREAD=
  11464. fi
  11465. fi
  11466. fi
  11467. fi
  11468. if test "$gl_use_threads" = pth; then
  11469. gl_save_CPPFLAGS="$CPPFLAGS"
  11470. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11471. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11472. if test "${ac_cv_libpth_libs+set}" = set; then
  11473. echo $ECHO_N "(cached) $ECHO_C" >&6
  11474. else
  11475. use_additional=yes
  11476. acl_save_prefix="$prefix"
  11477. prefix="$acl_final_prefix"
  11478. acl_save_exec_prefix="$exec_prefix"
  11479. exec_prefix="$acl_final_exec_prefix"
  11480. eval additional_includedir=\"$includedir\"
  11481. eval additional_libdir=\"$libdir\"
  11482. exec_prefix="$acl_save_exec_prefix"
  11483. prefix="$acl_save_prefix"
  11484. # Check whether --with-libpth-prefix was given.
  11485. if test "${with_libpth_prefix+set}" = set; then
  11486. withval=$with_libpth_prefix;
  11487. if test "X$withval" = "Xno"; then
  11488. use_additional=no
  11489. else
  11490. if test "X$withval" = "X"; then
  11491. acl_save_prefix="$prefix"
  11492. prefix="$acl_final_prefix"
  11493. acl_save_exec_prefix="$exec_prefix"
  11494. exec_prefix="$acl_final_exec_prefix"
  11495. eval additional_includedir=\"$includedir\"
  11496. eval additional_libdir=\"$libdir\"
  11497. exec_prefix="$acl_save_exec_prefix"
  11498. prefix="$acl_save_prefix"
  11499. else
  11500. additional_includedir="$withval/include"
  11501. additional_libdir="$withval/$acl_libdirstem"
  11502. fi
  11503. fi
  11504. fi
  11505. LIBPTH=
  11506. LTLIBPTH=
  11507. INCPTH=
  11508. LIBPTH_PREFIX=
  11509. rpathdirs=
  11510. ltrpathdirs=
  11511. names_already_handled=
  11512. names_next_round='pth '
  11513. while test -n "$names_next_round"; do
  11514. names_this_round="$names_next_round"
  11515. names_next_round=
  11516. for name in $names_this_round; do
  11517. already_handled=
  11518. for n in $names_already_handled; do
  11519. if test "$n" = "$name"; then
  11520. already_handled=yes
  11521. break
  11522. fi
  11523. done
  11524. if test -z "$already_handled"; then
  11525. names_already_handled="$names_already_handled $name"
  11526. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11527. eval value=\"\$HAVE_LIB$uppername\"
  11528. if test -n "$value"; then
  11529. if test "$value" = yes; then
  11530. eval value=\"\$LIB$uppername\"
  11531. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11532. eval value=\"\$LTLIB$uppername\"
  11533. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11534. else
  11535. :
  11536. fi
  11537. else
  11538. found_dir=
  11539. found_la=
  11540. found_so=
  11541. found_a=
  11542. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11543. if test -n "$acl_shlibext"; then
  11544. shrext=".$acl_shlibext" # typically: shrext=.so
  11545. else
  11546. shrext=
  11547. fi
  11548. if test $use_additional = yes; then
  11549. dir="$additional_libdir"
  11550. if test -n "$acl_shlibext"; then
  11551. if test -f "$dir/$libname$shrext"; then
  11552. found_dir="$dir"
  11553. found_so="$dir/$libname$shrext"
  11554. else
  11555. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11556. ver=`(cd "$dir" && \
  11557. for f in "$libname$shrext".*; do echo "$f"; done \
  11558. | sed -e "s,^$libname$shrext\\\\.,," \
  11559. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11560. | sed 1q ) 2>/dev/null`
  11561. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11562. found_dir="$dir"
  11563. found_so="$dir/$libname$shrext.$ver"
  11564. fi
  11565. else
  11566. eval library_names=\"$acl_library_names_spec\"
  11567. for f in $library_names; do
  11568. if test -f "$dir/$f"; then
  11569. found_dir="$dir"
  11570. found_so="$dir/$f"
  11571. break
  11572. fi
  11573. done
  11574. fi
  11575. fi
  11576. fi
  11577. if test "X$found_dir" = "X"; then
  11578. if test -f "$dir/$libname.$acl_libext"; then
  11579. found_dir="$dir"
  11580. found_a="$dir/$libname.$acl_libext"
  11581. fi
  11582. fi
  11583. if test "X$found_dir" != "X"; then
  11584. if test -f "$dir/$libname.la"; then
  11585. found_la="$dir/$libname.la"
  11586. fi
  11587. fi
  11588. fi
  11589. if test "X$found_dir" = "X"; then
  11590. for x in $LDFLAGS $LTLIBPTH; do
  11591. acl_save_prefix="$prefix"
  11592. prefix="$acl_final_prefix"
  11593. acl_save_exec_prefix="$exec_prefix"
  11594. exec_prefix="$acl_final_exec_prefix"
  11595. eval x=\"$x\"
  11596. exec_prefix="$acl_save_exec_prefix"
  11597. prefix="$acl_save_prefix"
  11598. case "$x" in
  11599. -L*)
  11600. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11601. if test -n "$acl_shlibext"; then
  11602. if test -f "$dir/$libname$shrext"; then
  11603. found_dir="$dir"
  11604. found_so="$dir/$libname$shrext"
  11605. else
  11606. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11607. ver=`(cd "$dir" && \
  11608. for f in "$libname$shrext".*; do echo "$f"; done \
  11609. | sed -e "s,^$libname$shrext\\\\.,," \
  11610. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11611. | sed 1q ) 2>/dev/null`
  11612. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11613. found_dir="$dir"
  11614. found_so="$dir/$libname$shrext.$ver"
  11615. fi
  11616. else
  11617. eval library_names=\"$acl_library_names_spec\"
  11618. for f in $library_names; do
  11619. if test -f "$dir/$f"; then
  11620. found_dir="$dir"
  11621. found_so="$dir/$f"
  11622. break
  11623. fi
  11624. done
  11625. fi
  11626. fi
  11627. fi
  11628. if test "X$found_dir" = "X"; then
  11629. if test -f "$dir/$libname.$acl_libext"; then
  11630. found_dir="$dir"
  11631. found_a="$dir/$libname.$acl_libext"
  11632. fi
  11633. fi
  11634. if test "X$found_dir" != "X"; then
  11635. if test -f "$dir/$libname.la"; then
  11636. found_la="$dir/$libname.la"
  11637. fi
  11638. fi
  11639. ;;
  11640. esac
  11641. if test "X$found_dir" != "X"; then
  11642. break
  11643. fi
  11644. done
  11645. fi
  11646. if test "X$found_dir" != "X"; then
  11647. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11648. if test "X$found_so" != "X"; then
  11649. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11650. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11651. else
  11652. haveit=
  11653. for x in $ltrpathdirs; do
  11654. if test "X$x" = "X$found_dir"; then
  11655. haveit=yes
  11656. break
  11657. fi
  11658. done
  11659. if test -z "$haveit"; then
  11660. ltrpathdirs="$ltrpathdirs $found_dir"
  11661. fi
  11662. if test "$acl_hardcode_direct" = yes; then
  11663. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11664. else
  11665. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11666. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11667. haveit=
  11668. for x in $rpathdirs; do
  11669. if test "X$x" = "X$found_dir"; then
  11670. haveit=yes
  11671. break
  11672. fi
  11673. done
  11674. if test -z "$haveit"; then
  11675. rpathdirs="$rpathdirs $found_dir"
  11676. fi
  11677. else
  11678. haveit=
  11679. for x in $LDFLAGS $LIBPTH; do
  11680. acl_save_prefix="$prefix"
  11681. prefix="$acl_final_prefix"
  11682. acl_save_exec_prefix="$exec_prefix"
  11683. exec_prefix="$acl_final_exec_prefix"
  11684. eval x=\"$x\"
  11685. exec_prefix="$acl_save_exec_prefix"
  11686. prefix="$acl_save_prefix"
  11687. if test "X$x" = "X-L$found_dir"; then
  11688. haveit=yes
  11689. break
  11690. fi
  11691. done
  11692. if test -z "$haveit"; then
  11693. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11694. fi
  11695. if test "$acl_hardcode_minus_L" != no; then
  11696. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11697. else
  11698. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11699. fi
  11700. fi
  11701. fi
  11702. fi
  11703. else
  11704. if test "X$found_a" != "X"; then
  11705. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11706. else
  11707. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11708. fi
  11709. fi
  11710. additional_includedir=
  11711. case "$found_dir" in
  11712. */$acl_libdirstem | */$acl_libdirstem/)
  11713. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11714. LIBPTH_PREFIX="$basedir"
  11715. additional_includedir="$basedir/include"
  11716. ;;
  11717. esac
  11718. if test "X$additional_includedir" != "X"; then
  11719. if test "X$additional_includedir" != "X/usr/include"; then
  11720. haveit=
  11721. if test "X$additional_includedir" = "X/usr/local/include"; then
  11722. if test -n "$GCC"; then
  11723. case $host_os in
  11724. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11725. esac
  11726. fi
  11727. fi
  11728. if test -z "$haveit"; then
  11729. for x in $CPPFLAGS $INCPTH; do
  11730. acl_save_prefix="$prefix"
  11731. prefix="$acl_final_prefix"
  11732. acl_save_exec_prefix="$exec_prefix"
  11733. exec_prefix="$acl_final_exec_prefix"
  11734. eval x=\"$x\"
  11735. exec_prefix="$acl_save_exec_prefix"
  11736. prefix="$acl_save_prefix"
  11737. if test "X$x" = "X-I$additional_includedir"; then
  11738. haveit=yes
  11739. break
  11740. fi
  11741. done
  11742. if test -z "$haveit"; then
  11743. if test -d "$additional_includedir"; then
  11744. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11745. fi
  11746. fi
  11747. fi
  11748. fi
  11749. fi
  11750. if test -n "$found_la"; then
  11751. save_libdir="$libdir"
  11752. case "$found_la" in
  11753. */* | *\\*) . "$found_la" ;;
  11754. *) . "./$found_la" ;;
  11755. esac
  11756. libdir="$save_libdir"
  11757. for dep in $dependency_libs; do
  11758. case "$dep" in
  11759. -L*)
  11760. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11761. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11762. haveit=
  11763. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11764. if test -n "$GCC"; then
  11765. case $host_os in
  11766. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11767. esac
  11768. fi
  11769. fi
  11770. if test -z "$haveit"; then
  11771. haveit=
  11772. for x in $LDFLAGS $LIBPTH; do
  11773. acl_save_prefix="$prefix"
  11774. prefix="$acl_final_prefix"
  11775. acl_save_exec_prefix="$exec_prefix"
  11776. exec_prefix="$acl_final_exec_prefix"
  11777. eval x=\"$x\"
  11778. exec_prefix="$acl_save_exec_prefix"
  11779. prefix="$acl_save_prefix"
  11780. if test "X$x" = "X-L$additional_libdir"; then
  11781. haveit=yes
  11782. break
  11783. fi
  11784. done
  11785. if test -z "$haveit"; then
  11786. if test -d "$additional_libdir"; then
  11787. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11788. fi
  11789. fi
  11790. haveit=
  11791. for x in $LDFLAGS $LTLIBPTH; do
  11792. acl_save_prefix="$prefix"
  11793. prefix="$acl_final_prefix"
  11794. acl_save_exec_prefix="$exec_prefix"
  11795. exec_prefix="$acl_final_exec_prefix"
  11796. eval x=\"$x\"
  11797. exec_prefix="$acl_save_exec_prefix"
  11798. prefix="$acl_save_prefix"
  11799. if test "X$x" = "X-L$additional_libdir"; then
  11800. haveit=yes
  11801. break
  11802. fi
  11803. done
  11804. if test -z "$haveit"; then
  11805. if test -d "$additional_libdir"; then
  11806. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11807. fi
  11808. fi
  11809. fi
  11810. fi
  11811. ;;
  11812. -R*)
  11813. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11814. if test "$enable_rpath" != no; then
  11815. haveit=
  11816. for x in $rpathdirs; do
  11817. if test "X$x" = "X$dir"; then
  11818. haveit=yes
  11819. break
  11820. fi
  11821. done
  11822. if test -z "$haveit"; then
  11823. rpathdirs="$rpathdirs $dir"
  11824. fi
  11825. haveit=
  11826. for x in $ltrpathdirs; do
  11827. if test "X$x" = "X$dir"; then
  11828. haveit=yes
  11829. break
  11830. fi
  11831. done
  11832. if test -z "$haveit"; then
  11833. ltrpathdirs="$ltrpathdirs $dir"
  11834. fi
  11835. fi
  11836. ;;
  11837. -l*)
  11838. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11839. ;;
  11840. *.la)
  11841. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11842. ;;
  11843. *)
  11844. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11845. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11846. ;;
  11847. esac
  11848. done
  11849. fi
  11850. else
  11851. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11852. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11853. fi
  11854. fi
  11855. fi
  11856. done
  11857. done
  11858. if test "X$rpathdirs" != "X"; then
  11859. if test -n "$acl_hardcode_libdir_separator"; then
  11860. alldirs=
  11861. for found_dir in $rpathdirs; do
  11862. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11863. done
  11864. acl_save_libdir="$libdir"
  11865. libdir="$alldirs"
  11866. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11867. libdir="$acl_save_libdir"
  11868. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11869. else
  11870. for found_dir in $rpathdirs; do
  11871. acl_save_libdir="$libdir"
  11872. libdir="$found_dir"
  11873. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11874. libdir="$acl_save_libdir"
  11875. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11876. done
  11877. fi
  11878. fi
  11879. if test "X$ltrpathdirs" != "X"; then
  11880. for found_dir in $ltrpathdirs; do
  11881. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11882. done
  11883. fi
  11884. ac_cv_libpth_libs="$LIBPTH"
  11885. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11886. ac_cv_libpth_cppflags="$INCPTH"
  11887. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11888. fi
  11889. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11890. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11891. LIBPTH="$ac_cv_libpth_libs"
  11892. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11893. INCPTH="$ac_cv_libpth_cppflags"
  11894. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11895. for element in $INCPTH; do
  11896. haveit=
  11897. for x in $CPPFLAGS; do
  11898. acl_save_prefix="$prefix"
  11899. prefix="$acl_final_prefix"
  11900. acl_save_exec_prefix="$exec_prefix"
  11901. exec_prefix="$acl_final_exec_prefix"
  11902. eval x=\"$x\"
  11903. exec_prefix="$acl_save_exec_prefix"
  11904. prefix="$acl_save_prefix"
  11905. if test "X$x" = "X$element"; then
  11906. haveit=yes
  11907. break
  11908. fi
  11909. done
  11910. if test -z "$haveit"; then
  11911. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11912. fi
  11913. done
  11914. HAVE_LIBPTH=yes
  11915. gl_have_pth=
  11916. gl_save_LIBS="$LIBS"
  11917. LIBS="$LIBS -lpth"
  11918. cat >conftest.$ac_ext <<_ACEOF
  11919. /* confdefs.h. */
  11920. _ACEOF
  11921. cat confdefs.h >>conftest.$ac_ext
  11922. cat >>conftest.$ac_ext <<_ACEOF
  11923. /* end confdefs.h. */
  11924. #include <pth.h>
  11925. int
  11926. main ()
  11927. {
  11928. pth_self();
  11929. ;
  11930. return 0;
  11931. }
  11932. _ACEOF
  11933. rm -f conftest.$ac_objext conftest$ac_exeext
  11934. if { (ac_try="$ac_link"
  11935. case "(($ac_try" in
  11936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11937. *) ac_try_echo=$ac_try;;
  11938. esac
  11939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11940. (eval "$ac_link") 2>conftest.er1
  11941. ac_status=$?
  11942. grep -v '^ *+' conftest.er1 >conftest.err
  11943. rm -f conftest.er1
  11944. cat conftest.err >&5
  11945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11946. (exit $ac_status); } && {
  11947. test -z "$ac_cxx_werror_flag" ||
  11948. test ! -s conftest.err
  11949. } && test -s conftest$ac_exeext &&
  11950. $as_test_x conftest$ac_exeext; then
  11951. gl_have_pth=yes
  11952. else
  11953. echo "$as_me: failed program was:" >&5
  11954. sed 's/^/| /' conftest.$ac_ext >&5
  11955. fi
  11956. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11957. conftest$ac_exeext conftest.$ac_ext
  11958. LIBS="$gl_save_LIBS"
  11959. if test -n "$gl_have_pth"; then
  11960. gl_threads_api=pth
  11961. LIBTHREAD="$LIBPTH"
  11962. LTLIBTHREAD="$LTLIBPTH"
  11963. LIBMULTITHREAD="$LIBTHREAD"
  11964. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11965. cat >>confdefs.h <<\_ACEOF
  11966. #define USE_PTH_THREADS 1
  11967. _ACEOF
  11968. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11969. if test $gl_have_weak = yes; then
  11970. cat >>confdefs.h <<\_ACEOF
  11971. #define USE_PTH_THREADS_WEAK 1
  11972. _ACEOF
  11973. LIBTHREAD=
  11974. LTLIBTHREAD=
  11975. fi
  11976. fi
  11977. else
  11978. CPPFLAGS="$gl_save_CPPFLAGS"
  11979. fi
  11980. fi
  11981. if test -z "$gl_have_pthread"; then
  11982. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11983. if { case "$host_os" in
  11984. mingw*) true;;
  11985. *) false;;
  11986. esac
  11987. }; then
  11988. gl_threads_api=win32
  11989. cat >>confdefs.h <<\_ACEOF
  11990. #define USE_WIN32_THREADS 1
  11991. _ACEOF
  11992. fi
  11993. fi
  11994. fi
  11995. fi
  11996. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11997. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11998. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11999. echo "${ECHO_T}$gl_threads_api" >&6; }
  12000. use_additional=yes
  12001. acl_save_prefix="$prefix"
  12002. prefix="$acl_final_prefix"
  12003. acl_save_exec_prefix="$exec_prefix"
  12004. exec_prefix="$acl_final_exec_prefix"
  12005. eval additional_includedir=\"$includedir\"
  12006. eval additional_libdir=\"$libdir\"
  12007. exec_prefix="$acl_save_exec_prefix"
  12008. prefix="$acl_save_prefix"
  12009. # Check whether --with-libiconv-prefix was given.
  12010. if test "${with_libiconv_prefix+set}" = set; then
  12011. withval=$with_libiconv_prefix;
  12012. if test "X$withval" = "Xno"; then
  12013. use_additional=no
  12014. else
  12015. if test "X$withval" = "X"; then
  12016. acl_save_prefix="$prefix"
  12017. prefix="$acl_final_prefix"
  12018. acl_save_exec_prefix="$exec_prefix"
  12019. exec_prefix="$acl_final_exec_prefix"
  12020. eval additional_includedir=\"$includedir\"
  12021. eval additional_libdir=\"$libdir\"
  12022. exec_prefix="$acl_save_exec_prefix"
  12023. prefix="$acl_save_prefix"
  12024. else
  12025. additional_includedir="$withval/include"
  12026. additional_libdir="$withval/$acl_libdirstem"
  12027. fi
  12028. fi
  12029. fi
  12030. LIBICONV=
  12031. LTLIBICONV=
  12032. INCICONV=
  12033. LIBICONV_PREFIX=
  12034. rpathdirs=
  12035. ltrpathdirs=
  12036. names_already_handled=
  12037. names_next_round='iconv '
  12038. while test -n "$names_next_round"; do
  12039. names_this_round="$names_next_round"
  12040. names_next_round=
  12041. for name in $names_this_round; do
  12042. already_handled=
  12043. for n in $names_already_handled; do
  12044. if test "$n" = "$name"; then
  12045. already_handled=yes
  12046. break
  12047. fi
  12048. done
  12049. if test -z "$already_handled"; then
  12050. names_already_handled="$names_already_handled $name"
  12051. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12052. eval value=\"\$HAVE_LIB$uppername\"
  12053. if test -n "$value"; then
  12054. if test "$value" = yes; then
  12055. eval value=\"\$LIB$uppername\"
  12056. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12057. eval value=\"\$LTLIB$uppername\"
  12058. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12059. else
  12060. :
  12061. fi
  12062. else
  12063. found_dir=
  12064. found_la=
  12065. found_so=
  12066. found_a=
  12067. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12068. if test -n "$acl_shlibext"; then
  12069. shrext=".$acl_shlibext" # typically: shrext=.so
  12070. else
  12071. shrext=
  12072. fi
  12073. if test $use_additional = yes; then
  12074. dir="$additional_libdir"
  12075. if test -n "$acl_shlibext"; then
  12076. if test -f "$dir/$libname$shrext"; then
  12077. found_dir="$dir"
  12078. found_so="$dir/$libname$shrext"
  12079. else
  12080. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12081. ver=`(cd "$dir" && \
  12082. for f in "$libname$shrext".*; do echo "$f"; done \
  12083. | sed -e "s,^$libname$shrext\\\\.,," \
  12084. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12085. | sed 1q ) 2>/dev/null`
  12086. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12087. found_dir="$dir"
  12088. found_so="$dir/$libname$shrext.$ver"
  12089. fi
  12090. else
  12091. eval library_names=\"$acl_library_names_spec\"
  12092. for f in $library_names; do
  12093. if test -f "$dir/$f"; then
  12094. found_dir="$dir"
  12095. found_so="$dir/$f"
  12096. break
  12097. fi
  12098. done
  12099. fi
  12100. fi
  12101. fi
  12102. if test "X$found_dir" = "X"; then
  12103. if test -f "$dir/$libname.$acl_libext"; then
  12104. found_dir="$dir"
  12105. found_a="$dir/$libname.$acl_libext"
  12106. fi
  12107. fi
  12108. if test "X$found_dir" != "X"; then
  12109. if test -f "$dir/$libname.la"; then
  12110. found_la="$dir/$libname.la"
  12111. fi
  12112. fi
  12113. fi
  12114. if test "X$found_dir" = "X"; then
  12115. for x in $LDFLAGS $LTLIBICONV; do
  12116. acl_save_prefix="$prefix"
  12117. prefix="$acl_final_prefix"
  12118. acl_save_exec_prefix="$exec_prefix"
  12119. exec_prefix="$acl_final_exec_prefix"
  12120. eval x=\"$x\"
  12121. exec_prefix="$acl_save_exec_prefix"
  12122. prefix="$acl_save_prefix"
  12123. case "$x" in
  12124. -L*)
  12125. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12126. if test -n "$acl_shlibext"; then
  12127. if test -f "$dir/$libname$shrext"; then
  12128. found_dir="$dir"
  12129. found_so="$dir/$libname$shrext"
  12130. else
  12131. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12132. ver=`(cd "$dir" && \
  12133. for f in "$libname$shrext".*; do echo "$f"; done \
  12134. | sed -e "s,^$libname$shrext\\\\.,," \
  12135. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12136. | sed 1q ) 2>/dev/null`
  12137. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12138. found_dir="$dir"
  12139. found_so="$dir/$libname$shrext.$ver"
  12140. fi
  12141. else
  12142. eval library_names=\"$acl_library_names_spec\"
  12143. for f in $library_names; do
  12144. if test -f "$dir/$f"; then
  12145. found_dir="$dir"
  12146. found_so="$dir/$f"
  12147. break
  12148. fi
  12149. done
  12150. fi
  12151. fi
  12152. fi
  12153. if test "X$found_dir" = "X"; then
  12154. if test -f "$dir/$libname.$acl_libext"; then
  12155. found_dir="$dir"
  12156. found_a="$dir/$libname.$acl_libext"
  12157. fi
  12158. fi
  12159. if test "X$found_dir" != "X"; then
  12160. if test -f "$dir/$libname.la"; then
  12161. found_la="$dir/$libname.la"
  12162. fi
  12163. fi
  12164. ;;
  12165. esac
  12166. if test "X$found_dir" != "X"; then
  12167. break
  12168. fi
  12169. done
  12170. fi
  12171. if test "X$found_dir" != "X"; then
  12172. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12173. if test "X$found_so" != "X"; then
  12174. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12175. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12176. else
  12177. haveit=
  12178. for x in $ltrpathdirs; do
  12179. if test "X$x" = "X$found_dir"; then
  12180. haveit=yes
  12181. break
  12182. fi
  12183. done
  12184. if test -z "$haveit"; then
  12185. ltrpathdirs="$ltrpathdirs $found_dir"
  12186. fi
  12187. if test "$acl_hardcode_direct" = yes; then
  12188. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12189. else
  12190. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12191. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12192. haveit=
  12193. for x in $rpathdirs; do
  12194. if test "X$x" = "X$found_dir"; then
  12195. haveit=yes
  12196. break
  12197. fi
  12198. done
  12199. if test -z "$haveit"; then
  12200. rpathdirs="$rpathdirs $found_dir"
  12201. fi
  12202. else
  12203. haveit=
  12204. for x in $LDFLAGS $LIBICONV; do
  12205. acl_save_prefix="$prefix"
  12206. prefix="$acl_final_prefix"
  12207. acl_save_exec_prefix="$exec_prefix"
  12208. exec_prefix="$acl_final_exec_prefix"
  12209. eval x=\"$x\"
  12210. exec_prefix="$acl_save_exec_prefix"
  12211. prefix="$acl_save_prefix"
  12212. if test "X$x" = "X-L$found_dir"; then
  12213. haveit=yes
  12214. break
  12215. fi
  12216. done
  12217. if test -z "$haveit"; then
  12218. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12219. fi
  12220. if test "$acl_hardcode_minus_L" != no; then
  12221. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12222. else
  12223. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12224. fi
  12225. fi
  12226. fi
  12227. fi
  12228. else
  12229. if test "X$found_a" != "X"; then
  12230. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12231. else
  12232. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12233. fi
  12234. fi
  12235. additional_includedir=
  12236. case "$found_dir" in
  12237. */$acl_libdirstem | */$acl_libdirstem/)
  12238. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12239. LIBICONV_PREFIX="$basedir"
  12240. additional_includedir="$basedir/include"
  12241. ;;
  12242. esac
  12243. if test "X$additional_includedir" != "X"; then
  12244. if test "X$additional_includedir" != "X/usr/include"; then
  12245. haveit=
  12246. if test "X$additional_includedir" = "X/usr/local/include"; then
  12247. if test -n "$GCC"; then
  12248. case $host_os in
  12249. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12250. esac
  12251. fi
  12252. fi
  12253. if test -z "$haveit"; then
  12254. for x in $CPPFLAGS $INCICONV; do
  12255. acl_save_prefix="$prefix"
  12256. prefix="$acl_final_prefix"
  12257. acl_save_exec_prefix="$exec_prefix"
  12258. exec_prefix="$acl_final_exec_prefix"
  12259. eval x=\"$x\"
  12260. exec_prefix="$acl_save_exec_prefix"
  12261. prefix="$acl_save_prefix"
  12262. if test "X$x" = "X-I$additional_includedir"; then
  12263. haveit=yes
  12264. break
  12265. fi
  12266. done
  12267. if test -z "$haveit"; then
  12268. if test -d "$additional_includedir"; then
  12269. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12270. fi
  12271. fi
  12272. fi
  12273. fi
  12274. fi
  12275. if test -n "$found_la"; then
  12276. save_libdir="$libdir"
  12277. case "$found_la" in
  12278. */* | *\\*) . "$found_la" ;;
  12279. *) . "./$found_la" ;;
  12280. esac
  12281. libdir="$save_libdir"
  12282. for dep in $dependency_libs; do
  12283. case "$dep" in
  12284. -L*)
  12285. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12286. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12287. haveit=
  12288. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12289. if test -n "$GCC"; then
  12290. case $host_os in
  12291. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12292. esac
  12293. fi
  12294. fi
  12295. if test -z "$haveit"; then
  12296. haveit=
  12297. for x in $LDFLAGS $LIBICONV; do
  12298. acl_save_prefix="$prefix"
  12299. prefix="$acl_final_prefix"
  12300. acl_save_exec_prefix="$exec_prefix"
  12301. exec_prefix="$acl_final_exec_prefix"
  12302. eval x=\"$x\"
  12303. exec_prefix="$acl_save_exec_prefix"
  12304. prefix="$acl_save_prefix"
  12305. if test "X$x" = "X-L$additional_libdir"; then
  12306. haveit=yes
  12307. break
  12308. fi
  12309. done
  12310. if test -z "$haveit"; then
  12311. if test -d "$additional_libdir"; then
  12312. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12313. fi
  12314. fi
  12315. haveit=
  12316. for x in $LDFLAGS $LTLIBICONV; do
  12317. acl_save_prefix="$prefix"
  12318. prefix="$acl_final_prefix"
  12319. acl_save_exec_prefix="$exec_prefix"
  12320. exec_prefix="$acl_final_exec_prefix"
  12321. eval x=\"$x\"
  12322. exec_prefix="$acl_save_exec_prefix"
  12323. prefix="$acl_save_prefix"
  12324. if test "X$x" = "X-L$additional_libdir"; then
  12325. haveit=yes
  12326. break
  12327. fi
  12328. done
  12329. if test -z "$haveit"; then
  12330. if test -d "$additional_libdir"; then
  12331. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12332. fi
  12333. fi
  12334. fi
  12335. fi
  12336. ;;
  12337. -R*)
  12338. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12339. if test "$enable_rpath" != no; then
  12340. haveit=
  12341. for x in $rpathdirs; do
  12342. if test "X$x" = "X$dir"; then
  12343. haveit=yes
  12344. break
  12345. fi
  12346. done
  12347. if test -z "$haveit"; then
  12348. rpathdirs="$rpathdirs $dir"
  12349. fi
  12350. haveit=
  12351. for x in $ltrpathdirs; do
  12352. if test "X$x" = "X$dir"; then
  12353. haveit=yes
  12354. break
  12355. fi
  12356. done
  12357. if test -z "$haveit"; then
  12358. ltrpathdirs="$ltrpathdirs $dir"
  12359. fi
  12360. fi
  12361. ;;
  12362. -l*)
  12363. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12364. ;;
  12365. *.la)
  12366. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12367. ;;
  12368. *)
  12369. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12370. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12371. ;;
  12372. esac
  12373. done
  12374. fi
  12375. else
  12376. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12377. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12378. fi
  12379. fi
  12380. fi
  12381. done
  12382. done
  12383. if test "X$rpathdirs" != "X"; then
  12384. if test -n "$acl_hardcode_libdir_separator"; then
  12385. alldirs=
  12386. for found_dir in $rpathdirs; do
  12387. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12388. done
  12389. acl_save_libdir="$libdir"
  12390. libdir="$alldirs"
  12391. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12392. libdir="$acl_save_libdir"
  12393. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12394. else
  12395. for found_dir in $rpathdirs; do
  12396. acl_save_libdir="$libdir"
  12397. libdir="$found_dir"
  12398. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12399. libdir="$acl_save_libdir"
  12400. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12401. done
  12402. fi
  12403. fi
  12404. if test "X$ltrpathdirs" != "X"; then
  12405. for found_dir in $ltrpathdirs; do
  12406. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12407. done
  12408. fi
  12409. cat >conftest.$ac_ext <<_ACEOF
  12410. /* confdefs.h. */
  12411. _ACEOF
  12412. cat confdefs.h >>conftest.$ac_ext
  12413. cat >>conftest.$ac_ext <<_ACEOF
  12414. /* end confdefs.h. */
  12415. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12416. int
  12417. main ()
  12418. {
  12419. ;
  12420. return 0;
  12421. }
  12422. _ACEOF
  12423. rm -f conftest.$ac_objext conftest$ac_exeext
  12424. if { (ac_try="$ac_link"
  12425. case "(($ac_try" in
  12426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12427. *) ac_try_echo=$ac_try;;
  12428. esac
  12429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12430. (eval "$ac_link") 2>conftest.er1
  12431. ac_status=$?
  12432. grep -v '^ *+' conftest.er1 >conftest.err
  12433. rm -f conftest.er1
  12434. cat conftest.err >&5
  12435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12436. (exit $ac_status); } && {
  12437. test -z "$ac_cxx_werror_flag" ||
  12438. test ! -s conftest.err
  12439. } && test -s conftest$ac_exeext &&
  12440. $as_test_x conftest$ac_exeext; then
  12441. cat >>confdefs.h <<\_ACEOF
  12442. #define HAVE_BUILTIN_EXPECT 1
  12443. _ACEOF
  12444. else
  12445. echo "$as_me: failed program was:" >&5
  12446. sed 's/^/| /' conftest.$ac_ext >&5
  12447. fi
  12448. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12449. conftest$ac_exeext conftest.$ac_ext
  12450. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12451. do
  12452. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12453. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12454. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12455. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12456. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12457. echo $ECHO_N "(cached) $ECHO_C" >&6
  12458. fi
  12459. ac_res=`eval echo '${'$as_ac_Header'}'`
  12460. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12461. echo "${ECHO_T}$ac_res" >&6; }
  12462. else
  12463. # Is the header compilable?
  12464. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12465. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12466. cat >conftest.$ac_ext <<_ACEOF
  12467. /* confdefs.h. */
  12468. _ACEOF
  12469. cat confdefs.h >>conftest.$ac_ext
  12470. cat >>conftest.$ac_ext <<_ACEOF
  12471. /* end confdefs.h. */
  12472. $ac_includes_default
  12473. #include <$ac_header>
  12474. _ACEOF
  12475. rm -f conftest.$ac_objext
  12476. if { (ac_try="$ac_compile"
  12477. case "(($ac_try" in
  12478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12479. *) ac_try_echo=$ac_try;;
  12480. esac
  12481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12482. (eval "$ac_compile") 2>conftest.er1
  12483. ac_status=$?
  12484. grep -v '^ *+' conftest.er1 >conftest.err
  12485. rm -f conftest.er1
  12486. cat conftest.err >&5
  12487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12488. (exit $ac_status); } && {
  12489. test -z "$ac_cxx_werror_flag" ||
  12490. test ! -s conftest.err
  12491. } && test -s conftest.$ac_objext; then
  12492. ac_header_compiler=yes
  12493. else
  12494. echo "$as_me: failed program was:" >&5
  12495. sed 's/^/| /' conftest.$ac_ext >&5
  12496. ac_header_compiler=no
  12497. fi
  12498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12499. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12500. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12501. # Is the header present?
  12502. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12503. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12504. cat >conftest.$ac_ext <<_ACEOF
  12505. /* confdefs.h. */
  12506. _ACEOF
  12507. cat confdefs.h >>conftest.$ac_ext
  12508. cat >>conftest.$ac_ext <<_ACEOF
  12509. /* end confdefs.h. */
  12510. #include <$ac_header>
  12511. _ACEOF
  12512. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12513. case "(($ac_try" in
  12514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12515. *) ac_try_echo=$ac_try;;
  12516. esac
  12517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12518. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12519. ac_status=$?
  12520. grep -v '^ *+' conftest.er1 >conftest.err
  12521. rm -f conftest.er1
  12522. cat conftest.err >&5
  12523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12524. (exit $ac_status); } >/dev/null && {
  12525. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12526. test ! -s conftest.err
  12527. }; then
  12528. ac_header_preproc=yes
  12529. else
  12530. echo "$as_me: failed program was:" >&5
  12531. sed 's/^/| /' conftest.$ac_ext >&5
  12532. ac_header_preproc=no
  12533. fi
  12534. rm -f conftest.err conftest.$ac_ext
  12535. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12536. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12537. # So? What about this header?
  12538. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12539. yes:no: )
  12540. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12541. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12542. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12543. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12544. ac_header_preproc=yes
  12545. ;;
  12546. no:yes:* )
  12547. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12548. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12549. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12550. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12551. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12552. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12553. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12554. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12555. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12556. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12557. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12558. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12559. ( cat <<\_ASBOX
  12560. ## ----------------------------------------------- ##
  12561. ## Report this to t-tujikawa@users.sourceforge.net ##
  12562. ## ----------------------------------------------- ##
  12563. _ASBOX
  12564. ) | sed "s/^/$as_me: WARNING: /" >&2
  12565. ;;
  12566. esac
  12567. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12568. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12569. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12570. echo $ECHO_N "(cached) $ECHO_C" >&6
  12571. else
  12572. eval "$as_ac_Header=\$ac_header_preproc"
  12573. fi
  12574. ac_res=`eval echo '${'$as_ac_Header'}'`
  12575. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12576. echo "${ECHO_T}$ac_res" >&6; }
  12577. fi
  12578. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12579. cat >>confdefs.h <<_ACEOF
  12580. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12581. _ACEOF
  12582. fi
  12583. done
  12584. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12585. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12586. argz_next __fsetlocking
  12587. do
  12588. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12589. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12590. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12591. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12592. echo $ECHO_N "(cached) $ECHO_C" >&6
  12593. else
  12594. cat >conftest.$ac_ext <<_ACEOF
  12595. /* confdefs.h. */
  12596. _ACEOF
  12597. cat confdefs.h >>conftest.$ac_ext
  12598. cat >>conftest.$ac_ext <<_ACEOF
  12599. /* end confdefs.h. */
  12600. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12601. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12602. #define $ac_func innocuous_$ac_func
  12603. /* System header to define __stub macros and hopefully few prototypes,
  12604. which can conflict with char $ac_func (); below.
  12605. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12606. <limits.h> exists even on freestanding compilers. */
  12607. #ifdef __STDC__
  12608. # include <limits.h>
  12609. #else
  12610. # include <assert.h>
  12611. #endif
  12612. #undef $ac_func
  12613. /* Override any GCC internal prototype to avoid an error.
  12614. Use char because int might match the return type of a GCC
  12615. builtin and then its argument prototype would still apply. */
  12616. #ifdef __cplusplus
  12617. extern "C"
  12618. #endif
  12619. char $ac_func ();
  12620. /* The GNU C library defines this for functions which it implements
  12621. to always fail with ENOSYS. Some functions are actually named
  12622. something starting with __ and the normal name is an alias. */
  12623. #if defined __stub_$ac_func || defined __stub___$ac_func
  12624. choke me
  12625. #endif
  12626. int
  12627. main ()
  12628. {
  12629. return $ac_func ();
  12630. ;
  12631. return 0;
  12632. }
  12633. _ACEOF
  12634. rm -f conftest.$ac_objext conftest$ac_exeext
  12635. if { (ac_try="$ac_link"
  12636. case "(($ac_try" in
  12637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12638. *) ac_try_echo=$ac_try;;
  12639. esac
  12640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12641. (eval "$ac_link") 2>conftest.er1
  12642. ac_status=$?
  12643. grep -v '^ *+' conftest.er1 >conftest.err
  12644. rm -f conftest.er1
  12645. cat conftest.err >&5
  12646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12647. (exit $ac_status); } && {
  12648. test -z "$ac_cxx_werror_flag" ||
  12649. test ! -s conftest.err
  12650. } && test -s conftest$ac_exeext &&
  12651. $as_test_x conftest$ac_exeext; then
  12652. eval "$as_ac_var=yes"
  12653. else
  12654. echo "$as_me: failed program was:" >&5
  12655. sed 's/^/| /' conftest.$ac_ext >&5
  12656. eval "$as_ac_var=no"
  12657. fi
  12658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12659. conftest$ac_exeext conftest.$ac_ext
  12660. fi
  12661. ac_res=`eval echo '${'$as_ac_var'}'`
  12662. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12663. echo "${ECHO_T}$ac_res" >&6; }
  12664. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12665. cat >>confdefs.h <<_ACEOF
  12666. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12667. _ACEOF
  12668. fi
  12669. done
  12670. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12671. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12672. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12673. echo $ECHO_N "(cached) $ECHO_C" >&6
  12674. else
  12675. cat >conftest.$ac_ext <<_ACEOF
  12676. /* confdefs.h. */
  12677. _ACEOF
  12678. cat confdefs.h >>conftest.$ac_ext
  12679. cat >>conftest.$ac_ext <<_ACEOF
  12680. /* end confdefs.h. */
  12681. #include <stdio.h>
  12682. int
  12683. main ()
  12684. {
  12685. #ifndef feof_unlocked
  12686. char *p = (char *) feof_unlocked;
  12687. #endif
  12688. ;
  12689. return 0;
  12690. }
  12691. _ACEOF
  12692. rm -f conftest.$ac_objext
  12693. if { (ac_try="$ac_compile"
  12694. case "(($ac_try" in
  12695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12696. *) ac_try_echo=$ac_try;;
  12697. esac
  12698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12699. (eval "$ac_compile") 2>conftest.er1
  12700. ac_status=$?
  12701. grep -v '^ *+' conftest.er1 >conftest.err
  12702. rm -f conftest.er1
  12703. cat conftest.err >&5
  12704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12705. (exit $ac_status); } && {
  12706. test -z "$ac_cxx_werror_flag" ||
  12707. test ! -s conftest.err
  12708. } && test -s conftest.$ac_objext; then
  12709. ac_cv_have_decl_feof_unlocked=yes
  12710. else
  12711. echo "$as_me: failed program was:" >&5
  12712. sed 's/^/| /' conftest.$ac_ext >&5
  12713. ac_cv_have_decl_feof_unlocked=no
  12714. fi
  12715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12716. fi
  12717. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12718. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12719. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12720. gt_value=1
  12721. else
  12722. gt_value=0
  12723. fi
  12724. cat >>confdefs.h <<_ACEOF
  12725. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12726. _ACEOF
  12727. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12728. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12729. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12730. echo $ECHO_N "(cached) $ECHO_C" >&6
  12731. else
  12732. cat >conftest.$ac_ext <<_ACEOF
  12733. /* confdefs.h. */
  12734. _ACEOF
  12735. cat confdefs.h >>conftest.$ac_ext
  12736. cat >>conftest.$ac_ext <<_ACEOF
  12737. /* end confdefs.h. */
  12738. #include <stdio.h>
  12739. int
  12740. main ()
  12741. {
  12742. #ifndef fgets_unlocked
  12743. char *p = (char *) fgets_unlocked;
  12744. #endif
  12745. ;
  12746. return 0;
  12747. }
  12748. _ACEOF
  12749. rm -f conftest.$ac_objext
  12750. if { (ac_try="$ac_compile"
  12751. case "(($ac_try" in
  12752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12753. *) ac_try_echo=$ac_try;;
  12754. esac
  12755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12756. (eval "$ac_compile") 2>conftest.er1
  12757. ac_status=$?
  12758. grep -v '^ *+' conftest.er1 >conftest.err
  12759. rm -f conftest.er1
  12760. cat conftest.err >&5
  12761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12762. (exit $ac_status); } && {
  12763. test -z "$ac_cxx_werror_flag" ||
  12764. test ! -s conftest.err
  12765. } && test -s conftest.$ac_objext; then
  12766. ac_cv_have_decl_fgets_unlocked=yes
  12767. else
  12768. echo "$as_me: failed program was:" >&5
  12769. sed 's/^/| /' conftest.$ac_ext >&5
  12770. ac_cv_have_decl_fgets_unlocked=no
  12771. fi
  12772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12773. fi
  12774. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12775. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12776. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12777. gt_value=1
  12778. else
  12779. gt_value=0
  12780. fi
  12781. cat >>confdefs.h <<_ACEOF
  12782. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12783. _ACEOF
  12784. am_save_CPPFLAGS="$CPPFLAGS"
  12785. for element in $INCICONV; do
  12786. haveit=
  12787. for x in $CPPFLAGS; do
  12788. acl_save_prefix="$prefix"
  12789. prefix="$acl_final_prefix"
  12790. acl_save_exec_prefix="$exec_prefix"
  12791. exec_prefix="$acl_final_exec_prefix"
  12792. eval x=\"$x\"
  12793. exec_prefix="$acl_save_exec_prefix"
  12794. prefix="$acl_save_prefix"
  12795. if test "X$x" = "X$element"; then
  12796. haveit=yes
  12797. break
  12798. fi
  12799. done
  12800. if test -z "$haveit"; then
  12801. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12802. fi
  12803. done
  12804. { echo "$as_me:$LINENO: checking for iconv" >&5
  12805. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12806. if test "${am_cv_func_iconv+set}" = set; then
  12807. echo $ECHO_N "(cached) $ECHO_C" >&6
  12808. else
  12809. am_cv_func_iconv="no, consider installing GNU libiconv"
  12810. am_cv_lib_iconv=no
  12811. cat >conftest.$ac_ext <<_ACEOF
  12812. /* confdefs.h. */
  12813. _ACEOF
  12814. cat confdefs.h >>conftest.$ac_ext
  12815. cat >>conftest.$ac_ext <<_ACEOF
  12816. /* end confdefs.h. */
  12817. #include <stdlib.h>
  12818. #include <iconv.h>
  12819. int
  12820. main ()
  12821. {
  12822. iconv_t cd = iconv_open("","");
  12823. iconv(cd,NULL,NULL,NULL,NULL);
  12824. iconv_close(cd);
  12825. ;
  12826. return 0;
  12827. }
  12828. _ACEOF
  12829. rm -f conftest.$ac_objext conftest$ac_exeext
  12830. if { (ac_try="$ac_link"
  12831. case "(($ac_try" in
  12832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12833. *) ac_try_echo=$ac_try;;
  12834. esac
  12835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12836. (eval "$ac_link") 2>conftest.er1
  12837. ac_status=$?
  12838. grep -v '^ *+' conftest.er1 >conftest.err
  12839. rm -f conftest.er1
  12840. cat conftest.err >&5
  12841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12842. (exit $ac_status); } && {
  12843. test -z "$ac_cxx_werror_flag" ||
  12844. test ! -s conftest.err
  12845. } && test -s conftest$ac_exeext &&
  12846. $as_test_x conftest$ac_exeext; then
  12847. am_cv_func_iconv=yes
  12848. else
  12849. echo "$as_me: failed program was:" >&5
  12850. sed 's/^/| /' conftest.$ac_ext >&5
  12851. fi
  12852. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12853. conftest$ac_exeext conftest.$ac_ext
  12854. if test "$am_cv_func_iconv" != yes; then
  12855. am_save_LIBS="$LIBS"
  12856. LIBS="$LIBS $LIBICONV"
  12857. cat >conftest.$ac_ext <<_ACEOF
  12858. /* confdefs.h. */
  12859. _ACEOF
  12860. cat confdefs.h >>conftest.$ac_ext
  12861. cat >>conftest.$ac_ext <<_ACEOF
  12862. /* end confdefs.h. */
  12863. #include <stdlib.h>
  12864. #include <iconv.h>
  12865. int
  12866. main ()
  12867. {
  12868. iconv_t cd = iconv_open("","");
  12869. iconv(cd,NULL,NULL,NULL,NULL);
  12870. iconv_close(cd);
  12871. ;
  12872. return 0;
  12873. }
  12874. _ACEOF
  12875. rm -f conftest.$ac_objext conftest$ac_exeext
  12876. if { (ac_try="$ac_link"
  12877. case "(($ac_try" in
  12878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12879. *) ac_try_echo=$ac_try;;
  12880. esac
  12881. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12882. (eval "$ac_link") 2>conftest.er1
  12883. ac_status=$?
  12884. grep -v '^ *+' conftest.er1 >conftest.err
  12885. rm -f conftest.er1
  12886. cat conftest.err >&5
  12887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12888. (exit $ac_status); } && {
  12889. test -z "$ac_cxx_werror_flag" ||
  12890. test ! -s conftest.err
  12891. } && test -s conftest$ac_exeext &&
  12892. $as_test_x conftest$ac_exeext; then
  12893. am_cv_lib_iconv=yes
  12894. am_cv_func_iconv=yes
  12895. else
  12896. echo "$as_me: failed program was:" >&5
  12897. sed 's/^/| /' conftest.$ac_ext >&5
  12898. fi
  12899. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12900. conftest$ac_exeext conftest.$ac_ext
  12901. LIBS="$am_save_LIBS"
  12902. fi
  12903. fi
  12904. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12905. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12906. if test "$am_cv_func_iconv" = yes; then
  12907. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12908. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12909. if test "${am_cv_func_iconv_works+set}" = set; then
  12910. echo $ECHO_N "(cached) $ECHO_C" >&6
  12911. else
  12912. am_save_LIBS="$LIBS"
  12913. if test $am_cv_lib_iconv = yes; then
  12914. LIBS="$LIBS $LIBICONV"
  12915. fi
  12916. if test "$cross_compiling" = yes; then
  12917. case "$host_os" in
  12918. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12919. *) am_cv_func_iconv_works="guessing yes" ;;
  12920. esac
  12921. else
  12922. cat >conftest.$ac_ext <<_ACEOF
  12923. /* confdefs.h. */
  12924. _ACEOF
  12925. cat confdefs.h >>conftest.$ac_ext
  12926. cat >>conftest.$ac_ext <<_ACEOF
  12927. /* end confdefs.h. */
  12928. #include <iconv.h>
  12929. #include <string.h>
  12930. int main ()
  12931. {
  12932. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12933. returns. */
  12934. {
  12935. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12936. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12937. {
  12938. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12939. char buf[10];
  12940. const char *inptr = input;
  12941. size_t inbytesleft = strlen (input);
  12942. char *outptr = buf;
  12943. size_t outbytesleft = sizeof (buf);
  12944. size_t res = iconv (cd_utf8_to_88591,
  12945. (char **) &inptr, &inbytesleft,
  12946. &outptr, &outbytesleft);
  12947. if (res == 0)
  12948. return 1;
  12949. }
  12950. }
  12951. #if 0 /* This bug could be worked around by the caller. */
  12952. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12953. {
  12954. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12955. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12956. {
  12957. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12958. char buf[50];
  12959. const char *inptr = input;
  12960. size_t inbytesleft = strlen (input);
  12961. char *outptr = buf;
  12962. size_t outbytesleft = sizeof (buf);
  12963. size_t res = iconv (cd_88591_to_utf8,
  12964. (char **) &inptr, &inbytesleft,
  12965. &outptr, &outbytesleft);
  12966. if ((int)res > 0)
  12967. return 1;
  12968. }
  12969. }
  12970. #endif
  12971. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12972. provided. */
  12973. if (/* Try standardized names. */
  12974. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12975. /* Try IRIX, OSF/1 names. */
  12976. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12977. /* Try AIX names. */
  12978. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12979. /* Try HP-UX names. */
  12980. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12981. return 1;
  12982. return 0;
  12983. }
  12984. _ACEOF
  12985. rm -f conftest$ac_exeext
  12986. if { (ac_try="$ac_link"
  12987. case "(($ac_try" in
  12988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12989. *) ac_try_echo=$ac_try;;
  12990. esac
  12991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12992. (eval "$ac_link") 2>&5
  12993. ac_status=$?
  12994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12995. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12996. { (case "(($ac_try" in
  12997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12998. *) ac_try_echo=$ac_try;;
  12999. esac
  13000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13001. (eval "$ac_try") 2>&5
  13002. ac_status=$?
  13003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13004. (exit $ac_status); }; }; then
  13005. am_cv_func_iconv_works=yes
  13006. else
  13007. echo "$as_me: program exited with status $ac_status" >&5
  13008. echo "$as_me: failed program was:" >&5
  13009. sed 's/^/| /' conftest.$ac_ext >&5
  13010. ( exit $ac_status )
  13011. am_cv_func_iconv_works=no
  13012. fi
  13013. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13014. fi
  13015. LIBS="$am_save_LIBS"
  13016. fi
  13017. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13018. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  13019. case "$am_cv_func_iconv_works" in
  13020. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13021. *) am_func_iconv=yes ;;
  13022. esac
  13023. else
  13024. am_func_iconv=no am_cv_lib_iconv=no
  13025. fi
  13026. if test "$am_func_iconv" = yes; then
  13027. cat >>confdefs.h <<\_ACEOF
  13028. #define HAVE_ICONV 1
  13029. _ACEOF
  13030. fi
  13031. if test "$am_cv_lib_iconv" = yes; then
  13032. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13033. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  13034. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13035. echo "${ECHO_T}$LIBICONV" >&6; }
  13036. else
  13037. CPPFLAGS="$am_save_CPPFLAGS"
  13038. LIBICONV=
  13039. LTLIBICONV=
  13040. fi
  13041. if test "$am_cv_func_iconv" = yes; then
  13042. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13043. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  13044. if test "${am_cv_proto_iconv+set}" = set; then
  13045. echo $ECHO_N "(cached) $ECHO_C" >&6
  13046. else
  13047. cat >conftest.$ac_ext <<_ACEOF
  13048. /* confdefs.h. */
  13049. _ACEOF
  13050. cat confdefs.h >>conftest.$ac_ext
  13051. cat >>conftest.$ac_ext <<_ACEOF
  13052. /* end confdefs.h. */
  13053. #include <stdlib.h>
  13054. #include <iconv.h>
  13055. extern
  13056. #ifdef __cplusplus
  13057. "C"
  13058. #endif
  13059. #if defined(__STDC__) || defined(__cplusplus)
  13060. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13061. #else
  13062. size_t iconv();
  13063. #endif
  13064. int
  13065. main ()
  13066. {
  13067. ;
  13068. return 0;
  13069. }
  13070. _ACEOF
  13071. rm -f conftest.$ac_objext
  13072. if { (ac_try="$ac_compile"
  13073. case "(($ac_try" in
  13074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13075. *) ac_try_echo=$ac_try;;
  13076. esac
  13077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13078. (eval "$ac_compile") 2>conftest.er1
  13079. ac_status=$?
  13080. grep -v '^ *+' conftest.er1 >conftest.err
  13081. rm -f conftest.er1
  13082. cat conftest.err >&5
  13083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13084. (exit $ac_status); } && {
  13085. test -z "$ac_cxx_werror_flag" ||
  13086. test ! -s conftest.err
  13087. } && test -s conftest.$ac_objext; then
  13088. am_cv_proto_iconv_arg1=""
  13089. else
  13090. echo "$as_me: failed program was:" >&5
  13091. sed 's/^/| /' conftest.$ac_ext >&5
  13092. am_cv_proto_iconv_arg1="const"
  13093. fi
  13094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13095. 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);"
  13096. fi
  13097. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13098. { echo "$as_me:$LINENO: result: ${ac_t:-
  13099. }$am_cv_proto_iconv" >&5
  13100. echo "${ECHO_T}${ac_t:-
  13101. }$am_cv_proto_iconv" >&6; }
  13102. cat >>confdefs.h <<_ACEOF
  13103. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13104. _ACEOF
  13105. fi
  13106. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13107. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  13108. if test "${gt_cv_nl_locale_name+set}" = set; then
  13109. echo $ECHO_N "(cached) $ECHO_C" >&6
  13110. else
  13111. cat >conftest.$ac_ext <<_ACEOF
  13112. /* confdefs.h. */
  13113. _ACEOF
  13114. cat confdefs.h >>conftest.$ac_ext
  13115. cat >>conftest.$ac_ext <<_ACEOF
  13116. /* end confdefs.h. */
  13117. #include <langinfo.h>
  13118. #include <locale.h>
  13119. int
  13120. main ()
  13121. {
  13122. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13123. return !cs;
  13124. ;
  13125. return 0;
  13126. }
  13127. _ACEOF
  13128. rm -f conftest.$ac_objext conftest$ac_exeext
  13129. if { (ac_try="$ac_link"
  13130. case "(($ac_try" in
  13131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13132. *) ac_try_echo=$ac_try;;
  13133. esac
  13134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13135. (eval "$ac_link") 2>conftest.er1
  13136. ac_status=$?
  13137. grep -v '^ *+' conftest.er1 >conftest.err
  13138. rm -f conftest.er1
  13139. cat conftest.err >&5
  13140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13141. (exit $ac_status); } && {
  13142. test -z "$ac_cxx_werror_flag" ||
  13143. test ! -s conftest.err
  13144. } && test -s conftest$ac_exeext &&
  13145. $as_test_x conftest$ac_exeext; then
  13146. gt_cv_nl_locale_name=yes
  13147. else
  13148. echo "$as_me: failed program was:" >&5
  13149. sed 's/^/| /' conftest.$ac_ext >&5
  13150. gt_cv_nl_locale_name=no
  13151. fi
  13152. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13153. conftest$ac_exeext conftest.$ac_ext
  13154. fi
  13155. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13156. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  13157. if test $gt_cv_nl_locale_name = yes; then
  13158. cat >>confdefs.h <<\_ACEOF
  13159. #define HAVE_NL_LOCALE_NAME 1
  13160. _ACEOF
  13161. fi
  13162. for ac_prog in bison
  13163. do
  13164. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13165. set dummy $ac_prog; ac_word=$2
  13166. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13167. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13168. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13169. echo $ECHO_N "(cached) $ECHO_C" >&6
  13170. else
  13171. if test -n "$INTLBISON"; then
  13172. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13173. else
  13174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13175. for as_dir in $PATH
  13176. do
  13177. IFS=$as_save_IFS
  13178. test -z "$as_dir" && as_dir=.
  13179. for ac_exec_ext in '' $ac_executable_extensions; do
  13180. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13181. ac_cv_prog_INTLBISON="$ac_prog"
  13182. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13183. break 2
  13184. fi
  13185. done
  13186. done
  13187. IFS=$as_save_IFS
  13188. fi
  13189. fi
  13190. INTLBISON=$ac_cv_prog_INTLBISON
  13191. if test -n "$INTLBISON"; then
  13192. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13193. echo "${ECHO_T}$INTLBISON" >&6; }
  13194. else
  13195. { echo "$as_me:$LINENO: result: no" >&5
  13196. echo "${ECHO_T}no" >&6; }
  13197. fi
  13198. test -n "$INTLBISON" && break
  13199. done
  13200. if test -z "$INTLBISON"; then
  13201. ac_verc_fail=yes
  13202. else
  13203. { echo "$as_me:$LINENO: checking version of bison" >&5
  13204. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  13205. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13206. case $ac_prog_version in
  13207. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13208. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13209. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13210. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13211. esac
  13212. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13213. echo "${ECHO_T}$ac_prog_version" >&6; }
  13214. fi
  13215. if test $ac_verc_fail = yes; then
  13216. INTLBISON=:
  13217. fi
  13218. { echo "$as_me:$LINENO: checking for long long int" >&5
  13219. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  13220. if test "${ac_cv_type_long_long_int+set}" = set; then
  13221. echo $ECHO_N "(cached) $ECHO_C" >&6
  13222. else
  13223. cat >conftest.$ac_ext <<_ACEOF
  13224. /* confdefs.h. */
  13225. _ACEOF
  13226. cat confdefs.h >>conftest.$ac_ext
  13227. cat >>conftest.$ac_ext <<_ACEOF
  13228. /* end confdefs.h. */
  13229. /* Test preprocessor. */
  13230. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13231. error in preprocessor;
  13232. #endif
  13233. #if ! (18446744073709551615ULL <= -1ull)
  13234. error in preprocessor;
  13235. #endif
  13236. /* Test literals. */
  13237. long long int ll = 9223372036854775807ll;
  13238. long long int nll = -9223372036854775807LL;
  13239. unsigned long long int ull = 18446744073709551615ULL;
  13240. /* Test constant expressions. */
  13241. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13242. ? 1 : -1)];
  13243. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  13244. ? 1 : -1)];
  13245. int i = 63;
  13246. int
  13247. main ()
  13248. {
  13249. /* Test availability of runtime routines for shift and division. */
  13250. long long int llmax = 9223372036854775807ll;
  13251. unsigned long long int ullmax = 18446744073709551615ull;
  13252. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  13253. | (llmax / ll) | (llmax % ll)
  13254. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  13255. | (ullmax / ull) | (ullmax % ull));
  13256. ;
  13257. return 0;
  13258. }
  13259. _ACEOF
  13260. rm -f conftest.$ac_objext conftest$ac_exeext
  13261. if { (ac_try="$ac_link"
  13262. case "(($ac_try" in
  13263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13264. *) ac_try_echo=$ac_try;;
  13265. esac
  13266. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13267. (eval "$ac_link") 2>conftest.er1
  13268. ac_status=$?
  13269. grep -v '^ *+' conftest.er1 >conftest.err
  13270. rm -f conftest.er1
  13271. cat conftest.err >&5
  13272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13273. (exit $ac_status); } && {
  13274. test -z "$ac_cxx_werror_flag" ||
  13275. test ! -s conftest.err
  13276. } && test -s conftest$ac_exeext &&
  13277. $as_test_x conftest$ac_exeext; then
  13278. if test "$cross_compiling" = yes; then
  13279. ac_cv_type_long_long_int=yes
  13280. else
  13281. cat >conftest.$ac_ext <<_ACEOF
  13282. /* confdefs.h. */
  13283. _ACEOF
  13284. cat confdefs.h >>conftest.$ac_ext
  13285. cat >>conftest.$ac_ext <<_ACEOF
  13286. /* end confdefs.h. */
  13287. #include <limits.h>
  13288. #ifndef LLONG_MAX
  13289. # define HALF \
  13290. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13291. # define LLONG_MAX (HALF - 1 + HALF)
  13292. #endif
  13293. int
  13294. main ()
  13295. {
  13296. long long int n = 1;
  13297. int i;
  13298. for (i = 0; ; i++)
  13299. {
  13300. long long int m = n << i;
  13301. if (m >> i != n)
  13302. return 1;
  13303. if (LLONG_MAX / 2 < m)
  13304. break;
  13305. }
  13306. return 0;
  13307. ;
  13308. return 0;
  13309. }
  13310. _ACEOF
  13311. rm -f conftest$ac_exeext
  13312. if { (ac_try="$ac_link"
  13313. case "(($ac_try" in
  13314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13315. *) ac_try_echo=$ac_try;;
  13316. esac
  13317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13318. (eval "$ac_link") 2>&5
  13319. ac_status=$?
  13320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13321. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13322. { (case "(($ac_try" in
  13323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13324. *) ac_try_echo=$ac_try;;
  13325. esac
  13326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13327. (eval "$ac_try") 2>&5
  13328. ac_status=$?
  13329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13330. (exit $ac_status); }; }; then
  13331. ac_cv_type_long_long_int=yes
  13332. else
  13333. echo "$as_me: program exited with status $ac_status" >&5
  13334. echo "$as_me: failed program was:" >&5
  13335. sed 's/^/| /' conftest.$ac_ext >&5
  13336. ( exit $ac_status )
  13337. ac_cv_type_long_long_int=no
  13338. fi
  13339. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13340. fi
  13341. else
  13342. echo "$as_me: failed program was:" >&5
  13343. sed 's/^/| /' conftest.$ac_ext >&5
  13344. ac_cv_type_long_long_int=no
  13345. fi
  13346. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13347. conftest$ac_exeext conftest.$ac_ext
  13348. fi
  13349. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13350. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13351. if test $ac_cv_type_long_long_int = yes; then
  13352. cat >>confdefs.h <<\_ACEOF
  13353. #define HAVE_LONG_LONG_INT 1
  13354. _ACEOF
  13355. fi
  13356. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13357. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13358. if test "${gt_cv_c_wchar_t+set}" = set; then
  13359. echo $ECHO_N "(cached) $ECHO_C" >&6
  13360. else
  13361. cat >conftest.$ac_ext <<_ACEOF
  13362. /* confdefs.h. */
  13363. _ACEOF
  13364. cat confdefs.h >>conftest.$ac_ext
  13365. cat >>conftest.$ac_ext <<_ACEOF
  13366. /* end confdefs.h. */
  13367. #include <stddef.h>
  13368. wchar_t foo = (wchar_t)'\0';
  13369. int
  13370. main ()
  13371. {
  13372. ;
  13373. return 0;
  13374. }
  13375. _ACEOF
  13376. rm -f conftest.$ac_objext
  13377. if { (ac_try="$ac_compile"
  13378. case "(($ac_try" in
  13379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13380. *) ac_try_echo=$ac_try;;
  13381. esac
  13382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13383. (eval "$ac_compile") 2>conftest.er1
  13384. ac_status=$?
  13385. grep -v '^ *+' conftest.er1 >conftest.err
  13386. rm -f conftest.er1
  13387. cat conftest.err >&5
  13388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13389. (exit $ac_status); } && {
  13390. test -z "$ac_cxx_werror_flag" ||
  13391. test ! -s conftest.err
  13392. } && test -s conftest.$ac_objext; then
  13393. gt_cv_c_wchar_t=yes
  13394. else
  13395. echo "$as_me: failed program was:" >&5
  13396. sed 's/^/| /' conftest.$ac_ext >&5
  13397. gt_cv_c_wchar_t=no
  13398. fi
  13399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13400. fi
  13401. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13402. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13403. if test $gt_cv_c_wchar_t = yes; then
  13404. cat >>confdefs.h <<\_ACEOF
  13405. #define HAVE_WCHAR_T 1
  13406. _ACEOF
  13407. fi
  13408. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13409. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13410. if test "${gt_cv_c_wint_t+set}" = set; then
  13411. echo $ECHO_N "(cached) $ECHO_C" >&6
  13412. else
  13413. cat >conftest.$ac_ext <<_ACEOF
  13414. /* confdefs.h. */
  13415. _ACEOF
  13416. cat confdefs.h >>conftest.$ac_ext
  13417. cat >>conftest.$ac_ext <<_ACEOF
  13418. /* end confdefs.h. */
  13419. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13420. <wchar.h>.
  13421. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13422. before <wchar.h>. */
  13423. #include <stddef.h>
  13424. #include <stdio.h>
  13425. #include <time.h>
  13426. #include <wchar.h>
  13427. wint_t foo = (wchar_t)'\0';
  13428. int
  13429. main ()
  13430. {
  13431. ;
  13432. return 0;
  13433. }
  13434. _ACEOF
  13435. rm -f conftest.$ac_objext
  13436. if { (ac_try="$ac_compile"
  13437. case "(($ac_try" in
  13438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13439. *) ac_try_echo=$ac_try;;
  13440. esac
  13441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13442. (eval "$ac_compile") 2>conftest.er1
  13443. ac_status=$?
  13444. grep -v '^ *+' conftest.er1 >conftest.err
  13445. rm -f conftest.er1
  13446. cat conftest.err >&5
  13447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13448. (exit $ac_status); } && {
  13449. test -z "$ac_cxx_werror_flag" ||
  13450. test ! -s conftest.err
  13451. } && test -s conftest.$ac_objext; then
  13452. gt_cv_c_wint_t=yes
  13453. else
  13454. echo "$as_me: failed program was:" >&5
  13455. sed 's/^/| /' conftest.$ac_ext >&5
  13456. gt_cv_c_wint_t=no
  13457. fi
  13458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13459. fi
  13460. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13461. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13462. if test $gt_cv_c_wint_t = yes; then
  13463. cat >>confdefs.h <<\_ACEOF
  13464. #define HAVE_WINT_T 1
  13465. _ACEOF
  13466. fi
  13467. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13468. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13469. if test "${gt_cv_c_intmax_t+set}" = set; then
  13470. echo $ECHO_N "(cached) $ECHO_C" >&6
  13471. else
  13472. cat >conftest.$ac_ext <<_ACEOF
  13473. /* confdefs.h. */
  13474. _ACEOF
  13475. cat confdefs.h >>conftest.$ac_ext
  13476. cat >>conftest.$ac_ext <<_ACEOF
  13477. /* end confdefs.h. */
  13478. #include <stddef.h>
  13479. #include <stdlib.h>
  13480. #if HAVE_STDINT_H_WITH_UINTMAX
  13481. #include <stdint.h>
  13482. #endif
  13483. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13484. #include <inttypes.h>
  13485. #endif
  13486. int
  13487. main ()
  13488. {
  13489. intmax_t x = -1;
  13490. return !x;
  13491. ;
  13492. return 0;
  13493. }
  13494. _ACEOF
  13495. rm -f conftest.$ac_objext
  13496. if { (ac_try="$ac_compile"
  13497. case "(($ac_try" in
  13498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13499. *) ac_try_echo=$ac_try;;
  13500. esac
  13501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13502. (eval "$ac_compile") 2>conftest.er1
  13503. ac_status=$?
  13504. grep -v '^ *+' conftest.er1 >conftest.err
  13505. rm -f conftest.er1
  13506. cat conftest.err >&5
  13507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13508. (exit $ac_status); } && {
  13509. test -z "$ac_cxx_werror_flag" ||
  13510. test ! -s conftest.err
  13511. } && test -s conftest.$ac_objext; then
  13512. gt_cv_c_intmax_t=yes
  13513. else
  13514. echo "$as_me: failed program was:" >&5
  13515. sed 's/^/| /' conftest.$ac_ext >&5
  13516. gt_cv_c_intmax_t=no
  13517. fi
  13518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13519. fi
  13520. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13521. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13522. if test $gt_cv_c_intmax_t = yes; then
  13523. cat >>confdefs.h <<\_ACEOF
  13524. #define HAVE_INTMAX_T 1
  13525. _ACEOF
  13526. fi
  13527. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13528. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13529. if test "${gt_cv_func_printf_posix+set}" = set; then
  13530. echo $ECHO_N "(cached) $ECHO_C" >&6
  13531. else
  13532. if test "$cross_compiling" = yes; then
  13533. cat >conftest.$ac_ext <<_ACEOF
  13534. /* confdefs.h. */
  13535. _ACEOF
  13536. cat confdefs.h >>conftest.$ac_ext
  13537. cat >>conftest.$ac_ext <<_ACEOF
  13538. /* end confdefs.h. */
  13539. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13540. notposix
  13541. #endif
  13542. _ACEOF
  13543. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13544. $EGREP "notposix" >/dev/null 2>&1; then
  13545. gt_cv_func_printf_posix="guessing no"
  13546. else
  13547. gt_cv_func_printf_posix="guessing yes"
  13548. fi
  13549. rm -f conftest*
  13550. else
  13551. cat >conftest.$ac_ext <<_ACEOF
  13552. /* confdefs.h. */
  13553. _ACEOF
  13554. cat confdefs.h >>conftest.$ac_ext
  13555. cat >>conftest.$ac_ext <<_ACEOF
  13556. /* end confdefs.h. */
  13557. #include <stdio.h>
  13558. #include <string.h>
  13559. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13560. dollar expansion (possibly an autoconf bug). */
  13561. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13562. static char buf[100];
  13563. int main ()
  13564. {
  13565. sprintf (buf, format, 33, 55);
  13566. return (strcmp (buf, "55 33") != 0);
  13567. }
  13568. _ACEOF
  13569. rm -f conftest$ac_exeext
  13570. if { (ac_try="$ac_link"
  13571. case "(($ac_try" in
  13572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13573. *) ac_try_echo=$ac_try;;
  13574. esac
  13575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13576. (eval "$ac_link") 2>&5
  13577. ac_status=$?
  13578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13579. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13580. { (case "(($ac_try" in
  13581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13582. *) ac_try_echo=$ac_try;;
  13583. esac
  13584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13585. (eval "$ac_try") 2>&5
  13586. ac_status=$?
  13587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13588. (exit $ac_status); }; }; then
  13589. gt_cv_func_printf_posix=yes
  13590. else
  13591. echo "$as_me: program exited with status $ac_status" >&5
  13592. echo "$as_me: failed program was:" >&5
  13593. sed 's/^/| /' conftest.$ac_ext >&5
  13594. ( exit $ac_status )
  13595. gt_cv_func_printf_posix=no
  13596. fi
  13597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13598. fi
  13599. fi
  13600. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13601. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13602. case $gt_cv_func_printf_posix in
  13603. *yes)
  13604. cat >>confdefs.h <<\_ACEOF
  13605. #define HAVE_POSIX_PRINTF 1
  13606. _ACEOF
  13607. ;;
  13608. esac
  13609. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13610. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13611. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13612. echo $ECHO_N "(cached) $ECHO_C" >&6
  13613. else
  13614. cat >conftest.$ac_ext <<_ACEOF
  13615. /* confdefs.h. */
  13616. _ACEOF
  13617. cat confdefs.h >>conftest.$ac_ext
  13618. cat >>conftest.$ac_ext <<_ACEOF
  13619. /* end confdefs.h. */
  13620. #include <features.h>
  13621. #ifdef __GNU_LIBRARY__
  13622. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13623. Lucky GNU user
  13624. #endif
  13625. #endif
  13626. _ACEOF
  13627. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13628. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13629. ac_cv_gnu_library_2_1=yes
  13630. else
  13631. ac_cv_gnu_library_2_1=no
  13632. fi
  13633. rm -f conftest*
  13634. fi
  13635. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13636. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13637. GLIBC21="$ac_cv_gnu_library_2_1"
  13638. for ac_header in stdint.h
  13639. do
  13640. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13641. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13642. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13643. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13644. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13645. echo $ECHO_N "(cached) $ECHO_C" >&6
  13646. fi
  13647. ac_res=`eval echo '${'$as_ac_Header'}'`
  13648. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13649. echo "${ECHO_T}$ac_res" >&6; }
  13650. else
  13651. # Is the header compilable?
  13652. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13653. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13654. cat >conftest.$ac_ext <<_ACEOF
  13655. /* confdefs.h. */
  13656. _ACEOF
  13657. cat confdefs.h >>conftest.$ac_ext
  13658. cat >>conftest.$ac_ext <<_ACEOF
  13659. /* end confdefs.h. */
  13660. $ac_includes_default
  13661. #include <$ac_header>
  13662. _ACEOF
  13663. rm -f conftest.$ac_objext
  13664. if { (ac_try="$ac_compile"
  13665. case "(($ac_try" in
  13666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13667. *) ac_try_echo=$ac_try;;
  13668. esac
  13669. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13670. (eval "$ac_compile") 2>conftest.er1
  13671. ac_status=$?
  13672. grep -v '^ *+' conftest.er1 >conftest.err
  13673. rm -f conftest.er1
  13674. cat conftest.err >&5
  13675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13676. (exit $ac_status); } && {
  13677. test -z "$ac_cxx_werror_flag" ||
  13678. test ! -s conftest.err
  13679. } && test -s conftest.$ac_objext; then
  13680. ac_header_compiler=yes
  13681. else
  13682. echo "$as_me: failed program was:" >&5
  13683. sed 's/^/| /' conftest.$ac_ext >&5
  13684. ac_header_compiler=no
  13685. fi
  13686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13687. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13688. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13689. # Is the header present?
  13690. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13691. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13692. cat >conftest.$ac_ext <<_ACEOF
  13693. /* confdefs.h. */
  13694. _ACEOF
  13695. cat confdefs.h >>conftest.$ac_ext
  13696. cat >>conftest.$ac_ext <<_ACEOF
  13697. /* end confdefs.h. */
  13698. #include <$ac_header>
  13699. _ACEOF
  13700. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13701. case "(($ac_try" in
  13702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13703. *) ac_try_echo=$ac_try;;
  13704. esac
  13705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13706. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13707. ac_status=$?
  13708. grep -v '^ *+' conftest.er1 >conftest.err
  13709. rm -f conftest.er1
  13710. cat conftest.err >&5
  13711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13712. (exit $ac_status); } >/dev/null && {
  13713. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13714. test ! -s conftest.err
  13715. }; then
  13716. ac_header_preproc=yes
  13717. else
  13718. echo "$as_me: failed program was:" >&5
  13719. sed 's/^/| /' conftest.$ac_ext >&5
  13720. ac_header_preproc=no
  13721. fi
  13722. rm -f conftest.err conftest.$ac_ext
  13723. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13724. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13725. # So? What about this header?
  13726. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13727. yes:no: )
  13728. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13729. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13730. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13731. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13732. ac_header_preproc=yes
  13733. ;;
  13734. no:yes:* )
  13735. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13736. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13737. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13738. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13739. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13740. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13741. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13742. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13743. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13744. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13745. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13746. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13747. ( cat <<\_ASBOX
  13748. ## ----------------------------------------------- ##
  13749. ## Report this to t-tujikawa@users.sourceforge.net ##
  13750. ## ----------------------------------------------- ##
  13751. _ASBOX
  13752. ) | sed "s/^/$as_me: WARNING: /" >&2
  13753. ;;
  13754. esac
  13755. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13756. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13757. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13758. echo $ECHO_N "(cached) $ECHO_C" >&6
  13759. else
  13760. eval "$as_ac_Header=\$ac_header_preproc"
  13761. fi
  13762. ac_res=`eval echo '${'$as_ac_Header'}'`
  13763. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13764. echo "${ECHO_T}$ac_res" >&6; }
  13765. fi
  13766. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13767. cat >>confdefs.h <<_ACEOF
  13768. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13769. _ACEOF
  13770. fi
  13771. done
  13772. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13773. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13774. if test "${gl_cv_size_max+set}" = set; then
  13775. echo $ECHO_N "(cached) $ECHO_C" >&6
  13776. else
  13777. gl_cv_size_max=
  13778. cat >conftest.$ac_ext <<_ACEOF
  13779. /* confdefs.h. */
  13780. _ACEOF
  13781. cat confdefs.h >>conftest.$ac_ext
  13782. cat >>conftest.$ac_ext <<_ACEOF
  13783. /* end confdefs.h. */
  13784. #include <limits.h>
  13785. #if HAVE_STDINT_H
  13786. #include <stdint.h>
  13787. #endif
  13788. #ifdef SIZE_MAX
  13789. Found it
  13790. #endif
  13791. _ACEOF
  13792. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13793. $EGREP "Found it" >/dev/null 2>&1; then
  13794. gl_cv_size_max=yes
  13795. fi
  13796. rm -f conftest*
  13797. if test -z "$gl_cv_size_max"; then
  13798. if test "$cross_compiling" = yes; then
  13799. # Depending upon the size, compute the lo and hi bounds.
  13800. cat >conftest.$ac_ext <<_ACEOF
  13801. /* confdefs.h. */
  13802. _ACEOF
  13803. cat confdefs.h >>conftest.$ac_ext
  13804. cat >>conftest.$ac_ext <<_ACEOF
  13805. /* end confdefs.h. */
  13806. #include <stddef.h>
  13807. #include <limits.h>
  13808. int
  13809. main ()
  13810. {
  13811. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13812. test_array [0] = 0
  13813. ;
  13814. return 0;
  13815. }
  13816. _ACEOF
  13817. rm -f conftest.$ac_objext
  13818. if { (ac_try="$ac_compile"
  13819. case "(($ac_try" in
  13820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13821. *) ac_try_echo=$ac_try;;
  13822. esac
  13823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13824. (eval "$ac_compile") 2>conftest.er1
  13825. ac_status=$?
  13826. grep -v '^ *+' conftest.er1 >conftest.err
  13827. rm -f conftest.er1
  13828. cat conftest.err >&5
  13829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13830. (exit $ac_status); } && {
  13831. test -z "$ac_cxx_werror_flag" ||
  13832. test ! -s conftest.err
  13833. } && test -s conftest.$ac_objext; then
  13834. ac_lo=0 ac_mid=0
  13835. while :; do
  13836. cat >conftest.$ac_ext <<_ACEOF
  13837. /* confdefs.h. */
  13838. _ACEOF
  13839. cat confdefs.h >>conftest.$ac_ext
  13840. cat >>conftest.$ac_ext <<_ACEOF
  13841. /* end confdefs.h. */
  13842. #include <stddef.h>
  13843. #include <limits.h>
  13844. int
  13845. main ()
  13846. {
  13847. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13848. test_array [0] = 0
  13849. ;
  13850. return 0;
  13851. }
  13852. _ACEOF
  13853. rm -f conftest.$ac_objext
  13854. if { (ac_try="$ac_compile"
  13855. case "(($ac_try" in
  13856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13857. *) ac_try_echo=$ac_try;;
  13858. esac
  13859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13860. (eval "$ac_compile") 2>conftest.er1
  13861. ac_status=$?
  13862. grep -v '^ *+' conftest.er1 >conftest.err
  13863. rm -f conftest.er1
  13864. cat conftest.err >&5
  13865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13866. (exit $ac_status); } && {
  13867. test -z "$ac_cxx_werror_flag" ||
  13868. test ! -s conftest.err
  13869. } && test -s conftest.$ac_objext; then
  13870. ac_hi=$ac_mid; break
  13871. else
  13872. echo "$as_me: failed program was:" >&5
  13873. sed 's/^/| /' conftest.$ac_ext >&5
  13874. ac_lo=`expr $ac_mid + 1`
  13875. if test $ac_lo -le $ac_mid; then
  13876. ac_lo= ac_hi=
  13877. break
  13878. fi
  13879. ac_mid=`expr 2 '*' $ac_mid + 1`
  13880. fi
  13881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13882. done
  13883. else
  13884. echo "$as_me: failed program was:" >&5
  13885. sed 's/^/| /' conftest.$ac_ext >&5
  13886. cat >conftest.$ac_ext <<_ACEOF
  13887. /* confdefs.h. */
  13888. _ACEOF
  13889. cat confdefs.h >>conftest.$ac_ext
  13890. cat >>conftest.$ac_ext <<_ACEOF
  13891. /* end confdefs.h. */
  13892. #include <stddef.h>
  13893. #include <limits.h>
  13894. int
  13895. main ()
  13896. {
  13897. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13898. test_array [0] = 0
  13899. ;
  13900. return 0;
  13901. }
  13902. _ACEOF
  13903. rm -f conftest.$ac_objext
  13904. if { (ac_try="$ac_compile"
  13905. case "(($ac_try" in
  13906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13907. *) ac_try_echo=$ac_try;;
  13908. esac
  13909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13910. (eval "$ac_compile") 2>conftest.er1
  13911. ac_status=$?
  13912. grep -v '^ *+' conftest.er1 >conftest.err
  13913. rm -f conftest.er1
  13914. cat conftest.err >&5
  13915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13916. (exit $ac_status); } && {
  13917. test -z "$ac_cxx_werror_flag" ||
  13918. test ! -s conftest.err
  13919. } && test -s conftest.$ac_objext; then
  13920. ac_hi=-1 ac_mid=-1
  13921. while :; do
  13922. cat >conftest.$ac_ext <<_ACEOF
  13923. /* confdefs.h. */
  13924. _ACEOF
  13925. cat confdefs.h >>conftest.$ac_ext
  13926. cat >>conftest.$ac_ext <<_ACEOF
  13927. /* end confdefs.h. */
  13928. #include <stddef.h>
  13929. #include <limits.h>
  13930. int
  13931. main ()
  13932. {
  13933. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13934. test_array [0] = 0
  13935. ;
  13936. return 0;
  13937. }
  13938. _ACEOF
  13939. rm -f conftest.$ac_objext
  13940. if { (ac_try="$ac_compile"
  13941. case "(($ac_try" in
  13942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13943. *) ac_try_echo=$ac_try;;
  13944. esac
  13945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13946. (eval "$ac_compile") 2>conftest.er1
  13947. ac_status=$?
  13948. grep -v '^ *+' conftest.er1 >conftest.err
  13949. rm -f conftest.er1
  13950. cat conftest.err >&5
  13951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13952. (exit $ac_status); } && {
  13953. test -z "$ac_cxx_werror_flag" ||
  13954. test ! -s conftest.err
  13955. } && test -s conftest.$ac_objext; then
  13956. ac_lo=$ac_mid; break
  13957. else
  13958. echo "$as_me: failed program was:" >&5
  13959. sed 's/^/| /' conftest.$ac_ext >&5
  13960. ac_hi=`expr '(' $ac_mid ')' - 1`
  13961. if test $ac_mid -le $ac_hi; then
  13962. ac_lo= ac_hi=
  13963. break
  13964. fi
  13965. ac_mid=`expr 2 '*' $ac_mid`
  13966. fi
  13967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13968. done
  13969. else
  13970. echo "$as_me: failed program was:" >&5
  13971. sed 's/^/| /' conftest.$ac_ext >&5
  13972. ac_lo= ac_hi=
  13973. fi
  13974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13975. fi
  13976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13977. # Binary search between lo and hi bounds.
  13978. while test "x$ac_lo" != "x$ac_hi"; do
  13979. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13980. cat >conftest.$ac_ext <<_ACEOF
  13981. /* confdefs.h. */
  13982. _ACEOF
  13983. cat confdefs.h >>conftest.$ac_ext
  13984. cat >>conftest.$ac_ext <<_ACEOF
  13985. /* end confdefs.h. */
  13986. #include <stddef.h>
  13987. #include <limits.h>
  13988. int
  13989. main ()
  13990. {
  13991. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13992. test_array [0] = 0
  13993. ;
  13994. return 0;
  13995. }
  13996. _ACEOF
  13997. rm -f conftest.$ac_objext
  13998. if { (ac_try="$ac_compile"
  13999. case "(($ac_try" in
  14000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14001. *) ac_try_echo=$ac_try;;
  14002. esac
  14003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14004. (eval "$ac_compile") 2>conftest.er1
  14005. ac_status=$?
  14006. grep -v '^ *+' conftest.er1 >conftest.err
  14007. rm -f conftest.er1
  14008. cat conftest.err >&5
  14009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14010. (exit $ac_status); } && {
  14011. test -z "$ac_cxx_werror_flag" ||
  14012. test ! -s conftest.err
  14013. } && test -s conftest.$ac_objext; then
  14014. ac_hi=$ac_mid
  14015. else
  14016. echo "$as_me: failed program was:" >&5
  14017. sed 's/^/| /' conftest.$ac_ext >&5
  14018. ac_lo=`expr '(' $ac_mid ')' + 1`
  14019. fi
  14020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14021. done
  14022. case $ac_lo in
  14023. ?*) size_t_bits_minus_1=$ac_lo;;
  14024. '') size_t_bits_minus_1= ;;
  14025. esac
  14026. else
  14027. cat >conftest.$ac_ext <<_ACEOF
  14028. /* confdefs.h. */
  14029. _ACEOF
  14030. cat confdefs.h >>conftest.$ac_ext
  14031. cat >>conftest.$ac_ext <<_ACEOF
  14032. /* end confdefs.h. */
  14033. #include <stddef.h>
  14034. #include <limits.h>
  14035. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14036. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14037. #include <stdio.h>
  14038. #include <stdlib.h>
  14039. int
  14040. main ()
  14041. {
  14042. FILE *f = fopen ("conftest.val", "w");
  14043. if (! f)
  14044. return 1;
  14045. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14046. {
  14047. long int i = longval ();
  14048. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14049. return 1;
  14050. fprintf (f, "%ld\n", i);
  14051. }
  14052. else
  14053. {
  14054. unsigned long int i = ulongval ();
  14055. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14056. return 1;
  14057. fprintf (f, "%lu\n", i);
  14058. }
  14059. return ferror (f) || fclose (f) != 0;
  14060. ;
  14061. return 0;
  14062. }
  14063. _ACEOF
  14064. rm -f conftest$ac_exeext
  14065. if { (ac_try="$ac_link"
  14066. case "(($ac_try" in
  14067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14068. *) ac_try_echo=$ac_try;;
  14069. esac
  14070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14071. (eval "$ac_link") 2>&5
  14072. ac_status=$?
  14073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14074. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14075. { (case "(($ac_try" in
  14076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14077. *) ac_try_echo=$ac_try;;
  14078. esac
  14079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14080. (eval "$ac_try") 2>&5
  14081. ac_status=$?
  14082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14083. (exit $ac_status); }; }; then
  14084. size_t_bits_minus_1=`cat conftest.val`
  14085. else
  14086. echo "$as_me: program exited with status $ac_status" >&5
  14087. echo "$as_me: failed program was:" >&5
  14088. sed 's/^/| /' conftest.$ac_ext >&5
  14089. ( exit $ac_status )
  14090. size_t_bits_minus_1=
  14091. fi
  14092. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14093. fi
  14094. rm -f conftest.val
  14095. if test "$cross_compiling" = yes; then
  14096. # Depending upon the size, compute the lo and hi bounds.
  14097. cat >conftest.$ac_ext <<_ACEOF
  14098. /* confdefs.h. */
  14099. _ACEOF
  14100. cat confdefs.h >>conftest.$ac_ext
  14101. cat >>conftest.$ac_ext <<_ACEOF
  14102. /* end confdefs.h. */
  14103. #include <stddef.h>
  14104. int
  14105. main ()
  14106. {
  14107. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14108. test_array [0] = 0
  14109. ;
  14110. return 0;
  14111. }
  14112. _ACEOF
  14113. rm -f conftest.$ac_objext
  14114. if { (ac_try="$ac_compile"
  14115. case "(($ac_try" in
  14116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14117. *) ac_try_echo=$ac_try;;
  14118. esac
  14119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14120. (eval "$ac_compile") 2>conftest.er1
  14121. ac_status=$?
  14122. grep -v '^ *+' conftest.er1 >conftest.err
  14123. rm -f conftest.er1
  14124. cat conftest.err >&5
  14125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14126. (exit $ac_status); } && {
  14127. test -z "$ac_cxx_werror_flag" ||
  14128. test ! -s conftest.err
  14129. } && test -s conftest.$ac_objext; then
  14130. ac_lo=0 ac_mid=0
  14131. while :; do
  14132. cat >conftest.$ac_ext <<_ACEOF
  14133. /* confdefs.h. */
  14134. _ACEOF
  14135. cat confdefs.h >>conftest.$ac_ext
  14136. cat >>conftest.$ac_ext <<_ACEOF
  14137. /* end confdefs.h. */
  14138. #include <stddef.h>
  14139. int
  14140. main ()
  14141. {
  14142. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14143. test_array [0] = 0
  14144. ;
  14145. return 0;
  14146. }
  14147. _ACEOF
  14148. rm -f conftest.$ac_objext
  14149. if { (ac_try="$ac_compile"
  14150. case "(($ac_try" in
  14151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14152. *) ac_try_echo=$ac_try;;
  14153. esac
  14154. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14155. (eval "$ac_compile") 2>conftest.er1
  14156. ac_status=$?
  14157. grep -v '^ *+' conftest.er1 >conftest.err
  14158. rm -f conftest.er1
  14159. cat conftest.err >&5
  14160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14161. (exit $ac_status); } && {
  14162. test -z "$ac_cxx_werror_flag" ||
  14163. test ! -s conftest.err
  14164. } && test -s conftest.$ac_objext; then
  14165. ac_hi=$ac_mid; break
  14166. else
  14167. echo "$as_me: failed program was:" >&5
  14168. sed 's/^/| /' conftest.$ac_ext >&5
  14169. ac_lo=`expr $ac_mid + 1`
  14170. if test $ac_lo -le $ac_mid; then
  14171. ac_lo= ac_hi=
  14172. break
  14173. fi
  14174. ac_mid=`expr 2 '*' $ac_mid + 1`
  14175. fi
  14176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14177. done
  14178. else
  14179. echo "$as_me: failed program was:" >&5
  14180. sed 's/^/| /' conftest.$ac_ext >&5
  14181. cat >conftest.$ac_ext <<_ACEOF
  14182. /* confdefs.h. */
  14183. _ACEOF
  14184. cat confdefs.h >>conftest.$ac_ext
  14185. cat >>conftest.$ac_ext <<_ACEOF
  14186. /* end confdefs.h. */
  14187. #include <stddef.h>
  14188. int
  14189. main ()
  14190. {
  14191. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  14192. test_array [0] = 0
  14193. ;
  14194. return 0;
  14195. }
  14196. _ACEOF
  14197. rm -f conftest.$ac_objext
  14198. if { (ac_try="$ac_compile"
  14199. case "(($ac_try" in
  14200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14201. *) ac_try_echo=$ac_try;;
  14202. esac
  14203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14204. (eval "$ac_compile") 2>conftest.er1
  14205. ac_status=$?
  14206. grep -v '^ *+' conftest.er1 >conftest.err
  14207. rm -f conftest.er1
  14208. cat conftest.err >&5
  14209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14210. (exit $ac_status); } && {
  14211. test -z "$ac_cxx_werror_flag" ||
  14212. test ! -s conftest.err
  14213. } && test -s conftest.$ac_objext; then
  14214. ac_hi=-1 ac_mid=-1
  14215. while :; do
  14216. cat >conftest.$ac_ext <<_ACEOF
  14217. /* confdefs.h. */
  14218. _ACEOF
  14219. cat confdefs.h >>conftest.$ac_ext
  14220. cat >>conftest.$ac_ext <<_ACEOF
  14221. /* end confdefs.h. */
  14222. #include <stddef.h>
  14223. int
  14224. main ()
  14225. {
  14226. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  14227. test_array [0] = 0
  14228. ;
  14229. return 0;
  14230. }
  14231. _ACEOF
  14232. rm -f conftest.$ac_objext
  14233. if { (ac_try="$ac_compile"
  14234. case "(($ac_try" in
  14235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14236. *) ac_try_echo=$ac_try;;
  14237. esac
  14238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14239. (eval "$ac_compile") 2>conftest.er1
  14240. ac_status=$?
  14241. grep -v '^ *+' conftest.er1 >conftest.err
  14242. rm -f conftest.er1
  14243. cat conftest.err >&5
  14244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14245. (exit $ac_status); } && {
  14246. test -z "$ac_cxx_werror_flag" ||
  14247. test ! -s conftest.err
  14248. } && test -s conftest.$ac_objext; then
  14249. ac_lo=$ac_mid; break
  14250. else
  14251. echo "$as_me: failed program was:" >&5
  14252. sed 's/^/| /' conftest.$ac_ext >&5
  14253. ac_hi=`expr '(' $ac_mid ')' - 1`
  14254. if test $ac_mid -le $ac_hi; then
  14255. ac_lo= ac_hi=
  14256. break
  14257. fi
  14258. ac_mid=`expr 2 '*' $ac_mid`
  14259. fi
  14260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14261. done
  14262. else
  14263. echo "$as_me: failed program was:" >&5
  14264. sed 's/^/| /' conftest.$ac_ext >&5
  14265. ac_lo= ac_hi=
  14266. fi
  14267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14268. fi
  14269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14270. # Binary search between lo and hi bounds.
  14271. while test "x$ac_lo" != "x$ac_hi"; do
  14272. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14273. cat >conftest.$ac_ext <<_ACEOF
  14274. /* confdefs.h. */
  14275. _ACEOF
  14276. cat confdefs.h >>conftest.$ac_ext
  14277. cat >>conftest.$ac_ext <<_ACEOF
  14278. /* end confdefs.h. */
  14279. #include <stddef.h>
  14280. int
  14281. main ()
  14282. {
  14283. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14284. test_array [0] = 0
  14285. ;
  14286. return 0;
  14287. }
  14288. _ACEOF
  14289. rm -f conftest.$ac_objext
  14290. if { (ac_try="$ac_compile"
  14291. case "(($ac_try" in
  14292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14293. *) ac_try_echo=$ac_try;;
  14294. esac
  14295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14296. (eval "$ac_compile") 2>conftest.er1
  14297. ac_status=$?
  14298. grep -v '^ *+' conftest.er1 >conftest.err
  14299. rm -f conftest.er1
  14300. cat conftest.err >&5
  14301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14302. (exit $ac_status); } && {
  14303. test -z "$ac_cxx_werror_flag" ||
  14304. test ! -s conftest.err
  14305. } && test -s conftest.$ac_objext; then
  14306. ac_hi=$ac_mid
  14307. else
  14308. echo "$as_me: failed program was:" >&5
  14309. sed 's/^/| /' conftest.$ac_ext >&5
  14310. ac_lo=`expr '(' $ac_mid ')' + 1`
  14311. fi
  14312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14313. done
  14314. case $ac_lo in
  14315. ?*) fits_in_uint=$ac_lo;;
  14316. '') fits_in_uint= ;;
  14317. esac
  14318. else
  14319. cat >conftest.$ac_ext <<_ACEOF
  14320. /* confdefs.h. */
  14321. _ACEOF
  14322. cat confdefs.h >>conftest.$ac_ext
  14323. cat >>conftest.$ac_ext <<_ACEOF
  14324. /* end confdefs.h. */
  14325. #include <stddef.h>
  14326. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14327. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14328. #include <stdio.h>
  14329. #include <stdlib.h>
  14330. int
  14331. main ()
  14332. {
  14333. FILE *f = fopen ("conftest.val", "w");
  14334. if (! f)
  14335. return 1;
  14336. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14337. {
  14338. long int i = longval ();
  14339. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14340. return 1;
  14341. fprintf (f, "%ld\n", i);
  14342. }
  14343. else
  14344. {
  14345. unsigned long int i = ulongval ();
  14346. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14347. return 1;
  14348. fprintf (f, "%lu\n", i);
  14349. }
  14350. return ferror (f) || fclose (f) != 0;
  14351. ;
  14352. return 0;
  14353. }
  14354. _ACEOF
  14355. rm -f conftest$ac_exeext
  14356. if { (ac_try="$ac_link"
  14357. case "(($ac_try" in
  14358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14359. *) ac_try_echo=$ac_try;;
  14360. esac
  14361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14362. (eval "$ac_link") 2>&5
  14363. ac_status=$?
  14364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14365. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14366. { (case "(($ac_try" in
  14367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14368. *) ac_try_echo=$ac_try;;
  14369. esac
  14370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14371. (eval "$ac_try") 2>&5
  14372. ac_status=$?
  14373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14374. (exit $ac_status); }; }; then
  14375. fits_in_uint=`cat conftest.val`
  14376. else
  14377. echo "$as_me: program exited with status $ac_status" >&5
  14378. echo "$as_me: failed program was:" >&5
  14379. sed 's/^/| /' conftest.$ac_ext >&5
  14380. ( exit $ac_status )
  14381. fits_in_uint=
  14382. fi
  14383. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14384. fi
  14385. rm -f conftest.val
  14386. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14387. if test $fits_in_uint = 1; then
  14388. cat >conftest.$ac_ext <<_ACEOF
  14389. /* confdefs.h. */
  14390. _ACEOF
  14391. cat confdefs.h >>conftest.$ac_ext
  14392. cat >>conftest.$ac_ext <<_ACEOF
  14393. /* end confdefs.h. */
  14394. #include <stddef.h>
  14395. extern size_t foo;
  14396. extern unsigned long foo;
  14397. int
  14398. main ()
  14399. {
  14400. ;
  14401. return 0;
  14402. }
  14403. _ACEOF
  14404. rm -f conftest.$ac_objext
  14405. if { (ac_try="$ac_compile"
  14406. case "(($ac_try" in
  14407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14408. *) ac_try_echo=$ac_try;;
  14409. esac
  14410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14411. (eval "$ac_compile") 2>conftest.er1
  14412. ac_status=$?
  14413. grep -v '^ *+' conftest.er1 >conftest.err
  14414. rm -f conftest.er1
  14415. cat conftest.err >&5
  14416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14417. (exit $ac_status); } && {
  14418. test -z "$ac_cxx_werror_flag" ||
  14419. test ! -s conftest.err
  14420. } && test -s conftest.$ac_objext; then
  14421. fits_in_uint=0
  14422. else
  14423. echo "$as_me: failed program was:" >&5
  14424. sed 's/^/| /' conftest.$ac_ext >&5
  14425. fi
  14426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14427. fi
  14428. if test $fits_in_uint = 1; then
  14429. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14430. else
  14431. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14432. fi
  14433. else
  14434. gl_cv_size_max='((size_t)~(size_t)0)'
  14435. fi
  14436. fi
  14437. fi
  14438. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14439. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14440. if test "$gl_cv_size_max" != yes; then
  14441. cat >>confdefs.h <<_ACEOF
  14442. #define SIZE_MAX $gl_cv_size_max
  14443. _ACEOF
  14444. fi
  14445. for ac_header in stdint.h
  14446. do
  14447. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14448. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14449. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14450. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14451. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14452. echo $ECHO_N "(cached) $ECHO_C" >&6
  14453. fi
  14454. ac_res=`eval echo '${'$as_ac_Header'}'`
  14455. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14456. echo "${ECHO_T}$ac_res" >&6; }
  14457. else
  14458. # Is the header compilable?
  14459. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14460. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14461. cat >conftest.$ac_ext <<_ACEOF
  14462. /* confdefs.h. */
  14463. _ACEOF
  14464. cat confdefs.h >>conftest.$ac_ext
  14465. cat >>conftest.$ac_ext <<_ACEOF
  14466. /* end confdefs.h. */
  14467. $ac_includes_default
  14468. #include <$ac_header>
  14469. _ACEOF
  14470. rm -f conftest.$ac_objext
  14471. if { (ac_try="$ac_compile"
  14472. case "(($ac_try" in
  14473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14474. *) ac_try_echo=$ac_try;;
  14475. esac
  14476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14477. (eval "$ac_compile") 2>conftest.er1
  14478. ac_status=$?
  14479. grep -v '^ *+' conftest.er1 >conftest.err
  14480. rm -f conftest.er1
  14481. cat conftest.err >&5
  14482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14483. (exit $ac_status); } && {
  14484. test -z "$ac_cxx_werror_flag" ||
  14485. test ! -s conftest.err
  14486. } && test -s conftest.$ac_objext; then
  14487. ac_header_compiler=yes
  14488. else
  14489. echo "$as_me: failed program was:" >&5
  14490. sed 's/^/| /' conftest.$ac_ext >&5
  14491. ac_header_compiler=no
  14492. fi
  14493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14494. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14495. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14496. # Is the header present?
  14497. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14498. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14499. cat >conftest.$ac_ext <<_ACEOF
  14500. /* confdefs.h. */
  14501. _ACEOF
  14502. cat confdefs.h >>conftest.$ac_ext
  14503. cat >>conftest.$ac_ext <<_ACEOF
  14504. /* end confdefs.h. */
  14505. #include <$ac_header>
  14506. _ACEOF
  14507. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14508. case "(($ac_try" in
  14509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14510. *) ac_try_echo=$ac_try;;
  14511. esac
  14512. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14513. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14514. ac_status=$?
  14515. grep -v '^ *+' conftest.er1 >conftest.err
  14516. rm -f conftest.er1
  14517. cat conftest.err >&5
  14518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14519. (exit $ac_status); } >/dev/null && {
  14520. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14521. test ! -s conftest.err
  14522. }; then
  14523. ac_header_preproc=yes
  14524. else
  14525. echo "$as_me: failed program was:" >&5
  14526. sed 's/^/| /' conftest.$ac_ext >&5
  14527. ac_header_preproc=no
  14528. fi
  14529. rm -f conftest.err conftest.$ac_ext
  14530. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14531. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14532. # So? What about this header?
  14533. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14534. yes:no: )
  14535. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14536. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14537. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14538. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14539. ac_header_preproc=yes
  14540. ;;
  14541. no:yes:* )
  14542. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14543. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14544. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14545. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14546. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14547. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14548. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14549. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14550. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14551. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14552. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14553. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14554. ( cat <<\_ASBOX
  14555. ## ----------------------------------------------- ##
  14556. ## Report this to t-tujikawa@users.sourceforge.net ##
  14557. ## ----------------------------------------------- ##
  14558. _ASBOX
  14559. ) | sed "s/^/$as_me: WARNING: /" >&2
  14560. ;;
  14561. esac
  14562. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14563. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14564. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14565. echo $ECHO_N "(cached) $ECHO_C" >&6
  14566. else
  14567. eval "$as_ac_Header=\$ac_header_preproc"
  14568. fi
  14569. ac_res=`eval echo '${'$as_ac_Header'}'`
  14570. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14571. echo "${ECHO_T}$ac_res" >&6; }
  14572. fi
  14573. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14574. cat >>confdefs.h <<_ACEOF
  14575. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14576. _ACEOF
  14577. fi
  14578. done
  14579. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14580. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14581. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14582. echo $ECHO_N "(cached) $ECHO_C" >&6
  14583. else
  14584. gt_save_LIBS="$LIBS"
  14585. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14586. cat >conftest.$ac_ext <<_ACEOF
  14587. /* confdefs.h. */
  14588. _ACEOF
  14589. cat confdefs.h >>conftest.$ac_ext
  14590. cat >>conftest.$ac_ext <<_ACEOF
  14591. /* end confdefs.h. */
  14592. #include <CoreFoundation/CFPreferences.h>
  14593. int
  14594. main ()
  14595. {
  14596. CFPreferencesCopyAppValue(NULL, NULL)
  14597. ;
  14598. return 0;
  14599. }
  14600. _ACEOF
  14601. rm -f conftest.$ac_objext conftest$ac_exeext
  14602. if { (ac_try="$ac_link"
  14603. case "(($ac_try" in
  14604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14605. *) ac_try_echo=$ac_try;;
  14606. esac
  14607. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14608. (eval "$ac_link") 2>conftest.er1
  14609. ac_status=$?
  14610. grep -v '^ *+' conftest.er1 >conftest.err
  14611. rm -f conftest.er1
  14612. cat conftest.err >&5
  14613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14614. (exit $ac_status); } && {
  14615. test -z "$ac_cxx_werror_flag" ||
  14616. test ! -s conftest.err
  14617. } && test -s conftest$ac_exeext &&
  14618. $as_test_x conftest$ac_exeext; then
  14619. gt_cv_func_CFPreferencesCopyAppValue=yes
  14620. else
  14621. echo "$as_me: failed program was:" >&5
  14622. sed 's/^/| /' conftest.$ac_ext >&5
  14623. gt_cv_func_CFPreferencesCopyAppValue=no
  14624. fi
  14625. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14626. conftest$ac_exeext conftest.$ac_ext
  14627. LIBS="$gt_save_LIBS"
  14628. fi
  14629. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14630. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14631. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14632. cat >>confdefs.h <<\_ACEOF
  14633. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14634. _ACEOF
  14635. fi
  14636. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14637. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14638. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14639. echo $ECHO_N "(cached) $ECHO_C" >&6
  14640. else
  14641. gt_save_LIBS="$LIBS"
  14642. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14643. cat >conftest.$ac_ext <<_ACEOF
  14644. /* confdefs.h. */
  14645. _ACEOF
  14646. cat confdefs.h >>conftest.$ac_ext
  14647. cat >>conftest.$ac_ext <<_ACEOF
  14648. /* end confdefs.h. */
  14649. #include <CoreFoundation/CFLocale.h>
  14650. int
  14651. main ()
  14652. {
  14653. CFLocaleCopyCurrent();
  14654. ;
  14655. return 0;
  14656. }
  14657. _ACEOF
  14658. rm -f conftest.$ac_objext conftest$ac_exeext
  14659. if { (ac_try="$ac_link"
  14660. case "(($ac_try" in
  14661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14662. *) ac_try_echo=$ac_try;;
  14663. esac
  14664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14665. (eval "$ac_link") 2>conftest.er1
  14666. ac_status=$?
  14667. grep -v '^ *+' conftest.er1 >conftest.err
  14668. rm -f conftest.er1
  14669. cat conftest.err >&5
  14670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14671. (exit $ac_status); } && {
  14672. test -z "$ac_cxx_werror_flag" ||
  14673. test ! -s conftest.err
  14674. } && test -s conftest$ac_exeext &&
  14675. $as_test_x conftest$ac_exeext; then
  14676. gt_cv_func_CFLocaleCopyCurrent=yes
  14677. else
  14678. echo "$as_me: failed program was:" >&5
  14679. sed 's/^/| /' conftest.$ac_ext >&5
  14680. gt_cv_func_CFLocaleCopyCurrent=no
  14681. fi
  14682. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14683. conftest$ac_exeext conftest.$ac_ext
  14684. LIBS="$gt_save_LIBS"
  14685. fi
  14686. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14687. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14688. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14689. cat >>confdefs.h <<\_ACEOF
  14690. #define HAVE_CFLOCALECOPYCURRENT 1
  14691. _ACEOF
  14692. fi
  14693. INTL_MACOSX_LIBS=
  14694. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14695. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14696. fi
  14697. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14698. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14699. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14700. echo $ECHO_N "(cached) $ECHO_C" >&6
  14701. else
  14702. cat >conftest.$ac_ext <<_ACEOF
  14703. /* confdefs.h. */
  14704. _ACEOF
  14705. cat confdefs.h >>conftest.$ac_ext
  14706. cat >>conftest.$ac_ext <<_ACEOF
  14707. /* end confdefs.h. */
  14708. $ac_includes_default
  14709. typedef ptrdiff_t ac__type_new_;
  14710. int
  14711. main ()
  14712. {
  14713. if ((ac__type_new_ *) 0)
  14714. return 0;
  14715. if (sizeof (ac__type_new_))
  14716. return 0;
  14717. ;
  14718. return 0;
  14719. }
  14720. _ACEOF
  14721. rm -f conftest.$ac_objext
  14722. if { (ac_try="$ac_compile"
  14723. case "(($ac_try" in
  14724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14725. *) ac_try_echo=$ac_try;;
  14726. esac
  14727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14728. (eval "$ac_compile") 2>conftest.er1
  14729. ac_status=$?
  14730. grep -v '^ *+' conftest.er1 >conftest.err
  14731. rm -f conftest.er1
  14732. cat conftest.err >&5
  14733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14734. (exit $ac_status); } && {
  14735. test -z "$ac_cxx_werror_flag" ||
  14736. test ! -s conftest.err
  14737. } && test -s conftest.$ac_objext; then
  14738. ac_cv_type_ptrdiff_t=yes
  14739. else
  14740. echo "$as_me: failed program was:" >&5
  14741. sed 's/^/| /' conftest.$ac_ext >&5
  14742. ac_cv_type_ptrdiff_t=no
  14743. fi
  14744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14745. fi
  14746. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14747. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14748. if test $ac_cv_type_ptrdiff_t = yes; then
  14749. :
  14750. else
  14751. cat >>confdefs.h <<\_ACEOF
  14752. #define ptrdiff_t long
  14753. _ACEOF
  14754. fi
  14755. for ac_header in stddef.h stdlib.h string.h
  14756. do
  14757. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14758. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14759. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14760. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14761. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14762. echo $ECHO_N "(cached) $ECHO_C" >&6
  14763. fi
  14764. ac_res=`eval echo '${'$as_ac_Header'}'`
  14765. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14766. echo "${ECHO_T}$ac_res" >&6; }
  14767. else
  14768. # Is the header compilable?
  14769. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14770. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14771. cat >conftest.$ac_ext <<_ACEOF
  14772. /* confdefs.h. */
  14773. _ACEOF
  14774. cat confdefs.h >>conftest.$ac_ext
  14775. cat >>conftest.$ac_ext <<_ACEOF
  14776. /* end confdefs.h. */
  14777. $ac_includes_default
  14778. #include <$ac_header>
  14779. _ACEOF
  14780. rm -f conftest.$ac_objext
  14781. if { (ac_try="$ac_compile"
  14782. case "(($ac_try" in
  14783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14784. *) ac_try_echo=$ac_try;;
  14785. esac
  14786. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14787. (eval "$ac_compile") 2>conftest.er1
  14788. ac_status=$?
  14789. grep -v '^ *+' conftest.er1 >conftest.err
  14790. rm -f conftest.er1
  14791. cat conftest.err >&5
  14792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14793. (exit $ac_status); } && {
  14794. test -z "$ac_cxx_werror_flag" ||
  14795. test ! -s conftest.err
  14796. } && test -s conftest.$ac_objext; then
  14797. ac_header_compiler=yes
  14798. else
  14799. echo "$as_me: failed program was:" >&5
  14800. sed 's/^/| /' conftest.$ac_ext >&5
  14801. ac_header_compiler=no
  14802. fi
  14803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14804. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14805. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14806. # Is the header present?
  14807. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14808. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14809. cat >conftest.$ac_ext <<_ACEOF
  14810. /* confdefs.h. */
  14811. _ACEOF
  14812. cat confdefs.h >>conftest.$ac_ext
  14813. cat >>conftest.$ac_ext <<_ACEOF
  14814. /* end confdefs.h. */
  14815. #include <$ac_header>
  14816. _ACEOF
  14817. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14818. case "(($ac_try" in
  14819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14820. *) ac_try_echo=$ac_try;;
  14821. esac
  14822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14823. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14824. ac_status=$?
  14825. grep -v '^ *+' conftest.er1 >conftest.err
  14826. rm -f conftest.er1
  14827. cat conftest.err >&5
  14828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14829. (exit $ac_status); } >/dev/null && {
  14830. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14831. test ! -s conftest.err
  14832. }; then
  14833. ac_header_preproc=yes
  14834. else
  14835. echo "$as_me: failed program was:" >&5
  14836. sed 's/^/| /' conftest.$ac_ext >&5
  14837. ac_header_preproc=no
  14838. fi
  14839. rm -f conftest.err conftest.$ac_ext
  14840. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14841. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14842. # So? What about this header?
  14843. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14844. yes:no: )
  14845. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14846. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14847. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14848. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14849. ac_header_preproc=yes
  14850. ;;
  14851. no:yes:* )
  14852. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14853. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14854. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14855. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14856. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14857. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14858. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14859. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14860. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14861. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14862. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14863. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14864. ( cat <<\_ASBOX
  14865. ## ----------------------------------------------- ##
  14866. ## Report this to t-tujikawa@users.sourceforge.net ##
  14867. ## ----------------------------------------------- ##
  14868. _ASBOX
  14869. ) | sed "s/^/$as_me: WARNING: /" >&2
  14870. ;;
  14871. esac
  14872. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14873. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14874. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14875. echo $ECHO_N "(cached) $ECHO_C" >&6
  14876. else
  14877. eval "$as_ac_Header=\$ac_header_preproc"
  14878. fi
  14879. ac_res=`eval echo '${'$as_ac_Header'}'`
  14880. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14881. echo "${ECHO_T}$ac_res" >&6; }
  14882. fi
  14883. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14884. cat >>confdefs.h <<_ACEOF
  14885. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14886. _ACEOF
  14887. fi
  14888. done
  14889. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14890. do
  14891. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14892. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14893. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14894. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14895. echo $ECHO_N "(cached) $ECHO_C" >&6
  14896. else
  14897. cat >conftest.$ac_ext <<_ACEOF
  14898. /* confdefs.h. */
  14899. _ACEOF
  14900. cat confdefs.h >>conftest.$ac_ext
  14901. cat >>conftest.$ac_ext <<_ACEOF
  14902. /* end confdefs.h. */
  14903. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14904. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14905. #define $ac_func innocuous_$ac_func
  14906. /* System header to define __stub macros and hopefully few prototypes,
  14907. which can conflict with char $ac_func (); below.
  14908. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14909. <limits.h> exists even on freestanding compilers. */
  14910. #ifdef __STDC__
  14911. # include <limits.h>
  14912. #else
  14913. # include <assert.h>
  14914. #endif
  14915. #undef $ac_func
  14916. /* Override any GCC internal prototype to avoid an error.
  14917. Use char because int might match the return type of a GCC
  14918. builtin and then its argument prototype would still apply. */
  14919. #ifdef __cplusplus
  14920. extern "C"
  14921. #endif
  14922. char $ac_func ();
  14923. /* The GNU C library defines this for functions which it implements
  14924. to always fail with ENOSYS. Some functions are actually named
  14925. something starting with __ and the normal name is an alias. */
  14926. #if defined __stub_$ac_func || defined __stub___$ac_func
  14927. choke me
  14928. #endif
  14929. int
  14930. main ()
  14931. {
  14932. return $ac_func ();
  14933. ;
  14934. return 0;
  14935. }
  14936. _ACEOF
  14937. rm -f conftest.$ac_objext conftest$ac_exeext
  14938. if { (ac_try="$ac_link"
  14939. case "(($ac_try" in
  14940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14941. *) ac_try_echo=$ac_try;;
  14942. esac
  14943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14944. (eval "$ac_link") 2>conftest.er1
  14945. ac_status=$?
  14946. grep -v '^ *+' conftest.er1 >conftest.err
  14947. rm -f conftest.er1
  14948. cat conftest.err >&5
  14949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14950. (exit $ac_status); } && {
  14951. test -z "$ac_cxx_werror_flag" ||
  14952. test ! -s conftest.err
  14953. } && test -s conftest$ac_exeext &&
  14954. $as_test_x conftest$ac_exeext; then
  14955. eval "$as_ac_var=yes"
  14956. else
  14957. echo "$as_me: failed program was:" >&5
  14958. sed 's/^/| /' conftest.$ac_ext >&5
  14959. eval "$as_ac_var=no"
  14960. fi
  14961. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14962. conftest$ac_exeext conftest.$ac_ext
  14963. fi
  14964. ac_res=`eval echo '${'$as_ac_var'}'`
  14965. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14966. echo "${ECHO_T}$ac_res" >&6; }
  14967. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14968. cat >>confdefs.h <<_ACEOF
  14969. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14970. _ACEOF
  14971. fi
  14972. done
  14973. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14974. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14975. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14976. echo $ECHO_N "(cached) $ECHO_C" >&6
  14977. else
  14978. cat >conftest.$ac_ext <<_ACEOF
  14979. /* confdefs.h. */
  14980. _ACEOF
  14981. cat confdefs.h >>conftest.$ac_ext
  14982. cat >>conftest.$ac_ext <<_ACEOF
  14983. /* end confdefs.h. */
  14984. #include <stdio.h>
  14985. int
  14986. main ()
  14987. {
  14988. #ifndef _snprintf
  14989. char *p = (char *) _snprintf;
  14990. #endif
  14991. ;
  14992. return 0;
  14993. }
  14994. _ACEOF
  14995. rm -f conftest.$ac_objext
  14996. if { (ac_try="$ac_compile"
  14997. case "(($ac_try" in
  14998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14999. *) ac_try_echo=$ac_try;;
  15000. esac
  15001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15002. (eval "$ac_compile") 2>conftest.er1
  15003. ac_status=$?
  15004. grep -v '^ *+' conftest.er1 >conftest.err
  15005. rm -f conftest.er1
  15006. cat conftest.err >&5
  15007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15008. (exit $ac_status); } && {
  15009. test -z "$ac_cxx_werror_flag" ||
  15010. test ! -s conftest.err
  15011. } && test -s conftest.$ac_objext; then
  15012. ac_cv_have_decl__snprintf=yes
  15013. else
  15014. echo "$as_me: failed program was:" >&5
  15015. sed 's/^/| /' conftest.$ac_ext >&5
  15016. ac_cv_have_decl__snprintf=no
  15017. fi
  15018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15019. fi
  15020. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15021. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  15022. if test $ac_cv_have_decl__snprintf = yes; then
  15023. gt_value=1
  15024. else
  15025. gt_value=0
  15026. fi
  15027. cat >>confdefs.h <<_ACEOF
  15028. #define HAVE_DECL__SNPRINTF $gt_value
  15029. _ACEOF
  15030. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15031. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  15032. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15033. echo $ECHO_N "(cached) $ECHO_C" >&6
  15034. else
  15035. cat >conftest.$ac_ext <<_ACEOF
  15036. /* confdefs.h. */
  15037. _ACEOF
  15038. cat confdefs.h >>conftest.$ac_ext
  15039. cat >>conftest.$ac_ext <<_ACEOF
  15040. /* end confdefs.h. */
  15041. #include <stdio.h>
  15042. int
  15043. main ()
  15044. {
  15045. #ifndef _snwprintf
  15046. char *p = (char *) _snwprintf;
  15047. #endif
  15048. ;
  15049. return 0;
  15050. }
  15051. _ACEOF
  15052. rm -f conftest.$ac_objext
  15053. if { (ac_try="$ac_compile"
  15054. case "(($ac_try" in
  15055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15056. *) ac_try_echo=$ac_try;;
  15057. esac
  15058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15059. (eval "$ac_compile") 2>conftest.er1
  15060. ac_status=$?
  15061. grep -v '^ *+' conftest.er1 >conftest.err
  15062. rm -f conftest.er1
  15063. cat conftest.err >&5
  15064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15065. (exit $ac_status); } && {
  15066. test -z "$ac_cxx_werror_flag" ||
  15067. test ! -s conftest.err
  15068. } && test -s conftest.$ac_objext; then
  15069. ac_cv_have_decl__snwprintf=yes
  15070. else
  15071. echo "$as_me: failed program was:" >&5
  15072. sed 's/^/| /' conftest.$ac_ext >&5
  15073. ac_cv_have_decl__snwprintf=no
  15074. fi
  15075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15076. fi
  15077. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  15078. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  15079. if test $ac_cv_have_decl__snwprintf = yes; then
  15080. gt_value=1
  15081. else
  15082. gt_value=0
  15083. fi
  15084. cat >>confdefs.h <<_ACEOF
  15085. #define HAVE_DECL__SNWPRINTF $gt_value
  15086. _ACEOF
  15087. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  15088. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  15089. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  15090. echo $ECHO_N "(cached) $ECHO_C" >&6
  15091. else
  15092. cat >conftest.$ac_ext <<_ACEOF
  15093. /* confdefs.h. */
  15094. _ACEOF
  15095. cat confdefs.h >>conftest.$ac_ext
  15096. cat >>conftest.$ac_ext <<_ACEOF
  15097. /* end confdefs.h. */
  15098. #include <stdio.h>
  15099. int
  15100. main ()
  15101. {
  15102. #ifndef getc_unlocked
  15103. char *p = (char *) getc_unlocked;
  15104. #endif
  15105. ;
  15106. return 0;
  15107. }
  15108. _ACEOF
  15109. rm -f conftest.$ac_objext
  15110. if { (ac_try="$ac_compile"
  15111. case "(($ac_try" in
  15112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15113. *) ac_try_echo=$ac_try;;
  15114. esac
  15115. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15116. (eval "$ac_compile") 2>conftest.er1
  15117. ac_status=$?
  15118. grep -v '^ *+' conftest.er1 >conftest.err
  15119. rm -f conftest.er1
  15120. cat conftest.err >&5
  15121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15122. (exit $ac_status); } && {
  15123. test -z "$ac_cxx_werror_flag" ||
  15124. test ! -s conftest.err
  15125. } && test -s conftest.$ac_objext; then
  15126. ac_cv_have_decl_getc_unlocked=yes
  15127. else
  15128. echo "$as_me: failed program was:" >&5
  15129. sed 's/^/| /' conftest.$ac_ext >&5
  15130. ac_cv_have_decl_getc_unlocked=no
  15131. fi
  15132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15133. fi
  15134. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  15135. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  15136. if test $ac_cv_have_decl_getc_unlocked = yes; then
  15137. gt_value=1
  15138. else
  15139. gt_value=0
  15140. fi
  15141. cat >>confdefs.h <<_ACEOF
  15142. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  15143. _ACEOF
  15144. case $gt_cv_func_printf_posix in
  15145. *yes) HAVE_POSIX_PRINTF=1 ;;
  15146. *) HAVE_POSIX_PRINTF=0 ;;
  15147. esac
  15148. if test "$ac_cv_func_asprintf" = yes; then
  15149. HAVE_ASPRINTF=1
  15150. else
  15151. HAVE_ASPRINTF=0
  15152. fi
  15153. if test "$ac_cv_func_snprintf" = yes; then
  15154. HAVE_SNPRINTF=1
  15155. else
  15156. HAVE_SNPRINTF=0
  15157. fi
  15158. if test "$ac_cv_func_wprintf" = yes; then
  15159. HAVE_WPRINTF=1
  15160. else
  15161. HAVE_WPRINTF=0
  15162. fi
  15163. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  15164. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  15165. if test "${am_cv_langinfo_codeset+set}" = set; then
  15166. echo $ECHO_N "(cached) $ECHO_C" >&6
  15167. else
  15168. cat >conftest.$ac_ext <<_ACEOF
  15169. /* confdefs.h. */
  15170. _ACEOF
  15171. cat confdefs.h >>conftest.$ac_ext
  15172. cat >>conftest.$ac_ext <<_ACEOF
  15173. /* end confdefs.h. */
  15174. #include <langinfo.h>
  15175. int
  15176. main ()
  15177. {
  15178. char* cs = nl_langinfo(CODESET); return !cs;
  15179. ;
  15180. return 0;
  15181. }
  15182. _ACEOF
  15183. rm -f conftest.$ac_objext conftest$ac_exeext
  15184. if { (ac_try="$ac_link"
  15185. case "(($ac_try" in
  15186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15187. *) ac_try_echo=$ac_try;;
  15188. esac
  15189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15190. (eval "$ac_link") 2>conftest.er1
  15191. ac_status=$?
  15192. grep -v '^ *+' conftest.er1 >conftest.err
  15193. rm -f conftest.er1
  15194. cat conftest.err >&5
  15195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15196. (exit $ac_status); } && {
  15197. test -z "$ac_cxx_werror_flag" ||
  15198. test ! -s conftest.err
  15199. } && test -s conftest$ac_exeext &&
  15200. $as_test_x conftest$ac_exeext; then
  15201. am_cv_langinfo_codeset=yes
  15202. else
  15203. echo "$as_me: failed program was:" >&5
  15204. sed 's/^/| /' conftest.$ac_ext >&5
  15205. am_cv_langinfo_codeset=no
  15206. fi
  15207. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15208. conftest$ac_exeext conftest.$ac_ext
  15209. fi
  15210. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  15211. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  15212. if test $am_cv_langinfo_codeset = yes; then
  15213. cat >>confdefs.h <<\_ACEOF
  15214. #define HAVE_LANGINFO_CODESET 1
  15215. _ACEOF
  15216. fi
  15217. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  15218. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  15219. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  15220. echo $ECHO_N "(cached) $ECHO_C" >&6
  15221. else
  15222. cat >conftest.$ac_ext <<_ACEOF
  15223. /* confdefs.h. */
  15224. _ACEOF
  15225. cat confdefs.h >>conftest.$ac_ext
  15226. cat >>conftest.$ac_ext <<_ACEOF
  15227. /* end confdefs.h. */
  15228. #include <locale.h>
  15229. int
  15230. main ()
  15231. {
  15232. return LC_MESSAGES
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. rm -f conftest.$ac_objext conftest$ac_exeext
  15238. if { (ac_try="$ac_link"
  15239. case "(($ac_try" in
  15240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15241. *) ac_try_echo=$ac_try;;
  15242. esac
  15243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15244. (eval "$ac_link") 2>conftest.er1
  15245. ac_status=$?
  15246. grep -v '^ *+' conftest.er1 >conftest.err
  15247. rm -f conftest.er1
  15248. cat conftest.err >&5
  15249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15250. (exit $ac_status); } && {
  15251. test -z "$ac_cxx_werror_flag" ||
  15252. test ! -s conftest.err
  15253. } && test -s conftest$ac_exeext &&
  15254. $as_test_x conftest$ac_exeext; then
  15255. gt_cv_val_LC_MESSAGES=yes
  15256. else
  15257. echo "$as_me: failed program was:" >&5
  15258. sed 's/^/| /' conftest.$ac_ext >&5
  15259. gt_cv_val_LC_MESSAGES=no
  15260. fi
  15261. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15262. conftest$ac_exeext conftest.$ac_ext
  15263. fi
  15264. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15265. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15266. if test $gt_cv_val_LC_MESSAGES = yes; then
  15267. cat >>confdefs.h <<\_ACEOF
  15268. #define HAVE_LC_MESSAGES 1
  15269. _ACEOF
  15270. fi
  15271. if test "$enable_shared" = yes; then
  15272. case "$host_os" in
  15273. mingw* | cygwin*) is_woe32dll=yes ;;
  15274. *) is_woe32dll=no ;;
  15275. esac
  15276. else
  15277. is_woe32dll=no
  15278. fi
  15279. WOE32DLL=$is_woe32dll
  15280. case "$host_os" in
  15281. mingw* | cygwin*) is_woe32=yes ;;
  15282. *) is_woe32=no ;;
  15283. esac
  15284. WOE32=$is_woe32
  15285. if test $WOE32 = yes; then
  15286. if test -n "$ac_tool_prefix"; then
  15287. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15288. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15289. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15290. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15291. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15292. echo $ECHO_N "(cached) $ECHO_C" >&6
  15293. else
  15294. if test -n "$WINDRES"; then
  15295. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15296. else
  15297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15298. for as_dir in $PATH
  15299. do
  15300. IFS=$as_save_IFS
  15301. test -z "$as_dir" && as_dir=.
  15302. for ac_exec_ext in '' $ac_executable_extensions; do
  15303. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15304. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15305. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15306. break 2
  15307. fi
  15308. done
  15309. done
  15310. IFS=$as_save_IFS
  15311. fi
  15312. fi
  15313. WINDRES=$ac_cv_prog_WINDRES
  15314. if test -n "$WINDRES"; then
  15315. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15316. echo "${ECHO_T}$WINDRES" >&6; }
  15317. else
  15318. { echo "$as_me:$LINENO: result: no" >&5
  15319. echo "${ECHO_T}no" >&6; }
  15320. fi
  15321. fi
  15322. if test -z "$ac_cv_prog_WINDRES"; then
  15323. ac_ct_WINDRES=$WINDRES
  15324. # Extract the first word of "windres", so it can be a program name with args.
  15325. set dummy windres; ac_word=$2
  15326. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15327. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15328. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15329. echo $ECHO_N "(cached) $ECHO_C" >&6
  15330. else
  15331. if test -n "$ac_ct_WINDRES"; then
  15332. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15333. else
  15334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15335. for as_dir in $PATH
  15336. do
  15337. IFS=$as_save_IFS
  15338. test -z "$as_dir" && as_dir=.
  15339. for ac_exec_ext in '' $ac_executable_extensions; do
  15340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15341. ac_cv_prog_ac_ct_WINDRES="windres"
  15342. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15343. break 2
  15344. fi
  15345. done
  15346. done
  15347. IFS=$as_save_IFS
  15348. fi
  15349. fi
  15350. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15351. if test -n "$ac_ct_WINDRES"; then
  15352. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15353. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15354. else
  15355. { echo "$as_me:$LINENO: result: no" >&5
  15356. echo "${ECHO_T}no" >&6; }
  15357. fi
  15358. if test "x$ac_ct_WINDRES" = x; then
  15359. WINDRES=""
  15360. else
  15361. case $cross_compiling:$ac_tool_warned in
  15362. yes:)
  15363. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15364. whose name does not start with the host triplet. If you think this
  15365. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15366. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15367. whose name does not start with the host triplet. If you think this
  15368. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15369. ac_tool_warned=yes ;;
  15370. esac
  15371. WINDRES=$ac_ct_WINDRES
  15372. fi
  15373. else
  15374. WINDRES="$ac_cv_prog_WINDRES"
  15375. fi
  15376. fi
  15377. case "$host_os" in
  15378. hpux*) LTLIBC="" ;;
  15379. *) LTLIBC="-lc" ;;
  15380. esac
  15381. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15382. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15383. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15384. echo $ECHO_N "(cached) $ECHO_C" >&6
  15385. else
  15386. gt_save_LIBS="$LIBS"
  15387. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15388. cat >conftest.$ac_ext <<_ACEOF
  15389. /* confdefs.h. */
  15390. _ACEOF
  15391. cat confdefs.h >>conftest.$ac_ext
  15392. cat >>conftest.$ac_ext <<_ACEOF
  15393. /* end confdefs.h. */
  15394. #include <CoreFoundation/CFPreferences.h>
  15395. int
  15396. main ()
  15397. {
  15398. CFPreferencesCopyAppValue(NULL, NULL)
  15399. ;
  15400. return 0;
  15401. }
  15402. _ACEOF
  15403. rm -f conftest.$ac_objext conftest$ac_exeext
  15404. if { (ac_try="$ac_link"
  15405. case "(($ac_try" in
  15406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15407. *) ac_try_echo=$ac_try;;
  15408. esac
  15409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15410. (eval "$ac_link") 2>conftest.er1
  15411. ac_status=$?
  15412. grep -v '^ *+' conftest.er1 >conftest.err
  15413. rm -f conftest.er1
  15414. cat conftest.err >&5
  15415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15416. (exit $ac_status); } && {
  15417. test -z "$ac_cxx_werror_flag" ||
  15418. test ! -s conftest.err
  15419. } && test -s conftest$ac_exeext &&
  15420. $as_test_x conftest$ac_exeext; then
  15421. gt_cv_func_CFPreferencesCopyAppValue=yes
  15422. else
  15423. echo "$as_me: failed program was:" >&5
  15424. sed 's/^/| /' conftest.$ac_ext >&5
  15425. gt_cv_func_CFPreferencesCopyAppValue=no
  15426. fi
  15427. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15428. conftest$ac_exeext conftest.$ac_ext
  15429. LIBS="$gt_save_LIBS"
  15430. fi
  15431. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15432. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15433. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15434. cat >>confdefs.h <<\_ACEOF
  15435. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15436. _ACEOF
  15437. fi
  15438. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15439. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15440. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15441. echo $ECHO_N "(cached) $ECHO_C" >&6
  15442. else
  15443. gt_save_LIBS="$LIBS"
  15444. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15445. cat >conftest.$ac_ext <<_ACEOF
  15446. /* confdefs.h. */
  15447. _ACEOF
  15448. cat confdefs.h >>conftest.$ac_ext
  15449. cat >>conftest.$ac_ext <<_ACEOF
  15450. /* end confdefs.h. */
  15451. #include <CoreFoundation/CFLocale.h>
  15452. int
  15453. main ()
  15454. {
  15455. CFLocaleCopyCurrent();
  15456. ;
  15457. return 0;
  15458. }
  15459. _ACEOF
  15460. rm -f conftest.$ac_objext conftest$ac_exeext
  15461. if { (ac_try="$ac_link"
  15462. case "(($ac_try" in
  15463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15464. *) ac_try_echo=$ac_try;;
  15465. esac
  15466. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15467. (eval "$ac_link") 2>conftest.er1
  15468. ac_status=$?
  15469. grep -v '^ *+' conftest.er1 >conftest.err
  15470. rm -f conftest.er1
  15471. cat conftest.err >&5
  15472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15473. (exit $ac_status); } && {
  15474. test -z "$ac_cxx_werror_flag" ||
  15475. test ! -s conftest.err
  15476. } && test -s conftest$ac_exeext &&
  15477. $as_test_x conftest$ac_exeext; then
  15478. gt_cv_func_CFLocaleCopyCurrent=yes
  15479. else
  15480. echo "$as_me: failed program was:" >&5
  15481. sed 's/^/| /' conftest.$ac_ext >&5
  15482. gt_cv_func_CFLocaleCopyCurrent=no
  15483. fi
  15484. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15485. conftest$ac_exeext conftest.$ac_ext
  15486. LIBS="$gt_save_LIBS"
  15487. fi
  15488. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15489. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15490. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15491. cat >>confdefs.h <<\_ACEOF
  15492. #define HAVE_CFLOCALECOPYCURRENT 1
  15493. _ACEOF
  15494. fi
  15495. INTL_MACOSX_LIBS=
  15496. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15497. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15498. fi
  15499. BUILD_INCLUDED_LIBINTL=no
  15500. USE_INCLUDED_LIBINTL=no
  15501. LIBINTL=
  15502. LTLIBINTL=
  15503. POSUB=
  15504. case " $gt_needs " in
  15505. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15506. *" need-ngettext "*) gt_api_version=2 ;;
  15507. *) gt_api_version=1 ;;
  15508. esac
  15509. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15510. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15511. if test "$USE_NLS" = "yes"; then
  15512. gt_use_preinstalled_gnugettext=no
  15513. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15514. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15515. # Check whether --with-included-gettext was given.
  15516. if test "${with_included_gettext+set}" = set; then
  15517. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15518. else
  15519. nls_cv_force_use_gnu_gettext=no
  15520. fi
  15521. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15522. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15523. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15524. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15525. if test $gt_api_version -ge 3; then
  15526. gt_revision_test_code='
  15527. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15528. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15529. #endif
  15530. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15531. '
  15532. else
  15533. gt_revision_test_code=
  15534. fi
  15535. if test $gt_api_version -ge 2; then
  15536. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15537. else
  15538. gt_expression_test_code=
  15539. fi
  15540. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15541. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15542. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15543. echo $ECHO_N "(cached) $ECHO_C" >&6
  15544. else
  15545. cat >conftest.$ac_ext <<_ACEOF
  15546. /* confdefs.h. */
  15547. _ACEOF
  15548. cat confdefs.h >>conftest.$ac_ext
  15549. cat >>conftest.$ac_ext <<_ACEOF
  15550. /* end confdefs.h. */
  15551. #include <libintl.h>
  15552. $gt_revision_test_code
  15553. extern int _nl_msg_cat_cntr;
  15554. extern int *_nl_domain_bindings;
  15555. int
  15556. main ()
  15557. {
  15558. bindtextdomain ("", "");
  15559. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15560. ;
  15561. return 0;
  15562. }
  15563. _ACEOF
  15564. rm -f conftest.$ac_objext conftest$ac_exeext
  15565. if { (ac_try="$ac_link"
  15566. case "(($ac_try" in
  15567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15568. *) ac_try_echo=$ac_try;;
  15569. esac
  15570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15571. (eval "$ac_link") 2>conftest.er1
  15572. ac_status=$?
  15573. grep -v '^ *+' conftest.er1 >conftest.err
  15574. rm -f conftest.er1
  15575. cat conftest.err >&5
  15576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15577. (exit $ac_status); } && {
  15578. test -z "$ac_cxx_werror_flag" ||
  15579. test ! -s conftest.err
  15580. } && test -s conftest$ac_exeext &&
  15581. $as_test_x conftest$ac_exeext; then
  15582. eval "$gt_func_gnugettext_libc=yes"
  15583. else
  15584. echo "$as_me: failed program was:" >&5
  15585. sed 's/^/| /' conftest.$ac_ext >&5
  15586. eval "$gt_func_gnugettext_libc=no"
  15587. fi
  15588. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15589. conftest$ac_exeext conftest.$ac_ext
  15590. fi
  15591. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15592. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15593. echo "${ECHO_T}$ac_res" >&6; }
  15594. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15595. use_additional=yes
  15596. acl_save_prefix="$prefix"
  15597. prefix="$acl_final_prefix"
  15598. acl_save_exec_prefix="$exec_prefix"
  15599. exec_prefix="$acl_final_exec_prefix"
  15600. eval additional_includedir=\"$includedir\"
  15601. eval additional_libdir=\"$libdir\"
  15602. exec_prefix="$acl_save_exec_prefix"
  15603. prefix="$acl_save_prefix"
  15604. # Check whether --with-libintl-prefix was given.
  15605. if test "${with_libintl_prefix+set}" = set; then
  15606. withval=$with_libintl_prefix;
  15607. if test "X$withval" = "Xno"; then
  15608. use_additional=no
  15609. else
  15610. if test "X$withval" = "X"; then
  15611. acl_save_prefix="$prefix"
  15612. prefix="$acl_final_prefix"
  15613. acl_save_exec_prefix="$exec_prefix"
  15614. exec_prefix="$acl_final_exec_prefix"
  15615. eval additional_includedir=\"$includedir\"
  15616. eval additional_libdir=\"$libdir\"
  15617. exec_prefix="$acl_save_exec_prefix"
  15618. prefix="$acl_save_prefix"
  15619. else
  15620. additional_includedir="$withval/include"
  15621. additional_libdir="$withval/$acl_libdirstem"
  15622. fi
  15623. fi
  15624. fi
  15625. LIBINTL=
  15626. LTLIBINTL=
  15627. INCINTL=
  15628. LIBINTL_PREFIX=
  15629. rpathdirs=
  15630. ltrpathdirs=
  15631. names_already_handled=
  15632. names_next_round='intl '
  15633. while test -n "$names_next_round"; do
  15634. names_this_round="$names_next_round"
  15635. names_next_round=
  15636. for name in $names_this_round; do
  15637. already_handled=
  15638. for n in $names_already_handled; do
  15639. if test "$n" = "$name"; then
  15640. already_handled=yes
  15641. break
  15642. fi
  15643. done
  15644. if test -z "$already_handled"; then
  15645. names_already_handled="$names_already_handled $name"
  15646. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15647. eval value=\"\$HAVE_LIB$uppername\"
  15648. if test -n "$value"; then
  15649. if test "$value" = yes; then
  15650. eval value=\"\$LIB$uppername\"
  15651. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15652. eval value=\"\$LTLIB$uppername\"
  15653. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15654. else
  15655. :
  15656. fi
  15657. else
  15658. found_dir=
  15659. found_la=
  15660. found_so=
  15661. found_a=
  15662. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15663. if test -n "$acl_shlibext"; then
  15664. shrext=".$acl_shlibext" # typically: shrext=.so
  15665. else
  15666. shrext=
  15667. fi
  15668. if test $use_additional = yes; then
  15669. dir="$additional_libdir"
  15670. if test -n "$acl_shlibext"; then
  15671. if test -f "$dir/$libname$shrext"; then
  15672. found_dir="$dir"
  15673. found_so="$dir/$libname$shrext"
  15674. else
  15675. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15676. ver=`(cd "$dir" && \
  15677. for f in "$libname$shrext".*; do echo "$f"; done \
  15678. | sed -e "s,^$libname$shrext\\\\.,," \
  15679. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15680. | sed 1q ) 2>/dev/null`
  15681. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15682. found_dir="$dir"
  15683. found_so="$dir/$libname$shrext.$ver"
  15684. fi
  15685. else
  15686. eval library_names=\"$acl_library_names_spec\"
  15687. for f in $library_names; do
  15688. if test -f "$dir/$f"; then
  15689. found_dir="$dir"
  15690. found_so="$dir/$f"
  15691. break
  15692. fi
  15693. done
  15694. fi
  15695. fi
  15696. fi
  15697. if test "X$found_dir" = "X"; then
  15698. if test -f "$dir/$libname.$acl_libext"; then
  15699. found_dir="$dir"
  15700. found_a="$dir/$libname.$acl_libext"
  15701. fi
  15702. fi
  15703. if test "X$found_dir" != "X"; then
  15704. if test -f "$dir/$libname.la"; then
  15705. found_la="$dir/$libname.la"
  15706. fi
  15707. fi
  15708. fi
  15709. if test "X$found_dir" = "X"; then
  15710. for x in $LDFLAGS $LTLIBINTL; do
  15711. acl_save_prefix="$prefix"
  15712. prefix="$acl_final_prefix"
  15713. acl_save_exec_prefix="$exec_prefix"
  15714. exec_prefix="$acl_final_exec_prefix"
  15715. eval x=\"$x\"
  15716. exec_prefix="$acl_save_exec_prefix"
  15717. prefix="$acl_save_prefix"
  15718. case "$x" in
  15719. -L*)
  15720. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15721. if test -n "$acl_shlibext"; then
  15722. if test -f "$dir/$libname$shrext"; then
  15723. found_dir="$dir"
  15724. found_so="$dir/$libname$shrext"
  15725. else
  15726. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15727. ver=`(cd "$dir" && \
  15728. for f in "$libname$shrext".*; do echo "$f"; done \
  15729. | sed -e "s,^$libname$shrext\\\\.,," \
  15730. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15731. | sed 1q ) 2>/dev/null`
  15732. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15733. found_dir="$dir"
  15734. found_so="$dir/$libname$shrext.$ver"
  15735. fi
  15736. else
  15737. eval library_names=\"$acl_library_names_spec\"
  15738. for f in $library_names; do
  15739. if test -f "$dir/$f"; then
  15740. found_dir="$dir"
  15741. found_so="$dir/$f"
  15742. break
  15743. fi
  15744. done
  15745. fi
  15746. fi
  15747. fi
  15748. if test "X$found_dir" = "X"; then
  15749. if test -f "$dir/$libname.$acl_libext"; then
  15750. found_dir="$dir"
  15751. found_a="$dir/$libname.$acl_libext"
  15752. fi
  15753. fi
  15754. if test "X$found_dir" != "X"; then
  15755. if test -f "$dir/$libname.la"; then
  15756. found_la="$dir/$libname.la"
  15757. fi
  15758. fi
  15759. ;;
  15760. esac
  15761. if test "X$found_dir" != "X"; then
  15762. break
  15763. fi
  15764. done
  15765. fi
  15766. if test "X$found_dir" != "X"; then
  15767. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15768. if test "X$found_so" != "X"; then
  15769. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15770. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15771. else
  15772. haveit=
  15773. for x in $ltrpathdirs; do
  15774. if test "X$x" = "X$found_dir"; then
  15775. haveit=yes
  15776. break
  15777. fi
  15778. done
  15779. if test -z "$haveit"; then
  15780. ltrpathdirs="$ltrpathdirs $found_dir"
  15781. fi
  15782. if test "$acl_hardcode_direct" = yes; then
  15783. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15784. else
  15785. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15786. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15787. haveit=
  15788. for x in $rpathdirs; do
  15789. if test "X$x" = "X$found_dir"; then
  15790. haveit=yes
  15791. break
  15792. fi
  15793. done
  15794. if test -z "$haveit"; then
  15795. rpathdirs="$rpathdirs $found_dir"
  15796. fi
  15797. else
  15798. haveit=
  15799. for x in $LDFLAGS $LIBINTL; do
  15800. acl_save_prefix="$prefix"
  15801. prefix="$acl_final_prefix"
  15802. acl_save_exec_prefix="$exec_prefix"
  15803. exec_prefix="$acl_final_exec_prefix"
  15804. eval x=\"$x\"
  15805. exec_prefix="$acl_save_exec_prefix"
  15806. prefix="$acl_save_prefix"
  15807. if test "X$x" = "X-L$found_dir"; then
  15808. haveit=yes
  15809. break
  15810. fi
  15811. done
  15812. if test -z "$haveit"; then
  15813. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15814. fi
  15815. if test "$acl_hardcode_minus_L" != no; then
  15816. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15817. else
  15818. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15819. fi
  15820. fi
  15821. fi
  15822. fi
  15823. else
  15824. if test "X$found_a" != "X"; then
  15825. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15826. else
  15827. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15828. fi
  15829. fi
  15830. additional_includedir=
  15831. case "$found_dir" in
  15832. */$acl_libdirstem | */$acl_libdirstem/)
  15833. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15834. LIBINTL_PREFIX="$basedir"
  15835. additional_includedir="$basedir/include"
  15836. ;;
  15837. esac
  15838. if test "X$additional_includedir" != "X"; then
  15839. if test "X$additional_includedir" != "X/usr/include"; then
  15840. haveit=
  15841. if test "X$additional_includedir" = "X/usr/local/include"; then
  15842. if test -n "$GCC"; then
  15843. case $host_os in
  15844. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15845. esac
  15846. fi
  15847. fi
  15848. if test -z "$haveit"; then
  15849. for x in $CPPFLAGS $INCINTL; do
  15850. acl_save_prefix="$prefix"
  15851. prefix="$acl_final_prefix"
  15852. acl_save_exec_prefix="$exec_prefix"
  15853. exec_prefix="$acl_final_exec_prefix"
  15854. eval x=\"$x\"
  15855. exec_prefix="$acl_save_exec_prefix"
  15856. prefix="$acl_save_prefix"
  15857. if test "X$x" = "X-I$additional_includedir"; then
  15858. haveit=yes
  15859. break
  15860. fi
  15861. done
  15862. if test -z "$haveit"; then
  15863. if test -d "$additional_includedir"; then
  15864. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15865. fi
  15866. fi
  15867. fi
  15868. fi
  15869. fi
  15870. if test -n "$found_la"; then
  15871. save_libdir="$libdir"
  15872. case "$found_la" in
  15873. */* | *\\*) . "$found_la" ;;
  15874. *) . "./$found_la" ;;
  15875. esac
  15876. libdir="$save_libdir"
  15877. for dep in $dependency_libs; do
  15878. case "$dep" in
  15879. -L*)
  15880. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15881. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15882. haveit=
  15883. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15884. if test -n "$GCC"; then
  15885. case $host_os in
  15886. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15887. esac
  15888. fi
  15889. fi
  15890. if test -z "$haveit"; then
  15891. haveit=
  15892. for x in $LDFLAGS $LIBINTL; do
  15893. acl_save_prefix="$prefix"
  15894. prefix="$acl_final_prefix"
  15895. acl_save_exec_prefix="$exec_prefix"
  15896. exec_prefix="$acl_final_exec_prefix"
  15897. eval x=\"$x\"
  15898. exec_prefix="$acl_save_exec_prefix"
  15899. prefix="$acl_save_prefix"
  15900. if test "X$x" = "X-L$additional_libdir"; then
  15901. haveit=yes
  15902. break
  15903. fi
  15904. done
  15905. if test -z "$haveit"; then
  15906. if test -d "$additional_libdir"; then
  15907. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15908. fi
  15909. fi
  15910. haveit=
  15911. for x in $LDFLAGS $LTLIBINTL; do
  15912. acl_save_prefix="$prefix"
  15913. prefix="$acl_final_prefix"
  15914. acl_save_exec_prefix="$exec_prefix"
  15915. exec_prefix="$acl_final_exec_prefix"
  15916. eval x=\"$x\"
  15917. exec_prefix="$acl_save_exec_prefix"
  15918. prefix="$acl_save_prefix"
  15919. if test "X$x" = "X-L$additional_libdir"; then
  15920. haveit=yes
  15921. break
  15922. fi
  15923. done
  15924. if test -z "$haveit"; then
  15925. if test -d "$additional_libdir"; then
  15926. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15927. fi
  15928. fi
  15929. fi
  15930. fi
  15931. ;;
  15932. -R*)
  15933. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15934. if test "$enable_rpath" != no; then
  15935. haveit=
  15936. for x in $rpathdirs; do
  15937. if test "X$x" = "X$dir"; then
  15938. haveit=yes
  15939. break
  15940. fi
  15941. done
  15942. if test -z "$haveit"; then
  15943. rpathdirs="$rpathdirs $dir"
  15944. fi
  15945. haveit=
  15946. for x in $ltrpathdirs; do
  15947. if test "X$x" = "X$dir"; then
  15948. haveit=yes
  15949. break
  15950. fi
  15951. done
  15952. if test -z "$haveit"; then
  15953. ltrpathdirs="$ltrpathdirs $dir"
  15954. fi
  15955. fi
  15956. ;;
  15957. -l*)
  15958. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15959. ;;
  15960. *.la)
  15961. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15962. ;;
  15963. *)
  15964. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15965. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15966. ;;
  15967. esac
  15968. done
  15969. fi
  15970. else
  15971. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15972. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15973. fi
  15974. fi
  15975. fi
  15976. done
  15977. done
  15978. if test "X$rpathdirs" != "X"; then
  15979. if test -n "$acl_hardcode_libdir_separator"; then
  15980. alldirs=
  15981. for found_dir in $rpathdirs; do
  15982. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15983. done
  15984. acl_save_libdir="$libdir"
  15985. libdir="$alldirs"
  15986. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15987. libdir="$acl_save_libdir"
  15988. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15989. else
  15990. for found_dir in $rpathdirs; do
  15991. acl_save_libdir="$libdir"
  15992. libdir="$found_dir"
  15993. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15994. libdir="$acl_save_libdir"
  15995. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15996. done
  15997. fi
  15998. fi
  15999. if test "X$ltrpathdirs" != "X"; then
  16000. for found_dir in $ltrpathdirs; do
  16001. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  16002. done
  16003. fi
  16004. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  16005. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  16006. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  16007. echo $ECHO_N "(cached) $ECHO_C" >&6
  16008. else
  16009. gt_save_CPPFLAGS="$CPPFLAGS"
  16010. CPPFLAGS="$CPPFLAGS $INCINTL"
  16011. gt_save_LIBS="$LIBS"
  16012. LIBS="$LIBS $LIBINTL"
  16013. cat >conftest.$ac_ext <<_ACEOF
  16014. /* confdefs.h. */
  16015. _ACEOF
  16016. cat confdefs.h >>conftest.$ac_ext
  16017. cat >>conftest.$ac_ext <<_ACEOF
  16018. /* end confdefs.h. */
  16019. #include <libintl.h>
  16020. $gt_revision_test_code
  16021. extern int _nl_msg_cat_cntr;
  16022. extern
  16023. #ifdef __cplusplus
  16024. "C"
  16025. #endif
  16026. const char *_nl_expand_alias (const char *);
  16027. int
  16028. main ()
  16029. {
  16030. bindtextdomain ("", "");
  16031. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16032. ;
  16033. return 0;
  16034. }
  16035. _ACEOF
  16036. rm -f conftest.$ac_objext conftest$ac_exeext
  16037. if { (ac_try="$ac_link"
  16038. case "(($ac_try" in
  16039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16040. *) ac_try_echo=$ac_try;;
  16041. esac
  16042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16043. (eval "$ac_link") 2>conftest.er1
  16044. ac_status=$?
  16045. grep -v '^ *+' conftest.er1 >conftest.err
  16046. rm -f conftest.er1
  16047. cat conftest.err >&5
  16048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16049. (exit $ac_status); } && {
  16050. test -z "$ac_cxx_werror_flag" ||
  16051. test ! -s conftest.err
  16052. } && test -s conftest$ac_exeext &&
  16053. $as_test_x conftest$ac_exeext; then
  16054. eval "$gt_func_gnugettext_libintl=yes"
  16055. else
  16056. echo "$as_me: failed program was:" >&5
  16057. sed 's/^/| /' conftest.$ac_ext >&5
  16058. eval "$gt_func_gnugettext_libintl=no"
  16059. fi
  16060. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16061. conftest$ac_exeext conftest.$ac_ext
  16062. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  16063. LIBS="$LIBS $LIBICONV"
  16064. cat >conftest.$ac_ext <<_ACEOF
  16065. /* confdefs.h. */
  16066. _ACEOF
  16067. cat confdefs.h >>conftest.$ac_ext
  16068. cat >>conftest.$ac_ext <<_ACEOF
  16069. /* end confdefs.h. */
  16070. #include <libintl.h>
  16071. $gt_revision_test_code
  16072. extern int _nl_msg_cat_cntr;
  16073. extern
  16074. #ifdef __cplusplus
  16075. "C"
  16076. #endif
  16077. const char *_nl_expand_alias (const char *);
  16078. int
  16079. main ()
  16080. {
  16081. bindtextdomain ("", "");
  16082. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16083. ;
  16084. return 0;
  16085. }
  16086. _ACEOF
  16087. rm -f conftest.$ac_objext conftest$ac_exeext
  16088. if { (ac_try="$ac_link"
  16089. case "(($ac_try" in
  16090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16091. *) ac_try_echo=$ac_try;;
  16092. esac
  16093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16094. (eval "$ac_link") 2>conftest.er1
  16095. ac_status=$?
  16096. grep -v '^ *+' conftest.er1 >conftest.err
  16097. rm -f conftest.er1
  16098. cat conftest.err >&5
  16099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16100. (exit $ac_status); } && {
  16101. test -z "$ac_cxx_werror_flag" ||
  16102. test ! -s conftest.err
  16103. } && test -s conftest$ac_exeext &&
  16104. $as_test_x conftest$ac_exeext; then
  16105. LIBINTL="$LIBINTL $LIBICONV"
  16106. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  16107. eval "$gt_func_gnugettext_libintl=yes"
  16108. else
  16109. echo "$as_me: failed program was:" >&5
  16110. sed 's/^/| /' conftest.$ac_ext >&5
  16111. fi
  16112. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16113. conftest$ac_exeext conftest.$ac_ext
  16114. fi
  16115. CPPFLAGS="$gt_save_CPPFLAGS"
  16116. LIBS="$gt_save_LIBS"
  16117. fi
  16118. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  16119. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16120. echo "${ECHO_T}$ac_res" >&6; }
  16121. fi
  16122. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  16123. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  16124. && test "$PACKAGE" != gettext-runtime \
  16125. && test "$PACKAGE" != gettext-tools; }; then
  16126. gt_use_preinstalled_gnugettext=yes
  16127. else
  16128. LIBINTL=
  16129. LTLIBINTL=
  16130. INCINTL=
  16131. fi
  16132. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  16133. nls_cv_use_gnu_gettext=yes
  16134. fi
  16135. fi
  16136. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  16137. BUILD_INCLUDED_LIBINTL=yes
  16138. USE_INCLUDED_LIBINTL=yes
  16139. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  16140. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  16141. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  16142. fi
  16143. CATOBJEXT=
  16144. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16145. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16146. CATOBJEXT=.gmo
  16147. fi
  16148. if test -n "$INTL_MACOSX_LIBS"; then
  16149. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16150. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16151. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  16152. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  16153. fi
  16154. fi
  16155. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16156. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16157. cat >>confdefs.h <<\_ACEOF
  16158. #define ENABLE_NLS 1
  16159. _ACEOF
  16160. else
  16161. USE_NLS=no
  16162. fi
  16163. fi
  16164. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  16165. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  16166. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  16167. echo "${ECHO_T}$USE_NLS" >&6; }
  16168. if test "$USE_NLS" = "yes"; then
  16169. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  16170. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  16171. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16172. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16173. gt_source="external libintl"
  16174. else
  16175. gt_source="libc"
  16176. fi
  16177. else
  16178. gt_source="included intl directory"
  16179. fi
  16180. { echo "$as_me:$LINENO: result: $gt_source" >&5
  16181. echo "${ECHO_T}$gt_source" >&6; }
  16182. fi
  16183. if test "$USE_NLS" = "yes"; then
  16184. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16185. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16186. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  16187. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  16188. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  16189. echo "${ECHO_T}$LIBINTL" >&6; }
  16190. for element in $INCINTL; do
  16191. haveit=
  16192. for x in $CPPFLAGS; do
  16193. acl_save_prefix="$prefix"
  16194. prefix="$acl_final_prefix"
  16195. acl_save_exec_prefix="$exec_prefix"
  16196. exec_prefix="$acl_final_exec_prefix"
  16197. eval x=\"$x\"
  16198. exec_prefix="$acl_save_exec_prefix"
  16199. prefix="$acl_save_prefix"
  16200. if test "X$x" = "X$element"; then
  16201. haveit=yes
  16202. break
  16203. fi
  16204. done
  16205. if test -z "$haveit"; then
  16206. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16207. fi
  16208. done
  16209. fi
  16210. cat >>confdefs.h <<\_ACEOF
  16211. #define HAVE_GETTEXT 1
  16212. _ACEOF
  16213. cat >>confdefs.h <<\_ACEOF
  16214. #define HAVE_DCGETTEXT 1
  16215. _ACEOF
  16216. fi
  16217. POSUB=po
  16218. fi
  16219. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  16220. BUILD_INCLUDED_LIBINTL=yes
  16221. fi
  16222. nls_cv_header_intl=
  16223. nls_cv_header_libgt=
  16224. DATADIRNAME=share
  16225. INSTOBJEXT=.mo
  16226. GENCAT=gencat
  16227. INTLOBJS=
  16228. if test "$USE_INCLUDED_LIBINTL" = yes; then
  16229. INTLOBJS="\$(GETTOBJS)"
  16230. fi
  16231. INTL_LIBTOOL_SUFFIX_PREFIX=
  16232. INTLLIBS="$LIBINTL"
  16233. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  16234. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  16235. if test "${ac_cv_lib_error_at_line+set}" = set; then
  16236. echo $ECHO_N "(cached) $ECHO_C" >&6
  16237. else
  16238. cat >conftest.$ac_ext <<_ACEOF
  16239. /* confdefs.h. */
  16240. _ACEOF
  16241. cat confdefs.h >>conftest.$ac_ext
  16242. cat >>conftest.$ac_ext <<_ACEOF
  16243. /* end confdefs.h. */
  16244. #include <error.h>
  16245. int
  16246. main ()
  16247. {
  16248. error_at_line (0, 0, "", 0, "an error occurred");
  16249. ;
  16250. return 0;
  16251. }
  16252. _ACEOF
  16253. rm -f conftest.$ac_objext conftest$ac_exeext
  16254. if { (ac_try="$ac_link"
  16255. case "(($ac_try" in
  16256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16257. *) ac_try_echo=$ac_try;;
  16258. esac
  16259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16260. (eval "$ac_link") 2>conftest.er1
  16261. ac_status=$?
  16262. grep -v '^ *+' conftest.er1 >conftest.err
  16263. rm -f conftest.er1
  16264. cat conftest.err >&5
  16265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16266. (exit $ac_status); } && {
  16267. test -z "$ac_cxx_werror_flag" ||
  16268. test ! -s conftest.err
  16269. } && test -s conftest$ac_exeext &&
  16270. $as_test_x conftest$ac_exeext; then
  16271. ac_cv_lib_error_at_line=yes
  16272. else
  16273. echo "$as_me: failed program was:" >&5
  16274. sed 's/^/| /' conftest.$ac_ext >&5
  16275. ac_cv_lib_error_at_line=no
  16276. fi
  16277. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16278. conftest$ac_exeext conftest.$ac_ext
  16279. fi
  16280. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16281. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16282. if test $ac_cv_lib_error_at_line = no; then
  16283. case " $LIBOBJS " in
  16284. *" error.$ac_objext "* ) ;;
  16285. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16286. ;;
  16287. esac
  16288. fi
  16289. if test $ac_cv_c_compiler_gnu = yes; then
  16290. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16291. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16292. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16293. echo $ECHO_N "(cached) $ECHO_C" >&6
  16294. else
  16295. ac_pattern="Autoconf.*'x'"
  16296. cat >conftest.$ac_ext <<_ACEOF
  16297. /* confdefs.h. */
  16298. _ACEOF
  16299. cat confdefs.h >>conftest.$ac_ext
  16300. cat >>conftest.$ac_ext <<_ACEOF
  16301. /* end confdefs.h. */
  16302. #include <sgtty.h>
  16303. Autoconf TIOCGETP
  16304. _ACEOF
  16305. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16306. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16307. ac_cv_prog_gcc_traditional=yes
  16308. else
  16309. ac_cv_prog_gcc_traditional=no
  16310. fi
  16311. rm -f conftest*
  16312. if test $ac_cv_prog_gcc_traditional = no; then
  16313. cat >conftest.$ac_ext <<_ACEOF
  16314. /* confdefs.h. */
  16315. _ACEOF
  16316. cat confdefs.h >>conftest.$ac_ext
  16317. cat >>conftest.$ac_ext <<_ACEOF
  16318. /* end confdefs.h. */
  16319. #include <termio.h>
  16320. Autoconf TCGETA
  16321. _ACEOF
  16322. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16323. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16324. ac_cv_prog_gcc_traditional=yes
  16325. fi
  16326. rm -f conftest*
  16327. fi
  16328. fi
  16329. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16330. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16331. if test $ac_cv_prog_gcc_traditional = yes; then
  16332. CC="$CC -traditional"
  16333. fi
  16334. fi
  16335. case "$target" in
  16336. *mingw*)
  16337. ;;
  16338. *)
  16339. for ac_header in stdlib.h
  16340. do
  16341. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16342. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16343. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16344. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16345. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16346. echo $ECHO_N "(cached) $ECHO_C" >&6
  16347. fi
  16348. ac_res=`eval echo '${'$as_ac_Header'}'`
  16349. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16350. echo "${ECHO_T}$ac_res" >&6; }
  16351. else
  16352. # Is the header compilable?
  16353. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16354. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16355. cat >conftest.$ac_ext <<_ACEOF
  16356. /* confdefs.h. */
  16357. _ACEOF
  16358. cat confdefs.h >>conftest.$ac_ext
  16359. cat >>conftest.$ac_ext <<_ACEOF
  16360. /* end confdefs.h. */
  16361. $ac_includes_default
  16362. #include <$ac_header>
  16363. _ACEOF
  16364. rm -f conftest.$ac_objext
  16365. if { (ac_try="$ac_compile"
  16366. case "(($ac_try" in
  16367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16368. *) ac_try_echo=$ac_try;;
  16369. esac
  16370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16371. (eval "$ac_compile") 2>conftest.er1
  16372. ac_status=$?
  16373. grep -v '^ *+' conftest.er1 >conftest.err
  16374. rm -f conftest.er1
  16375. cat conftest.err >&5
  16376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16377. (exit $ac_status); } && {
  16378. test -z "$ac_cxx_werror_flag" ||
  16379. test ! -s conftest.err
  16380. } && test -s conftest.$ac_objext; then
  16381. ac_header_compiler=yes
  16382. else
  16383. echo "$as_me: failed program was:" >&5
  16384. sed 's/^/| /' conftest.$ac_ext >&5
  16385. ac_header_compiler=no
  16386. fi
  16387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16388. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16389. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16390. # Is the header present?
  16391. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16392. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16393. cat >conftest.$ac_ext <<_ACEOF
  16394. /* confdefs.h. */
  16395. _ACEOF
  16396. cat confdefs.h >>conftest.$ac_ext
  16397. cat >>conftest.$ac_ext <<_ACEOF
  16398. /* end confdefs.h. */
  16399. #include <$ac_header>
  16400. _ACEOF
  16401. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16402. case "(($ac_try" in
  16403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16404. *) ac_try_echo=$ac_try;;
  16405. esac
  16406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16407. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16408. ac_status=$?
  16409. grep -v '^ *+' conftest.er1 >conftest.err
  16410. rm -f conftest.er1
  16411. cat conftest.err >&5
  16412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16413. (exit $ac_status); } >/dev/null && {
  16414. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16415. test ! -s conftest.err
  16416. }; then
  16417. ac_header_preproc=yes
  16418. else
  16419. echo "$as_me: failed program was:" >&5
  16420. sed 's/^/| /' conftest.$ac_ext >&5
  16421. ac_header_preproc=no
  16422. fi
  16423. rm -f conftest.err conftest.$ac_ext
  16424. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16425. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16426. # So? What about this header?
  16427. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16428. yes:no: )
  16429. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16430. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16431. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16432. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16433. ac_header_preproc=yes
  16434. ;;
  16435. no:yes:* )
  16436. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16437. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16438. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16439. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16440. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16441. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16442. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16443. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16444. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16445. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16446. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16447. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16448. ( cat <<\_ASBOX
  16449. ## ----------------------------------------------- ##
  16450. ## Report this to t-tujikawa@users.sourceforge.net ##
  16451. ## ----------------------------------------------- ##
  16452. _ASBOX
  16453. ) | sed "s/^/$as_me: WARNING: /" >&2
  16454. ;;
  16455. esac
  16456. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16457. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16458. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16459. echo $ECHO_N "(cached) $ECHO_C" >&6
  16460. else
  16461. eval "$as_ac_Header=\$ac_header_preproc"
  16462. fi
  16463. ac_res=`eval echo '${'$as_ac_Header'}'`
  16464. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16465. echo "${ECHO_T}$ac_res" >&6; }
  16466. fi
  16467. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16468. cat >>confdefs.h <<_ACEOF
  16469. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16470. _ACEOF
  16471. fi
  16472. done
  16473. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16474. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16475. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16476. echo $ECHO_N "(cached) $ECHO_C" >&6
  16477. else
  16478. if test "$cross_compiling" = yes; then
  16479. ac_cv_func_malloc_0_nonnull=no
  16480. else
  16481. cat >conftest.$ac_ext <<_ACEOF
  16482. /* confdefs.h. */
  16483. _ACEOF
  16484. cat confdefs.h >>conftest.$ac_ext
  16485. cat >>conftest.$ac_ext <<_ACEOF
  16486. /* end confdefs.h. */
  16487. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16488. # include <stdlib.h>
  16489. #else
  16490. char *malloc ();
  16491. #endif
  16492. int
  16493. main ()
  16494. {
  16495. return ! malloc (0);
  16496. ;
  16497. return 0;
  16498. }
  16499. _ACEOF
  16500. rm -f conftest$ac_exeext
  16501. if { (ac_try="$ac_link"
  16502. case "(($ac_try" in
  16503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16504. *) ac_try_echo=$ac_try;;
  16505. esac
  16506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16507. (eval "$ac_link") 2>&5
  16508. ac_status=$?
  16509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16510. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16511. { (case "(($ac_try" in
  16512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16513. *) ac_try_echo=$ac_try;;
  16514. esac
  16515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16516. (eval "$ac_try") 2>&5
  16517. ac_status=$?
  16518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16519. (exit $ac_status); }; }; then
  16520. ac_cv_func_malloc_0_nonnull=yes
  16521. else
  16522. echo "$as_me: program exited with status $ac_status" >&5
  16523. echo "$as_me: failed program was:" >&5
  16524. sed 's/^/| /' conftest.$ac_ext >&5
  16525. ( exit $ac_status )
  16526. ac_cv_func_malloc_0_nonnull=no
  16527. fi
  16528. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16529. fi
  16530. fi
  16531. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16532. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16533. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16534. cat >>confdefs.h <<\_ACEOF
  16535. #define HAVE_MALLOC 1
  16536. _ACEOF
  16537. else
  16538. cat >>confdefs.h <<\_ACEOF
  16539. #define HAVE_MALLOC 0
  16540. _ACEOF
  16541. case " $LIBOBJS " in
  16542. *" malloc.$ac_objext "* ) ;;
  16543. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16544. ;;
  16545. esac
  16546. cat >>confdefs.h <<\_ACEOF
  16547. #define malloc rpl_malloc
  16548. _ACEOF
  16549. fi
  16550. for ac_header in stdlib.h
  16551. do
  16552. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16553. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16554. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16555. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16556. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16557. echo $ECHO_N "(cached) $ECHO_C" >&6
  16558. fi
  16559. ac_res=`eval echo '${'$as_ac_Header'}'`
  16560. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16561. echo "${ECHO_T}$ac_res" >&6; }
  16562. else
  16563. # Is the header compilable?
  16564. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16565. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16566. cat >conftest.$ac_ext <<_ACEOF
  16567. /* confdefs.h. */
  16568. _ACEOF
  16569. cat confdefs.h >>conftest.$ac_ext
  16570. cat >>conftest.$ac_ext <<_ACEOF
  16571. /* end confdefs.h. */
  16572. $ac_includes_default
  16573. #include <$ac_header>
  16574. _ACEOF
  16575. rm -f conftest.$ac_objext
  16576. if { (ac_try="$ac_compile"
  16577. case "(($ac_try" in
  16578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16579. *) ac_try_echo=$ac_try;;
  16580. esac
  16581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16582. (eval "$ac_compile") 2>conftest.er1
  16583. ac_status=$?
  16584. grep -v '^ *+' conftest.er1 >conftest.err
  16585. rm -f conftest.er1
  16586. cat conftest.err >&5
  16587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16588. (exit $ac_status); } && {
  16589. test -z "$ac_cxx_werror_flag" ||
  16590. test ! -s conftest.err
  16591. } && test -s conftest.$ac_objext; then
  16592. ac_header_compiler=yes
  16593. else
  16594. echo "$as_me: failed program was:" >&5
  16595. sed 's/^/| /' conftest.$ac_ext >&5
  16596. ac_header_compiler=no
  16597. fi
  16598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16599. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16600. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16601. # Is the header present?
  16602. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16603. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16604. cat >conftest.$ac_ext <<_ACEOF
  16605. /* confdefs.h. */
  16606. _ACEOF
  16607. cat confdefs.h >>conftest.$ac_ext
  16608. cat >>conftest.$ac_ext <<_ACEOF
  16609. /* end confdefs.h. */
  16610. #include <$ac_header>
  16611. _ACEOF
  16612. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16613. case "(($ac_try" in
  16614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16615. *) ac_try_echo=$ac_try;;
  16616. esac
  16617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16618. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16619. ac_status=$?
  16620. grep -v '^ *+' conftest.er1 >conftest.err
  16621. rm -f conftest.er1
  16622. cat conftest.err >&5
  16623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16624. (exit $ac_status); } >/dev/null && {
  16625. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16626. test ! -s conftest.err
  16627. }; then
  16628. ac_header_preproc=yes
  16629. else
  16630. echo "$as_me: failed program was:" >&5
  16631. sed 's/^/| /' conftest.$ac_ext >&5
  16632. ac_header_preproc=no
  16633. fi
  16634. rm -f conftest.err conftest.$ac_ext
  16635. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16636. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16637. # So? What about this header?
  16638. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16639. yes:no: )
  16640. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16641. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16642. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16643. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16644. ac_header_preproc=yes
  16645. ;;
  16646. no:yes:* )
  16647. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16648. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16649. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16650. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16651. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16652. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16653. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16654. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16655. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16656. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16657. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16658. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16659. ( cat <<\_ASBOX
  16660. ## ----------------------------------------------- ##
  16661. ## Report this to t-tujikawa@users.sourceforge.net ##
  16662. ## ----------------------------------------------- ##
  16663. _ASBOX
  16664. ) | sed "s/^/$as_me: WARNING: /" >&2
  16665. ;;
  16666. esac
  16667. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16668. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16669. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16670. echo $ECHO_N "(cached) $ECHO_C" >&6
  16671. else
  16672. eval "$as_ac_Header=\$ac_header_preproc"
  16673. fi
  16674. ac_res=`eval echo '${'$as_ac_Header'}'`
  16675. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16676. echo "${ECHO_T}$ac_res" >&6; }
  16677. fi
  16678. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16679. cat >>confdefs.h <<_ACEOF
  16680. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16681. _ACEOF
  16682. fi
  16683. done
  16684. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16685. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16686. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16687. echo $ECHO_N "(cached) $ECHO_C" >&6
  16688. else
  16689. if test "$cross_compiling" = yes; then
  16690. ac_cv_func_realloc_0_nonnull=no
  16691. else
  16692. cat >conftest.$ac_ext <<_ACEOF
  16693. /* confdefs.h. */
  16694. _ACEOF
  16695. cat confdefs.h >>conftest.$ac_ext
  16696. cat >>conftest.$ac_ext <<_ACEOF
  16697. /* end confdefs.h. */
  16698. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16699. # include <stdlib.h>
  16700. #else
  16701. char *realloc ();
  16702. #endif
  16703. int
  16704. main ()
  16705. {
  16706. return ! realloc (0, 0);
  16707. ;
  16708. return 0;
  16709. }
  16710. _ACEOF
  16711. rm -f conftest$ac_exeext
  16712. if { (ac_try="$ac_link"
  16713. case "(($ac_try" in
  16714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16715. *) ac_try_echo=$ac_try;;
  16716. esac
  16717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16718. (eval "$ac_link") 2>&5
  16719. ac_status=$?
  16720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16721. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16722. { (case "(($ac_try" in
  16723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16724. *) ac_try_echo=$ac_try;;
  16725. esac
  16726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16727. (eval "$ac_try") 2>&5
  16728. ac_status=$?
  16729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16730. (exit $ac_status); }; }; then
  16731. ac_cv_func_realloc_0_nonnull=yes
  16732. else
  16733. echo "$as_me: program exited with status $ac_status" >&5
  16734. echo "$as_me: failed program was:" >&5
  16735. sed 's/^/| /' conftest.$ac_ext >&5
  16736. ( exit $ac_status )
  16737. ac_cv_func_realloc_0_nonnull=no
  16738. fi
  16739. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16740. fi
  16741. fi
  16742. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16743. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16744. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16745. cat >>confdefs.h <<\_ACEOF
  16746. #define HAVE_REALLOC 1
  16747. _ACEOF
  16748. else
  16749. cat >>confdefs.h <<\_ACEOF
  16750. #define HAVE_REALLOC 0
  16751. _ACEOF
  16752. case " $LIBOBJS " in
  16753. *" realloc.$ac_objext "* ) ;;
  16754. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16755. ;;
  16756. esac
  16757. cat >>confdefs.h <<\_ACEOF
  16758. #define realloc rpl_realloc
  16759. _ACEOF
  16760. fi
  16761. ;;
  16762. esac
  16763. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16764. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16765. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16766. echo $ECHO_N "(cached) $ECHO_C" >&6
  16767. else
  16768. if test "$cross_compiling" = yes; then
  16769. ac_cv_func_memcmp_working=no
  16770. else
  16771. cat >conftest.$ac_ext <<_ACEOF
  16772. /* confdefs.h. */
  16773. _ACEOF
  16774. cat confdefs.h >>conftest.$ac_ext
  16775. cat >>conftest.$ac_ext <<_ACEOF
  16776. /* end confdefs.h. */
  16777. $ac_includes_default
  16778. int
  16779. main ()
  16780. {
  16781. /* Some versions of memcmp are not 8-bit clean. */
  16782. char c0 = '\100', c1 = '\200', c2 = '\201';
  16783. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16784. return 1;
  16785. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16786. or more and with at least one buffer not starting on a 4-byte boundary.
  16787. William Lewis provided this test program. */
  16788. {
  16789. char foo[21];
  16790. char bar[21];
  16791. int i;
  16792. for (i = 0; i < 4; i++)
  16793. {
  16794. char *a = foo + i;
  16795. char *b = bar + i;
  16796. strcpy (a, "--------01111111");
  16797. strcpy (b, "--------10000000");
  16798. if (memcmp (a, b, 16) >= 0)
  16799. return 1;
  16800. }
  16801. return 0;
  16802. }
  16803. ;
  16804. return 0;
  16805. }
  16806. _ACEOF
  16807. rm -f conftest$ac_exeext
  16808. if { (ac_try="$ac_link"
  16809. case "(($ac_try" in
  16810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16811. *) ac_try_echo=$ac_try;;
  16812. esac
  16813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16814. (eval "$ac_link") 2>&5
  16815. ac_status=$?
  16816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16817. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16818. { (case "(($ac_try" in
  16819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16820. *) ac_try_echo=$ac_try;;
  16821. esac
  16822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16823. (eval "$ac_try") 2>&5
  16824. ac_status=$?
  16825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16826. (exit $ac_status); }; }; then
  16827. ac_cv_func_memcmp_working=yes
  16828. else
  16829. echo "$as_me: program exited with status $ac_status" >&5
  16830. echo "$as_me: failed program was:" >&5
  16831. sed 's/^/| /' conftest.$ac_ext >&5
  16832. ( exit $ac_status )
  16833. ac_cv_func_memcmp_working=no
  16834. fi
  16835. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16836. fi
  16837. fi
  16838. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16839. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16840. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16841. *" memcmp.$ac_objext "* ) ;;
  16842. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16843. ;;
  16844. esac
  16845. for ac_header in $ac_header_list
  16846. do
  16847. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16848. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16849. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16850. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16851. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16852. echo $ECHO_N "(cached) $ECHO_C" >&6
  16853. fi
  16854. ac_res=`eval echo '${'$as_ac_Header'}'`
  16855. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16856. echo "${ECHO_T}$ac_res" >&6; }
  16857. else
  16858. # Is the header compilable?
  16859. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16860. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16861. cat >conftest.$ac_ext <<_ACEOF
  16862. /* confdefs.h. */
  16863. _ACEOF
  16864. cat confdefs.h >>conftest.$ac_ext
  16865. cat >>conftest.$ac_ext <<_ACEOF
  16866. /* end confdefs.h. */
  16867. $ac_includes_default
  16868. #include <$ac_header>
  16869. _ACEOF
  16870. rm -f conftest.$ac_objext
  16871. if { (ac_try="$ac_compile"
  16872. case "(($ac_try" in
  16873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16874. *) ac_try_echo=$ac_try;;
  16875. esac
  16876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16877. (eval "$ac_compile") 2>conftest.er1
  16878. ac_status=$?
  16879. grep -v '^ *+' conftest.er1 >conftest.err
  16880. rm -f conftest.er1
  16881. cat conftest.err >&5
  16882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16883. (exit $ac_status); } && {
  16884. test -z "$ac_cxx_werror_flag" ||
  16885. test ! -s conftest.err
  16886. } && test -s conftest.$ac_objext; then
  16887. ac_header_compiler=yes
  16888. else
  16889. echo "$as_me: failed program was:" >&5
  16890. sed 's/^/| /' conftest.$ac_ext >&5
  16891. ac_header_compiler=no
  16892. fi
  16893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16894. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16895. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16896. # Is the header present?
  16897. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16898. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16899. cat >conftest.$ac_ext <<_ACEOF
  16900. /* confdefs.h. */
  16901. _ACEOF
  16902. cat confdefs.h >>conftest.$ac_ext
  16903. cat >>conftest.$ac_ext <<_ACEOF
  16904. /* end confdefs.h. */
  16905. #include <$ac_header>
  16906. _ACEOF
  16907. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16908. case "(($ac_try" in
  16909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16910. *) ac_try_echo=$ac_try;;
  16911. esac
  16912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16913. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16914. ac_status=$?
  16915. grep -v '^ *+' conftest.er1 >conftest.err
  16916. rm -f conftest.er1
  16917. cat conftest.err >&5
  16918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16919. (exit $ac_status); } >/dev/null && {
  16920. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16921. test ! -s conftest.err
  16922. }; then
  16923. ac_header_preproc=yes
  16924. else
  16925. echo "$as_me: failed program was:" >&5
  16926. sed 's/^/| /' conftest.$ac_ext >&5
  16927. ac_header_preproc=no
  16928. fi
  16929. rm -f conftest.err conftest.$ac_ext
  16930. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16931. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16932. # So? What about this header?
  16933. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16934. yes:no: )
  16935. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16936. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16937. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16938. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16939. ac_header_preproc=yes
  16940. ;;
  16941. no:yes:* )
  16942. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16943. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16944. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16945. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16946. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16947. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16948. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16949. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16950. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16951. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16952. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16953. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16954. ( cat <<\_ASBOX
  16955. ## ----------------------------------------------- ##
  16956. ## Report this to t-tujikawa@users.sourceforge.net ##
  16957. ## ----------------------------------------------- ##
  16958. _ASBOX
  16959. ) | sed "s/^/$as_me: WARNING: /" >&2
  16960. ;;
  16961. esac
  16962. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16963. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16964. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16965. echo $ECHO_N "(cached) $ECHO_C" >&6
  16966. else
  16967. eval "$as_ac_Header=\$ac_header_preproc"
  16968. fi
  16969. ac_res=`eval echo '${'$as_ac_Header'}'`
  16970. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16971. echo "${ECHO_T}$ac_res" >&6; }
  16972. fi
  16973. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16974. cat >>confdefs.h <<_ACEOF
  16975. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16976. _ACEOF
  16977. fi
  16978. done
  16979. for ac_func in $ac_func_list
  16980. do
  16981. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16982. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16983. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16984. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16985. echo $ECHO_N "(cached) $ECHO_C" >&6
  16986. else
  16987. cat >conftest.$ac_ext <<_ACEOF
  16988. /* confdefs.h. */
  16989. _ACEOF
  16990. cat confdefs.h >>conftest.$ac_ext
  16991. cat >>conftest.$ac_ext <<_ACEOF
  16992. /* end confdefs.h. */
  16993. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16994. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16995. #define $ac_func innocuous_$ac_func
  16996. /* System header to define __stub macros and hopefully few prototypes,
  16997. which can conflict with char $ac_func (); below.
  16998. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16999. <limits.h> exists even on freestanding compilers. */
  17000. #ifdef __STDC__
  17001. # include <limits.h>
  17002. #else
  17003. # include <assert.h>
  17004. #endif
  17005. #undef $ac_func
  17006. /* Override any GCC internal prototype to avoid an error.
  17007. Use char because int might match the return type of a GCC
  17008. builtin and then its argument prototype would still apply. */
  17009. #ifdef __cplusplus
  17010. extern "C"
  17011. #endif
  17012. char $ac_func ();
  17013. /* The GNU C library defines this for functions which it implements
  17014. to always fail with ENOSYS. Some functions are actually named
  17015. something starting with __ and the normal name is an alias. */
  17016. #if defined __stub_$ac_func || defined __stub___$ac_func
  17017. choke me
  17018. #endif
  17019. int
  17020. main ()
  17021. {
  17022. return $ac_func ();
  17023. ;
  17024. return 0;
  17025. }
  17026. _ACEOF
  17027. rm -f conftest.$ac_objext conftest$ac_exeext
  17028. if { (ac_try="$ac_link"
  17029. case "(($ac_try" in
  17030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17031. *) ac_try_echo=$ac_try;;
  17032. esac
  17033. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17034. (eval "$ac_link") 2>conftest.er1
  17035. ac_status=$?
  17036. grep -v '^ *+' conftest.er1 >conftest.err
  17037. rm -f conftest.er1
  17038. cat conftest.err >&5
  17039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17040. (exit $ac_status); } && {
  17041. test -z "$ac_cxx_werror_flag" ||
  17042. test ! -s conftest.err
  17043. } && test -s conftest$ac_exeext &&
  17044. $as_test_x conftest$ac_exeext; then
  17045. eval "$as_ac_var=yes"
  17046. else
  17047. echo "$as_me: failed program was:" >&5
  17048. sed 's/^/| /' conftest.$ac_ext >&5
  17049. eval "$as_ac_var=no"
  17050. fi
  17051. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17052. conftest$ac_exeext conftest.$ac_ext
  17053. fi
  17054. ac_res=`eval echo '${'$as_ac_var'}'`
  17055. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17056. echo "${ECHO_T}$ac_res" >&6; }
  17057. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17058. cat >>confdefs.h <<_ACEOF
  17059. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17060. _ACEOF
  17061. fi
  17062. done
  17063. { echo "$as_me:$LINENO: checking for working mktime" >&5
  17064. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  17065. if test "${ac_cv_func_working_mktime+set}" = set; then
  17066. echo $ECHO_N "(cached) $ECHO_C" >&6
  17067. else
  17068. if test "$cross_compiling" = yes; then
  17069. ac_cv_func_working_mktime=no
  17070. else
  17071. cat >conftest.$ac_ext <<_ACEOF
  17072. /* confdefs.h. */
  17073. _ACEOF
  17074. cat confdefs.h >>conftest.$ac_ext
  17075. cat >>conftest.$ac_ext <<_ACEOF
  17076. /* end confdefs.h. */
  17077. /* Test program from Paul Eggert and Tony Leneis. */
  17078. #ifdef TIME_WITH_SYS_TIME
  17079. # include <sys/time.h>
  17080. # include <time.h>
  17081. #else
  17082. # ifdef HAVE_SYS_TIME_H
  17083. # include <sys/time.h>
  17084. # else
  17085. # include <time.h>
  17086. # endif
  17087. #endif
  17088. #include <limits.h>
  17089. #include <stdlib.h>
  17090. #ifdef HAVE_UNISTD_H
  17091. # include <unistd.h>
  17092. #endif
  17093. #ifndef HAVE_ALARM
  17094. # define alarm(X) /* empty */
  17095. #endif
  17096. /* Work around redefinition to rpl_putenv by other config tests. */
  17097. #undef putenv
  17098. static time_t time_t_max;
  17099. static time_t time_t_min;
  17100. /* Values we'll use to set the TZ environment variable. */
  17101. static char *tz_strings[] = {
  17102. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17103. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17104. };
  17105. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17106. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17107. Based on a problem report from Andreas Jaeger. */
  17108. static int
  17109. spring_forward_gap ()
  17110. {
  17111. /* glibc (up to about 1998-10-07) failed this test. */
  17112. struct tm tm;
  17113. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17114. instead of "TZ=America/Vancouver" in order to detect the bug even
  17115. on systems that don't support the Olson extension, or don't have the
  17116. full zoneinfo tables installed. */
  17117. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17118. tm.tm_year = 98;
  17119. tm.tm_mon = 3;
  17120. tm.tm_mday = 5;
  17121. tm.tm_hour = 2;
  17122. tm.tm_min = 0;
  17123. tm.tm_sec = 0;
  17124. tm.tm_isdst = -1;
  17125. return mktime (&tm) != (time_t) -1;
  17126. }
  17127. static int
  17128. mktime_test1 (now)
  17129. time_t now;
  17130. {
  17131. struct tm *lt;
  17132. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17133. }
  17134. static int
  17135. mktime_test (now)
  17136. time_t now;
  17137. {
  17138. return (mktime_test1 (now)
  17139. && mktime_test1 ((time_t) (time_t_max - now))
  17140. && mktime_test1 ((time_t) (time_t_min + now)));
  17141. }
  17142. static int
  17143. irix_6_4_bug ()
  17144. {
  17145. /* Based on code from Ariel Faigon. */
  17146. struct tm tm;
  17147. tm.tm_year = 96;
  17148. tm.tm_mon = 3;
  17149. tm.tm_mday = 0;
  17150. tm.tm_hour = 0;
  17151. tm.tm_min = 0;
  17152. tm.tm_sec = 0;
  17153. tm.tm_isdst = -1;
  17154. mktime (&tm);
  17155. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17156. }
  17157. static int
  17158. bigtime_test (j)
  17159. int j;
  17160. {
  17161. struct tm tm;
  17162. time_t now;
  17163. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17164. now = mktime (&tm);
  17165. if (now != (time_t) -1)
  17166. {
  17167. struct tm *lt = localtime (&now);
  17168. if (! (lt
  17169. && lt->tm_year == tm.tm_year
  17170. && lt->tm_mon == tm.tm_mon
  17171. && lt->tm_mday == tm.tm_mday
  17172. && lt->tm_hour == tm.tm_hour
  17173. && lt->tm_min == tm.tm_min
  17174. && lt->tm_sec == tm.tm_sec
  17175. && lt->tm_yday == tm.tm_yday
  17176. && lt->tm_wday == tm.tm_wday
  17177. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17178. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17179. return 0;
  17180. }
  17181. return 1;
  17182. }
  17183. static int
  17184. year_2050_test ()
  17185. {
  17186. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17187. ignoring leap seconds. */
  17188. unsigned long int answer = 2527315200UL;
  17189. struct tm tm;
  17190. time_t t;
  17191. tm.tm_year = 2050 - 1900;
  17192. tm.tm_mon = 2 - 1;
  17193. tm.tm_mday = 1;
  17194. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17195. tm.tm_isdst = -1;
  17196. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17197. instead of "TZ=America/Vancouver" in order to detect the bug even
  17198. on systems that don't support the Olson extension, or don't have the
  17199. full zoneinfo tables installed. */
  17200. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17201. t = mktime (&tm);
  17202. /* Check that the result is either a failure, or close enough
  17203. to the correct answer that we can assume the discrepancy is
  17204. due to leap seconds. */
  17205. return (t == (time_t) -1
  17206. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17207. }
  17208. int
  17209. main ()
  17210. {
  17211. time_t t, delta;
  17212. int i, j;
  17213. /* This test makes some buggy mktime implementations loop.
  17214. Give up after 60 seconds; a mktime slower than that
  17215. isn't worth using anyway. */
  17216. alarm (60);
  17217. for (;;)
  17218. {
  17219. t = (time_t_max << 1) + 1;
  17220. if (t <= time_t_max)
  17221. break;
  17222. time_t_max = t;
  17223. }
  17224. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17225. delta = time_t_max / 997; /* a suitable prime number */
  17226. for (i = 0; i < N_STRINGS; i++)
  17227. {
  17228. if (tz_strings[i])
  17229. putenv (tz_strings[i]);
  17230. for (t = 0; t <= time_t_max - delta; t += delta)
  17231. if (! mktime_test (t))
  17232. return 1;
  17233. if (! (mktime_test ((time_t) 1)
  17234. && mktime_test ((time_t) (60 * 60))
  17235. && mktime_test ((time_t) (60 * 60 * 24))))
  17236. return 1;
  17237. for (j = 1; ; j <<= 1)
  17238. if (! bigtime_test (j))
  17239. return 1;
  17240. else if (INT_MAX / 2 < j)
  17241. break;
  17242. if (! bigtime_test (INT_MAX))
  17243. return 1;
  17244. }
  17245. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17246. }
  17247. _ACEOF
  17248. rm -f conftest$ac_exeext
  17249. if { (ac_try="$ac_link"
  17250. case "(($ac_try" in
  17251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17252. *) ac_try_echo=$ac_try;;
  17253. esac
  17254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17255. (eval "$ac_link") 2>&5
  17256. ac_status=$?
  17257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17258. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17259. { (case "(($ac_try" in
  17260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17261. *) ac_try_echo=$ac_try;;
  17262. esac
  17263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17264. (eval "$ac_try") 2>&5
  17265. ac_status=$?
  17266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17267. (exit $ac_status); }; }; then
  17268. ac_cv_func_working_mktime=yes
  17269. else
  17270. echo "$as_me: program exited with status $ac_status" >&5
  17271. echo "$as_me: failed program was:" >&5
  17272. sed 's/^/| /' conftest.$ac_ext >&5
  17273. ( exit $ac_status )
  17274. ac_cv_func_working_mktime=no
  17275. fi
  17276. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17277. fi
  17278. fi
  17279. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17280. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17281. if test $ac_cv_func_working_mktime = no; then
  17282. case " $LIBOBJS " in
  17283. *" mktime.$ac_objext "* ) ;;
  17284. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17285. ;;
  17286. esac
  17287. fi
  17288. for ac_header in stdlib.h unistd.h
  17289. do
  17290. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17291. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17292. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17293. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17294. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17295. echo $ECHO_N "(cached) $ECHO_C" >&6
  17296. fi
  17297. ac_res=`eval echo '${'$as_ac_Header'}'`
  17298. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17299. echo "${ECHO_T}$ac_res" >&6; }
  17300. else
  17301. # Is the header compilable?
  17302. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17303. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17304. cat >conftest.$ac_ext <<_ACEOF
  17305. /* confdefs.h. */
  17306. _ACEOF
  17307. cat confdefs.h >>conftest.$ac_ext
  17308. cat >>conftest.$ac_ext <<_ACEOF
  17309. /* end confdefs.h. */
  17310. $ac_includes_default
  17311. #include <$ac_header>
  17312. _ACEOF
  17313. rm -f conftest.$ac_objext
  17314. if { (ac_try="$ac_compile"
  17315. case "(($ac_try" in
  17316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17317. *) ac_try_echo=$ac_try;;
  17318. esac
  17319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17320. (eval "$ac_compile") 2>conftest.er1
  17321. ac_status=$?
  17322. grep -v '^ *+' conftest.er1 >conftest.err
  17323. rm -f conftest.er1
  17324. cat conftest.err >&5
  17325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17326. (exit $ac_status); } && {
  17327. test -z "$ac_cxx_werror_flag" ||
  17328. test ! -s conftest.err
  17329. } && test -s conftest.$ac_objext; then
  17330. ac_header_compiler=yes
  17331. else
  17332. echo "$as_me: failed program was:" >&5
  17333. sed 's/^/| /' conftest.$ac_ext >&5
  17334. ac_header_compiler=no
  17335. fi
  17336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17337. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17338. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17339. # Is the header present?
  17340. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17341. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17342. cat >conftest.$ac_ext <<_ACEOF
  17343. /* confdefs.h. */
  17344. _ACEOF
  17345. cat confdefs.h >>conftest.$ac_ext
  17346. cat >>conftest.$ac_ext <<_ACEOF
  17347. /* end confdefs.h. */
  17348. #include <$ac_header>
  17349. _ACEOF
  17350. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17351. case "(($ac_try" in
  17352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17353. *) ac_try_echo=$ac_try;;
  17354. esac
  17355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17356. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17357. ac_status=$?
  17358. grep -v '^ *+' conftest.er1 >conftest.err
  17359. rm -f conftest.er1
  17360. cat conftest.err >&5
  17361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17362. (exit $ac_status); } >/dev/null && {
  17363. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17364. test ! -s conftest.err
  17365. }; then
  17366. ac_header_preproc=yes
  17367. else
  17368. echo "$as_me: failed program was:" >&5
  17369. sed 's/^/| /' conftest.$ac_ext >&5
  17370. ac_header_preproc=no
  17371. fi
  17372. rm -f conftest.err conftest.$ac_ext
  17373. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17374. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17375. # So? What about this header?
  17376. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17377. yes:no: )
  17378. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17379. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17380. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17381. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17382. ac_header_preproc=yes
  17383. ;;
  17384. no:yes:* )
  17385. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17386. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17387. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17388. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17389. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17390. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17391. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17392. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17393. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17394. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17395. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17396. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17397. ( cat <<\_ASBOX
  17398. ## ----------------------------------------------- ##
  17399. ## Report this to t-tujikawa@users.sourceforge.net ##
  17400. ## ----------------------------------------------- ##
  17401. _ASBOX
  17402. ) | sed "s/^/$as_me: WARNING: /" >&2
  17403. ;;
  17404. esac
  17405. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17406. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17407. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17408. echo $ECHO_N "(cached) $ECHO_C" >&6
  17409. else
  17410. eval "$as_ac_Header=\$ac_header_preproc"
  17411. fi
  17412. ac_res=`eval echo '${'$as_ac_Header'}'`
  17413. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17414. echo "${ECHO_T}$ac_res" >&6; }
  17415. fi
  17416. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17417. cat >>confdefs.h <<_ACEOF
  17418. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17419. _ACEOF
  17420. fi
  17421. done
  17422. for ac_func in getpagesize
  17423. do
  17424. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17425. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17426. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17427. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17428. echo $ECHO_N "(cached) $ECHO_C" >&6
  17429. else
  17430. cat >conftest.$ac_ext <<_ACEOF
  17431. /* confdefs.h. */
  17432. _ACEOF
  17433. cat confdefs.h >>conftest.$ac_ext
  17434. cat >>conftest.$ac_ext <<_ACEOF
  17435. /* end confdefs.h. */
  17436. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17437. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17438. #define $ac_func innocuous_$ac_func
  17439. /* System header to define __stub macros and hopefully few prototypes,
  17440. which can conflict with char $ac_func (); below.
  17441. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17442. <limits.h> exists even on freestanding compilers. */
  17443. #ifdef __STDC__
  17444. # include <limits.h>
  17445. #else
  17446. # include <assert.h>
  17447. #endif
  17448. #undef $ac_func
  17449. /* Override any GCC internal prototype to avoid an error.
  17450. Use char because int might match the return type of a GCC
  17451. builtin and then its argument prototype would still apply. */
  17452. #ifdef __cplusplus
  17453. extern "C"
  17454. #endif
  17455. char $ac_func ();
  17456. /* The GNU C library defines this for functions which it implements
  17457. to always fail with ENOSYS. Some functions are actually named
  17458. something starting with __ and the normal name is an alias. */
  17459. #if defined __stub_$ac_func || defined __stub___$ac_func
  17460. choke me
  17461. #endif
  17462. int
  17463. main ()
  17464. {
  17465. return $ac_func ();
  17466. ;
  17467. return 0;
  17468. }
  17469. _ACEOF
  17470. rm -f conftest.$ac_objext conftest$ac_exeext
  17471. if { (ac_try="$ac_link"
  17472. case "(($ac_try" in
  17473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17474. *) ac_try_echo=$ac_try;;
  17475. esac
  17476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17477. (eval "$ac_link") 2>conftest.er1
  17478. ac_status=$?
  17479. grep -v '^ *+' conftest.er1 >conftest.err
  17480. rm -f conftest.er1
  17481. cat conftest.err >&5
  17482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17483. (exit $ac_status); } && {
  17484. test -z "$ac_cxx_werror_flag" ||
  17485. test ! -s conftest.err
  17486. } && test -s conftest$ac_exeext &&
  17487. $as_test_x conftest$ac_exeext; then
  17488. eval "$as_ac_var=yes"
  17489. else
  17490. echo "$as_me: failed program was:" >&5
  17491. sed 's/^/| /' conftest.$ac_ext >&5
  17492. eval "$as_ac_var=no"
  17493. fi
  17494. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17495. conftest$ac_exeext conftest.$ac_ext
  17496. fi
  17497. ac_res=`eval echo '${'$as_ac_var'}'`
  17498. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17499. echo "${ECHO_T}$ac_res" >&6; }
  17500. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17501. cat >>confdefs.h <<_ACEOF
  17502. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17503. _ACEOF
  17504. fi
  17505. done
  17506. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17507. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17508. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17509. echo $ECHO_N "(cached) $ECHO_C" >&6
  17510. else
  17511. if test "$cross_compiling" = yes; then
  17512. ac_cv_func_mmap_fixed_mapped=no
  17513. else
  17514. cat >conftest.$ac_ext <<_ACEOF
  17515. /* confdefs.h. */
  17516. _ACEOF
  17517. cat confdefs.h >>conftest.$ac_ext
  17518. cat >>conftest.$ac_ext <<_ACEOF
  17519. /* end confdefs.h. */
  17520. $ac_includes_default
  17521. /* malloc might have been renamed as rpl_malloc. */
  17522. #undef malloc
  17523. /* Thanks to Mike Haertel and Jim Avera for this test.
  17524. Here is a matrix of mmap possibilities:
  17525. mmap private not fixed
  17526. mmap private fixed at somewhere currently unmapped
  17527. mmap private fixed at somewhere already mapped
  17528. mmap shared not fixed
  17529. mmap shared fixed at somewhere currently unmapped
  17530. mmap shared fixed at somewhere already mapped
  17531. For private mappings, we should verify that changes cannot be read()
  17532. back from the file, nor mmap's back from the file at a different
  17533. address. (There have been systems where private was not correctly
  17534. implemented like the infamous i386 svr4.0, and systems where the
  17535. VM page cache was not coherent with the file system buffer cache
  17536. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17537. For shared mappings, we should conversely verify that changes get
  17538. propagated back to all the places they're supposed to be.
  17539. Grep wants private fixed already mapped.
  17540. The main things grep needs to know about mmap are:
  17541. * does it exist and is it safe to write into the mmap'd area
  17542. * how to use it (BSD variants) */
  17543. #include <fcntl.h>
  17544. #include <sys/mman.h>
  17545. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17546. char *malloc ();
  17547. #endif
  17548. /* This mess was copied from the GNU getpagesize.h. */
  17549. #ifndef HAVE_GETPAGESIZE
  17550. /* Assume that all systems that can run configure have sys/param.h. */
  17551. # ifndef HAVE_SYS_PARAM_H
  17552. # define HAVE_SYS_PARAM_H 1
  17553. # endif
  17554. # ifdef _SC_PAGESIZE
  17555. # define getpagesize() sysconf(_SC_PAGESIZE)
  17556. # else /* no _SC_PAGESIZE */
  17557. # ifdef HAVE_SYS_PARAM_H
  17558. # include <sys/param.h>
  17559. # ifdef EXEC_PAGESIZE
  17560. # define getpagesize() EXEC_PAGESIZE
  17561. # else /* no EXEC_PAGESIZE */
  17562. # ifdef NBPG
  17563. # define getpagesize() NBPG * CLSIZE
  17564. # ifndef CLSIZE
  17565. # define CLSIZE 1
  17566. # endif /* no CLSIZE */
  17567. # else /* no NBPG */
  17568. # ifdef NBPC
  17569. # define getpagesize() NBPC
  17570. # else /* no NBPC */
  17571. # ifdef PAGESIZE
  17572. # define getpagesize() PAGESIZE
  17573. # endif /* PAGESIZE */
  17574. # endif /* no NBPC */
  17575. # endif /* no NBPG */
  17576. # endif /* no EXEC_PAGESIZE */
  17577. # else /* no HAVE_SYS_PARAM_H */
  17578. # define getpagesize() 8192 /* punt totally */
  17579. # endif /* no HAVE_SYS_PARAM_H */
  17580. # endif /* no _SC_PAGESIZE */
  17581. #endif /* no HAVE_GETPAGESIZE */
  17582. int
  17583. main ()
  17584. {
  17585. char *data, *data2, *data3;
  17586. int i, pagesize;
  17587. int fd;
  17588. pagesize = getpagesize ();
  17589. /* First, make a file with some known garbage in it. */
  17590. data = (char *) malloc (pagesize);
  17591. if (!data)
  17592. return 1;
  17593. for (i = 0; i < pagesize; ++i)
  17594. *(data + i) = rand ();
  17595. umask (0);
  17596. fd = creat ("conftest.mmap", 0600);
  17597. if (fd < 0)
  17598. return 1;
  17599. if (write (fd, data, pagesize) != pagesize)
  17600. return 1;
  17601. close (fd);
  17602. /* Next, try to mmap the file at a fixed address which already has
  17603. something else allocated at it. If we can, also make sure that
  17604. we see the same garbage. */
  17605. fd = open ("conftest.mmap", O_RDWR);
  17606. if (fd < 0)
  17607. return 1;
  17608. data2 = (char *) malloc (2 * pagesize);
  17609. if (!data2)
  17610. return 1;
  17611. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17612. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17613. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17614. return 1;
  17615. for (i = 0; i < pagesize; ++i)
  17616. if (*(data + i) != *(data2 + i))
  17617. return 1;
  17618. /* Finally, make sure that changes to the mapped area do not
  17619. percolate back to the file as seen by read(). (This is a bug on
  17620. some variants of i386 svr4.0.) */
  17621. for (i = 0; i < pagesize; ++i)
  17622. *(data2 + i) = *(data2 + i) + 1;
  17623. data3 = (char *) malloc (pagesize);
  17624. if (!data3)
  17625. return 1;
  17626. if (read (fd, data3, pagesize) != pagesize)
  17627. return 1;
  17628. for (i = 0; i < pagesize; ++i)
  17629. if (*(data + i) != *(data3 + i))
  17630. return 1;
  17631. close (fd);
  17632. return 0;
  17633. }
  17634. _ACEOF
  17635. rm -f conftest$ac_exeext
  17636. if { (ac_try="$ac_link"
  17637. case "(($ac_try" in
  17638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17639. *) ac_try_echo=$ac_try;;
  17640. esac
  17641. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17642. (eval "$ac_link") 2>&5
  17643. ac_status=$?
  17644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17645. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17646. { (case "(($ac_try" in
  17647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17648. *) ac_try_echo=$ac_try;;
  17649. esac
  17650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17651. (eval "$ac_try") 2>&5
  17652. ac_status=$?
  17653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17654. (exit $ac_status); }; }; then
  17655. ac_cv_func_mmap_fixed_mapped=yes
  17656. else
  17657. echo "$as_me: program exited with status $ac_status" >&5
  17658. echo "$as_me: failed program was:" >&5
  17659. sed 's/^/| /' conftest.$ac_ext >&5
  17660. ( exit $ac_status )
  17661. ac_cv_func_mmap_fixed_mapped=no
  17662. fi
  17663. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17664. fi
  17665. fi
  17666. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17667. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17668. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17669. cat >>confdefs.h <<\_ACEOF
  17670. #define HAVE_MMAP 1
  17671. _ACEOF
  17672. fi
  17673. rm -f conftest.mmap
  17674. for ac_header in sys/select.h sys/socket.h
  17675. do
  17676. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17677. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17678. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17679. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17680. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17681. echo $ECHO_N "(cached) $ECHO_C" >&6
  17682. fi
  17683. ac_res=`eval echo '${'$as_ac_Header'}'`
  17684. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17685. echo "${ECHO_T}$ac_res" >&6; }
  17686. else
  17687. # Is the header compilable?
  17688. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17689. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17690. cat >conftest.$ac_ext <<_ACEOF
  17691. /* confdefs.h. */
  17692. _ACEOF
  17693. cat confdefs.h >>conftest.$ac_ext
  17694. cat >>conftest.$ac_ext <<_ACEOF
  17695. /* end confdefs.h. */
  17696. $ac_includes_default
  17697. #include <$ac_header>
  17698. _ACEOF
  17699. rm -f conftest.$ac_objext
  17700. if { (ac_try="$ac_compile"
  17701. case "(($ac_try" in
  17702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17703. *) ac_try_echo=$ac_try;;
  17704. esac
  17705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17706. (eval "$ac_compile") 2>conftest.er1
  17707. ac_status=$?
  17708. grep -v '^ *+' conftest.er1 >conftest.err
  17709. rm -f conftest.er1
  17710. cat conftest.err >&5
  17711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17712. (exit $ac_status); } && {
  17713. test -z "$ac_cxx_werror_flag" ||
  17714. test ! -s conftest.err
  17715. } && test -s conftest.$ac_objext; then
  17716. ac_header_compiler=yes
  17717. else
  17718. echo "$as_me: failed program was:" >&5
  17719. sed 's/^/| /' conftest.$ac_ext >&5
  17720. ac_header_compiler=no
  17721. fi
  17722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17723. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17724. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17725. # Is the header present?
  17726. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17727. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17728. cat >conftest.$ac_ext <<_ACEOF
  17729. /* confdefs.h. */
  17730. _ACEOF
  17731. cat confdefs.h >>conftest.$ac_ext
  17732. cat >>conftest.$ac_ext <<_ACEOF
  17733. /* end confdefs.h. */
  17734. #include <$ac_header>
  17735. _ACEOF
  17736. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17737. case "(($ac_try" in
  17738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17739. *) ac_try_echo=$ac_try;;
  17740. esac
  17741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17742. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17743. ac_status=$?
  17744. grep -v '^ *+' conftest.er1 >conftest.err
  17745. rm -f conftest.er1
  17746. cat conftest.err >&5
  17747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17748. (exit $ac_status); } >/dev/null && {
  17749. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17750. test ! -s conftest.err
  17751. }; then
  17752. ac_header_preproc=yes
  17753. else
  17754. echo "$as_me: failed program was:" >&5
  17755. sed 's/^/| /' conftest.$ac_ext >&5
  17756. ac_header_preproc=no
  17757. fi
  17758. rm -f conftest.err conftest.$ac_ext
  17759. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17760. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17761. # So? What about this header?
  17762. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17763. yes:no: )
  17764. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17765. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17766. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17767. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17768. ac_header_preproc=yes
  17769. ;;
  17770. no:yes:* )
  17771. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17772. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17773. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17774. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17775. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17776. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17777. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17778. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17779. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17780. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17781. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17782. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17783. ( cat <<\_ASBOX
  17784. ## ----------------------------------------------- ##
  17785. ## Report this to t-tujikawa@users.sourceforge.net ##
  17786. ## ----------------------------------------------- ##
  17787. _ASBOX
  17788. ) | sed "s/^/$as_me: WARNING: /" >&2
  17789. ;;
  17790. esac
  17791. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17792. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17793. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17794. echo $ECHO_N "(cached) $ECHO_C" >&6
  17795. else
  17796. eval "$as_ac_Header=\$ac_header_preproc"
  17797. fi
  17798. ac_res=`eval echo '${'$as_ac_Header'}'`
  17799. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17800. echo "${ECHO_T}$ac_res" >&6; }
  17801. fi
  17802. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17803. cat >>confdefs.h <<_ACEOF
  17804. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17805. _ACEOF
  17806. fi
  17807. done
  17808. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17809. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17810. if test "${ac_cv_func_select_args+set}" = set; then
  17811. echo $ECHO_N "(cached) $ECHO_C" >&6
  17812. else
  17813. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17814. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17815. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17816. cat >conftest.$ac_ext <<_ACEOF
  17817. /* confdefs.h. */
  17818. _ACEOF
  17819. cat confdefs.h >>conftest.$ac_ext
  17820. cat >>conftest.$ac_ext <<_ACEOF
  17821. /* end confdefs.h. */
  17822. $ac_includes_default
  17823. #ifdef HAVE_SYS_SELECT_H
  17824. # include <sys/select.h>
  17825. #endif
  17826. #ifdef HAVE_SYS_SOCKET_H
  17827. # include <sys/socket.h>
  17828. #endif
  17829. int
  17830. main ()
  17831. {
  17832. extern int select ($ac_arg1,
  17833. $ac_arg234, $ac_arg234, $ac_arg234,
  17834. $ac_arg5);
  17835. ;
  17836. return 0;
  17837. }
  17838. _ACEOF
  17839. rm -f conftest.$ac_objext
  17840. if { (ac_try="$ac_compile"
  17841. case "(($ac_try" in
  17842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17843. *) ac_try_echo=$ac_try;;
  17844. esac
  17845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17846. (eval "$ac_compile") 2>conftest.er1
  17847. ac_status=$?
  17848. grep -v '^ *+' conftest.er1 >conftest.err
  17849. rm -f conftest.er1
  17850. cat conftest.err >&5
  17851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17852. (exit $ac_status); } && {
  17853. test -z "$ac_cxx_werror_flag" ||
  17854. test ! -s conftest.err
  17855. } && test -s conftest.$ac_objext; then
  17856. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17857. else
  17858. echo "$as_me: failed program was:" >&5
  17859. sed 's/^/| /' conftest.$ac_ext >&5
  17860. fi
  17861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17862. done
  17863. done
  17864. done
  17865. # Provide a safe default value.
  17866. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17867. fi
  17868. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17869. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17870. ac_save_IFS=$IFS; IFS=','
  17871. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17872. IFS=$ac_save_IFS
  17873. shift
  17874. cat >>confdefs.h <<_ACEOF
  17875. #define SELECT_TYPE_ARG1 $1
  17876. _ACEOF
  17877. cat >>confdefs.h <<_ACEOF
  17878. #define SELECT_TYPE_ARG234 ($2)
  17879. _ACEOF
  17880. cat >>confdefs.h <<_ACEOF
  17881. #define SELECT_TYPE_ARG5 ($3)
  17882. _ACEOF
  17883. rm -f conftest*
  17884. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17885. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17886. if test "${ac_cv_type_signal+set}" = set; then
  17887. echo $ECHO_N "(cached) $ECHO_C" >&6
  17888. else
  17889. cat >conftest.$ac_ext <<_ACEOF
  17890. /* confdefs.h. */
  17891. _ACEOF
  17892. cat confdefs.h >>conftest.$ac_ext
  17893. cat >>conftest.$ac_ext <<_ACEOF
  17894. /* end confdefs.h. */
  17895. #include <sys/types.h>
  17896. #include <signal.h>
  17897. int
  17898. main ()
  17899. {
  17900. return *(signal (0, 0)) (0) == 1;
  17901. ;
  17902. return 0;
  17903. }
  17904. _ACEOF
  17905. rm -f conftest.$ac_objext
  17906. if { (ac_try="$ac_compile"
  17907. case "(($ac_try" in
  17908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17909. *) ac_try_echo=$ac_try;;
  17910. esac
  17911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17912. (eval "$ac_compile") 2>conftest.er1
  17913. ac_status=$?
  17914. grep -v '^ *+' conftest.er1 >conftest.err
  17915. rm -f conftest.er1
  17916. cat conftest.err >&5
  17917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17918. (exit $ac_status); } && {
  17919. test -z "$ac_cxx_werror_flag" ||
  17920. test ! -s conftest.err
  17921. } && test -s conftest.$ac_objext; then
  17922. ac_cv_type_signal=int
  17923. else
  17924. echo "$as_me: failed program was:" >&5
  17925. sed 's/^/| /' conftest.$ac_ext >&5
  17926. ac_cv_type_signal=void
  17927. fi
  17928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17929. fi
  17930. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17931. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17932. cat >>confdefs.h <<_ACEOF
  17933. #define RETSIGTYPE $ac_cv_type_signal
  17934. _ACEOF
  17935. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17936. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17937. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17938. echo $ECHO_N "(cached) $ECHO_C" >&6
  17939. else
  17940. rm -f conftest.sym conftest.file
  17941. echo >conftest.file
  17942. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17943. if test "$cross_compiling" = yes; then
  17944. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17945. else
  17946. cat >conftest.$ac_ext <<_ACEOF
  17947. /* confdefs.h. */
  17948. _ACEOF
  17949. cat confdefs.h >>conftest.$ac_ext
  17950. cat >>conftest.$ac_ext <<_ACEOF
  17951. /* end confdefs.h. */
  17952. $ac_includes_default
  17953. int
  17954. main ()
  17955. {
  17956. struct stat sbuf;
  17957. /* Linux will dereference the symlink and fail.
  17958. That is better in the sense that it means we will not
  17959. have to compile and use the lstat wrapper. */
  17960. return lstat ("conftest.sym/", &sbuf) == 0;
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. rm -f conftest$ac_exeext
  17966. if { (ac_try="$ac_link"
  17967. case "(($ac_try" in
  17968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17969. *) ac_try_echo=$ac_try;;
  17970. esac
  17971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17972. (eval "$ac_link") 2>&5
  17973. ac_status=$?
  17974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17975. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17976. { (case "(($ac_try" in
  17977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17978. *) ac_try_echo=$ac_try;;
  17979. esac
  17980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17981. (eval "$ac_try") 2>&5
  17982. ac_status=$?
  17983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17984. (exit $ac_status); }; }; then
  17985. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17986. else
  17987. echo "$as_me: program exited with status $ac_status" >&5
  17988. echo "$as_me: failed program was:" >&5
  17989. sed 's/^/| /' conftest.$ac_ext >&5
  17990. ( exit $ac_status )
  17991. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17992. fi
  17993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17994. fi
  17995. else
  17996. # If the `ln -s' command failed, then we probably don't even
  17997. # have an lstat function.
  17998. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17999. fi
  18000. rm -f conftest.sym conftest.file
  18001. fi
  18002. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18003. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18004. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18005. cat >>confdefs.h <<_ACEOF
  18006. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18007. _ACEOF
  18008. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18009. case " $LIBOBJS " in
  18010. *" lstat.$ac_objext "* ) ;;
  18011. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18012. ;;
  18013. esac
  18014. fi
  18015. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18016. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  18017. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18018. echo $ECHO_N "(cached) $ECHO_C" >&6
  18019. else
  18020. if test "$cross_compiling" = yes; then
  18021. ac_cv_func_stat_empty_string_bug=yes
  18022. else
  18023. cat >conftest.$ac_ext <<_ACEOF
  18024. /* confdefs.h. */
  18025. _ACEOF
  18026. cat confdefs.h >>conftest.$ac_ext
  18027. cat >>conftest.$ac_ext <<_ACEOF
  18028. /* end confdefs.h. */
  18029. $ac_includes_default
  18030. int
  18031. main ()
  18032. {
  18033. struct stat sbuf;
  18034. return stat ("", &sbuf) == 0;
  18035. ;
  18036. return 0;
  18037. }
  18038. _ACEOF
  18039. rm -f conftest$ac_exeext
  18040. if { (ac_try="$ac_link"
  18041. case "(($ac_try" in
  18042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18043. *) ac_try_echo=$ac_try;;
  18044. esac
  18045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18046. (eval "$ac_link") 2>&5
  18047. ac_status=$?
  18048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18049. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18050. { (case "(($ac_try" in
  18051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18052. *) ac_try_echo=$ac_try;;
  18053. esac
  18054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18055. (eval "$ac_try") 2>&5
  18056. ac_status=$?
  18057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18058. (exit $ac_status); }; }; then
  18059. ac_cv_func_stat_empty_string_bug=no
  18060. else
  18061. echo "$as_me: program exited with status $ac_status" >&5
  18062. echo "$as_me: failed program was:" >&5
  18063. sed 's/^/| /' conftest.$ac_ext >&5
  18064. ( exit $ac_status )
  18065. ac_cv_func_stat_empty_string_bug=yes
  18066. fi
  18067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18068. fi
  18069. fi
  18070. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18071. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  18072. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18073. case " $LIBOBJS " in
  18074. *" stat.$ac_objext "* ) ;;
  18075. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18076. ;;
  18077. esac
  18078. cat >>confdefs.h <<_ACEOF
  18079. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18080. _ACEOF
  18081. fi
  18082. for ac_func in strftime
  18083. do
  18084. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18085. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18086. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18087. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18088. echo $ECHO_N "(cached) $ECHO_C" >&6
  18089. else
  18090. cat >conftest.$ac_ext <<_ACEOF
  18091. /* confdefs.h. */
  18092. _ACEOF
  18093. cat confdefs.h >>conftest.$ac_ext
  18094. cat >>conftest.$ac_ext <<_ACEOF
  18095. /* end confdefs.h. */
  18096. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18097. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18098. #define $ac_func innocuous_$ac_func
  18099. /* System header to define __stub macros and hopefully few prototypes,
  18100. which can conflict with char $ac_func (); below.
  18101. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18102. <limits.h> exists even on freestanding compilers. */
  18103. #ifdef __STDC__
  18104. # include <limits.h>
  18105. #else
  18106. # include <assert.h>
  18107. #endif
  18108. #undef $ac_func
  18109. /* Override any GCC internal prototype to avoid an error.
  18110. Use char because int might match the return type of a GCC
  18111. builtin and then its argument prototype would still apply. */
  18112. #ifdef __cplusplus
  18113. extern "C"
  18114. #endif
  18115. char $ac_func ();
  18116. /* The GNU C library defines this for functions which it implements
  18117. to always fail with ENOSYS. Some functions are actually named
  18118. something starting with __ and the normal name is an alias. */
  18119. #if defined __stub_$ac_func || defined __stub___$ac_func
  18120. choke me
  18121. #endif
  18122. int
  18123. main ()
  18124. {
  18125. return $ac_func ();
  18126. ;
  18127. return 0;
  18128. }
  18129. _ACEOF
  18130. rm -f conftest.$ac_objext conftest$ac_exeext
  18131. if { (ac_try="$ac_link"
  18132. case "(($ac_try" in
  18133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18134. *) ac_try_echo=$ac_try;;
  18135. esac
  18136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18137. (eval "$ac_link") 2>conftest.er1
  18138. ac_status=$?
  18139. grep -v '^ *+' conftest.er1 >conftest.err
  18140. rm -f conftest.er1
  18141. cat conftest.err >&5
  18142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18143. (exit $ac_status); } && {
  18144. test -z "$ac_cxx_werror_flag" ||
  18145. test ! -s conftest.err
  18146. } && test -s conftest$ac_exeext &&
  18147. $as_test_x conftest$ac_exeext; then
  18148. eval "$as_ac_var=yes"
  18149. else
  18150. echo "$as_me: failed program was:" >&5
  18151. sed 's/^/| /' conftest.$ac_ext >&5
  18152. eval "$as_ac_var=no"
  18153. fi
  18154. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18155. conftest$ac_exeext conftest.$ac_ext
  18156. fi
  18157. ac_res=`eval echo '${'$as_ac_var'}'`
  18158. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18159. echo "${ECHO_T}$ac_res" >&6; }
  18160. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18161. cat >>confdefs.h <<_ACEOF
  18162. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18163. _ACEOF
  18164. else
  18165. # strftime is in -lintl on SCO UNIX.
  18166. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18167. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18168. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18169. echo $ECHO_N "(cached) $ECHO_C" >&6
  18170. else
  18171. ac_check_lib_save_LIBS=$LIBS
  18172. LIBS="-lintl $LIBS"
  18173. cat >conftest.$ac_ext <<_ACEOF
  18174. /* confdefs.h. */
  18175. _ACEOF
  18176. cat confdefs.h >>conftest.$ac_ext
  18177. cat >>conftest.$ac_ext <<_ACEOF
  18178. /* end confdefs.h. */
  18179. /* Override any GCC internal prototype to avoid an error.
  18180. Use char because int might match the return type of a GCC
  18181. builtin and then its argument prototype would still apply. */
  18182. #ifdef __cplusplus
  18183. extern "C"
  18184. #endif
  18185. char strftime ();
  18186. int
  18187. main ()
  18188. {
  18189. return strftime ();
  18190. ;
  18191. return 0;
  18192. }
  18193. _ACEOF
  18194. rm -f conftest.$ac_objext conftest$ac_exeext
  18195. if { (ac_try="$ac_link"
  18196. case "(($ac_try" in
  18197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18198. *) ac_try_echo=$ac_try;;
  18199. esac
  18200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18201. (eval "$ac_link") 2>conftest.er1
  18202. ac_status=$?
  18203. grep -v '^ *+' conftest.er1 >conftest.err
  18204. rm -f conftest.er1
  18205. cat conftest.err >&5
  18206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18207. (exit $ac_status); } && {
  18208. test -z "$ac_cxx_werror_flag" ||
  18209. test ! -s conftest.err
  18210. } && test -s conftest$ac_exeext &&
  18211. $as_test_x conftest$ac_exeext; then
  18212. ac_cv_lib_intl_strftime=yes
  18213. else
  18214. echo "$as_me: failed program was:" >&5
  18215. sed 's/^/| /' conftest.$ac_ext >&5
  18216. ac_cv_lib_intl_strftime=no
  18217. fi
  18218. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18219. conftest$ac_exeext conftest.$ac_ext
  18220. LIBS=$ac_check_lib_save_LIBS
  18221. fi
  18222. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18223. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  18224. if test $ac_cv_lib_intl_strftime = yes; then
  18225. cat >>confdefs.h <<\_ACEOF
  18226. #define HAVE_STRFTIME 1
  18227. _ACEOF
  18228. LIBS="-lintl $LIBS"
  18229. fi
  18230. fi
  18231. done
  18232. for ac_func in vprintf
  18233. do
  18234. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18235. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18236. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18237. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18238. echo $ECHO_N "(cached) $ECHO_C" >&6
  18239. else
  18240. cat >conftest.$ac_ext <<_ACEOF
  18241. /* confdefs.h. */
  18242. _ACEOF
  18243. cat confdefs.h >>conftest.$ac_ext
  18244. cat >>conftest.$ac_ext <<_ACEOF
  18245. /* end confdefs.h. */
  18246. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18247. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18248. #define $ac_func innocuous_$ac_func
  18249. /* System header to define __stub macros and hopefully few prototypes,
  18250. which can conflict with char $ac_func (); below.
  18251. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18252. <limits.h> exists even on freestanding compilers. */
  18253. #ifdef __STDC__
  18254. # include <limits.h>
  18255. #else
  18256. # include <assert.h>
  18257. #endif
  18258. #undef $ac_func
  18259. /* Override any GCC internal prototype to avoid an error.
  18260. Use char because int might match the return type of a GCC
  18261. builtin and then its argument prototype would still apply. */
  18262. #ifdef __cplusplus
  18263. extern "C"
  18264. #endif
  18265. char $ac_func ();
  18266. /* The GNU C library defines this for functions which it implements
  18267. to always fail with ENOSYS. Some functions are actually named
  18268. something starting with __ and the normal name is an alias. */
  18269. #if defined __stub_$ac_func || defined __stub___$ac_func
  18270. choke me
  18271. #endif
  18272. int
  18273. main ()
  18274. {
  18275. return $ac_func ();
  18276. ;
  18277. return 0;
  18278. }
  18279. _ACEOF
  18280. rm -f conftest.$ac_objext conftest$ac_exeext
  18281. if { (ac_try="$ac_link"
  18282. case "(($ac_try" in
  18283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18284. *) ac_try_echo=$ac_try;;
  18285. esac
  18286. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18287. (eval "$ac_link") 2>conftest.er1
  18288. ac_status=$?
  18289. grep -v '^ *+' conftest.er1 >conftest.err
  18290. rm -f conftest.er1
  18291. cat conftest.err >&5
  18292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18293. (exit $ac_status); } && {
  18294. test -z "$ac_cxx_werror_flag" ||
  18295. test ! -s conftest.err
  18296. } && test -s conftest$ac_exeext &&
  18297. $as_test_x conftest$ac_exeext; then
  18298. eval "$as_ac_var=yes"
  18299. else
  18300. echo "$as_me: failed program was:" >&5
  18301. sed 's/^/| /' conftest.$ac_ext >&5
  18302. eval "$as_ac_var=no"
  18303. fi
  18304. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18305. conftest$ac_exeext conftest.$ac_ext
  18306. fi
  18307. ac_res=`eval echo '${'$as_ac_var'}'`
  18308. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18309. echo "${ECHO_T}$ac_res" >&6; }
  18310. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18311. cat >>confdefs.h <<_ACEOF
  18312. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18313. _ACEOF
  18314. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18315. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18316. if test "${ac_cv_func__doprnt+set}" = set; then
  18317. echo $ECHO_N "(cached) $ECHO_C" >&6
  18318. else
  18319. cat >conftest.$ac_ext <<_ACEOF
  18320. /* confdefs.h. */
  18321. _ACEOF
  18322. cat confdefs.h >>conftest.$ac_ext
  18323. cat >>conftest.$ac_ext <<_ACEOF
  18324. /* end confdefs.h. */
  18325. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18326. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18327. #define _doprnt innocuous__doprnt
  18328. /* System header to define __stub macros and hopefully few prototypes,
  18329. which can conflict with char _doprnt (); below.
  18330. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18331. <limits.h> exists even on freestanding compilers. */
  18332. #ifdef __STDC__
  18333. # include <limits.h>
  18334. #else
  18335. # include <assert.h>
  18336. #endif
  18337. #undef _doprnt
  18338. /* Override any GCC internal prototype to avoid an error.
  18339. Use char because int might match the return type of a GCC
  18340. builtin and then its argument prototype would still apply. */
  18341. #ifdef __cplusplus
  18342. extern "C"
  18343. #endif
  18344. char _doprnt ();
  18345. /* The GNU C library defines this for functions which it implements
  18346. to always fail with ENOSYS. Some functions are actually named
  18347. something starting with __ and the normal name is an alias. */
  18348. #if defined __stub__doprnt || defined __stub____doprnt
  18349. choke me
  18350. #endif
  18351. int
  18352. main ()
  18353. {
  18354. return _doprnt ();
  18355. ;
  18356. return 0;
  18357. }
  18358. _ACEOF
  18359. rm -f conftest.$ac_objext conftest$ac_exeext
  18360. if { (ac_try="$ac_link"
  18361. case "(($ac_try" in
  18362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18363. *) ac_try_echo=$ac_try;;
  18364. esac
  18365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18366. (eval "$ac_link") 2>conftest.er1
  18367. ac_status=$?
  18368. grep -v '^ *+' conftest.er1 >conftest.err
  18369. rm -f conftest.er1
  18370. cat conftest.err >&5
  18371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18372. (exit $ac_status); } && {
  18373. test -z "$ac_cxx_werror_flag" ||
  18374. test ! -s conftest.err
  18375. } && test -s conftest$ac_exeext &&
  18376. $as_test_x conftest$ac_exeext; then
  18377. ac_cv_func__doprnt=yes
  18378. else
  18379. echo "$as_me: failed program was:" >&5
  18380. sed 's/^/| /' conftest.$ac_ext >&5
  18381. ac_cv_func__doprnt=no
  18382. fi
  18383. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18384. conftest$ac_exeext conftest.$ac_ext
  18385. fi
  18386. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18387. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18388. if test $ac_cv_func__doprnt = yes; then
  18389. cat >>confdefs.h <<\_ACEOF
  18390. #define HAVE_DOPRNT 1
  18391. _ACEOF
  18392. fi
  18393. fi
  18394. done
  18395. for ac_func in __argz_count \
  18396. __argz_next \
  18397. __argz_stringify \
  18398. atexit \
  18399. daemon \
  18400. ftruncate \
  18401. getcwd \
  18402. gethostbyaddr \
  18403. gethostbyname \
  18404. getpagesize \
  18405. inet_ntoa \
  18406. memchr \
  18407. memmove \
  18408. mempcpy \
  18409. memset \
  18410. mkdir \
  18411. munmap \
  18412. nl_langinfo \
  18413. posix_memalign \
  18414. putenv \
  18415. rmdir \
  18416. select \
  18417. setlocale \
  18418. sleep \
  18419. socket \
  18420. stpcpy \
  18421. strcasecmp \
  18422. strchr \
  18423. strcspn \
  18424. strdup \
  18425. strerror \
  18426. strncasecmp \
  18427. strstr \
  18428. strtol \
  18429. strtoul \
  18430. strtoull \
  18431. tzset \
  18432. unsetenv \
  18433. usleep
  18434. do
  18435. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18436. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18437. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18438. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18439. echo $ECHO_N "(cached) $ECHO_C" >&6
  18440. else
  18441. cat >conftest.$ac_ext <<_ACEOF
  18442. /* confdefs.h. */
  18443. _ACEOF
  18444. cat confdefs.h >>conftest.$ac_ext
  18445. cat >>conftest.$ac_ext <<_ACEOF
  18446. /* end confdefs.h. */
  18447. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18448. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18449. #define $ac_func innocuous_$ac_func
  18450. /* System header to define __stub macros and hopefully few prototypes,
  18451. which can conflict with char $ac_func (); below.
  18452. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18453. <limits.h> exists even on freestanding compilers. */
  18454. #ifdef __STDC__
  18455. # include <limits.h>
  18456. #else
  18457. # include <assert.h>
  18458. #endif
  18459. #undef $ac_func
  18460. /* Override any GCC internal prototype to avoid an error.
  18461. Use char because int might match the return type of a GCC
  18462. builtin and then its argument prototype would still apply. */
  18463. #ifdef __cplusplus
  18464. extern "C"
  18465. #endif
  18466. char $ac_func ();
  18467. /* The GNU C library defines this for functions which it implements
  18468. to always fail with ENOSYS. Some functions are actually named
  18469. something starting with __ and the normal name is an alias. */
  18470. #if defined __stub_$ac_func || defined __stub___$ac_func
  18471. choke me
  18472. #endif
  18473. int
  18474. main ()
  18475. {
  18476. return $ac_func ();
  18477. ;
  18478. return 0;
  18479. }
  18480. _ACEOF
  18481. rm -f conftest.$ac_objext conftest$ac_exeext
  18482. if { (ac_try="$ac_link"
  18483. case "(($ac_try" in
  18484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18485. *) ac_try_echo=$ac_try;;
  18486. esac
  18487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18488. (eval "$ac_link") 2>conftest.er1
  18489. ac_status=$?
  18490. grep -v '^ *+' conftest.er1 >conftest.err
  18491. rm -f conftest.er1
  18492. cat conftest.err >&5
  18493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18494. (exit $ac_status); } && {
  18495. test -z "$ac_cxx_werror_flag" ||
  18496. test ! -s conftest.err
  18497. } && test -s conftest$ac_exeext &&
  18498. $as_test_x conftest$ac_exeext; then
  18499. eval "$as_ac_var=yes"
  18500. else
  18501. echo "$as_me: failed program was:" >&5
  18502. sed 's/^/| /' conftest.$ac_ext >&5
  18503. eval "$as_ac_var=no"
  18504. fi
  18505. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18506. conftest$ac_exeext conftest.$ac_ext
  18507. fi
  18508. ac_res=`eval echo '${'$as_ac_var'}'`
  18509. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18510. echo "${ECHO_T}$ac_res" >&6; }
  18511. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18512. cat >>confdefs.h <<_ACEOF
  18513. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18514. _ACEOF
  18515. fi
  18516. done
  18517. if test "x$enable_epoll" = "xyes"; then
  18518. for ac_func in epoll_create
  18519. do
  18520. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18521. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18522. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18523. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18524. echo $ECHO_N "(cached) $ECHO_C" >&6
  18525. else
  18526. cat >conftest.$ac_ext <<_ACEOF
  18527. /* confdefs.h. */
  18528. _ACEOF
  18529. cat confdefs.h >>conftest.$ac_ext
  18530. cat >>conftest.$ac_ext <<_ACEOF
  18531. /* end confdefs.h. */
  18532. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18533. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18534. #define $ac_func innocuous_$ac_func
  18535. /* System header to define __stub macros and hopefully few prototypes,
  18536. which can conflict with char $ac_func (); below.
  18537. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18538. <limits.h> exists even on freestanding compilers. */
  18539. #ifdef __STDC__
  18540. # include <limits.h>
  18541. #else
  18542. # include <assert.h>
  18543. #endif
  18544. #undef $ac_func
  18545. /* Override any GCC internal prototype to avoid an error.
  18546. Use char because int might match the return type of a GCC
  18547. builtin and then its argument prototype would still apply. */
  18548. #ifdef __cplusplus
  18549. extern "C"
  18550. #endif
  18551. char $ac_func ();
  18552. /* The GNU C library defines this for functions which it implements
  18553. to always fail with ENOSYS. Some functions are actually named
  18554. something starting with __ and the normal name is an alias. */
  18555. #if defined __stub_$ac_func || defined __stub___$ac_func
  18556. choke me
  18557. #endif
  18558. int
  18559. main ()
  18560. {
  18561. return $ac_func ();
  18562. ;
  18563. return 0;
  18564. }
  18565. _ACEOF
  18566. rm -f conftest.$ac_objext conftest$ac_exeext
  18567. if { (ac_try="$ac_link"
  18568. case "(($ac_try" in
  18569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18570. *) ac_try_echo=$ac_try;;
  18571. esac
  18572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18573. (eval "$ac_link") 2>conftest.er1
  18574. ac_status=$?
  18575. grep -v '^ *+' conftest.er1 >conftest.err
  18576. rm -f conftest.er1
  18577. cat conftest.err >&5
  18578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18579. (exit $ac_status); } && {
  18580. test -z "$ac_cxx_werror_flag" ||
  18581. test ! -s conftest.err
  18582. } && test -s conftest$ac_exeext &&
  18583. $as_test_x conftest$ac_exeext; then
  18584. eval "$as_ac_var=yes"
  18585. else
  18586. echo "$as_me: failed program was:" >&5
  18587. sed 's/^/| /' conftest.$ac_ext >&5
  18588. eval "$as_ac_var=no"
  18589. fi
  18590. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18591. conftest$ac_exeext conftest.$ac_ext
  18592. fi
  18593. ac_res=`eval echo '${'$as_ac_var'}'`
  18594. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18595. echo "${ECHO_T}$ac_res" >&6; }
  18596. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18597. cat >>confdefs.h <<_ACEOF
  18598. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18599. _ACEOF
  18600. have_epoll=yes
  18601. fi
  18602. done
  18603. if test "x$have_epoll" = "xyes"; then
  18604. cat >>confdefs.h <<\_ACEOF
  18605. #define HAVE_EPOLL 1
  18606. _ACEOF
  18607. fi
  18608. fi
  18609. if test "x$have_epoll" = "xyes"; then
  18610. HAVE_EPOLL_TRUE=
  18611. HAVE_EPOLL_FALSE='#'
  18612. else
  18613. HAVE_EPOLL_TRUE='#'
  18614. HAVE_EPOLL_FALSE=
  18615. fi
  18616. for ac_func in asctime_r
  18617. do
  18618. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18619. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18620. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18621. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18622. echo $ECHO_N "(cached) $ECHO_C" >&6
  18623. else
  18624. cat >conftest.$ac_ext <<_ACEOF
  18625. /* confdefs.h. */
  18626. _ACEOF
  18627. cat confdefs.h >>conftest.$ac_ext
  18628. cat >>conftest.$ac_ext <<_ACEOF
  18629. /* end confdefs.h. */
  18630. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18631. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18632. #define $ac_func innocuous_$ac_func
  18633. /* System header to define __stub macros and hopefully few prototypes,
  18634. which can conflict with char $ac_func (); below.
  18635. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18636. <limits.h> exists even on freestanding compilers. */
  18637. #ifdef __STDC__
  18638. # include <limits.h>
  18639. #else
  18640. # include <assert.h>
  18641. #endif
  18642. #undef $ac_func
  18643. /* Override any GCC internal prototype to avoid an error.
  18644. Use char because int might match the return type of a GCC
  18645. builtin and then its argument prototype would still apply. */
  18646. #ifdef __cplusplus
  18647. extern "C"
  18648. #endif
  18649. char $ac_func ();
  18650. /* The GNU C library defines this for functions which it implements
  18651. to always fail with ENOSYS. Some functions are actually named
  18652. something starting with __ and the normal name is an alias. */
  18653. #if defined __stub_$ac_func || defined __stub___$ac_func
  18654. choke me
  18655. #endif
  18656. int
  18657. main ()
  18658. {
  18659. return $ac_func ();
  18660. ;
  18661. return 0;
  18662. }
  18663. _ACEOF
  18664. rm -f conftest.$ac_objext conftest$ac_exeext
  18665. if { (ac_try="$ac_link"
  18666. case "(($ac_try" in
  18667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18668. *) ac_try_echo=$ac_try;;
  18669. esac
  18670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18671. (eval "$ac_link") 2>conftest.er1
  18672. ac_status=$?
  18673. grep -v '^ *+' conftest.er1 >conftest.err
  18674. rm -f conftest.er1
  18675. cat conftest.err >&5
  18676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18677. (exit $ac_status); } && {
  18678. test -z "$ac_cxx_werror_flag" ||
  18679. test ! -s conftest.err
  18680. } && test -s conftest$ac_exeext &&
  18681. $as_test_x conftest$ac_exeext; then
  18682. eval "$as_ac_var=yes"
  18683. else
  18684. echo "$as_me: failed program was:" >&5
  18685. sed 's/^/| /' conftest.$ac_ext >&5
  18686. eval "$as_ac_var=no"
  18687. fi
  18688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18689. conftest$ac_exeext conftest.$ac_ext
  18690. fi
  18691. ac_res=`eval echo '${'$as_ac_var'}'`
  18692. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18693. echo "${ECHO_T}$ac_res" >&6; }
  18694. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18695. cat >>confdefs.h <<_ACEOF
  18696. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18697. _ACEOF
  18698. if true; then
  18699. HAVE_ASCTIME_R_TRUE=
  18700. HAVE_ASCTIME_R_FALSE='#'
  18701. else
  18702. HAVE_ASCTIME_R_TRUE='#'
  18703. HAVE_ASCTIME_R_FALSE=
  18704. fi
  18705. else
  18706. if false; then
  18707. HAVE_ASCTIME_R_TRUE=
  18708. HAVE_ASCTIME_R_FALSE='#'
  18709. else
  18710. HAVE_ASCTIME_R_TRUE='#'
  18711. HAVE_ASCTIME_R_FALSE=
  18712. fi
  18713. fi
  18714. done
  18715. for ac_func in basename
  18716. do
  18717. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18718. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18719. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18720. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18721. echo $ECHO_N "(cached) $ECHO_C" >&6
  18722. else
  18723. cat >conftest.$ac_ext <<_ACEOF
  18724. /* confdefs.h. */
  18725. _ACEOF
  18726. cat confdefs.h >>conftest.$ac_ext
  18727. cat >>conftest.$ac_ext <<_ACEOF
  18728. /* end confdefs.h. */
  18729. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18730. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18731. #define $ac_func innocuous_$ac_func
  18732. /* System header to define __stub macros and hopefully few prototypes,
  18733. which can conflict with char $ac_func (); below.
  18734. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18735. <limits.h> exists even on freestanding compilers. */
  18736. #ifdef __STDC__
  18737. # include <limits.h>
  18738. #else
  18739. # include <assert.h>
  18740. #endif
  18741. #undef $ac_func
  18742. /* Override any GCC internal prototype to avoid an error.
  18743. Use char because int might match the return type of a GCC
  18744. builtin and then its argument prototype would still apply. */
  18745. #ifdef __cplusplus
  18746. extern "C"
  18747. #endif
  18748. char $ac_func ();
  18749. /* The GNU C library defines this for functions which it implements
  18750. to always fail with ENOSYS. Some functions are actually named
  18751. something starting with __ and the normal name is an alias. */
  18752. #if defined __stub_$ac_func || defined __stub___$ac_func
  18753. choke me
  18754. #endif
  18755. int
  18756. main ()
  18757. {
  18758. return $ac_func ();
  18759. ;
  18760. return 0;
  18761. }
  18762. _ACEOF
  18763. rm -f conftest.$ac_objext conftest$ac_exeext
  18764. if { (ac_try="$ac_link"
  18765. case "(($ac_try" in
  18766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18767. *) ac_try_echo=$ac_try;;
  18768. esac
  18769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18770. (eval "$ac_link") 2>conftest.er1
  18771. ac_status=$?
  18772. grep -v '^ *+' conftest.er1 >conftest.err
  18773. rm -f conftest.er1
  18774. cat conftest.err >&5
  18775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18776. (exit $ac_status); } && {
  18777. test -z "$ac_cxx_werror_flag" ||
  18778. test ! -s conftest.err
  18779. } && test -s conftest$ac_exeext &&
  18780. $as_test_x conftest$ac_exeext; then
  18781. eval "$as_ac_var=yes"
  18782. else
  18783. echo "$as_me: failed program was:" >&5
  18784. sed 's/^/| /' conftest.$ac_ext >&5
  18785. eval "$as_ac_var=no"
  18786. fi
  18787. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18788. conftest$ac_exeext conftest.$ac_ext
  18789. fi
  18790. ac_res=`eval echo '${'$as_ac_var'}'`
  18791. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18792. echo "${ECHO_T}$ac_res" >&6; }
  18793. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18794. cat >>confdefs.h <<_ACEOF
  18795. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18796. _ACEOF
  18797. if true; then
  18798. HAVE_BASENAME_TRUE=
  18799. HAVE_BASENAME_FALSE='#'
  18800. else
  18801. HAVE_BASENAME_TRUE='#'
  18802. HAVE_BASENAME_FALSE=
  18803. fi
  18804. else
  18805. if false; then
  18806. HAVE_BASENAME_TRUE=
  18807. HAVE_BASENAME_FALSE='#'
  18808. else
  18809. HAVE_BASENAME_TRUE='#'
  18810. HAVE_BASENAME_FALSE=
  18811. fi
  18812. fi
  18813. done
  18814. for ac_func in gai_strerror
  18815. do
  18816. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18817. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18818. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18819. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18820. echo $ECHO_N "(cached) $ECHO_C" >&6
  18821. else
  18822. cat >conftest.$ac_ext <<_ACEOF
  18823. /* confdefs.h. */
  18824. _ACEOF
  18825. cat confdefs.h >>conftest.$ac_ext
  18826. cat >>conftest.$ac_ext <<_ACEOF
  18827. /* end confdefs.h. */
  18828. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18829. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18830. #define $ac_func innocuous_$ac_func
  18831. /* System header to define __stub macros and hopefully few prototypes,
  18832. which can conflict with char $ac_func (); below.
  18833. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18834. <limits.h> exists even on freestanding compilers. */
  18835. #ifdef __STDC__
  18836. # include <limits.h>
  18837. #else
  18838. # include <assert.h>
  18839. #endif
  18840. #undef $ac_func
  18841. /* Override any GCC internal prototype to avoid an error.
  18842. Use char because int might match the return type of a GCC
  18843. builtin and then its argument prototype would still apply. */
  18844. #ifdef __cplusplus
  18845. extern "C"
  18846. #endif
  18847. char $ac_func ();
  18848. /* The GNU C library defines this for functions which it implements
  18849. to always fail with ENOSYS. Some functions are actually named
  18850. something starting with __ and the normal name is an alias. */
  18851. #if defined __stub_$ac_func || defined __stub___$ac_func
  18852. choke me
  18853. #endif
  18854. int
  18855. main ()
  18856. {
  18857. return $ac_func ();
  18858. ;
  18859. return 0;
  18860. }
  18861. _ACEOF
  18862. rm -f conftest.$ac_objext conftest$ac_exeext
  18863. if { (ac_try="$ac_link"
  18864. case "(($ac_try" in
  18865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18866. *) ac_try_echo=$ac_try;;
  18867. esac
  18868. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18869. (eval "$ac_link") 2>conftest.er1
  18870. ac_status=$?
  18871. grep -v '^ *+' conftest.er1 >conftest.err
  18872. rm -f conftest.er1
  18873. cat conftest.err >&5
  18874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18875. (exit $ac_status); } && {
  18876. test -z "$ac_cxx_werror_flag" ||
  18877. test ! -s conftest.err
  18878. } && test -s conftest$ac_exeext &&
  18879. $as_test_x conftest$ac_exeext; then
  18880. eval "$as_ac_var=yes"
  18881. else
  18882. echo "$as_me: failed program was:" >&5
  18883. sed 's/^/| /' conftest.$ac_ext >&5
  18884. eval "$as_ac_var=no"
  18885. fi
  18886. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18887. conftest$ac_exeext conftest.$ac_ext
  18888. fi
  18889. ac_res=`eval echo '${'$as_ac_var'}'`
  18890. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18891. echo "${ECHO_T}$ac_res" >&6; }
  18892. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18893. cat >>confdefs.h <<_ACEOF
  18894. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18895. _ACEOF
  18896. if true; then
  18897. HAVE_GAI_STRERROR_TRUE=
  18898. HAVE_GAI_STRERROR_FALSE='#'
  18899. else
  18900. HAVE_GAI_STRERROR_TRUE='#'
  18901. HAVE_GAI_STRERROR_FALSE=
  18902. fi
  18903. else
  18904. if false; then
  18905. HAVE_GAI_STRERROR_TRUE=
  18906. HAVE_GAI_STRERROR_FALSE='#'
  18907. else
  18908. HAVE_GAI_STRERROR_TRUE='#'
  18909. HAVE_GAI_STRERROR_FALSE=
  18910. fi
  18911. fi
  18912. done
  18913. for ac_func in getaddrinfo
  18914. do
  18915. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18916. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18917. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18918. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18919. echo $ECHO_N "(cached) $ECHO_C" >&6
  18920. else
  18921. cat >conftest.$ac_ext <<_ACEOF
  18922. /* confdefs.h. */
  18923. _ACEOF
  18924. cat confdefs.h >>conftest.$ac_ext
  18925. cat >>conftest.$ac_ext <<_ACEOF
  18926. /* end confdefs.h. */
  18927. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18928. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18929. #define $ac_func innocuous_$ac_func
  18930. /* System header to define __stub macros and hopefully few prototypes,
  18931. which can conflict with char $ac_func (); below.
  18932. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18933. <limits.h> exists even on freestanding compilers. */
  18934. #ifdef __STDC__
  18935. # include <limits.h>
  18936. #else
  18937. # include <assert.h>
  18938. #endif
  18939. #undef $ac_func
  18940. /* Override any GCC internal prototype to avoid an error.
  18941. Use char because int might match the return type of a GCC
  18942. builtin and then its argument prototype would still apply. */
  18943. #ifdef __cplusplus
  18944. extern "C"
  18945. #endif
  18946. char $ac_func ();
  18947. /* The GNU C library defines this for functions which it implements
  18948. to always fail with ENOSYS. Some functions are actually named
  18949. something starting with __ and the normal name is an alias. */
  18950. #if defined __stub_$ac_func || defined __stub___$ac_func
  18951. choke me
  18952. #endif
  18953. int
  18954. main ()
  18955. {
  18956. return $ac_func ();
  18957. ;
  18958. return 0;
  18959. }
  18960. _ACEOF
  18961. rm -f conftest.$ac_objext conftest$ac_exeext
  18962. if { (ac_try="$ac_link"
  18963. case "(($ac_try" in
  18964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18965. *) ac_try_echo=$ac_try;;
  18966. esac
  18967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18968. (eval "$ac_link") 2>conftest.er1
  18969. ac_status=$?
  18970. grep -v '^ *+' conftest.er1 >conftest.err
  18971. rm -f conftest.er1
  18972. cat conftest.err >&5
  18973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18974. (exit $ac_status); } && {
  18975. test -z "$ac_cxx_werror_flag" ||
  18976. test ! -s conftest.err
  18977. } && test -s conftest$ac_exeext &&
  18978. $as_test_x conftest$ac_exeext; then
  18979. eval "$as_ac_var=yes"
  18980. else
  18981. echo "$as_me: failed program was:" >&5
  18982. sed 's/^/| /' conftest.$ac_ext >&5
  18983. eval "$as_ac_var=no"
  18984. fi
  18985. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18986. conftest$ac_exeext conftest.$ac_ext
  18987. fi
  18988. ac_res=`eval echo '${'$as_ac_var'}'`
  18989. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18990. echo "${ECHO_T}$ac_res" >&6; }
  18991. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18992. cat >>confdefs.h <<_ACEOF
  18993. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18994. _ACEOF
  18995. if true; then
  18996. HAVE_GETADDRINFO_TRUE=
  18997. HAVE_GETADDRINFO_FALSE='#'
  18998. else
  18999. HAVE_GETADDRINFO_TRUE='#'
  19000. HAVE_GETADDRINFO_FALSE=
  19001. fi
  19002. else
  19003. if false; then
  19004. HAVE_GETADDRINFO_TRUE=
  19005. HAVE_GETADDRINFO_FALSE='#'
  19006. else
  19007. HAVE_GETADDRINFO_TRUE='#'
  19008. HAVE_GETADDRINFO_FALSE=
  19009. fi
  19010. fi
  19011. done
  19012. for ac_func in gettimeofday
  19013. do
  19014. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19015. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19016. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19017. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19018. echo $ECHO_N "(cached) $ECHO_C" >&6
  19019. else
  19020. cat >conftest.$ac_ext <<_ACEOF
  19021. /* confdefs.h. */
  19022. _ACEOF
  19023. cat confdefs.h >>conftest.$ac_ext
  19024. cat >>conftest.$ac_ext <<_ACEOF
  19025. /* end confdefs.h. */
  19026. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19027. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19028. #define $ac_func innocuous_$ac_func
  19029. /* System header to define __stub macros and hopefully few prototypes,
  19030. which can conflict with char $ac_func (); below.
  19031. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19032. <limits.h> exists even on freestanding compilers. */
  19033. #ifdef __STDC__
  19034. # include <limits.h>
  19035. #else
  19036. # include <assert.h>
  19037. #endif
  19038. #undef $ac_func
  19039. /* Override any GCC internal prototype to avoid an error.
  19040. Use char because int might match the return type of a GCC
  19041. builtin and then its argument prototype would still apply. */
  19042. #ifdef __cplusplus
  19043. extern "C"
  19044. #endif
  19045. char $ac_func ();
  19046. /* The GNU C library defines this for functions which it implements
  19047. to always fail with ENOSYS. Some functions are actually named
  19048. something starting with __ and the normal name is an alias. */
  19049. #if defined __stub_$ac_func || defined __stub___$ac_func
  19050. choke me
  19051. #endif
  19052. int
  19053. main ()
  19054. {
  19055. return $ac_func ();
  19056. ;
  19057. return 0;
  19058. }
  19059. _ACEOF
  19060. rm -f conftest.$ac_objext conftest$ac_exeext
  19061. if { (ac_try="$ac_link"
  19062. case "(($ac_try" in
  19063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19064. *) ac_try_echo=$ac_try;;
  19065. esac
  19066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19067. (eval "$ac_link") 2>conftest.er1
  19068. ac_status=$?
  19069. grep -v '^ *+' conftest.er1 >conftest.err
  19070. rm -f conftest.er1
  19071. cat conftest.err >&5
  19072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19073. (exit $ac_status); } && {
  19074. test -z "$ac_cxx_werror_flag" ||
  19075. test ! -s conftest.err
  19076. } && test -s conftest$ac_exeext &&
  19077. $as_test_x conftest$ac_exeext; then
  19078. eval "$as_ac_var=yes"
  19079. else
  19080. echo "$as_me: failed program was:" >&5
  19081. sed 's/^/| /' conftest.$ac_ext >&5
  19082. eval "$as_ac_var=no"
  19083. fi
  19084. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19085. conftest$ac_exeext conftest.$ac_ext
  19086. fi
  19087. ac_res=`eval echo '${'$as_ac_var'}'`
  19088. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19089. echo "${ECHO_T}$ac_res" >&6; }
  19090. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19091. cat >>confdefs.h <<_ACEOF
  19092. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19093. _ACEOF
  19094. if true; then
  19095. HAVE_GETTIMEOFDAY_TRUE=
  19096. HAVE_GETTIMEOFDAY_FALSE='#'
  19097. else
  19098. HAVE_GETTIMEOFDAY_TRUE='#'
  19099. HAVE_GETTIMEOFDAY_FALSE=
  19100. fi
  19101. else
  19102. if false; then
  19103. HAVE_GETTIMEOFDAY_TRUE=
  19104. HAVE_GETTIMEOFDAY_FALSE='#'
  19105. else
  19106. HAVE_GETTIMEOFDAY_TRUE='#'
  19107. HAVE_GETTIMEOFDAY_FALSE=
  19108. fi
  19109. fi
  19110. done
  19111. for ac_func in inet_aton
  19112. do
  19113. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19114. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19115. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19116. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19117. echo $ECHO_N "(cached) $ECHO_C" >&6
  19118. else
  19119. cat >conftest.$ac_ext <<_ACEOF
  19120. /* confdefs.h. */
  19121. _ACEOF
  19122. cat confdefs.h >>conftest.$ac_ext
  19123. cat >>conftest.$ac_ext <<_ACEOF
  19124. /* end confdefs.h. */
  19125. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19126. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19127. #define $ac_func innocuous_$ac_func
  19128. /* System header to define __stub macros and hopefully few prototypes,
  19129. which can conflict with char $ac_func (); below.
  19130. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19131. <limits.h> exists even on freestanding compilers. */
  19132. #ifdef __STDC__
  19133. # include <limits.h>
  19134. #else
  19135. # include <assert.h>
  19136. #endif
  19137. #undef $ac_func
  19138. /* Override any GCC internal prototype to avoid an error.
  19139. Use char because int might match the return type of a GCC
  19140. builtin and then its argument prototype would still apply. */
  19141. #ifdef __cplusplus
  19142. extern "C"
  19143. #endif
  19144. char $ac_func ();
  19145. /* The GNU C library defines this for functions which it implements
  19146. to always fail with ENOSYS. Some functions are actually named
  19147. something starting with __ and the normal name is an alias. */
  19148. #if defined __stub_$ac_func || defined __stub___$ac_func
  19149. choke me
  19150. #endif
  19151. int
  19152. main ()
  19153. {
  19154. return $ac_func ();
  19155. ;
  19156. return 0;
  19157. }
  19158. _ACEOF
  19159. rm -f conftest.$ac_objext conftest$ac_exeext
  19160. if { (ac_try="$ac_link"
  19161. case "(($ac_try" in
  19162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19163. *) ac_try_echo=$ac_try;;
  19164. esac
  19165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19166. (eval "$ac_link") 2>conftest.er1
  19167. ac_status=$?
  19168. grep -v '^ *+' conftest.er1 >conftest.err
  19169. rm -f conftest.er1
  19170. cat conftest.err >&5
  19171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19172. (exit $ac_status); } && {
  19173. test -z "$ac_cxx_werror_flag" ||
  19174. test ! -s conftest.err
  19175. } && test -s conftest$ac_exeext &&
  19176. $as_test_x conftest$ac_exeext; then
  19177. eval "$as_ac_var=yes"
  19178. else
  19179. echo "$as_me: failed program was:" >&5
  19180. sed 's/^/| /' conftest.$ac_ext >&5
  19181. eval "$as_ac_var=no"
  19182. fi
  19183. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19184. conftest$ac_exeext conftest.$ac_ext
  19185. fi
  19186. ac_res=`eval echo '${'$as_ac_var'}'`
  19187. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19188. echo "${ECHO_T}$ac_res" >&6; }
  19189. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19190. cat >>confdefs.h <<_ACEOF
  19191. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19192. _ACEOF
  19193. if true; then
  19194. HAVE_INET_ATON_TRUE=
  19195. HAVE_INET_ATON_FALSE='#'
  19196. else
  19197. HAVE_INET_ATON_TRUE='#'
  19198. HAVE_INET_ATON_FALSE=
  19199. fi
  19200. else
  19201. if false; then
  19202. HAVE_INET_ATON_TRUE=
  19203. HAVE_INET_ATON_FALSE='#'
  19204. else
  19205. HAVE_INET_ATON_TRUE='#'
  19206. HAVE_INET_ATON_FALSE=
  19207. fi
  19208. fi
  19209. done
  19210. for ac_func in localtime_r
  19211. do
  19212. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19213. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19214. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19215. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19216. echo $ECHO_N "(cached) $ECHO_C" >&6
  19217. else
  19218. cat >conftest.$ac_ext <<_ACEOF
  19219. /* confdefs.h. */
  19220. _ACEOF
  19221. cat confdefs.h >>conftest.$ac_ext
  19222. cat >>conftest.$ac_ext <<_ACEOF
  19223. /* end confdefs.h. */
  19224. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19225. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19226. #define $ac_func innocuous_$ac_func
  19227. /* System header to define __stub macros and hopefully few prototypes,
  19228. which can conflict with char $ac_func (); below.
  19229. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19230. <limits.h> exists even on freestanding compilers. */
  19231. #ifdef __STDC__
  19232. # include <limits.h>
  19233. #else
  19234. # include <assert.h>
  19235. #endif
  19236. #undef $ac_func
  19237. /* Override any GCC internal prototype to avoid an error.
  19238. Use char because int might match the return type of a GCC
  19239. builtin and then its argument prototype would still apply. */
  19240. #ifdef __cplusplus
  19241. extern "C"
  19242. #endif
  19243. char $ac_func ();
  19244. /* The GNU C library defines this for functions which it implements
  19245. to always fail with ENOSYS. Some functions are actually named
  19246. something starting with __ and the normal name is an alias. */
  19247. #if defined __stub_$ac_func || defined __stub___$ac_func
  19248. choke me
  19249. #endif
  19250. int
  19251. main ()
  19252. {
  19253. return $ac_func ();
  19254. ;
  19255. return 0;
  19256. }
  19257. _ACEOF
  19258. rm -f conftest.$ac_objext conftest$ac_exeext
  19259. if { (ac_try="$ac_link"
  19260. case "(($ac_try" in
  19261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19262. *) ac_try_echo=$ac_try;;
  19263. esac
  19264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19265. (eval "$ac_link") 2>conftest.er1
  19266. ac_status=$?
  19267. grep -v '^ *+' conftest.er1 >conftest.err
  19268. rm -f conftest.er1
  19269. cat conftest.err >&5
  19270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19271. (exit $ac_status); } && {
  19272. test -z "$ac_cxx_werror_flag" ||
  19273. test ! -s conftest.err
  19274. } && test -s conftest$ac_exeext &&
  19275. $as_test_x conftest$ac_exeext; then
  19276. eval "$as_ac_var=yes"
  19277. else
  19278. echo "$as_me: failed program was:" >&5
  19279. sed 's/^/| /' conftest.$ac_ext >&5
  19280. eval "$as_ac_var=no"
  19281. fi
  19282. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19283. conftest$ac_exeext conftest.$ac_ext
  19284. fi
  19285. ac_res=`eval echo '${'$as_ac_var'}'`
  19286. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19287. echo "${ECHO_T}$ac_res" >&6; }
  19288. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19289. cat >>confdefs.h <<_ACEOF
  19290. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19291. _ACEOF
  19292. if true; then
  19293. HAVE_LOCALTIME_R_TRUE=
  19294. HAVE_LOCALTIME_R_FALSE='#'
  19295. else
  19296. HAVE_LOCALTIME_R_TRUE='#'
  19297. HAVE_LOCALTIME_R_FALSE=
  19298. fi
  19299. else
  19300. if false; then
  19301. HAVE_LOCALTIME_R_TRUE=
  19302. HAVE_LOCALTIME_R_FALSE='#'
  19303. else
  19304. HAVE_LOCALTIME_R_TRUE='#'
  19305. HAVE_LOCALTIME_R_FALSE=
  19306. fi
  19307. fi
  19308. done
  19309. for ac_func in strptime
  19310. do
  19311. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19312. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19313. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19314. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19315. echo $ECHO_N "(cached) $ECHO_C" >&6
  19316. else
  19317. cat >conftest.$ac_ext <<_ACEOF
  19318. /* confdefs.h. */
  19319. _ACEOF
  19320. cat confdefs.h >>conftest.$ac_ext
  19321. cat >>conftest.$ac_ext <<_ACEOF
  19322. /* end confdefs.h. */
  19323. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19324. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19325. #define $ac_func innocuous_$ac_func
  19326. /* System header to define __stub macros and hopefully few prototypes,
  19327. which can conflict with char $ac_func (); below.
  19328. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19329. <limits.h> exists even on freestanding compilers. */
  19330. #ifdef __STDC__
  19331. # include <limits.h>
  19332. #else
  19333. # include <assert.h>
  19334. #endif
  19335. #undef $ac_func
  19336. /* Override any GCC internal prototype to avoid an error.
  19337. Use char because int might match the return type of a GCC
  19338. builtin and then its argument prototype would still apply. */
  19339. #ifdef __cplusplus
  19340. extern "C"
  19341. #endif
  19342. char $ac_func ();
  19343. /* The GNU C library defines this for functions which it implements
  19344. to always fail with ENOSYS. Some functions are actually named
  19345. something starting with __ and the normal name is an alias. */
  19346. #if defined __stub_$ac_func || defined __stub___$ac_func
  19347. choke me
  19348. #endif
  19349. int
  19350. main ()
  19351. {
  19352. return $ac_func ();
  19353. ;
  19354. return 0;
  19355. }
  19356. _ACEOF
  19357. rm -f conftest.$ac_objext conftest$ac_exeext
  19358. if { (ac_try="$ac_link"
  19359. case "(($ac_try" in
  19360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19361. *) ac_try_echo=$ac_try;;
  19362. esac
  19363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19364. (eval "$ac_link") 2>conftest.er1
  19365. ac_status=$?
  19366. grep -v '^ *+' conftest.er1 >conftest.err
  19367. rm -f conftest.er1
  19368. cat conftest.err >&5
  19369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19370. (exit $ac_status); } && {
  19371. test -z "$ac_cxx_werror_flag" ||
  19372. test ! -s conftest.err
  19373. } && test -s conftest$ac_exeext &&
  19374. $as_test_x conftest$ac_exeext; then
  19375. eval "$as_ac_var=yes"
  19376. else
  19377. echo "$as_me: failed program was:" >&5
  19378. sed 's/^/| /' conftest.$ac_ext >&5
  19379. eval "$as_ac_var=no"
  19380. fi
  19381. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19382. conftest$ac_exeext conftest.$ac_ext
  19383. fi
  19384. ac_res=`eval echo '${'$as_ac_var'}'`
  19385. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19386. echo "${ECHO_T}$ac_res" >&6; }
  19387. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19388. cat >>confdefs.h <<_ACEOF
  19389. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19390. _ACEOF
  19391. if true; then
  19392. HAVE_STRPTIME_TRUE=
  19393. HAVE_STRPTIME_FALSE='#'
  19394. else
  19395. HAVE_STRPTIME_TRUE='#'
  19396. HAVE_STRPTIME_FALSE=
  19397. fi
  19398. else
  19399. if false; then
  19400. HAVE_STRPTIME_TRUE=
  19401. HAVE_STRPTIME_FALSE='#'
  19402. else
  19403. HAVE_STRPTIME_TRUE='#'
  19404. HAVE_STRPTIME_FALSE=
  19405. fi
  19406. fi
  19407. done
  19408. for ac_func in timegm
  19409. do
  19410. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19411. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19412. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19413. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19414. echo $ECHO_N "(cached) $ECHO_C" >&6
  19415. else
  19416. cat >conftest.$ac_ext <<_ACEOF
  19417. /* confdefs.h. */
  19418. _ACEOF
  19419. cat confdefs.h >>conftest.$ac_ext
  19420. cat >>conftest.$ac_ext <<_ACEOF
  19421. /* end confdefs.h. */
  19422. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19423. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19424. #define $ac_func innocuous_$ac_func
  19425. /* System header to define __stub macros and hopefully few prototypes,
  19426. which can conflict with char $ac_func (); below.
  19427. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19428. <limits.h> exists even on freestanding compilers. */
  19429. #ifdef __STDC__
  19430. # include <limits.h>
  19431. #else
  19432. # include <assert.h>
  19433. #endif
  19434. #undef $ac_func
  19435. /* Override any GCC internal prototype to avoid an error.
  19436. Use char because int might match the return type of a GCC
  19437. builtin and then its argument prototype would still apply. */
  19438. #ifdef __cplusplus
  19439. extern "C"
  19440. #endif
  19441. char $ac_func ();
  19442. /* The GNU C library defines this for functions which it implements
  19443. to always fail with ENOSYS. Some functions are actually named
  19444. something starting with __ and the normal name is an alias. */
  19445. #if defined __stub_$ac_func || defined __stub___$ac_func
  19446. choke me
  19447. #endif
  19448. int
  19449. main ()
  19450. {
  19451. return $ac_func ();
  19452. ;
  19453. return 0;
  19454. }
  19455. _ACEOF
  19456. rm -f conftest.$ac_objext conftest$ac_exeext
  19457. if { (ac_try="$ac_link"
  19458. case "(($ac_try" in
  19459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19460. *) ac_try_echo=$ac_try;;
  19461. esac
  19462. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19463. (eval "$ac_link") 2>conftest.er1
  19464. ac_status=$?
  19465. grep -v '^ *+' conftest.er1 >conftest.err
  19466. rm -f conftest.er1
  19467. cat conftest.err >&5
  19468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19469. (exit $ac_status); } && {
  19470. test -z "$ac_cxx_werror_flag" ||
  19471. test ! -s conftest.err
  19472. } && test -s conftest$ac_exeext &&
  19473. $as_test_x conftest$ac_exeext; then
  19474. eval "$as_ac_var=yes"
  19475. else
  19476. echo "$as_me: failed program was:" >&5
  19477. sed 's/^/| /' conftest.$ac_ext >&5
  19478. eval "$as_ac_var=no"
  19479. fi
  19480. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19481. conftest$ac_exeext conftest.$ac_ext
  19482. fi
  19483. ac_res=`eval echo '${'$as_ac_var'}'`
  19484. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19485. echo "${ECHO_T}$ac_res" >&6; }
  19486. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19487. cat >>confdefs.h <<_ACEOF
  19488. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19489. _ACEOF
  19490. if true; then
  19491. HAVE_TIMEGM_TRUE=
  19492. HAVE_TIMEGM_FALSE='#'
  19493. else
  19494. HAVE_TIMEGM_TRUE='#'
  19495. HAVE_TIMEGM_FALSE=
  19496. fi
  19497. else
  19498. if false; then
  19499. HAVE_TIMEGM_TRUE=
  19500. HAVE_TIMEGM_FALSE='#'
  19501. else
  19502. HAVE_TIMEGM_TRUE='#'
  19503. HAVE_TIMEGM_FALSE=
  19504. fi
  19505. fi
  19506. done
  19507. case "$target" in
  19508. *mingw*)
  19509. if true; then
  19510. HAVE_GETADDRINFO_TRUE=
  19511. HAVE_GETADDRINFO_FALSE='#'
  19512. else
  19513. HAVE_GETADDRINFO_TRUE='#'
  19514. HAVE_GETADDRINFO_FALSE=
  19515. fi
  19516. if false; then
  19517. HAVE_GAI_STRERROR_TRUE=
  19518. HAVE_GAI_STRERROR_FALSE='#'
  19519. else
  19520. HAVE_GAI_STRERROR_TRUE='#'
  19521. HAVE_GAI_STRERROR_FALSE=
  19522. fi
  19523. ;;
  19524. esac
  19525. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19526. cat >confcache <<\_ACEOF
  19527. # This file is a shell script that caches the results of configure
  19528. # tests run on this system so they can be shared between configure
  19529. # scripts and configure runs, see configure's option --config-cache.
  19530. # It is not useful on other systems. If it contains results you don't
  19531. # want to keep, you may remove or edit it.
  19532. #
  19533. # config.status only pays attention to the cache file if you give it
  19534. # the --recheck option to rerun configure.
  19535. #
  19536. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19537. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19538. # following values.
  19539. _ACEOF
  19540. # The following way of writing the cache mishandles newlines in values,
  19541. # but we know of no workaround that is simple, portable, and efficient.
  19542. # So, we kill variables containing newlines.
  19543. # Ultrix sh set writes to stderr and can't be redirected directly,
  19544. # and sets the high bit in the cache file unless we assign to the vars.
  19545. (
  19546. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19547. eval ac_val=\$$ac_var
  19548. case $ac_val in #(
  19549. *${as_nl}*)
  19550. case $ac_var in #(
  19551. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19552. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19553. esac
  19554. case $ac_var in #(
  19555. _ | IFS | as_nl) ;; #(
  19556. *) $as_unset $ac_var ;;
  19557. esac ;;
  19558. esac
  19559. done
  19560. (set) 2>&1 |
  19561. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19562. *${as_nl}ac_space=\ *)
  19563. # `set' does not quote correctly, so add quotes (double-quote
  19564. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19565. sed -n \
  19566. "s/'/'\\\\''/g;
  19567. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19568. ;; #(
  19569. *)
  19570. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19571. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19572. ;;
  19573. esac |
  19574. sort
  19575. ) |
  19576. sed '
  19577. /^ac_cv_env_/b end
  19578. t clear
  19579. :clear
  19580. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19581. t end
  19582. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19583. :end' >>confcache
  19584. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19585. if test -w "$cache_file"; then
  19586. test "x$cache_file" != "x/dev/null" &&
  19587. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19588. echo "$as_me: updating cache $cache_file" >&6;}
  19589. cat confcache >$cache_file
  19590. else
  19591. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19592. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19593. fi
  19594. fi
  19595. rm -f confcache
  19596. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19597. # Let make expand exec_prefix.
  19598. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19599. DEFS=-DHAVE_CONFIG_H
  19600. ac_libobjs=
  19601. ac_ltlibobjs=
  19602. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19603. # 1. Remove the extension, and $U if already installed.
  19604. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19605. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19606. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19607. # will be set to the directory where LIBOBJS objects are built.
  19608. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19609. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19610. done
  19611. LIBOBJS=$ac_libobjs
  19612. LTLIBOBJS=$ac_ltlibobjs
  19613. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19614. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19615. Usually this means the macro was only invoked conditionally." >&5
  19616. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19617. Usually this means the macro was only invoked conditionally." >&2;}
  19618. { (exit 1); exit 1; }; }
  19619. fi
  19620. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19621. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19622. Usually this means the macro was only invoked conditionally." >&5
  19623. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19624. Usually this means the macro was only invoked conditionally." >&2;}
  19625. { (exit 1); exit 1; }; }
  19626. fi
  19627. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19628. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19629. Usually this means the macro was only invoked conditionally." >&5
  19630. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19631. Usually this means the macro was only invoked conditionally." >&2;}
  19632. { (exit 1); exit 1; }; }
  19633. fi
  19634. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19635. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19636. Usually this means the macro was only invoked conditionally." >&5
  19637. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19638. Usually this means the macro was only invoked conditionally." >&2;}
  19639. { (exit 1); exit 1; }; }
  19640. fi
  19641. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19642. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19643. Usually this means the macro was only invoked conditionally." >&5
  19644. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19645. Usually this means the macro was only invoked conditionally." >&2;}
  19646. { (exit 1); exit 1; }; }
  19647. fi
  19648. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  19649. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19650. Usually this means the macro was only invoked conditionally." >&5
  19651. echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19652. Usually this means the macro was only invoked conditionally." >&2;}
  19653. { (exit 1); exit 1; }; }
  19654. fi
  19655. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  19656. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  19657. Usually this means the macro was only invoked conditionally." >&5
  19658. echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  19659. Usually this means the macro was only invoked conditionally." >&2;}
  19660. { (exit 1); exit 1; }; }
  19661. fi
  19662. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19663. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19664. Usually this means the macro was only invoked conditionally." >&5
  19665. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19666. Usually this means the macro was only invoked conditionally." >&2;}
  19667. { (exit 1); exit 1; }; }
  19668. fi
  19669. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19670. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19671. Usually this means the macro was only invoked conditionally." >&5
  19672. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19673. Usually this means the macro was only invoked conditionally." >&2;}
  19674. { (exit 1); exit 1; }; }
  19675. fi
  19676. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19677. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19678. Usually this means the macro was only invoked conditionally." >&5
  19679. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19680. Usually this means the macro was only invoked conditionally." >&2;}
  19681. { (exit 1); exit 1; }; }
  19682. fi
  19683. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19684. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19685. Usually this means the macro was only invoked conditionally." >&5
  19686. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19687. Usually this means the macro was only invoked conditionally." >&2;}
  19688. { (exit 1); exit 1; }; }
  19689. fi
  19690. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19691. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19692. Usually this means the macro was only invoked conditionally." >&5
  19693. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19694. Usually this means the macro was only invoked conditionally." >&2;}
  19695. { (exit 1); exit 1; }; }
  19696. fi
  19697. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19698. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19699. Usually this means the macro was only invoked conditionally." >&5
  19700. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19701. Usually this means the macro was only invoked conditionally." >&2;}
  19702. { (exit 1); exit 1; }; }
  19703. fi
  19704. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19705. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19706. Usually this means the macro was only invoked conditionally." >&5
  19707. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19708. Usually this means the macro was only invoked conditionally." >&2;}
  19709. { (exit 1); exit 1; }; }
  19710. fi
  19711. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19712. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19713. Usually this means the macro was only invoked conditionally." >&5
  19714. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19715. Usually this means the macro was only invoked conditionally." >&2;}
  19716. { (exit 1); exit 1; }; }
  19717. fi
  19718. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19719. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19720. Usually this means the macro was only invoked conditionally." >&5
  19721. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19722. Usually this means the macro was only invoked conditionally." >&2;}
  19723. { (exit 1); exit 1; }; }
  19724. fi
  19725. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19726. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19727. Usually this means the macro was only invoked conditionally." >&5
  19728. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19729. Usually this means the macro was only invoked conditionally." >&2;}
  19730. { (exit 1); exit 1; }; }
  19731. fi
  19732. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19733. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19734. Usually this means the macro was only invoked conditionally." >&5
  19735. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19736. Usually this means the macro was only invoked conditionally." >&2;}
  19737. { (exit 1); exit 1; }; }
  19738. fi
  19739. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19740. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19741. Usually this means the macro was only invoked conditionally." >&5
  19742. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19743. Usually this means the macro was only invoked conditionally." >&2;}
  19744. { (exit 1); exit 1; }; }
  19745. fi
  19746. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  19747. { { echo "$as_me:$LINENO: error: conditional \"HAVE_EPOLL\" was never defined.
  19748. Usually this means the macro was only invoked conditionally." >&5
  19749. echo "$as_me: error: conditional \"HAVE_EPOLL\" was never defined.
  19750. Usually this means the macro was only invoked conditionally." >&2;}
  19751. { (exit 1); exit 1; }; }
  19752. fi
  19753. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19754. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19755. Usually this means the macro was only invoked conditionally." >&5
  19756. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19757. Usually this means the macro was only invoked conditionally." >&2;}
  19758. { (exit 1); exit 1; }; }
  19759. fi
  19760. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19761. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19762. Usually this means the macro was only invoked conditionally." >&5
  19763. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19764. Usually this means the macro was only invoked conditionally." >&2;}
  19765. { (exit 1); exit 1; }; }
  19766. fi
  19767. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19768. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19769. Usually this means the macro was only invoked conditionally." >&5
  19770. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19771. Usually this means the macro was only invoked conditionally." >&2;}
  19772. { (exit 1); exit 1; }; }
  19773. fi
  19774. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19775. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19776. Usually this means the macro was only invoked conditionally." >&5
  19777. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19778. Usually this means the macro was only invoked conditionally." >&2;}
  19779. { (exit 1); exit 1; }; }
  19780. fi
  19781. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19782. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19783. Usually this means the macro was only invoked conditionally." >&5
  19784. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19785. Usually this means the macro was only invoked conditionally." >&2;}
  19786. { (exit 1); exit 1; }; }
  19787. fi
  19788. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19789. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19790. Usually this means the macro was only invoked conditionally." >&5
  19791. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19792. Usually this means the macro was only invoked conditionally." >&2;}
  19793. { (exit 1); exit 1; }; }
  19794. fi
  19795. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19796. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19797. Usually this means the macro was only invoked conditionally." >&5
  19798. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19799. Usually this means the macro was only invoked conditionally." >&2;}
  19800. { (exit 1); exit 1; }; }
  19801. fi
  19802. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19803. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19804. Usually this means the macro was only invoked conditionally." >&5
  19805. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19806. Usually this means the macro was only invoked conditionally." >&2;}
  19807. { (exit 1); exit 1; }; }
  19808. fi
  19809. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19810. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19811. Usually this means the macro was only invoked conditionally." >&5
  19812. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19813. Usually this means the macro was only invoked conditionally." >&2;}
  19814. { (exit 1); exit 1; }; }
  19815. fi
  19816. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19817. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19818. Usually this means the macro was only invoked conditionally." >&5
  19819. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19820. Usually this means the macro was only invoked conditionally." >&2;}
  19821. { (exit 1); exit 1; }; }
  19822. fi
  19823. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19824. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19825. Usually this means the macro was only invoked conditionally." >&5
  19826. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19827. Usually this means the macro was only invoked conditionally." >&2;}
  19828. { (exit 1); exit 1; }; }
  19829. fi
  19830. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19831. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19832. Usually this means the macro was only invoked conditionally." >&5
  19833. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19834. Usually this means the macro was only invoked conditionally." >&2;}
  19835. { (exit 1); exit 1; }; }
  19836. fi
  19837. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19838. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19839. Usually this means the macro was only invoked conditionally." >&5
  19840. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19841. Usually this means the macro was only invoked conditionally." >&2;}
  19842. { (exit 1); exit 1; }; }
  19843. fi
  19844. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19845. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19846. Usually this means the macro was only invoked conditionally." >&5
  19847. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19848. Usually this means the macro was only invoked conditionally." >&2;}
  19849. { (exit 1); exit 1; }; }
  19850. fi
  19851. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19852. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19853. Usually this means the macro was only invoked conditionally." >&5
  19854. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19855. Usually this means the macro was only invoked conditionally." >&2;}
  19856. { (exit 1); exit 1; }; }
  19857. fi
  19858. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19859. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19860. Usually this means the macro was only invoked conditionally." >&5
  19861. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19862. Usually this means the macro was only invoked conditionally." >&2;}
  19863. { (exit 1); exit 1; }; }
  19864. fi
  19865. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19866. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19867. Usually this means the macro was only invoked conditionally." >&5
  19868. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19869. Usually this means the macro was only invoked conditionally." >&2;}
  19870. { (exit 1); exit 1; }; }
  19871. fi
  19872. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19873. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19874. Usually this means the macro was only invoked conditionally." >&5
  19875. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19876. Usually this means the macro was only invoked conditionally." >&2;}
  19877. { (exit 1); exit 1; }; }
  19878. fi
  19879. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19880. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19881. Usually this means the macro was only invoked conditionally." >&5
  19882. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19883. Usually this means the macro was only invoked conditionally." >&2;}
  19884. { (exit 1); exit 1; }; }
  19885. fi
  19886. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19887. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19888. Usually this means the macro was only invoked conditionally." >&5
  19889. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19890. Usually this means the macro was only invoked conditionally." >&2;}
  19891. { (exit 1); exit 1; }; }
  19892. fi
  19893. : ${CONFIG_STATUS=./config.status}
  19894. ac_clean_files_save=$ac_clean_files
  19895. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19896. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19897. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19898. cat >$CONFIG_STATUS <<_ACEOF
  19899. #! $SHELL
  19900. # Generated by $as_me.
  19901. # Run this file to recreate the current configuration.
  19902. # Compiler output produced by configure, useful for debugging
  19903. # configure, is in config.log if it exists.
  19904. debug=false
  19905. ac_cs_recheck=false
  19906. ac_cs_silent=false
  19907. SHELL=\${CONFIG_SHELL-$SHELL}
  19908. _ACEOF
  19909. cat >>$CONFIG_STATUS <<\_ACEOF
  19910. ## --------------------- ##
  19911. ## M4sh Initialization. ##
  19912. ## --------------------- ##
  19913. # Be more Bourne compatible
  19914. DUALCASE=1; export DUALCASE # for MKS sh
  19915. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19916. emulate sh
  19917. NULLCMD=:
  19918. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19919. # is contrary to our usage. Disable this feature.
  19920. alias -g '${1+"$@"}'='"$@"'
  19921. setopt NO_GLOB_SUBST
  19922. else
  19923. case `(set -o) 2>/dev/null` in
  19924. *posix*) set -o posix ;;
  19925. esac
  19926. fi
  19927. # PATH needs CR
  19928. # Avoid depending upon Character Ranges.
  19929. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19930. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19931. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19932. as_cr_digits='0123456789'
  19933. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19934. # The user is always right.
  19935. if test "${PATH_SEPARATOR+set}" != set; then
  19936. echo "#! /bin/sh" >conf$$.sh
  19937. echo "exit 0" >>conf$$.sh
  19938. chmod +x conf$$.sh
  19939. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19940. PATH_SEPARATOR=';'
  19941. else
  19942. PATH_SEPARATOR=:
  19943. fi
  19944. rm -f conf$$.sh
  19945. fi
  19946. # Support unset when possible.
  19947. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19948. as_unset=unset
  19949. else
  19950. as_unset=false
  19951. fi
  19952. # IFS
  19953. # We need space, tab and new line, in precisely that order. Quoting is
  19954. # there to prevent editors from complaining about space-tab.
  19955. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19956. # splitting by setting IFS to empty value.)
  19957. as_nl='
  19958. '
  19959. IFS=" "" $as_nl"
  19960. # Find who we are. Look in the path if we contain no directory separator.
  19961. case $0 in
  19962. *[\\/]* ) as_myself=$0 ;;
  19963. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19964. for as_dir in $PATH
  19965. do
  19966. IFS=$as_save_IFS
  19967. test -z "$as_dir" && as_dir=.
  19968. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19969. done
  19970. IFS=$as_save_IFS
  19971. ;;
  19972. esac
  19973. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19974. # in which case we are not to be found in the path.
  19975. if test "x$as_myself" = x; then
  19976. as_myself=$0
  19977. fi
  19978. if test ! -f "$as_myself"; then
  19979. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19980. { (exit 1); exit 1; }
  19981. fi
  19982. # Work around bugs in pre-3.0 UWIN ksh.
  19983. for as_var in ENV MAIL MAILPATH
  19984. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19985. done
  19986. PS1='$ '
  19987. PS2='> '
  19988. PS4='+ '
  19989. # NLS nuisances.
  19990. for as_var in \
  19991. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19992. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19993. LC_TELEPHONE LC_TIME
  19994. do
  19995. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19996. eval $as_var=C; export $as_var
  19997. else
  19998. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19999. fi
  20000. done
  20001. # Required to use basename.
  20002. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20003. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20004. as_expr=expr
  20005. else
  20006. as_expr=false
  20007. fi
  20008. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20009. as_basename=basename
  20010. else
  20011. as_basename=false
  20012. fi
  20013. # Name of the executable.
  20014. as_me=`$as_basename -- "$0" ||
  20015. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20016. X"$0" : 'X\(//\)$' \| \
  20017. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20018. echo X/"$0" |
  20019. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20020. s//\1/
  20021. q
  20022. }
  20023. /^X\/\(\/\/\)$/{
  20024. s//\1/
  20025. q
  20026. }
  20027. /^X\/\(\/\).*/{
  20028. s//\1/
  20029. q
  20030. }
  20031. s/.*/./; q'`
  20032. # CDPATH.
  20033. $as_unset CDPATH
  20034. as_lineno_1=$LINENO
  20035. as_lineno_2=$LINENO
  20036. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20037. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20038. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20039. # uniformly replaced by the line number. The first 'sed' inserts a
  20040. # line-number line after each line using $LINENO; the second 'sed'
  20041. # does the real work. The second script uses 'N' to pair each
  20042. # line-number line with the line containing $LINENO, and appends
  20043. # trailing '-' during substitution so that $LINENO is not a special
  20044. # case at line end.
  20045. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20046. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20047. # E. McMahon (1931-1989) for sed's syntax. :-)
  20048. sed -n '
  20049. p
  20050. /[$]LINENO/=
  20051. ' <$as_myself |
  20052. sed '
  20053. s/[$]LINENO.*/&-/
  20054. t lineno
  20055. b
  20056. :lineno
  20057. N
  20058. :loop
  20059. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20060. t loop
  20061. s/-\n.*//
  20062. ' >$as_me.lineno &&
  20063. chmod +x "$as_me.lineno" ||
  20064. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20065. { (exit 1); exit 1; }; }
  20066. # Don't try to exec as it changes $[0], causing all sort of problems
  20067. # (the dirname of $[0] is not the place where we might find the
  20068. # original and so on. Autoconf is especially sensitive to this).
  20069. . "./$as_me.lineno"
  20070. # Exit status is that of the last command.
  20071. exit
  20072. }
  20073. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20074. as_dirname=dirname
  20075. else
  20076. as_dirname=false
  20077. fi
  20078. ECHO_C= ECHO_N= ECHO_T=
  20079. case `echo -n x` in
  20080. -n*)
  20081. case `echo 'x\c'` in
  20082. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20083. *) ECHO_C='\c';;
  20084. esac;;
  20085. *)
  20086. ECHO_N='-n';;
  20087. esac
  20088. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20089. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20090. as_expr=expr
  20091. else
  20092. as_expr=false
  20093. fi
  20094. rm -f conf$$ conf$$.exe conf$$.file
  20095. if test -d conf$$.dir; then
  20096. rm -f conf$$.dir/conf$$.file
  20097. else
  20098. rm -f conf$$.dir
  20099. mkdir conf$$.dir
  20100. fi
  20101. echo >conf$$.file
  20102. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20103. as_ln_s='ln -s'
  20104. # ... but there are two gotchas:
  20105. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20106. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20107. # In both cases, we have to default to `cp -p'.
  20108. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20109. as_ln_s='cp -p'
  20110. elif ln conf$$.file conf$$ 2>/dev/null; then
  20111. as_ln_s=ln
  20112. else
  20113. as_ln_s='cp -p'
  20114. fi
  20115. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20116. rmdir conf$$.dir 2>/dev/null
  20117. if mkdir -p . 2>/dev/null; then
  20118. as_mkdir_p=:
  20119. else
  20120. test -d ./-p && rmdir ./-p
  20121. as_mkdir_p=false
  20122. fi
  20123. if test -x / >/dev/null 2>&1; then
  20124. as_test_x='test -x'
  20125. else
  20126. if ls -dL / >/dev/null 2>&1; then
  20127. as_ls_L_option=L
  20128. else
  20129. as_ls_L_option=
  20130. fi
  20131. as_test_x='
  20132. eval sh -c '\''
  20133. if test -d "$1"; then
  20134. test -d "$1/.";
  20135. else
  20136. case $1 in
  20137. -*)set "./$1";;
  20138. esac;
  20139. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  20140. ???[sx]*):;;*)false;;esac;fi
  20141. '\'' sh
  20142. '
  20143. fi
  20144. as_executable_p=$as_test_x
  20145. # Sed expression to map a string onto a valid CPP name.
  20146. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20147. # Sed expression to map a string onto a valid variable name.
  20148. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20149. exec 6>&1
  20150. # Save the log message, to keep $[0] and so on meaningful, and to
  20151. # report actual input values of CONFIG_FILES etc. instead of their
  20152. # values after options handling.
  20153. ac_log="
  20154. This file was extended by aria2 $as_me 1.2.0, which was
  20155. generated by GNU Autoconf 2.61. Invocation command line was
  20156. CONFIG_FILES = $CONFIG_FILES
  20157. CONFIG_HEADERS = $CONFIG_HEADERS
  20158. CONFIG_LINKS = $CONFIG_LINKS
  20159. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20160. $ $0 $@
  20161. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20162. "
  20163. _ACEOF
  20164. cat >>$CONFIG_STATUS <<_ACEOF
  20165. # Files that config.status was made for.
  20166. config_files="$ac_config_files"
  20167. config_headers="$ac_config_headers"
  20168. config_commands="$ac_config_commands"
  20169. _ACEOF
  20170. cat >>$CONFIG_STATUS <<\_ACEOF
  20171. ac_cs_usage="\
  20172. \`$as_me' instantiates files from templates according to the
  20173. current configuration.
  20174. Usage: $0 [OPTIONS] [FILE]...
  20175. -h, --help print this help, then exit
  20176. -V, --version print version number and configuration settings, then exit
  20177. -q, --quiet do not print progress messages
  20178. -d, --debug don't remove temporary files
  20179. --recheck update $as_me by reconfiguring in the same conditions
  20180. --file=FILE[:TEMPLATE]
  20181. instantiate the configuration file FILE
  20182. --header=FILE[:TEMPLATE]
  20183. instantiate the configuration header FILE
  20184. Configuration files:
  20185. $config_files
  20186. Configuration headers:
  20187. $config_headers
  20188. Configuration commands:
  20189. $config_commands
  20190. Report bugs to <bug-autoconf@gnu.org>."
  20191. _ACEOF
  20192. cat >>$CONFIG_STATUS <<_ACEOF
  20193. ac_cs_version="\\
  20194. aria2 config.status 1.2.0
  20195. configured by $0, generated by GNU Autoconf 2.61,
  20196. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20197. Copyright (C) 2006 Free Software Foundation, Inc.
  20198. This config.status script is free software; the Free Software Foundation
  20199. gives unlimited permission to copy, distribute and modify it."
  20200. ac_pwd='$ac_pwd'
  20201. srcdir='$srcdir'
  20202. INSTALL='$INSTALL'
  20203. MKDIR_P='$MKDIR_P'
  20204. _ACEOF
  20205. cat >>$CONFIG_STATUS <<\_ACEOF
  20206. # If no file are specified by the user, then we need to provide default
  20207. # value. By we need to know if files were specified by the user.
  20208. ac_need_defaults=:
  20209. while test $# != 0
  20210. do
  20211. case $1 in
  20212. --*=*)
  20213. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20214. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20215. ac_shift=:
  20216. ;;
  20217. *)
  20218. ac_option=$1
  20219. ac_optarg=$2
  20220. ac_shift=shift
  20221. ;;
  20222. esac
  20223. case $ac_option in
  20224. # Handling of the options.
  20225. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20226. ac_cs_recheck=: ;;
  20227. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20228. echo "$ac_cs_version"; exit ;;
  20229. --debug | --debu | --deb | --de | --d | -d )
  20230. debug=: ;;
  20231. --file | --fil | --fi | --f )
  20232. $ac_shift
  20233. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20234. ac_need_defaults=false;;
  20235. --header | --heade | --head | --hea )
  20236. $ac_shift
  20237. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20238. ac_need_defaults=false;;
  20239. --he | --h)
  20240. # Conflict between --help and --header
  20241. { echo "$as_me: error: ambiguous option: $1
  20242. Try \`$0 --help' for more information." >&2
  20243. { (exit 1); exit 1; }; };;
  20244. --help | --hel | -h )
  20245. echo "$ac_cs_usage"; exit ;;
  20246. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20247. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20248. ac_cs_silent=: ;;
  20249. # This is an error.
  20250. -*) { echo "$as_me: error: unrecognized option: $1
  20251. Try \`$0 --help' for more information." >&2
  20252. { (exit 1); exit 1; }; } ;;
  20253. *) ac_config_targets="$ac_config_targets $1"
  20254. ac_need_defaults=false ;;
  20255. esac
  20256. shift
  20257. done
  20258. ac_configure_extra_args=
  20259. if $ac_cs_silent; then
  20260. exec 6>/dev/null
  20261. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20262. fi
  20263. _ACEOF
  20264. cat >>$CONFIG_STATUS <<_ACEOF
  20265. if \$ac_cs_recheck; then
  20266. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20267. CONFIG_SHELL=$SHELL
  20268. export CONFIG_SHELL
  20269. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20270. fi
  20271. _ACEOF
  20272. cat >>$CONFIG_STATUS <<\_ACEOF
  20273. exec 5>>config.log
  20274. {
  20275. echo
  20276. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20277. ## Running $as_me. ##
  20278. _ASBOX
  20279. echo "$ac_log"
  20280. } >&5
  20281. _ACEOF
  20282. cat >>$CONFIG_STATUS <<_ACEOF
  20283. #
  20284. # INIT-COMMANDS
  20285. #
  20286. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20287. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  20288. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  20289. # from automake < 1.5.
  20290. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  20291. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  20292. LINGUAS="${LINGUAS-%UNSET%}"
  20293. _ACEOF
  20294. cat >>$CONFIG_STATUS <<\_ACEOF
  20295. # Handling of arguments.
  20296. for ac_config_target in $ac_config_targets
  20297. do
  20298. case $ac_config_target in
  20299. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20300. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20301. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  20302. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20303. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20304. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20305. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20306. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20307. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20308. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20309. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20310. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20311. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20312. { (exit 1); exit 1; }; };;
  20313. esac
  20314. done
  20315. # If the user did not use the arguments to specify the items to instantiate,
  20316. # then the envvar interface is used. Set only those that are not.
  20317. # We use the long form for the default assignment because of an extremely
  20318. # bizarre bug on SunOS 4.1.3.
  20319. if $ac_need_defaults; then
  20320. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20321. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20322. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20323. fi
  20324. # Have a temporary directory for convenience. Make it in the build tree
  20325. # simply because there is no reason against having it here, and in addition,
  20326. # creating and moving files from /tmp can sometimes cause problems.
  20327. # Hook for its removal unless debugging.
  20328. # Note that there is a small window in which the directory will not be cleaned:
  20329. # after its creation but before its name has been assigned to `$tmp'.
  20330. $debug ||
  20331. {
  20332. tmp=
  20333. trap 'exit_status=$?
  20334. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20335. ' 0
  20336. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20337. }
  20338. # Create a (secure) tmp directory for tmp files.
  20339. {
  20340. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20341. test -n "$tmp" && test -d "$tmp"
  20342. } ||
  20343. {
  20344. tmp=./conf$$-$RANDOM
  20345. (umask 077 && mkdir "$tmp")
  20346. } ||
  20347. {
  20348. echo "$me: cannot create a temporary directory in ." >&2
  20349. { (exit 1); exit 1; }
  20350. }
  20351. #
  20352. # Set up the sed scripts for CONFIG_FILES section.
  20353. #
  20354. # No need to generate the scripts if there are no CONFIG_FILES.
  20355. # This happens for instance when ./config.status config.h
  20356. if test -n "$CONFIG_FILES"; then
  20357. _ACEOF
  20358. ac_delim='%!_!# '
  20359. for ac_last_try in false false false false false :; do
  20360. cat >conf$$subs.sed <<_ACEOF
  20361. SHELL!$SHELL$ac_delim
  20362. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20363. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20364. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20365. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20366. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20367. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20368. exec_prefix!$exec_prefix$ac_delim
  20369. prefix!$prefix$ac_delim
  20370. program_transform_name!$program_transform_name$ac_delim
  20371. bindir!$bindir$ac_delim
  20372. sbindir!$sbindir$ac_delim
  20373. libexecdir!$libexecdir$ac_delim
  20374. datarootdir!$datarootdir$ac_delim
  20375. datadir!$datadir$ac_delim
  20376. sysconfdir!$sysconfdir$ac_delim
  20377. sharedstatedir!$sharedstatedir$ac_delim
  20378. localstatedir!$localstatedir$ac_delim
  20379. includedir!$includedir$ac_delim
  20380. oldincludedir!$oldincludedir$ac_delim
  20381. docdir!$docdir$ac_delim
  20382. infodir!$infodir$ac_delim
  20383. htmldir!$htmldir$ac_delim
  20384. dvidir!$dvidir$ac_delim
  20385. pdfdir!$pdfdir$ac_delim
  20386. psdir!$psdir$ac_delim
  20387. libdir!$libdir$ac_delim
  20388. localedir!$localedir$ac_delim
  20389. mandir!$mandir$ac_delim
  20390. DEFS!$DEFS$ac_delim
  20391. ECHO_C!$ECHO_C$ac_delim
  20392. ECHO_N!$ECHO_N$ac_delim
  20393. ECHO_T!$ECHO_T$ac_delim
  20394. LIBS!$LIBS$ac_delim
  20395. build_alias!$build_alias$ac_delim
  20396. host_alias!$host_alias$ac_delim
  20397. target_alias!$target_alias$ac_delim
  20398. build!$build$ac_delim
  20399. build_cpu!$build_cpu$ac_delim
  20400. build_vendor!$build_vendor$ac_delim
  20401. build_os!$build_os$ac_delim
  20402. host!$host$ac_delim
  20403. host_cpu!$host_cpu$ac_delim
  20404. host_vendor!$host_vendor$ac_delim
  20405. host_os!$host_os$ac_delim
  20406. target!$target$ac_delim
  20407. target_cpu!$target_cpu$ac_delim
  20408. target_vendor!$target_vendor$ac_delim
  20409. target_os!$target_os$ac_delim
  20410. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20411. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20412. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20413. am__isrc!$am__isrc$ac_delim
  20414. CYGPATH_W!$CYGPATH_W$ac_delim
  20415. PACKAGE!$PACKAGE$ac_delim
  20416. VERSION!$VERSION$ac_delim
  20417. ACLOCAL!$ACLOCAL$ac_delim
  20418. AUTOCONF!$AUTOCONF$ac_delim
  20419. AUTOMAKE!$AUTOMAKE$ac_delim
  20420. AUTOHEADER!$AUTOHEADER$ac_delim
  20421. MAKEINFO!$MAKEINFO$ac_delim
  20422. install_sh!$install_sh$ac_delim
  20423. STRIP!$STRIP$ac_delim
  20424. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20425. mkdir_p!$mkdir_p$ac_delim
  20426. AWK!$AWK$ac_delim
  20427. SET_MAKE!$SET_MAKE$ac_delim
  20428. am__leading_dot!$am__leading_dot$ac_delim
  20429. AMTAR!$AMTAR$ac_delim
  20430. am__tar!$am__tar$ac_delim
  20431. am__untar!$am__untar$ac_delim
  20432. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20433. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20434. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20435. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20436. CXX!$CXX$ac_delim
  20437. CXXFLAGS!$CXXFLAGS$ac_delim
  20438. LDFLAGS!$LDFLAGS$ac_delim
  20439. CPPFLAGS!$CPPFLAGS$ac_delim
  20440. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20441. EXEEXT!$EXEEXT$ac_delim
  20442. OBJEXT!$OBJEXT$ac_delim
  20443. DEPDIR!$DEPDIR$ac_delim
  20444. am__include!$am__include$ac_delim
  20445. am__quote!$am__quote$ac_delim
  20446. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20447. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20448. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20449. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20450. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20451. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20452. CC!$CC$ac_delim
  20453. CFLAGS!$CFLAGS$ac_delim
  20454. ac_ct_CC!$ac_ct_CC$ac_delim
  20455. CCDEPMODE!$CCDEPMODE$ac_delim
  20456. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20457. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20458. _ACEOF
  20459. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20460. break
  20461. elif $ac_last_try; then
  20462. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20463. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20464. { (exit 1); exit 1; }; }
  20465. else
  20466. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20467. fi
  20468. done
  20469. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20470. if test -n "$ac_eof"; then
  20471. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20472. ac_eof=`expr $ac_eof + 1`
  20473. fi
  20474. cat >>$CONFIG_STATUS <<_ACEOF
  20475. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20476. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20477. _ACEOF
  20478. sed '
  20479. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20480. s/^/s,@/; s/!/@,|#_!!_#|/
  20481. :n
  20482. t n
  20483. s/'"$ac_delim"'$/,g/; t
  20484. s/$/\\/; p
  20485. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20486. ' >>$CONFIG_STATUS <conf$$subs.sed
  20487. rm -f conf$$subs.sed
  20488. cat >>$CONFIG_STATUS <<_ACEOF
  20489. CEOF$ac_eof
  20490. _ACEOF
  20491. ac_delim='%!_!# '
  20492. for ac_last_try in false false false false false :; do
  20493. cat >conf$$subs.sed <<_ACEOF
  20494. RANLIB!$RANLIB$ac_delim
  20495. YACC!$YACC$ac_delim
  20496. YFLAGS!$YFLAGS$ac_delim
  20497. CXXCPP!$CXXCPP$ac_delim
  20498. GREP!$GREP$ac_delim
  20499. EGREP!$EGREP$ac_delim
  20500. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20501. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20502. XML_LIBS!$XML_LIBS$ac_delim
  20503. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20504. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20505. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20506. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20507. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20508. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20509. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20510. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20511. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20512. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20513. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20514. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20515. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20516. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20517. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20518. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20519. ENABLE_SSL_TRUE!$ENABLE_SSL_TRUE$ac_delim
  20520. ENABLE_SSL_FALSE!$ENABLE_SSL_FALSE$ac_delim
  20521. ca_bundle!$ca_bundle$ac_delim
  20522. HAVE_LIBGNUTLS_TRUE!$HAVE_LIBGNUTLS_TRUE$ac_delim
  20523. HAVE_LIBGNUTLS_FALSE!$HAVE_LIBGNUTLS_FALSE$ac_delim
  20524. HAVE_LIBSSL_TRUE!$HAVE_LIBSSL_TRUE$ac_delim
  20525. HAVE_LIBSSL_FALSE!$HAVE_LIBSSL_FALSE$ac_delim
  20526. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20527. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20528. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20529. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20530. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20531. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20532. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20533. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20534. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20535. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20536. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20537. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20538. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20539. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20540. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20541. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20542. ALLOCA!$ALLOCA$ac_delim
  20543. USE_NLS!$USE_NLS$ac_delim
  20544. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20545. MSGFMT!$MSGFMT$ac_delim
  20546. GMSGFMT!$GMSGFMT$ac_delim
  20547. MSGFMT_015!$MSGFMT_015$ac_delim
  20548. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20549. XGETTEXT!$XGETTEXT$ac_delim
  20550. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20551. MSGMERGE!$MSGMERGE$ac_delim
  20552. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20553. GLIBC2!$GLIBC2$ac_delim
  20554. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20555. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20556. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20557. LIBPTH!$LIBPTH$ac_delim
  20558. LTLIBPTH!$LTLIBPTH$ac_delim
  20559. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20560. LIBTHREAD!$LIBTHREAD$ac_delim
  20561. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20562. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20563. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20564. LIBICONV!$LIBICONV$ac_delim
  20565. LTLIBICONV!$LTLIBICONV$ac_delim
  20566. INTLBISON!$INTLBISON$ac_delim
  20567. GLIBC21!$GLIBC21$ac_delim
  20568. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20569. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20570. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20571. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20572. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20573. WOE32DLL!$WOE32DLL$ac_delim
  20574. WOE32!$WOE32$ac_delim
  20575. WINDRES!$WINDRES$ac_delim
  20576. LTLIBC!$LTLIBC$ac_delim
  20577. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20578. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20579. CATOBJEXT!$CATOBJEXT$ac_delim
  20580. DATADIRNAME!$DATADIRNAME$ac_delim
  20581. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20582. GENCAT!$GENCAT$ac_delim
  20583. INTLOBJS!$INTLOBJS$ac_delim
  20584. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20585. INTLLIBS!$INTLLIBS$ac_delim
  20586. LIBINTL!$LIBINTL$ac_delim
  20587. LTLIBINTL!$LTLIBINTL$ac_delim
  20588. POSUB!$POSUB$ac_delim
  20589. LIBOBJS!$LIBOBJS$ac_delim
  20590. HAVE_EPOLL_TRUE!$HAVE_EPOLL_TRUE$ac_delim
  20591. _ACEOF
  20592. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20593. break
  20594. elif $ac_last_try; then
  20595. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20596. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20597. { (exit 1); exit 1; }; }
  20598. else
  20599. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20600. fi
  20601. done
  20602. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20603. if test -n "$ac_eof"; then
  20604. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20605. ac_eof=`expr $ac_eof + 1`
  20606. fi
  20607. cat >>$CONFIG_STATUS <<_ACEOF
  20608. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20609. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20610. _ACEOF
  20611. sed '
  20612. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20613. s/^/s,@/; s/!/@,|#_!!_#|/
  20614. :n
  20615. t n
  20616. s/'"$ac_delim"'$/,g/; t
  20617. s/$/\\/; p
  20618. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20619. ' >>$CONFIG_STATUS <conf$$subs.sed
  20620. rm -f conf$$subs.sed
  20621. cat >>$CONFIG_STATUS <<_ACEOF
  20622. CEOF$ac_eof
  20623. _ACEOF
  20624. ac_delim='%!_!# '
  20625. for ac_last_try in false false false false false :; do
  20626. cat >conf$$subs.sed <<_ACEOF
  20627. HAVE_EPOLL_FALSE!$HAVE_EPOLL_FALSE$ac_delim
  20628. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20629. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20630. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20631. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20632. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20633. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20634. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20635. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20636. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20637. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20638. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20639. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20640. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20641. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20642. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20643. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20644. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20645. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20646. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20647. _ACEOF
  20648. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
  20649. break
  20650. elif $ac_last_try; then
  20651. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20652. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20653. { (exit 1); exit 1; }; }
  20654. else
  20655. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20656. fi
  20657. done
  20658. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20659. if test -n "$ac_eof"; then
  20660. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20661. ac_eof=`expr $ac_eof + 1`
  20662. fi
  20663. cat >>$CONFIG_STATUS <<_ACEOF
  20664. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20665. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20666. _ACEOF
  20667. sed '
  20668. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20669. s/^/s,@/; s/!/@,|#_!!_#|/
  20670. :n
  20671. t n
  20672. s/'"$ac_delim"'$/,g/; t
  20673. s/$/\\/; p
  20674. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20675. ' >>$CONFIG_STATUS <conf$$subs.sed
  20676. rm -f conf$$subs.sed
  20677. cat >>$CONFIG_STATUS <<_ACEOF
  20678. :end
  20679. s/|#_!!_#|//g
  20680. CEOF$ac_eof
  20681. _ACEOF
  20682. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20683. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20684. # trailing colons and then remove the whole line if VPATH becomes empty
  20685. # (actually we leave an empty line to preserve line numbers).
  20686. if test "x$srcdir" = x.; then
  20687. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20688. s/:*\$(srcdir):*/:/
  20689. s/:*\${srcdir}:*/:/
  20690. s/:*@srcdir@:*/:/
  20691. s/^\([^=]*=[ ]*\):*/\1/
  20692. s/:*$//
  20693. s/^[^=]*=[ ]*$//
  20694. }'
  20695. fi
  20696. cat >>$CONFIG_STATUS <<\_ACEOF
  20697. fi # test -n "$CONFIG_FILES"
  20698. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20699. do
  20700. case $ac_tag in
  20701. :[FHLC]) ac_mode=$ac_tag; continue;;
  20702. esac
  20703. case $ac_mode$ac_tag in
  20704. :[FHL]*:*);;
  20705. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20706. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20707. { (exit 1); exit 1; }; };;
  20708. :[FH]-) ac_tag=-:-;;
  20709. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20710. esac
  20711. ac_save_IFS=$IFS
  20712. IFS=:
  20713. set x $ac_tag
  20714. IFS=$ac_save_IFS
  20715. shift
  20716. ac_file=$1
  20717. shift
  20718. case $ac_mode in
  20719. :L) ac_source=$1;;
  20720. :[FH])
  20721. ac_file_inputs=
  20722. for ac_f
  20723. do
  20724. case $ac_f in
  20725. -) ac_f="$tmp/stdin";;
  20726. *) # Look for the file first in the build tree, then in the source tree
  20727. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20728. # because $ac_f cannot contain `:'.
  20729. test -f "$ac_f" ||
  20730. case $ac_f in
  20731. [\\/$]*) false;;
  20732. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20733. esac ||
  20734. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20735. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20736. { (exit 1); exit 1; }; };;
  20737. esac
  20738. ac_file_inputs="$ac_file_inputs $ac_f"
  20739. done
  20740. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20741. # use $as_me), people would be surprised to read:
  20742. # /* config.h. Generated by config.status. */
  20743. configure_input="Generated from "`IFS=:
  20744. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20745. if test x"$ac_file" != x-; then
  20746. configure_input="$ac_file. $configure_input"
  20747. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20748. echo "$as_me: creating $ac_file" >&6;}
  20749. fi
  20750. case $ac_tag in
  20751. *:-:* | *:-) cat >"$tmp/stdin";;
  20752. esac
  20753. ;;
  20754. esac
  20755. ac_dir=`$as_dirname -- "$ac_file" ||
  20756. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20757. X"$ac_file" : 'X\(//\)[^/]' \| \
  20758. X"$ac_file" : 'X\(//\)$' \| \
  20759. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20760. echo X"$ac_file" |
  20761. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20762. s//\1/
  20763. q
  20764. }
  20765. /^X\(\/\/\)[^/].*/{
  20766. s//\1/
  20767. q
  20768. }
  20769. /^X\(\/\/\)$/{
  20770. s//\1/
  20771. q
  20772. }
  20773. /^X\(\/\).*/{
  20774. s//\1/
  20775. q
  20776. }
  20777. s/.*/./; q'`
  20778. { as_dir="$ac_dir"
  20779. case $as_dir in #(
  20780. -*) as_dir=./$as_dir;;
  20781. esac
  20782. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20783. as_dirs=
  20784. while :; do
  20785. case $as_dir in #(
  20786. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20787. *) as_qdir=$as_dir;;
  20788. esac
  20789. as_dirs="'$as_qdir' $as_dirs"
  20790. as_dir=`$as_dirname -- "$as_dir" ||
  20791. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20792. X"$as_dir" : 'X\(//\)[^/]' \| \
  20793. X"$as_dir" : 'X\(//\)$' \| \
  20794. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20795. echo X"$as_dir" |
  20796. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20797. s//\1/
  20798. q
  20799. }
  20800. /^X\(\/\/\)[^/].*/{
  20801. s//\1/
  20802. q
  20803. }
  20804. /^X\(\/\/\)$/{
  20805. s//\1/
  20806. q
  20807. }
  20808. /^X\(\/\).*/{
  20809. s//\1/
  20810. q
  20811. }
  20812. s/.*/./; q'`
  20813. test -d "$as_dir" && break
  20814. done
  20815. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20816. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20817. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20818. { (exit 1); exit 1; }; }; }
  20819. ac_builddir=.
  20820. case "$ac_dir" in
  20821. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20822. *)
  20823. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20824. # A ".." for each directory in $ac_dir_suffix.
  20825. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20826. case $ac_top_builddir_sub in
  20827. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20828. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20829. esac ;;
  20830. esac
  20831. ac_abs_top_builddir=$ac_pwd
  20832. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20833. # for backward compatibility:
  20834. ac_top_builddir=$ac_top_build_prefix
  20835. case $srcdir in
  20836. .) # We are building in place.
  20837. ac_srcdir=.
  20838. ac_top_srcdir=$ac_top_builddir_sub
  20839. ac_abs_top_srcdir=$ac_pwd ;;
  20840. [\\/]* | ?:[\\/]* ) # Absolute name.
  20841. ac_srcdir=$srcdir$ac_dir_suffix;
  20842. ac_top_srcdir=$srcdir
  20843. ac_abs_top_srcdir=$srcdir ;;
  20844. *) # Relative name.
  20845. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20846. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20847. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20848. esac
  20849. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20850. case $ac_mode in
  20851. :F)
  20852. #
  20853. # CONFIG_FILE
  20854. #
  20855. case $INSTALL in
  20856. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20857. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20858. esac
  20859. ac_MKDIR_P=$MKDIR_P
  20860. case $MKDIR_P in
  20861. [\\/$]* | ?:[\\/]* ) ;;
  20862. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20863. esac
  20864. _ACEOF
  20865. cat >>$CONFIG_STATUS <<\_ACEOF
  20866. # If the template does not know about datarootdir, expand it.
  20867. # FIXME: This hack should be removed a few years after 2.60.
  20868. ac_datarootdir_hack=; ac_datarootdir_seen=
  20869. case `sed -n '/datarootdir/ {
  20870. p
  20871. q
  20872. }
  20873. /@datadir@/p
  20874. /@docdir@/p
  20875. /@infodir@/p
  20876. /@localedir@/p
  20877. /@mandir@/p
  20878. ' $ac_file_inputs` in
  20879. *datarootdir*) ac_datarootdir_seen=yes;;
  20880. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20881. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20882. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20883. _ACEOF
  20884. cat >>$CONFIG_STATUS <<_ACEOF
  20885. ac_datarootdir_hack='
  20886. s&@datadir@&$datadir&g
  20887. s&@docdir@&$docdir&g
  20888. s&@infodir@&$infodir&g
  20889. s&@localedir@&$localedir&g
  20890. s&@mandir@&$mandir&g
  20891. s&\\\${datarootdir}&$datarootdir&g' ;;
  20892. esac
  20893. _ACEOF
  20894. # Neutralize VPATH when `$srcdir' = `.'.
  20895. # Shell code in configure.ac might set extrasub.
  20896. # FIXME: do we really want to maintain this feature?
  20897. cat >>$CONFIG_STATUS <<_ACEOF
  20898. sed "$ac_vpsub
  20899. $extrasub
  20900. _ACEOF
  20901. cat >>$CONFIG_STATUS <<\_ACEOF
  20902. :t
  20903. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20904. s&@configure_input@&$configure_input&;t t
  20905. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20906. s&@srcdir@&$ac_srcdir&;t t
  20907. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20908. s&@top_srcdir@&$ac_top_srcdir&;t t
  20909. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20910. s&@builddir@&$ac_builddir&;t t
  20911. s&@abs_builddir@&$ac_abs_builddir&;t t
  20912. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20913. s&@INSTALL@&$ac_INSTALL&;t t
  20914. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20915. $ac_datarootdir_hack
  20916. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20917. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20918. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20919. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20920. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20921. which seems to be undefined. Please make sure it is defined." >&5
  20922. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20923. which seems to be undefined. Please make sure it is defined." >&2;}
  20924. rm -f "$tmp/stdin"
  20925. case $ac_file in
  20926. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20927. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20928. esac
  20929. ;;
  20930. :H)
  20931. #
  20932. # CONFIG_HEADER
  20933. #
  20934. _ACEOF
  20935. # Transform confdefs.h into a sed script `conftest.defines', that
  20936. # substitutes the proper values into config.h.in to produce config.h.
  20937. rm -f conftest.defines conftest.tail
  20938. # First, append a space to every undef/define line, to ease matching.
  20939. echo 's/$/ /' >conftest.defines
  20940. # Then, protect against being on the right side of a sed subst, or in
  20941. # an unquoted here document, in config.status. If some macros were
  20942. # called several times there might be several #defines for the same
  20943. # symbol, which is useless. But do not sort them, since the last
  20944. # AC_DEFINE must be honored.
  20945. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20946. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20947. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20948. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20949. # just an empty string.
  20950. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20951. ac_dB='\\)[ (].*,\\1define\\2'
  20952. ac_dC=' '
  20953. ac_dD=' ,'
  20954. uniq confdefs.h |
  20955. sed -n '
  20956. t rset
  20957. :rset
  20958. s/^[ ]*#[ ]*define[ ][ ]*//
  20959. t ok
  20960. d
  20961. :ok
  20962. s/[\\&,]/\\&/g
  20963. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20964. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20965. ' >>conftest.defines
  20966. # Remove the space that was appended to ease matching.
  20967. # Then replace #undef with comments. This is necessary, for
  20968. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20969. # on some systems where configure will not decide to define it.
  20970. # (The regexp can be short, since the line contains either #define or #undef.)
  20971. echo 's/ $//
  20972. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20973. # Break up conftest.defines:
  20974. ac_max_sed_lines=50
  20975. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20976. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20977. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20978. # et cetera.
  20979. ac_in='$ac_file_inputs'
  20980. ac_out='"$tmp/out1"'
  20981. ac_nxt='"$tmp/out2"'
  20982. while :
  20983. do
  20984. # Write a here document:
  20985. cat >>$CONFIG_STATUS <<_ACEOF
  20986. # First, check the format of the line:
  20987. cat >"\$tmp/defines.sed" <<\\CEOF
  20988. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20989. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20990. b
  20991. :def
  20992. _ACEOF
  20993. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20994. echo 'CEOF
  20995. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20996. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20997. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20998. grep . conftest.tail >/dev/null || break
  20999. rm -f conftest.defines
  21000. mv conftest.tail conftest.defines
  21001. done
  21002. rm -f conftest.defines conftest.tail
  21003. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  21004. cat >>$CONFIG_STATUS <<\_ACEOF
  21005. if test x"$ac_file" != x-; then
  21006. echo "/* $configure_input */" >"$tmp/config.h"
  21007. cat "$ac_result" >>"$tmp/config.h"
  21008. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  21009. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21010. echo "$as_me: $ac_file is unchanged" >&6;}
  21011. else
  21012. rm -f $ac_file
  21013. mv "$tmp/config.h" $ac_file
  21014. fi
  21015. else
  21016. echo "/* $configure_input */"
  21017. cat "$ac_result"
  21018. fi
  21019. rm -f "$tmp/out12"
  21020. # Compute $ac_file's index in $config_headers.
  21021. _am_arg=$ac_file
  21022. _am_stamp_count=1
  21023. for _am_header in $config_headers :; do
  21024. case $_am_header in
  21025. $_am_arg | $_am_arg:* )
  21026. break ;;
  21027. * )
  21028. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21029. esac
  21030. done
  21031. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21032. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21033. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21034. X"$_am_arg" : 'X\(//\)$' \| \
  21035. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21036. echo X"$_am_arg" |
  21037. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21038. s//\1/
  21039. q
  21040. }
  21041. /^X\(\/\/\)[^/].*/{
  21042. s//\1/
  21043. q
  21044. }
  21045. /^X\(\/\/\)$/{
  21046. s//\1/
  21047. q
  21048. }
  21049. /^X\(\/\).*/{
  21050. s//\1/
  21051. q
  21052. }
  21053. s/.*/./; q'`/stamp-h$_am_stamp_count
  21054. ;;
  21055. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21056. echo "$as_me: executing $ac_file commands" >&6;}
  21057. ;;
  21058. esac
  21059. case $ac_file$ac_mode in
  21060. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21061. # Strip MF so we end up with the name of the file.
  21062. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21063. # Check whether this is an Automake generated Makefile or not.
  21064. # We used to match only the files named `Makefile.in', but
  21065. # some people rename them; so instead we look at the file content.
  21066. # Grep'ing the first line is not enough: some people post-process
  21067. # each Makefile.in and add a new line on top of each file to say so.
  21068. # Grep'ing the whole file is not good either: AIX grep has a line
  21069. # limit of 2048, but all sed's we know have understand at least 4000.
  21070. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21071. dirpart=`$as_dirname -- "$mf" ||
  21072. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21073. X"$mf" : 'X\(//\)[^/]' \| \
  21074. X"$mf" : 'X\(//\)$' \| \
  21075. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21076. echo X"$mf" |
  21077. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21078. s//\1/
  21079. q
  21080. }
  21081. /^X\(\/\/\)[^/].*/{
  21082. s//\1/
  21083. q
  21084. }
  21085. /^X\(\/\/\)$/{
  21086. s//\1/
  21087. q
  21088. }
  21089. /^X\(\/\).*/{
  21090. s//\1/
  21091. q
  21092. }
  21093. s/.*/./; q'`
  21094. else
  21095. continue
  21096. fi
  21097. # Extract the definition of DEPDIR, am__include, and am__quote
  21098. # from the Makefile without running `make'.
  21099. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21100. test -z "$DEPDIR" && continue
  21101. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21102. test -z "am__include" && continue
  21103. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21104. # When using ansi2knr, U may be empty or an underscore; expand it
  21105. U=`sed -n 's/^U = //p' < "$mf"`
  21106. # Find all dependency output files, they are included files with
  21107. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21108. # simplest approach to changing $(DEPDIR) to its actual value in the
  21109. # expansion.
  21110. for file in `sed -n "
  21111. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21112. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21113. # Make sure the directory exists.
  21114. test -f "$dirpart/$file" && continue
  21115. fdir=`$as_dirname -- "$file" ||
  21116. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21117. X"$file" : 'X\(//\)[^/]' \| \
  21118. X"$file" : 'X\(//\)$' \| \
  21119. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21120. echo X"$file" |
  21121. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21122. s//\1/
  21123. q
  21124. }
  21125. /^X\(\/\/\)[^/].*/{
  21126. s//\1/
  21127. q
  21128. }
  21129. /^X\(\/\/\)$/{
  21130. s//\1/
  21131. q
  21132. }
  21133. /^X\(\/\).*/{
  21134. s//\1/
  21135. q
  21136. }
  21137. s/.*/./; q'`
  21138. { as_dir=$dirpart/$fdir
  21139. case $as_dir in #(
  21140. -*) as_dir=./$as_dir;;
  21141. esac
  21142. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21143. as_dirs=
  21144. while :; do
  21145. case $as_dir in #(
  21146. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21147. *) as_qdir=$as_dir;;
  21148. esac
  21149. as_dirs="'$as_qdir' $as_dirs"
  21150. as_dir=`$as_dirname -- "$as_dir" ||
  21151. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21152. X"$as_dir" : 'X\(//\)[^/]' \| \
  21153. X"$as_dir" : 'X\(//\)$' \| \
  21154. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21155. echo X"$as_dir" |
  21156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21157. s//\1/
  21158. q
  21159. }
  21160. /^X\(\/\/\)[^/].*/{
  21161. s//\1/
  21162. q
  21163. }
  21164. /^X\(\/\/\)$/{
  21165. s//\1/
  21166. q
  21167. }
  21168. /^X\(\/\).*/{
  21169. s//\1/
  21170. q
  21171. }
  21172. s/.*/./; q'`
  21173. test -d "$as_dir" && break
  21174. done
  21175. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21176. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21177. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21178. { (exit 1); exit 1; }; }; }
  21179. # echo "creating $dirpart/$file"
  21180. echo '# dummy' > "$dirpart/$file"
  21181. done
  21182. done
  21183. ;;
  21184. "po-directories":C)
  21185. for ac_file in $CONFIG_FILES; do
  21186. # Support "outfile[:infile[:infile...]]"
  21187. case "$ac_file" in
  21188. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21189. esac
  21190. # PO directories have a Makefile.in generated from Makefile.in.in.
  21191. case "$ac_file" in */Makefile.in)
  21192. # Adjust a relative srcdir.
  21193. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  21194. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  21195. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  21196. # In autoconf-2.13 it is called $ac_given_srcdir.
  21197. # In autoconf-2.50 it is called $srcdir.
  21198. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  21199. case "$ac_given_srcdir" in
  21200. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  21201. /*) top_srcdir="$ac_given_srcdir" ;;
  21202. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  21203. esac
  21204. # Treat a directory as a PO directory if and only if it has a
  21205. # POTFILES.in file. This allows packages to have multiple PO
  21206. # directories under different names or in different locations.
  21207. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  21208. rm -f "$ac_dir/POTFILES"
  21209. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  21210. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  21211. POMAKEFILEDEPS="POTFILES.in"
  21212. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  21213. # on $ac_dir but don't depend on user-specified configuration
  21214. # parameters.
  21215. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  21216. # The LINGUAS file contains the set of available languages.
  21217. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  21218. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  21219. fi
  21220. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  21221. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21222. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  21223. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  21224. else
  21225. # The set of available languages was given in configure.in.
  21226. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21227. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  21228. fi
  21229. # Compute POFILES
  21230. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21231. # Compute UPDATEPOFILES
  21232. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21233. # Compute DUMMYPOFILES
  21234. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21235. # Compute GMOFILES
  21236. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21237. case "$ac_given_srcdir" in
  21238. .) srcdirpre= ;;
  21239. *) srcdirpre='$(srcdir)/' ;;
  21240. esac
  21241. POFILES=
  21242. UPDATEPOFILES=
  21243. DUMMYPOFILES=
  21244. GMOFILES=
  21245. for lang in $ALL_LINGUAS; do
  21246. POFILES="$POFILES $srcdirpre$lang.po"
  21247. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  21248. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  21249. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  21250. done
  21251. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  21252. # environment variable.
  21253. INST_LINGUAS=
  21254. if test -n "$ALL_LINGUAS"; then
  21255. for presentlang in $ALL_LINGUAS; do
  21256. useit=no
  21257. if test "%UNSET%" != "$LINGUAS"; then
  21258. desiredlanguages="$LINGUAS"
  21259. else
  21260. desiredlanguages="$ALL_LINGUAS"
  21261. fi
  21262. for desiredlang in $desiredlanguages; do
  21263. # Use the presentlang catalog if desiredlang is
  21264. # a. equal to presentlang, or
  21265. # b. a variant of presentlang (because in this case,
  21266. # presentlang can be used as a fallback for messages
  21267. # which are not translated in the desiredlang catalog).
  21268. case "$desiredlang" in
  21269. "$presentlang"*) useit=yes;;
  21270. esac
  21271. done
  21272. if test $useit = yes; then
  21273. INST_LINGUAS="$INST_LINGUAS $presentlang"
  21274. fi
  21275. done
  21276. fi
  21277. CATALOGS=
  21278. if test -n "$INST_LINGUAS"; then
  21279. for lang in $INST_LINGUAS; do
  21280. CATALOGS="$CATALOGS $lang.gmo"
  21281. done
  21282. fi
  21283. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  21284. 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"
  21285. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  21286. if test -f "$f"; then
  21287. case "$f" in
  21288. *.orig | *.bak | *~) ;;
  21289. *) cat "$f" >> "$ac_dir/Makefile" ;;
  21290. esac
  21291. fi
  21292. done
  21293. fi
  21294. ;;
  21295. esac
  21296. done ;;
  21297. esac
  21298. done # for ac_tag
  21299. { (exit 0); exit 0; }
  21300. _ACEOF
  21301. chmod +x $CONFIG_STATUS
  21302. ac_clean_files=$ac_clean_files_save
  21303. # configure is writing to config.log, and then calls config.status.
  21304. # config.status does its own redirection, appending to config.log.
  21305. # Unfortunately, on DOS this fails, as config.log is still kept open
  21306. # by configure, so config.status won't be able to write to it; its
  21307. # output is simply discarded. So we exec the FD to /dev/null,
  21308. # effectively closing config.log, so it can be properly (re)opened and
  21309. # appended to by config.status. When coming back to configure, we
  21310. # need to make the FD available again.
  21311. if test "$no_create" != yes; then
  21312. ac_cs_success=:
  21313. ac_config_status_args=
  21314. test "$silent" = yes &&
  21315. ac_config_status_args="$ac_config_status_args --quiet"
  21316. exec 5>/dev/null
  21317. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21318. exec 5>>config.log
  21319. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21320. # would make configure fail if this is the last instruction.
  21321. $ac_cs_success || { (exit 1); exit 1; }
  21322. fi
  21323. echo " "
  21324. echo "Build: $build"
  21325. echo "Target: $target"
  21326. echo "Install prefix: $prefix"
  21327. echo "CFLAGS: $CFLAGS"
  21328. echo "CPPFLAGS: $CPPFLAGS"
  21329. echo "LDFLAGS: $LDFLAGS"
  21330. echo "LIBS: $LIBS"
  21331. echo "SQLite3: $have_sqlite3"
  21332. echo "GnuTLS: $have_libgnutls"
  21333. echo "OpenSSL: $have_openssl"
  21334. echo "CA Bundle: $ca_bundle"
  21335. echo "LibXML2: $have_libxml2"
  21336. echo "LibExpat: $have_libexpat"
  21337. echo "LibCares: $have_libcares"
  21338. echo "Libz: $have_libz"
  21339. echo "Epoll: $have_epoll"
  21340. echo "Bittorrent: $enable_bittorrent"
  21341. echo "Metalink: $enable_metalink"