configure 662 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.16.0b.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.16.0b'
  496. PACKAGE_STRING='aria2c 0.16.0b'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. SQLITE3_LIBS
  646. SQLITE3_CPPFLAGS
  647. LIBGNUTLS_CONFIG
  648. LIBGNUTLS_CFLAGS
  649. LIBGNUTLS_LIBS
  650. LIBGCRYPT_CONFIG
  651. LIBGCRYPT_CFLAGS
  652. LIBGCRYPT_LIBS
  653. OPENSSL_LIBS
  654. OPENSSL_CFLAGS
  655. LIBCARES_LIBS
  656. LIBCARES_CPPFLAGS
  657. LIBARES_LIBS
  658. LIBARES_CPPFLAGS
  659. LIBZ_LIBS
  660. LIBZ_CPPFLAGS
  661. ENABLE_MESSAGE_DIGEST_TRUE
  662. ENABLE_MESSAGE_DIGEST_FALSE
  663. ENABLE_BITTORRENT_TRUE
  664. ENABLE_BITTORRENT_FALSE
  665. ENABLE_METALINK_TRUE
  666. ENABLE_METALINK_FALSE
  667. ENABLE_LIBXML2_TRUE
  668. ENABLE_LIBXML2_FALSE
  669. ENABLE_LIBEXPAT_TRUE
  670. ENABLE_LIBEXPAT_FALSE
  671. ENABLE_ASYNC_DNS_TRUE
  672. ENABLE_ASYNC_DNS_FALSE
  673. HAVE_LIBZ_TRUE
  674. HAVE_LIBZ_FALSE
  675. HAVE_SQLITE3_TRUE
  676. HAVE_SQLITE3_FALSE
  677. ALLOCA
  678. USE_NLS
  679. GETTEXT_MACRO_VERSION
  680. MSGFMT
  681. GMSGFMT
  682. MSGFMT_015
  683. GMSGFMT_015
  684. XGETTEXT
  685. XGETTEXT_015
  686. MSGMERGE
  687. XGETTEXT_EXTRA_OPTIONS
  688. GLIBC2
  689. CFLAG_VISIBILITY
  690. HAVE_VISIBILITY
  691. PRI_MACROS_BROKEN
  692. LIBPTH
  693. LTLIBPTH
  694. LIBPTH_PREFIX
  695. LIBTHREAD
  696. LTLIBTHREAD
  697. LIBMULTITHREAD
  698. LTLIBMULTITHREAD
  699. LIBICONV
  700. LTLIBICONV
  701. INTLBISON
  702. GLIBC21
  703. INTL_MACOSX_LIBS
  704. HAVE_POSIX_PRINTF
  705. HAVE_ASPRINTF
  706. HAVE_SNPRINTF
  707. HAVE_WPRINTF
  708. WOE32DLL
  709. WOE32
  710. WINDRES
  711. LTLIBC
  712. BUILD_INCLUDED_LIBINTL
  713. USE_INCLUDED_LIBINTL
  714. CATOBJEXT
  715. DATADIRNAME
  716. INSTOBJEXT
  717. GENCAT
  718. INTLOBJS
  719. INTL_LIBTOOL_SUFFIX_PREFIX
  720. INTLLIBS
  721. LIBINTL
  722. LTLIBINTL
  723. POSUB
  724. LIBOBJS
  725. HAVE_ASCTIME_R_TRUE
  726. HAVE_ASCTIME_R_FALSE
  727. HAVE_BASENAME_TRUE
  728. HAVE_BASENAME_FALSE
  729. HAVE_GAI_STRERROR_TRUE
  730. HAVE_GAI_STRERROR_FALSE
  731. HAVE_GETADDRINFO_TRUE
  732. HAVE_GETADDRINFO_FALSE
  733. HAVE_GETTIMEOFDAY_TRUE
  734. HAVE_GETTIMEOFDAY_FALSE
  735. HAVE_INET_ATON_TRUE
  736. HAVE_INET_ATON_FALSE
  737. HAVE_LOCALTIME_R_TRUE
  738. HAVE_LOCALTIME_R_FALSE
  739. HAVE_STRPTIME_TRUE
  740. HAVE_STRPTIME_FALSE
  741. HAVE_TIMEGM_TRUE
  742. HAVE_TIMEGM_FALSE
  743. LTLIBOBJS'
  744. ac_subst_files=''
  745. ac_precious_vars='build_alias
  746. host_alias
  747. target_alias
  748. CXX
  749. CXXFLAGS
  750. LDFLAGS
  751. LIBS
  752. CPPFLAGS
  753. CCC
  754. CC
  755. CFLAGS
  756. YACC
  757. YFLAGS
  758. CXXCPP'
  759. # Initialize some variables set by options.
  760. ac_init_help=
  761. ac_init_version=false
  762. # The variables have the same names as the options, with
  763. # dashes changed to underlines.
  764. cache_file=/dev/null
  765. exec_prefix=NONE
  766. no_create=
  767. no_recursion=
  768. prefix=NONE
  769. program_prefix=NONE
  770. program_suffix=NONE
  771. program_transform_name=s,x,x,
  772. silent=
  773. site=
  774. srcdir=
  775. verbose=
  776. x_includes=NONE
  777. x_libraries=NONE
  778. # Installation directory options.
  779. # These are left unexpanded so users can "make install exec_prefix=/foo"
  780. # and all the variables that are supposed to be based on exec_prefix
  781. # by default will actually change.
  782. # Use braces instead of parens because sh, perl, etc. also accept them.
  783. # (The list follows the same order as the GNU Coding Standards.)
  784. bindir='${exec_prefix}/bin'
  785. sbindir='${exec_prefix}/sbin'
  786. libexecdir='${exec_prefix}/libexec'
  787. datarootdir='${prefix}/share'
  788. datadir='${datarootdir}'
  789. sysconfdir='${prefix}/etc'
  790. sharedstatedir='${prefix}/com'
  791. localstatedir='${prefix}/var'
  792. includedir='${prefix}/include'
  793. oldincludedir='/usr/include'
  794. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  795. infodir='${datarootdir}/info'
  796. htmldir='${docdir}'
  797. dvidir='${docdir}'
  798. pdfdir='${docdir}'
  799. psdir='${docdir}'
  800. libdir='${exec_prefix}/lib'
  801. localedir='${datarootdir}/locale'
  802. mandir='${datarootdir}/man'
  803. ac_prev=
  804. ac_dashdash=
  805. for ac_option
  806. do
  807. # If the previous option needs an argument, assign it.
  808. if test -n "$ac_prev"; then
  809. eval $ac_prev=\$ac_option
  810. ac_prev=
  811. continue
  812. fi
  813. case $ac_option in
  814. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  815. *) ac_optarg=yes ;;
  816. esac
  817. # Accept the important Cygnus configure options, so we can diagnose typos.
  818. case $ac_dashdash$ac_option in
  819. --)
  820. ac_dashdash=yes ;;
  821. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  822. ac_prev=bindir ;;
  823. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  824. bindir=$ac_optarg ;;
  825. -build | --build | --buil | --bui | --bu)
  826. ac_prev=build_alias ;;
  827. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  828. build_alias=$ac_optarg ;;
  829. -cache-file | --cache-file | --cache-fil | --cache-fi \
  830. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  831. ac_prev=cache_file ;;
  832. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  833. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  834. cache_file=$ac_optarg ;;
  835. --config-cache | -C)
  836. cache_file=config.cache ;;
  837. -datadir | --datadir | --datadi | --datad)
  838. ac_prev=datadir ;;
  839. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  840. datadir=$ac_optarg ;;
  841. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  842. | --dataroo | --dataro | --datar)
  843. ac_prev=datarootdir ;;
  844. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  845. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  846. datarootdir=$ac_optarg ;;
  847. -disable-* | --disable-*)
  848. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  851. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  852. { (exit 1); exit 1; }; }
  853. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  854. eval enable_$ac_feature=no ;;
  855. -docdir | --docdir | --docdi | --doc | --do)
  856. ac_prev=docdir ;;
  857. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  858. docdir=$ac_optarg ;;
  859. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  860. ac_prev=dvidir ;;
  861. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  862. dvidir=$ac_optarg ;;
  863. -enable-* | --enable-*)
  864. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  867. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  868. { (exit 1); exit 1; }; }
  869. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  870. eval enable_$ac_feature=\$ac_optarg ;;
  871. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  872. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  873. | --exec | --exe | --ex)
  874. ac_prev=exec_prefix ;;
  875. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  876. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  877. | --exec=* | --exe=* | --ex=*)
  878. exec_prefix=$ac_optarg ;;
  879. -gas | --gas | --ga | --g)
  880. # Obsolete; use --with-gas.
  881. with_gas=yes ;;
  882. -help | --help | --hel | --he | -h)
  883. ac_init_help=long ;;
  884. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  885. ac_init_help=recursive ;;
  886. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  887. ac_init_help=short ;;
  888. -host | --host | --hos | --ho)
  889. ac_prev=host_alias ;;
  890. -host=* | --host=* | --hos=* | --ho=*)
  891. host_alias=$ac_optarg ;;
  892. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  893. ac_prev=htmldir ;;
  894. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  895. | --ht=*)
  896. htmldir=$ac_optarg ;;
  897. -includedir | --includedir | --includedi | --included | --include \
  898. | --includ | --inclu | --incl | --inc)
  899. ac_prev=includedir ;;
  900. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  901. | --includ=* | --inclu=* | --incl=* | --inc=*)
  902. includedir=$ac_optarg ;;
  903. -infodir | --infodir | --infodi | --infod | --info | --inf)
  904. ac_prev=infodir ;;
  905. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  906. infodir=$ac_optarg ;;
  907. -libdir | --libdir | --libdi | --libd)
  908. ac_prev=libdir ;;
  909. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  910. libdir=$ac_optarg ;;
  911. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  912. | --libexe | --libex | --libe)
  913. ac_prev=libexecdir ;;
  914. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  915. | --libexe=* | --libex=* | --libe=*)
  916. libexecdir=$ac_optarg ;;
  917. -localedir | --localedir | --localedi | --localed | --locale)
  918. ac_prev=localedir ;;
  919. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  920. localedir=$ac_optarg ;;
  921. -localstatedir | --localstatedir | --localstatedi | --localstated \
  922. | --localstate | --localstat | --localsta | --localst | --locals)
  923. ac_prev=localstatedir ;;
  924. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  925. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  926. localstatedir=$ac_optarg ;;
  927. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  928. ac_prev=mandir ;;
  929. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  930. mandir=$ac_optarg ;;
  931. -nfp | --nfp | --nf)
  932. # Obsolete; use --without-fp.
  933. with_fp=no ;;
  934. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  935. | --no-cr | --no-c | -n)
  936. no_create=yes ;;
  937. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  938. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  939. no_recursion=yes ;;
  940. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  941. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  942. | --oldin | --oldi | --old | --ol | --o)
  943. ac_prev=oldincludedir ;;
  944. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  945. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  946. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  947. oldincludedir=$ac_optarg ;;
  948. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  949. ac_prev=prefix ;;
  950. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  951. prefix=$ac_optarg ;;
  952. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  953. | --program-pre | --program-pr | --program-p)
  954. ac_prev=program_prefix ;;
  955. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  956. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  957. program_prefix=$ac_optarg ;;
  958. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  959. | --program-suf | --program-su | --program-s)
  960. ac_prev=program_suffix ;;
  961. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  962. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  963. program_suffix=$ac_optarg ;;
  964. -program-transform-name | --program-transform-name \
  965. | --program-transform-nam | --program-transform-na \
  966. | --program-transform-n | --program-transform- \
  967. | --program-transform | --program-transfor \
  968. | --program-transfo | --program-transf \
  969. | --program-trans | --program-tran \
  970. | --progr-tra | --program-tr | --program-t)
  971. ac_prev=program_transform_name ;;
  972. -program-transform-name=* | --program-transform-name=* \
  973. | --program-transform-nam=* | --program-transform-na=* \
  974. | --program-transform-n=* | --program-transform-=* \
  975. | --program-transform=* | --program-transfor=* \
  976. | --program-transfo=* | --program-transf=* \
  977. | --program-trans=* | --program-tran=* \
  978. | --progr-tra=* | --program-tr=* | --program-t=*)
  979. program_transform_name=$ac_optarg ;;
  980. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  981. ac_prev=pdfdir ;;
  982. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  983. pdfdir=$ac_optarg ;;
  984. -psdir | --psdir | --psdi | --psd | --ps)
  985. ac_prev=psdir ;;
  986. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  987. psdir=$ac_optarg ;;
  988. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  989. | -silent | --silent | --silen | --sile | --sil)
  990. silent=yes ;;
  991. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  992. ac_prev=sbindir ;;
  993. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  994. | --sbi=* | --sb=*)
  995. sbindir=$ac_optarg ;;
  996. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  997. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  998. | --sharedst | --shareds | --shared | --share | --shar \
  999. | --sha | --sh)
  1000. ac_prev=sharedstatedir ;;
  1001. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1002. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1003. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1004. | --sha=* | --sh=*)
  1005. sharedstatedir=$ac_optarg ;;
  1006. -site | --site | --sit)
  1007. ac_prev=site ;;
  1008. -site=* | --site=* | --sit=*)
  1009. site=$ac_optarg ;;
  1010. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1011. ac_prev=srcdir ;;
  1012. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1013. srcdir=$ac_optarg ;;
  1014. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1015. | --syscon | --sysco | --sysc | --sys | --sy)
  1016. ac_prev=sysconfdir ;;
  1017. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1018. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1019. sysconfdir=$ac_optarg ;;
  1020. -target | --target | --targe | --targ | --tar | --ta | --t)
  1021. ac_prev=target_alias ;;
  1022. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1023. target_alias=$ac_optarg ;;
  1024. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1025. verbose=yes ;;
  1026. -version | --version | --versio | --versi | --vers | -V)
  1027. ac_init_version=: ;;
  1028. -with-* | --with-*)
  1029. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1032. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1033. { (exit 1); exit 1; }; }
  1034. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1035. eval with_$ac_package=\$ac_optarg ;;
  1036. -without-* | --without-*)
  1037. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1040. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1041. { (exit 1); exit 1; }; }
  1042. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1043. eval with_$ac_package=no ;;
  1044. --x)
  1045. # Obsolete; use --with-x.
  1046. with_x=yes ;;
  1047. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1048. | --x-incl | --x-inc | --x-in | --x-i)
  1049. ac_prev=x_includes ;;
  1050. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1051. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1052. x_includes=$ac_optarg ;;
  1053. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1054. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1055. ac_prev=x_libraries ;;
  1056. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1057. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1058. x_libraries=$ac_optarg ;;
  1059. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1060. Try \`$0 --help' for more information." >&2
  1061. { (exit 1); exit 1; }; }
  1062. ;;
  1063. *=*)
  1064. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1067. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1068. { (exit 1); exit 1; }; }
  1069. eval $ac_envvar=\$ac_optarg
  1070. export $ac_envvar ;;
  1071. *)
  1072. # FIXME: should be removed in autoconf 3.0.
  1073. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1074. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1075. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1076. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1077. ;;
  1078. esac
  1079. done
  1080. if test -n "$ac_prev"; then
  1081. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1082. { echo "$as_me: error: missing argument to $ac_option" >&2
  1083. { (exit 1); exit 1; }; }
  1084. fi
  1085. # Be sure to have absolute directory names.
  1086. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1087. datadir sysconfdir sharedstatedir localstatedir includedir \
  1088. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1089. libdir localedir mandir
  1090. do
  1091. eval ac_val=\$$ac_var
  1092. case $ac_val in
  1093. [\\/$]* | ?:[\\/]* ) continue;;
  1094. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1095. esac
  1096. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1097. { (exit 1); exit 1; }; }
  1098. done
  1099. # There might be people who depend on the old broken behavior: `$host'
  1100. # used to hold the argument of --host etc.
  1101. # FIXME: To remove some day.
  1102. build=$build_alias
  1103. host=$host_alias
  1104. target=$target_alias
  1105. # FIXME: To remove some day.
  1106. if test "x$host_alias" != x; then
  1107. if test "x$build_alias" = x; then
  1108. cross_compiling=maybe
  1109. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1110. If a cross compiler is detected then cross compile mode will be used." >&2
  1111. elif test "x$build_alias" != "x$host_alias"; then
  1112. cross_compiling=yes
  1113. fi
  1114. fi
  1115. ac_tool_prefix=
  1116. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1117. test "$silent" = yes && exec 6>/dev/null
  1118. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1119. ac_ls_di=`ls -di .` &&
  1120. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1121. { echo "$as_me: error: Working directory cannot be determined" >&2
  1122. { (exit 1); exit 1; }; }
  1123. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1124. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1125. { (exit 1); exit 1; }; }
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$0" ||
  1131. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$0" : 'X\(//\)[^/]' \| \
  1133. X"$0" : 'X\(//\)$' \| \
  1134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1135. echo X"$0" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1163. { (exit 1); exit 1; }; }
  1164. fi
  1165. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1166. ac_abs_confdir=`(
  1167. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1168. { (exit 1); exit 1; }; }
  1169. pwd)`
  1170. # When building in place, set srcdir=.
  1171. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1172. srcdir=.
  1173. fi
  1174. # Remove unnecessary trailing slashes from srcdir.
  1175. # Double slashes in file names in object file debugging info
  1176. # mess up M-x gdb in Emacs.
  1177. case $srcdir in
  1178. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1179. esac
  1180. for ac_var in $ac_precious_vars; do
  1181. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_env_${ac_var}_value=\$${ac_var}
  1183. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1185. done
  1186. #
  1187. # Report the --help message.
  1188. #
  1189. if test "$ac_init_help" = "long"; then
  1190. # Omit some internal or obsolete options to make the list less imposing.
  1191. # This message is too long to be a string in the A/UX 3.1 sh.
  1192. cat <<_ACEOF
  1193. \`configure' configures aria2c 0.16.0b to adapt to many kinds of systems.
  1194. Usage: $0 [OPTION]... [VAR=VALUE]...
  1195. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1196. VAR=VALUE. See below for descriptions of some of the useful variables.
  1197. Defaults for the options are specified in brackets.
  1198. Configuration:
  1199. -h, --help display this help and exit
  1200. --help=short display options specific to this package
  1201. --help=recursive display the short help of all the included packages
  1202. -V, --version display version information and exit
  1203. -q, --quiet, --silent do not print \`checking...' messages
  1204. --cache-file=FILE cache test results in FILE [disabled]
  1205. -C, --config-cache alias for \`--cache-file=config.cache'
  1206. -n, --no-create do not create output files
  1207. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1208. Installation directories:
  1209. --prefix=PREFIX install architecture-independent files in PREFIX
  1210. [$ac_default_prefix]
  1211. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1212. [PREFIX]
  1213. By default, \`make install' will install all the files in
  1214. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1215. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1216. for instance \`--prefix=\$HOME'.
  1217. For better control, use the options below.
  1218. Fine tuning of the installation directories:
  1219. --bindir=DIR user executables [EPREFIX/bin]
  1220. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1221. --libexecdir=DIR program executables [EPREFIX/libexec]
  1222. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1223. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1224. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1225. --libdir=DIR object code libraries [EPREFIX/lib]
  1226. --includedir=DIR C header files [PREFIX/include]
  1227. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1228. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1229. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1230. --infodir=DIR info documentation [DATAROOTDIR/info]
  1231. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1232. --mandir=DIR man documentation [DATAROOTDIR/man]
  1233. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1234. --htmldir=DIR html documentation [DOCDIR]
  1235. --dvidir=DIR dvi documentation [DOCDIR]
  1236. --pdfdir=DIR pdf documentation [DOCDIR]
  1237. --psdir=DIR ps documentation [DOCDIR]
  1238. _ACEOF
  1239. cat <<\_ACEOF
  1240. Program names:
  1241. --program-prefix=PREFIX prepend PREFIX to installed program names
  1242. --program-suffix=SUFFIX append SUFFIX to installed program names
  1243. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1244. System types:
  1245. --build=BUILD configure for building on BUILD [guessed]
  1246. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1247. --target=TARGET configure for building compilers for TARGET [HOST]
  1248. _ACEOF
  1249. fi
  1250. if test -n "$ac_init_help"; then
  1251. case $ac_init_help in
  1252. short | recursive ) echo "Configuration of aria2c 0.16.0b:";;
  1253. esac
  1254. cat <<\_ACEOF
  1255. Optional Features:
  1256. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1257. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1258. --enable-bittorrent enable bittorrent support.
  1259. --enable-metalink enable metalink support.
  1260. --enable-epoll enable epoll support.
  1261. --disable-dependency-tracking speeds up one-time build
  1262. --enable-dependency-tracking do not reject slow dependency extractors
  1263. --disable-xmltest Do not try to compile and run a test LIBXML program
  1264. --disable-largefile omit support for large files
  1265. --disable-nls do not use Native Language Support
  1266. --enable-threads={posix|solaris|pth|win32}
  1267. specify multithreading API
  1268. --disable-threads build without multithread safety
  1269. --disable-rpath do not hardcode runtime library paths
  1270. Optional Packages:
  1271. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1272. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1273. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1274. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1275. --with-gnutls use gnutls if it is installed.
  1276. --with-openssl use openssl if it is installed.
  1277. --with-sqlite3 use sqlite3 if it is installed.
  1278. --with-libxml2 use libxml2 if it is installed.
  1279. --with-libexpat use libexpat if it is installed.
  1280. --with-libares use libares if it is installed.
  1281. --with-libcares use libcares if it is installed.
  1282. --with-libz use libz if it is installed.
  1283. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1284. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1285. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1286. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1287. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1288. --with-libgcrypt-prefix=PFX
  1289. prefix where LIBGCRYPT is installed (optional)
  1290. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1291. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1292. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1293. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1294. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1295. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1296. --without-libpth-prefix don't search for libpth in includedir and libdir
  1297. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1298. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1299. --with-included-gettext use the GNU gettext library included here
  1300. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1301. --without-libintl-prefix don't search for libintl in includedir and libdir
  1302. Some influential environment variables:
  1303. CXX C++ compiler command
  1304. CXXFLAGS C++ compiler flags
  1305. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1306. nonstandard directory <lib dir>
  1307. LIBS libraries to pass to the linker, e.g. -l<library>
  1308. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1309. you have headers in a nonstandard directory <include dir>
  1310. CC C compiler command
  1311. CFLAGS C compiler flags
  1312. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1313. the first program found out of: `bison -y', `byacc', `yacc'.
  1314. YFLAGS The list of arguments that will be passed by default to $YACC.
  1315. This script will default YFLAGS to the empty string to avoid a
  1316. default value of `-d' given by some make applications.
  1317. CXXCPP C++ preprocessor
  1318. Use these variables to override the choices made by `configure' or to help
  1319. it to find libraries and programs with nonstandard names/locations.
  1320. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1321. _ACEOF
  1322. ac_status=$?
  1323. fi
  1324. if test "$ac_init_help" = "recursive"; then
  1325. # If there are subdirs, report their specific --help.
  1326. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1327. test -d "$ac_dir" || continue
  1328. ac_builddir=.
  1329. case "$ac_dir" in
  1330. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *)
  1332. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1333. # A ".." for each directory in $ac_dir_suffix.
  1334. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1335. case $ac_top_builddir_sub in
  1336. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1337. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1338. esac ;;
  1339. esac
  1340. ac_abs_top_builddir=$ac_pwd
  1341. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1342. # for backward compatibility:
  1343. ac_top_builddir=$ac_top_build_prefix
  1344. case $srcdir in
  1345. .) # We are building in place.
  1346. ac_srcdir=.
  1347. ac_top_srcdir=$ac_top_builddir_sub
  1348. ac_abs_top_srcdir=$ac_pwd ;;
  1349. [\\/]* | ?:[\\/]* ) # Absolute name.
  1350. ac_srcdir=$srcdir$ac_dir_suffix;
  1351. ac_top_srcdir=$srcdir
  1352. ac_abs_top_srcdir=$srcdir ;;
  1353. *) # Relative name.
  1354. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1355. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1356. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1357. esac
  1358. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1359. cd "$ac_dir" || { ac_status=$?; continue; }
  1360. # Check for guested configure.
  1361. if test -f "$ac_srcdir/configure.gnu"; then
  1362. echo &&
  1363. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1364. elif test -f "$ac_srcdir/configure"; then
  1365. echo &&
  1366. $SHELL "$ac_srcdir/configure" --help=recursive
  1367. else
  1368. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1369. fi || ac_status=$?
  1370. cd "$ac_pwd" || { ac_status=$?; break; }
  1371. done
  1372. fi
  1373. test -n "$ac_init_help" && exit $ac_status
  1374. if $ac_init_version; then
  1375. cat <<\_ACEOF
  1376. aria2c configure 0.16.0b
  1377. generated by GNU Autoconf 2.61
  1378. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1379. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1380. This configure script is free software; the Free Software Foundation
  1381. gives unlimited permission to copy, distribute and modify it.
  1382. _ACEOF
  1383. exit
  1384. fi
  1385. cat >config.log <<_ACEOF
  1386. This file contains any messages produced by compilers while
  1387. running configure, to aid debugging if configure makes a mistake.
  1388. It was created by aria2c $as_me 0.16.0b, which was
  1389. generated by GNU Autoconf 2.61. Invocation command line was
  1390. $ $0 $@
  1391. _ACEOF
  1392. exec 5>>config.log
  1393. {
  1394. cat <<_ASUNAME
  1395. ## --------- ##
  1396. ## Platform. ##
  1397. ## --------- ##
  1398. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1399. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1400. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1401. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1402. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1403. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1404. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1405. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1406. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1407. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1408. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1409. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1410. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1411. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1412. _ASUNAME
  1413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1414. for as_dir in $PATH
  1415. do
  1416. IFS=$as_save_IFS
  1417. test -z "$as_dir" && as_dir=.
  1418. echo "PATH: $as_dir"
  1419. done
  1420. IFS=$as_save_IFS
  1421. } >&5
  1422. cat >&5 <<_ACEOF
  1423. ## ----------- ##
  1424. ## Core tests. ##
  1425. ## ----------- ##
  1426. _ACEOF
  1427. # Keep a trace of the command line.
  1428. # Strip out --no-create and --no-recursion so they do not pile up.
  1429. # Strip out --silent because we don't want to record it for future runs.
  1430. # Also quote any args containing shell meta-characters.
  1431. # Make two passes to allow for proper duplicate-argument suppression.
  1432. ac_configure_args=
  1433. ac_configure_args0=
  1434. ac_configure_args1=
  1435. ac_must_keep_next=false
  1436. for ac_pass in 1 2
  1437. do
  1438. for ac_arg
  1439. do
  1440. case $ac_arg in
  1441. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1442. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1443. | -silent | --silent | --silen | --sile | --sil)
  1444. continue ;;
  1445. *\'*)
  1446. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1447. esac
  1448. case $ac_pass in
  1449. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1450. 2)
  1451. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1452. if test $ac_must_keep_next = true; then
  1453. ac_must_keep_next=false # Got value, back to normal.
  1454. else
  1455. case $ac_arg in
  1456. *=* | --config-cache | -C | -disable-* | --disable-* \
  1457. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1458. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1459. | -with-* | --with-* | -without-* | --without-* | --x)
  1460. case "$ac_configure_args0 " in
  1461. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1462. esac
  1463. ;;
  1464. -* ) ac_must_keep_next=true ;;
  1465. esac
  1466. fi
  1467. ac_configure_args="$ac_configure_args '$ac_arg'"
  1468. ;;
  1469. esac
  1470. done
  1471. done
  1472. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1473. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1474. # When interrupted or exit'd, cleanup temporary files, and complete
  1475. # config.log. We remove comments because anyway the quotes in there
  1476. # would cause problems or look ugly.
  1477. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1478. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1479. trap 'exit_status=$?
  1480. # Save into config.log some information that might help in debugging.
  1481. {
  1482. echo
  1483. cat <<\_ASBOX
  1484. ## ---------------- ##
  1485. ## Cache variables. ##
  1486. ## ---------------- ##
  1487. _ASBOX
  1488. echo
  1489. # The following way of writing the cache mishandles newlines in values,
  1490. (
  1491. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1492. eval ac_val=\$$ac_var
  1493. case $ac_val in #(
  1494. *${as_nl}*)
  1495. case $ac_var in #(
  1496. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1497. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1498. esac
  1499. case $ac_var in #(
  1500. _ | IFS | as_nl) ;; #(
  1501. *) $as_unset $ac_var ;;
  1502. esac ;;
  1503. esac
  1504. done
  1505. (set) 2>&1 |
  1506. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1507. *${as_nl}ac_space=\ *)
  1508. sed -n \
  1509. "s/'\''/'\''\\\\'\'''\''/g;
  1510. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1511. ;; #(
  1512. *)
  1513. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1514. ;;
  1515. esac |
  1516. sort
  1517. )
  1518. echo
  1519. cat <<\_ASBOX
  1520. ## ----------------- ##
  1521. ## Output variables. ##
  1522. ## ----------------- ##
  1523. _ASBOX
  1524. echo
  1525. for ac_var in $ac_subst_vars
  1526. do
  1527. eval ac_val=\$$ac_var
  1528. case $ac_val in
  1529. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1530. esac
  1531. echo "$ac_var='\''$ac_val'\''"
  1532. done | sort
  1533. echo
  1534. if test -n "$ac_subst_files"; then
  1535. cat <<\_ASBOX
  1536. ## ------------------- ##
  1537. ## File substitutions. ##
  1538. ## ------------------- ##
  1539. _ASBOX
  1540. echo
  1541. for ac_var in $ac_subst_files
  1542. do
  1543. eval ac_val=\$$ac_var
  1544. case $ac_val in
  1545. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1546. esac
  1547. echo "$ac_var='\''$ac_val'\''"
  1548. done | sort
  1549. echo
  1550. fi
  1551. if test -s confdefs.h; then
  1552. cat <<\_ASBOX
  1553. ## ----------- ##
  1554. ## confdefs.h. ##
  1555. ## ----------- ##
  1556. _ASBOX
  1557. echo
  1558. cat confdefs.h
  1559. echo
  1560. fi
  1561. test "$ac_signal" != 0 &&
  1562. echo "$as_me: caught signal $ac_signal"
  1563. echo "$as_me: exit $exit_status"
  1564. } >&5
  1565. rm -f core *.core core.conftest.* &&
  1566. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1567. exit $exit_status
  1568. ' 0
  1569. for ac_signal in 1 2 13 15; do
  1570. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1571. done
  1572. ac_signal=0
  1573. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1574. rm -f -r conftest* confdefs.h
  1575. # Predefined preprocessor variables.
  1576. cat >>confdefs.h <<_ACEOF
  1577. #define PACKAGE_NAME "$PACKAGE_NAME"
  1578. _ACEOF
  1579. cat >>confdefs.h <<_ACEOF
  1580. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1581. _ACEOF
  1582. cat >>confdefs.h <<_ACEOF
  1583. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1584. _ACEOF
  1585. cat >>confdefs.h <<_ACEOF
  1586. #define PACKAGE_STRING "$PACKAGE_STRING"
  1587. _ACEOF
  1588. cat >>confdefs.h <<_ACEOF
  1589. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1590. _ACEOF
  1591. # Let the site file select an alternate cache file if it wants to.
  1592. # Prefer explicitly selected file to automatically selected ones.
  1593. if test -n "$CONFIG_SITE"; then
  1594. set x "$CONFIG_SITE"
  1595. elif test "x$prefix" != xNONE; then
  1596. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1597. else
  1598. set x "$ac_default_prefix/share/config.site" \
  1599. "$ac_default_prefix/etc/config.site"
  1600. fi
  1601. shift
  1602. for ac_site_file
  1603. do
  1604. if test -r "$ac_site_file"; then
  1605. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1606. echo "$as_me: loading site script $ac_site_file" >&6;}
  1607. sed 's/^/| /' "$ac_site_file" >&5
  1608. . "$ac_site_file"
  1609. fi
  1610. done
  1611. if test -r "$cache_file"; then
  1612. # Some versions of bash will fail to source /dev/null (special
  1613. # files actually), so we avoid doing that.
  1614. if test -f "$cache_file"; then
  1615. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1616. echo "$as_me: loading cache $cache_file" >&6;}
  1617. case $cache_file in
  1618. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1619. *) . "./$cache_file";;
  1620. esac
  1621. fi
  1622. else
  1623. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1624. echo "$as_me: creating cache $cache_file" >&6;}
  1625. >$cache_file
  1626. fi
  1627. gt_needs="$gt_needs "
  1628. ac_header_list="$ac_header_list sys/time.h"
  1629. ac_header_list="$ac_header_list unistd.h"
  1630. ac_func_list="$ac_func_list alarm"
  1631. # Check that the precious variables saved in the cache have kept the same
  1632. # value.
  1633. ac_cache_corrupted=false
  1634. for ac_var in $ac_precious_vars; do
  1635. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1636. eval ac_new_set=\$ac_env_${ac_var}_set
  1637. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1638. eval ac_new_val=\$ac_env_${ac_var}_value
  1639. case $ac_old_set,$ac_new_set in
  1640. set,)
  1641. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1642. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1643. ac_cache_corrupted=: ;;
  1644. ,set)
  1645. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1646. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1647. ac_cache_corrupted=: ;;
  1648. ,);;
  1649. *)
  1650. if test "x$ac_old_val" != "x$ac_new_val"; then
  1651. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1652. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1653. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1654. echo "$as_me: former value: $ac_old_val" >&2;}
  1655. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1656. echo "$as_me: current value: $ac_new_val" >&2;}
  1657. ac_cache_corrupted=:
  1658. fi;;
  1659. esac
  1660. # Pass precious variables to config.status.
  1661. if test "$ac_new_set" = set; then
  1662. case $ac_new_val in
  1663. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1664. *) ac_arg=$ac_var=$ac_new_val ;;
  1665. esac
  1666. case " $ac_configure_args " in
  1667. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1668. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1669. esac
  1670. fi
  1671. done
  1672. if $ac_cache_corrupted; then
  1673. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1674. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1675. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1676. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1677. { (exit 1); exit 1; }; }
  1678. fi
  1679. ac_ext=c
  1680. ac_cpp='$CPP $CPPFLAGS'
  1681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1684. ac_aux_dir=
  1685. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1686. if test -f "$ac_dir/install-sh"; then
  1687. ac_aux_dir=$ac_dir
  1688. ac_install_sh="$ac_aux_dir/install-sh -c"
  1689. break
  1690. elif test -f "$ac_dir/install.sh"; then
  1691. ac_aux_dir=$ac_dir
  1692. ac_install_sh="$ac_aux_dir/install.sh -c"
  1693. break
  1694. elif test -f "$ac_dir/shtool"; then
  1695. ac_aux_dir=$ac_dir
  1696. ac_install_sh="$ac_aux_dir/shtool install -c"
  1697. break
  1698. fi
  1699. done
  1700. if test -z "$ac_aux_dir"; then
  1701. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1702. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1703. { (exit 1); exit 1; }; }
  1704. fi
  1705. # These three variables are undocumented and unsupported,
  1706. # and are intended to be withdrawn in a future Autoconf release.
  1707. # They can cause serious problems if a builder's source tree is in a directory
  1708. # whose full name contains unusual characters.
  1709. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1710. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1711. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1712. # Make sure we can run config.sub.
  1713. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1714. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1715. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1716. { (exit 1); exit 1; }; }
  1717. { echo "$as_me:$LINENO: checking build system type" >&5
  1718. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1719. if test "${ac_cv_build+set}" = set; then
  1720. echo $ECHO_N "(cached) $ECHO_C" >&6
  1721. else
  1722. ac_build_alias=$build_alias
  1723. test "x$ac_build_alias" = x &&
  1724. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1725. test "x$ac_build_alias" = x &&
  1726. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1727. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1728. { (exit 1); exit 1; }; }
  1729. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1730. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1731. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1732. { (exit 1); exit 1; }; }
  1733. fi
  1734. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1735. echo "${ECHO_T}$ac_cv_build" >&6; }
  1736. case $ac_cv_build in
  1737. *-*-*) ;;
  1738. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1739. echo "$as_me: error: invalid value of canonical build" >&2;}
  1740. { (exit 1); exit 1; }; };;
  1741. esac
  1742. build=$ac_cv_build
  1743. ac_save_IFS=$IFS; IFS='-'
  1744. set x $ac_cv_build
  1745. shift
  1746. build_cpu=$1
  1747. build_vendor=$2
  1748. shift; shift
  1749. # Remember, the first character of IFS is used to create $*,
  1750. # except with old shells:
  1751. build_os=$*
  1752. IFS=$ac_save_IFS
  1753. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1754. { echo "$as_me:$LINENO: checking host system type" >&5
  1755. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1756. if test "${ac_cv_host+set}" = set; then
  1757. echo $ECHO_N "(cached) $ECHO_C" >&6
  1758. else
  1759. if test "x$host_alias" = x; then
  1760. ac_cv_host=$ac_cv_build
  1761. else
  1762. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1763. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1764. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1765. { (exit 1); exit 1; }; }
  1766. fi
  1767. fi
  1768. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1769. echo "${ECHO_T}$ac_cv_host" >&6; }
  1770. case $ac_cv_host in
  1771. *-*-*) ;;
  1772. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1773. echo "$as_me: error: invalid value of canonical host" >&2;}
  1774. { (exit 1); exit 1; }; };;
  1775. esac
  1776. host=$ac_cv_host
  1777. ac_save_IFS=$IFS; IFS='-'
  1778. set x $ac_cv_host
  1779. shift
  1780. host_cpu=$1
  1781. host_vendor=$2
  1782. shift; shift
  1783. # Remember, the first character of IFS is used to create $*,
  1784. # except with old shells:
  1785. host_os=$*
  1786. IFS=$ac_save_IFS
  1787. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1788. { echo "$as_me:$LINENO: checking target system type" >&5
  1789. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1790. if test "${ac_cv_target+set}" = set; then
  1791. echo $ECHO_N "(cached) $ECHO_C" >&6
  1792. else
  1793. if test "x$target_alias" = x; then
  1794. ac_cv_target=$ac_cv_host
  1795. else
  1796. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1797. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1798. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1799. { (exit 1); exit 1; }; }
  1800. fi
  1801. fi
  1802. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1803. echo "${ECHO_T}$ac_cv_target" >&6; }
  1804. case $ac_cv_target in
  1805. *-*-*) ;;
  1806. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1807. echo "$as_me: error: invalid value of canonical target" >&2;}
  1808. { (exit 1); exit 1; }; };;
  1809. esac
  1810. target=$ac_cv_target
  1811. ac_save_IFS=$IFS; IFS='-'
  1812. set x $ac_cv_target
  1813. shift
  1814. target_cpu=$1
  1815. target_vendor=$2
  1816. shift; shift
  1817. # Remember, the first character of IFS is used to create $*,
  1818. # except with old shells:
  1819. target_os=$*
  1820. IFS=$ac_save_IFS
  1821. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1822. # The aliases save the names the user supplied, while $host etc.
  1823. # will get canonicalized.
  1824. test -n "$target_alias" &&
  1825. test "$program_prefix$program_suffix$program_transform_name" = \
  1826. NONENONEs,x,x, &&
  1827. program_prefix=${target_alias}-
  1828. am__api_version='1.10'
  1829. # Find a good install program. We prefer a C program (faster),
  1830. # so one script is as good as another. But avoid the broken or
  1831. # incompatible versions:
  1832. # SysV /etc/install, /usr/sbin/install
  1833. # SunOS /usr/etc/install
  1834. # IRIX /sbin/install
  1835. # AIX /bin/install
  1836. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1837. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1838. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1839. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1840. # OS/2's system install, which has a completely different semantic
  1841. # ./install, which can be erroneously created by make from ./install.sh.
  1842. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1843. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1844. if test -z "$INSTALL"; then
  1845. if test "${ac_cv_path_install+set}" = set; then
  1846. echo $ECHO_N "(cached) $ECHO_C" >&6
  1847. else
  1848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1849. for as_dir in $PATH
  1850. do
  1851. IFS=$as_save_IFS
  1852. test -z "$as_dir" && as_dir=.
  1853. # Account for people who put trailing slashes in PATH elements.
  1854. case $as_dir/ in
  1855. ./ | .// | /cC/* | \
  1856. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1857. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1858. /usr/ucb/* ) ;;
  1859. *)
  1860. # OSF1 and SCO ODT 3.0 have their own names for install.
  1861. # Don't use installbsd from OSF since it installs stuff as root
  1862. # by default.
  1863. for ac_prog in ginstall scoinst install; do
  1864. for ac_exec_ext in '' $ac_executable_extensions; do
  1865. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1866. if test $ac_prog = install &&
  1867. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1868. # AIX install. It has an incompatible calling convention.
  1869. :
  1870. elif test $ac_prog = install &&
  1871. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1872. # program-specific install script used by HP pwplus--don't use.
  1873. :
  1874. else
  1875. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1876. break 3
  1877. fi
  1878. fi
  1879. done
  1880. done
  1881. ;;
  1882. esac
  1883. done
  1884. IFS=$as_save_IFS
  1885. fi
  1886. if test "${ac_cv_path_install+set}" = set; then
  1887. INSTALL=$ac_cv_path_install
  1888. else
  1889. # As a last resort, use the slow shell script. Don't cache a
  1890. # value for INSTALL within a source directory, because that will
  1891. # break other packages using the cache if that directory is
  1892. # removed, or if the value is a relative name.
  1893. INSTALL=$ac_install_sh
  1894. fi
  1895. fi
  1896. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1897. echo "${ECHO_T}$INSTALL" >&6; }
  1898. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1899. # It thinks the first close brace ends the variable substitution.
  1900. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1901. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1902. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1903. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1904. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1905. # Just in case
  1906. sleep 1
  1907. echo timestamp > conftest.file
  1908. # Do `set' in a subshell so we don't clobber the current shell's
  1909. # arguments. Must try -L first in case configure is actually a
  1910. # symlink; some systems play weird games with the mod time of symlinks
  1911. # (eg FreeBSD returns the mod time of the symlink's containing
  1912. # directory).
  1913. if (
  1914. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1915. if test "$*" = "X"; then
  1916. # -L didn't work.
  1917. set X `ls -t $srcdir/configure conftest.file`
  1918. fi
  1919. rm -f conftest.file
  1920. if test "$*" != "X $srcdir/configure conftest.file" \
  1921. && test "$*" != "X conftest.file $srcdir/configure"; then
  1922. # If neither matched, then we have a broken ls. This can happen
  1923. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1924. # broken ls alias from the environment. This has actually
  1925. # happened. Such a system could not be considered "sane".
  1926. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1927. alias in your environment" >&5
  1928. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1929. alias in your environment" >&2;}
  1930. { (exit 1); exit 1; }; }
  1931. fi
  1932. test "$2" = conftest.file
  1933. )
  1934. then
  1935. # Ok.
  1936. :
  1937. else
  1938. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1939. Check your system clock" >&5
  1940. echo "$as_me: error: newly created file is older than distributed files!
  1941. Check your system clock" >&2;}
  1942. { (exit 1); exit 1; }; }
  1943. fi
  1944. { echo "$as_me:$LINENO: result: yes" >&5
  1945. echo "${ECHO_T}yes" >&6; }
  1946. test "$program_prefix" != NONE &&
  1947. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1948. # Use a double $ so make ignores it.
  1949. test "$program_suffix" != NONE &&
  1950. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1951. # Double any \ or $. echo might interpret backslashes.
  1952. # By default was `s,x,x', remove it if useless.
  1953. cat <<\_ACEOF >conftest.sed
  1954. s/[\\$]/&&/g;s/;s,x,x,$//
  1955. _ACEOF
  1956. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1957. rm -f conftest.sed
  1958. # expand $ac_aux_dir to an absolute path
  1959. am_aux_dir=`cd $ac_aux_dir && pwd`
  1960. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1961. # Use eval to expand $SHELL
  1962. if eval "$MISSING --run true"; then
  1963. am_missing_run="$MISSING --run "
  1964. else
  1965. am_missing_run=
  1966. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1967. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1968. fi
  1969. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1970. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1971. if test -z "$MKDIR_P"; then
  1972. if test "${ac_cv_path_mkdir+set}" = set; then
  1973. echo $ECHO_N "(cached) $ECHO_C" >&6
  1974. else
  1975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1976. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1977. do
  1978. IFS=$as_save_IFS
  1979. test -z "$as_dir" && as_dir=.
  1980. for ac_prog in mkdir gmkdir; do
  1981. for ac_exec_ext in '' $ac_executable_extensions; do
  1982. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1983. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1984. 'mkdir (GNU coreutils) '* | \
  1985. 'mkdir (coreutils) '* | \
  1986. 'mkdir (fileutils) '4.1*)
  1987. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1988. break 3;;
  1989. esac
  1990. done
  1991. done
  1992. done
  1993. IFS=$as_save_IFS
  1994. fi
  1995. if test "${ac_cv_path_mkdir+set}" = set; then
  1996. MKDIR_P="$ac_cv_path_mkdir -p"
  1997. else
  1998. # As a last resort, use the slow shell script. Don't cache a
  1999. # value for MKDIR_P within a source directory, because that will
  2000. # break other packages using the cache if that directory is
  2001. # removed, or if the value is a relative name.
  2002. test -d ./--version && rmdir ./--version
  2003. MKDIR_P="$ac_install_sh -d"
  2004. fi
  2005. fi
  2006. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2007. echo "${ECHO_T}$MKDIR_P" >&6; }
  2008. mkdir_p="$MKDIR_P"
  2009. case $mkdir_p in
  2010. [\\/$]* | ?:[\\/]*) ;;
  2011. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2012. esac
  2013. for ac_prog in gawk mawk nawk awk
  2014. do
  2015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2016. set dummy $ac_prog; ac_word=$2
  2017. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2018. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2019. if test "${ac_cv_prog_AWK+set}" = set; then
  2020. echo $ECHO_N "(cached) $ECHO_C" >&6
  2021. else
  2022. if test -n "$AWK"; then
  2023. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2024. else
  2025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2026. for as_dir in $PATH
  2027. do
  2028. IFS=$as_save_IFS
  2029. test -z "$as_dir" && as_dir=.
  2030. for ac_exec_ext in '' $ac_executable_extensions; do
  2031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2032. ac_cv_prog_AWK="$ac_prog"
  2033. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2034. break 2
  2035. fi
  2036. done
  2037. done
  2038. IFS=$as_save_IFS
  2039. fi
  2040. fi
  2041. AWK=$ac_cv_prog_AWK
  2042. if test -n "$AWK"; then
  2043. { echo "$as_me:$LINENO: result: $AWK" >&5
  2044. echo "${ECHO_T}$AWK" >&6; }
  2045. else
  2046. { echo "$as_me:$LINENO: result: no" >&5
  2047. echo "${ECHO_T}no" >&6; }
  2048. fi
  2049. test -n "$AWK" && break
  2050. done
  2051. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2052. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2053. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2054. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2055. echo $ECHO_N "(cached) $ECHO_C" >&6
  2056. else
  2057. cat >conftest.make <<\_ACEOF
  2058. SHELL = /bin/sh
  2059. all:
  2060. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2061. _ACEOF
  2062. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2063. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2064. *@@@%%%=?*=@@@%%%*)
  2065. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2066. *)
  2067. eval ac_cv_prog_make_${ac_make}_set=no;;
  2068. esac
  2069. rm -f conftest.make
  2070. fi
  2071. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2072. { echo "$as_me:$LINENO: result: yes" >&5
  2073. echo "${ECHO_T}yes" >&6; }
  2074. SET_MAKE=
  2075. else
  2076. { echo "$as_me:$LINENO: result: no" >&5
  2077. echo "${ECHO_T}no" >&6; }
  2078. SET_MAKE="MAKE=${MAKE-make}"
  2079. fi
  2080. rm -rf .tst 2>/dev/null
  2081. mkdir .tst 2>/dev/null
  2082. if test -d .tst; then
  2083. am__leading_dot=.
  2084. else
  2085. am__leading_dot=_
  2086. fi
  2087. rmdir .tst 2>/dev/null
  2088. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2089. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2090. # is not polluted with repeated "-I."
  2091. am__isrc=' -I$(srcdir)'
  2092. # test to see if srcdir already configured
  2093. if test -f $srcdir/config.status; then
  2094. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2095. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2096. { (exit 1); exit 1; }; }
  2097. fi
  2098. fi
  2099. # test whether we have cygpath
  2100. if test -z "$CYGPATH_W"; then
  2101. if (cygpath --version) >/dev/null 2>/dev/null; then
  2102. CYGPATH_W='cygpath -w'
  2103. else
  2104. CYGPATH_W=echo
  2105. fi
  2106. fi
  2107. # Define the identity of the package.
  2108. PACKAGE='aria2c'
  2109. VERSION='0.16.0b'
  2110. cat >>confdefs.h <<_ACEOF
  2111. #define PACKAGE "$PACKAGE"
  2112. _ACEOF
  2113. cat >>confdefs.h <<_ACEOF
  2114. #define VERSION "$VERSION"
  2115. _ACEOF
  2116. # Some tools Automake needs.
  2117. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2118. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2119. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2120. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2121. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2122. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2123. # Installed binaries are usually stripped using `strip' when the user
  2124. # run `make install-strip'. However `strip' might not be the right
  2125. # tool to use in cross-compilation environments, therefore Automake
  2126. # will honor the `STRIP' environment variable to overrule this program.
  2127. if test "$cross_compiling" != no; then
  2128. if test -n "$ac_tool_prefix"; then
  2129. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2130. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2131. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2132. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2133. if test "${ac_cv_prog_STRIP+set}" = set; then
  2134. echo $ECHO_N "(cached) $ECHO_C" >&6
  2135. else
  2136. if test -n "$STRIP"; then
  2137. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2138. else
  2139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140. for as_dir in $PATH
  2141. do
  2142. IFS=$as_save_IFS
  2143. test -z "$as_dir" && as_dir=.
  2144. for ac_exec_ext in '' $ac_executable_extensions; do
  2145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2146. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2147. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2148. break 2
  2149. fi
  2150. done
  2151. done
  2152. IFS=$as_save_IFS
  2153. fi
  2154. fi
  2155. STRIP=$ac_cv_prog_STRIP
  2156. if test -n "$STRIP"; then
  2157. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2158. echo "${ECHO_T}$STRIP" >&6; }
  2159. else
  2160. { echo "$as_me:$LINENO: result: no" >&5
  2161. echo "${ECHO_T}no" >&6; }
  2162. fi
  2163. fi
  2164. if test -z "$ac_cv_prog_STRIP"; then
  2165. ac_ct_STRIP=$STRIP
  2166. # Extract the first word of "strip", so it can be a program name with args.
  2167. set dummy strip; ac_word=$2
  2168. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2170. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2171. echo $ECHO_N "(cached) $ECHO_C" >&6
  2172. else
  2173. if test -n "$ac_ct_STRIP"; then
  2174. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2175. else
  2176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2177. for as_dir in $PATH
  2178. do
  2179. IFS=$as_save_IFS
  2180. test -z "$as_dir" && as_dir=.
  2181. for ac_exec_ext in '' $ac_executable_extensions; do
  2182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2183. ac_cv_prog_ac_ct_STRIP="strip"
  2184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2185. break 2
  2186. fi
  2187. done
  2188. done
  2189. IFS=$as_save_IFS
  2190. fi
  2191. fi
  2192. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2193. if test -n "$ac_ct_STRIP"; then
  2194. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2195. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2196. else
  2197. { echo "$as_me:$LINENO: result: no" >&5
  2198. echo "${ECHO_T}no" >&6; }
  2199. fi
  2200. if test "x$ac_ct_STRIP" = x; then
  2201. STRIP=":"
  2202. else
  2203. case $cross_compiling:$ac_tool_warned in
  2204. yes:)
  2205. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2206. whose name does not start with the host triplet. If you think this
  2207. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2208. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2209. whose name does not start with the host triplet. If you think this
  2210. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2211. ac_tool_warned=yes ;;
  2212. esac
  2213. STRIP=$ac_ct_STRIP
  2214. fi
  2215. else
  2216. STRIP="$ac_cv_prog_STRIP"
  2217. fi
  2218. fi
  2219. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2220. # We need awk for the "check" target. The system "awk" is bad on
  2221. # some platforms.
  2222. # Always define AMTAR for backward compatibility.
  2223. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2224. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2225. # Check whether --with-cppunit-prefix was given.
  2226. if test "${with_cppunit_prefix+set}" = set; then
  2227. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2228. else
  2229. cppunit_config_prefix=""
  2230. fi
  2231. # Check whether --with-cppunit-exec-prefix was given.
  2232. if test "${with_cppunit_exec_prefix+set}" = set; then
  2233. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2234. else
  2235. cppunit_config_exec_prefix=""
  2236. fi
  2237. if test x$cppunit_config_exec_prefix != x ; then
  2238. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2239. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2240. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2241. fi
  2242. fi
  2243. if test x$cppunit_config_prefix != x ; then
  2244. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2245. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2246. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2247. fi
  2248. fi
  2249. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2250. set dummy cppunit-config; ac_word=$2
  2251. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2252. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2253. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2254. echo $ECHO_N "(cached) $ECHO_C" >&6
  2255. else
  2256. case $CPPUNIT_CONFIG in
  2257. [\\/]* | ?:[\\/]*)
  2258. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2259. ;;
  2260. *)
  2261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2262. for as_dir in $PATH
  2263. do
  2264. IFS=$as_save_IFS
  2265. test -z "$as_dir" && as_dir=.
  2266. for ac_exec_ext in '' $ac_executable_extensions; do
  2267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2268. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2269. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2270. break 2
  2271. fi
  2272. done
  2273. done
  2274. IFS=$as_save_IFS
  2275. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2276. ;;
  2277. esac
  2278. fi
  2279. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2280. if test -n "$CPPUNIT_CONFIG"; then
  2281. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2282. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2283. else
  2284. { echo "$as_me:$LINENO: result: no" >&5
  2285. echo "${ECHO_T}no" >&6; }
  2286. fi
  2287. cppunit_version_min=1.10.2
  2288. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2289. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2290. no_cppunit=""
  2291. if test "$CPPUNIT_CONFIG" = "no" ; then
  2292. { echo "$as_me:$LINENO: result: no" >&5
  2293. echo "${ECHO_T}no" >&6; }
  2294. no_cppunit=yes
  2295. else
  2296. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2297. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2298. cppunit_version=`$CPPUNIT_CONFIG --version`
  2299. cppunit_major_version=`echo $cppunit_version | \
  2300. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2301. cppunit_minor_version=`echo $cppunit_version | \
  2302. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2303. cppunit_micro_version=`echo $cppunit_version | \
  2304. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2305. cppunit_major_min=`echo $cppunit_version_min | \
  2306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2307. if test "x${cppunit_major_min}" = "x" ; then
  2308. cppunit_major_min=0
  2309. fi
  2310. cppunit_minor_min=`echo $cppunit_version_min | \
  2311. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2312. if test "x${cppunit_minor_min}" = "x" ; then
  2313. cppunit_minor_min=0
  2314. fi
  2315. cppunit_micro_min=`echo $cppunit_version_min | \
  2316. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2317. if test "x${cppunit_micro_min}" = "x" ; then
  2318. cppunit_micro_min=0
  2319. fi
  2320. cppunit_version_proper=`expr \
  2321. $cppunit_major_version \> $cppunit_major_min \| \
  2322. $cppunit_major_version \= $cppunit_major_min \& \
  2323. $cppunit_minor_version \> $cppunit_minor_min \| \
  2324. $cppunit_major_version \= $cppunit_major_min \& \
  2325. $cppunit_minor_version \= $cppunit_minor_min \& \
  2326. $cppunit_micro_version \>= $cppunit_micro_min `
  2327. if test "$cppunit_version_proper" = "1" ; then
  2328. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2329. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2330. else
  2331. { echo "$as_me:$LINENO: result: no" >&5
  2332. echo "${ECHO_T}no" >&6; }
  2333. no_cppunit=yes
  2334. fi
  2335. fi
  2336. if test "x$no_cppunit" = x ; then
  2337. :
  2338. else
  2339. CPPUNIT_CFLAGS=""
  2340. CPPUNIT_LIBS=""
  2341. :
  2342. fi
  2343. ac_config_headers="$ac_config_headers config.h"
  2344. case "$target" in
  2345. *mingw*|*cygwin*)
  2346. WINSOCK_LIBS="-lws2_32 -lpthread"
  2347. ;;
  2348. esac
  2349. cat >>confdefs.h <<_ACEOF
  2350. #define TARGET "$target"
  2351. _ACEOF
  2352. # Set localedir
  2353. localedir=${datadir}/locale
  2354. # Checks for arguments.
  2355. # Check whether --with-gnutls was given.
  2356. if test "${with_gnutls+set}" = set; then
  2357. withval=$with_gnutls; with_gnutls=$withval
  2358. else
  2359. with_gnutls=yes
  2360. fi
  2361. # Check whether --with-openssl was given.
  2362. if test "${with_openssl+set}" = set; then
  2363. withval=$with_openssl; with_openssl=$withval
  2364. else
  2365. with_openssl=yes
  2366. fi
  2367. # Check whether --with-sqlite3 was given.
  2368. if test "${with_sqlite3+set}" = set; then
  2369. withval=$with_sqlite3; with_sqlite3=$withval
  2370. else
  2371. with_sqlite3=yes
  2372. fi
  2373. # Check whether --with-libxml2 was given.
  2374. if test "${with_libxml2+set}" = set; then
  2375. withval=$with_libxml2; with_libxml2=$withval
  2376. else
  2377. with_libxml2=yes
  2378. fi
  2379. # Check whether --with-libexpat was given.
  2380. if test "${with_libexpat+set}" = set; then
  2381. withval=$with_libexpat; with_libexpat=$withval
  2382. else
  2383. with_libexpat=yes
  2384. fi
  2385. # Check whether --with-libares was given.
  2386. if test "${with_libares+set}" = set; then
  2387. withval=$with_libares; with_libares=$withval
  2388. else
  2389. with_libares=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. # Checks for programs.
  2422. ac_ext=cpp
  2423. ac_cpp='$CXXCPP $CPPFLAGS'
  2424. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2425. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2426. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2427. if test -z "$CXX"; then
  2428. if test -n "$CCC"; then
  2429. CXX=$CCC
  2430. else
  2431. if test -n "$ac_tool_prefix"; then
  2432. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2433. do
  2434. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2435. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2436. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2437. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2438. if test "${ac_cv_prog_CXX+set}" = set; then
  2439. echo $ECHO_N "(cached) $ECHO_C" >&6
  2440. else
  2441. if test -n "$CXX"; then
  2442. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2443. else
  2444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2445. for as_dir in $PATH
  2446. do
  2447. IFS=$as_save_IFS
  2448. test -z "$as_dir" && as_dir=.
  2449. for ac_exec_ext in '' $ac_executable_extensions; do
  2450. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2451. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2452. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2453. break 2
  2454. fi
  2455. done
  2456. done
  2457. IFS=$as_save_IFS
  2458. fi
  2459. fi
  2460. CXX=$ac_cv_prog_CXX
  2461. if test -n "$CXX"; then
  2462. { echo "$as_me:$LINENO: result: $CXX" >&5
  2463. echo "${ECHO_T}$CXX" >&6; }
  2464. else
  2465. { echo "$as_me:$LINENO: result: no" >&5
  2466. echo "${ECHO_T}no" >&6; }
  2467. fi
  2468. test -n "$CXX" && break
  2469. done
  2470. fi
  2471. if test -z "$CXX"; then
  2472. ac_ct_CXX=$CXX
  2473. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2474. do
  2475. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2476. set dummy $ac_prog; ac_word=$2
  2477. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2478. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2479. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2480. echo $ECHO_N "(cached) $ECHO_C" >&6
  2481. else
  2482. if test -n "$ac_ct_CXX"; then
  2483. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2484. else
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2492. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2493. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2494. break 2
  2495. fi
  2496. done
  2497. done
  2498. IFS=$as_save_IFS
  2499. fi
  2500. fi
  2501. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2502. if test -n "$ac_ct_CXX"; then
  2503. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2504. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2505. else
  2506. { echo "$as_me:$LINENO: result: no" >&5
  2507. echo "${ECHO_T}no" >&6; }
  2508. fi
  2509. test -n "$ac_ct_CXX" && break
  2510. done
  2511. if test "x$ac_ct_CXX" = x; then
  2512. CXX="g++"
  2513. else
  2514. case $cross_compiling:$ac_tool_warned in
  2515. yes:)
  2516. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2517. whose name does not start with the host triplet. If you think this
  2518. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2519. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2520. whose name does not start with the host triplet. If you think this
  2521. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2522. ac_tool_warned=yes ;;
  2523. esac
  2524. CXX=$ac_ct_CXX
  2525. fi
  2526. fi
  2527. fi
  2528. fi
  2529. # Provide some information about the compiler.
  2530. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2531. ac_compiler=`set X $ac_compile; echo $2`
  2532. { (ac_try="$ac_compiler --version >&5"
  2533. case "(($ac_try" in
  2534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2535. *) ac_try_echo=$ac_try;;
  2536. esac
  2537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2538. (eval "$ac_compiler --version >&5") 2>&5
  2539. ac_status=$?
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); }
  2542. { (ac_try="$ac_compiler -v >&5"
  2543. case "(($ac_try" in
  2544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2545. *) ac_try_echo=$ac_try;;
  2546. esac
  2547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2548. (eval "$ac_compiler -v >&5") 2>&5
  2549. ac_status=$?
  2550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2551. (exit $ac_status); }
  2552. { (ac_try="$ac_compiler -V >&5"
  2553. case "(($ac_try" in
  2554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2555. *) ac_try_echo=$ac_try;;
  2556. esac
  2557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2558. (eval "$ac_compiler -V >&5") 2>&5
  2559. ac_status=$?
  2560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2561. (exit $ac_status); }
  2562. cat >conftest.$ac_ext <<_ACEOF
  2563. /* confdefs.h. */
  2564. _ACEOF
  2565. cat confdefs.h >>conftest.$ac_ext
  2566. cat >>conftest.$ac_ext <<_ACEOF
  2567. /* end confdefs.h. */
  2568. int
  2569. main ()
  2570. {
  2571. ;
  2572. return 0;
  2573. }
  2574. _ACEOF
  2575. ac_clean_files_save=$ac_clean_files
  2576. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2577. # Try to create an executable without -o first, disregard a.out.
  2578. # It will help us diagnose broken compilers, and finding out an intuition
  2579. # of exeext.
  2580. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2581. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2582. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2583. #
  2584. # List of possible output files, starting from the most likely.
  2585. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2586. # only as a last resort. b.out is created by i960 compilers.
  2587. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2588. #
  2589. # The IRIX 6 linker writes into existing files which may not be
  2590. # executable, retaining their permissions. Remove them first so a
  2591. # subsequent execution test works.
  2592. ac_rmfiles=
  2593. for ac_file in $ac_files
  2594. do
  2595. case $ac_file in
  2596. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2597. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2598. esac
  2599. done
  2600. rm -f $ac_rmfiles
  2601. if { (ac_try="$ac_link_default"
  2602. case "(($ac_try" in
  2603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2604. *) ac_try_echo=$ac_try;;
  2605. esac
  2606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2607. (eval "$ac_link_default") 2>&5
  2608. ac_status=$?
  2609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2610. (exit $ac_status); }; then
  2611. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2612. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2613. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2614. # so that the user can short-circuit this test for compilers unknown to
  2615. # Autoconf.
  2616. for ac_file in $ac_files ''
  2617. do
  2618. test -f "$ac_file" || continue
  2619. case $ac_file in
  2620. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2621. ;;
  2622. [ab].out )
  2623. # We found the default executable, but exeext='' is most
  2624. # certainly right.
  2625. break;;
  2626. *.* )
  2627. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2628. then :; else
  2629. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2630. fi
  2631. # We set ac_cv_exeext here because the later test for it is not
  2632. # safe: cross compilers may not add the suffix if given an `-o'
  2633. # argument, so we may need to know it at that point already.
  2634. # Even if this section looks crufty: it has the advantage of
  2635. # actually working.
  2636. break;;
  2637. * )
  2638. break;;
  2639. esac
  2640. done
  2641. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2642. else
  2643. ac_file=''
  2644. fi
  2645. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2646. echo "${ECHO_T}$ac_file" >&6; }
  2647. if test -z "$ac_file"; then
  2648. echo "$as_me: failed program was:" >&5
  2649. sed 's/^/| /' conftest.$ac_ext >&5
  2650. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2651. See \`config.log' for more details." >&5
  2652. echo "$as_me: error: C++ compiler cannot create executables
  2653. See \`config.log' for more details." >&2;}
  2654. { (exit 77); exit 77; }; }
  2655. fi
  2656. ac_exeext=$ac_cv_exeext
  2657. # Check that the compiler produces executables we can run. If not, either
  2658. # the compiler is broken, or we cross compile.
  2659. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2660. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2661. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2662. # If not cross compiling, check that we can run a simple program.
  2663. if test "$cross_compiling" != yes; then
  2664. if { ac_try='./$ac_file'
  2665. { (case "(($ac_try" in
  2666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2667. *) ac_try_echo=$ac_try;;
  2668. esac
  2669. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2670. (eval "$ac_try") 2>&5
  2671. ac_status=$?
  2672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2673. (exit $ac_status); }; }; then
  2674. cross_compiling=no
  2675. else
  2676. if test "$cross_compiling" = maybe; then
  2677. cross_compiling=yes
  2678. else
  2679. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2680. If you meant to cross compile, use \`--host'.
  2681. See \`config.log' for more details." >&5
  2682. echo "$as_me: error: cannot run C++ compiled programs.
  2683. If you meant to cross compile, use \`--host'.
  2684. See \`config.log' for more details." >&2;}
  2685. { (exit 1); exit 1; }; }
  2686. fi
  2687. fi
  2688. fi
  2689. { echo "$as_me:$LINENO: result: yes" >&5
  2690. echo "${ECHO_T}yes" >&6; }
  2691. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2692. ac_clean_files=$ac_clean_files_save
  2693. # Check that the compiler produces executables we can run. If not, either
  2694. # the compiler is broken, or we cross compile.
  2695. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2696. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2697. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2698. echo "${ECHO_T}$cross_compiling" >&6; }
  2699. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2700. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2701. if { (ac_try="$ac_link"
  2702. case "(($ac_try" in
  2703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2704. *) ac_try_echo=$ac_try;;
  2705. esac
  2706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2707. (eval "$ac_link") 2>&5
  2708. ac_status=$?
  2709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2710. (exit $ac_status); }; then
  2711. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2712. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2713. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2714. # `rm'.
  2715. for ac_file in conftest.exe conftest conftest.*; do
  2716. test -f "$ac_file" || continue
  2717. case $ac_file in
  2718. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2719. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2720. break;;
  2721. * ) break;;
  2722. esac
  2723. done
  2724. else
  2725. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2726. See \`config.log' for more details." >&5
  2727. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2728. See \`config.log' for more details." >&2;}
  2729. { (exit 1); exit 1; }; }
  2730. fi
  2731. rm -f conftest$ac_cv_exeext
  2732. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2733. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2734. rm -f conftest.$ac_ext
  2735. EXEEXT=$ac_cv_exeext
  2736. ac_exeext=$EXEEXT
  2737. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2738. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2739. if test "${ac_cv_objext+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. cat >conftest.$ac_ext <<_ACEOF
  2743. /* confdefs.h. */
  2744. _ACEOF
  2745. cat confdefs.h >>conftest.$ac_ext
  2746. cat >>conftest.$ac_ext <<_ACEOF
  2747. /* end confdefs.h. */
  2748. int
  2749. main ()
  2750. {
  2751. ;
  2752. return 0;
  2753. }
  2754. _ACEOF
  2755. rm -f conftest.o conftest.obj
  2756. if { (ac_try="$ac_compile"
  2757. case "(($ac_try" in
  2758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2759. *) ac_try_echo=$ac_try;;
  2760. esac
  2761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2762. (eval "$ac_compile") 2>&5
  2763. ac_status=$?
  2764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2765. (exit $ac_status); }; then
  2766. for ac_file in conftest.o conftest.obj conftest.*; do
  2767. test -f "$ac_file" || continue;
  2768. case $ac_file in
  2769. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2770. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2771. break;;
  2772. esac
  2773. done
  2774. else
  2775. echo "$as_me: failed program was:" >&5
  2776. sed 's/^/| /' conftest.$ac_ext >&5
  2777. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2778. See \`config.log' for more details." >&5
  2779. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2780. See \`config.log' for more details." >&2;}
  2781. { (exit 1); exit 1; }; }
  2782. fi
  2783. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2784. fi
  2785. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2786. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2787. OBJEXT=$ac_cv_objext
  2788. ac_objext=$OBJEXT
  2789. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2790. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2791. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2792. echo $ECHO_N "(cached) $ECHO_C" >&6
  2793. else
  2794. cat >conftest.$ac_ext <<_ACEOF
  2795. /* confdefs.h. */
  2796. _ACEOF
  2797. cat confdefs.h >>conftest.$ac_ext
  2798. cat >>conftest.$ac_ext <<_ACEOF
  2799. /* end confdefs.h. */
  2800. int
  2801. main ()
  2802. {
  2803. #ifndef __GNUC__
  2804. choke me
  2805. #endif
  2806. ;
  2807. return 0;
  2808. }
  2809. _ACEOF
  2810. rm -f conftest.$ac_objext
  2811. if { (ac_try="$ac_compile"
  2812. case "(($ac_try" in
  2813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2814. *) ac_try_echo=$ac_try;;
  2815. esac
  2816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2817. (eval "$ac_compile") 2>conftest.er1
  2818. ac_status=$?
  2819. grep -v '^ *+' conftest.er1 >conftest.err
  2820. rm -f conftest.er1
  2821. cat conftest.err >&5
  2822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2823. (exit $ac_status); } && {
  2824. test -z "$ac_cxx_werror_flag" ||
  2825. test ! -s conftest.err
  2826. } && test -s conftest.$ac_objext; then
  2827. ac_compiler_gnu=yes
  2828. else
  2829. echo "$as_me: failed program was:" >&5
  2830. sed 's/^/| /' conftest.$ac_ext >&5
  2831. ac_compiler_gnu=no
  2832. fi
  2833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2834. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2835. fi
  2836. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2837. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2838. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2839. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2840. ac_save_CXXFLAGS=$CXXFLAGS
  2841. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2842. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2843. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2844. echo $ECHO_N "(cached) $ECHO_C" >&6
  2845. else
  2846. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2847. ac_cxx_werror_flag=yes
  2848. ac_cv_prog_cxx_g=no
  2849. CXXFLAGS="-g"
  2850. cat >conftest.$ac_ext <<_ACEOF
  2851. /* confdefs.h. */
  2852. _ACEOF
  2853. cat confdefs.h >>conftest.$ac_ext
  2854. cat >>conftest.$ac_ext <<_ACEOF
  2855. /* end confdefs.h. */
  2856. int
  2857. main ()
  2858. {
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. rm -f conftest.$ac_objext
  2864. if { (ac_try="$ac_compile"
  2865. case "(($ac_try" in
  2866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2867. *) ac_try_echo=$ac_try;;
  2868. esac
  2869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2870. (eval "$ac_compile") 2>conftest.er1
  2871. ac_status=$?
  2872. grep -v '^ *+' conftest.er1 >conftest.err
  2873. rm -f conftest.er1
  2874. cat conftest.err >&5
  2875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2876. (exit $ac_status); } && {
  2877. test -z "$ac_cxx_werror_flag" ||
  2878. test ! -s conftest.err
  2879. } && test -s conftest.$ac_objext; then
  2880. ac_cv_prog_cxx_g=yes
  2881. else
  2882. echo "$as_me: failed program was:" >&5
  2883. sed 's/^/| /' conftest.$ac_ext >&5
  2884. CXXFLAGS=""
  2885. cat >conftest.$ac_ext <<_ACEOF
  2886. /* confdefs.h. */
  2887. _ACEOF
  2888. cat confdefs.h >>conftest.$ac_ext
  2889. cat >>conftest.$ac_ext <<_ACEOF
  2890. /* end confdefs.h. */
  2891. int
  2892. main ()
  2893. {
  2894. ;
  2895. return 0;
  2896. }
  2897. _ACEOF
  2898. rm -f conftest.$ac_objext
  2899. if { (ac_try="$ac_compile"
  2900. case "(($ac_try" in
  2901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2902. *) ac_try_echo=$ac_try;;
  2903. esac
  2904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2905. (eval "$ac_compile") 2>conftest.er1
  2906. ac_status=$?
  2907. grep -v '^ *+' conftest.er1 >conftest.err
  2908. rm -f conftest.er1
  2909. cat conftest.err >&5
  2910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2911. (exit $ac_status); } && {
  2912. test -z "$ac_cxx_werror_flag" ||
  2913. test ! -s conftest.err
  2914. } && test -s conftest.$ac_objext; then
  2915. :
  2916. else
  2917. echo "$as_me: failed program was:" >&5
  2918. sed 's/^/| /' conftest.$ac_ext >&5
  2919. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2920. CXXFLAGS="-g"
  2921. cat >conftest.$ac_ext <<_ACEOF
  2922. /* confdefs.h. */
  2923. _ACEOF
  2924. cat confdefs.h >>conftest.$ac_ext
  2925. cat >>conftest.$ac_ext <<_ACEOF
  2926. /* end confdefs.h. */
  2927. int
  2928. main ()
  2929. {
  2930. ;
  2931. return 0;
  2932. }
  2933. _ACEOF
  2934. rm -f conftest.$ac_objext
  2935. if { (ac_try="$ac_compile"
  2936. case "(($ac_try" in
  2937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2938. *) ac_try_echo=$ac_try;;
  2939. esac
  2940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2941. (eval "$ac_compile") 2>conftest.er1
  2942. ac_status=$?
  2943. grep -v '^ *+' conftest.er1 >conftest.err
  2944. rm -f conftest.er1
  2945. cat conftest.err >&5
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); } && {
  2948. test -z "$ac_cxx_werror_flag" ||
  2949. test ! -s conftest.err
  2950. } && test -s conftest.$ac_objext; then
  2951. ac_cv_prog_cxx_g=yes
  2952. else
  2953. echo "$as_me: failed program was:" >&5
  2954. sed 's/^/| /' conftest.$ac_ext >&5
  2955. fi
  2956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2957. fi
  2958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2959. fi
  2960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2961. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2962. fi
  2963. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2964. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2965. if test "$ac_test_CXXFLAGS" = set; then
  2966. CXXFLAGS=$ac_save_CXXFLAGS
  2967. elif test $ac_cv_prog_cxx_g = yes; then
  2968. if test "$GXX" = yes; then
  2969. CXXFLAGS="-g -O2"
  2970. else
  2971. CXXFLAGS="-g"
  2972. fi
  2973. else
  2974. if test "$GXX" = yes; then
  2975. CXXFLAGS="-O2"
  2976. else
  2977. CXXFLAGS=
  2978. fi
  2979. fi
  2980. ac_ext=c
  2981. ac_cpp='$CPP $CPPFLAGS'
  2982. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2983. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2984. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2985. DEPDIR="${am__leading_dot}deps"
  2986. ac_config_commands="$ac_config_commands depfiles"
  2987. am_make=${MAKE-make}
  2988. cat > confinc << 'END'
  2989. am__doit:
  2990. @echo done
  2991. .PHONY: am__doit
  2992. END
  2993. # If we don't find an include directive, just comment out the code.
  2994. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2995. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2996. am__include="#"
  2997. am__quote=
  2998. _am_result=none
  2999. # First try GNU make style include.
  3000. echo "include confinc" > confmf
  3001. # We grep out `Entering directory' and `Leaving directory'
  3002. # messages which can occur if `w' ends up in MAKEFLAGS.
  3003. # In particular we don't look at `^make:' because GNU make might
  3004. # be invoked under some other name (usually "gmake"), in which
  3005. # case it prints its new name instead of `make'.
  3006. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3007. am__include=include
  3008. am__quote=
  3009. _am_result=GNU
  3010. fi
  3011. # Now try BSD make style include.
  3012. if test "$am__include" = "#"; then
  3013. echo '.include "confinc"' > confmf
  3014. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3015. am__include=.include
  3016. am__quote="\""
  3017. _am_result=BSD
  3018. fi
  3019. fi
  3020. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3021. echo "${ECHO_T}$_am_result" >&6; }
  3022. rm -f confinc confmf
  3023. # Check whether --enable-dependency-tracking was given.
  3024. if test "${enable_dependency_tracking+set}" = set; then
  3025. enableval=$enable_dependency_tracking;
  3026. fi
  3027. if test "x$enable_dependency_tracking" != xno; then
  3028. am_depcomp="$ac_aux_dir/depcomp"
  3029. AMDEPBACKSLASH='\'
  3030. fi
  3031. if test "x$enable_dependency_tracking" != xno; then
  3032. AMDEP_TRUE=
  3033. AMDEP_FALSE='#'
  3034. else
  3035. AMDEP_TRUE='#'
  3036. AMDEP_FALSE=
  3037. fi
  3038. depcc="$CXX" am_compiler_list=
  3039. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3040. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3041. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3045. # We make a subdir and do the tests there. Otherwise we can end up
  3046. # making bogus files that we don't know about and never remove. For
  3047. # instance it was reported that on HP-UX the gcc test will end up
  3048. # making a dummy file named `D' -- because `-MD' means `put the output
  3049. # in D'.
  3050. mkdir conftest.dir
  3051. # Copy depcomp to subdir because otherwise we won't find it if we're
  3052. # using a relative directory.
  3053. cp "$am_depcomp" conftest.dir
  3054. cd conftest.dir
  3055. # We will build objects and dependencies in a subdirectory because
  3056. # it helps to detect inapplicable dependency modes. For instance
  3057. # both Tru64's cc and ICC support -MD to output dependencies as a
  3058. # side effect of compilation, but ICC will put the dependencies in
  3059. # the current directory while Tru64 will put them in the object
  3060. # directory.
  3061. mkdir sub
  3062. am_cv_CXX_dependencies_compiler_type=none
  3063. if test "$am_compiler_list" = ""; then
  3064. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3065. fi
  3066. for depmode in $am_compiler_list; do
  3067. # Setup a source with many dependencies, because some compilers
  3068. # like to wrap large dependency lists on column 80 (with \), and
  3069. # we should not choose a depcomp mode which is confused by this.
  3070. #
  3071. # We need to recreate these files for each test, as the compiler may
  3072. # overwrite some of them when testing with obscure command lines.
  3073. # This happens at least with the AIX C compiler.
  3074. : > sub/conftest.c
  3075. for i in 1 2 3 4 5 6; do
  3076. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3077. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3078. # Solaris 8's {/usr,}/bin/sh.
  3079. touch sub/conftst$i.h
  3080. done
  3081. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3082. case $depmode in
  3083. nosideeffect)
  3084. # after this tag, mechanisms are not by side-effect, so they'll
  3085. # only be used when explicitly requested
  3086. if test "x$enable_dependency_tracking" = xyes; then
  3087. continue
  3088. else
  3089. break
  3090. fi
  3091. ;;
  3092. none) break ;;
  3093. esac
  3094. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3095. # mode. It turns out that the SunPro C++ compiler does not properly
  3096. # handle `-M -o', and we need to detect this.
  3097. if depmode=$depmode \
  3098. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3099. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3100. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3101. >/dev/null 2>conftest.err &&
  3102. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3103. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3104. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3105. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3106. # icc doesn't choke on unknown options, it will just issue warnings
  3107. # or remarks (even with -Werror). So we grep stderr for any message
  3108. # that says an option was ignored or not supported.
  3109. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3110. # icc: Command line warning: ignoring option '-M'; no argument required
  3111. # The diagnosis changed in icc 8.0:
  3112. # icc: Command line remark: option '-MP' not supported
  3113. if (grep 'ignoring option' conftest.err ||
  3114. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3115. am_cv_CXX_dependencies_compiler_type=$depmode
  3116. break
  3117. fi
  3118. fi
  3119. done
  3120. cd ..
  3121. rm -rf conftest.dir
  3122. else
  3123. am_cv_CXX_dependencies_compiler_type=none
  3124. fi
  3125. fi
  3126. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3127. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3128. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3129. if
  3130. test "x$enable_dependency_tracking" != xno \
  3131. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3132. am__fastdepCXX_TRUE=
  3133. am__fastdepCXX_FALSE='#'
  3134. else
  3135. am__fastdepCXX_TRUE='#'
  3136. am__fastdepCXX_FALSE=
  3137. fi
  3138. ac_ext=c
  3139. ac_cpp='$CPP $CPPFLAGS'
  3140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3143. if test -n "$ac_tool_prefix"; then
  3144. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3145. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3146. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3147. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3148. if test "${ac_cv_prog_CC+set}" = set; then
  3149. echo $ECHO_N "(cached) $ECHO_C" >&6
  3150. else
  3151. if test -n "$CC"; then
  3152. ac_cv_prog_CC="$CC" # Let the user override the test.
  3153. else
  3154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3155. for as_dir in $PATH
  3156. do
  3157. IFS=$as_save_IFS
  3158. test -z "$as_dir" && as_dir=.
  3159. for ac_exec_ext in '' $ac_executable_extensions; do
  3160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3161. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3162. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3163. break 2
  3164. fi
  3165. done
  3166. done
  3167. IFS=$as_save_IFS
  3168. fi
  3169. fi
  3170. CC=$ac_cv_prog_CC
  3171. if test -n "$CC"; then
  3172. { echo "$as_me:$LINENO: result: $CC" >&5
  3173. echo "${ECHO_T}$CC" >&6; }
  3174. else
  3175. { echo "$as_me:$LINENO: result: no" >&5
  3176. echo "${ECHO_T}no" >&6; }
  3177. fi
  3178. fi
  3179. if test -z "$ac_cv_prog_CC"; then
  3180. ac_ct_CC=$CC
  3181. # Extract the first word of "gcc", so it can be a program name with args.
  3182. set dummy gcc; ac_word=$2
  3183. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3184. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3185. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3186. echo $ECHO_N "(cached) $ECHO_C" >&6
  3187. else
  3188. if test -n "$ac_ct_CC"; then
  3189. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3190. else
  3191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3192. for as_dir in $PATH
  3193. do
  3194. IFS=$as_save_IFS
  3195. test -z "$as_dir" && as_dir=.
  3196. for ac_exec_ext in '' $ac_executable_extensions; do
  3197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3198. ac_cv_prog_ac_ct_CC="gcc"
  3199. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3200. break 2
  3201. fi
  3202. done
  3203. done
  3204. IFS=$as_save_IFS
  3205. fi
  3206. fi
  3207. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3208. if test -n "$ac_ct_CC"; then
  3209. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3210. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3211. else
  3212. { echo "$as_me:$LINENO: result: no" >&5
  3213. echo "${ECHO_T}no" >&6; }
  3214. fi
  3215. if test "x$ac_ct_CC" = x; then
  3216. CC=""
  3217. else
  3218. case $cross_compiling:$ac_tool_warned in
  3219. yes:)
  3220. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3221. whose name does not start with the host triplet. If you think this
  3222. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3223. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3224. whose name does not start with the host triplet. If you think this
  3225. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3226. ac_tool_warned=yes ;;
  3227. esac
  3228. CC=$ac_ct_CC
  3229. fi
  3230. else
  3231. CC="$ac_cv_prog_CC"
  3232. fi
  3233. if test -z "$CC"; then
  3234. if test -n "$ac_tool_prefix"; then
  3235. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3236. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3237. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3238. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3239. if test "${ac_cv_prog_CC+set}" = set; then
  3240. echo $ECHO_N "(cached) $ECHO_C" >&6
  3241. else
  3242. if test -n "$CC"; then
  3243. ac_cv_prog_CC="$CC" # Let the user override the test.
  3244. else
  3245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3246. for as_dir in $PATH
  3247. do
  3248. IFS=$as_save_IFS
  3249. test -z "$as_dir" && as_dir=.
  3250. for ac_exec_ext in '' $ac_executable_extensions; do
  3251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3252. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3253. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3254. break 2
  3255. fi
  3256. done
  3257. done
  3258. IFS=$as_save_IFS
  3259. fi
  3260. fi
  3261. CC=$ac_cv_prog_CC
  3262. if test -n "$CC"; then
  3263. { echo "$as_me:$LINENO: result: $CC" >&5
  3264. echo "${ECHO_T}$CC" >&6; }
  3265. else
  3266. { echo "$as_me:$LINENO: result: no" >&5
  3267. echo "${ECHO_T}no" >&6; }
  3268. fi
  3269. fi
  3270. fi
  3271. if test -z "$CC"; then
  3272. # Extract the first word of "cc", so it can be a program name with args.
  3273. set dummy cc; ac_word=$2
  3274. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3275. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3276. if test "${ac_cv_prog_CC+set}" = set; then
  3277. echo $ECHO_N "(cached) $ECHO_C" >&6
  3278. else
  3279. if test -n "$CC"; then
  3280. ac_cv_prog_CC="$CC" # Let the user override the test.
  3281. else
  3282. ac_prog_rejected=no
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_exec_ext in '' $ac_executable_extensions; do
  3289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3290. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3291. ac_prog_rejected=yes
  3292. continue
  3293. fi
  3294. ac_cv_prog_CC="cc"
  3295. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3296. break 2
  3297. fi
  3298. done
  3299. done
  3300. IFS=$as_save_IFS
  3301. if test $ac_prog_rejected = yes; then
  3302. # We found a bogon in the path, so make sure we never use it.
  3303. set dummy $ac_cv_prog_CC
  3304. shift
  3305. if test $# != 0; then
  3306. # We chose a different compiler from the bogus one.
  3307. # However, it has the same basename, so the bogon will be chosen
  3308. # first if we set CC to just the basename; use the full file name.
  3309. shift
  3310. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3311. fi
  3312. fi
  3313. fi
  3314. fi
  3315. CC=$ac_cv_prog_CC
  3316. if test -n "$CC"; then
  3317. { echo "$as_me:$LINENO: result: $CC" >&5
  3318. echo "${ECHO_T}$CC" >&6; }
  3319. else
  3320. { echo "$as_me:$LINENO: result: no" >&5
  3321. echo "${ECHO_T}no" >&6; }
  3322. fi
  3323. fi
  3324. if test -z "$CC"; then
  3325. if test -n "$ac_tool_prefix"; then
  3326. for ac_prog in cl.exe
  3327. do
  3328. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3329. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3330. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3331. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3332. if test "${ac_cv_prog_CC+set}" = set; then
  3333. echo $ECHO_N "(cached) $ECHO_C" >&6
  3334. else
  3335. if test -n "$CC"; then
  3336. ac_cv_prog_CC="$CC" # Let the user override the test.
  3337. else
  3338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3339. for as_dir in $PATH
  3340. do
  3341. IFS=$as_save_IFS
  3342. test -z "$as_dir" && as_dir=.
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3345. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3346. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3347. break 2
  3348. fi
  3349. done
  3350. done
  3351. IFS=$as_save_IFS
  3352. fi
  3353. fi
  3354. CC=$ac_cv_prog_CC
  3355. if test -n "$CC"; then
  3356. { echo "$as_me:$LINENO: result: $CC" >&5
  3357. echo "${ECHO_T}$CC" >&6; }
  3358. else
  3359. { echo "$as_me:$LINENO: result: no" >&5
  3360. echo "${ECHO_T}no" >&6; }
  3361. fi
  3362. test -n "$CC" && break
  3363. done
  3364. fi
  3365. if test -z "$CC"; then
  3366. ac_ct_CC=$CC
  3367. for ac_prog in cl.exe
  3368. do
  3369. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3370. set dummy $ac_prog; ac_word=$2
  3371. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3372. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3373. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3374. echo $ECHO_N "(cached) $ECHO_C" >&6
  3375. else
  3376. if test -n "$ac_ct_CC"; then
  3377. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3378. else
  3379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3380. for as_dir in $PATH
  3381. do
  3382. IFS=$as_save_IFS
  3383. test -z "$as_dir" && as_dir=.
  3384. for ac_exec_ext in '' $ac_executable_extensions; do
  3385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3386. ac_cv_prog_ac_ct_CC="$ac_prog"
  3387. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3388. break 2
  3389. fi
  3390. done
  3391. done
  3392. IFS=$as_save_IFS
  3393. fi
  3394. fi
  3395. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3396. if test -n "$ac_ct_CC"; then
  3397. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3398. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3399. else
  3400. { echo "$as_me:$LINENO: result: no" >&5
  3401. echo "${ECHO_T}no" >&6; }
  3402. fi
  3403. test -n "$ac_ct_CC" && break
  3404. done
  3405. if test "x$ac_ct_CC" = x; then
  3406. CC=""
  3407. else
  3408. case $cross_compiling:$ac_tool_warned in
  3409. yes:)
  3410. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3411. whose name does not start with the host triplet. If you think this
  3412. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3413. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3414. whose name does not start with the host triplet. If you think this
  3415. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3416. ac_tool_warned=yes ;;
  3417. esac
  3418. CC=$ac_ct_CC
  3419. fi
  3420. fi
  3421. fi
  3422. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3423. See \`config.log' for more details." >&5
  3424. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3425. See \`config.log' for more details." >&2;}
  3426. { (exit 1); exit 1; }; }
  3427. # Provide some information about the compiler.
  3428. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3429. ac_compiler=`set X $ac_compile; echo $2`
  3430. { (ac_try="$ac_compiler --version >&5"
  3431. case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3436. (eval "$ac_compiler --version >&5") 2>&5
  3437. ac_status=$?
  3438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3439. (exit $ac_status); }
  3440. { (ac_try="$ac_compiler -v >&5"
  3441. case "(($ac_try" in
  3442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3443. *) ac_try_echo=$ac_try;;
  3444. esac
  3445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3446. (eval "$ac_compiler -v >&5") 2>&5
  3447. ac_status=$?
  3448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3449. (exit $ac_status); }
  3450. { (ac_try="$ac_compiler -V >&5"
  3451. case "(($ac_try" in
  3452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3453. *) ac_try_echo=$ac_try;;
  3454. esac
  3455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3456. (eval "$ac_compiler -V >&5") 2>&5
  3457. ac_status=$?
  3458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3459. (exit $ac_status); }
  3460. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3461. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3462. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3463. echo $ECHO_N "(cached) $ECHO_C" >&6
  3464. else
  3465. cat >conftest.$ac_ext <<_ACEOF
  3466. /* confdefs.h. */
  3467. _ACEOF
  3468. cat confdefs.h >>conftest.$ac_ext
  3469. cat >>conftest.$ac_ext <<_ACEOF
  3470. /* end confdefs.h. */
  3471. int
  3472. main ()
  3473. {
  3474. #ifndef __GNUC__
  3475. choke me
  3476. #endif
  3477. ;
  3478. return 0;
  3479. }
  3480. _ACEOF
  3481. rm -f conftest.$ac_objext
  3482. if { (ac_try="$ac_compile"
  3483. case "(($ac_try" in
  3484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3485. *) ac_try_echo=$ac_try;;
  3486. esac
  3487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3488. (eval "$ac_compile") 2>conftest.er1
  3489. ac_status=$?
  3490. grep -v '^ *+' conftest.er1 >conftest.err
  3491. rm -f conftest.er1
  3492. cat conftest.err >&5
  3493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3494. (exit $ac_status); } && {
  3495. test -z "$ac_c_werror_flag" ||
  3496. test ! -s conftest.err
  3497. } && test -s conftest.$ac_objext; then
  3498. ac_compiler_gnu=yes
  3499. else
  3500. echo "$as_me: failed program was:" >&5
  3501. sed 's/^/| /' conftest.$ac_ext >&5
  3502. ac_compiler_gnu=no
  3503. fi
  3504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3505. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3506. fi
  3507. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3508. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3509. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3510. ac_test_CFLAGS=${CFLAGS+set}
  3511. ac_save_CFLAGS=$CFLAGS
  3512. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3513. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3514. if test "${ac_cv_prog_cc_g+set}" = set; then
  3515. echo $ECHO_N "(cached) $ECHO_C" >&6
  3516. else
  3517. ac_save_c_werror_flag=$ac_c_werror_flag
  3518. ac_c_werror_flag=yes
  3519. ac_cv_prog_cc_g=no
  3520. CFLAGS="-g"
  3521. cat >conftest.$ac_ext <<_ACEOF
  3522. /* confdefs.h. */
  3523. _ACEOF
  3524. cat confdefs.h >>conftest.$ac_ext
  3525. cat >>conftest.$ac_ext <<_ACEOF
  3526. /* end confdefs.h. */
  3527. int
  3528. main ()
  3529. {
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. rm -f conftest.$ac_objext
  3535. if { (ac_try="$ac_compile"
  3536. case "(($ac_try" in
  3537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3538. *) ac_try_echo=$ac_try;;
  3539. esac
  3540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3541. (eval "$ac_compile") 2>conftest.er1
  3542. ac_status=$?
  3543. grep -v '^ *+' conftest.er1 >conftest.err
  3544. rm -f conftest.er1
  3545. cat conftest.err >&5
  3546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3547. (exit $ac_status); } && {
  3548. test -z "$ac_c_werror_flag" ||
  3549. test ! -s conftest.err
  3550. } && test -s conftest.$ac_objext; then
  3551. ac_cv_prog_cc_g=yes
  3552. else
  3553. echo "$as_me: failed program was:" >&5
  3554. sed 's/^/| /' conftest.$ac_ext >&5
  3555. CFLAGS=""
  3556. cat >conftest.$ac_ext <<_ACEOF
  3557. /* confdefs.h. */
  3558. _ACEOF
  3559. cat confdefs.h >>conftest.$ac_ext
  3560. cat >>conftest.$ac_ext <<_ACEOF
  3561. /* end confdefs.h. */
  3562. int
  3563. main ()
  3564. {
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. rm -f conftest.$ac_objext
  3570. if { (ac_try="$ac_compile"
  3571. case "(($ac_try" in
  3572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3573. *) ac_try_echo=$ac_try;;
  3574. esac
  3575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3576. (eval "$ac_compile") 2>conftest.er1
  3577. ac_status=$?
  3578. grep -v '^ *+' conftest.er1 >conftest.err
  3579. rm -f conftest.er1
  3580. cat conftest.err >&5
  3581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3582. (exit $ac_status); } && {
  3583. test -z "$ac_c_werror_flag" ||
  3584. test ! -s conftest.err
  3585. } && test -s conftest.$ac_objext; then
  3586. :
  3587. else
  3588. echo "$as_me: failed program was:" >&5
  3589. sed 's/^/| /' conftest.$ac_ext >&5
  3590. ac_c_werror_flag=$ac_save_c_werror_flag
  3591. CFLAGS="-g"
  3592. cat >conftest.$ac_ext <<_ACEOF
  3593. /* confdefs.h. */
  3594. _ACEOF
  3595. cat confdefs.h >>conftest.$ac_ext
  3596. cat >>conftest.$ac_ext <<_ACEOF
  3597. /* end confdefs.h. */
  3598. int
  3599. main ()
  3600. {
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. rm -f conftest.$ac_objext
  3606. if { (ac_try="$ac_compile"
  3607. case "(($ac_try" in
  3608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3609. *) ac_try_echo=$ac_try;;
  3610. esac
  3611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3612. (eval "$ac_compile") 2>conftest.er1
  3613. ac_status=$?
  3614. grep -v '^ *+' conftest.er1 >conftest.err
  3615. rm -f conftest.er1
  3616. cat conftest.err >&5
  3617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3618. (exit $ac_status); } && {
  3619. test -z "$ac_c_werror_flag" ||
  3620. test ! -s conftest.err
  3621. } && test -s conftest.$ac_objext; then
  3622. ac_cv_prog_cc_g=yes
  3623. else
  3624. echo "$as_me: failed program was:" >&5
  3625. sed 's/^/| /' conftest.$ac_ext >&5
  3626. fi
  3627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3628. fi
  3629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. ac_c_werror_flag=$ac_save_c_werror_flag
  3633. fi
  3634. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3635. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3636. if test "$ac_test_CFLAGS" = set; then
  3637. CFLAGS=$ac_save_CFLAGS
  3638. elif test $ac_cv_prog_cc_g = yes; then
  3639. if test "$GCC" = yes; then
  3640. CFLAGS="-g -O2"
  3641. else
  3642. CFLAGS="-g"
  3643. fi
  3644. else
  3645. if test "$GCC" = yes; then
  3646. CFLAGS="-O2"
  3647. else
  3648. CFLAGS=
  3649. fi
  3650. fi
  3651. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3652. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3653. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3654. echo $ECHO_N "(cached) $ECHO_C" >&6
  3655. else
  3656. ac_cv_prog_cc_c89=no
  3657. ac_save_CC=$CC
  3658. cat >conftest.$ac_ext <<_ACEOF
  3659. /* confdefs.h. */
  3660. _ACEOF
  3661. cat confdefs.h >>conftest.$ac_ext
  3662. cat >>conftest.$ac_ext <<_ACEOF
  3663. /* end confdefs.h. */
  3664. #include <stdarg.h>
  3665. #include <stdio.h>
  3666. #include <sys/types.h>
  3667. #include <sys/stat.h>
  3668. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3669. struct buf { int x; };
  3670. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3671. static char *e (p, i)
  3672. char **p;
  3673. int i;
  3674. {
  3675. return p[i];
  3676. }
  3677. static char *f (char * (*g) (char **, int), char **p, ...)
  3678. {
  3679. char *s;
  3680. va_list v;
  3681. va_start (v,p);
  3682. s = g (p, va_arg (v,int));
  3683. va_end (v);
  3684. return s;
  3685. }
  3686. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3687. function prototypes and stuff, but not '\xHH' hex character constants.
  3688. These don't provoke an error unfortunately, instead are silently treated
  3689. as 'x'. The following induces an error, until -std is added to get
  3690. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3691. array size at least. It's necessary to write '\x00'==0 to get something
  3692. that's true only with -std. */
  3693. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3694. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3695. inside strings and character constants. */
  3696. #define FOO(x) 'x'
  3697. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3698. int test (int i, double x);
  3699. struct s1 {int (*f) (int a);};
  3700. struct s2 {int (*f) (double a);};
  3701. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3702. int argc;
  3703. char **argv;
  3704. int
  3705. main ()
  3706. {
  3707. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3713. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3714. do
  3715. CC="$ac_save_CC $ac_arg"
  3716. rm -f conftest.$ac_objext
  3717. if { (ac_try="$ac_compile"
  3718. case "(($ac_try" in
  3719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3720. *) ac_try_echo=$ac_try;;
  3721. esac
  3722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3723. (eval "$ac_compile") 2>conftest.er1
  3724. ac_status=$?
  3725. grep -v '^ *+' conftest.er1 >conftest.err
  3726. rm -f conftest.er1
  3727. cat conftest.err >&5
  3728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3729. (exit $ac_status); } && {
  3730. test -z "$ac_c_werror_flag" ||
  3731. test ! -s conftest.err
  3732. } && test -s conftest.$ac_objext; then
  3733. ac_cv_prog_cc_c89=$ac_arg
  3734. else
  3735. echo "$as_me: failed program was:" >&5
  3736. sed 's/^/| /' conftest.$ac_ext >&5
  3737. fi
  3738. rm -f core conftest.err conftest.$ac_objext
  3739. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3740. done
  3741. rm -f conftest.$ac_ext
  3742. CC=$ac_save_CC
  3743. fi
  3744. # AC_CACHE_VAL
  3745. case "x$ac_cv_prog_cc_c89" in
  3746. x)
  3747. { echo "$as_me:$LINENO: result: none needed" >&5
  3748. echo "${ECHO_T}none needed" >&6; } ;;
  3749. xno)
  3750. { echo "$as_me:$LINENO: result: unsupported" >&5
  3751. echo "${ECHO_T}unsupported" >&6; } ;;
  3752. *)
  3753. CC="$CC $ac_cv_prog_cc_c89"
  3754. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3755. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3756. esac
  3757. ac_ext=c
  3758. ac_cpp='$CPP $CPPFLAGS'
  3759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3762. depcc="$CC" am_compiler_list=
  3763. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3764. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3765. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3766. echo $ECHO_N "(cached) $ECHO_C" >&6
  3767. else
  3768. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3769. # We make a subdir and do the tests there. Otherwise we can end up
  3770. # making bogus files that we don't know about and never remove. For
  3771. # instance it was reported that on HP-UX the gcc test will end up
  3772. # making a dummy file named `D' -- because `-MD' means `put the output
  3773. # in D'.
  3774. mkdir conftest.dir
  3775. # Copy depcomp to subdir because otherwise we won't find it if we're
  3776. # using a relative directory.
  3777. cp "$am_depcomp" conftest.dir
  3778. cd conftest.dir
  3779. # We will build objects and dependencies in a subdirectory because
  3780. # it helps to detect inapplicable dependency modes. For instance
  3781. # both Tru64's cc and ICC support -MD to output dependencies as a
  3782. # side effect of compilation, but ICC will put the dependencies in
  3783. # the current directory while Tru64 will put them in the object
  3784. # directory.
  3785. mkdir sub
  3786. am_cv_CC_dependencies_compiler_type=none
  3787. if test "$am_compiler_list" = ""; then
  3788. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3789. fi
  3790. for depmode in $am_compiler_list; do
  3791. # Setup a source with many dependencies, because some compilers
  3792. # like to wrap large dependency lists on column 80 (with \), and
  3793. # we should not choose a depcomp mode which is confused by this.
  3794. #
  3795. # We need to recreate these files for each test, as the compiler may
  3796. # overwrite some of them when testing with obscure command lines.
  3797. # This happens at least with the AIX C compiler.
  3798. : > sub/conftest.c
  3799. for i in 1 2 3 4 5 6; do
  3800. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3801. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3802. # Solaris 8's {/usr,}/bin/sh.
  3803. touch sub/conftst$i.h
  3804. done
  3805. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3806. case $depmode in
  3807. nosideeffect)
  3808. # after this tag, mechanisms are not by side-effect, so they'll
  3809. # only be used when explicitly requested
  3810. if test "x$enable_dependency_tracking" = xyes; then
  3811. continue
  3812. else
  3813. break
  3814. fi
  3815. ;;
  3816. none) break ;;
  3817. esac
  3818. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3819. # mode. It turns out that the SunPro C++ compiler does not properly
  3820. # handle `-M -o', and we need to detect this.
  3821. if depmode=$depmode \
  3822. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3823. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3824. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3825. >/dev/null 2>conftest.err &&
  3826. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3827. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3828. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3829. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3830. # icc doesn't choke on unknown options, it will just issue warnings
  3831. # or remarks (even with -Werror). So we grep stderr for any message
  3832. # that says an option was ignored or not supported.
  3833. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3834. # icc: Command line warning: ignoring option '-M'; no argument required
  3835. # The diagnosis changed in icc 8.0:
  3836. # icc: Command line remark: option '-MP' not supported
  3837. if (grep 'ignoring option' conftest.err ||
  3838. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3839. am_cv_CC_dependencies_compiler_type=$depmode
  3840. break
  3841. fi
  3842. fi
  3843. done
  3844. cd ..
  3845. rm -rf conftest.dir
  3846. else
  3847. am_cv_CC_dependencies_compiler_type=none
  3848. fi
  3849. fi
  3850. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3851. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3852. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3853. if
  3854. test "x$enable_dependency_tracking" != xno \
  3855. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3856. am__fastdepCC_TRUE=
  3857. am__fastdepCC_FALSE='#'
  3858. else
  3859. am__fastdepCC_TRUE='#'
  3860. am__fastdepCC_FALSE=
  3861. fi
  3862. # Find a good install program. We prefer a C program (faster),
  3863. # so one script is as good as another. But avoid the broken or
  3864. # incompatible versions:
  3865. # SysV /etc/install, /usr/sbin/install
  3866. # SunOS /usr/etc/install
  3867. # IRIX /sbin/install
  3868. # AIX /bin/install
  3869. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3870. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3871. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3872. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3873. # OS/2's system install, which has a completely different semantic
  3874. # ./install, which can be erroneously created by make from ./install.sh.
  3875. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3876. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3877. if test -z "$INSTALL"; then
  3878. if test "${ac_cv_path_install+set}" = set; then
  3879. echo $ECHO_N "(cached) $ECHO_C" >&6
  3880. else
  3881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3882. for as_dir in $PATH
  3883. do
  3884. IFS=$as_save_IFS
  3885. test -z "$as_dir" && as_dir=.
  3886. # Account for people who put trailing slashes in PATH elements.
  3887. case $as_dir/ in
  3888. ./ | .// | /cC/* | \
  3889. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3890. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3891. /usr/ucb/* ) ;;
  3892. *)
  3893. # OSF1 and SCO ODT 3.0 have their own names for install.
  3894. # Don't use installbsd from OSF since it installs stuff as root
  3895. # by default.
  3896. for ac_prog in ginstall scoinst install; do
  3897. for ac_exec_ext in '' $ac_executable_extensions; do
  3898. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3899. if test $ac_prog = install &&
  3900. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3901. # AIX install. It has an incompatible calling convention.
  3902. :
  3903. elif test $ac_prog = install &&
  3904. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3905. # program-specific install script used by HP pwplus--don't use.
  3906. :
  3907. else
  3908. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3909. break 3
  3910. fi
  3911. fi
  3912. done
  3913. done
  3914. ;;
  3915. esac
  3916. done
  3917. IFS=$as_save_IFS
  3918. fi
  3919. if test "${ac_cv_path_install+set}" = set; then
  3920. INSTALL=$ac_cv_path_install
  3921. else
  3922. # As a last resort, use the slow shell script. Don't cache a
  3923. # value for INSTALL within a source directory, because that will
  3924. # break other packages using the cache if that directory is
  3925. # removed, or if the value is a relative name.
  3926. INSTALL=$ac_install_sh
  3927. fi
  3928. fi
  3929. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3930. echo "${ECHO_T}$INSTALL" >&6; }
  3931. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3932. # It thinks the first close brace ends the variable substitution.
  3933. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3934. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3935. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3936. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3937. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3938. if test -z "$MKDIR_P"; then
  3939. if test "${ac_cv_path_mkdir+set}" = set; then
  3940. echo $ECHO_N "(cached) $ECHO_C" >&6
  3941. else
  3942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3944. do
  3945. IFS=$as_save_IFS
  3946. test -z "$as_dir" && as_dir=.
  3947. for ac_prog in mkdir gmkdir; do
  3948. for ac_exec_ext in '' $ac_executable_extensions; do
  3949. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3950. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3951. 'mkdir (GNU coreutils) '* | \
  3952. 'mkdir (coreutils) '* | \
  3953. 'mkdir (fileutils) '4.1*)
  3954. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3955. break 3;;
  3956. esac
  3957. done
  3958. done
  3959. done
  3960. IFS=$as_save_IFS
  3961. fi
  3962. if test "${ac_cv_path_mkdir+set}" = set; then
  3963. MKDIR_P="$ac_cv_path_mkdir -p"
  3964. else
  3965. # As a last resort, use the slow shell script. Don't cache a
  3966. # value for MKDIR_P within a source directory, because that will
  3967. # break other packages using the cache if that directory is
  3968. # removed, or if the value is a relative name.
  3969. test -d ./--version && rmdir ./--version
  3970. MKDIR_P="$ac_install_sh -d"
  3971. fi
  3972. fi
  3973. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3974. echo "${ECHO_T}$MKDIR_P" >&6; }
  3975. if test -n "$ac_tool_prefix"; then
  3976. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3977. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3978. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3980. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3981. echo $ECHO_N "(cached) $ECHO_C" >&6
  3982. else
  3983. if test -n "$RANLIB"; then
  3984. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3985. else
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_exec_ext in '' $ac_executable_extensions; do
  3992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3993. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3994. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3995. break 2
  3996. fi
  3997. done
  3998. done
  3999. IFS=$as_save_IFS
  4000. fi
  4001. fi
  4002. RANLIB=$ac_cv_prog_RANLIB
  4003. if test -n "$RANLIB"; then
  4004. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4005. echo "${ECHO_T}$RANLIB" >&6; }
  4006. else
  4007. { echo "$as_me:$LINENO: result: no" >&5
  4008. echo "${ECHO_T}no" >&6; }
  4009. fi
  4010. fi
  4011. if test -z "$ac_cv_prog_RANLIB"; then
  4012. ac_ct_RANLIB=$RANLIB
  4013. # Extract the first word of "ranlib", so it can be a program name with args.
  4014. set dummy ranlib; ac_word=$2
  4015. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4017. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4018. echo $ECHO_N "(cached) $ECHO_C" >&6
  4019. else
  4020. if test -n "$ac_ct_RANLIB"; then
  4021. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4022. else
  4023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4024. for as_dir in $PATH
  4025. do
  4026. IFS=$as_save_IFS
  4027. test -z "$as_dir" && as_dir=.
  4028. for ac_exec_ext in '' $ac_executable_extensions; do
  4029. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4030. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4032. break 2
  4033. fi
  4034. done
  4035. done
  4036. IFS=$as_save_IFS
  4037. fi
  4038. fi
  4039. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4040. if test -n "$ac_ct_RANLIB"; then
  4041. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4042. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4043. else
  4044. { echo "$as_me:$LINENO: result: no" >&5
  4045. echo "${ECHO_T}no" >&6; }
  4046. fi
  4047. if test "x$ac_ct_RANLIB" = x; then
  4048. RANLIB=":"
  4049. else
  4050. case $cross_compiling:$ac_tool_warned in
  4051. yes:)
  4052. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4053. whose name does not start with the host triplet. If you think this
  4054. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4055. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4056. whose name does not start with the host triplet. If you think this
  4057. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4058. ac_tool_warned=yes ;;
  4059. esac
  4060. RANLIB=$ac_ct_RANLIB
  4061. fi
  4062. else
  4063. RANLIB="$ac_cv_prog_RANLIB"
  4064. fi
  4065. for ac_prog in 'bison -y' byacc
  4066. do
  4067. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4068. set dummy $ac_prog; ac_word=$2
  4069. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4070. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4071. if test "${ac_cv_prog_YACC+set}" = set; then
  4072. echo $ECHO_N "(cached) $ECHO_C" >&6
  4073. else
  4074. if test -n "$YACC"; then
  4075. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4076. else
  4077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4078. for as_dir in $PATH
  4079. do
  4080. IFS=$as_save_IFS
  4081. test -z "$as_dir" && as_dir=.
  4082. for ac_exec_ext in '' $ac_executable_extensions; do
  4083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4084. ac_cv_prog_YACC="$ac_prog"
  4085. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4086. break 2
  4087. fi
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. fi
  4092. fi
  4093. YACC=$ac_cv_prog_YACC
  4094. if test -n "$YACC"; then
  4095. { echo "$as_me:$LINENO: result: $YACC" >&5
  4096. echo "${ECHO_T}$YACC" >&6; }
  4097. else
  4098. { echo "$as_me:$LINENO: result: no" >&5
  4099. echo "${ECHO_T}no" >&6; }
  4100. fi
  4101. test -n "$YACC" && break
  4102. done
  4103. test -n "$YACC" || YACC="yacc"
  4104. # Setting language choice
  4105. ac_ext=cpp
  4106. ac_cpp='$CXXCPP $CPPFLAGS'
  4107. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4108. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4109. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4110. # Check for GNU library
  4111. cat >>confdefs.h <<\_ACEOF
  4112. #define _GNU_SOURCE 1
  4113. _ACEOF
  4114. # Enable system extensions
  4115. ac_ext=cpp
  4116. ac_cpp='$CXXCPP $CPPFLAGS'
  4117. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4118. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4119. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4120. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4121. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4122. if test -z "$CXXCPP"; then
  4123. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4124. echo $ECHO_N "(cached) $ECHO_C" >&6
  4125. else
  4126. # Double quotes because CXXCPP needs to be expanded
  4127. for CXXCPP in "$CXX -E" "/lib/cpp"
  4128. do
  4129. ac_preproc_ok=false
  4130. for ac_cxx_preproc_warn_flag in '' yes
  4131. do
  4132. # Use a header file that comes with gcc, so configuring glibc
  4133. # with a fresh cross-compiler works.
  4134. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4135. # <limits.h> exists even on freestanding compilers.
  4136. # On the NeXT, cc -E runs the code through the compiler's parser,
  4137. # not just through cpp. "Syntax error" is here to catch this case.
  4138. cat >conftest.$ac_ext <<_ACEOF
  4139. /* confdefs.h. */
  4140. _ACEOF
  4141. cat confdefs.h >>conftest.$ac_ext
  4142. cat >>conftest.$ac_ext <<_ACEOF
  4143. /* end confdefs.h. */
  4144. #ifdef __STDC__
  4145. # include <limits.h>
  4146. #else
  4147. # include <assert.h>
  4148. #endif
  4149. Syntax error
  4150. _ACEOF
  4151. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4152. case "(($ac_try" in
  4153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4154. *) ac_try_echo=$ac_try;;
  4155. esac
  4156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4157. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4158. ac_status=$?
  4159. grep -v '^ *+' conftest.er1 >conftest.err
  4160. rm -f conftest.er1
  4161. cat conftest.err >&5
  4162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4163. (exit $ac_status); } >/dev/null && {
  4164. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4165. test ! -s conftest.err
  4166. }; then
  4167. :
  4168. else
  4169. echo "$as_me: failed program was:" >&5
  4170. sed 's/^/| /' conftest.$ac_ext >&5
  4171. # Broken: fails on valid input.
  4172. continue
  4173. fi
  4174. rm -f conftest.err conftest.$ac_ext
  4175. # OK, works on sane cases. Now check whether nonexistent headers
  4176. # can be detected and how.
  4177. cat >conftest.$ac_ext <<_ACEOF
  4178. /* confdefs.h. */
  4179. _ACEOF
  4180. cat confdefs.h >>conftest.$ac_ext
  4181. cat >>conftest.$ac_ext <<_ACEOF
  4182. /* end confdefs.h. */
  4183. #include <ac_nonexistent.h>
  4184. _ACEOF
  4185. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4186. case "(($ac_try" in
  4187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4188. *) ac_try_echo=$ac_try;;
  4189. esac
  4190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4191. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4192. ac_status=$?
  4193. grep -v '^ *+' conftest.er1 >conftest.err
  4194. rm -f conftest.er1
  4195. cat conftest.err >&5
  4196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4197. (exit $ac_status); } >/dev/null && {
  4198. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4199. test ! -s conftest.err
  4200. }; then
  4201. # Broken: success on invalid input.
  4202. continue
  4203. else
  4204. echo "$as_me: failed program was:" >&5
  4205. sed 's/^/| /' conftest.$ac_ext >&5
  4206. # Passes both tests.
  4207. ac_preproc_ok=:
  4208. break
  4209. fi
  4210. rm -f conftest.err conftest.$ac_ext
  4211. done
  4212. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4213. rm -f conftest.err conftest.$ac_ext
  4214. if $ac_preproc_ok; then
  4215. break
  4216. fi
  4217. done
  4218. ac_cv_prog_CXXCPP=$CXXCPP
  4219. fi
  4220. CXXCPP=$ac_cv_prog_CXXCPP
  4221. else
  4222. ac_cv_prog_CXXCPP=$CXXCPP
  4223. fi
  4224. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4225. echo "${ECHO_T}$CXXCPP" >&6; }
  4226. ac_preproc_ok=false
  4227. for ac_cxx_preproc_warn_flag in '' yes
  4228. do
  4229. # Use a header file that comes with gcc, so configuring glibc
  4230. # with a fresh cross-compiler works.
  4231. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4232. # <limits.h> exists even on freestanding compilers.
  4233. # On the NeXT, cc -E runs the code through the compiler's parser,
  4234. # not just through cpp. "Syntax error" is here to catch this case.
  4235. cat >conftest.$ac_ext <<_ACEOF
  4236. /* confdefs.h. */
  4237. _ACEOF
  4238. cat confdefs.h >>conftest.$ac_ext
  4239. cat >>conftest.$ac_ext <<_ACEOF
  4240. /* end confdefs.h. */
  4241. #ifdef __STDC__
  4242. # include <limits.h>
  4243. #else
  4244. # include <assert.h>
  4245. #endif
  4246. Syntax error
  4247. _ACEOF
  4248. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4249. case "(($ac_try" in
  4250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4251. *) ac_try_echo=$ac_try;;
  4252. esac
  4253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4254. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4255. ac_status=$?
  4256. grep -v '^ *+' conftest.er1 >conftest.err
  4257. rm -f conftest.er1
  4258. cat conftest.err >&5
  4259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4260. (exit $ac_status); } >/dev/null && {
  4261. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4262. test ! -s conftest.err
  4263. }; then
  4264. :
  4265. else
  4266. echo "$as_me: failed program was:" >&5
  4267. sed 's/^/| /' conftest.$ac_ext >&5
  4268. # Broken: fails on valid input.
  4269. continue
  4270. fi
  4271. rm -f conftest.err conftest.$ac_ext
  4272. # OK, works on sane cases. Now check whether nonexistent headers
  4273. # can be detected and how.
  4274. cat >conftest.$ac_ext <<_ACEOF
  4275. /* confdefs.h. */
  4276. _ACEOF
  4277. cat confdefs.h >>conftest.$ac_ext
  4278. cat >>conftest.$ac_ext <<_ACEOF
  4279. /* end confdefs.h. */
  4280. #include <ac_nonexistent.h>
  4281. _ACEOF
  4282. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4283. case "(($ac_try" in
  4284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4285. *) ac_try_echo=$ac_try;;
  4286. esac
  4287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4288. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4289. ac_status=$?
  4290. grep -v '^ *+' conftest.er1 >conftest.err
  4291. rm -f conftest.er1
  4292. cat conftest.err >&5
  4293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4294. (exit $ac_status); } >/dev/null && {
  4295. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4296. test ! -s conftest.err
  4297. }; then
  4298. # Broken: success on invalid input.
  4299. continue
  4300. else
  4301. echo "$as_me: failed program was:" >&5
  4302. sed 's/^/| /' conftest.$ac_ext >&5
  4303. # Passes both tests.
  4304. ac_preproc_ok=:
  4305. break
  4306. fi
  4307. rm -f conftest.err conftest.$ac_ext
  4308. done
  4309. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4310. rm -f conftest.err conftest.$ac_ext
  4311. if $ac_preproc_ok; then
  4312. :
  4313. else
  4314. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4315. See \`config.log' for more details." >&5
  4316. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4317. See \`config.log' for more details." >&2;}
  4318. { (exit 1); exit 1; }; }
  4319. fi
  4320. ac_ext=cpp
  4321. ac_cpp='$CXXCPP $CPPFLAGS'
  4322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4325. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4326. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4327. if test "${ac_cv_path_GREP+set}" = set; then
  4328. echo $ECHO_N "(cached) $ECHO_C" >&6
  4329. else
  4330. # Extract the first word of "grep ggrep" to use in msg output
  4331. if test -z "$GREP"; then
  4332. set dummy grep ggrep; ac_prog_name=$2
  4333. if test "${ac_cv_path_GREP+set}" = set; then
  4334. echo $ECHO_N "(cached) $ECHO_C" >&6
  4335. else
  4336. ac_path_GREP_found=false
  4337. # Loop through the user's path and test for each of PROGNAME-LIST
  4338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4339. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4340. do
  4341. IFS=$as_save_IFS
  4342. test -z "$as_dir" && as_dir=.
  4343. for ac_prog in grep ggrep; do
  4344. for ac_exec_ext in '' $ac_executable_extensions; do
  4345. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4346. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4347. # Check for GNU ac_path_GREP and select it if it is found.
  4348. # Check for GNU $ac_path_GREP
  4349. case `"$ac_path_GREP" --version 2>&1` in
  4350. *GNU*)
  4351. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4352. *)
  4353. ac_count=0
  4354. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4355. while :
  4356. do
  4357. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4358. mv "conftest.tmp" "conftest.in"
  4359. cp "conftest.in" "conftest.nl"
  4360. echo 'GREP' >> "conftest.nl"
  4361. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4362. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4363. ac_count=`expr $ac_count + 1`
  4364. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4365. # Best one so far, save it but keep looking for a better one
  4366. ac_cv_path_GREP="$ac_path_GREP"
  4367. ac_path_GREP_max=$ac_count
  4368. fi
  4369. # 10*(2^10) chars as input seems more than enough
  4370. test $ac_count -gt 10 && break
  4371. done
  4372. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4373. esac
  4374. $ac_path_GREP_found && break 3
  4375. done
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. fi
  4380. GREP="$ac_cv_path_GREP"
  4381. if test -z "$GREP"; then
  4382. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4383. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4384. { (exit 1); exit 1; }; }
  4385. fi
  4386. else
  4387. ac_cv_path_GREP=$GREP
  4388. fi
  4389. fi
  4390. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4391. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4392. GREP="$ac_cv_path_GREP"
  4393. { echo "$as_me:$LINENO: checking for egrep" >&5
  4394. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4395. if test "${ac_cv_path_EGREP+set}" = set; then
  4396. echo $ECHO_N "(cached) $ECHO_C" >&6
  4397. else
  4398. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4399. then ac_cv_path_EGREP="$GREP -E"
  4400. else
  4401. # Extract the first word of "egrep" to use in msg output
  4402. if test -z "$EGREP"; then
  4403. set dummy egrep; ac_prog_name=$2
  4404. if test "${ac_cv_path_EGREP+set}" = set; then
  4405. echo $ECHO_N "(cached) $ECHO_C" >&6
  4406. else
  4407. ac_path_EGREP_found=false
  4408. # Loop through the user's path and test for each of PROGNAME-LIST
  4409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4410. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4411. do
  4412. IFS=$as_save_IFS
  4413. test -z "$as_dir" && as_dir=.
  4414. for ac_prog in egrep; do
  4415. for ac_exec_ext in '' $ac_executable_extensions; do
  4416. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4417. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4418. # Check for GNU ac_path_EGREP and select it if it is found.
  4419. # Check for GNU $ac_path_EGREP
  4420. case `"$ac_path_EGREP" --version 2>&1` in
  4421. *GNU*)
  4422. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4423. *)
  4424. ac_count=0
  4425. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4426. while :
  4427. do
  4428. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4429. mv "conftest.tmp" "conftest.in"
  4430. cp "conftest.in" "conftest.nl"
  4431. echo 'EGREP' >> "conftest.nl"
  4432. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4433. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4434. ac_count=`expr $ac_count + 1`
  4435. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4436. # Best one so far, save it but keep looking for a better one
  4437. ac_cv_path_EGREP="$ac_path_EGREP"
  4438. ac_path_EGREP_max=$ac_count
  4439. fi
  4440. # 10*(2^10) chars as input seems more than enough
  4441. test $ac_count -gt 10 && break
  4442. done
  4443. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4444. esac
  4445. $ac_path_EGREP_found && break 3
  4446. done
  4447. done
  4448. done
  4449. IFS=$as_save_IFS
  4450. fi
  4451. EGREP="$ac_cv_path_EGREP"
  4452. if test -z "$EGREP"; then
  4453. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4454. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4455. { (exit 1); exit 1; }; }
  4456. fi
  4457. else
  4458. ac_cv_path_EGREP=$EGREP
  4459. fi
  4460. fi
  4461. fi
  4462. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4463. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4464. EGREP="$ac_cv_path_EGREP"
  4465. { echo "$as_me:$LINENO: checking for AIX" >&5
  4466. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4467. cat >conftest.$ac_ext <<_ACEOF
  4468. /* confdefs.h. */
  4469. _ACEOF
  4470. cat confdefs.h >>conftest.$ac_ext
  4471. cat >>conftest.$ac_ext <<_ACEOF
  4472. /* end confdefs.h. */
  4473. #ifdef _AIX
  4474. yes
  4475. #endif
  4476. _ACEOF
  4477. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4478. $EGREP "yes" >/dev/null 2>&1; then
  4479. { echo "$as_me:$LINENO: result: yes" >&5
  4480. echo "${ECHO_T}yes" >&6; }
  4481. cat >>confdefs.h <<\_ACEOF
  4482. #define _ALL_SOURCE 1
  4483. _ACEOF
  4484. else
  4485. { echo "$as_me:$LINENO: result: no" >&5
  4486. echo "${ECHO_T}no" >&6; }
  4487. fi
  4488. rm -f conftest*
  4489. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4490. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4491. if test "${ac_cv_header_stdc+set}" = set; then
  4492. echo $ECHO_N "(cached) $ECHO_C" >&6
  4493. else
  4494. cat >conftest.$ac_ext <<_ACEOF
  4495. /* confdefs.h. */
  4496. _ACEOF
  4497. cat confdefs.h >>conftest.$ac_ext
  4498. cat >>conftest.$ac_ext <<_ACEOF
  4499. /* end confdefs.h. */
  4500. #include <stdlib.h>
  4501. #include <stdarg.h>
  4502. #include <string.h>
  4503. #include <float.h>
  4504. int
  4505. main ()
  4506. {
  4507. ;
  4508. return 0;
  4509. }
  4510. _ACEOF
  4511. rm -f conftest.$ac_objext
  4512. if { (ac_try="$ac_compile"
  4513. case "(($ac_try" in
  4514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4515. *) ac_try_echo=$ac_try;;
  4516. esac
  4517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4518. (eval "$ac_compile") 2>conftest.er1
  4519. ac_status=$?
  4520. grep -v '^ *+' conftest.er1 >conftest.err
  4521. rm -f conftest.er1
  4522. cat conftest.err >&5
  4523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524. (exit $ac_status); } && {
  4525. test -z "$ac_cxx_werror_flag" ||
  4526. test ! -s conftest.err
  4527. } && test -s conftest.$ac_objext; then
  4528. ac_cv_header_stdc=yes
  4529. else
  4530. echo "$as_me: failed program was:" >&5
  4531. sed 's/^/| /' conftest.$ac_ext >&5
  4532. ac_cv_header_stdc=no
  4533. fi
  4534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4535. if test $ac_cv_header_stdc = yes; then
  4536. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4537. cat >conftest.$ac_ext <<_ACEOF
  4538. /* confdefs.h. */
  4539. _ACEOF
  4540. cat confdefs.h >>conftest.$ac_ext
  4541. cat >>conftest.$ac_ext <<_ACEOF
  4542. /* end confdefs.h. */
  4543. #include <string.h>
  4544. _ACEOF
  4545. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4546. $EGREP "memchr" >/dev/null 2>&1; then
  4547. :
  4548. else
  4549. ac_cv_header_stdc=no
  4550. fi
  4551. rm -f conftest*
  4552. fi
  4553. if test $ac_cv_header_stdc = yes; then
  4554. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4555. cat >conftest.$ac_ext <<_ACEOF
  4556. /* confdefs.h. */
  4557. _ACEOF
  4558. cat confdefs.h >>conftest.$ac_ext
  4559. cat >>conftest.$ac_ext <<_ACEOF
  4560. /* end confdefs.h. */
  4561. #include <stdlib.h>
  4562. _ACEOF
  4563. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4564. $EGREP "free" >/dev/null 2>&1; then
  4565. :
  4566. else
  4567. ac_cv_header_stdc=no
  4568. fi
  4569. rm -f conftest*
  4570. fi
  4571. if test $ac_cv_header_stdc = yes; then
  4572. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4573. if test "$cross_compiling" = yes; then
  4574. :
  4575. else
  4576. cat >conftest.$ac_ext <<_ACEOF
  4577. /* confdefs.h. */
  4578. _ACEOF
  4579. cat confdefs.h >>conftest.$ac_ext
  4580. cat >>conftest.$ac_ext <<_ACEOF
  4581. /* end confdefs.h. */
  4582. #include <ctype.h>
  4583. #include <stdlib.h>
  4584. #if ((' ' & 0x0FF) == 0x020)
  4585. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4586. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4587. #else
  4588. # define ISLOWER(c) \
  4589. (('a' <= (c) && (c) <= 'i') \
  4590. || ('j' <= (c) && (c) <= 'r') \
  4591. || ('s' <= (c) && (c) <= 'z'))
  4592. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4593. #endif
  4594. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4595. int
  4596. main ()
  4597. {
  4598. int i;
  4599. for (i = 0; i < 256; i++)
  4600. if (XOR (islower (i), ISLOWER (i))
  4601. || toupper (i) != TOUPPER (i))
  4602. return 2;
  4603. return 0;
  4604. }
  4605. _ACEOF
  4606. rm -f conftest$ac_exeext
  4607. if { (ac_try="$ac_link"
  4608. case "(($ac_try" in
  4609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4610. *) ac_try_echo=$ac_try;;
  4611. esac
  4612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4613. (eval "$ac_link") 2>&5
  4614. ac_status=$?
  4615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4616. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4617. { (case "(($ac_try" in
  4618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4619. *) ac_try_echo=$ac_try;;
  4620. esac
  4621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4622. (eval "$ac_try") 2>&5
  4623. ac_status=$?
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); }; }; then
  4626. :
  4627. else
  4628. echo "$as_me: program exited with status $ac_status" >&5
  4629. echo "$as_me: failed program was:" >&5
  4630. sed 's/^/| /' conftest.$ac_ext >&5
  4631. ( exit $ac_status )
  4632. ac_cv_header_stdc=no
  4633. fi
  4634. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4635. fi
  4636. fi
  4637. fi
  4638. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4639. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4640. if test $ac_cv_header_stdc = yes; then
  4641. cat >>confdefs.h <<\_ACEOF
  4642. #define STDC_HEADERS 1
  4643. _ACEOF
  4644. fi
  4645. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4646. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4647. inttypes.h stdint.h unistd.h
  4648. do
  4649. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4650. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4651. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4652. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4653. echo $ECHO_N "(cached) $ECHO_C" >&6
  4654. else
  4655. cat >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. $ac_includes_default
  4662. #include <$ac_header>
  4663. _ACEOF
  4664. rm -f conftest.$ac_objext
  4665. if { (ac_try="$ac_compile"
  4666. case "(($ac_try" in
  4667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4668. *) ac_try_echo=$ac_try;;
  4669. esac
  4670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4671. (eval "$ac_compile") 2>conftest.er1
  4672. ac_status=$?
  4673. grep -v '^ *+' conftest.er1 >conftest.err
  4674. rm -f conftest.er1
  4675. cat conftest.err >&5
  4676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4677. (exit $ac_status); } && {
  4678. test -z "$ac_cxx_werror_flag" ||
  4679. test ! -s conftest.err
  4680. } && test -s conftest.$ac_objext; then
  4681. eval "$as_ac_Header=yes"
  4682. else
  4683. echo "$as_me: failed program was:" >&5
  4684. sed 's/^/| /' conftest.$ac_ext >&5
  4685. eval "$as_ac_Header=no"
  4686. fi
  4687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. ac_res=`eval echo '${'$as_ac_Header'}'`
  4690. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4691. echo "${ECHO_T}$ac_res" >&6; }
  4692. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4693. cat >>confdefs.h <<_ACEOF
  4694. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4695. _ACEOF
  4696. fi
  4697. done
  4698. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4699. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4700. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4701. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4702. echo $ECHO_N "(cached) $ECHO_C" >&6
  4703. fi
  4704. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4705. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4706. else
  4707. # Is the header compilable?
  4708. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4709. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4710. cat >conftest.$ac_ext <<_ACEOF
  4711. /* confdefs.h. */
  4712. _ACEOF
  4713. cat confdefs.h >>conftest.$ac_ext
  4714. cat >>conftest.$ac_ext <<_ACEOF
  4715. /* end confdefs.h. */
  4716. $ac_includes_default
  4717. #include <minix/config.h>
  4718. _ACEOF
  4719. rm -f conftest.$ac_objext
  4720. if { (ac_try="$ac_compile"
  4721. case "(($ac_try" in
  4722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4723. *) ac_try_echo=$ac_try;;
  4724. esac
  4725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4726. (eval "$ac_compile") 2>conftest.er1
  4727. ac_status=$?
  4728. grep -v '^ *+' conftest.er1 >conftest.err
  4729. rm -f conftest.er1
  4730. cat conftest.err >&5
  4731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4732. (exit $ac_status); } && {
  4733. test -z "$ac_cxx_werror_flag" ||
  4734. test ! -s conftest.err
  4735. } && test -s conftest.$ac_objext; then
  4736. ac_header_compiler=yes
  4737. else
  4738. echo "$as_me: failed program was:" >&5
  4739. sed 's/^/| /' conftest.$ac_ext >&5
  4740. ac_header_compiler=no
  4741. fi
  4742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4743. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4744. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4745. # Is the header present?
  4746. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4747. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4748. cat >conftest.$ac_ext <<_ACEOF
  4749. /* confdefs.h. */
  4750. _ACEOF
  4751. cat confdefs.h >>conftest.$ac_ext
  4752. cat >>conftest.$ac_ext <<_ACEOF
  4753. /* end confdefs.h. */
  4754. #include <minix/config.h>
  4755. _ACEOF
  4756. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4757. case "(($ac_try" in
  4758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4759. *) ac_try_echo=$ac_try;;
  4760. esac
  4761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4762. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4763. ac_status=$?
  4764. grep -v '^ *+' conftest.er1 >conftest.err
  4765. rm -f conftest.er1
  4766. cat conftest.err >&5
  4767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4768. (exit $ac_status); } >/dev/null && {
  4769. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4770. test ! -s conftest.err
  4771. }; then
  4772. ac_header_preproc=yes
  4773. else
  4774. echo "$as_me: failed program was:" >&5
  4775. sed 's/^/| /' conftest.$ac_ext >&5
  4776. ac_header_preproc=no
  4777. fi
  4778. rm -f conftest.err conftest.$ac_ext
  4779. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4780. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4781. # So? What about this header?
  4782. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4783. yes:no: )
  4784. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4785. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4786. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4787. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4788. ac_header_preproc=yes
  4789. ;;
  4790. no:yes:* )
  4791. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4792. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4793. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4794. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4795. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4796. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4797. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4798. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4799. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4800. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4801. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4802. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4803. ( cat <<\_ASBOX
  4804. ## ----------------------------------------------- ##
  4805. ## Report this to t-tujikawa@users.sourceforge.net ##
  4806. ## ----------------------------------------------- ##
  4807. _ASBOX
  4808. ) | sed "s/^/$as_me: WARNING: /" >&2
  4809. ;;
  4810. esac
  4811. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4812. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4813. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4814. echo $ECHO_N "(cached) $ECHO_C" >&6
  4815. else
  4816. ac_cv_header_minix_config_h=$ac_header_preproc
  4817. fi
  4818. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4819. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4820. fi
  4821. if test $ac_cv_header_minix_config_h = yes; then
  4822. MINIX=yes
  4823. else
  4824. MINIX=
  4825. fi
  4826. if test "$MINIX" = yes; then
  4827. cat >>confdefs.h <<\_ACEOF
  4828. #define _POSIX_SOURCE 1
  4829. _ACEOF
  4830. cat >>confdefs.h <<\_ACEOF
  4831. #define _POSIX_1_SOURCE 2
  4832. _ACEOF
  4833. cat >>confdefs.h <<\_ACEOF
  4834. #define _MINIX 1
  4835. _ACEOF
  4836. fi
  4837. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4838. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4839. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4840. echo $ECHO_N "(cached) $ECHO_C" >&6
  4841. else
  4842. cat >conftest.$ac_ext <<_ACEOF
  4843. /* confdefs.h. */
  4844. _ACEOF
  4845. cat confdefs.h >>conftest.$ac_ext
  4846. cat >>conftest.$ac_ext <<_ACEOF
  4847. /* end confdefs.h. */
  4848. # define __EXTENSIONS__ 1
  4849. $ac_includes_default
  4850. int
  4851. main ()
  4852. {
  4853. ;
  4854. return 0;
  4855. }
  4856. _ACEOF
  4857. rm -f conftest.$ac_objext
  4858. if { (ac_try="$ac_compile"
  4859. case "(($ac_try" in
  4860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4861. *) ac_try_echo=$ac_try;;
  4862. esac
  4863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4864. (eval "$ac_compile") 2>conftest.er1
  4865. ac_status=$?
  4866. grep -v '^ *+' conftest.er1 >conftest.err
  4867. rm -f conftest.er1
  4868. cat conftest.err >&5
  4869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4870. (exit $ac_status); } && {
  4871. test -z "$ac_cxx_werror_flag" ||
  4872. test ! -s conftest.err
  4873. } && test -s conftest.$ac_objext; then
  4874. ac_cv_safe_to_define___extensions__=yes
  4875. else
  4876. echo "$as_me: failed program was:" >&5
  4877. sed 's/^/| /' conftest.$ac_ext >&5
  4878. ac_cv_safe_to_define___extensions__=no
  4879. fi
  4880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4881. fi
  4882. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4883. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4884. test $ac_cv_safe_to_define___extensions__ = yes &&
  4885. cat >>confdefs.h <<\_ACEOF
  4886. #define __EXTENSIONS__ 1
  4887. _ACEOF
  4888. cat >>confdefs.h <<\_ACEOF
  4889. #define _POSIX_PTHREAD_SEMANTICS 1
  4890. _ACEOF
  4891. cat >>confdefs.h <<\_ACEOF
  4892. #define _TANDEM_SOURCE 1
  4893. _ACEOF
  4894. # Checks for libraries.
  4895. if test "x$with_libxml2" = "xyes"; then
  4896. # Check whether --with-xml-prefix was given.
  4897. if test "${with_xml_prefix+set}" = set; then
  4898. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4899. else
  4900. xml_config_prefix=""
  4901. fi
  4902. # Check whether --with-xml-exec-prefix was given.
  4903. if test "${with_xml_exec_prefix+set}" = set; then
  4904. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4905. else
  4906. xml_config_exec_prefix=""
  4907. fi
  4908. # Check whether --enable-xmltest was given.
  4909. if test "${enable_xmltest+set}" = set; then
  4910. enableval=$enable_xmltest;
  4911. else
  4912. enable_xmltest=yes
  4913. fi
  4914. if test x$xml_config_exec_prefix != x ; then
  4915. xml_config_args="$xml_config_args"
  4916. if test x${XML2_CONFIG+set} != xset ; then
  4917. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4918. fi
  4919. fi
  4920. if test x$xml_config_prefix != x ; then
  4921. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4922. if test x${XML2_CONFIG+set} != xset ; then
  4923. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4924. fi
  4925. fi
  4926. # Extract the first word of "xml2-config", so it can be a program name with args.
  4927. set dummy xml2-config; ac_word=$2
  4928. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4929. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4930. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4931. echo $ECHO_N "(cached) $ECHO_C" >&6
  4932. else
  4933. case $XML2_CONFIG in
  4934. [\\/]* | ?:[\\/]*)
  4935. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4936. ;;
  4937. *)
  4938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4939. for as_dir in $PATH
  4940. do
  4941. IFS=$as_save_IFS
  4942. test -z "$as_dir" && as_dir=.
  4943. for ac_exec_ext in '' $ac_executable_extensions; do
  4944. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4945. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4946. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4947. break 2
  4948. fi
  4949. done
  4950. done
  4951. IFS=$as_save_IFS
  4952. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4953. ;;
  4954. esac
  4955. fi
  4956. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4957. if test -n "$XML2_CONFIG"; then
  4958. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4959. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4960. else
  4961. { echo "$as_me:$LINENO: result: no" >&5
  4962. echo "${ECHO_T}no" >&6; }
  4963. fi
  4964. min_xml_version=2.6.24
  4965. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4966. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4967. no_xml=""
  4968. if test "$XML2_CONFIG" = "no" ; then
  4969. no_xml=yes
  4970. else
  4971. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4972. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4973. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4974. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4975. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4976. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4977. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4978. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4979. if test "x$enable_xmltest" = "xyes" ; then
  4980. ac_save_CPPFLAGS="$CPPFLAGS"
  4981. ac_save_LIBS="$LIBS"
  4982. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4983. LIBS="$XML_LIBS $LIBS"
  4984. rm -f conf.xmltest
  4985. if test "$cross_compiling" = yes; then
  4986. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4987. else
  4988. cat >conftest.$ac_ext <<_ACEOF
  4989. /* confdefs.h. */
  4990. _ACEOF
  4991. cat confdefs.h >>conftest.$ac_ext
  4992. cat >>conftest.$ac_ext <<_ACEOF
  4993. /* end confdefs.h. */
  4994. #include <stdlib.h>
  4995. #include <stdio.h>
  4996. #include <string.h>
  4997. #include <libxml/xmlversion.h>
  4998. int
  4999. main()
  5000. {
  5001. int xml_major_version, xml_minor_version, xml_micro_version;
  5002. int major, minor, micro;
  5003. char *tmp_version;
  5004. system("touch conf.xmltest");
  5005. /* Capture xml2-config output via autoconf/configure variables */
  5006. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5007. tmp_version = (char *)strdup("$min_xml_version");
  5008. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5009. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5010. exit(1);
  5011. }
  5012. free(tmp_version);
  5013. /* Capture the version information from the header files */
  5014. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5015. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5016. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5017. exit(1);
  5018. }
  5019. free(tmp_version);
  5020. /* Compare xml2-config output to the libxml headers */
  5021. if ((xml_major_version != $xml_config_major_version) ||
  5022. (xml_minor_version != $xml_config_minor_version) ||
  5023. (xml_micro_version != $xml_config_micro_version))
  5024. {
  5025. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5026. xml_major_version, xml_minor_version, xml_micro_version);
  5027. printf("*** xml2-config (version %d.%d.%d)\n",
  5028. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5029. return 1;
  5030. }
  5031. /* Compare the headers to the library to make sure we match */
  5032. /* Less than ideal -- doesn't provide us with return value feedback,
  5033. * only exits if there's a serious mismatch between header and library.
  5034. */
  5035. LIBXML_TEST_VERSION;
  5036. /* Test that the library is greater than our minimum version */
  5037. if ((xml_major_version > major) ||
  5038. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5039. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5040. (xml_micro_version >= micro)))
  5041. {
  5042. return 0;
  5043. }
  5044. else
  5045. {
  5046. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5047. xml_major_version, xml_minor_version, xml_micro_version);
  5048. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5049. major, minor, micro);
  5050. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5051. printf("***\n");
  5052. printf("*** If you have already installed a sufficiently new version, this error\n");
  5053. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5054. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5055. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5056. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5057. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5058. printf("*** so that the correct libraries are found at run-time))\n");
  5059. }
  5060. return 1;
  5061. }
  5062. _ACEOF
  5063. rm -f conftest$ac_exeext
  5064. if { (ac_try="$ac_link"
  5065. case "(($ac_try" in
  5066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5067. *) ac_try_echo=$ac_try;;
  5068. esac
  5069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5070. (eval "$ac_link") 2>&5
  5071. ac_status=$?
  5072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5073. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5074. { (case "(($ac_try" in
  5075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5076. *) ac_try_echo=$ac_try;;
  5077. esac
  5078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5079. (eval "$ac_try") 2>&5
  5080. ac_status=$?
  5081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5082. (exit $ac_status); }; }; then
  5083. :
  5084. else
  5085. echo "$as_me: program exited with status $ac_status" >&5
  5086. echo "$as_me: failed program was:" >&5
  5087. sed 's/^/| /' conftest.$ac_ext >&5
  5088. ( exit $ac_status )
  5089. no_xml=yes
  5090. fi
  5091. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5092. fi
  5093. CPPFLAGS="$ac_save_CPPFLAGS"
  5094. LIBS="$ac_save_LIBS"
  5095. fi
  5096. fi
  5097. if test "x$no_xml" = x ; then
  5098. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5099. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5100. have_libxml2=yes
  5101. else
  5102. { echo "$as_me:$LINENO: result: no" >&5
  5103. echo "${ECHO_T}no" >&6; }
  5104. if test "$XML2_CONFIG" = "no" ; then
  5105. echo "*** The xml2-config script installed by LIBXML could not be found"
  5106. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5107. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5108. echo "*** full path to xml2-config."
  5109. else
  5110. if test -f conf.xmltest ; then
  5111. :
  5112. else
  5113. echo "*** Could not run libxml test program, checking why..."
  5114. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5115. LIBS="$LIBS $XML_LIBS"
  5116. cat >conftest.$ac_ext <<_ACEOF
  5117. /* confdefs.h. */
  5118. _ACEOF
  5119. cat confdefs.h >>conftest.$ac_ext
  5120. cat >>conftest.$ac_ext <<_ACEOF
  5121. /* end confdefs.h. */
  5122. #include <libxml/xmlversion.h>
  5123. #include <stdio.h>
  5124. int
  5125. main ()
  5126. {
  5127. LIBXML_TEST_VERSION; return 0;
  5128. ;
  5129. return 0;
  5130. }
  5131. _ACEOF
  5132. rm -f conftest.$ac_objext conftest$ac_exeext
  5133. if { (ac_try="$ac_link"
  5134. case "(($ac_try" in
  5135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5136. *) ac_try_echo=$ac_try;;
  5137. esac
  5138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5139. (eval "$ac_link") 2>conftest.er1
  5140. ac_status=$?
  5141. grep -v '^ *+' conftest.er1 >conftest.err
  5142. rm -f conftest.er1
  5143. cat conftest.err >&5
  5144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5145. (exit $ac_status); } && {
  5146. test -z "$ac_cxx_werror_flag" ||
  5147. test ! -s conftest.err
  5148. } && test -s conftest$ac_exeext &&
  5149. $as_test_x conftest$ac_exeext; then
  5150. echo "*** The test program compiled, but did not run. This usually means"
  5151. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5152. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5153. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5154. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5155. echo "*** is required on your system"
  5156. echo "***"
  5157. echo "*** If you have an old version installed, it is best to remove it, although"
  5158. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5159. else
  5160. echo "$as_me: failed program was:" >&5
  5161. sed 's/^/| /' conftest.$ac_ext >&5
  5162. echo "*** The test program failed to compile or link. See the file config.log for the"
  5163. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5164. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5165. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5166. fi
  5167. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5168. conftest$ac_exeext conftest.$ac_ext
  5169. CPPFLAGS="$ac_save_CPPFLAGS"
  5170. LIBS="$ac_save_LIBS"
  5171. fi
  5172. fi
  5173. XML_CPPFLAGS=""
  5174. XML_LIBS=""
  5175. :
  5176. fi
  5177. rm -f conf.xmltest
  5178. if test "x$have_libxml2" = "xyes"; then
  5179. cat >>confdefs.h <<\_ACEOF
  5180. #define HAVE_LIBXML2 1
  5181. _ACEOF
  5182. fi
  5183. fi
  5184. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5185. # Check whether --with-libexpat-prefix was given.
  5186. if test "${with_libexpat_prefix+set}" = set; then
  5187. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5188. else
  5189. libexpat_prefix=""
  5190. fi
  5191. if test "x$libexpat_prefix" = "x"; then
  5192. libexpat_prefix="/usr"
  5193. fi
  5194. libexpat_prefix_lib=$libexpat_prefix/lib
  5195. libexpat_prefix_include=$libexpat_prefix/include
  5196. LIBS_save=$LIBS
  5197. CPPFLAGS_save=$CPPFLAGS
  5198. LIBS="-L$libexpat_prefix_lib $LIBS"
  5199. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5200. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5201. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5202. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5203. echo $ECHO_N "(cached) $ECHO_C" >&6
  5204. else
  5205. ac_check_lib_save_LIBS=$LIBS
  5206. LIBS="-lexpat $LIBS"
  5207. cat >conftest.$ac_ext <<_ACEOF
  5208. /* confdefs.h. */
  5209. _ACEOF
  5210. cat confdefs.h >>conftest.$ac_ext
  5211. cat >>conftest.$ac_ext <<_ACEOF
  5212. /* end confdefs.h. */
  5213. /* Override any GCC internal prototype to avoid an error.
  5214. Use char because int might match the return type of a GCC
  5215. builtin and then its argument prototype would still apply. */
  5216. #ifdef __cplusplus
  5217. extern "C"
  5218. #endif
  5219. char XML_ParserCreate ();
  5220. int
  5221. main ()
  5222. {
  5223. return XML_ParserCreate ();
  5224. ;
  5225. return 0;
  5226. }
  5227. _ACEOF
  5228. rm -f conftest.$ac_objext conftest$ac_exeext
  5229. if { (ac_try="$ac_link"
  5230. case "(($ac_try" in
  5231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5232. *) ac_try_echo=$ac_try;;
  5233. esac
  5234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5235. (eval "$ac_link") 2>conftest.er1
  5236. ac_status=$?
  5237. grep -v '^ *+' conftest.er1 >conftest.err
  5238. rm -f conftest.er1
  5239. cat conftest.err >&5
  5240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5241. (exit $ac_status); } && {
  5242. test -z "$ac_cxx_werror_flag" ||
  5243. test ! -s conftest.err
  5244. } && test -s conftest$ac_exeext &&
  5245. $as_test_x conftest$ac_exeext; then
  5246. ac_cv_lib_expat_XML_ParserCreate=yes
  5247. else
  5248. echo "$as_me: failed program was:" >&5
  5249. sed 's/^/| /' conftest.$ac_ext >&5
  5250. ac_cv_lib_expat_XML_ParserCreate=no
  5251. fi
  5252. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5253. conftest$ac_exeext conftest.$ac_ext
  5254. LIBS=$ac_check_lib_save_LIBS
  5255. fi
  5256. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5257. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5258. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5259. have_libexpat=yes
  5260. fi
  5261. if test "x$have_libexpat" = "xyes"; then
  5262. cat >>confdefs.h <<\_ACEOF
  5263. #define HAVE_LIBEXPAT 1
  5264. _ACEOF
  5265. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5266. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5267. fi
  5268. LIBS=$LIBS_save
  5269. CPPFLAGS=$CPPFLAGS_save
  5270. fi
  5271. if test "x$with_sqlite3" = "xyes"; then
  5272. # Check whether --with-sqlite3-prefix was given.
  5273. if test "${with_sqlite3_prefix+set}" = set; then
  5274. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5275. else
  5276. sqlite3_prefix=""
  5277. fi
  5278. if test "x$sqlite3_prefix" = "x"; then
  5279. sqlite3_prefix="/usr"
  5280. fi
  5281. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5282. sqlite3_prefix_include=$sqlite3_prefix/include
  5283. LIBS_save=$LIBS
  5284. CPPFLAGS_save=$CPPFLAGS
  5285. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5286. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5287. { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5288. echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
  5289. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5290. echo $ECHO_N "(cached) $ECHO_C" >&6
  5291. else
  5292. ac_check_lib_save_LIBS=$LIBS
  5293. LIBS="-lsqlite3 $LIBS"
  5294. cat >conftest.$ac_ext <<_ACEOF
  5295. /* confdefs.h. */
  5296. _ACEOF
  5297. cat confdefs.h >>conftest.$ac_ext
  5298. cat >>conftest.$ac_ext <<_ACEOF
  5299. /* end confdefs.h. */
  5300. /* Override any GCC internal prototype to avoid an error.
  5301. Use char because int might match the return type of a GCC
  5302. builtin and then its argument prototype would still apply. */
  5303. #ifdef __cplusplus
  5304. extern "C"
  5305. #endif
  5306. char sqlite3_open ();
  5307. int
  5308. main ()
  5309. {
  5310. return sqlite3_open ();
  5311. ;
  5312. return 0;
  5313. }
  5314. _ACEOF
  5315. rm -f conftest.$ac_objext conftest$ac_exeext
  5316. if { (ac_try="$ac_link"
  5317. case "(($ac_try" in
  5318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5319. *) ac_try_echo=$ac_try;;
  5320. esac
  5321. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5322. (eval "$ac_link") 2>conftest.er1
  5323. ac_status=$?
  5324. grep -v '^ *+' conftest.er1 >conftest.err
  5325. rm -f conftest.er1
  5326. cat conftest.err >&5
  5327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5328. (exit $ac_status); } && {
  5329. test -z "$ac_cxx_werror_flag" ||
  5330. test ! -s conftest.err
  5331. } && test -s conftest$ac_exeext &&
  5332. $as_test_x conftest$ac_exeext; then
  5333. ac_cv_lib_sqlite3_sqlite3_open=yes
  5334. else
  5335. echo "$as_me: failed program was:" >&5
  5336. sed 's/^/| /' conftest.$ac_ext >&5
  5337. ac_cv_lib_sqlite3_sqlite3_open=no
  5338. fi
  5339. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5340. conftest$ac_exeext conftest.$ac_ext
  5341. LIBS=$ac_check_lib_save_LIBS
  5342. fi
  5343. { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5344. echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5345. if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
  5346. have_sqlite3=yes
  5347. fi
  5348. if test "x$have_sqlite3" = "xyes"; then
  5349. cat >>confdefs.h <<\_ACEOF
  5350. #define HAVE_SQLITE3 1
  5351. _ACEOF
  5352. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5353. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5354. fi
  5355. LIBS=$LIBS_save
  5356. CPPFLAGS=$CPPFLAGS_save
  5357. fi
  5358. if test "x$with_gnutls" = "xyes"; then
  5359. # Check whether --with-libgnutls-prefix was given.
  5360. if test "${with_libgnutls_prefix+set}" = set; then
  5361. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5362. else
  5363. libgnutls_config_prefix=""
  5364. fi
  5365. if test x$libgnutls_config_prefix != x ; then
  5366. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5367. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5368. fi
  5369. fi
  5370. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5371. set dummy libgnutls-config; ac_word=$2
  5372. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5373. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5374. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5375. echo $ECHO_N "(cached) $ECHO_C" >&6
  5376. else
  5377. case $LIBGNUTLS_CONFIG in
  5378. [\\/]* | ?:[\\/]*)
  5379. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5380. ;;
  5381. *)
  5382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5383. for as_dir in $PATH
  5384. do
  5385. IFS=$as_save_IFS
  5386. test -z "$as_dir" && as_dir=.
  5387. for ac_exec_ext in '' $ac_executable_extensions; do
  5388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5389. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5391. break 2
  5392. fi
  5393. done
  5394. done
  5395. IFS=$as_save_IFS
  5396. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5397. ;;
  5398. esac
  5399. fi
  5400. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5401. if test -n "$LIBGNUTLS_CONFIG"; then
  5402. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5403. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5404. else
  5405. { echo "$as_me:$LINENO: result: no" >&5
  5406. echo "${ECHO_T}no" >&6; }
  5407. fi
  5408. min_libgnutls_version=1.2.9
  5409. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5410. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5411. no_libgnutls=""
  5412. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5413. no_libgnutls=yes
  5414. else
  5415. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5416. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5417. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5418. ac_save_CFLAGS="$CFLAGS"
  5419. ac_save_LIBS="$LIBS"
  5420. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5421. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5422. rm -f conf.libgnutlstest
  5423. if test "$cross_compiling" = yes; then
  5424. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5425. else
  5426. cat >conftest.$ac_ext <<_ACEOF
  5427. /* confdefs.h. */
  5428. _ACEOF
  5429. cat confdefs.h >>conftest.$ac_ext
  5430. cat >>conftest.$ac_ext <<_ACEOF
  5431. /* end confdefs.h. */
  5432. #include <stdio.h>
  5433. #include <stdlib.h>
  5434. #include <string.h>
  5435. #include <gnutls/gnutls.h>
  5436. int
  5437. main ()
  5438. {
  5439. system ("touch conf.libgnutlstest");
  5440. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5441. {
  5442. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5443. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5444. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5445. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5446. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5447. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5448. printf("*** required on your system.\n");
  5449. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5450. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5451. printf("*** before re-running configure\n");
  5452. }
  5453. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5454. {
  5455. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5456. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5457. }
  5458. else
  5459. {
  5460. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5461. {
  5462. return 0;
  5463. }
  5464. else
  5465. {
  5466. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5467. gnutls_check_version(NULL) );
  5468. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5469. "$min_libgnutls_version" );
  5470. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5471. printf("*** \n");
  5472. printf("*** If you have already installed a sufficiently new version, this error\n");
  5473. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5474. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5475. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5476. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5477. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5478. printf("*** so that the correct libraries are found at run-time))\n");
  5479. }
  5480. }
  5481. return 1;
  5482. }
  5483. _ACEOF
  5484. rm -f conftest$ac_exeext
  5485. if { (ac_try="$ac_link"
  5486. case "(($ac_try" in
  5487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5488. *) ac_try_echo=$ac_try;;
  5489. esac
  5490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5491. (eval "$ac_link") 2>&5
  5492. ac_status=$?
  5493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5494. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5495. { (case "(($ac_try" in
  5496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5497. *) ac_try_echo=$ac_try;;
  5498. esac
  5499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5500. (eval "$ac_try") 2>&5
  5501. ac_status=$?
  5502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5503. (exit $ac_status); }; }; then
  5504. :
  5505. else
  5506. echo "$as_me: program exited with status $ac_status" >&5
  5507. echo "$as_me: failed program was:" >&5
  5508. sed 's/^/| /' conftest.$ac_ext >&5
  5509. ( exit $ac_status )
  5510. no_libgnutls=yes
  5511. fi
  5512. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5513. fi
  5514. CFLAGS="$ac_save_CFLAGS"
  5515. LIBS="$ac_save_LIBS"
  5516. fi
  5517. if test "x$no_libgnutls" = x ; then
  5518. { echo "$as_me:$LINENO: result: yes" >&5
  5519. echo "${ECHO_T}yes" >&6; }
  5520. have_libgnutls=yes
  5521. else
  5522. if test -f conf.libgnutlstest ; then
  5523. :
  5524. else
  5525. { echo "$as_me:$LINENO: result: no" >&5
  5526. echo "${ECHO_T}no" >&6; }
  5527. fi
  5528. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5529. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5530. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5531. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5532. echo "*** full path to libgnutls-config."
  5533. else
  5534. if test -f conf.libgnutlstest ; then
  5535. :
  5536. else
  5537. echo "*** Could not run libgnutls test program, checking why..."
  5538. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5539. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5540. cat >conftest.$ac_ext <<_ACEOF
  5541. /* confdefs.h. */
  5542. _ACEOF
  5543. cat confdefs.h >>conftest.$ac_ext
  5544. cat >>conftest.$ac_ext <<_ACEOF
  5545. /* end confdefs.h. */
  5546. #include <stdio.h>
  5547. #include <stdlib.h>
  5548. #include <string.h>
  5549. #include <gnutls/gnutls.h>
  5550. int
  5551. main ()
  5552. {
  5553. return !!gnutls_check_version(NULL);
  5554. ;
  5555. return 0;
  5556. }
  5557. _ACEOF
  5558. rm -f conftest.$ac_objext conftest$ac_exeext
  5559. if { (ac_try="$ac_link"
  5560. case "(($ac_try" in
  5561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5562. *) ac_try_echo=$ac_try;;
  5563. esac
  5564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5565. (eval "$ac_link") 2>conftest.er1
  5566. ac_status=$?
  5567. grep -v '^ *+' conftest.er1 >conftest.err
  5568. rm -f conftest.er1
  5569. cat conftest.err >&5
  5570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5571. (exit $ac_status); } && {
  5572. test -z "$ac_cxx_werror_flag" ||
  5573. test ! -s conftest.err
  5574. } && test -s conftest$ac_exeext &&
  5575. $as_test_x conftest$ac_exeext; then
  5576. echo "*** The test program compiled, but did not run. This usually means"
  5577. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5578. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5579. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5580. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5581. echo "*** is required on your system"
  5582. echo "***"
  5583. echo "*** If you have an old version installed, it is best to remove it, although"
  5584. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5585. echo "***"
  5586. else
  5587. echo "$as_me: failed program was:" >&5
  5588. sed 's/^/| /' conftest.$ac_ext >&5
  5589. echo "*** The test program failed to compile or link. See the file config.log for the"
  5590. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5591. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5592. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5593. fi
  5594. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5595. conftest$ac_exeext conftest.$ac_ext
  5596. CFLAGS="$ac_save_CFLAGS"
  5597. LIBS="$ac_save_LIBS"
  5598. fi
  5599. fi
  5600. LIBGNUTLS_CFLAGS=""
  5601. LIBGNUTLS_LIBS=""
  5602. :
  5603. fi
  5604. rm -f conf.libgnutlstest
  5605. if test "x$have_libgnutls" = "xyes"; then
  5606. cat >>confdefs.h <<\_ACEOF
  5607. #define HAVE_LIBGNUTLS 1
  5608. _ACEOF
  5609. fi
  5610. fi
  5611. if test "x$have_libgnutls" = "xyes"; then
  5612. # Check whether --with-libgcrypt-prefix was given.
  5613. if test "${with_libgcrypt_prefix+set}" = set; then
  5614. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5615. else
  5616. libgcrypt_config_prefix=""
  5617. fi
  5618. if test x$libgcrypt_config_prefix != x ; then
  5619. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5620. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5621. fi
  5622. fi
  5623. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5624. set dummy libgcrypt-config; ac_word=$2
  5625. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5626. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5627. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5628. echo $ECHO_N "(cached) $ECHO_C" >&6
  5629. else
  5630. case $LIBGCRYPT_CONFIG in
  5631. [\\/]* | ?:[\\/]*)
  5632. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5633. ;;
  5634. *)
  5635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5636. for as_dir in $PATH
  5637. do
  5638. IFS=$as_save_IFS
  5639. test -z "$as_dir" && as_dir=.
  5640. for ac_exec_ext in '' $ac_executable_extensions; do
  5641. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5642. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5643. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5644. break 2
  5645. fi
  5646. done
  5647. done
  5648. IFS=$as_save_IFS
  5649. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5650. ;;
  5651. esac
  5652. fi
  5653. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5654. if test -n "$LIBGCRYPT_CONFIG"; then
  5655. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5656. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5657. else
  5658. { echo "$as_me:$LINENO: result: no" >&5
  5659. echo "${ECHO_T}no" >&6; }
  5660. fi
  5661. tmp=1.2.2
  5662. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5663. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5664. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5665. else
  5666. req_libgcrypt_api=0
  5667. min_libgcrypt_version="$tmp"
  5668. fi
  5669. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5670. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5671. ok=no
  5672. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5673. req_major=`echo $min_libgcrypt_version | \
  5674. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5675. req_minor=`echo $min_libgcrypt_version | \
  5676. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5677. req_micro=`echo $min_libgcrypt_version | \
  5678. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5679. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5680. major=`echo $libgcrypt_config_version | \
  5681. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5682. minor=`echo $libgcrypt_config_version | \
  5683. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5684. micro=`echo $libgcrypt_config_version | \
  5685. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5686. if test "$major" -gt "$req_major"; then
  5687. ok=yes
  5688. else
  5689. if test "$major" -eq "$req_major"; then
  5690. if test "$minor" -gt "$req_minor"; then
  5691. ok=yes
  5692. else
  5693. if test "$minor" -eq "$req_minor"; then
  5694. if test "$micro" -ge "$req_micro"; then
  5695. ok=yes
  5696. fi
  5697. fi
  5698. fi
  5699. fi
  5700. fi
  5701. fi
  5702. if test $ok = yes; then
  5703. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5704. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5705. else
  5706. { echo "$as_me:$LINENO: result: no" >&5
  5707. echo "${ECHO_T}no" >&6; }
  5708. fi
  5709. if test $ok = yes; then
  5710. # If we have a recent libgcrypt, we should also check that the
  5711. # API is compatible
  5712. if test "$req_libgcrypt_api" -gt 0 ; then
  5713. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5714. if test "$tmp" -gt 0 ; then
  5715. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5716. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5717. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5718. { echo "$as_me:$LINENO: result: okay" >&5
  5719. echo "${ECHO_T}okay" >&6; }
  5720. else
  5721. ok=no
  5722. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5723. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5724. fi
  5725. fi
  5726. fi
  5727. fi
  5728. if test $ok = yes; then
  5729. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5730. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5731. have_libgcrypt=yes
  5732. else
  5733. LIBGCRYPT_CFLAGS=""
  5734. LIBGCRYPT_LIBS=""
  5735. :
  5736. fi
  5737. if test "x$have_libgcrypt" = "xyes"; then
  5738. cat >>confdefs.h <<\_ACEOF
  5739. #define HAVE_LIBGCRYPT 1
  5740. _ACEOF
  5741. fi
  5742. fi
  5743. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5744. # Check whether --with-openssl-prefix was given.
  5745. if test "${with_openssl_prefix+set}" = set; then
  5746. withval=$with_openssl_prefix; openssl_prefix=$withval
  5747. else
  5748. openssl_prefix=""
  5749. fi
  5750. if test "x$openssl_prefix" = "x"; then
  5751. openssl_prefix="/usr/local"
  5752. fi
  5753. LIBS_save=$LIBS
  5754. CPPFLAGS_save=$CPPFLAGS
  5755. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  5756. if test -x $PKG_CONFIG; then
  5757. { echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  5758. echo $ECHO_N "checking checking availability of openssl using pkg-config... $ECHO_C" >&6; }
  5759. $PKG_CONFIG --exists openssl
  5760. if test "$?" = "0"; then
  5761. # Use pkg-config to detect LIBS and CFLAGS
  5762. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  5763. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5764. LIBS="$OPENSSL_LIBS $LIBS"
  5765. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  5766. have_openssl=yes
  5767. { echo "$as_me:$LINENO: result: yes" >&5
  5768. echo "${ECHO_T}yes" >&6; }
  5769. else
  5770. { echo "$as_me:$LINENO: result: no" >&5
  5771. echo "${ECHO_T}no" >&6; }
  5772. fi
  5773. fi
  5774. if test "x$have_openssl" != "xyes"; then
  5775. openssl_prefix_lib=$openssl_prefix/lib
  5776. openssl_prefix_include=$openssl_prefix/include
  5777. LIBS="-L$openssl_prefix_lib $LIBS"
  5778. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5779. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5780. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5781. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5782. echo $ECHO_N "(cached) $ECHO_C" >&6
  5783. else
  5784. ac_check_lib_save_LIBS=$LIBS
  5785. LIBS="-lssl $LIBS"
  5786. cat >conftest.$ac_ext <<_ACEOF
  5787. /* confdefs.h. */
  5788. _ACEOF
  5789. cat confdefs.h >>conftest.$ac_ext
  5790. cat >>conftest.$ac_ext <<_ACEOF
  5791. /* end confdefs.h. */
  5792. /* Override any GCC internal prototype to avoid an error.
  5793. Use char because int might match the return type of a GCC
  5794. builtin and then its argument prototype would still apply. */
  5795. #ifdef __cplusplus
  5796. extern "C"
  5797. #endif
  5798. char SSL_library_init ();
  5799. int
  5800. main ()
  5801. {
  5802. return SSL_library_init ();
  5803. ;
  5804. return 0;
  5805. }
  5806. _ACEOF
  5807. rm -f conftest.$ac_objext conftest$ac_exeext
  5808. if { (ac_try="$ac_link"
  5809. case "(($ac_try" in
  5810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5811. *) ac_try_echo=$ac_try;;
  5812. esac
  5813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5814. (eval "$ac_link") 2>conftest.er1
  5815. ac_status=$?
  5816. grep -v '^ *+' conftest.er1 >conftest.err
  5817. rm -f conftest.er1
  5818. cat conftest.err >&5
  5819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5820. (exit $ac_status); } && {
  5821. test -z "$ac_cxx_werror_flag" ||
  5822. test ! -s conftest.err
  5823. } && test -s conftest$ac_exeext &&
  5824. $as_test_x conftest$ac_exeext; then
  5825. ac_cv_lib_ssl_SSL_library_init=yes
  5826. else
  5827. echo "$as_me: failed program was:" >&5
  5828. sed 's/^/| /' conftest.$ac_ext >&5
  5829. ac_cv_lib_ssl_SSL_library_init=no
  5830. fi
  5831. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5832. conftest$ac_exeext conftest.$ac_ext
  5833. LIBS=$ac_check_lib_save_LIBS
  5834. fi
  5835. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5836. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5837. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5838. have_openssl=yes LIBS="-lssl $LIBS"
  5839. fi
  5840. if test "x$have_openssl" = "xyes"; then
  5841. have_openssl=no
  5842. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5843. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5844. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5845. echo $ECHO_N "(cached) $ECHO_C" >&6
  5846. else
  5847. ac_check_lib_save_LIBS=$LIBS
  5848. LIBS="-lcrypto $LIBS"
  5849. cat >conftest.$ac_ext <<_ACEOF
  5850. /* confdefs.h. */
  5851. _ACEOF
  5852. cat confdefs.h >>conftest.$ac_ext
  5853. cat >>conftest.$ac_ext <<_ACEOF
  5854. /* end confdefs.h. */
  5855. int
  5856. main ()
  5857. {
  5858. return main ();
  5859. ;
  5860. return 0;
  5861. }
  5862. _ACEOF
  5863. rm -f conftest.$ac_objext conftest$ac_exeext
  5864. if { (ac_try="$ac_link"
  5865. case "(($ac_try" in
  5866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5867. *) ac_try_echo=$ac_try;;
  5868. esac
  5869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5870. (eval "$ac_link") 2>conftest.er1
  5871. ac_status=$?
  5872. grep -v '^ *+' conftest.er1 >conftest.err
  5873. rm -f conftest.er1
  5874. cat conftest.err >&5
  5875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5876. (exit $ac_status); } && {
  5877. test -z "$ac_cxx_werror_flag" ||
  5878. test ! -s conftest.err
  5879. } && test -s conftest$ac_exeext &&
  5880. $as_test_x conftest$ac_exeext; then
  5881. ac_cv_lib_crypto_main=yes
  5882. else
  5883. echo "$as_me: failed program was:" >&5
  5884. sed 's/^/| /' conftest.$ac_ext >&5
  5885. ac_cv_lib_crypto_main=no
  5886. fi
  5887. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5888. conftest$ac_exeext conftest.$ac_ext
  5889. LIBS=$ac_check_lib_save_LIBS
  5890. fi
  5891. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5892. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5893. if test $ac_cv_lib_crypto_main = yes; then
  5894. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5895. fi
  5896. if test "x$have_openssl" = "xyes"; then
  5897. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5898. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5899. fi
  5900. fi
  5901. fi
  5902. if test "x$have_openssl" = "xyes"; then
  5903. cat >>confdefs.h <<\_ACEOF
  5904. #define HAVE_LIBSSL 1
  5905. _ACEOF
  5906. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  5907. for ac_func in EVP_DigestInit_ex
  5908. do
  5909. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5910. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5911. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5912. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5913. echo $ECHO_N "(cached) $ECHO_C" >&6
  5914. else
  5915. cat >conftest.$ac_ext <<_ACEOF
  5916. /* confdefs.h. */
  5917. _ACEOF
  5918. cat confdefs.h >>conftest.$ac_ext
  5919. cat >>conftest.$ac_ext <<_ACEOF
  5920. /* end confdefs.h. */
  5921. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5922. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5923. #define $ac_func innocuous_$ac_func
  5924. /* System header to define __stub macros and hopefully few prototypes,
  5925. which can conflict with char $ac_func (); below.
  5926. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5927. <limits.h> exists even on freestanding compilers. */
  5928. #ifdef __STDC__
  5929. # include <limits.h>
  5930. #else
  5931. # include <assert.h>
  5932. #endif
  5933. #undef $ac_func
  5934. /* Override any GCC internal prototype to avoid an error.
  5935. Use char because int might match the return type of a GCC
  5936. builtin and then its argument prototype would still apply. */
  5937. #ifdef __cplusplus
  5938. extern "C"
  5939. #endif
  5940. char $ac_func ();
  5941. /* The GNU C library defines this for functions which it implements
  5942. to always fail with ENOSYS. Some functions are actually named
  5943. something starting with __ and the normal name is an alias. */
  5944. #if defined __stub_$ac_func || defined __stub___$ac_func
  5945. choke me
  5946. #endif
  5947. int
  5948. main ()
  5949. {
  5950. return $ac_func ();
  5951. ;
  5952. return 0;
  5953. }
  5954. _ACEOF
  5955. rm -f conftest.$ac_objext conftest$ac_exeext
  5956. if { (ac_try="$ac_link"
  5957. case "(($ac_try" in
  5958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5959. *) ac_try_echo=$ac_try;;
  5960. esac
  5961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5962. (eval "$ac_link") 2>conftest.er1
  5963. ac_status=$?
  5964. grep -v '^ *+' conftest.er1 >conftest.err
  5965. rm -f conftest.er1
  5966. cat conftest.err >&5
  5967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5968. (exit $ac_status); } && {
  5969. test -z "$ac_cxx_werror_flag" ||
  5970. test ! -s conftest.err
  5971. } && test -s conftest$ac_exeext &&
  5972. $as_test_x conftest$ac_exeext; then
  5973. eval "$as_ac_var=yes"
  5974. else
  5975. echo "$as_me: failed program was:" >&5
  5976. sed 's/^/| /' conftest.$ac_ext >&5
  5977. eval "$as_ac_var=no"
  5978. fi
  5979. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5980. conftest$ac_exeext conftest.$ac_ext
  5981. fi
  5982. ac_res=`eval echo '${'$as_ac_var'}'`
  5983. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5984. echo "${ECHO_T}$ac_res" >&6; }
  5985. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5986. cat >>confdefs.h <<_ACEOF
  5987. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5988. _ACEOF
  5989. have_digestinit_ex=yes
  5990. fi
  5991. done
  5992. if test "x$have_digestinit_ex" = "x"; then
  5993. cat >>confdefs.h <<\_ACEOF
  5994. #define HAVE_OLD_LIBSSL 1
  5995. _ACEOF
  5996. fi
  5997. # search for sha256 support
  5998. for ac_func in EVP_sha256
  5999. do
  6000. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6001. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6002. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6003. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6004. echo $ECHO_N "(cached) $ECHO_C" >&6
  6005. else
  6006. cat >conftest.$ac_ext <<_ACEOF
  6007. /* confdefs.h. */
  6008. _ACEOF
  6009. cat confdefs.h >>conftest.$ac_ext
  6010. cat >>conftest.$ac_ext <<_ACEOF
  6011. /* end confdefs.h. */
  6012. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6013. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6014. #define $ac_func innocuous_$ac_func
  6015. /* System header to define __stub macros and hopefully few prototypes,
  6016. which can conflict with char $ac_func (); below.
  6017. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6018. <limits.h> exists even on freestanding compilers. */
  6019. #ifdef __STDC__
  6020. # include <limits.h>
  6021. #else
  6022. # include <assert.h>
  6023. #endif
  6024. #undef $ac_func
  6025. /* Override any GCC internal prototype to avoid an error.
  6026. Use char because int might match the return type of a GCC
  6027. builtin and then its argument prototype would still apply. */
  6028. #ifdef __cplusplus
  6029. extern "C"
  6030. #endif
  6031. char $ac_func ();
  6032. /* The GNU C library defines this for functions which it implements
  6033. to always fail with ENOSYS. Some functions are actually named
  6034. something starting with __ and the normal name is an alias. */
  6035. #if defined __stub_$ac_func || defined __stub___$ac_func
  6036. choke me
  6037. #endif
  6038. int
  6039. main ()
  6040. {
  6041. return $ac_func ();
  6042. ;
  6043. return 0;
  6044. }
  6045. _ACEOF
  6046. rm -f conftest.$ac_objext conftest$ac_exeext
  6047. if { (ac_try="$ac_link"
  6048. case "(($ac_try" in
  6049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6050. *) ac_try_echo=$ac_try;;
  6051. esac
  6052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6053. (eval "$ac_link") 2>conftest.er1
  6054. ac_status=$?
  6055. grep -v '^ *+' conftest.er1 >conftest.err
  6056. rm -f conftest.er1
  6057. cat conftest.err >&5
  6058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6059. (exit $ac_status); } && {
  6060. test -z "$ac_cxx_werror_flag" ||
  6061. test ! -s conftest.err
  6062. } && test -s conftest$ac_exeext &&
  6063. $as_test_x conftest$ac_exeext; then
  6064. eval "$as_ac_var=yes"
  6065. else
  6066. echo "$as_me: failed program was:" >&5
  6067. sed 's/^/| /' conftest.$ac_ext >&5
  6068. eval "$as_ac_var=no"
  6069. fi
  6070. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6071. conftest$ac_exeext conftest.$ac_ext
  6072. fi
  6073. ac_res=`eval echo '${'$as_ac_var'}'`
  6074. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6075. echo "${ECHO_T}$ac_res" >&6; }
  6076. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6077. cat >>confdefs.h <<_ACEOF
  6078. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6079. _ACEOF
  6080. fi
  6081. done
  6082. fi
  6083. LIBS=$LIBS_save
  6084. CPPFLAGS=$CPPFLAGS_save
  6085. fi
  6086. if test "x$with_libcares" = "xyes"; then
  6087. # Check whether --with-libcares-prefix was given.
  6088. if test "${with_libcares_prefix+set}" = set; then
  6089. withval=$with_libcares_prefix; libcares_prefix=$withval
  6090. else
  6091. libcares_prefix=""
  6092. fi
  6093. if test "x$libcares_prefix" = "x"; then
  6094. libcares_prefix="/usr"
  6095. fi
  6096. libcares_prefix_lib=$libcares_prefix/lib
  6097. libcares_prefix_include=$libcares_prefix/include
  6098. LIBS_save=$LIBS
  6099. CPPFLAGS_save=$CPPFLAGS
  6100. LIBS="-L$libcares_prefix_lib $LIBS"
  6101. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6102. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6103. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6104. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6105. echo $ECHO_N "(cached) $ECHO_C" >&6
  6106. else
  6107. ac_check_lib_save_LIBS=$LIBS
  6108. LIBS="-lcares $LIBS"
  6109. cat >conftest.$ac_ext <<_ACEOF
  6110. /* confdefs.h. */
  6111. _ACEOF
  6112. cat confdefs.h >>conftest.$ac_ext
  6113. cat >>conftest.$ac_ext <<_ACEOF
  6114. /* end confdefs.h. */
  6115. /* Override any GCC internal prototype to avoid an error.
  6116. Use char because int might match the return type of a GCC
  6117. builtin and then its argument prototype would still apply. */
  6118. #ifdef __cplusplus
  6119. extern "C"
  6120. #endif
  6121. char ares_init ();
  6122. int
  6123. main ()
  6124. {
  6125. return ares_init ();
  6126. ;
  6127. return 0;
  6128. }
  6129. _ACEOF
  6130. rm -f conftest.$ac_objext conftest$ac_exeext
  6131. if { (ac_try="$ac_link"
  6132. case "(($ac_try" in
  6133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6134. *) ac_try_echo=$ac_try;;
  6135. esac
  6136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6137. (eval "$ac_link") 2>conftest.er1
  6138. ac_status=$?
  6139. grep -v '^ *+' conftest.er1 >conftest.err
  6140. rm -f conftest.er1
  6141. cat conftest.err >&5
  6142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6143. (exit $ac_status); } && {
  6144. test -z "$ac_cxx_werror_flag" ||
  6145. test ! -s conftest.err
  6146. } && test -s conftest$ac_exeext &&
  6147. $as_test_x conftest$ac_exeext; then
  6148. ac_cv_lib_cares_ares_init=yes
  6149. else
  6150. echo "$as_me: failed program was:" >&5
  6151. sed 's/^/| /' conftest.$ac_ext >&5
  6152. ac_cv_lib_cares_ares_init=no
  6153. fi
  6154. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6155. conftest$ac_exeext conftest.$ac_ext
  6156. LIBS=$ac_check_lib_save_LIBS
  6157. fi
  6158. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6159. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6160. if test $ac_cv_lib_cares_ares_init = yes; then
  6161. have_libcares=yes
  6162. fi
  6163. if test "x$have_libcares" = "xyes"; then
  6164. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6165. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6166. cat >conftest.$ac_ext <<_ACEOF
  6167. /* confdefs.h. */
  6168. _ACEOF
  6169. cat confdefs.h >>conftest.$ac_ext
  6170. cat >>conftest.$ac_ext <<_ACEOF
  6171. /* end confdefs.h. */
  6172. #include <ares.h>
  6173. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6174. int
  6175. main ()
  6176. {
  6177. ares_channel channel;
  6178. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6179. ;
  6180. return 0;
  6181. }
  6182. _ACEOF
  6183. rm -f conftest.$ac_objext
  6184. if { (ac_try="$ac_compile"
  6185. case "(($ac_try" in
  6186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6187. *) ac_try_echo=$ac_try;;
  6188. esac
  6189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6190. (eval "$ac_compile") 2>conftest.er1
  6191. ac_status=$?
  6192. grep -v '^ *+' conftest.er1 >conftest.err
  6193. rm -f conftest.er1
  6194. cat conftest.err >&5
  6195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6196. (exit $ac_status); } && {
  6197. test -z "$ac_cxx_werror_flag" ||
  6198. test ! -s conftest.err
  6199. } && test -s conftest.$ac_objext; then
  6200. have_libcares1_5=yes
  6201. else
  6202. echo "$as_me: failed program was:" >&5
  6203. sed 's/^/| /' conftest.$ac_ext >&5
  6204. have_libcares1_5=no
  6205. fi
  6206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6207. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6208. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6209. if test "x$have_libcares1_5" = "xyes"; then
  6210. cat >>confdefs.h <<\_ACEOF
  6211. #define HAVE_LIBCARES1_5 1
  6212. _ACEOF
  6213. fi
  6214. cat >>confdefs.h <<\_ACEOF
  6215. #define HAVE_LIBCARES 1
  6216. _ACEOF
  6217. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6218. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6219. fi
  6220. LIBS=$LIBS_save
  6221. CPPFLAGS=$CPPFLAGS_save
  6222. fi
  6223. if test "x$have_libcares" = "x"; then
  6224. if test "x$with_libares" = "xyes"; then
  6225. # Check whether --with-libares-prefix was given.
  6226. if test "${with_libares_prefix+set}" = set; then
  6227. withval=$with_libares_prefix; libares_prefix=$withval
  6228. else
  6229. libares_prefix=""
  6230. fi
  6231. if test "x$libares_prefix" = "x"; then
  6232. libares_prefix="/usr"
  6233. fi
  6234. libares_prefix_lib=$libares_prefix/lib
  6235. libares_prefix_include=$libares_prefix/include
  6236. LIBS_save=$LIBS
  6237. CPPFLAGS_save=$CPPFLAGS
  6238. LIBS="-L$libares_prefix_lib $LIBS"
  6239. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6240. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6241. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6242. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6243. echo $ECHO_N "(cached) $ECHO_C" >&6
  6244. else
  6245. ac_check_lib_save_LIBS=$LIBS
  6246. LIBS="-lares $LIBS"
  6247. cat >conftest.$ac_ext <<_ACEOF
  6248. /* confdefs.h. */
  6249. _ACEOF
  6250. cat confdefs.h >>conftest.$ac_ext
  6251. cat >>conftest.$ac_ext <<_ACEOF
  6252. /* end confdefs.h. */
  6253. /* Override any GCC internal prototype to avoid an error.
  6254. Use char because int might match the return type of a GCC
  6255. builtin and then its argument prototype would still apply. */
  6256. #ifdef __cplusplus
  6257. extern "C"
  6258. #endif
  6259. char ares_init ();
  6260. int
  6261. main ()
  6262. {
  6263. return ares_init ();
  6264. ;
  6265. return 0;
  6266. }
  6267. _ACEOF
  6268. rm -f conftest.$ac_objext conftest$ac_exeext
  6269. if { (ac_try="$ac_link"
  6270. case "(($ac_try" in
  6271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6272. *) ac_try_echo=$ac_try;;
  6273. esac
  6274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6275. (eval "$ac_link") 2>conftest.er1
  6276. ac_status=$?
  6277. grep -v '^ *+' conftest.er1 >conftest.err
  6278. rm -f conftest.er1
  6279. cat conftest.err >&5
  6280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6281. (exit $ac_status); } && {
  6282. test -z "$ac_cxx_werror_flag" ||
  6283. test ! -s conftest.err
  6284. } && test -s conftest$ac_exeext &&
  6285. $as_test_x conftest$ac_exeext; then
  6286. ac_cv_lib_ares_ares_init=yes
  6287. else
  6288. echo "$as_me: failed program was:" >&5
  6289. sed 's/^/| /' conftest.$ac_ext >&5
  6290. ac_cv_lib_ares_ares_init=no
  6291. fi
  6292. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6293. conftest$ac_exeext conftest.$ac_ext
  6294. LIBS=$ac_check_lib_save_LIBS
  6295. fi
  6296. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6297. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6298. if test $ac_cv_lib_ares_ares_init = yes; then
  6299. have_libares=yes
  6300. fi
  6301. if test "x$have_libares" = "xyes"; then
  6302. cat >>confdefs.h <<\_ACEOF
  6303. #define HAVE_LIBARES 1
  6304. _ACEOF
  6305. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6306. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6307. fi
  6308. LIBS=$LIBS_save
  6309. CPPFLAGS=$CPPFLAGS_save
  6310. fi
  6311. fi
  6312. # Check availability of libz
  6313. if test "x$with_libz" = "xyes"; then
  6314. # Check whether --with-libz-prefix was given.
  6315. if test "${with_libz_prefix+set}" = set; then
  6316. withval=$with_libz_prefix; libz_prefix=$withval
  6317. else
  6318. libz_prefix=""
  6319. fi
  6320. if test "x$libz_prefix" = "x"; then
  6321. libz_prefix="/usr"
  6322. fi
  6323. libz_prefix_lib=$libz_prefix/lib
  6324. libz_prefix_include=$libz_prefix/include
  6325. LIBS_save=$LIBS
  6326. CPPFLAGS_save=$CPPFLAGS
  6327. LIBS="-L$libz_prefix_lib $LIBS"
  6328. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6329. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6330. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6331. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6332. echo $ECHO_N "(cached) $ECHO_C" >&6
  6333. else
  6334. ac_check_lib_save_LIBS=$LIBS
  6335. LIBS="-lz $LIBS"
  6336. cat >conftest.$ac_ext <<_ACEOF
  6337. /* confdefs.h. */
  6338. _ACEOF
  6339. cat confdefs.h >>conftest.$ac_ext
  6340. cat >>conftest.$ac_ext <<_ACEOF
  6341. /* end confdefs.h. */
  6342. /* Override any GCC internal prototype to avoid an error.
  6343. Use char because int might match the return type of a GCC
  6344. builtin and then its argument prototype would still apply. */
  6345. #ifdef __cplusplus
  6346. extern "C"
  6347. #endif
  6348. char zlibVersion ();
  6349. int
  6350. main ()
  6351. {
  6352. return zlibVersion ();
  6353. ;
  6354. return 0;
  6355. }
  6356. _ACEOF
  6357. rm -f conftest.$ac_objext conftest$ac_exeext
  6358. if { (ac_try="$ac_link"
  6359. case "(($ac_try" in
  6360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6361. *) ac_try_echo=$ac_try;;
  6362. esac
  6363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6364. (eval "$ac_link") 2>conftest.er1
  6365. ac_status=$?
  6366. grep -v '^ *+' conftest.er1 >conftest.err
  6367. rm -f conftest.er1
  6368. cat conftest.err >&5
  6369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6370. (exit $ac_status); } && {
  6371. test -z "$ac_cxx_werror_flag" ||
  6372. test ! -s conftest.err
  6373. } && test -s conftest$ac_exeext &&
  6374. $as_test_x conftest$ac_exeext; then
  6375. ac_cv_lib_z_zlibVersion=yes
  6376. else
  6377. echo "$as_me: failed program was:" >&5
  6378. sed 's/^/| /' conftest.$ac_ext >&5
  6379. ac_cv_lib_z_zlibVersion=no
  6380. fi
  6381. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6382. conftest$ac_exeext conftest.$ac_ext
  6383. LIBS=$ac_check_lib_save_LIBS
  6384. fi
  6385. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6386. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6387. if test $ac_cv_lib_z_zlibVersion = yes; then
  6388. have_libz=yes
  6389. fi
  6390. if test "x$have_libz" = "xyes"; then
  6391. cat >>confdefs.h <<\_ACEOF
  6392. #define HAVE_LIBZ 1
  6393. _ACEOF
  6394. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6395. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6396. fi
  6397. LIBS=$LIBS_save
  6398. CPPFLAGS=$CPPFLAGS_save
  6399. fi
  6400. # Define variables based on the result of the checks for libraries.
  6401. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6402. cat >>confdefs.h <<\_ACEOF
  6403. #define ENABLE_SSL 1
  6404. _ACEOF
  6405. fi
  6406. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6407. cat >>confdefs.h <<\_ACEOF
  6408. #define ENABLE_MESSAGE_DIGEST 1
  6409. _ACEOF
  6410. if true; then
  6411. ENABLE_MESSAGE_DIGEST_TRUE=
  6412. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6413. else
  6414. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6415. ENABLE_MESSAGE_DIGEST_FALSE=
  6416. fi
  6417. enable_message_digest=yes
  6418. else
  6419. if false; then
  6420. ENABLE_MESSAGE_DIGEST_TRUE=
  6421. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6422. else
  6423. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6424. ENABLE_MESSAGE_DIGEST_FALSE=
  6425. fi
  6426. fi
  6427. if test "x$enable_bittorrent" = "xyes" &&
  6428. test "x$enable_message_digest" = "xyes"; then
  6429. cat >>confdefs.h <<\_ACEOF
  6430. #define ENABLE_BITTORRENT 1
  6431. _ACEOF
  6432. if true; then
  6433. ENABLE_BITTORRENT_TRUE=
  6434. ENABLE_BITTORRENT_FALSE='#'
  6435. else
  6436. ENABLE_BITTORRENT_TRUE='#'
  6437. ENABLE_BITTORRENT_FALSE=
  6438. fi
  6439. else
  6440. enable_bittorrent=no
  6441. if false; then
  6442. ENABLE_BITTORRENT_TRUE=
  6443. ENABLE_BITTORRENT_FALSE='#'
  6444. else
  6445. ENABLE_BITTORRENT_TRUE='#'
  6446. ENABLE_BITTORRENT_FALSE=
  6447. fi
  6448. fi
  6449. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6450. test "x$enable_metalink" = "xyes"; then
  6451. cat >>confdefs.h <<\_ACEOF
  6452. #define ENABLE_METALINK 1
  6453. _ACEOF
  6454. if true; then
  6455. ENABLE_METALINK_TRUE=
  6456. ENABLE_METALINK_FALSE='#'
  6457. else
  6458. ENABLE_METALINK_TRUE='#'
  6459. ENABLE_METALINK_FALSE=
  6460. fi
  6461. else
  6462. enable_metalink=no
  6463. if false; then
  6464. ENABLE_METALINK_TRUE=
  6465. ENABLE_METALINK_FALSE='#'
  6466. else
  6467. ENABLE_METALINK_TRUE='#'
  6468. ENABLE_METALINK_FALSE=
  6469. fi
  6470. fi
  6471. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6472. ENABLE_LIBXML2_TRUE=
  6473. ENABLE_LIBXML2_FALSE='#'
  6474. else
  6475. ENABLE_LIBXML2_TRUE='#'
  6476. ENABLE_LIBXML2_FALSE=
  6477. fi
  6478. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6479. ENABLE_LIBEXPAT_TRUE=
  6480. ENABLE_LIBEXPAT_FALSE='#'
  6481. else
  6482. ENABLE_LIBEXPAT_TRUE='#'
  6483. ENABLE_LIBEXPAT_FALSE=
  6484. fi
  6485. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6486. cat >>confdefs.h <<\_ACEOF
  6487. #define ENABLE_ASYNC_DNS 1
  6488. _ACEOF
  6489. if true; then
  6490. ENABLE_ASYNC_DNS_TRUE=
  6491. ENABLE_ASYNC_DNS_FALSE='#'
  6492. else
  6493. ENABLE_ASYNC_DNS_TRUE='#'
  6494. ENABLE_ASYNC_DNS_FALSE=
  6495. fi
  6496. else
  6497. if false; then
  6498. ENABLE_ASYNC_DNS_TRUE=
  6499. ENABLE_ASYNC_DNS_FALSE='#'
  6500. else
  6501. ENABLE_ASYNC_DNS_TRUE='#'
  6502. ENABLE_ASYNC_DNS_FALSE=
  6503. fi
  6504. fi
  6505. # Set conditional for libz
  6506. if test "x$have_libz" = "xyes"; then
  6507. HAVE_LIBZ_TRUE=
  6508. HAVE_LIBZ_FALSE='#'
  6509. else
  6510. HAVE_LIBZ_TRUE='#'
  6511. HAVE_LIBZ_FALSE=
  6512. fi
  6513. # Set conditional for sqlite3
  6514. if test "x$have_sqlite3" = "xyes"; then
  6515. HAVE_SQLITE3_TRUE=
  6516. HAVE_SQLITE3_FALSE='#'
  6517. else
  6518. HAVE_SQLITE3_TRUE='#'
  6519. HAVE_SQLITE3_FALSE=
  6520. fi
  6521. # Checks for header files.
  6522. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6523. # for constant arguments. Useless!
  6524. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6525. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6526. if test "${ac_cv_working_alloca_h+set}" = set; then
  6527. echo $ECHO_N "(cached) $ECHO_C" >&6
  6528. else
  6529. cat >conftest.$ac_ext <<_ACEOF
  6530. /* confdefs.h. */
  6531. _ACEOF
  6532. cat confdefs.h >>conftest.$ac_ext
  6533. cat >>conftest.$ac_ext <<_ACEOF
  6534. /* end confdefs.h. */
  6535. #include <alloca.h>
  6536. int
  6537. main ()
  6538. {
  6539. char *p = (char *) alloca (2 * sizeof (int));
  6540. if (p) return 0;
  6541. ;
  6542. return 0;
  6543. }
  6544. _ACEOF
  6545. rm -f conftest.$ac_objext conftest$ac_exeext
  6546. if { (ac_try="$ac_link"
  6547. case "(($ac_try" in
  6548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6549. *) ac_try_echo=$ac_try;;
  6550. esac
  6551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6552. (eval "$ac_link") 2>conftest.er1
  6553. ac_status=$?
  6554. grep -v '^ *+' conftest.er1 >conftest.err
  6555. rm -f conftest.er1
  6556. cat conftest.err >&5
  6557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6558. (exit $ac_status); } && {
  6559. test -z "$ac_cxx_werror_flag" ||
  6560. test ! -s conftest.err
  6561. } && test -s conftest$ac_exeext &&
  6562. $as_test_x conftest$ac_exeext; then
  6563. ac_cv_working_alloca_h=yes
  6564. else
  6565. echo "$as_me: failed program was:" >&5
  6566. sed 's/^/| /' conftest.$ac_ext >&5
  6567. ac_cv_working_alloca_h=no
  6568. fi
  6569. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6570. conftest$ac_exeext conftest.$ac_ext
  6571. fi
  6572. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6573. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6574. if test $ac_cv_working_alloca_h = yes; then
  6575. cat >>confdefs.h <<\_ACEOF
  6576. #define HAVE_ALLOCA_H 1
  6577. _ACEOF
  6578. fi
  6579. { echo "$as_me:$LINENO: checking for alloca" >&5
  6580. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6581. if test "${ac_cv_func_alloca_works+set}" = set; then
  6582. echo $ECHO_N "(cached) $ECHO_C" >&6
  6583. else
  6584. cat >conftest.$ac_ext <<_ACEOF
  6585. /* confdefs.h. */
  6586. _ACEOF
  6587. cat confdefs.h >>conftest.$ac_ext
  6588. cat >>conftest.$ac_ext <<_ACEOF
  6589. /* end confdefs.h. */
  6590. #ifdef __GNUC__
  6591. # define alloca __builtin_alloca
  6592. #else
  6593. # ifdef _MSC_VER
  6594. # include <malloc.h>
  6595. # define alloca _alloca
  6596. # else
  6597. # ifdef HAVE_ALLOCA_H
  6598. # include <alloca.h>
  6599. # else
  6600. # ifdef _AIX
  6601. #pragma alloca
  6602. # else
  6603. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6604. char *alloca ();
  6605. # endif
  6606. # endif
  6607. # endif
  6608. # endif
  6609. #endif
  6610. int
  6611. main ()
  6612. {
  6613. char *p = (char *) alloca (1);
  6614. if (p) return 0;
  6615. ;
  6616. return 0;
  6617. }
  6618. _ACEOF
  6619. rm -f conftest.$ac_objext conftest$ac_exeext
  6620. if { (ac_try="$ac_link"
  6621. case "(($ac_try" in
  6622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6623. *) ac_try_echo=$ac_try;;
  6624. esac
  6625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6626. (eval "$ac_link") 2>conftest.er1
  6627. ac_status=$?
  6628. grep -v '^ *+' conftest.er1 >conftest.err
  6629. rm -f conftest.er1
  6630. cat conftest.err >&5
  6631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6632. (exit $ac_status); } && {
  6633. test -z "$ac_cxx_werror_flag" ||
  6634. test ! -s conftest.err
  6635. } && test -s conftest$ac_exeext &&
  6636. $as_test_x conftest$ac_exeext; then
  6637. ac_cv_func_alloca_works=yes
  6638. else
  6639. echo "$as_me: failed program was:" >&5
  6640. sed 's/^/| /' conftest.$ac_ext >&5
  6641. ac_cv_func_alloca_works=no
  6642. fi
  6643. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6644. conftest$ac_exeext conftest.$ac_ext
  6645. fi
  6646. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6647. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6648. if test $ac_cv_func_alloca_works = yes; then
  6649. cat >>confdefs.h <<\_ACEOF
  6650. #define HAVE_ALLOCA 1
  6651. _ACEOF
  6652. else
  6653. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6654. # that cause trouble. Some versions do not even contain alloca or
  6655. # contain a buggy version. If you still want to use their alloca,
  6656. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6657. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6658. cat >>confdefs.h <<\_ACEOF
  6659. #define C_ALLOCA 1
  6660. _ACEOF
  6661. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6662. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6663. if test "${ac_cv_os_cray+set}" = set; then
  6664. echo $ECHO_N "(cached) $ECHO_C" >&6
  6665. else
  6666. cat >conftest.$ac_ext <<_ACEOF
  6667. /* confdefs.h. */
  6668. _ACEOF
  6669. cat confdefs.h >>conftest.$ac_ext
  6670. cat >>conftest.$ac_ext <<_ACEOF
  6671. /* end confdefs.h. */
  6672. #if defined CRAY && ! defined CRAY2
  6673. webecray
  6674. #else
  6675. wenotbecray
  6676. #endif
  6677. _ACEOF
  6678. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6679. $EGREP "webecray" >/dev/null 2>&1; then
  6680. ac_cv_os_cray=yes
  6681. else
  6682. ac_cv_os_cray=no
  6683. fi
  6684. rm -f conftest*
  6685. fi
  6686. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6687. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6688. if test $ac_cv_os_cray = yes; then
  6689. for ac_func in _getb67 GETB67 getb67; do
  6690. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6691. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6692. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6693. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6694. echo $ECHO_N "(cached) $ECHO_C" >&6
  6695. else
  6696. cat >conftest.$ac_ext <<_ACEOF
  6697. /* confdefs.h. */
  6698. _ACEOF
  6699. cat confdefs.h >>conftest.$ac_ext
  6700. cat >>conftest.$ac_ext <<_ACEOF
  6701. /* end confdefs.h. */
  6702. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6703. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6704. #define $ac_func innocuous_$ac_func
  6705. /* System header to define __stub macros and hopefully few prototypes,
  6706. which can conflict with char $ac_func (); below.
  6707. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6708. <limits.h> exists even on freestanding compilers. */
  6709. #ifdef __STDC__
  6710. # include <limits.h>
  6711. #else
  6712. # include <assert.h>
  6713. #endif
  6714. #undef $ac_func
  6715. /* Override any GCC internal prototype to avoid an error.
  6716. Use char because int might match the return type of a GCC
  6717. builtin and then its argument prototype would still apply. */
  6718. #ifdef __cplusplus
  6719. extern "C"
  6720. #endif
  6721. char $ac_func ();
  6722. /* The GNU C library defines this for functions which it implements
  6723. to always fail with ENOSYS. Some functions are actually named
  6724. something starting with __ and the normal name is an alias. */
  6725. #if defined __stub_$ac_func || defined __stub___$ac_func
  6726. choke me
  6727. #endif
  6728. int
  6729. main ()
  6730. {
  6731. return $ac_func ();
  6732. ;
  6733. return 0;
  6734. }
  6735. _ACEOF
  6736. rm -f conftest.$ac_objext conftest$ac_exeext
  6737. if { (ac_try="$ac_link"
  6738. case "(($ac_try" in
  6739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6740. *) ac_try_echo=$ac_try;;
  6741. esac
  6742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6743. (eval "$ac_link") 2>conftest.er1
  6744. ac_status=$?
  6745. grep -v '^ *+' conftest.er1 >conftest.err
  6746. rm -f conftest.er1
  6747. cat conftest.err >&5
  6748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6749. (exit $ac_status); } && {
  6750. test -z "$ac_cxx_werror_flag" ||
  6751. test ! -s conftest.err
  6752. } && test -s conftest$ac_exeext &&
  6753. $as_test_x conftest$ac_exeext; then
  6754. eval "$as_ac_var=yes"
  6755. else
  6756. echo "$as_me: failed program was:" >&5
  6757. sed 's/^/| /' conftest.$ac_ext >&5
  6758. eval "$as_ac_var=no"
  6759. fi
  6760. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6761. conftest$ac_exeext conftest.$ac_ext
  6762. fi
  6763. ac_res=`eval echo '${'$as_ac_var'}'`
  6764. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6765. echo "${ECHO_T}$ac_res" >&6; }
  6766. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6767. cat >>confdefs.h <<_ACEOF
  6768. #define CRAY_STACKSEG_END $ac_func
  6769. _ACEOF
  6770. break
  6771. fi
  6772. done
  6773. fi
  6774. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6775. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6776. if test "${ac_cv_c_stack_direction+set}" = set; then
  6777. echo $ECHO_N "(cached) $ECHO_C" >&6
  6778. else
  6779. if test "$cross_compiling" = yes; then
  6780. ac_cv_c_stack_direction=0
  6781. else
  6782. cat >conftest.$ac_ext <<_ACEOF
  6783. /* confdefs.h. */
  6784. _ACEOF
  6785. cat confdefs.h >>conftest.$ac_ext
  6786. cat >>conftest.$ac_ext <<_ACEOF
  6787. /* end confdefs.h. */
  6788. $ac_includes_default
  6789. int
  6790. find_stack_direction ()
  6791. {
  6792. static char *addr = 0;
  6793. auto char dummy;
  6794. if (addr == 0)
  6795. {
  6796. addr = &dummy;
  6797. return find_stack_direction ();
  6798. }
  6799. else
  6800. return (&dummy > addr) ? 1 : -1;
  6801. }
  6802. int
  6803. main ()
  6804. {
  6805. return find_stack_direction () < 0;
  6806. }
  6807. _ACEOF
  6808. rm -f conftest$ac_exeext
  6809. if { (ac_try="$ac_link"
  6810. case "(($ac_try" in
  6811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6812. *) ac_try_echo=$ac_try;;
  6813. esac
  6814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6815. (eval "$ac_link") 2>&5
  6816. ac_status=$?
  6817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6818. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6819. { (case "(($ac_try" in
  6820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6821. *) ac_try_echo=$ac_try;;
  6822. esac
  6823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6824. (eval "$ac_try") 2>&5
  6825. ac_status=$?
  6826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6827. (exit $ac_status); }; }; then
  6828. ac_cv_c_stack_direction=1
  6829. else
  6830. echo "$as_me: program exited with status $ac_status" >&5
  6831. echo "$as_me: failed program was:" >&5
  6832. sed 's/^/| /' conftest.$ac_ext >&5
  6833. ( exit $ac_status )
  6834. ac_cv_c_stack_direction=-1
  6835. fi
  6836. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6837. fi
  6838. fi
  6839. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6840. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6841. cat >>confdefs.h <<_ACEOF
  6842. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6843. _ACEOF
  6844. fi
  6845. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6846. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6847. if test "${ac_cv_header_stdc+set}" = set; then
  6848. echo $ECHO_N "(cached) $ECHO_C" >&6
  6849. else
  6850. cat >conftest.$ac_ext <<_ACEOF
  6851. /* confdefs.h. */
  6852. _ACEOF
  6853. cat confdefs.h >>conftest.$ac_ext
  6854. cat >>conftest.$ac_ext <<_ACEOF
  6855. /* end confdefs.h. */
  6856. #include <stdlib.h>
  6857. #include <stdarg.h>
  6858. #include <string.h>
  6859. #include <float.h>
  6860. int
  6861. main ()
  6862. {
  6863. ;
  6864. return 0;
  6865. }
  6866. _ACEOF
  6867. rm -f conftest.$ac_objext
  6868. if { (ac_try="$ac_compile"
  6869. case "(($ac_try" in
  6870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6871. *) ac_try_echo=$ac_try;;
  6872. esac
  6873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6874. (eval "$ac_compile") 2>conftest.er1
  6875. ac_status=$?
  6876. grep -v '^ *+' conftest.er1 >conftest.err
  6877. rm -f conftest.er1
  6878. cat conftest.err >&5
  6879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6880. (exit $ac_status); } && {
  6881. test -z "$ac_cxx_werror_flag" ||
  6882. test ! -s conftest.err
  6883. } && test -s conftest.$ac_objext; then
  6884. ac_cv_header_stdc=yes
  6885. else
  6886. echo "$as_me: failed program was:" >&5
  6887. sed 's/^/| /' conftest.$ac_ext >&5
  6888. ac_cv_header_stdc=no
  6889. fi
  6890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6891. if test $ac_cv_header_stdc = yes; then
  6892. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6893. cat >conftest.$ac_ext <<_ACEOF
  6894. /* confdefs.h. */
  6895. _ACEOF
  6896. cat confdefs.h >>conftest.$ac_ext
  6897. cat >>conftest.$ac_ext <<_ACEOF
  6898. /* end confdefs.h. */
  6899. #include <string.h>
  6900. _ACEOF
  6901. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6902. $EGREP "memchr" >/dev/null 2>&1; then
  6903. :
  6904. else
  6905. ac_cv_header_stdc=no
  6906. fi
  6907. rm -f conftest*
  6908. fi
  6909. if test $ac_cv_header_stdc = yes; then
  6910. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6911. cat >conftest.$ac_ext <<_ACEOF
  6912. /* confdefs.h. */
  6913. _ACEOF
  6914. cat confdefs.h >>conftest.$ac_ext
  6915. cat >>conftest.$ac_ext <<_ACEOF
  6916. /* end confdefs.h. */
  6917. #include <stdlib.h>
  6918. _ACEOF
  6919. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6920. $EGREP "free" >/dev/null 2>&1; then
  6921. :
  6922. else
  6923. ac_cv_header_stdc=no
  6924. fi
  6925. rm -f conftest*
  6926. fi
  6927. if test $ac_cv_header_stdc = yes; then
  6928. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6929. if test "$cross_compiling" = yes; then
  6930. :
  6931. else
  6932. cat >conftest.$ac_ext <<_ACEOF
  6933. /* confdefs.h. */
  6934. _ACEOF
  6935. cat confdefs.h >>conftest.$ac_ext
  6936. cat >>conftest.$ac_ext <<_ACEOF
  6937. /* end confdefs.h. */
  6938. #include <ctype.h>
  6939. #include <stdlib.h>
  6940. #if ((' ' & 0x0FF) == 0x020)
  6941. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6942. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6943. #else
  6944. # define ISLOWER(c) \
  6945. (('a' <= (c) && (c) <= 'i') \
  6946. || ('j' <= (c) && (c) <= 'r') \
  6947. || ('s' <= (c) && (c) <= 'z'))
  6948. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6949. #endif
  6950. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6951. int
  6952. main ()
  6953. {
  6954. int i;
  6955. for (i = 0; i < 256; i++)
  6956. if (XOR (islower (i), ISLOWER (i))
  6957. || toupper (i) != TOUPPER (i))
  6958. return 2;
  6959. return 0;
  6960. }
  6961. _ACEOF
  6962. rm -f conftest$ac_exeext
  6963. if { (ac_try="$ac_link"
  6964. case "(($ac_try" in
  6965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6966. *) ac_try_echo=$ac_try;;
  6967. esac
  6968. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6969. (eval "$ac_link") 2>&5
  6970. ac_status=$?
  6971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6972. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6973. { (case "(($ac_try" in
  6974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6975. *) ac_try_echo=$ac_try;;
  6976. esac
  6977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6978. (eval "$ac_try") 2>&5
  6979. ac_status=$?
  6980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6981. (exit $ac_status); }; }; then
  6982. :
  6983. else
  6984. echo "$as_me: program exited with status $ac_status" >&5
  6985. echo "$as_me: failed program was:" >&5
  6986. sed 's/^/| /' conftest.$ac_ext >&5
  6987. ( exit $ac_status )
  6988. ac_cv_header_stdc=no
  6989. fi
  6990. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6991. fi
  6992. fi
  6993. fi
  6994. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6995. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6996. if test $ac_cv_header_stdc = yes; then
  6997. cat >>confdefs.h <<\_ACEOF
  6998. #define STDC_HEADERS 1
  6999. _ACEOF
  7000. fi
  7001. for ac_header in winsock2.h \
  7002. ws2tcpip.h \
  7003. argz.h \
  7004. arpa/inet.h \
  7005. fcntl.h \
  7006. float.h \
  7007. inttypes.h \
  7008. io.h \
  7009. langinfo.h \
  7010. libintl.h \
  7011. limits.h \
  7012. locale.h \
  7013. malloc.h \
  7014. netdb.h \
  7015. netinet/in.h \
  7016. stddef.h \
  7017. stdint.h \
  7018. stdio_ext.h \
  7019. stdlib.h \
  7020. string.h \
  7021. strings.h \
  7022. sys/ioctl.h \
  7023. sys/param.h \
  7024. sys/socket.h \
  7025. sys/time.h \
  7026. termios.h \
  7027. unistd.h \
  7028. wchar.h
  7029. do
  7030. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7031. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7032. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7033. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7034. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7035. echo $ECHO_N "(cached) $ECHO_C" >&6
  7036. fi
  7037. ac_res=`eval echo '${'$as_ac_Header'}'`
  7038. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7039. echo "${ECHO_T}$ac_res" >&6; }
  7040. else
  7041. # Is the header compilable?
  7042. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7043. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7044. cat >conftest.$ac_ext <<_ACEOF
  7045. /* confdefs.h. */
  7046. _ACEOF
  7047. cat confdefs.h >>conftest.$ac_ext
  7048. cat >>conftest.$ac_ext <<_ACEOF
  7049. /* end confdefs.h. */
  7050. $ac_includes_default
  7051. #include <$ac_header>
  7052. _ACEOF
  7053. rm -f conftest.$ac_objext
  7054. if { (ac_try="$ac_compile"
  7055. case "(($ac_try" in
  7056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7057. *) ac_try_echo=$ac_try;;
  7058. esac
  7059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7060. (eval "$ac_compile") 2>conftest.er1
  7061. ac_status=$?
  7062. grep -v '^ *+' conftest.er1 >conftest.err
  7063. rm -f conftest.er1
  7064. cat conftest.err >&5
  7065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7066. (exit $ac_status); } && {
  7067. test -z "$ac_cxx_werror_flag" ||
  7068. test ! -s conftest.err
  7069. } && test -s conftest.$ac_objext; then
  7070. ac_header_compiler=yes
  7071. else
  7072. echo "$as_me: failed program was:" >&5
  7073. sed 's/^/| /' conftest.$ac_ext >&5
  7074. ac_header_compiler=no
  7075. fi
  7076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7077. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7078. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7079. # Is the header present?
  7080. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7081. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7082. cat >conftest.$ac_ext <<_ACEOF
  7083. /* confdefs.h. */
  7084. _ACEOF
  7085. cat confdefs.h >>conftest.$ac_ext
  7086. cat >>conftest.$ac_ext <<_ACEOF
  7087. /* end confdefs.h. */
  7088. #include <$ac_header>
  7089. _ACEOF
  7090. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7091. case "(($ac_try" in
  7092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7093. *) ac_try_echo=$ac_try;;
  7094. esac
  7095. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7096. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7097. ac_status=$?
  7098. grep -v '^ *+' conftest.er1 >conftest.err
  7099. rm -f conftest.er1
  7100. cat conftest.err >&5
  7101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7102. (exit $ac_status); } >/dev/null && {
  7103. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7104. test ! -s conftest.err
  7105. }; then
  7106. ac_header_preproc=yes
  7107. else
  7108. echo "$as_me: failed program was:" >&5
  7109. sed 's/^/| /' conftest.$ac_ext >&5
  7110. ac_header_preproc=no
  7111. fi
  7112. rm -f conftest.err conftest.$ac_ext
  7113. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7114. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7115. # So? What about this header?
  7116. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7117. yes:no: )
  7118. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7119. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7120. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7121. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7122. ac_header_preproc=yes
  7123. ;;
  7124. no:yes:* )
  7125. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7126. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7127. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7128. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7129. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7130. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7131. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7132. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7133. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7134. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7135. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7136. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7137. ( cat <<\_ASBOX
  7138. ## ----------------------------------------------- ##
  7139. ## Report this to t-tujikawa@users.sourceforge.net ##
  7140. ## ----------------------------------------------- ##
  7141. _ASBOX
  7142. ) | sed "s/^/$as_me: WARNING: /" >&2
  7143. ;;
  7144. esac
  7145. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7146. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7147. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7148. echo $ECHO_N "(cached) $ECHO_C" >&6
  7149. else
  7150. eval "$as_ac_Header=\$ac_header_preproc"
  7151. fi
  7152. ac_res=`eval echo '${'$as_ac_Header'}'`
  7153. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7154. echo "${ECHO_T}$ac_res" >&6; }
  7155. fi
  7156. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7157. cat >>confdefs.h <<_ACEOF
  7158. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7159. _ACEOF
  7160. fi
  7161. done
  7162. # Checks for typedefs, structures, and compiler characteristics.
  7163. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7164. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7165. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7166. echo $ECHO_N "(cached) $ECHO_C" >&6
  7167. else
  7168. cat >conftest.$ac_ext <<_ACEOF
  7169. /* confdefs.h. */
  7170. _ACEOF
  7171. cat confdefs.h >>conftest.$ac_ext
  7172. cat >>conftest.$ac_ext <<_ACEOF
  7173. /* end confdefs.h. */
  7174. #include <stdbool.h>
  7175. #ifndef bool
  7176. "error: bool is not defined"
  7177. #endif
  7178. #ifndef false
  7179. "error: false is not defined"
  7180. #endif
  7181. #if false
  7182. "error: false is not 0"
  7183. #endif
  7184. #ifndef true
  7185. "error: true is not defined"
  7186. #endif
  7187. #if true != 1
  7188. "error: true is not 1"
  7189. #endif
  7190. #ifndef __bool_true_false_are_defined
  7191. "error: __bool_true_false_are_defined is not defined"
  7192. #endif
  7193. struct s { _Bool s: 1; _Bool t; } s;
  7194. char a[true == 1 ? 1 : -1];
  7195. char b[false == 0 ? 1 : -1];
  7196. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7197. char d[(bool) 0.5 == true ? 1 : -1];
  7198. bool e = &s;
  7199. char f[(_Bool) 0.0 == false ? 1 : -1];
  7200. char g[true];
  7201. char h[sizeof (_Bool)];
  7202. char i[sizeof s.t];
  7203. enum { j = false, k = true, l = false * true, m = true * 256 };
  7204. _Bool n[m];
  7205. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7206. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7207. # if defined __xlc__ || defined __GNUC__
  7208. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7209. reported by James Lemley on 2005-10-05; see
  7210. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7211. This test is not quite right, since xlc is allowed to
  7212. reject this program, as the initializer for xlcbug is
  7213. not one of the forms that C requires support for.
  7214. However, doing the test right would require a runtime
  7215. test, and that would make cross-compilation harder.
  7216. Let us hope that IBM fixes the xlc bug, and also adds
  7217. support for this kind of constant expression. In the
  7218. meantime, this test will reject xlc, which is OK, since
  7219. our stdbool.h substitute should suffice. We also test
  7220. this with GCC, where it should work, to detect more
  7221. quickly whether someone messes up the test in the
  7222. future. */
  7223. char digs[] = "0123456789";
  7224. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7225. # endif
  7226. /* Catch a bug in an HP-UX C compiler. See
  7227. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7228. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7229. */
  7230. _Bool q = true;
  7231. _Bool *pq = &q;
  7232. int
  7233. main ()
  7234. {
  7235. *pq |= q;
  7236. *pq |= ! q;
  7237. /* Refer to every declared value, to avoid compiler optimizations. */
  7238. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7239. + !m + !n + !o + !p + !q + !pq);
  7240. ;
  7241. return 0;
  7242. }
  7243. _ACEOF
  7244. rm -f conftest.$ac_objext
  7245. if { (ac_try="$ac_compile"
  7246. case "(($ac_try" in
  7247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7248. *) ac_try_echo=$ac_try;;
  7249. esac
  7250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7251. (eval "$ac_compile") 2>conftest.er1
  7252. ac_status=$?
  7253. grep -v '^ *+' conftest.er1 >conftest.err
  7254. rm -f conftest.er1
  7255. cat conftest.err >&5
  7256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7257. (exit $ac_status); } && {
  7258. test -z "$ac_cxx_werror_flag" ||
  7259. test ! -s conftest.err
  7260. } && test -s conftest.$ac_objext; then
  7261. ac_cv_header_stdbool_h=yes
  7262. else
  7263. echo "$as_me: failed program was:" >&5
  7264. sed 's/^/| /' conftest.$ac_ext >&5
  7265. ac_cv_header_stdbool_h=no
  7266. fi
  7267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7268. fi
  7269. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7270. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7271. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7272. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7273. if test "${ac_cv_type__Bool+set}" = set; then
  7274. echo $ECHO_N "(cached) $ECHO_C" >&6
  7275. else
  7276. cat >conftest.$ac_ext <<_ACEOF
  7277. /* confdefs.h. */
  7278. _ACEOF
  7279. cat confdefs.h >>conftest.$ac_ext
  7280. cat >>conftest.$ac_ext <<_ACEOF
  7281. /* end confdefs.h. */
  7282. $ac_includes_default
  7283. typedef _Bool ac__type_new_;
  7284. int
  7285. main ()
  7286. {
  7287. if ((ac__type_new_ *) 0)
  7288. return 0;
  7289. if (sizeof (ac__type_new_))
  7290. return 0;
  7291. ;
  7292. return 0;
  7293. }
  7294. _ACEOF
  7295. rm -f conftest.$ac_objext
  7296. if { (ac_try="$ac_compile"
  7297. case "(($ac_try" in
  7298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7299. *) ac_try_echo=$ac_try;;
  7300. esac
  7301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7302. (eval "$ac_compile") 2>conftest.er1
  7303. ac_status=$?
  7304. grep -v '^ *+' conftest.er1 >conftest.err
  7305. rm -f conftest.er1
  7306. cat conftest.err >&5
  7307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7308. (exit $ac_status); } && {
  7309. test -z "$ac_cxx_werror_flag" ||
  7310. test ! -s conftest.err
  7311. } && test -s conftest.$ac_objext; then
  7312. ac_cv_type__Bool=yes
  7313. else
  7314. echo "$as_me: failed program was:" >&5
  7315. sed 's/^/| /' conftest.$ac_ext >&5
  7316. ac_cv_type__Bool=no
  7317. fi
  7318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7319. fi
  7320. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7321. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7322. if test $ac_cv_type__Bool = yes; then
  7323. cat >>confdefs.h <<_ACEOF
  7324. #define HAVE__BOOL 1
  7325. _ACEOF
  7326. fi
  7327. if test $ac_cv_header_stdbool_h = yes; then
  7328. cat >>confdefs.h <<\_ACEOF
  7329. #define HAVE_STDBOOL_H 1
  7330. _ACEOF
  7331. fi
  7332. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7333. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7334. if test "${ac_cv_c_const+set}" = set; then
  7335. echo $ECHO_N "(cached) $ECHO_C" >&6
  7336. else
  7337. cat >conftest.$ac_ext <<_ACEOF
  7338. /* confdefs.h. */
  7339. _ACEOF
  7340. cat confdefs.h >>conftest.$ac_ext
  7341. cat >>conftest.$ac_ext <<_ACEOF
  7342. /* end confdefs.h. */
  7343. int
  7344. main ()
  7345. {
  7346. /* FIXME: Include the comments suggested by Paul. */
  7347. #ifndef __cplusplus
  7348. /* Ultrix mips cc rejects this. */
  7349. typedef int charset[2];
  7350. const charset cs;
  7351. /* SunOS 4.1.1 cc rejects this. */
  7352. char const *const *pcpcc;
  7353. char **ppc;
  7354. /* NEC SVR4.0.2 mips cc rejects this. */
  7355. struct point {int x, y;};
  7356. static struct point const zero = {0,0};
  7357. /* AIX XL C 1.02.0.0 rejects this.
  7358. It does not let you subtract one const X* pointer from another in
  7359. an arm of an if-expression whose if-part is not a constant
  7360. expression */
  7361. const char *g = "string";
  7362. pcpcc = &g + (g ? g-g : 0);
  7363. /* HPUX 7.0 cc rejects these. */
  7364. ++pcpcc;
  7365. ppc = (char**) pcpcc;
  7366. pcpcc = (char const *const *) ppc;
  7367. { /* SCO 3.2v4 cc rejects this. */
  7368. char *t;
  7369. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7370. *t++ = 0;
  7371. if (s) return 0;
  7372. }
  7373. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7374. int x[] = {25, 17};
  7375. const int *foo = &x[0];
  7376. ++foo;
  7377. }
  7378. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7379. typedef const int *iptr;
  7380. iptr p = 0;
  7381. ++p;
  7382. }
  7383. { /* AIX XL C 1.02.0.0 rejects this saying
  7384. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7385. struct s { int j; const int *ap[3]; };
  7386. struct s *b; b->j = 5;
  7387. }
  7388. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7389. const int foo = 10;
  7390. if (!foo) return 0;
  7391. }
  7392. return !cs[0] && !zero.x;
  7393. #endif
  7394. ;
  7395. return 0;
  7396. }
  7397. _ACEOF
  7398. rm -f conftest.$ac_objext
  7399. if { (ac_try="$ac_compile"
  7400. case "(($ac_try" in
  7401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7402. *) ac_try_echo=$ac_try;;
  7403. esac
  7404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7405. (eval "$ac_compile") 2>conftest.er1
  7406. ac_status=$?
  7407. grep -v '^ *+' conftest.er1 >conftest.err
  7408. rm -f conftest.er1
  7409. cat conftest.err >&5
  7410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7411. (exit $ac_status); } && {
  7412. test -z "$ac_cxx_werror_flag" ||
  7413. test ! -s conftest.err
  7414. } && test -s conftest.$ac_objext; then
  7415. ac_cv_c_const=yes
  7416. else
  7417. echo "$as_me: failed program was:" >&5
  7418. sed 's/^/| /' conftest.$ac_ext >&5
  7419. ac_cv_c_const=no
  7420. fi
  7421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7422. fi
  7423. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7424. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7425. if test $ac_cv_c_const = no; then
  7426. cat >>confdefs.h <<\_ACEOF
  7427. #define const
  7428. _ACEOF
  7429. fi
  7430. { echo "$as_me:$LINENO: checking for inline" >&5
  7431. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7432. if test "${ac_cv_c_inline+set}" = set; then
  7433. echo $ECHO_N "(cached) $ECHO_C" >&6
  7434. else
  7435. ac_cv_c_inline=no
  7436. for ac_kw in inline __inline__ __inline; do
  7437. cat >conftest.$ac_ext <<_ACEOF
  7438. /* confdefs.h. */
  7439. _ACEOF
  7440. cat confdefs.h >>conftest.$ac_ext
  7441. cat >>conftest.$ac_ext <<_ACEOF
  7442. /* end confdefs.h. */
  7443. #ifndef __cplusplus
  7444. typedef int foo_t;
  7445. static $ac_kw foo_t static_foo () {return 0; }
  7446. $ac_kw foo_t foo () {return 0; }
  7447. #endif
  7448. _ACEOF
  7449. rm -f conftest.$ac_objext
  7450. if { (ac_try="$ac_compile"
  7451. case "(($ac_try" in
  7452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7453. *) ac_try_echo=$ac_try;;
  7454. esac
  7455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7456. (eval "$ac_compile") 2>conftest.er1
  7457. ac_status=$?
  7458. grep -v '^ *+' conftest.er1 >conftest.err
  7459. rm -f conftest.er1
  7460. cat conftest.err >&5
  7461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7462. (exit $ac_status); } && {
  7463. test -z "$ac_cxx_werror_flag" ||
  7464. test ! -s conftest.err
  7465. } && test -s conftest.$ac_objext; then
  7466. ac_cv_c_inline=$ac_kw
  7467. else
  7468. echo "$as_me: failed program was:" >&5
  7469. sed 's/^/| /' conftest.$ac_ext >&5
  7470. fi
  7471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7472. test "$ac_cv_c_inline" != no && break
  7473. done
  7474. fi
  7475. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7476. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7477. case $ac_cv_c_inline in
  7478. inline | yes) ;;
  7479. *)
  7480. case $ac_cv_c_inline in
  7481. no) ac_val=;;
  7482. *) ac_val=$ac_cv_c_inline;;
  7483. esac
  7484. cat >>confdefs.h <<_ACEOF
  7485. #ifndef __cplusplus
  7486. #define inline $ac_val
  7487. #endif
  7488. _ACEOF
  7489. ;;
  7490. esac
  7491. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7492. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7493. if test "${ac_cv_c_int16_t+set}" = set; then
  7494. echo $ECHO_N "(cached) $ECHO_C" >&6
  7495. else
  7496. ac_cv_c_int16_t=no
  7497. for ac_type in 'int16_t' 'int' 'long int' \
  7498. 'long long int' 'short int' 'signed char'; do
  7499. cat >conftest.$ac_ext <<_ACEOF
  7500. /* confdefs.h. */
  7501. _ACEOF
  7502. cat confdefs.h >>conftest.$ac_ext
  7503. cat >>conftest.$ac_ext <<_ACEOF
  7504. /* end confdefs.h. */
  7505. $ac_includes_default
  7506. int
  7507. main ()
  7508. {
  7509. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7510. test_array [0] = 0
  7511. ;
  7512. return 0;
  7513. }
  7514. _ACEOF
  7515. rm -f conftest.$ac_objext
  7516. if { (ac_try="$ac_compile"
  7517. case "(($ac_try" in
  7518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7519. *) ac_try_echo=$ac_try;;
  7520. esac
  7521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7522. (eval "$ac_compile") 2>conftest.er1
  7523. ac_status=$?
  7524. grep -v '^ *+' conftest.er1 >conftest.err
  7525. rm -f conftest.er1
  7526. cat conftest.err >&5
  7527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7528. (exit $ac_status); } && {
  7529. test -z "$ac_cxx_werror_flag" ||
  7530. test ! -s conftest.err
  7531. } && test -s conftest.$ac_objext; then
  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. int
  7540. main ()
  7541. {
  7542. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7543. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7544. test_array [0] = 0
  7545. ;
  7546. return 0;
  7547. }
  7548. _ACEOF
  7549. rm -f conftest.$ac_objext
  7550. if { (ac_try="$ac_compile"
  7551. case "(($ac_try" in
  7552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7553. *) ac_try_echo=$ac_try;;
  7554. esac
  7555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7556. (eval "$ac_compile") 2>conftest.er1
  7557. ac_status=$?
  7558. grep -v '^ *+' conftest.er1 >conftest.err
  7559. rm -f conftest.er1
  7560. cat conftest.err >&5
  7561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7562. (exit $ac_status); } && {
  7563. test -z "$ac_cxx_werror_flag" ||
  7564. test ! -s conftest.err
  7565. } && test -s conftest.$ac_objext; then
  7566. :
  7567. else
  7568. echo "$as_me: failed program was:" >&5
  7569. sed 's/^/| /' conftest.$ac_ext >&5
  7570. case $ac_type in
  7571. int16_t) ac_cv_c_int16_t=yes ;;
  7572. *) ac_cv_c_int16_t=$ac_type ;;
  7573. esac
  7574. fi
  7575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7576. else
  7577. echo "$as_me: failed program was:" >&5
  7578. sed 's/^/| /' conftest.$ac_ext >&5
  7579. fi
  7580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7581. test "$ac_cv_c_int16_t" != no && break
  7582. done
  7583. fi
  7584. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7585. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7586. case $ac_cv_c_int16_t in #(
  7587. no|yes) ;; #(
  7588. *)
  7589. cat >>confdefs.h <<_ACEOF
  7590. #define int16_t $ac_cv_c_int16_t
  7591. _ACEOF
  7592. ;;
  7593. esac
  7594. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7595. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7596. if test "${ac_cv_c_int32_t+set}" = set; then
  7597. echo $ECHO_N "(cached) $ECHO_C" >&6
  7598. else
  7599. ac_cv_c_int32_t=no
  7600. for ac_type in 'int32_t' 'int' 'long int' \
  7601. 'long long int' 'short int' 'signed char'; do
  7602. cat >conftest.$ac_ext <<_ACEOF
  7603. /* confdefs.h. */
  7604. _ACEOF
  7605. cat confdefs.h >>conftest.$ac_ext
  7606. cat >>conftest.$ac_ext <<_ACEOF
  7607. /* end confdefs.h. */
  7608. $ac_includes_default
  7609. int
  7610. main ()
  7611. {
  7612. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7613. test_array [0] = 0
  7614. ;
  7615. return 0;
  7616. }
  7617. _ACEOF
  7618. rm -f conftest.$ac_objext
  7619. if { (ac_try="$ac_compile"
  7620. case "(($ac_try" in
  7621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7622. *) ac_try_echo=$ac_try;;
  7623. esac
  7624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7625. (eval "$ac_compile") 2>conftest.er1
  7626. ac_status=$?
  7627. grep -v '^ *+' conftest.er1 >conftest.err
  7628. rm -f conftest.er1
  7629. cat conftest.err >&5
  7630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7631. (exit $ac_status); } && {
  7632. test -z "$ac_cxx_werror_flag" ||
  7633. test ! -s conftest.err
  7634. } && test -s conftest.$ac_objext; then
  7635. cat >conftest.$ac_ext <<_ACEOF
  7636. /* confdefs.h. */
  7637. _ACEOF
  7638. cat confdefs.h >>conftest.$ac_ext
  7639. cat >>conftest.$ac_ext <<_ACEOF
  7640. /* end confdefs.h. */
  7641. $ac_includes_default
  7642. int
  7643. main ()
  7644. {
  7645. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7646. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7647. test_array [0] = 0
  7648. ;
  7649. return 0;
  7650. }
  7651. _ACEOF
  7652. rm -f conftest.$ac_objext
  7653. if { (ac_try="$ac_compile"
  7654. case "(($ac_try" in
  7655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7656. *) ac_try_echo=$ac_try;;
  7657. esac
  7658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7659. (eval "$ac_compile") 2>conftest.er1
  7660. ac_status=$?
  7661. grep -v '^ *+' conftest.er1 >conftest.err
  7662. rm -f conftest.er1
  7663. cat conftest.err >&5
  7664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7665. (exit $ac_status); } && {
  7666. test -z "$ac_cxx_werror_flag" ||
  7667. test ! -s conftest.err
  7668. } && test -s conftest.$ac_objext; then
  7669. :
  7670. else
  7671. echo "$as_me: failed program was:" >&5
  7672. sed 's/^/| /' conftest.$ac_ext >&5
  7673. case $ac_type in
  7674. int32_t) ac_cv_c_int32_t=yes ;;
  7675. *) ac_cv_c_int32_t=$ac_type ;;
  7676. esac
  7677. fi
  7678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7679. else
  7680. echo "$as_me: failed program was:" >&5
  7681. sed 's/^/| /' conftest.$ac_ext >&5
  7682. fi
  7683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7684. test "$ac_cv_c_int32_t" != no && break
  7685. done
  7686. fi
  7687. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7688. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7689. case $ac_cv_c_int32_t in #(
  7690. no|yes) ;; #(
  7691. *)
  7692. cat >>confdefs.h <<_ACEOF
  7693. #define int32_t $ac_cv_c_int32_t
  7694. _ACEOF
  7695. ;;
  7696. esac
  7697. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7698. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7699. if test "${ac_cv_c_int64_t+set}" = set; then
  7700. echo $ECHO_N "(cached) $ECHO_C" >&6
  7701. else
  7702. ac_cv_c_int64_t=no
  7703. for ac_type in 'int64_t' 'int' 'long int' \
  7704. 'long long int' 'short int' 'signed char'; do
  7705. cat >conftest.$ac_ext <<_ACEOF
  7706. /* confdefs.h. */
  7707. _ACEOF
  7708. cat confdefs.h >>conftest.$ac_ext
  7709. cat >>conftest.$ac_ext <<_ACEOF
  7710. /* end confdefs.h. */
  7711. $ac_includes_default
  7712. int
  7713. main ()
  7714. {
  7715. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7716. test_array [0] = 0
  7717. ;
  7718. return 0;
  7719. }
  7720. _ACEOF
  7721. rm -f conftest.$ac_objext
  7722. if { (ac_try="$ac_compile"
  7723. case "(($ac_try" in
  7724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7725. *) ac_try_echo=$ac_try;;
  7726. esac
  7727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7728. (eval "$ac_compile") 2>conftest.er1
  7729. ac_status=$?
  7730. grep -v '^ *+' conftest.er1 >conftest.err
  7731. rm -f conftest.er1
  7732. cat conftest.err >&5
  7733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7734. (exit $ac_status); } && {
  7735. test -z "$ac_cxx_werror_flag" ||
  7736. test ! -s conftest.err
  7737. } && test -s conftest.$ac_objext; then
  7738. cat >conftest.$ac_ext <<_ACEOF
  7739. /* confdefs.h. */
  7740. _ACEOF
  7741. cat confdefs.h >>conftest.$ac_ext
  7742. cat >>conftest.$ac_ext <<_ACEOF
  7743. /* end confdefs.h. */
  7744. $ac_includes_default
  7745. int
  7746. main ()
  7747. {
  7748. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7749. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7750. test_array [0] = 0
  7751. ;
  7752. return 0;
  7753. }
  7754. _ACEOF
  7755. rm -f conftest.$ac_objext
  7756. if { (ac_try="$ac_compile"
  7757. case "(($ac_try" in
  7758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7759. *) ac_try_echo=$ac_try;;
  7760. esac
  7761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7762. (eval "$ac_compile") 2>conftest.er1
  7763. ac_status=$?
  7764. grep -v '^ *+' conftest.er1 >conftest.err
  7765. rm -f conftest.er1
  7766. cat conftest.err >&5
  7767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7768. (exit $ac_status); } && {
  7769. test -z "$ac_cxx_werror_flag" ||
  7770. test ! -s conftest.err
  7771. } && test -s conftest.$ac_objext; then
  7772. :
  7773. else
  7774. echo "$as_me: failed program was:" >&5
  7775. sed 's/^/| /' conftest.$ac_ext >&5
  7776. case $ac_type in
  7777. int64_t) ac_cv_c_int64_t=yes ;;
  7778. *) ac_cv_c_int64_t=$ac_type ;;
  7779. esac
  7780. fi
  7781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7782. else
  7783. echo "$as_me: failed program was:" >&5
  7784. sed 's/^/| /' conftest.$ac_ext >&5
  7785. fi
  7786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7787. test "$ac_cv_c_int64_t" != no && break
  7788. done
  7789. fi
  7790. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7791. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7792. case $ac_cv_c_int64_t in #(
  7793. no|yes) ;; #(
  7794. *)
  7795. cat >>confdefs.h <<_ACEOF
  7796. #define int64_t $ac_cv_c_int64_t
  7797. _ACEOF
  7798. ;;
  7799. esac
  7800. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7801. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7802. if test "${ac_cv_c_int8_t+set}" = set; then
  7803. echo $ECHO_N "(cached) $ECHO_C" >&6
  7804. else
  7805. ac_cv_c_int8_t=no
  7806. for ac_type in 'int8_t' 'int' 'long int' \
  7807. 'long long int' 'short int' 'signed char'; do
  7808. cat >conftest.$ac_ext <<_ACEOF
  7809. /* confdefs.h. */
  7810. _ACEOF
  7811. cat confdefs.h >>conftest.$ac_ext
  7812. cat >>conftest.$ac_ext <<_ACEOF
  7813. /* end confdefs.h. */
  7814. $ac_includes_default
  7815. int
  7816. main ()
  7817. {
  7818. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7819. test_array [0] = 0
  7820. ;
  7821. return 0;
  7822. }
  7823. _ACEOF
  7824. rm -f conftest.$ac_objext
  7825. if { (ac_try="$ac_compile"
  7826. case "(($ac_try" in
  7827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7828. *) ac_try_echo=$ac_try;;
  7829. esac
  7830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7831. (eval "$ac_compile") 2>conftest.er1
  7832. ac_status=$?
  7833. grep -v '^ *+' conftest.er1 >conftest.err
  7834. rm -f conftest.er1
  7835. cat conftest.err >&5
  7836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7837. (exit $ac_status); } && {
  7838. test -z "$ac_cxx_werror_flag" ||
  7839. test ! -s conftest.err
  7840. } && test -s conftest.$ac_objext; then
  7841. cat >conftest.$ac_ext <<_ACEOF
  7842. /* confdefs.h. */
  7843. _ACEOF
  7844. cat confdefs.h >>conftest.$ac_ext
  7845. cat >>conftest.$ac_ext <<_ACEOF
  7846. /* end confdefs.h. */
  7847. $ac_includes_default
  7848. int
  7849. main ()
  7850. {
  7851. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7852. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7853. test_array [0] = 0
  7854. ;
  7855. return 0;
  7856. }
  7857. _ACEOF
  7858. rm -f conftest.$ac_objext
  7859. if { (ac_try="$ac_compile"
  7860. case "(($ac_try" in
  7861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7862. *) ac_try_echo=$ac_try;;
  7863. esac
  7864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7865. (eval "$ac_compile") 2>conftest.er1
  7866. ac_status=$?
  7867. grep -v '^ *+' conftest.er1 >conftest.err
  7868. rm -f conftest.er1
  7869. cat conftest.err >&5
  7870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7871. (exit $ac_status); } && {
  7872. test -z "$ac_cxx_werror_flag" ||
  7873. test ! -s conftest.err
  7874. } && test -s conftest.$ac_objext; then
  7875. :
  7876. else
  7877. echo "$as_me: failed program was:" >&5
  7878. sed 's/^/| /' conftest.$ac_ext >&5
  7879. case $ac_type in
  7880. int8_t) ac_cv_c_int8_t=yes ;;
  7881. *) ac_cv_c_int8_t=$ac_type ;;
  7882. esac
  7883. fi
  7884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7885. else
  7886. echo "$as_me: failed program was:" >&5
  7887. sed 's/^/| /' conftest.$ac_ext >&5
  7888. fi
  7889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7890. test "$ac_cv_c_int8_t" != no && break
  7891. done
  7892. fi
  7893. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7894. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7895. case $ac_cv_c_int8_t in #(
  7896. no|yes) ;; #(
  7897. *)
  7898. cat >>confdefs.h <<_ACEOF
  7899. #define int8_t $ac_cv_c_int8_t
  7900. _ACEOF
  7901. ;;
  7902. esac
  7903. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7904. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7905. if test "${ac_cv_type_mode_t+set}" = set; then
  7906. echo $ECHO_N "(cached) $ECHO_C" >&6
  7907. else
  7908. cat >conftest.$ac_ext <<_ACEOF
  7909. /* confdefs.h. */
  7910. _ACEOF
  7911. cat confdefs.h >>conftest.$ac_ext
  7912. cat >>conftest.$ac_ext <<_ACEOF
  7913. /* end confdefs.h. */
  7914. $ac_includes_default
  7915. typedef mode_t ac__type_new_;
  7916. int
  7917. main ()
  7918. {
  7919. if ((ac__type_new_ *) 0)
  7920. return 0;
  7921. if (sizeof (ac__type_new_))
  7922. return 0;
  7923. ;
  7924. return 0;
  7925. }
  7926. _ACEOF
  7927. rm -f conftest.$ac_objext
  7928. if { (ac_try="$ac_compile"
  7929. case "(($ac_try" in
  7930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7931. *) ac_try_echo=$ac_try;;
  7932. esac
  7933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7934. (eval "$ac_compile") 2>conftest.er1
  7935. ac_status=$?
  7936. grep -v '^ *+' conftest.er1 >conftest.err
  7937. rm -f conftest.er1
  7938. cat conftest.err >&5
  7939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7940. (exit $ac_status); } && {
  7941. test -z "$ac_cxx_werror_flag" ||
  7942. test ! -s conftest.err
  7943. } && test -s conftest.$ac_objext; then
  7944. ac_cv_type_mode_t=yes
  7945. else
  7946. echo "$as_me: failed program was:" >&5
  7947. sed 's/^/| /' conftest.$ac_ext >&5
  7948. ac_cv_type_mode_t=no
  7949. fi
  7950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7951. fi
  7952. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7953. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7954. if test $ac_cv_type_mode_t = yes; then
  7955. :
  7956. else
  7957. cat >>confdefs.h <<_ACEOF
  7958. #define mode_t int
  7959. _ACEOF
  7960. fi
  7961. { echo "$as_me:$LINENO: checking for off_t" >&5
  7962. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7963. if test "${ac_cv_type_off_t+set}" = set; then
  7964. echo $ECHO_N "(cached) $ECHO_C" >&6
  7965. else
  7966. cat >conftest.$ac_ext <<_ACEOF
  7967. /* confdefs.h. */
  7968. _ACEOF
  7969. cat confdefs.h >>conftest.$ac_ext
  7970. cat >>conftest.$ac_ext <<_ACEOF
  7971. /* end confdefs.h. */
  7972. $ac_includes_default
  7973. typedef off_t ac__type_new_;
  7974. int
  7975. main ()
  7976. {
  7977. if ((ac__type_new_ *) 0)
  7978. return 0;
  7979. if (sizeof (ac__type_new_))
  7980. return 0;
  7981. ;
  7982. return 0;
  7983. }
  7984. _ACEOF
  7985. rm -f conftest.$ac_objext
  7986. if { (ac_try="$ac_compile"
  7987. case "(($ac_try" in
  7988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7989. *) ac_try_echo=$ac_try;;
  7990. esac
  7991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7992. (eval "$ac_compile") 2>conftest.er1
  7993. ac_status=$?
  7994. grep -v '^ *+' conftest.er1 >conftest.err
  7995. rm -f conftest.er1
  7996. cat conftest.err >&5
  7997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7998. (exit $ac_status); } && {
  7999. test -z "$ac_cxx_werror_flag" ||
  8000. test ! -s conftest.err
  8001. } && test -s conftest.$ac_objext; then
  8002. ac_cv_type_off_t=yes
  8003. else
  8004. echo "$as_me: failed program was:" >&5
  8005. sed 's/^/| /' conftest.$ac_ext >&5
  8006. ac_cv_type_off_t=no
  8007. fi
  8008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8009. fi
  8010. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8011. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8012. if test $ac_cv_type_off_t = yes; then
  8013. :
  8014. else
  8015. cat >>confdefs.h <<_ACEOF
  8016. #define off_t long int
  8017. _ACEOF
  8018. fi
  8019. { echo "$as_me:$LINENO: checking for size_t" >&5
  8020. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8021. if test "${ac_cv_type_size_t+set}" = set; then
  8022. echo $ECHO_N "(cached) $ECHO_C" >&6
  8023. else
  8024. cat >conftest.$ac_ext <<_ACEOF
  8025. /* confdefs.h. */
  8026. _ACEOF
  8027. cat confdefs.h >>conftest.$ac_ext
  8028. cat >>conftest.$ac_ext <<_ACEOF
  8029. /* end confdefs.h. */
  8030. $ac_includes_default
  8031. typedef size_t ac__type_new_;
  8032. int
  8033. main ()
  8034. {
  8035. if ((ac__type_new_ *) 0)
  8036. return 0;
  8037. if (sizeof (ac__type_new_))
  8038. return 0;
  8039. ;
  8040. return 0;
  8041. }
  8042. _ACEOF
  8043. rm -f conftest.$ac_objext
  8044. if { (ac_try="$ac_compile"
  8045. case "(($ac_try" in
  8046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8047. *) ac_try_echo=$ac_try;;
  8048. esac
  8049. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8050. (eval "$ac_compile") 2>conftest.er1
  8051. ac_status=$?
  8052. grep -v '^ *+' conftest.er1 >conftest.err
  8053. rm -f conftest.er1
  8054. cat conftest.err >&5
  8055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8056. (exit $ac_status); } && {
  8057. test -z "$ac_cxx_werror_flag" ||
  8058. test ! -s conftest.err
  8059. } && test -s conftest.$ac_objext; then
  8060. ac_cv_type_size_t=yes
  8061. else
  8062. echo "$as_me: failed program was:" >&5
  8063. sed 's/^/| /' conftest.$ac_ext >&5
  8064. ac_cv_type_size_t=no
  8065. fi
  8066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8067. fi
  8068. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8069. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8070. if test $ac_cv_type_size_t = yes; then
  8071. :
  8072. else
  8073. cat >>confdefs.h <<_ACEOF
  8074. #define size_t unsigned int
  8075. _ACEOF
  8076. fi
  8077. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8078. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8079. if test "${ac_cv_type_ssize_t+set}" = set; then
  8080. echo $ECHO_N "(cached) $ECHO_C" >&6
  8081. else
  8082. cat >conftest.$ac_ext <<_ACEOF
  8083. /* confdefs.h. */
  8084. _ACEOF
  8085. cat confdefs.h >>conftest.$ac_ext
  8086. cat >>conftest.$ac_ext <<_ACEOF
  8087. /* end confdefs.h. */
  8088. $ac_includes_default
  8089. typedef ssize_t ac__type_new_;
  8090. int
  8091. main ()
  8092. {
  8093. if ((ac__type_new_ *) 0)
  8094. return 0;
  8095. if (sizeof (ac__type_new_))
  8096. return 0;
  8097. ;
  8098. return 0;
  8099. }
  8100. _ACEOF
  8101. rm -f conftest.$ac_objext
  8102. if { (ac_try="$ac_compile"
  8103. case "(($ac_try" in
  8104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8105. *) ac_try_echo=$ac_try;;
  8106. esac
  8107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8108. (eval "$ac_compile") 2>conftest.er1
  8109. ac_status=$?
  8110. grep -v '^ *+' conftest.er1 >conftest.err
  8111. rm -f conftest.er1
  8112. cat conftest.err >&5
  8113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8114. (exit $ac_status); } && {
  8115. test -z "$ac_cxx_werror_flag" ||
  8116. test ! -s conftest.err
  8117. } && test -s conftest.$ac_objext; then
  8118. ac_cv_type_ssize_t=yes
  8119. else
  8120. echo "$as_me: failed program was:" >&5
  8121. sed 's/^/| /' conftest.$ac_ext >&5
  8122. ac_cv_type_ssize_t=no
  8123. fi
  8124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8125. fi
  8126. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8127. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8128. if test $ac_cv_type_ssize_t = yes; then
  8129. :
  8130. else
  8131. cat >>confdefs.h <<_ACEOF
  8132. #define ssize_t int
  8133. _ACEOF
  8134. fi
  8135. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8136. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8137. if test "${ac_cv_header_time+set}" = set; then
  8138. echo $ECHO_N "(cached) $ECHO_C" >&6
  8139. else
  8140. cat >conftest.$ac_ext <<_ACEOF
  8141. /* confdefs.h. */
  8142. _ACEOF
  8143. cat confdefs.h >>conftest.$ac_ext
  8144. cat >>conftest.$ac_ext <<_ACEOF
  8145. /* end confdefs.h. */
  8146. #include <sys/types.h>
  8147. #include <sys/time.h>
  8148. #include <time.h>
  8149. int
  8150. main ()
  8151. {
  8152. if ((struct tm *) 0)
  8153. return 0;
  8154. ;
  8155. return 0;
  8156. }
  8157. _ACEOF
  8158. rm -f conftest.$ac_objext
  8159. if { (ac_try="$ac_compile"
  8160. case "(($ac_try" in
  8161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8162. *) ac_try_echo=$ac_try;;
  8163. esac
  8164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8165. (eval "$ac_compile") 2>conftest.er1
  8166. ac_status=$?
  8167. grep -v '^ *+' conftest.er1 >conftest.err
  8168. rm -f conftest.er1
  8169. cat conftest.err >&5
  8170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8171. (exit $ac_status); } && {
  8172. test -z "$ac_cxx_werror_flag" ||
  8173. test ! -s conftest.err
  8174. } && test -s conftest.$ac_objext; then
  8175. ac_cv_header_time=yes
  8176. else
  8177. echo "$as_me: failed program was:" >&5
  8178. sed 's/^/| /' conftest.$ac_ext >&5
  8179. ac_cv_header_time=no
  8180. fi
  8181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8182. fi
  8183. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8184. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8185. if test $ac_cv_header_time = yes; then
  8186. cat >>confdefs.h <<\_ACEOF
  8187. #define TIME_WITH_SYS_TIME 1
  8188. _ACEOF
  8189. fi
  8190. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8191. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8192. if test "${ac_cv_struct_tm+set}" = set; then
  8193. echo $ECHO_N "(cached) $ECHO_C" >&6
  8194. else
  8195. cat >conftest.$ac_ext <<_ACEOF
  8196. /* confdefs.h. */
  8197. _ACEOF
  8198. cat confdefs.h >>conftest.$ac_ext
  8199. cat >>conftest.$ac_ext <<_ACEOF
  8200. /* end confdefs.h. */
  8201. #include <sys/types.h>
  8202. #include <time.h>
  8203. int
  8204. main ()
  8205. {
  8206. struct tm tm;
  8207. int *p = &tm.tm_sec;
  8208. return !p;
  8209. ;
  8210. return 0;
  8211. }
  8212. _ACEOF
  8213. rm -f conftest.$ac_objext
  8214. if { (ac_try="$ac_compile"
  8215. case "(($ac_try" in
  8216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8217. *) ac_try_echo=$ac_try;;
  8218. esac
  8219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8220. (eval "$ac_compile") 2>conftest.er1
  8221. ac_status=$?
  8222. grep -v '^ *+' conftest.er1 >conftest.err
  8223. rm -f conftest.er1
  8224. cat conftest.err >&5
  8225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226. (exit $ac_status); } && {
  8227. test -z "$ac_cxx_werror_flag" ||
  8228. test ! -s conftest.err
  8229. } && test -s conftest.$ac_objext; then
  8230. ac_cv_struct_tm=time.h
  8231. else
  8232. echo "$as_me: failed program was:" >&5
  8233. sed 's/^/| /' conftest.$ac_ext >&5
  8234. ac_cv_struct_tm=sys/time.h
  8235. fi
  8236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8237. fi
  8238. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8239. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8240. if test $ac_cv_struct_tm = sys/time.h; then
  8241. cat >>confdefs.h <<\_ACEOF
  8242. #define TM_IN_SYS_TIME 1
  8243. _ACEOF
  8244. fi
  8245. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8246. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8247. if test "${ac_cv_c_uint16_t+set}" = set; then
  8248. echo $ECHO_N "(cached) $ECHO_C" >&6
  8249. else
  8250. ac_cv_c_uint16_t=no
  8251. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8252. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8253. cat >conftest.$ac_ext <<_ACEOF
  8254. /* confdefs.h. */
  8255. _ACEOF
  8256. cat confdefs.h >>conftest.$ac_ext
  8257. cat >>conftest.$ac_ext <<_ACEOF
  8258. /* end confdefs.h. */
  8259. $ac_includes_default
  8260. int
  8261. main ()
  8262. {
  8263. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8264. test_array [0] = 0
  8265. ;
  8266. return 0;
  8267. }
  8268. _ACEOF
  8269. rm -f conftest.$ac_objext
  8270. if { (ac_try="$ac_compile"
  8271. case "(($ac_try" in
  8272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8273. *) ac_try_echo=$ac_try;;
  8274. esac
  8275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8276. (eval "$ac_compile") 2>conftest.er1
  8277. ac_status=$?
  8278. grep -v '^ *+' conftest.er1 >conftest.err
  8279. rm -f conftest.er1
  8280. cat conftest.err >&5
  8281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8282. (exit $ac_status); } && {
  8283. test -z "$ac_cxx_werror_flag" ||
  8284. test ! -s conftest.err
  8285. } && test -s conftest.$ac_objext; then
  8286. case $ac_type in
  8287. uint16_t) ac_cv_c_uint16_t=yes ;;
  8288. *) ac_cv_c_uint16_t=$ac_type ;;
  8289. esac
  8290. else
  8291. echo "$as_me: failed program was:" >&5
  8292. sed 's/^/| /' conftest.$ac_ext >&5
  8293. fi
  8294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8295. test "$ac_cv_c_uint16_t" != no && break
  8296. done
  8297. fi
  8298. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8299. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8300. case $ac_cv_c_uint16_t in #(
  8301. no|yes) ;; #(
  8302. *)
  8303. cat >>confdefs.h <<_ACEOF
  8304. #define uint16_t $ac_cv_c_uint16_t
  8305. _ACEOF
  8306. ;;
  8307. esac
  8308. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8309. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8310. if test "${ac_cv_c_uint32_t+set}" = set; then
  8311. echo $ECHO_N "(cached) $ECHO_C" >&6
  8312. else
  8313. ac_cv_c_uint32_t=no
  8314. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8315. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8316. cat >conftest.$ac_ext <<_ACEOF
  8317. /* confdefs.h. */
  8318. _ACEOF
  8319. cat confdefs.h >>conftest.$ac_ext
  8320. cat >>conftest.$ac_ext <<_ACEOF
  8321. /* end confdefs.h. */
  8322. $ac_includes_default
  8323. int
  8324. main ()
  8325. {
  8326. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8327. test_array [0] = 0
  8328. ;
  8329. return 0;
  8330. }
  8331. _ACEOF
  8332. rm -f conftest.$ac_objext
  8333. if { (ac_try="$ac_compile"
  8334. case "(($ac_try" in
  8335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8336. *) ac_try_echo=$ac_try;;
  8337. esac
  8338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8339. (eval "$ac_compile") 2>conftest.er1
  8340. ac_status=$?
  8341. grep -v '^ *+' conftest.er1 >conftest.err
  8342. rm -f conftest.er1
  8343. cat conftest.err >&5
  8344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8345. (exit $ac_status); } && {
  8346. test -z "$ac_cxx_werror_flag" ||
  8347. test ! -s conftest.err
  8348. } && test -s conftest.$ac_objext; then
  8349. case $ac_type in
  8350. uint32_t) ac_cv_c_uint32_t=yes ;;
  8351. *) ac_cv_c_uint32_t=$ac_type ;;
  8352. esac
  8353. else
  8354. echo "$as_me: failed program was:" >&5
  8355. sed 's/^/| /' conftest.$ac_ext >&5
  8356. fi
  8357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8358. test "$ac_cv_c_uint32_t" != no && break
  8359. done
  8360. fi
  8361. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8362. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8363. case $ac_cv_c_uint32_t in #(
  8364. no|yes) ;; #(
  8365. *)
  8366. cat >>confdefs.h <<\_ACEOF
  8367. #define _UINT32_T 1
  8368. _ACEOF
  8369. cat >>confdefs.h <<_ACEOF
  8370. #define uint32_t $ac_cv_c_uint32_t
  8371. _ACEOF
  8372. ;;
  8373. esac
  8374. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8375. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8376. if test "${ac_cv_c_uint64_t+set}" = set; then
  8377. echo $ECHO_N "(cached) $ECHO_C" >&6
  8378. else
  8379. ac_cv_c_uint64_t=no
  8380. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8381. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8382. cat >conftest.$ac_ext <<_ACEOF
  8383. /* confdefs.h. */
  8384. _ACEOF
  8385. cat confdefs.h >>conftest.$ac_ext
  8386. cat >>conftest.$ac_ext <<_ACEOF
  8387. /* end confdefs.h. */
  8388. $ac_includes_default
  8389. int
  8390. main ()
  8391. {
  8392. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8393. test_array [0] = 0
  8394. ;
  8395. return 0;
  8396. }
  8397. _ACEOF
  8398. rm -f conftest.$ac_objext
  8399. if { (ac_try="$ac_compile"
  8400. case "(($ac_try" in
  8401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8402. *) ac_try_echo=$ac_try;;
  8403. esac
  8404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8405. (eval "$ac_compile") 2>conftest.er1
  8406. ac_status=$?
  8407. grep -v '^ *+' conftest.er1 >conftest.err
  8408. rm -f conftest.er1
  8409. cat conftest.err >&5
  8410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8411. (exit $ac_status); } && {
  8412. test -z "$ac_cxx_werror_flag" ||
  8413. test ! -s conftest.err
  8414. } && test -s conftest.$ac_objext; then
  8415. case $ac_type in
  8416. uint64_t) ac_cv_c_uint64_t=yes ;;
  8417. *) ac_cv_c_uint64_t=$ac_type ;;
  8418. esac
  8419. else
  8420. echo "$as_me: failed program was:" >&5
  8421. sed 's/^/| /' conftest.$ac_ext >&5
  8422. fi
  8423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8424. test "$ac_cv_c_uint64_t" != no && break
  8425. done
  8426. fi
  8427. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8428. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8429. case $ac_cv_c_uint64_t in #(
  8430. no|yes) ;; #(
  8431. *)
  8432. cat >>confdefs.h <<\_ACEOF
  8433. #define _UINT64_T 1
  8434. _ACEOF
  8435. cat >>confdefs.h <<_ACEOF
  8436. #define uint64_t $ac_cv_c_uint64_t
  8437. _ACEOF
  8438. ;;
  8439. esac
  8440. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8441. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8442. if test "${ac_cv_c_uint8_t+set}" = set; then
  8443. echo $ECHO_N "(cached) $ECHO_C" >&6
  8444. else
  8445. ac_cv_c_uint8_t=no
  8446. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8447. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8448. cat >conftest.$ac_ext <<_ACEOF
  8449. /* confdefs.h. */
  8450. _ACEOF
  8451. cat confdefs.h >>conftest.$ac_ext
  8452. cat >>conftest.$ac_ext <<_ACEOF
  8453. /* end confdefs.h. */
  8454. $ac_includes_default
  8455. int
  8456. main ()
  8457. {
  8458. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8459. test_array [0] = 0
  8460. ;
  8461. return 0;
  8462. }
  8463. _ACEOF
  8464. rm -f conftest.$ac_objext
  8465. if { (ac_try="$ac_compile"
  8466. case "(($ac_try" in
  8467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8468. *) ac_try_echo=$ac_try;;
  8469. esac
  8470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8471. (eval "$ac_compile") 2>conftest.er1
  8472. ac_status=$?
  8473. grep -v '^ *+' conftest.er1 >conftest.err
  8474. rm -f conftest.er1
  8475. cat conftest.err >&5
  8476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8477. (exit $ac_status); } && {
  8478. test -z "$ac_cxx_werror_flag" ||
  8479. test ! -s conftest.err
  8480. } && test -s conftest.$ac_objext; then
  8481. case $ac_type in
  8482. uint8_t) ac_cv_c_uint8_t=yes ;;
  8483. *) ac_cv_c_uint8_t=$ac_type ;;
  8484. esac
  8485. else
  8486. echo "$as_me: failed program was:" >&5
  8487. sed 's/^/| /' conftest.$ac_ext >&5
  8488. fi
  8489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8490. test "$ac_cv_c_uint8_t" != no && break
  8491. done
  8492. fi
  8493. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8494. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8495. case $ac_cv_c_uint8_t in #(
  8496. no|yes) ;; #(
  8497. *)
  8498. cat >>confdefs.h <<\_ACEOF
  8499. #define _UINT8_T 1
  8500. _ACEOF
  8501. cat >>confdefs.h <<_ACEOF
  8502. #define uint8_t $ac_cv_c_uint8_t
  8503. _ACEOF
  8504. ;;
  8505. esac
  8506. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8507. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8508. if test "${ac_cv_c_volatile+set}" = set; then
  8509. echo $ECHO_N "(cached) $ECHO_C" >&6
  8510. else
  8511. cat >conftest.$ac_ext <<_ACEOF
  8512. /* confdefs.h. */
  8513. _ACEOF
  8514. cat confdefs.h >>conftest.$ac_ext
  8515. cat >>conftest.$ac_ext <<_ACEOF
  8516. /* end confdefs.h. */
  8517. int
  8518. main ()
  8519. {
  8520. volatile int x;
  8521. int * volatile y = (int *) 0;
  8522. return !x && !y;
  8523. ;
  8524. return 0;
  8525. }
  8526. _ACEOF
  8527. rm -f conftest.$ac_objext
  8528. if { (ac_try="$ac_compile"
  8529. case "(($ac_try" in
  8530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8531. *) ac_try_echo=$ac_try;;
  8532. esac
  8533. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8534. (eval "$ac_compile") 2>conftest.er1
  8535. ac_status=$?
  8536. grep -v '^ *+' conftest.er1 >conftest.err
  8537. rm -f conftest.er1
  8538. cat conftest.err >&5
  8539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8540. (exit $ac_status); } && {
  8541. test -z "$ac_cxx_werror_flag" ||
  8542. test ! -s conftest.err
  8543. } && test -s conftest.$ac_objext; then
  8544. ac_cv_c_volatile=yes
  8545. else
  8546. echo "$as_me: failed program was:" >&5
  8547. sed 's/^/| /' conftest.$ac_ext >&5
  8548. ac_cv_c_volatile=no
  8549. fi
  8550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8551. fi
  8552. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8553. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8554. if test $ac_cv_c_volatile = no; then
  8555. cat >>confdefs.h <<\_ACEOF
  8556. #define volatile
  8557. _ACEOF
  8558. fi
  8559. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8560. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8561. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8562. echo $ECHO_N "(cached) $ECHO_C" >&6
  8563. else
  8564. cat >conftest.$ac_ext <<_ACEOF
  8565. /* confdefs.h. */
  8566. _ACEOF
  8567. cat confdefs.h >>conftest.$ac_ext
  8568. cat >>conftest.$ac_ext <<_ACEOF
  8569. /* end confdefs.h. */
  8570. $ac_includes_default
  8571. typedef ptrdiff_t ac__type_new_;
  8572. int
  8573. main ()
  8574. {
  8575. if ((ac__type_new_ *) 0)
  8576. return 0;
  8577. if (sizeof (ac__type_new_))
  8578. return 0;
  8579. ;
  8580. return 0;
  8581. }
  8582. _ACEOF
  8583. rm -f conftest.$ac_objext
  8584. if { (ac_try="$ac_compile"
  8585. case "(($ac_try" in
  8586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8587. *) ac_try_echo=$ac_try;;
  8588. esac
  8589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8590. (eval "$ac_compile") 2>conftest.er1
  8591. ac_status=$?
  8592. grep -v '^ *+' conftest.er1 >conftest.err
  8593. rm -f conftest.er1
  8594. cat conftest.err >&5
  8595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8596. (exit $ac_status); } && {
  8597. test -z "$ac_cxx_werror_flag" ||
  8598. test ! -s conftest.err
  8599. } && test -s conftest.$ac_objext; then
  8600. ac_cv_type_ptrdiff_t=yes
  8601. else
  8602. echo "$as_me: failed program was:" >&5
  8603. sed 's/^/| /' conftest.$ac_ext >&5
  8604. ac_cv_type_ptrdiff_t=no
  8605. fi
  8606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8607. fi
  8608. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8609. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8610. if test $ac_cv_type_ptrdiff_t = yes; then
  8611. cat >>confdefs.h <<_ACEOF
  8612. #define HAVE_PTRDIFF_T 1
  8613. _ACEOF
  8614. fi
  8615. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8616. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8617. if test "${ac_cv_c_bigendian+set}" = set; then
  8618. echo $ECHO_N "(cached) $ECHO_C" >&6
  8619. else
  8620. # See if sys/param.h defines the BYTE_ORDER macro.
  8621. cat >conftest.$ac_ext <<_ACEOF
  8622. /* confdefs.h. */
  8623. _ACEOF
  8624. cat confdefs.h >>conftest.$ac_ext
  8625. cat >>conftest.$ac_ext <<_ACEOF
  8626. /* end confdefs.h. */
  8627. #include <sys/types.h>
  8628. #include <sys/param.h>
  8629. int
  8630. main ()
  8631. {
  8632. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8633. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8634. bogus endian macros
  8635. #endif
  8636. ;
  8637. return 0;
  8638. }
  8639. _ACEOF
  8640. rm -f conftest.$ac_objext
  8641. if { (ac_try="$ac_compile"
  8642. case "(($ac_try" in
  8643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8644. *) ac_try_echo=$ac_try;;
  8645. esac
  8646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8647. (eval "$ac_compile") 2>conftest.er1
  8648. ac_status=$?
  8649. grep -v '^ *+' conftest.er1 >conftest.err
  8650. rm -f conftest.er1
  8651. cat conftest.err >&5
  8652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8653. (exit $ac_status); } && {
  8654. test -z "$ac_cxx_werror_flag" ||
  8655. test ! -s conftest.err
  8656. } && test -s conftest.$ac_objext; then
  8657. # It does; now see whether it defined to BIG_ENDIAN or not.
  8658. cat >conftest.$ac_ext <<_ACEOF
  8659. /* confdefs.h. */
  8660. _ACEOF
  8661. cat confdefs.h >>conftest.$ac_ext
  8662. cat >>conftest.$ac_ext <<_ACEOF
  8663. /* end confdefs.h. */
  8664. #include <sys/types.h>
  8665. #include <sys/param.h>
  8666. int
  8667. main ()
  8668. {
  8669. #if BYTE_ORDER != BIG_ENDIAN
  8670. not big endian
  8671. #endif
  8672. ;
  8673. return 0;
  8674. }
  8675. _ACEOF
  8676. rm -f conftest.$ac_objext
  8677. if { (ac_try="$ac_compile"
  8678. case "(($ac_try" in
  8679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8680. *) ac_try_echo=$ac_try;;
  8681. esac
  8682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8683. (eval "$ac_compile") 2>conftest.er1
  8684. ac_status=$?
  8685. grep -v '^ *+' conftest.er1 >conftest.err
  8686. rm -f conftest.er1
  8687. cat conftest.err >&5
  8688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8689. (exit $ac_status); } && {
  8690. test -z "$ac_cxx_werror_flag" ||
  8691. test ! -s conftest.err
  8692. } && test -s conftest.$ac_objext; then
  8693. ac_cv_c_bigendian=yes
  8694. else
  8695. echo "$as_me: failed program was:" >&5
  8696. sed 's/^/| /' conftest.$ac_ext >&5
  8697. ac_cv_c_bigendian=no
  8698. fi
  8699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8700. else
  8701. echo "$as_me: failed program was:" >&5
  8702. sed 's/^/| /' conftest.$ac_ext >&5
  8703. # It does not; compile a test program.
  8704. if test "$cross_compiling" = yes; then
  8705. # try to guess the endianness by grepping values into an object file
  8706. ac_cv_c_bigendian=unknown
  8707. cat >conftest.$ac_ext <<_ACEOF
  8708. /* confdefs.h. */
  8709. _ACEOF
  8710. cat confdefs.h >>conftest.$ac_ext
  8711. cat >>conftest.$ac_ext <<_ACEOF
  8712. /* end confdefs.h. */
  8713. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8714. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8715. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  8716. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8717. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8718. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  8719. int
  8720. main ()
  8721. {
  8722. _ascii (); _ebcdic ();
  8723. ;
  8724. return 0;
  8725. }
  8726. _ACEOF
  8727. rm -f conftest.$ac_objext
  8728. if { (ac_try="$ac_compile"
  8729. case "(($ac_try" in
  8730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8731. *) ac_try_echo=$ac_try;;
  8732. esac
  8733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8734. (eval "$ac_compile") 2>conftest.er1
  8735. ac_status=$?
  8736. grep -v '^ *+' conftest.er1 >conftest.err
  8737. rm -f conftest.er1
  8738. cat conftest.err >&5
  8739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8740. (exit $ac_status); } && {
  8741. test -z "$ac_cxx_werror_flag" ||
  8742. test ! -s conftest.err
  8743. } && test -s conftest.$ac_objext; then
  8744. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  8745. ac_cv_c_bigendian=yes
  8746. fi
  8747. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8748. if test "$ac_cv_c_bigendian" = unknown; then
  8749. ac_cv_c_bigendian=no
  8750. else
  8751. # finding both strings is unlikely to happen, but who knows?
  8752. ac_cv_c_bigendian=unknown
  8753. fi
  8754. fi
  8755. else
  8756. echo "$as_me: failed program was:" >&5
  8757. sed 's/^/| /' conftest.$ac_ext >&5
  8758. fi
  8759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8760. else
  8761. cat >conftest.$ac_ext <<_ACEOF
  8762. /* confdefs.h. */
  8763. _ACEOF
  8764. cat confdefs.h >>conftest.$ac_ext
  8765. cat >>conftest.$ac_ext <<_ACEOF
  8766. /* end confdefs.h. */
  8767. $ac_includes_default
  8768. int
  8769. main ()
  8770. {
  8771. /* Are we little or big endian? From Harbison&Steele. */
  8772. union
  8773. {
  8774. long int l;
  8775. char c[sizeof (long int)];
  8776. } u;
  8777. u.l = 1;
  8778. return u.c[sizeof (long int) - 1] == 1;
  8779. ;
  8780. return 0;
  8781. }
  8782. _ACEOF
  8783. rm -f conftest$ac_exeext
  8784. if { (ac_try="$ac_link"
  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_link") 2>&5
  8791. ac_status=$?
  8792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8793. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8794. { (case "(($ac_try" in
  8795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8796. *) ac_try_echo=$ac_try;;
  8797. esac
  8798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8799. (eval "$ac_try") 2>&5
  8800. ac_status=$?
  8801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8802. (exit $ac_status); }; }; then
  8803. ac_cv_c_bigendian=no
  8804. else
  8805. echo "$as_me: program exited with status $ac_status" >&5
  8806. echo "$as_me: failed program was:" >&5
  8807. sed 's/^/| /' conftest.$ac_ext >&5
  8808. ( exit $ac_status )
  8809. ac_cv_c_bigendian=yes
  8810. fi
  8811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8812. fi
  8813. fi
  8814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8815. fi
  8816. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  8817. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  8818. case $ac_cv_c_bigendian in
  8819. yes)
  8820. cat >>confdefs.h <<\_ACEOF
  8821. #define WORDS_BIGENDIAN 1
  8822. _ACEOF
  8823. ;;
  8824. no)
  8825. ;;
  8826. *)
  8827. { { echo "$as_me:$LINENO: error: unknown endianness
  8828. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  8829. echo "$as_me: error: unknown endianness
  8830. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  8831. { (exit 1); exit 1; }; } ;;
  8832. esac
  8833. # Check whether --enable-largefile was given.
  8834. if test "${enable_largefile+set}" = set; then
  8835. enableval=$enable_largefile;
  8836. fi
  8837. if test "$enable_largefile" != no; then
  8838. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8839. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8840. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8841. echo $ECHO_N "(cached) $ECHO_C" >&6
  8842. else
  8843. ac_cv_sys_largefile_CC=no
  8844. if test "$GCC" != yes; then
  8845. ac_save_CC=$CC
  8846. while :; do
  8847. # IRIX 6.2 and later do not support large files by default,
  8848. # so use the C compiler's -n32 option if that helps.
  8849. cat >conftest.$ac_ext <<_ACEOF
  8850. /* confdefs.h. */
  8851. _ACEOF
  8852. cat confdefs.h >>conftest.$ac_ext
  8853. cat >>conftest.$ac_ext <<_ACEOF
  8854. /* end confdefs.h. */
  8855. #include <sys/types.h>
  8856. /* Check that off_t can represent 2**63 - 1 correctly.
  8857. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8858. since some C++ compilers masquerading as C compilers
  8859. incorrectly reject 9223372036854775807. */
  8860. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8861. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8862. && LARGE_OFF_T % 2147483647 == 1)
  8863. ? 1 : -1];
  8864. int
  8865. main ()
  8866. {
  8867. ;
  8868. return 0;
  8869. }
  8870. _ACEOF
  8871. rm -f conftest.$ac_objext
  8872. if { (ac_try="$ac_compile"
  8873. case "(($ac_try" in
  8874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8875. *) ac_try_echo=$ac_try;;
  8876. esac
  8877. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8878. (eval "$ac_compile") 2>conftest.er1
  8879. ac_status=$?
  8880. grep -v '^ *+' conftest.er1 >conftest.err
  8881. rm -f conftest.er1
  8882. cat conftest.err >&5
  8883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8884. (exit $ac_status); } && {
  8885. test -z "$ac_cxx_werror_flag" ||
  8886. test ! -s conftest.err
  8887. } && test -s conftest.$ac_objext; then
  8888. break
  8889. else
  8890. echo "$as_me: failed program was:" >&5
  8891. sed 's/^/| /' conftest.$ac_ext >&5
  8892. fi
  8893. rm -f core conftest.err conftest.$ac_objext
  8894. CC="$CC -n32"
  8895. rm -f conftest.$ac_objext
  8896. if { (ac_try="$ac_compile"
  8897. case "(($ac_try" in
  8898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8899. *) ac_try_echo=$ac_try;;
  8900. esac
  8901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8902. (eval "$ac_compile") 2>conftest.er1
  8903. ac_status=$?
  8904. grep -v '^ *+' conftest.er1 >conftest.err
  8905. rm -f conftest.er1
  8906. cat conftest.err >&5
  8907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8908. (exit $ac_status); } && {
  8909. test -z "$ac_cxx_werror_flag" ||
  8910. test ! -s conftest.err
  8911. } && test -s conftest.$ac_objext; then
  8912. ac_cv_sys_largefile_CC=' -n32'; break
  8913. else
  8914. echo "$as_me: failed program was:" >&5
  8915. sed 's/^/| /' conftest.$ac_ext >&5
  8916. fi
  8917. rm -f core conftest.err conftest.$ac_objext
  8918. break
  8919. done
  8920. CC=$ac_save_CC
  8921. rm -f conftest.$ac_ext
  8922. fi
  8923. fi
  8924. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8925. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8926. if test "$ac_cv_sys_largefile_CC" != no; then
  8927. CC=$CC$ac_cv_sys_largefile_CC
  8928. fi
  8929. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8930. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8931. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8932. echo $ECHO_N "(cached) $ECHO_C" >&6
  8933. else
  8934. while :; do
  8935. cat >conftest.$ac_ext <<_ACEOF
  8936. /* confdefs.h. */
  8937. _ACEOF
  8938. cat confdefs.h >>conftest.$ac_ext
  8939. cat >>conftest.$ac_ext <<_ACEOF
  8940. /* end confdefs.h. */
  8941. #include <sys/types.h>
  8942. /* Check that off_t can represent 2**63 - 1 correctly.
  8943. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8944. since some C++ compilers masquerading as C compilers
  8945. incorrectly reject 9223372036854775807. */
  8946. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8947. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8948. && LARGE_OFF_T % 2147483647 == 1)
  8949. ? 1 : -1];
  8950. int
  8951. main ()
  8952. {
  8953. ;
  8954. return 0;
  8955. }
  8956. _ACEOF
  8957. rm -f conftest.$ac_objext
  8958. if { (ac_try="$ac_compile"
  8959. case "(($ac_try" in
  8960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8961. *) ac_try_echo=$ac_try;;
  8962. esac
  8963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8964. (eval "$ac_compile") 2>conftest.er1
  8965. ac_status=$?
  8966. grep -v '^ *+' conftest.er1 >conftest.err
  8967. rm -f conftest.er1
  8968. cat conftest.err >&5
  8969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8970. (exit $ac_status); } && {
  8971. test -z "$ac_cxx_werror_flag" ||
  8972. test ! -s conftest.err
  8973. } && test -s conftest.$ac_objext; then
  8974. ac_cv_sys_file_offset_bits=no; break
  8975. else
  8976. echo "$as_me: failed program was:" >&5
  8977. sed 's/^/| /' conftest.$ac_ext >&5
  8978. fi
  8979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8980. cat >conftest.$ac_ext <<_ACEOF
  8981. /* confdefs.h. */
  8982. _ACEOF
  8983. cat confdefs.h >>conftest.$ac_ext
  8984. cat >>conftest.$ac_ext <<_ACEOF
  8985. /* end confdefs.h. */
  8986. #define _FILE_OFFSET_BITS 64
  8987. #include <sys/types.h>
  8988. /* Check that off_t can represent 2**63 - 1 correctly.
  8989. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8990. since some C++ compilers masquerading as C compilers
  8991. incorrectly reject 9223372036854775807. */
  8992. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8993. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8994. && LARGE_OFF_T % 2147483647 == 1)
  8995. ? 1 : -1];
  8996. int
  8997. main ()
  8998. {
  8999. ;
  9000. return 0;
  9001. }
  9002. _ACEOF
  9003. rm -f conftest.$ac_objext
  9004. if { (ac_try="$ac_compile"
  9005. case "(($ac_try" in
  9006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9007. *) ac_try_echo=$ac_try;;
  9008. esac
  9009. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9010. (eval "$ac_compile") 2>conftest.er1
  9011. ac_status=$?
  9012. grep -v '^ *+' conftest.er1 >conftest.err
  9013. rm -f conftest.er1
  9014. cat conftest.err >&5
  9015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9016. (exit $ac_status); } && {
  9017. test -z "$ac_cxx_werror_flag" ||
  9018. test ! -s conftest.err
  9019. } && test -s conftest.$ac_objext; then
  9020. ac_cv_sys_file_offset_bits=64; break
  9021. else
  9022. echo "$as_me: failed program was:" >&5
  9023. sed 's/^/| /' conftest.$ac_ext >&5
  9024. fi
  9025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9026. ac_cv_sys_file_offset_bits=unknown
  9027. break
  9028. done
  9029. fi
  9030. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9031. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9032. case $ac_cv_sys_file_offset_bits in #(
  9033. no | unknown) ;;
  9034. *)
  9035. cat >>confdefs.h <<_ACEOF
  9036. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9037. _ACEOF
  9038. ;;
  9039. esac
  9040. rm -f conftest*
  9041. if test $ac_cv_sys_file_offset_bits = unknown; then
  9042. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9043. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9044. if test "${ac_cv_sys_large_files+set}" = set; then
  9045. echo $ECHO_N "(cached) $ECHO_C" >&6
  9046. else
  9047. while :; do
  9048. cat >conftest.$ac_ext <<_ACEOF
  9049. /* confdefs.h. */
  9050. _ACEOF
  9051. cat confdefs.h >>conftest.$ac_ext
  9052. cat >>conftest.$ac_ext <<_ACEOF
  9053. /* end confdefs.h. */
  9054. #include <sys/types.h>
  9055. /* Check that off_t can represent 2**63 - 1 correctly.
  9056. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9057. since some C++ compilers masquerading as C compilers
  9058. incorrectly reject 9223372036854775807. */
  9059. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9060. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9061. && LARGE_OFF_T % 2147483647 == 1)
  9062. ? 1 : -1];
  9063. int
  9064. main ()
  9065. {
  9066. ;
  9067. return 0;
  9068. }
  9069. _ACEOF
  9070. rm -f conftest.$ac_objext
  9071. if { (ac_try="$ac_compile"
  9072. case "(($ac_try" in
  9073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9074. *) ac_try_echo=$ac_try;;
  9075. esac
  9076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9077. (eval "$ac_compile") 2>conftest.er1
  9078. ac_status=$?
  9079. grep -v '^ *+' conftest.er1 >conftest.err
  9080. rm -f conftest.er1
  9081. cat conftest.err >&5
  9082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9083. (exit $ac_status); } && {
  9084. test -z "$ac_cxx_werror_flag" ||
  9085. test ! -s conftest.err
  9086. } && test -s conftest.$ac_objext; then
  9087. ac_cv_sys_large_files=no; break
  9088. else
  9089. echo "$as_me: failed program was:" >&5
  9090. sed 's/^/| /' conftest.$ac_ext >&5
  9091. fi
  9092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9093. cat >conftest.$ac_ext <<_ACEOF
  9094. /* confdefs.h. */
  9095. _ACEOF
  9096. cat confdefs.h >>conftest.$ac_ext
  9097. cat >>conftest.$ac_ext <<_ACEOF
  9098. /* end confdefs.h. */
  9099. #define _LARGE_FILES 1
  9100. #include <sys/types.h>
  9101. /* Check that off_t can represent 2**63 - 1 correctly.
  9102. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9103. since some C++ compilers masquerading as C compilers
  9104. incorrectly reject 9223372036854775807. */
  9105. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9106. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9107. && LARGE_OFF_T % 2147483647 == 1)
  9108. ? 1 : -1];
  9109. int
  9110. main ()
  9111. {
  9112. ;
  9113. return 0;
  9114. }
  9115. _ACEOF
  9116. rm -f conftest.$ac_objext
  9117. if { (ac_try="$ac_compile"
  9118. case "(($ac_try" in
  9119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9120. *) ac_try_echo=$ac_try;;
  9121. esac
  9122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9123. (eval "$ac_compile") 2>conftest.er1
  9124. ac_status=$?
  9125. grep -v '^ *+' conftest.er1 >conftest.err
  9126. rm -f conftest.er1
  9127. cat conftest.err >&5
  9128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9129. (exit $ac_status); } && {
  9130. test -z "$ac_cxx_werror_flag" ||
  9131. test ! -s conftest.err
  9132. } && test -s conftest.$ac_objext; then
  9133. ac_cv_sys_large_files=1; break
  9134. else
  9135. echo "$as_me: failed program was:" >&5
  9136. sed 's/^/| /' conftest.$ac_ext >&5
  9137. fi
  9138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9139. ac_cv_sys_large_files=unknown
  9140. break
  9141. done
  9142. fi
  9143. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9144. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9145. case $ac_cv_sys_large_files in #(
  9146. no | unknown) ;;
  9147. *)
  9148. cat >>confdefs.h <<_ACEOF
  9149. #define _LARGE_FILES $ac_cv_sys_large_files
  9150. _ACEOF
  9151. ;;
  9152. esac
  9153. rm -f conftest*
  9154. fi
  9155. fi
  9156. # Checks for library functions.
  9157. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9158. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9159. # Check whether --enable-nls was given.
  9160. if test "${enable_nls+set}" = set; then
  9161. enableval=$enable_nls; USE_NLS=$enableval
  9162. else
  9163. USE_NLS=yes
  9164. fi
  9165. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9166. echo "${ECHO_T}$USE_NLS" >&6; }
  9167. GETTEXT_MACRO_VERSION=0.17
  9168. # Prepare PATH_SEPARATOR.
  9169. # The user is always right.
  9170. if test "${PATH_SEPARATOR+set}" != set; then
  9171. echo "#! /bin/sh" >conf$$.sh
  9172. echo "exit 0" >>conf$$.sh
  9173. chmod +x conf$$.sh
  9174. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9175. PATH_SEPARATOR=';'
  9176. else
  9177. PATH_SEPARATOR=:
  9178. fi
  9179. rm -f conf$$.sh
  9180. fi
  9181. # Find out how to test for executable files. Don't use a zero-byte file,
  9182. # as systems may use methods other than mode bits to determine executability.
  9183. cat >conf$$.file <<_ASEOF
  9184. #! /bin/sh
  9185. exit 0
  9186. _ASEOF
  9187. chmod +x conf$$.file
  9188. if test -x conf$$.file >/dev/null 2>&1; then
  9189. ac_executable_p="test -x"
  9190. else
  9191. ac_executable_p="test -f"
  9192. fi
  9193. rm -f conf$$.file
  9194. # Extract the first word of "msgfmt", so it can be a program name with args.
  9195. set dummy msgfmt; ac_word=$2
  9196. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9197. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9198. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9199. echo $ECHO_N "(cached) $ECHO_C" >&6
  9200. else
  9201. case "$MSGFMT" in
  9202. [\\/]* | ?:[\\/]*)
  9203. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9204. ;;
  9205. *)
  9206. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9207. for ac_dir in $PATH; do
  9208. IFS="$ac_save_IFS"
  9209. test -z "$ac_dir" && ac_dir=.
  9210. for ac_exec_ext in '' $ac_executable_extensions; do
  9211. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9212. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9213. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9214. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9215. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9216. break 2
  9217. fi
  9218. fi
  9219. done
  9220. done
  9221. IFS="$ac_save_IFS"
  9222. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9223. ;;
  9224. esac
  9225. fi
  9226. MSGFMT="$ac_cv_path_MSGFMT"
  9227. if test "$MSGFMT" != ":"; then
  9228. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9229. echo "${ECHO_T}$MSGFMT" >&6; }
  9230. else
  9231. { echo "$as_me:$LINENO: result: no" >&5
  9232. echo "${ECHO_T}no" >&6; }
  9233. fi
  9234. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9235. set dummy gmsgfmt; ac_word=$2
  9236. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9237. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9238. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9239. echo $ECHO_N "(cached) $ECHO_C" >&6
  9240. else
  9241. case $GMSGFMT in
  9242. [\\/]* | ?:[\\/]*)
  9243. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9244. ;;
  9245. *)
  9246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9247. for as_dir in $PATH
  9248. do
  9249. IFS=$as_save_IFS
  9250. test -z "$as_dir" && as_dir=.
  9251. for ac_exec_ext in '' $ac_executable_extensions; do
  9252. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9253. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9254. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9255. break 2
  9256. fi
  9257. done
  9258. done
  9259. IFS=$as_save_IFS
  9260. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9261. ;;
  9262. esac
  9263. fi
  9264. GMSGFMT=$ac_cv_path_GMSGFMT
  9265. if test -n "$GMSGFMT"; then
  9266. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9267. echo "${ECHO_T}$GMSGFMT" >&6; }
  9268. else
  9269. { echo "$as_me:$LINENO: result: no" >&5
  9270. echo "${ECHO_T}no" >&6; }
  9271. fi
  9272. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9273. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9274. *) MSGFMT_015=$MSGFMT ;;
  9275. esac
  9276. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9277. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9278. *) GMSGFMT_015=$GMSGFMT ;;
  9279. esac
  9280. # Prepare PATH_SEPARATOR.
  9281. # The user is always right.
  9282. if test "${PATH_SEPARATOR+set}" != set; then
  9283. echo "#! /bin/sh" >conf$$.sh
  9284. echo "exit 0" >>conf$$.sh
  9285. chmod +x conf$$.sh
  9286. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9287. PATH_SEPARATOR=';'
  9288. else
  9289. PATH_SEPARATOR=:
  9290. fi
  9291. rm -f conf$$.sh
  9292. fi
  9293. # Find out how to test for executable files. Don't use a zero-byte file,
  9294. # as systems may use methods other than mode bits to determine executability.
  9295. cat >conf$$.file <<_ASEOF
  9296. #! /bin/sh
  9297. exit 0
  9298. _ASEOF
  9299. chmod +x conf$$.file
  9300. if test -x conf$$.file >/dev/null 2>&1; then
  9301. ac_executable_p="test -x"
  9302. else
  9303. ac_executable_p="test -f"
  9304. fi
  9305. rm -f conf$$.file
  9306. # Extract the first word of "xgettext", so it can be a program name with args.
  9307. set dummy xgettext; ac_word=$2
  9308. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9309. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9310. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9311. echo $ECHO_N "(cached) $ECHO_C" >&6
  9312. else
  9313. case "$XGETTEXT" in
  9314. [\\/]* | ?:[\\/]*)
  9315. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9316. ;;
  9317. *)
  9318. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9319. for ac_dir in $PATH; do
  9320. IFS="$ac_save_IFS"
  9321. test -z "$ac_dir" && ac_dir=.
  9322. for ac_exec_ext in '' $ac_executable_extensions; do
  9323. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9324. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9325. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9326. (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
  9327. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9328. break 2
  9329. fi
  9330. fi
  9331. done
  9332. done
  9333. IFS="$ac_save_IFS"
  9334. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9335. ;;
  9336. esac
  9337. fi
  9338. XGETTEXT="$ac_cv_path_XGETTEXT"
  9339. if test "$XGETTEXT" != ":"; then
  9340. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9341. echo "${ECHO_T}$XGETTEXT" >&6; }
  9342. else
  9343. { echo "$as_me:$LINENO: result: no" >&5
  9344. echo "${ECHO_T}no" >&6; }
  9345. fi
  9346. rm -f messages.po
  9347. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9348. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9349. *) XGETTEXT_015=$XGETTEXT ;;
  9350. esac
  9351. # Prepare PATH_SEPARATOR.
  9352. # The user is always right.
  9353. if test "${PATH_SEPARATOR+set}" != set; then
  9354. echo "#! /bin/sh" >conf$$.sh
  9355. echo "exit 0" >>conf$$.sh
  9356. chmod +x conf$$.sh
  9357. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9358. PATH_SEPARATOR=';'
  9359. else
  9360. PATH_SEPARATOR=:
  9361. fi
  9362. rm -f conf$$.sh
  9363. fi
  9364. # Find out how to test for executable files. Don't use a zero-byte file,
  9365. # as systems may use methods other than mode bits to determine executability.
  9366. cat >conf$$.file <<_ASEOF
  9367. #! /bin/sh
  9368. exit 0
  9369. _ASEOF
  9370. chmod +x conf$$.file
  9371. if test -x conf$$.file >/dev/null 2>&1; then
  9372. ac_executable_p="test -x"
  9373. else
  9374. ac_executable_p="test -f"
  9375. fi
  9376. rm -f conf$$.file
  9377. # Extract the first word of "msgmerge", so it can be a program name with args.
  9378. set dummy msgmerge; ac_word=$2
  9379. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9380. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9381. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9382. echo $ECHO_N "(cached) $ECHO_C" >&6
  9383. else
  9384. case "$MSGMERGE" in
  9385. [\\/]* | ?:[\\/]*)
  9386. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9387. ;;
  9388. *)
  9389. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9390. for ac_dir in $PATH; do
  9391. IFS="$ac_save_IFS"
  9392. test -z "$ac_dir" && ac_dir=.
  9393. for ac_exec_ext in '' $ac_executable_extensions; do
  9394. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9395. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9396. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9397. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9398. break 2
  9399. fi
  9400. fi
  9401. done
  9402. done
  9403. IFS="$ac_save_IFS"
  9404. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9405. ;;
  9406. esac
  9407. fi
  9408. MSGMERGE="$ac_cv_path_MSGMERGE"
  9409. if test "$MSGMERGE" != ":"; then
  9410. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9411. echo "${ECHO_T}$MSGMERGE" >&6; }
  9412. else
  9413. { echo "$as_me:$LINENO: result: no" >&5
  9414. echo "${ECHO_T}no" >&6; }
  9415. fi
  9416. test -n "$localedir" || localedir='${datadir}/locale'
  9417. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9418. ac_config_commands="$ac_config_commands po-directories"
  9419. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9420. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9421. if test "${ac_cv_gnu_library_2+set}" = set; then
  9422. echo $ECHO_N "(cached) $ECHO_C" >&6
  9423. else
  9424. cat >conftest.$ac_ext <<_ACEOF
  9425. /* confdefs.h. */
  9426. _ACEOF
  9427. cat confdefs.h >>conftest.$ac_ext
  9428. cat >>conftest.$ac_ext <<_ACEOF
  9429. /* end confdefs.h. */
  9430. #include <features.h>
  9431. #ifdef __GNU_LIBRARY__
  9432. #if (__GLIBC__ >= 2)
  9433. Lucky GNU user
  9434. #endif
  9435. #endif
  9436. _ACEOF
  9437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9438. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9439. ac_cv_gnu_library_2=yes
  9440. else
  9441. ac_cv_gnu_library_2=no
  9442. fi
  9443. rm -f conftest*
  9444. fi
  9445. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9446. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9447. GLIBC2="$ac_cv_gnu_library_2"
  9448. CFLAG_VISIBILITY=
  9449. HAVE_VISIBILITY=0
  9450. if test -n "$GCC"; then
  9451. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9452. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9453. if test "${gl_cv_cc_visibility+set}" = set; then
  9454. echo $ECHO_N "(cached) $ECHO_C" >&6
  9455. else
  9456. gl_save_CFLAGS="$CFLAGS"
  9457. CFLAGS="$CFLAGS -fvisibility=hidden"
  9458. cat >conftest.$ac_ext <<_ACEOF
  9459. /* confdefs.h. */
  9460. _ACEOF
  9461. cat confdefs.h >>conftest.$ac_ext
  9462. cat >>conftest.$ac_ext <<_ACEOF
  9463. /* end confdefs.h. */
  9464. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9465. extern __attribute__((__visibility__("default"))) int exportedvar;
  9466. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9467. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9468. int
  9469. main ()
  9470. {
  9471. ;
  9472. return 0;
  9473. }
  9474. _ACEOF
  9475. rm -f conftest.$ac_objext
  9476. if { (ac_try="$ac_compile"
  9477. case "(($ac_try" in
  9478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9479. *) ac_try_echo=$ac_try;;
  9480. esac
  9481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9482. (eval "$ac_compile") 2>conftest.er1
  9483. ac_status=$?
  9484. grep -v '^ *+' conftest.er1 >conftest.err
  9485. rm -f conftest.er1
  9486. cat conftest.err >&5
  9487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9488. (exit $ac_status); } && {
  9489. test -z "$ac_cxx_werror_flag" ||
  9490. test ! -s conftest.err
  9491. } && test -s conftest.$ac_objext; then
  9492. gl_cv_cc_visibility=yes
  9493. else
  9494. echo "$as_me: failed program was:" >&5
  9495. sed 's/^/| /' conftest.$ac_ext >&5
  9496. gl_cv_cc_visibility=no
  9497. fi
  9498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9499. CFLAGS="$gl_save_CFLAGS"
  9500. fi
  9501. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9502. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9503. if test $gl_cv_cc_visibility = yes; then
  9504. CFLAG_VISIBILITY="-fvisibility=hidden"
  9505. HAVE_VISIBILITY=1
  9506. fi
  9507. fi
  9508. cat >>confdefs.h <<_ACEOF
  9509. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9510. _ACEOF
  9511. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9512. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9513. if test "${gl_cv_header_stdint_h+set}" = set; then
  9514. echo $ECHO_N "(cached) $ECHO_C" >&6
  9515. else
  9516. cat >conftest.$ac_ext <<_ACEOF
  9517. /* confdefs.h. */
  9518. _ACEOF
  9519. cat confdefs.h >>conftest.$ac_ext
  9520. cat >>conftest.$ac_ext <<_ACEOF
  9521. /* end confdefs.h. */
  9522. #include <sys/types.h>
  9523. #include <stdint.h>
  9524. int
  9525. main ()
  9526. {
  9527. uintmax_t i = (uintmax_t) -1; return !i;
  9528. ;
  9529. return 0;
  9530. }
  9531. _ACEOF
  9532. rm -f conftest.$ac_objext
  9533. if { (ac_try="$ac_compile"
  9534. case "(($ac_try" in
  9535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9536. *) ac_try_echo=$ac_try;;
  9537. esac
  9538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9539. (eval "$ac_compile") 2>conftest.er1
  9540. ac_status=$?
  9541. grep -v '^ *+' conftest.er1 >conftest.err
  9542. rm -f conftest.er1
  9543. cat conftest.err >&5
  9544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9545. (exit $ac_status); } && {
  9546. test -z "$ac_cxx_werror_flag" ||
  9547. test ! -s conftest.err
  9548. } && test -s conftest.$ac_objext; then
  9549. gl_cv_header_stdint_h=yes
  9550. else
  9551. echo "$as_me: failed program was:" >&5
  9552. sed 's/^/| /' conftest.$ac_ext >&5
  9553. gl_cv_header_stdint_h=no
  9554. fi
  9555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9556. fi
  9557. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9558. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9559. if test $gl_cv_header_stdint_h = yes; then
  9560. cat >>confdefs.h <<_ACEOF
  9561. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9562. _ACEOF
  9563. fi
  9564. for ac_header in stdlib.h unistd.h
  9565. do
  9566. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9567. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9568. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9569. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9570. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9571. echo $ECHO_N "(cached) $ECHO_C" >&6
  9572. fi
  9573. ac_res=`eval echo '${'$as_ac_Header'}'`
  9574. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9575. echo "${ECHO_T}$ac_res" >&6; }
  9576. else
  9577. # Is the header compilable?
  9578. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9579. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9580. cat >conftest.$ac_ext <<_ACEOF
  9581. /* confdefs.h. */
  9582. _ACEOF
  9583. cat confdefs.h >>conftest.$ac_ext
  9584. cat >>conftest.$ac_ext <<_ACEOF
  9585. /* end confdefs.h. */
  9586. $ac_includes_default
  9587. #include <$ac_header>
  9588. _ACEOF
  9589. rm -f conftest.$ac_objext
  9590. if { (ac_try="$ac_compile"
  9591. case "(($ac_try" in
  9592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9593. *) ac_try_echo=$ac_try;;
  9594. esac
  9595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9596. (eval "$ac_compile") 2>conftest.er1
  9597. ac_status=$?
  9598. grep -v '^ *+' conftest.er1 >conftest.err
  9599. rm -f conftest.er1
  9600. cat conftest.err >&5
  9601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9602. (exit $ac_status); } && {
  9603. test -z "$ac_cxx_werror_flag" ||
  9604. test ! -s conftest.err
  9605. } && test -s conftest.$ac_objext; then
  9606. ac_header_compiler=yes
  9607. else
  9608. echo "$as_me: failed program was:" >&5
  9609. sed 's/^/| /' conftest.$ac_ext >&5
  9610. ac_header_compiler=no
  9611. fi
  9612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9613. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9614. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9615. # Is the header present?
  9616. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9617. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9618. cat >conftest.$ac_ext <<_ACEOF
  9619. /* confdefs.h. */
  9620. _ACEOF
  9621. cat confdefs.h >>conftest.$ac_ext
  9622. cat >>conftest.$ac_ext <<_ACEOF
  9623. /* end confdefs.h. */
  9624. #include <$ac_header>
  9625. _ACEOF
  9626. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9627. case "(($ac_try" in
  9628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9629. *) ac_try_echo=$ac_try;;
  9630. esac
  9631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9632. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9633. ac_status=$?
  9634. grep -v '^ *+' conftest.er1 >conftest.err
  9635. rm -f conftest.er1
  9636. cat conftest.err >&5
  9637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9638. (exit $ac_status); } >/dev/null && {
  9639. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9640. test ! -s conftest.err
  9641. }; then
  9642. ac_header_preproc=yes
  9643. else
  9644. echo "$as_me: failed program was:" >&5
  9645. sed 's/^/| /' conftest.$ac_ext >&5
  9646. ac_header_preproc=no
  9647. fi
  9648. rm -f conftest.err conftest.$ac_ext
  9649. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9650. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9651. # So? What about this header?
  9652. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9653. yes:no: )
  9654. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9655. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9656. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9657. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9658. ac_header_preproc=yes
  9659. ;;
  9660. no:yes:* )
  9661. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9662. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9663. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9664. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9665. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9666. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9667. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9668. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9669. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9670. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9671. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9672. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9673. ( cat <<\_ASBOX
  9674. ## ----------------------------------------------- ##
  9675. ## Report this to t-tujikawa@users.sourceforge.net ##
  9676. ## ----------------------------------------------- ##
  9677. _ASBOX
  9678. ) | sed "s/^/$as_me: WARNING: /" >&2
  9679. ;;
  9680. esac
  9681. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9682. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9683. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9684. echo $ECHO_N "(cached) $ECHO_C" >&6
  9685. else
  9686. eval "$as_ac_Header=\$ac_header_preproc"
  9687. fi
  9688. ac_res=`eval echo '${'$as_ac_Header'}'`
  9689. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9690. echo "${ECHO_T}$ac_res" >&6; }
  9691. fi
  9692. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9693. cat >>confdefs.h <<_ACEOF
  9694. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9695. _ACEOF
  9696. fi
  9697. done
  9698. for ac_func in getpagesize
  9699. do
  9700. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9701. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9702. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9703. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9704. echo $ECHO_N "(cached) $ECHO_C" >&6
  9705. else
  9706. cat >conftest.$ac_ext <<_ACEOF
  9707. /* confdefs.h. */
  9708. _ACEOF
  9709. cat confdefs.h >>conftest.$ac_ext
  9710. cat >>conftest.$ac_ext <<_ACEOF
  9711. /* end confdefs.h. */
  9712. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9713. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9714. #define $ac_func innocuous_$ac_func
  9715. /* System header to define __stub macros and hopefully few prototypes,
  9716. which can conflict with char $ac_func (); below.
  9717. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9718. <limits.h> exists even on freestanding compilers. */
  9719. #ifdef __STDC__
  9720. # include <limits.h>
  9721. #else
  9722. # include <assert.h>
  9723. #endif
  9724. #undef $ac_func
  9725. /* Override any GCC internal prototype to avoid an error.
  9726. Use char because int might match the return type of a GCC
  9727. builtin and then its argument prototype would still apply. */
  9728. #ifdef __cplusplus
  9729. extern "C"
  9730. #endif
  9731. char $ac_func ();
  9732. /* The GNU C library defines this for functions which it implements
  9733. to always fail with ENOSYS. Some functions are actually named
  9734. something starting with __ and the normal name is an alias. */
  9735. #if defined __stub_$ac_func || defined __stub___$ac_func
  9736. choke me
  9737. #endif
  9738. int
  9739. main ()
  9740. {
  9741. return $ac_func ();
  9742. ;
  9743. return 0;
  9744. }
  9745. _ACEOF
  9746. rm -f conftest.$ac_objext conftest$ac_exeext
  9747. if { (ac_try="$ac_link"
  9748. case "(($ac_try" in
  9749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9750. *) ac_try_echo=$ac_try;;
  9751. esac
  9752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9753. (eval "$ac_link") 2>conftest.er1
  9754. ac_status=$?
  9755. grep -v '^ *+' conftest.er1 >conftest.err
  9756. rm -f conftest.er1
  9757. cat conftest.err >&5
  9758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9759. (exit $ac_status); } && {
  9760. test -z "$ac_cxx_werror_flag" ||
  9761. test ! -s conftest.err
  9762. } && test -s conftest$ac_exeext &&
  9763. $as_test_x conftest$ac_exeext; then
  9764. eval "$as_ac_var=yes"
  9765. else
  9766. echo "$as_me: failed program was:" >&5
  9767. sed 's/^/| /' conftest.$ac_ext >&5
  9768. eval "$as_ac_var=no"
  9769. fi
  9770. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9771. conftest$ac_exeext conftest.$ac_ext
  9772. fi
  9773. ac_res=`eval echo '${'$as_ac_var'}'`
  9774. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9775. echo "${ECHO_T}$ac_res" >&6; }
  9776. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9777. cat >>confdefs.h <<_ACEOF
  9778. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9779. _ACEOF
  9780. fi
  9781. done
  9782. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9783. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9784. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9785. echo $ECHO_N "(cached) $ECHO_C" >&6
  9786. else
  9787. if test "$cross_compiling" = yes; then
  9788. ac_cv_func_mmap_fixed_mapped=no
  9789. else
  9790. cat >conftest.$ac_ext <<_ACEOF
  9791. /* confdefs.h. */
  9792. _ACEOF
  9793. cat confdefs.h >>conftest.$ac_ext
  9794. cat >>conftest.$ac_ext <<_ACEOF
  9795. /* end confdefs.h. */
  9796. $ac_includes_default
  9797. /* malloc might have been renamed as rpl_malloc. */
  9798. #undef malloc
  9799. /* Thanks to Mike Haertel and Jim Avera for this test.
  9800. Here is a matrix of mmap possibilities:
  9801. mmap private not fixed
  9802. mmap private fixed at somewhere currently unmapped
  9803. mmap private fixed at somewhere already mapped
  9804. mmap shared not fixed
  9805. mmap shared fixed at somewhere currently unmapped
  9806. mmap shared fixed at somewhere already mapped
  9807. For private mappings, we should verify that changes cannot be read()
  9808. back from the file, nor mmap's back from the file at a different
  9809. address. (There have been systems where private was not correctly
  9810. implemented like the infamous i386 svr4.0, and systems where the
  9811. VM page cache was not coherent with the file system buffer cache
  9812. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9813. For shared mappings, we should conversely verify that changes get
  9814. propagated back to all the places they're supposed to be.
  9815. Grep wants private fixed already mapped.
  9816. The main things grep needs to know about mmap are:
  9817. * does it exist and is it safe to write into the mmap'd area
  9818. * how to use it (BSD variants) */
  9819. #include <fcntl.h>
  9820. #include <sys/mman.h>
  9821. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9822. char *malloc ();
  9823. #endif
  9824. /* This mess was copied from the GNU getpagesize.h. */
  9825. #ifndef HAVE_GETPAGESIZE
  9826. /* Assume that all systems that can run configure have sys/param.h. */
  9827. # ifndef HAVE_SYS_PARAM_H
  9828. # define HAVE_SYS_PARAM_H 1
  9829. # endif
  9830. # ifdef _SC_PAGESIZE
  9831. # define getpagesize() sysconf(_SC_PAGESIZE)
  9832. # else /* no _SC_PAGESIZE */
  9833. # ifdef HAVE_SYS_PARAM_H
  9834. # include <sys/param.h>
  9835. # ifdef EXEC_PAGESIZE
  9836. # define getpagesize() EXEC_PAGESIZE
  9837. # else /* no EXEC_PAGESIZE */
  9838. # ifdef NBPG
  9839. # define getpagesize() NBPG * CLSIZE
  9840. # ifndef CLSIZE
  9841. # define CLSIZE 1
  9842. # endif /* no CLSIZE */
  9843. # else /* no NBPG */
  9844. # ifdef NBPC
  9845. # define getpagesize() NBPC
  9846. # else /* no NBPC */
  9847. # ifdef PAGESIZE
  9848. # define getpagesize() PAGESIZE
  9849. # endif /* PAGESIZE */
  9850. # endif /* no NBPC */
  9851. # endif /* no NBPG */
  9852. # endif /* no EXEC_PAGESIZE */
  9853. # else /* no HAVE_SYS_PARAM_H */
  9854. # define getpagesize() 8192 /* punt totally */
  9855. # endif /* no HAVE_SYS_PARAM_H */
  9856. # endif /* no _SC_PAGESIZE */
  9857. #endif /* no HAVE_GETPAGESIZE */
  9858. int
  9859. main ()
  9860. {
  9861. char *data, *data2, *data3;
  9862. int i, pagesize;
  9863. int fd;
  9864. pagesize = getpagesize ();
  9865. /* First, make a file with some known garbage in it. */
  9866. data = (char *) malloc (pagesize);
  9867. if (!data)
  9868. return 1;
  9869. for (i = 0; i < pagesize; ++i)
  9870. *(data + i) = rand ();
  9871. umask (0);
  9872. fd = creat ("conftest.mmap", 0600);
  9873. if (fd < 0)
  9874. return 1;
  9875. if (write (fd, data, pagesize) != pagesize)
  9876. return 1;
  9877. close (fd);
  9878. /* Next, try to mmap the file at a fixed address which already has
  9879. something else allocated at it. If we can, also make sure that
  9880. we see the same garbage. */
  9881. fd = open ("conftest.mmap", O_RDWR);
  9882. if (fd < 0)
  9883. return 1;
  9884. data2 = (char *) malloc (2 * pagesize);
  9885. if (!data2)
  9886. return 1;
  9887. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9888. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9889. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9890. return 1;
  9891. for (i = 0; i < pagesize; ++i)
  9892. if (*(data + i) != *(data2 + i))
  9893. return 1;
  9894. /* Finally, make sure that changes to the mapped area do not
  9895. percolate back to the file as seen by read(). (This is a bug on
  9896. some variants of i386 svr4.0.) */
  9897. for (i = 0; i < pagesize; ++i)
  9898. *(data2 + i) = *(data2 + i) + 1;
  9899. data3 = (char *) malloc (pagesize);
  9900. if (!data3)
  9901. return 1;
  9902. if (read (fd, data3, pagesize) != pagesize)
  9903. return 1;
  9904. for (i = 0; i < pagesize; ++i)
  9905. if (*(data + i) != *(data3 + i))
  9906. return 1;
  9907. close (fd);
  9908. return 0;
  9909. }
  9910. _ACEOF
  9911. rm -f conftest$ac_exeext
  9912. if { (ac_try="$ac_link"
  9913. case "(($ac_try" in
  9914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9915. *) ac_try_echo=$ac_try;;
  9916. esac
  9917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9918. (eval "$ac_link") 2>&5
  9919. ac_status=$?
  9920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9921. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9922. { (case "(($ac_try" in
  9923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9924. *) ac_try_echo=$ac_try;;
  9925. esac
  9926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9927. (eval "$ac_try") 2>&5
  9928. ac_status=$?
  9929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9930. (exit $ac_status); }; }; then
  9931. ac_cv_func_mmap_fixed_mapped=yes
  9932. else
  9933. echo "$as_me: program exited with status $ac_status" >&5
  9934. echo "$as_me: failed program was:" >&5
  9935. sed 's/^/| /' conftest.$ac_ext >&5
  9936. ( exit $ac_status )
  9937. ac_cv_func_mmap_fixed_mapped=no
  9938. fi
  9939. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9940. fi
  9941. fi
  9942. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9943. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9944. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9945. cat >>confdefs.h <<\_ACEOF
  9946. #define HAVE_MMAP 1
  9947. _ACEOF
  9948. fi
  9949. rm -f conftest.mmap
  9950. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9951. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9952. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9953. echo $ECHO_N "(cached) $ECHO_C" >&6
  9954. else
  9955. gt_cv_int_divbyzero_sigfpe=
  9956. case "$host_os" in
  9957. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9958. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9959. # compiling. If we were to perform the real test, 1 Crash Report
  9960. # dialog window would pop up.
  9961. case "$host_cpu" in
  9962. i[34567]86 | x86_64)
  9963. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9964. esac
  9965. ;;
  9966. esac
  9967. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9968. if test "$cross_compiling" = yes; then
  9969. # Guess based on the CPU.
  9970. case "$host_cpu" in
  9971. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9972. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9973. *)
  9974. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9975. esac
  9976. else
  9977. cat >conftest.$ac_ext <<_ACEOF
  9978. /* confdefs.h. */
  9979. _ACEOF
  9980. cat confdefs.h >>conftest.$ac_ext
  9981. cat >>conftest.$ac_ext <<_ACEOF
  9982. /* end confdefs.h. */
  9983. #include <stdlib.h>
  9984. #include <signal.h>
  9985. static void
  9986. sigfpe_handler (int sig)
  9987. {
  9988. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9989. exit (sig != SIGFPE);
  9990. }
  9991. int x = 1;
  9992. int y = 0;
  9993. int z;
  9994. int nan;
  9995. int main ()
  9996. {
  9997. signal (SIGFPE, sigfpe_handler);
  9998. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9999. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10000. signal (SIGTRAP, sigfpe_handler);
  10001. #endif
  10002. /* Linux/SPARC yields signal SIGILL. */
  10003. #if defined (__sparc__) && defined (__linux__)
  10004. signal (SIGILL, sigfpe_handler);
  10005. #endif
  10006. z = x / y;
  10007. nan = y / y;
  10008. exit (1);
  10009. }
  10010. _ACEOF
  10011. rm -f conftest$ac_exeext
  10012. if { (ac_try="$ac_link"
  10013. case "(($ac_try" in
  10014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10015. *) ac_try_echo=$ac_try;;
  10016. esac
  10017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10018. (eval "$ac_link") 2>&5
  10019. ac_status=$?
  10020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10021. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10022. { (case "(($ac_try" in
  10023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10024. *) ac_try_echo=$ac_try;;
  10025. esac
  10026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10027. (eval "$ac_try") 2>&5
  10028. ac_status=$?
  10029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10030. (exit $ac_status); }; }; then
  10031. gt_cv_int_divbyzero_sigfpe=yes
  10032. else
  10033. echo "$as_me: program exited with status $ac_status" >&5
  10034. echo "$as_me: failed program was:" >&5
  10035. sed 's/^/| /' conftest.$ac_ext >&5
  10036. ( exit $ac_status )
  10037. gt_cv_int_divbyzero_sigfpe=no
  10038. fi
  10039. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10040. fi
  10041. fi
  10042. fi
  10043. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10044. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10045. case "$gt_cv_int_divbyzero_sigfpe" in
  10046. *yes) value=1;;
  10047. *) value=0;;
  10048. esac
  10049. cat >>confdefs.h <<_ACEOF
  10050. #define INTDIV0_RAISES_SIGFPE $value
  10051. _ACEOF
  10052. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10053. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10054. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10055. echo $ECHO_N "(cached) $ECHO_C" >&6
  10056. else
  10057. cat >conftest.$ac_ext <<_ACEOF
  10058. /* confdefs.h. */
  10059. _ACEOF
  10060. cat confdefs.h >>conftest.$ac_ext
  10061. cat >>conftest.$ac_ext <<_ACEOF
  10062. /* end confdefs.h. */
  10063. #include <sys/types.h>
  10064. #include <inttypes.h>
  10065. int
  10066. main ()
  10067. {
  10068. uintmax_t i = (uintmax_t) -1; return !i;
  10069. ;
  10070. return 0;
  10071. }
  10072. _ACEOF
  10073. rm -f conftest.$ac_objext
  10074. if { (ac_try="$ac_compile"
  10075. case "(($ac_try" in
  10076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10077. *) ac_try_echo=$ac_try;;
  10078. esac
  10079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10080. (eval "$ac_compile") 2>conftest.er1
  10081. ac_status=$?
  10082. grep -v '^ *+' conftest.er1 >conftest.err
  10083. rm -f conftest.er1
  10084. cat conftest.err >&5
  10085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10086. (exit $ac_status); } && {
  10087. test -z "$ac_cxx_werror_flag" ||
  10088. test ! -s conftest.err
  10089. } && test -s conftest.$ac_objext; then
  10090. gl_cv_header_inttypes_h=yes
  10091. else
  10092. echo "$as_me: failed program was:" >&5
  10093. sed 's/^/| /' conftest.$ac_ext >&5
  10094. gl_cv_header_inttypes_h=no
  10095. fi
  10096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10097. fi
  10098. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10099. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10100. if test $gl_cv_header_inttypes_h = yes; then
  10101. cat >>confdefs.h <<_ACEOF
  10102. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10103. _ACEOF
  10104. fi
  10105. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10106. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10107. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10108. echo $ECHO_N "(cached) $ECHO_C" >&6
  10109. else
  10110. cat >conftest.$ac_ext <<_ACEOF
  10111. /* confdefs.h. */
  10112. _ACEOF
  10113. cat confdefs.h >>conftest.$ac_ext
  10114. cat >>conftest.$ac_ext <<_ACEOF
  10115. /* end confdefs.h. */
  10116. /* Test preprocessor. */
  10117. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10118. error in preprocessor;
  10119. #endif
  10120. #if ! (18446744073709551615ULL <= -1ull)
  10121. error in preprocessor;
  10122. #endif
  10123. /* Test literals. */
  10124. long long int ll = 9223372036854775807ll;
  10125. long long int nll = -9223372036854775807LL;
  10126. unsigned long long int ull = 18446744073709551615ULL;
  10127. /* Test constant expressions. */
  10128. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10129. ? 1 : -1)];
  10130. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10131. ? 1 : -1)];
  10132. int i = 63;
  10133. int
  10134. main ()
  10135. {
  10136. /* Test availability of runtime routines for shift and division. */
  10137. long long int llmax = 9223372036854775807ll;
  10138. unsigned long long int ullmax = 18446744073709551615ull;
  10139. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10140. | (llmax / ll) | (llmax % ll)
  10141. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10142. | (ullmax / ull) | (ullmax % ull));
  10143. ;
  10144. return 0;
  10145. }
  10146. _ACEOF
  10147. rm -f conftest.$ac_objext conftest$ac_exeext
  10148. if { (ac_try="$ac_link"
  10149. case "(($ac_try" in
  10150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10151. *) ac_try_echo=$ac_try;;
  10152. esac
  10153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10154. (eval "$ac_link") 2>conftest.er1
  10155. ac_status=$?
  10156. grep -v '^ *+' conftest.er1 >conftest.err
  10157. rm -f conftest.er1
  10158. cat conftest.err >&5
  10159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10160. (exit $ac_status); } && {
  10161. test -z "$ac_cxx_werror_flag" ||
  10162. test ! -s conftest.err
  10163. } && test -s conftest$ac_exeext &&
  10164. $as_test_x conftest$ac_exeext; then
  10165. ac_cv_type_unsigned_long_long_int=yes
  10166. else
  10167. echo "$as_me: failed program was:" >&5
  10168. sed 's/^/| /' conftest.$ac_ext >&5
  10169. ac_cv_type_unsigned_long_long_int=no
  10170. fi
  10171. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10172. conftest$ac_exeext conftest.$ac_ext
  10173. fi
  10174. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10175. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10176. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10177. cat >>confdefs.h <<\_ACEOF
  10178. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10179. _ACEOF
  10180. fi
  10181. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10182. test $ac_cv_type_unsigned_long_long_int = yes \
  10183. && ac_type='unsigned long long' \
  10184. || ac_type='unsigned long'
  10185. cat >>confdefs.h <<_ACEOF
  10186. #define uintmax_t $ac_type
  10187. _ACEOF
  10188. else
  10189. cat >>confdefs.h <<\_ACEOF
  10190. #define HAVE_UINTMAX_T 1
  10191. _ACEOF
  10192. fi
  10193. for ac_header in inttypes.h
  10194. do
  10195. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10196. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10197. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10198. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10199. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10200. echo $ECHO_N "(cached) $ECHO_C" >&6
  10201. fi
  10202. ac_res=`eval echo '${'$as_ac_Header'}'`
  10203. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10204. echo "${ECHO_T}$ac_res" >&6; }
  10205. else
  10206. # Is the header compilable?
  10207. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10208. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10209. cat >conftest.$ac_ext <<_ACEOF
  10210. /* confdefs.h. */
  10211. _ACEOF
  10212. cat confdefs.h >>conftest.$ac_ext
  10213. cat >>conftest.$ac_ext <<_ACEOF
  10214. /* end confdefs.h. */
  10215. $ac_includes_default
  10216. #include <$ac_header>
  10217. _ACEOF
  10218. rm -f conftest.$ac_objext
  10219. if { (ac_try="$ac_compile"
  10220. case "(($ac_try" in
  10221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10222. *) ac_try_echo=$ac_try;;
  10223. esac
  10224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10225. (eval "$ac_compile") 2>conftest.er1
  10226. ac_status=$?
  10227. grep -v '^ *+' conftest.er1 >conftest.err
  10228. rm -f conftest.er1
  10229. cat conftest.err >&5
  10230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10231. (exit $ac_status); } && {
  10232. test -z "$ac_cxx_werror_flag" ||
  10233. test ! -s conftest.err
  10234. } && test -s conftest.$ac_objext; then
  10235. ac_header_compiler=yes
  10236. else
  10237. echo "$as_me: failed program was:" >&5
  10238. sed 's/^/| /' conftest.$ac_ext >&5
  10239. ac_header_compiler=no
  10240. fi
  10241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10242. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10243. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10244. # Is the header present?
  10245. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10246. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10247. cat >conftest.$ac_ext <<_ACEOF
  10248. /* confdefs.h. */
  10249. _ACEOF
  10250. cat confdefs.h >>conftest.$ac_ext
  10251. cat >>conftest.$ac_ext <<_ACEOF
  10252. /* end confdefs.h. */
  10253. #include <$ac_header>
  10254. _ACEOF
  10255. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10256. case "(($ac_try" in
  10257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10258. *) ac_try_echo=$ac_try;;
  10259. esac
  10260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10261. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10262. ac_status=$?
  10263. grep -v '^ *+' conftest.er1 >conftest.err
  10264. rm -f conftest.er1
  10265. cat conftest.err >&5
  10266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10267. (exit $ac_status); } >/dev/null && {
  10268. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10269. test ! -s conftest.err
  10270. }; then
  10271. ac_header_preproc=yes
  10272. else
  10273. echo "$as_me: failed program was:" >&5
  10274. sed 's/^/| /' conftest.$ac_ext >&5
  10275. ac_header_preproc=no
  10276. fi
  10277. rm -f conftest.err conftest.$ac_ext
  10278. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10279. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10280. # So? What about this header?
  10281. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10282. yes:no: )
  10283. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10284. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10285. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10286. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10287. ac_header_preproc=yes
  10288. ;;
  10289. no:yes:* )
  10290. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10291. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10292. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10293. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10294. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10295. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10296. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10297. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10298. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10299. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10300. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10301. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10302. ( cat <<\_ASBOX
  10303. ## ----------------------------------------------- ##
  10304. ## Report this to t-tujikawa@users.sourceforge.net ##
  10305. ## ----------------------------------------------- ##
  10306. _ASBOX
  10307. ) | sed "s/^/$as_me: WARNING: /" >&2
  10308. ;;
  10309. esac
  10310. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10311. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10312. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10313. echo $ECHO_N "(cached) $ECHO_C" >&6
  10314. else
  10315. eval "$as_ac_Header=\$ac_header_preproc"
  10316. fi
  10317. ac_res=`eval echo '${'$as_ac_Header'}'`
  10318. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10319. echo "${ECHO_T}$ac_res" >&6; }
  10320. fi
  10321. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10322. cat >>confdefs.h <<_ACEOF
  10323. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10324. _ACEOF
  10325. fi
  10326. done
  10327. if test $ac_cv_header_inttypes_h = yes; then
  10328. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10329. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10330. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10331. echo $ECHO_N "(cached) $ECHO_C" >&6
  10332. else
  10333. cat >conftest.$ac_ext <<_ACEOF
  10334. /* confdefs.h. */
  10335. _ACEOF
  10336. cat confdefs.h >>conftest.$ac_ext
  10337. cat >>conftest.$ac_ext <<_ACEOF
  10338. /* end confdefs.h. */
  10339. #include <inttypes.h>
  10340. #ifdef PRId32
  10341. char *p = PRId32;
  10342. #endif
  10343. int
  10344. main ()
  10345. {
  10346. ;
  10347. return 0;
  10348. }
  10349. _ACEOF
  10350. rm -f conftest.$ac_objext
  10351. if { (ac_try="$ac_compile"
  10352. case "(($ac_try" in
  10353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10354. *) ac_try_echo=$ac_try;;
  10355. esac
  10356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10357. (eval "$ac_compile") 2>conftest.er1
  10358. ac_status=$?
  10359. grep -v '^ *+' conftest.er1 >conftest.err
  10360. rm -f conftest.er1
  10361. cat conftest.err >&5
  10362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10363. (exit $ac_status); } && {
  10364. test -z "$ac_cxx_werror_flag" ||
  10365. test ! -s conftest.err
  10366. } && test -s conftest.$ac_objext; then
  10367. gt_cv_inttypes_pri_broken=no
  10368. else
  10369. echo "$as_me: failed program was:" >&5
  10370. sed 's/^/| /' conftest.$ac_ext >&5
  10371. gt_cv_inttypes_pri_broken=yes
  10372. fi
  10373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10374. fi
  10375. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10376. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10377. fi
  10378. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10379. cat >>confdefs.h <<_ACEOF
  10380. #define PRI_MACROS_BROKEN 1
  10381. _ACEOF
  10382. PRI_MACROS_BROKEN=1
  10383. else
  10384. PRI_MACROS_BROKEN=0
  10385. fi
  10386. # Check whether --enable-threads was given.
  10387. if test "${enable_threads+set}" = set; then
  10388. enableval=$enable_threads; gl_use_threads=$enableval
  10389. else
  10390. case "$host_os" in
  10391. osf*) gl_use_threads=no ;;
  10392. *) gl_use_threads=yes ;;
  10393. esac
  10394. fi
  10395. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10396. # For using <pthread.h>:
  10397. case "$host_os" in
  10398. osf*)
  10399. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10400. # groks <pthread.h>. cc also understands the flag -pthread, but
  10401. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10402. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10403. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10404. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10405. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10406. ;;
  10407. esac
  10408. # Some systems optimize for single-threaded programs by default, and
  10409. # need special flags to disable these optimizations. For example, the
  10410. # definition of 'errno' in <errno.h>.
  10411. case "$host_os" in
  10412. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10413. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10414. esac
  10415. fi
  10416. if test "X$prefix" = "XNONE"; then
  10417. acl_final_prefix="$ac_default_prefix"
  10418. else
  10419. acl_final_prefix="$prefix"
  10420. fi
  10421. if test "X$exec_prefix" = "XNONE"; then
  10422. acl_final_exec_prefix='${prefix}'
  10423. else
  10424. acl_final_exec_prefix="$exec_prefix"
  10425. fi
  10426. acl_save_prefix="$prefix"
  10427. prefix="$acl_final_prefix"
  10428. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10429. prefix="$acl_save_prefix"
  10430. # Check whether --with-gnu-ld was given.
  10431. if test "${with_gnu_ld+set}" = set; then
  10432. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10433. else
  10434. with_gnu_ld=no
  10435. fi
  10436. # Prepare PATH_SEPARATOR.
  10437. # The user is always right.
  10438. if test "${PATH_SEPARATOR+set}" != set; then
  10439. echo "#! /bin/sh" >conf$$.sh
  10440. echo "exit 0" >>conf$$.sh
  10441. chmod +x conf$$.sh
  10442. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10443. PATH_SEPARATOR=';'
  10444. else
  10445. PATH_SEPARATOR=:
  10446. fi
  10447. rm -f conf$$.sh
  10448. fi
  10449. ac_prog=ld
  10450. if test "$GCC" = yes; then
  10451. # Check if gcc -print-prog-name=ld gives a path.
  10452. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10453. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10454. case $host in
  10455. *-*-mingw*)
  10456. # gcc leaves a trailing carriage return which upsets mingw
  10457. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10458. *)
  10459. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10460. esac
  10461. case $ac_prog in
  10462. # Accept absolute paths.
  10463. [\\/]* | [A-Za-z]:[\\/]*)
  10464. re_direlt='/[^/][^/]*/\.\./'
  10465. # Canonicalize the path of ld
  10466. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10467. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10468. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10469. done
  10470. test -z "$LD" && LD="$ac_prog"
  10471. ;;
  10472. "")
  10473. # If it fails, then pretend we aren't using GCC.
  10474. ac_prog=ld
  10475. ;;
  10476. *)
  10477. # If it is relative, then search for the first ld in PATH.
  10478. with_gnu_ld=unknown
  10479. ;;
  10480. esac
  10481. elif test "$with_gnu_ld" = yes; then
  10482. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10483. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10484. else
  10485. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10486. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10487. fi
  10488. if test "${acl_cv_path_LD+set}" = set; then
  10489. echo $ECHO_N "(cached) $ECHO_C" >&6
  10490. else
  10491. if test -z "$LD"; then
  10492. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10493. for ac_dir in $PATH; do
  10494. test -z "$ac_dir" && ac_dir=.
  10495. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10496. acl_cv_path_LD="$ac_dir/$ac_prog"
  10497. # Check to see if the program is GNU ld. I'd rather use --version,
  10498. # but apparently some GNU ld's only accept -v.
  10499. # Break only if it was the GNU/non-GNU ld that we prefer.
  10500. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10501. *GNU* | *'with BFD'*)
  10502. test "$with_gnu_ld" != no && break ;;
  10503. *)
  10504. test "$with_gnu_ld" != yes && break ;;
  10505. esac
  10506. fi
  10507. done
  10508. IFS="$ac_save_ifs"
  10509. else
  10510. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10511. fi
  10512. fi
  10513. LD="$acl_cv_path_LD"
  10514. if test -n "$LD"; then
  10515. { echo "$as_me:$LINENO: result: $LD" >&5
  10516. echo "${ECHO_T}$LD" >&6; }
  10517. else
  10518. { echo "$as_me:$LINENO: result: no" >&5
  10519. echo "${ECHO_T}no" >&6; }
  10520. fi
  10521. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10522. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10523. { (exit 1); exit 1; }; }
  10524. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10525. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10526. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10527. echo $ECHO_N "(cached) $ECHO_C" >&6
  10528. else
  10529. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10530. case `$LD -v 2>&1 </dev/null` in
  10531. *GNU* | *'with BFD'*)
  10532. acl_cv_prog_gnu_ld=yes ;;
  10533. *)
  10534. acl_cv_prog_gnu_ld=no ;;
  10535. esac
  10536. fi
  10537. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10538. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10539. with_gnu_ld=$acl_cv_prog_gnu_ld
  10540. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10541. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10542. if test "${acl_cv_rpath+set}" = set; then
  10543. echo $ECHO_N "(cached) $ECHO_C" >&6
  10544. else
  10545. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10546. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10547. . ./conftest.sh
  10548. rm -f ./conftest.sh
  10549. acl_cv_rpath=done
  10550. fi
  10551. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10552. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10553. wl="$acl_cv_wl"
  10554. acl_libext="$acl_cv_libext"
  10555. acl_shlibext="$acl_cv_shlibext"
  10556. acl_libname_spec="$acl_cv_libname_spec"
  10557. acl_library_names_spec="$acl_cv_library_names_spec"
  10558. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10559. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10560. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10561. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10562. # Check whether --enable-rpath was given.
  10563. if test "${enable_rpath+set}" = set; then
  10564. enableval=$enable_rpath; :
  10565. else
  10566. enable_rpath=yes
  10567. fi
  10568. acl_libdirstem=lib
  10569. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10570. if test -n "$searchpath"; then
  10571. acl_save_IFS="${IFS= }"; IFS=":"
  10572. for searchdir in $searchpath; do
  10573. if test -d "$searchdir"; then
  10574. case "$searchdir" in
  10575. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10576. *) searchdir=`cd "$searchdir" && pwd`
  10577. case "$searchdir" in
  10578. */lib64 ) acl_libdirstem=lib64 ;;
  10579. esac ;;
  10580. esac
  10581. fi
  10582. done
  10583. IFS="$acl_save_IFS"
  10584. fi
  10585. gl_threads_api=none
  10586. LIBTHREAD=
  10587. LTLIBTHREAD=
  10588. LIBMULTITHREAD=
  10589. LTLIBMULTITHREAD=
  10590. if test "$gl_use_threads" != no; then
  10591. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10592. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10593. gl_have_weak=no
  10594. cat >conftest.$ac_ext <<_ACEOF
  10595. /* confdefs.h. */
  10596. _ACEOF
  10597. cat confdefs.h >>conftest.$ac_ext
  10598. cat >>conftest.$ac_ext <<_ACEOF
  10599. /* end confdefs.h. */
  10600. extern void xyzzy ();
  10601. #pragma weak xyzzy
  10602. int
  10603. main ()
  10604. {
  10605. xyzzy();
  10606. ;
  10607. return 0;
  10608. }
  10609. _ACEOF
  10610. rm -f conftest.$ac_objext conftest$ac_exeext
  10611. if { (ac_try="$ac_link"
  10612. case "(($ac_try" in
  10613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10614. *) ac_try_echo=$ac_try;;
  10615. esac
  10616. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10617. (eval "$ac_link") 2>conftest.er1
  10618. ac_status=$?
  10619. grep -v '^ *+' conftest.er1 >conftest.err
  10620. rm -f conftest.er1
  10621. cat conftest.err >&5
  10622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10623. (exit $ac_status); } && {
  10624. test -z "$ac_cxx_werror_flag" ||
  10625. test ! -s conftest.err
  10626. } && test -s conftest$ac_exeext &&
  10627. $as_test_x conftest$ac_exeext; then
  10628. gl_have_weak=yes
  10629. else
  10630. echo "$as_me: failed program was:" >&5
  10631. sed 's/^/| /' conftest.$ac_ext >&5
  10632. fi
  10633. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10634. conftest$ac_exeext conftest.$ac_ext
  10635. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10636. echo "${ECHO_T}$gl_have_weak" >&6; }
  10637. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10638. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10639. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10640. if test "${ac_cv_header_pthread_h+set}" = set; then
  10641. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10642. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10643. if test "${ac_cv_header_pthread_h+set}" = set; then
  10644. echo $ECHO_N "(cached) $ECHO_C" >&6
  10645. fi
  10646. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10647. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10648. else
  10649. # Is the header compilable?
  10650. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10651. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10652. cat >conftest.$ac_ext <<_ACEOF
  10653. /* confdefs.h. */
  10654. _ACEOF
  10655. cat confdefs.h >>conftest.$ac_ext
  10656. cat >>conftest.$ac_ext <<_ACEOF
  10657. /* end confdefs.h. */
  10658. $ac_includes_default
  10659. #include <pthread.h>
  10660. _ACEOF
  10661. rm -f conftest.$ac_objext
  10662. if { (ac_try="$ac_compile"
  10663. case "(($ac_try" in
  10664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10665. *) ac_try_echo=$ac_try;;
  10666. esac
  10667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10668. (eval "$ac_compile") 2>conftest.er1
  10669. ac_status=$?
  10670. grep -v '^ *+' conftest.er1 >conftest.err
  10671. rm -f conftest.er1
  10672. cat conftest.err >&5
  10673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10674. (exit $ac_status); } && {
  10675. test -z "$ac_cxx_werror_flag" ||
  10676. test ! -s conftest.err
  10677. } && test -s conftest.$ac_objext; then
  10678. ac_header_compiler=yes
  10679. else
  10680. echo "$as_me: failed program was:" >&5
  10681. sed 's/^/| /' conftest.$ac_ext >&5
  10682. ac_header_compiler=no
  10683. fi
  10684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10685. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10686. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10687. # Is the header present?
  10688. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10689. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10690. cat >conftest.$ac_ext <<_ACEOF
  10691. /* confdefs.h. */
  10692. _ACEOF
  10693. cat confdefs.h >>conftest.$ac_ext
  10694. cat >>conftest.$ac_ext <<_ACEOF
  10695. /* end confdefs.h. */
  10696. #include <pthread.h>
  10697. _ACEOF
  10698. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10699. case "(($ac_try" in
  10700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10701. *) ac_try_echo=$ac_try;;
  10702. esac
  10703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10704. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10705. ac_status=$?
  10706. grep -v '^ *+' conftest.er1 >conftest.err
  10707. rm -f conftest.er1
  10708. cat conftest.err >&5
  10709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10710. (exit $ac_status); } >/dev/null && {
  10711. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10712. test ! -s conftest.err
  10713. }; then
  10714. ac_header_preproc=yes
  10715. else
  10716. echo "$as_me: failed program was:" >&5
  10717. sed 's/^/| /' conftest.$ac_ext >&5
  10718. ac_header_preproc=no
  10719. fi
  10720. rm -f conftest.err conftest.$ac_ext
  10721. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10722. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10723. # So? What about this header?
  10724. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10725. yes:no: )
  10726. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10727. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10728. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10729. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10730. ac_header_preproc=yes
  10731. ;;
  10732. no:yes:* )
  10733. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10734. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10735. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10736. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10737. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10738. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10739. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10740. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10741. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10742. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10743. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10744. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10745. ( cat <<\_ASBOX
  10746. ## ----------------------------------------------- ##
  10747. ## Report this to t-tujikawa@users.sourceforge.net ##
  10748. ## ----------------------------------------------- ##
  10749. _ASBOX
  10750. ) | sed "s/^/$as_me: WARNING: /" >&2
  10751. ;;
  10752. esac
  10753. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10754. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10755. if test "${ac_cv_header_pthread_h+set}" = set; then
  10756. echo $ECHO_N "(cached) $ECHO_C" >&6
  10757. else
  10758. ac_cv_header_pthread_h=$ac_header_preproc
  10759. fi
  10760. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10761. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10762. fi
  10763. if test $ac_cv_header_pthread_h = yes; then
  10764. gl_have_pthread_h=yes
  10765. else
  10766. gl_have_pthread_h=no
  10767. fi
  10768. if test "$gl_have_pthread_h" = yes; then
  10769. # Other possible tests:
  10770. # -lpthreads (FSU threads, PCthreads)
  10771. # -lgthreads
  10772. gl_have_pthread=
  10773. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10774. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10775. # the second one only in libpthread, and lock.c needs it.
  10776. cat >conftest.$ac_ext <<_ACEOF
  10777. /* confdefs.h. */
  10778. _ACEOF
  10779. cat confdefs.h >>conftest.$ac_ext
  10780. cat >>conftest.$ac_ext <<_ACEOF
  10781. /* end confdefs.h. */
  10782. #include <pthread.h>
  10783. int
  10784. main ()
  10785. {
  10786. pthread_mutex_lock((pthread_mutex_t*)0);
  10787. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10788. ;
  10789. return 0;
  10790. }
  10791. _ACEOF
  10792. rm -f conftest.$ac_objext conftest$ac_exeext
  10793. if { (ac_try="$ac_link"
  10794. case "(($ac_try" in
  10795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10796. *) ac_try_echo=$ac_try;;
  10797. esac
  10798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10799. (eval "$ac_link") 2>conftest.er1
  10800. ac_status=$?
  10801. grep -v '^ *+' conftest.er1 >conftest.err
  10802. rm -f conftest.er1
  10803. cat conftest.err >&5
  10804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10805. (exit $ac_status); } && {
  10806. test -z "$ac_cxx_werror_flag" ||
  10807. test ! -s conftest.err
  10808. } && test -s conftest$ac_exeext &&
  10809. $as_test_x conftest$ac_exeext; then
  10810. gl_have_pthread=yes
  10811. else
  10812. echo "$as_me: failed program was:" >&5
  10813. sed 's/^/| /' conftest.$ac_ext >&5
  10814. fi
  10815. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10816. conftest$ac_exeext conftest.$ac_ext
  10817. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10818. # since it is defined as a macro on OSF/1.)
  10819. if test -n "$gl_have_pthread"; then
  10820. # The program links fine without libpthread. But it may actually
  10821. # need to link with libpthread in order to create multiple threads.
  10822. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10823. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10824. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10825. echo $ECHO_N "(cached) $ECHO_C" >&6
  10826. else
  10827. ac_check_lib_save_LIBS=$LIBS
  10828. LIBS="-lpthread $LIBS"
  10829. cat >conftest.$ac_ext <<_ACEOF
  10830. /* confdefs.h. */
  10831. _ACEOF
  10832. cat confdefs.h >>conftest.$ac_ext
  10833. cat >>conftest.$ac_ext <<_ACEOF
  10834. /* end confdefs.h. */
  10835. /* Override any GCC internal prototype to avoid an error.
  10836. Use char because int might match the return type of a GCC
  10837. builtin and then its argument prototype would still apply. */
  10838. #ifdef __cplusplus
  10839. extern "C"
  10840. #endif
  10841. char pthread_kill ();
  10842. int
  10843. main ()
  10844. {
  10845. return pthread_kill ();
  10846. ;
  10847. return 0;
  10848. }
  10849. _ACEOF
  10850. rm -f conftest.$ac_objext conftest$ac_exeext
  10851. if { (ac_try="$ac_link"
  10852. case "(($ac_try" in
  10853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10854. *) ac_try_echo=$ac_try;;
  10855. esac
  10856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10857. (eval "$ac_link") 2>conftest.er1
  10858. ac_status=$?
  10859. grep -v '^ *+' conftest.er1 >conftest.err
  10860. rm -f conftest.er1
  10861. cat conftest.err >&5
  10862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10863. (exit $ac_status); } && {
  10864. test -z "$ac_cxx_werror_flag" ||
  10865. test ! -s conftest.err
  10866. } && test -s conftest$ac_exeext &&
  10867. $as_test_x conftest$ac_exeext; then
  10868. ac_cv_lib_pthread_pthread_kill=yes
  10869. else
  10870. echo "$as_me: failed program was:" >&5
  10871. sed 's/^/| /' conftest.$ac_ext >&5
  10872. ac_cv_lib_pthread_pthread_kill=no
  10873. fi
  10874. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10875. conftest$ac_exeext conftest.$ac_ext
  10876. LIBS=$ac_check_lib_save_LIBS
  10877. fi
  10878. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10879. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10880. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10881. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10882. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10883. # Therefore pthread_in_use() needs to actually try to create a
  10884. # thread: pthread_create from libc will fail, whereas
  10885. # pthread_create will actually create a thread.
  10886. case "$host_os" in
  10887. solaris* | hpux*)
  10888. cat >>confdefs.h <<\_ACEOF
  10889. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10890. _ACEOF
  10891. esac
  10892. fi
  10893. else
  10894. # Some library is needed. Try libpthread and libc_r.
  10895. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10896. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10897. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10898. echo $ECHO_N "(cached) $ECHO_C" >&6
  10899. else
  10900. ac_check_lib_save_LIBS=$LIBS
  10901. LIBS="-lpthread $LIBS"
  10902. cat >conftest.$ac_ext <<_ACEOF
  10903. /* confdefs.h. */
  10904. _ACEOF
  10905. cat confdefs.h >>conftest.$ac_ext
  10906. cat >>conftest.$ac_ext <<_ACEOF
  10907. /* end confdefs.h. */
  10908. /* Override any GCC internal prototype to avoid an error.
  10909. Use char because int might match the return type of a GCC
  10910. builtin and then its argument prototype would still apply. */
  10911. #ifdef __cplusplus
  10912. extern "C"
  10913. #endif
  10914. char pthread_kill ();
  10915. int
  10916. main ()
  10917. {
  10918. return pthread_kill ();
  10919. ;
  10920. return 0;
  10921. }
  10922. _ACEOF
  10923. rm -f conftest.$ac_objext conftest$ac_exeext
  10924. if { (ac_try="$ac_link"
  10925. case "(($ac_try" in
  10926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10927. *) ac_try_echo=$ac_try;;
  10928. esac
  10929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10930. (eval "$ac_link") 2>conftest.er1
  10931. ac_status=$?
  10932. grep -v '^ *+' conftest.er1 >conftest.err
  10933. rm -f conftest.er1
  10934. cat conftest.err >&5
  10935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10936. (exit $ac_status); } && {
  10937. test -z "$ac_cxx_werror_flag" ||
  10938. test ! -s conftest.err
  10939. } && test -s conftest$ac_exeext &&
  10940. $as_test_x conftest$ac_exeext; then
  10941. ac_cv_lib_pthread_pthread_kill=yes
  10942. else
  10943. echo "$as_me: failed program was:" >&5
  10944. sed 's/^/| /' conftest.$ac_ext >&5
  10945. ac_cv_lib_pthread_pthread_kill=no
  10946. fi
  10947. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10948. conftest$ac_exeext conftest.$ac_ext
  10949. LIBS=$ac_check_lib_save_LIBS
  10950. fi
  10951. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10952. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10953. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10954. gl_have_pthread=yes
  10955. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10956. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10957. fi
  10958. if test -z "$gl_have_pthread"; then
  10959. # For FreeBSD 4.
  10960. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10961. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10962. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10963. echo $ECHO_N "(cached) $ECHO_C" >&6
  10964. else
  10965. ac_check_lib_save_LIBS=$LIBS
  10966. LIBS="-lc_r $LIBS"
  10967. cat >conftest.$ac_ext <<_ACEOF
  10968. /* confdefs.h. */
  10969. _ACEOF
  10970. cat confdefs.h >>conftest.$ac_ext
  10971. cat >>conftest.$ac_ext <<_ACEOF
  10972. /* end confdefs.h. */
  10973. /* Override any GCC internal prototype to avoid an error.
  10974. Use char because int might match the return type of a GCC
  10975. builtin and then its argument prototype would still apply. */
  10976. #ifdef __cplusplus
  10977. extern "C"
  10978. #endif
  10979. char pthread_kill ();
  10980. int
  10981. main ()
  10982. {
  10983. return pthread_kill ();
  10984. ;
  10985. return 0;
  10986. }
  10987. _ACEOF
  10988. rm -f conftest.$ac_objext conftest$ac_exeext
  10989. if { (ac_try="$ac_link"
  10990. case "(($ac_try" in
  10991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10992. *) ac_try_echo=$ac_try;;
  10993. esac
  10994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10995. (eval "$ac_link") 2>conftest.er1
  10996. ac_status=$?
  10997. grep -v '^ *+' conftest.er1 >conftest.err
  10998. rm -f conftest.er1
  10999. cat conftest.err >&5
  11000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11001. (exit $ac_status); } && {
  11002. test -z "$ac_cxx_werror_flag" ||
  11003. test ! -s conftest.err
  11004. } && test -s conftest$ac_exeext &&
  11005. $as_test_x conftest$ac_exeext; then
  11006. ac_cv_lib_c_r_pthread_kill=yes
  11007. else
  11008. echo "$as_me: failed program was:" >&5
  11009. sed 's/^/| /' conftest.$ac_ext >&5
  11010. ac_cv_lib_c_r_pthread_kill=no
  11011. fi
  11012. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11013. conftest$ac_exeext conftest.$ac_ext
  11014. LIBS=$ac_check_lib_save_LIBS
  11015. fi
  11016. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11017. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11018. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11019. gl_have_pthread=yes
  11020. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11021. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11022. fi
  11023. fi
  11024. fi
  11025. if test -n "$gl_have_pthread"; then
  11026. gl_threads_api=posix
  11027. cat >>confdefs.h <<\_ACEOF
  11028. #define USE_POSIX_THREADS 1
  11029. _ACEOF
  11030. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11031. if test $gl_have_weak = yes; then
  11032. cat >>confdefs.h <<\_ACEOF
  11033. #define USE_POSIX_THREADS_WEAK 1
  11034. _ACEOF
  11035. LIBTHREAD=
  11036. LTLIBTHREAD=
  11037. fi
  11038. fi
  11039. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11040. # pthread_rwlock_* functions.
  11041. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11042. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11043. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11044. echo $ECHO_N "(cached) $ECHO_C" >&6
  11045. else
  11046. cat >conftest.$ac_ext <<_ACEOF
  11047. /* confdefs.h. */
  11048. _ACEOF
  11049. cat confdefs.h >>conftest.$ac_ext
  11050. cat >>conftest.$ac_ext <<_ACEOF
  11051. /* end confdefs.h. */
  11052. #include <pthread.h>
  11053. typedef pthread_rwlock_t ac__type_new_;
  11054. int
  11055. main ()
  11056. {
  11057. if ((ac__type_new_ *) 0)
  11058. return 0;
  11059. if (sizeof (ac__type_new_))
  11060. return 0;
  11061. ;
  11062. return 0;
  11063. }
  11064. _ACEOF
  11065. rm -f conftest.$ac_objext
  11066. if { (ac_try="$ac_compile"
  11067. case "(($ac_try" in
  11068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11069. *) ac_try_echo=$ac_try;;
  11070. esac
  11071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11072. (eval "$ac_compile") 2>conftest.er1
  11073. ac_status=$?
  11074. grep -v '^ *+' conftest.er1 >conftest.err
  11075. rm -f conftest.er1
  11076. cat conftest.err >&5
  11077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11078. (exit $ac_status); } && {
  11079. test -z "$ac_cxx_werror_flag" ||
  11080. test ! -s conftest.err
  11081. } && test -s conftest.$ac_objext; then
  11082. ac_cv_type_pthread_rwlock_t=yes
  11083. else
  11084. echo "$as_me: failed program was:" >&5
  11085. sed 's/^/| /' conftest.$ac_ext >&5
  11086. ac_cv_type_pthread_rwlock_t=no
  11087. fi
  11088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11089. fi
  11090. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11091. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11092. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11093. cat >>confdefs.h <<\_ACEOF
  11094. #define HAVE_PTHREAD_RWLOCK 1
  11095. _ACEOF
  11096. fi
  11097. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11098. cat >conftest.$ac_ext <<_ACEOF
  11099. /* confdefs.h. */
  11100. _ACEOF
  11101. cat confdefs.h >>conftest.$ac_ext
  11102. cat >>conftest.$ac_ext <<_ACEOF
  11103. /* end confdefs.h. */
  11104. #include <pthread.h>
  11105. int
  11106. main ()
  11107. {
  11108. #if __FreeBSD__ == 4
  11109. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11110. #else
  11111. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11112. return !x;
  11113. #endif
  11114. ;
  11115. return 0;
  11116. }
  11117. _ACEOF
  11118. rm -f conftest.$ac_objext
  11119. if { (ac_try="$ac_compile"
  11120. case "(($ac_try" in
  11121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11122. *) ac_try_echo=$ac_try;;
  11123. esac
  11124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11125. (eval "$ac_compile") 2>conftest.er1
  11126. ac_status=$?
  11127. grep -v '^ *+' conftest.er1 >conftest.err
  11128. rm -f conftest.er1
  11129. cat conftest.err >&5
  11130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11131. (exit $ac_status); } && {
  11132. test -z "$ac_cxx_werror_flag" ||
  11133. test ! -s conftest.err
  11134. } && test -s conftest.$ac_objext; then
  11135. cat >>confdefs.h <<\_ACEOF
  11136. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11137. _ACEOF
  11138. else
  11139. echo "$as_me: failed program was:" >&5
  11140. sed 's/^/| /' conftest.$ac_ext >&5
  11141. fi
  11142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11143. fi
  11144. fi
  11145. fi
  11146. if test -z "$gl_have_pthread"; then
  11147. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11148. gl_have_solaristhread=
  11149. gl_save_LIBS="$LIBS"
  11150. LIBS="$LIBS -lthread"
  11151. cat >conftest.$ac_ext <<_ACEOF
  11152. /* confdefs.h. */
  11153. _ACEOF
  11154. cat confdefs.h >>conftest.$ac_ext
  11155. cat >>conftest.$ac_ext <<_ACEOF
  11156. /* end confdefs.h. */
  11157. #include <thread.h>
  11158. #include <synch.h>
  11159. int
  11160. main ()
  11161. {
  11162. thr_self();
  11163. ;
  11164. return 0;
  11165. }
  11166. _ACEOF
  11167. rm -f conftest.$ac_objext conftest$ac_exeext
  11168. if { (ac_try="$ac_link"
  11169. case "(($ac_try" in
  11170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11171. *) ac_try_echo=$ac_try;;
  11172. esac
  11173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11174. (eval "$ac_link") 2>conftest.er1
  11175. ac_status=$?
  11176. grep -v '^ *+' conftest.er1 >conftest.err
  11177. rm -f conftest.er1
  11178. cat conftest.err >&5
  11179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11180. (exit $ac_status); } && {
  11181. test -z "$ac_cxx_werror_flag" ||
  11182. test ! -s conftest.err
  11183. } && test -s conftest$ac_exeext &&
  11184. $as_test_x conftest$ac_exeext; then
  11185. gl_have_solaristhread=yes
  11186. else
  11187. echo "$as_me: failed program was:" >&5
  11188. sed 's/^/| /' conftest.$ac_ext >&5
  11189. fi
  11190. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11191. conftest$ac_exeext conftest.$ac_ext
  11192. LIBS="$gl_save_LIBS"
  11193. if test -n "$gl_have_solaristhread"; then
  11194. gl_threads_api=solaris
  11195. LIBTHREAD=-lthread
  11196. LTLIBTHREAD=-lthread
  11197. LIBMULTITHREAD="$LIBTHREAD"
  11198. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11199. cat >>confdefs.h <<\_ACEOF
  11200. #define USE_SOLARIS_THREADS 1
  11201. _ACEOF
  11202. if test $gl_have_weak = yes; then
  11203. cat >>confdefs.h <<\_ACEOF
  11204. #define USE_SOLARIS_THREADS_WEAK 1
  11205. _ACEOF
  11206. LIBTHREAD=
  11207. LTLIBTHREAD=
  11208. fi
  11209. fi
  11210. fi
  11211. fi
  11212. if test "$gl_use_threads" = pth; then
  11213. gl_save_CPPFLAGS="$CPPFLAGS"
  11214. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11215. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11216. if test "${ac_cv_libpth_libs+set}" = set; then
  11217. echo $ECHO_N "(cached) $ECHO_C" >&6
  11218. else
  11219. use_additional=yes
  11220. acl_save_prefix="$prefix"
  11221. prefix="$acl_final_prefix"
  11222. acl_save_exec_prefix="$exec_prefix"
  11223. exec_prefix="$acl_final_exec_prefix"
  11224. eval additional_includedir=\"$includedir\"
  11225. eval additional_libdir=\"$libdir\"
  11226. exec_prefix="$acl_save_exec_prefix"
  11227. prefix="$acl_save_prefix"
  11228. # Check whether --with-libpth-prefix was given.
  11229. if test "${with_libpth_prefix+set}" = set; then
  11230. withval=$with_libpth_prefix;
  11231. if test "X$withval" = "Xno"; then
  11232. use_additional=no
  11233. else
  11234. if test "X$withval" = "X"; then
  11235. acl_save_prefix="$prefix"
  11236. prefix="$acl_final_prefix"
  11237. acl_save_exec_prefix="$exec_prefix"
  11238. exec_prefix="$acl_final_exec_prefix"
  11239. eval additional_includedir=\"$includedir\"
  11240. eval additional_libdir=\"$libdir\"
  11241. exec_prefix="$acl_save_exec_prefix"
  11242. prefix="$acl_save_prefix"
  11243. else
  11244. additional_includedir="$withval/include"
  11245. additional_libdir="$withval/$acl_libdirstem"
  11246. fi
  11247. fi
  11248. fi
  11249. LIBPTH=
  11250. LTLIBPTH=
  11251. INCPTH=
  11252. LIBPTH_PREFIX=
  11253. rpathdirs=
  11254. ltrpathdirs=
  11255. names_already_handled=
  11256. names_next_round='pth '
  11257. while test -n "$names_next_round"; do
  11258. names_this_round="$names_next_round"
  11259. names_next_round=
  11260. for name in $names_this_round; do
  11261. already_handled=
  11262. for n in $names_already_handled; do
  11263. if test "$n" = "$name"; then
  11264. already_handled=yes
  11265. break
  11266. fi
  11267. done
  11268. if test -z "$already_handled"; then
  11269. names_already_handled="$names_already_handled $name"
  11270. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11271. eval value=\"\$HAVE_LIB$uppername\"
  11272. if test -n "$value"; then
  11273. if test "$value" = yes; then
  11274. eval value=\"\$LIB$uppername\"
  11275. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11276. eval value=\"\$LTLIB$uppername\"
  11277. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11278. else
  11279. :
  11280. fi
  11281. else
  11282. found_dir=
  11283. found_la=
  11284. found_so=
  11285. found_a=
  11286. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11287. if test -n "$acl_shlibext"; then
  11288. shrext=".$acl_shlibext" # typically: shrext=.so
  11289. else
  11290. shrext=
  11291. fi
  11292. if test $use_additional = yes; then
  11293. dir="$additional_libdir"
  11294. if test -n "$acl_shlibext"; then
  11295. if test -f "$dir/$libname$shrext"; then
  11296. found_dir="$dir"
  11297. found_so="$dir/$libname$shrext"
  11298. else
  11299. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11300. ver=`(cd "$dir" && \
  11301. for f in "$libname$shrext".*; do echo "$f"; done \
  11302. | sed -e "s,^$libname$shrext\\\\.,," \
  11303. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11304. | sed 1q ) 2>/dev/null`
  11305. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11306. found_dir="$dir"
  11307. found_so="$dir/$libname$shrext.$ver"
  11308. fi
  11309. else
  11310. eval library_names=\"$acl_library_names_spec\"
  11311. for f in $library_names; do
  11312. if test -f "$dir/$f"; then
  11313. found_dir="$dir"
  11314. found_so="$dir/$f"
  11315. break
  11316. fi
  11317. done
  11318. fi
  11319. fi
  11320. fi
  11321. if test "X$found_dir" = "X"; then
  11322. if test -f "$dir/$libname.$acl_libext"; then
  11323. found_dir="$dir"
  11324. found_a="$dir/$libname.$acl_libext"
  11325. fi
  11326. fi
  11327. if test "X$found_dir" != "X"; then
  11328. if test -f "$dir/$libname.la"; then
  11329. found_la="$dir/$libname.la"
  11330. fi
  11331. fi
  11332. fi
  11333. if test "X$found_dir" = "X"; then
  11334. for x in $LDFLAGS $LTLIBPTH; do
  11335. acl_save_prefix="$prefix"
  11336. prefix="$acl_final_prefix"
  11337. acl_save_exec_prefix="$exec_prefix"
  11338. exec_prefix="$acl_final_exec_prefix"
  11339. eval x=\"$x\"
  11340. exec_prefix="$acl_save_exec_prefix"
  11341. prefix="$acl_save_prefix"
  11342. case "$x" in
  11343. -L*)
  11344. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11345. if test -n "$acl_shlibext"; then
  11346. if test -f "$dir/$libname$shrext"; then
  11347. found_dir="$dir"
  11348. found_so="$dir/$libname$shrext"
  11349. else
  11350. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11351. ver=`(cd "$dir" && \
  11352. for f in "$libname$shrext".*; do echo "$f"; done \
  11353. | sed -e "s,^$libname$shrext\\\\.,," \
  11354. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11355. | sed 1q ) 2>/dev/null`
  11356. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11357. found_dir="$dir"
  11358. found_so="$dir/$libname$shrext.$ver"
  11359. fi
  11360. else
  11361. eval library_names=\"$acl_library_names_spec\"
  11362. for f in $library_names; do
  11363. if test -f "$dir/$f"; then
  11364. found_dir="$dir"
  11365. found_so="$dir/$f"
  11366. break
  11367. fi
  11368. done
  11369. fi
  11370. fi
  11371. fi
  11372. if test "X$found_dir" = "X"; then
  11373. if test -f "$dir/$libname.$acl_libext"; then
  11374. found_dir="$dir"
  11375. found_a="$dir/$libname.$acl_libext"
  11376. fi
  11377. fi
  11378. if test "X$found_dir" != "X"; then
  11379. if test -f "$dir/$libname.la"; then
  11380. found_la="$dir/$libname.la"
  11381. fi
  11382. fi
  11383. ;;
  11384. esac
  11385. if test "X$found_dir" != "X"; then
  11386. break
  11387. fi
  11388. done
  11389. fi
  11390. if test "X$found_dir" != "X"; then
  11391. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11392. if test "X$found_so" != "X"; then
  11393. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11394. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11395. else
  11396. haveit=
  11397. for x in $ltrpathdirs; do
  11398. if test "X$x" = "X$found_dir"; then
  11399. haveit=yes
  11400. break
  11401. fi
  11402. done
  11403. if test -z "$haveit"; then
  11404. ltrpathdirs="$ltrpathdirs $found_dir"
  11405. fi
  11406. if test "$acl_hardcode_direct" = yes; then
  11407. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11408. else
  11409. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11410. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11411. haveit=
  11412. for x in $rpathdirs; do
  11413. if test "X$x" = "X$found_dir"; then
  11414. haveit=yes
  11415. break
  11416. fi
  11417. done
  11418. if test -z "$haveit"; then
  11419. rpathdirs="$rpathdirs $found_dir"
  11420. fi
  11421. else
  11422. haveit=
  11423. for x in $LDFLAGS $LIBPTH; do
  11424. acl_save_prefix="$prefix"
  11425. prefix="$acl_final_prefix"
  11426. acl_save_exec_prefix="$exec_prefix"
  11427. exec_prefix="$acl_final_exec_prefix"
  11428. eval x=\"$x\"
  11429. exec_prefix="$acl_save_exec_prefix"
  11430. prefix="$acl_save_prefix"
  11431. if test "X$x" = "X-L$found_dir"; then
  11432. haveit=yes
  11433. break
  11434. fi
  11435. done
  11436. if test -z "$haveit"; then
  11437. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11438. fi
  11439. if test "$acl_hardcode_minus_L" != no; then
  11440. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11441. else
  11442. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11443. fi
  11444. fi
  11445. fi
  11446. fi
  11447. else
  11448. if test "X$found_a" != "X"; then
  11449. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11450. else
  11451. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11452. fi
  11453. fi
  11454. additional_includedir=
  11455. case "$found_dir" in
  11456. */$acl_libdirstem | */$acl_libdirstem/)
  11457. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11458. LIBPTH_PREFIX="$basedir"
  11459. additional_includedir="$basedir/include"
  11460. ;;
  11461. esac
  11462. if test "X$additional_includedir" != "X"; then
  11463. if test "X$additional_includedir" != "X/usr/include"; then
  11464. haveit=
  11465. if test "X$additional_includedir" = "X/usr/local/include"; then
  11466. if test -n "$GCC"; then
  11467. case $host_os in
  11468. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11469. esac
  11470. fi
  11471. fi
  11472. if test -z "$haveit"; then
  11473. for x in $CPPFLAGS $INCPTH; do
  11474. acl_save_prefix="$prefix"
  11475. prefix="$acl_final_prefix"
  11476. acl_save_exec_prefix="$exec_prefix"
  11477. exec_prefix="$acl_final_exec_prefix"
  11478. eval x=\"$x\"
  11479. exec_prefix="$acl_save_exec_prefix"
  11480. prefix="$acl_save_prefix"
  11481. if test "X$x" = "X-I$additional_includedir"; then
  11482. haveit=yes
  11483. break
  11484. fi
  11485. done
  11486. if test -z "$haveit"; then
  11487. if test -d "$additional_includedir"; then
  11488. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11489. fi
  11490. fi
  11491. fi
  11492. fi
  11493. fi
  11494. if test -n "$found_la"; then
  11495. save_libdir="$libdir"
  11496. case "$found_la" in
  11497. */* | *\\*) . "$found_la" ;;
  11498. *) . "./$found_la" ;;
  11499. esac
  11500. libdir="$save_libdir"
  11501. for dep in $dependency_libs; do
  11502. case "$dep" in
  11503. -L*)
  11504. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11505. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11506. haveit=
  11507. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11508. if test -n "$GCC"; then
  11509. case $host_os in
  11510. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11511. esac
  11512. fi
  11513. fi
  11514. if test -z "$haveit"; then
  11515. haveit=
  11516. for x in $LDFLAGS $LIBPTH; do
  11517. acl_save_prefix="$prefix"
  11518. prefix="$acl_final_prefix"
  11519. acl_save_exec_prefix="$exec_prefix"
  11520. exec_prefix="$acl_final_exec_prefix"
  11521. eval x=\"$x\"
  11522. exec_prefix="$acl_save_exec_prefix"
  11523. prefix="$acl_save_prefix"
  11524. if test "X$x" = "X-L$additional_libdir"; then
  11525. haveit=yes
  11526. break
  11527. fi
  11528. done
  11529. if test -z "$haveit"; then
  11530. if test -d "$additional_libdir"; then
  11531. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11532. fi
  11533. fi
  11534. haveit=
  11535. for x in $LDFLAGS $LTLIBPTH; do
  11536. acl_save_prefix="$prefix"
  11537. prefix="$acl_final_prefix"
  11538. acl_save_exec_prefix="$exec_prefix"
  11539. exec_prefix="$acl_final_exec_prefix"
  11540. eval x=\"$x\"
  11541. exec_prefix="$acl_save_exec_prefix"
  11542. prefix="$acl_save_prefix"
  11543. if test "X$x" = "X-L$additional_libdir"; then
  11544. haveit=yes
  11545. break
  11546. fi
  11547. done
  11548. if test -z "$haveit"; then
  11549. if test -d "$additional_libdir"; then
  11550. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11551. fi
  11552. fi
  11553. fi
  11554. fi
  11555. ;;
  11556. -R*)
  11557. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11558. if test "$enable_rpath" != no; then
  11559. haveit=
  11560. for x in $rpathdirs; do
  11561. if test "X$x" = "X$dir"; then
  11562. haveit=yes
  11563. break
  11564. fi
  11565. done
  11566. if test -z "$haveit"; then
  11567. rpathdirs="$rpathdirs $dir"
  11568. fi
  11569. haveit=
  11570. for x in $ltrpathdirs; do
  11571. if test "X$x" = "X$dir"; then
  11572. haveit=yes
  11573. break
  11574. fi
  11575. done
  11576. if test -z "$haveit"; then
  11577. ltrpathdirs="$ltrpathdirs $dir"
  11578. fi
  11579. fi
  11580. ;;
  11581. -l*)
  11582. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11583. ;;
  11584. *.la)
  11585. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11586. ;;
  11587. *)
  11588. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11589. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11590. ;;
  11591. esac
  11592. done
  11593. fi
  11594. else
  11595. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11596. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11597. fi
  11598. fi
  11599. fi
  11600. done
  11601. done
  11602. if test "X$rpathdirs" != "X"; then
  11603. if test -n "$acl_hardcode_libdir_separator"; then
  11604. alldirs=
  11605. for found_dir in $rpathdirs; do
  11606. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11607. done
  11608. acl_save_libdir="$libdir"
  11609. libdir="$alldirs"
  11610. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11611. libdir="$acl_save_libdir"
  11612. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11613. else
  11614. for found_dir in $rpathdirs; do
  11615. acl_save_libdir="$libdir"
  11616. libdir="$found_dir"
  11617. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11618. libdir="$acl_save_libdir"
  11619. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11620. done
  11621. fi
  11622. fi
  11623. if test "X$ltrpathdirs" != "X"; then
  11624. for found_dir in $ltrpathdirs; do
  11625. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11626. done
  11627. fi
  11628. ac_cv_libpth_libs="$LIBPTH"
  11629. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11630. ac_cv_libpth_cppflags="$INCPTH"
  11631. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11632. fi
  11633. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11634. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11635. LIBPTH="$ac_cv_libpth_libs"
  11636. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11637. INCPTH="$ac_cv_libpth_cppflags"
  11638. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11639. for element in $INCPTH; do
  11640. haveit=
  11641. for x in $CPPFLAGS; do
  11642. acl_save_prefix="$prefix"
  11643. prefix="$acl_final_prefix"
  11644. acl_save_exec_prefix="$exec_prefix"
  11645. exec_prefix="$acl_final_exec_prefix"
  11646. eval x=\"$x\"
  11647. exec_prefix="$acl_save_exec_prefix"
  11648. prefix="$acl_save_prefix"
  11649. if test "X$x" = "X$element"; then
  11650. haveit=yes
  11651. break
  11652. fi
  11653. done
  11654. if test -z "$haveit"; then
  11655. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11656. fi
  11657. done
  11658. HAVE_LIBPTH=yes
  11659. gl_have_pth=
  11660. gl_save_LIBS="$LIBS"
  11661. LIBS="$LIBS -lpth"
  11662. cat >conftest.$ac_ext <<_ACEOF
  11663. /* confdefs.h. */
  11664. _ACEOF
  11665. cat confdefs.h >>conftest.$ac_ext
  11666. cat >>conftest.$ac_ext <<_ACEOF
  11667. /* end confdefs.h. */
  11668. #include <pth.h>
  11669. int
  11670. main ()
  11671. {
  11672. pth_self();
  11673. ;
  11674. return 0;
  11675. }
  11676. _ACEOF
  11677. rm -f conftest.$ac_objext conftest$ac_exeext
  11678. if { (ac_try="$ac_link"
  11679. case "(($ac_try" in
  11680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11681. *) ac_try_echo=$ac_try;;
  11682. esac
  11683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11684. (eval "$ac_link") 2>conftest.er1
  11685. ac_status=$?
  11686. grep -v '^ *+' conftest.er1 >conftest.err
  11687. rm -f conftest.er1
  11688. cat conftest.err >&5
  11689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11690. (exit $ac_status); } && {
  11691. test -z "$ac_cxx_werror_flag" ||
  11692. test ! -s conftest.err
  11693. } && test -s conftest$ac_exeext &&
  11694. $as_test_x conftest$ac_exeext; then
  11695. gl_have_pth=yes
  11696. else
  11697. echo "$as_me: failed program was:" >&5
  11698. sed 's/^/| /' conftest.$ac_ext >&5
  11699. fi
  11700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11701. conftest$ac_exeext conftest.$ac_ext
  11702. LIBS="$gl_save_LIBS"
  11703. if test -n "$gl_have_pth"; then
  11704. gl_threads_api=pth
  11705. LIBTHREAD="$LIBPTH"
  11706. LTLIBTHREAD="$LTLIBPTH"
  11707. LIBMULTITHREAD="$LIBTHREAD"
  11708. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11709. cat >>confdefs.h <<\_ACEOF
  11710. #define USE_PTH_THREADS 1
  11711. _ACEOF
  11712. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11713. if test $gl_have_weak = yes; then
  11714. cat >>confdefs.h <<\_ACEOF
  11715. #define USE_PTH_THREADS_WEAK 1
  11716. _ACEOF
  11717. LIBTHREAD=
  11718. LTLIBTHREAD=
  11719. fi
  11720. fi
  11721. else
  11722. CPPFLAGS="$gl_save_CPPFLAGS"
  11723. fi
  11724. fi
  11725. if test -z "$gl_have_pthread"; then
  11726. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11727. if { case "$host_os" in
  11728. mingw*) true;;
  11729. *) false;;
  11730. esac
  11731. }; then
  11732. gl_threads_api=win32
  11733. cat >>confdefs.h <<\_ACEOF
  11734. #define USE_WIN32_THREADS 1
  11735. _ACEOF
  11736. fi
  11737. fi
  11738. fi
  11739. fi
  11740. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11741. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11742. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11743. echo "${ECHO_T}$gl_threads_api" >&6; }
  11744. use_additional=yes
  11745. acl_save_prefix="$prefix"
  11746. prefix="$acl_final_prefix"
  11747. acl_save_exec_prefix="$exec_prefix"
  11748. exec_prefix="$acl_final_exec_prefix"
  11749. eval additional_includedir=\"$includedir\"
  11750. eval additional_libdir=\"$libdir\"
  11751. exec_prefix="$acl_save_exec_prefix"
  11752. prefix="$acl_save_prefix"
  11753. # Check whether --with-libiconv-prefix was given.
  11754. if test "${with_libiconv_prefix+set}" = set; then
  11755. withval=$with_libiconv_prefix;
  11756. if test "X$withval" = "Xno"; then
  11757. use_additional=no
  11758. else
  11759. if test "X$withval" = "X"; then
  11760. acl_save_prefix="$prefix"
  11761. prefix="$acl_final_prefix"
  11762. acl_save_exec_prefix="$exec_prefix"
  11763. exec_prefix="$acl_final_exec_prefix"
  11764. eval additional_includedir=\"$includedir\"
  11765. eval additional_libdir=\"$libdir\"
  11766. exec_prefix="$acl_save_exec_prefix"
  11767. prefix="$acl_save_prefix"
  11768. else
  11769. additional_includedir="$withval/include"
  11770. additional_libdir="$withval/$acl_libdirstem"
  11771. fi
  11772. fi
  11773. fi
  11774. LIBICONV=
  11775. LTLIBICONV=
  11776. INCICONV=
  11777. LIBICONV_PREFIX=
  11778. rpathdirs=
  11779. ltrpathdirs=
  11780. names_already_handled=
  11781. names_next_round='iconv '
  11782. while test -n "$names_next_round"; do
  11783. names_this_round="$names_next_round"
  11784. names_next_round=
  11785. for name in $names_this_round; do
  11786. already_handled=
  11787. for n in $names_already_handled; do
  11788. if test "$n" = "$name"; then
  11789. already_handled=yes
  11790. break
  11791. fi
  11792. done
  11793. if test -z "$already_handled"; then
  11794. names_already_handled="$names_already_handled $name"
  11795. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11796. eval value=\"\$HAVE_LIB$uppername\"
  11797. if test -n "$value"; then
  11798. if test "$value" = yes; then
  11799. eval value=\"\$LIB$uppername\"
  11800. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11801. eval value=\"\$LTLIB$uppername\"
  11802. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11803. else
  11804. :
  11805. fi
  11806. else
  11807. found_dir=
  11808. found_la=
  11809. found_so=
  11810. found_a=
  11811. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11812. if test -n "$acl_shlibext"; then
  11813. shrext=".$acl_shlibext" # typically: shrext=.so
  11814. else
  11815. shrext=
  11816. fi
  11817. if test $use_additional = yes; then
  11818. dir="$additional_libdir"
  11819. if test -n "$acl_shlibext"; then
  11820. if test -f "$dir/$libname$shrext"; then
  11821. found_dir="$dir"
  11822. found_so="$dir/$libname$shrext"
  11823. else
  11824. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11825. ver=`(cd "$dir" && \
  11826. for f in "$libname$shrext".*; do echo "$f"; done \
  11827. | sed -e "s,^$libname$shrext\\\\.,," \
  11828. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11829. | sed 1q ) 2>/dev/null`
  11830. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11831. found_dir="$dir"
  11832. found_so="$dir/$libname$shrext.$ver"
  11833. fi
  11834. else
  11835. eval library_names=\"$acl_library_names_spec\"
  11836. for f in $library_names; do
  11837. if test -f "$dir/$f"; then
  11838. found_dir="$dir"
  11839. found_so="$dir/$f"
  11840. break
  11841. fi
  11842. done
  11843. fi
  11844. fi
  11845. fi
  11846. if test "X$found_dir" = "X"; then
  11847. if test -f "$dir/$libname.$acl_libext"; then
  11848. found_dir="$dir"
  11849. found_a="$dir/$libname.$acl_libext"
  11850. fi
  11851. fi
  11852. if test "X$found_dir" != "X"; then
  11853. if test -f "$dir/$libname.la"; then
  11854. found_la="$dir/$libname.la"
  11855. fi
  11856. fi
  11857. fi
  11858. if test "X$found_dir" = "X"; then
  11859. for x in $LDFLAGS $LTLIBICONV; do
  11860. acl_save_prefix="$prefix"
  11861. prefix="$acl_final_prefix"
  11862. acl_save_exec_prefix="$exec_prefix"
  11863. exec_prefix="$acl_final_exec_prefix"
  11864. eval x=\"$x\"
  11865. exec_prefix="$acl_save_exec_prefix"
  11866. prefix="$acl_save_prefix"
  11867. case "$x" in
  11868. -L*)
  11869. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11870. if test -n "$acl_shlibext"; then
  11871. if test -f "$dir/$libname$shrext"; then
  11872. found_dir="$dir"
  11873. found_so="$dir/$libname$shrext"
  11874. else
  11875. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11876. ver=`(cd "$dir" && \
  11877. for f in "$libname$shrext".*; do echo "$f"; done \
  11878. | sed -e "s,^$libname$shrext\\\\.,," \
  11879. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11880. | sed 1q ) 2>/dev/null`
  11881. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11882. found_dir="$dir"
  11883. found_so="$dir/$libname$shrext.$ver"
  11884. fi
  11885. else
  11886. eval library_names=\"$acl_library_names_spec\"
  11887. for f in $library_names; do
  11888. if test -f "$dir/$f"; then
  11889. found_dir="$dir"
  11890. found_so="$dir/$f"
  11891. break
  11892. fi
  11893. done
  11894. fi
  11895. fi
  11896. fi
  11897. if test "X$found_dir" = "X"; then
  11898. if test -f "$dir/$libname.$acl_libext"; then
  11899. found_dir="$dir"
  11900. found_a="$dir/$libname.$acl_libext"
  11901. fi
  11902. fi
  11903. if test "X$found_dir" != "X"; then
  11904. if test -f "$dir/$libname.la"; then
  11905. found_la="$dir/$libname.la"
  11906. fi
  11907. fi
  11908. ;;
  11909. esac
  11910. if test "X$found_dir" != "X"; then
  11911. break
  11912. fi
  11913. done
  11914. fi
  11915. if test "X$found_dir" != "X"; then
  11916. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11917. if test "X$found_so" != "X"; then
  11918. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11919. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11920. else
  11921. haveit=
  11922. for x in $ltrpathdirs; do
  11923. if test "X$x" = "X$found_dir"; then
  11924. haveit=yes
  11925. break
  11926. fi
  11927. done
  11928. if test -z "$haveit"; then
  11929. ltrpathdirs="$ltrpathdirs $found_dir"
  11930. fi
  11931. if test "$acl_hardcode_direct" = yes; then
  11932. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11933. else
  11934. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11935. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11936. haveit=
  11937. for x in $rpathdirs; do
  11938. if test "X$x" = "X$found_dir"; then
  11939. haveit=yes
  11940. break
  11941. fi
  11942. done
  11943. if test -z "$haveit"; then
  11944. rpathdirs="$rpathdirs $found_dir"
  11945. fi
  11946. else
  11947. haveit=
  11948. for x in $LDFLAGS $LIBICONV; do
  11949. acl_save_prefix="$prefix"
  11950. prefix="$acl_final_prefix"
  11951. acl_save_exec_prefix="$exec_prefix"
  11952. exec_prefix="$acl_final_exec_prefix"
  11953. eval x=\"$x\"
  11954. exec_prefix="$acl_save_exec_prefix"
  11955. prefix="$acl_save_prefix"
  11956. if test "X$x" = "X-L$found_dir"; then
  11957. haveit=yes
  11958. break
  11959. fi
  11960. done
  11961. if test -z "$haveit"; then
  11962. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11963. fi
  11964. if test "$acl_hardcode_minus_L" != no; then
  11965. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11966. else
  11967. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11968. fi
  11969. fi
  11970. fi
  11971. fi
  11972. else
  11973. if test "X$found_a" != "X"; then
  11974. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11975. else
  11976. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11977. fi
  11978. fi
  11979. additional_includedir=
  11980. case "$found_dir" in
  11981. */$acl_libdirstem | */$acl_libdirstem/)
  11982. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11983. LIBICONV_PREFIX="$basedir"
  11984. additional_includedir="$basedir/include"
  11985. ;;
  11986. esac
  11987. if test "X$additional_includedir" != "X"; then
  11988. if test "X$additional_includedir" != "X/usr/include"; then
  11989. haveit=
  11990. if test "X$additional_includedir" = "X/usr/local/include"; then
  11991. if test -n "$GCC"; then
  11992. case $host_os in
  11993. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11994. esac
  11995. fi
  11996. fi
  11997. if test -z "$haveit"; then
  11998. for x in $CPPFLAGS $INCICONV; do
  11999. acl_save_prefix="$prefix"
  12000. prefix="$acl_final_prefix"
  12001. acl_save_exec_prefix="$exec_prefix"
  12002. exec_prefix="$acl_final_exec_prefix"
  12003. eval x=\"$x\"
  12004. exec_prefix="$acl_save_exec_prefix"
  12005. prefix="$acl_save_prefix"
  12006. if test "X$x" = "X-I$additional_includedir"; then
  12007. haveit=yes
  12008. break
  12009. fi
  12010. done
  12011. if test -z "$haveit"; then
  12012. if test -d "$additional_includedir"; then
  12013. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12014. fi
  12015. fi
  12016. fi
  12017. fi
  12018. fi
  12019. if test -n "$found_la"; then
  12020. save_libdir="$libdir"
  12021. case "$found_la" in
  12022. */* | *\\*) . "$found_la" ;;
  12023. *) . "./$found_la" ;;
  12024. esac
  12025. libdir="$save_libdir"
  12026. for dep in $dependency_libs; do
  12027. case "$dep" in
  12028. -L*)
  12029. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12030. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12031. haveit=
  12032. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12033. if test -n "$GCC"; then
  12034. case $host_os in
  12035. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12036. esac
  12037. fi
  12038. fi
  12039. if test -z "$haveit"; then
  12040. haveit=
  12041. for x in $LDFLAGS $LIBICONV; do
  12042. acl_save_prefix="$prefix"
  12043. prefix="$acl_final_prefix"
  12044. acl_save_exec_prefix="$exec_prefix"
  12045. exec_prefix="$acl_final_exec_prefix"
  12046. eval x=\"$x\"
  12047. exec_prefix="$acl_save_exec_prefix"
  12048. prefix="$acl_save_prefix"
  12049. if test "X$x" = "X-L$additional_libdir"; then
  12050. haveit=yes
  12051. break
  12052. fi
  12053. done
  12054. if test -z "$haveit"; then
  12055. if test -d "$additional_libdir"; then
  12056. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12057. fi
  12058. fi
  12059. haveit=
  12060. for x in $LDFLAGS $LTLIBICONV; do
  12061. acl_save_prefix="$prefix"
  12062. prefix="$acl_final_prefix"
  12063. acl_save_exec_prefix="$exec_prefix"
  12064. exec_prefix="$acl_final_exec_prefix"
  12065. eval x=\"$x\"
  12066. exec_prefix="$acl_save_exec_prefix"
  12067. prefix="$acl_save_prefix"
  12068. if test "X$x" = "X-L$additional_libdir"; then
  12069. haveit=yes
  12070. break
  12071. fi
  12072. done
  12073. if test -z "$haveit"; then
  12074. if test -d "$additional_libdir"; then
  12075. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12076. fi
  12077. fi
  12078. fi
  12079. fi
  12080. ;;
  12081. -R*)
  12082. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12083. if test "$enable_rpath" != no; then
  12084. haveit=
  12085. for x in $rpathdirs; do
  12086. if test "X$x" = "X$dir"; then
  12087. haveit=yes
  12088. break
  12089. fi
  12090. done
  12091. if test -z "$haveit"; then
  12092. rpathdirs="$rpathdirs $dir"
  12093. fi
  12094. haveit=
  12095. for x in $ltrpathdirs; do
  12096. if test "X$x" = "X$dir"; then
  12097. haveit=yes
  12098. break
  12099. fi
  12100. done
  12101. if test -z "$haveit"; then
  12102. ltrpathdirs="$ltrpathdirs $dir"
  12103. fi
  12104. fi
  12105. ;;
  12106. -l*)
  12107. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12108. ;;
  12109. *.la)
  12110. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12111. ;;
  12112. *)
  12113. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12114. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12115. ;;
  12116. esac
  12117. done
  12118. fi
  12119. else
  12120. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12121. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12122. fi
  12123. fi
  12124. fi
  12125. done
  12126. done
  12127. if test "X$rpathdirs" != "X"; then
  12128. if test -n "$acl_hardcode_libdir_separator"; then
  12129. alldirs=
  12130. for found_dir in $rpathdirs; do
  12131. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12132. done
  12133. acl_save_libdir="$libdir"
  12134. libdir="$alldirs"
  12135. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12136. libdir="$acl_save_libdir"
  12137. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12138. else
  12139. for found_dir in $rpathdirs; do
  12140. acl_save_libdir="$libdir"
  12141. libdir="$found_dir"
  12142. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12143. libdir="$acl_save_libdir"
  12144. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12145. done
  12146. fi
  12147. fi
  12148. if test "X$ltrpathdirs" != "X"; then
  12149. for found_dir in $ltrpathdirs; do
  12150. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12151. done
  12152. fi
  12153. cat >conftest.$ac_ext <<_ACEOF
  12154. /* confdefs.h. */
  12155. _ACEOF
  12156. cat confdefs.h >>conftest.$ac_ext
  12157. cat >>conftest.$ac_ext <<_ACEOF
  12158. /* end confdefs.h. */
  12159. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12160. int
  12161. main ()
  12162. {
  12163. ;
  12164. return 0;
  12165. }
  12166. _ACEOF
  12167. rm -f conftest.$ac_objext conftest$ac_exeext
  12168. if { (ac_try="$ac_link"
  12169. case "(($ac_try" in
  12170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12171. *) ac_try_echo=$ac_try;;
  12172. esac
  12173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12174. (eval "$ac_link") 2>conftest.er1
  12175. ac_status=$?
  12176. grep -v '^ *+' conftest.er1 >conftest.err
  12177. rm -f conftest.er1
  12178. cat conftest.err >&5
  12179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12180. (exit $ac_status); } && {
  12181. test -z "$ac_cxx_werror_flag" ||
  12182. test ! -s conftest.err
  12183. } && test -s conftest$ac_exeext &&
  12184. $as_test_x conftest$ac_exeext; then
  12185. cat >>confdefs.h <<\_ACEOF
  12186. #define HAVE_BUILTIN_EXPECT 1
  12187. _ACEOF
  12188. else
  12189. echo "$as_me: failed program was:" >&5
  12190. sed 's/^/| /' conftest.$ac_ext >&5
  12191. fi
  12192. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12193. conftest$ac_exeext conftest.$ac_ext
  12194. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12195. do
  12196. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12197. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12198. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12199. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12200. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12201. echo $ECHO_N "(cached) $ECHO_C" >&6
  12202. fi
  12203. ac_res=`eval echo '${'$as_ac_Header'}'`
  12204. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12205. echo "${ECHO_T}$ac_res" >&6; }
  12206. else
  12207. # Is the header compilable?
  12208. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12209. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12210. cat >conftest.$ac_ext <<_ACEOF
  12211. /* confdefs.h. */
  12212. _ACEOF
  12213. cat confdefs.h >>conftest.$ac_ext
  12214. cat >>conftest.$ac_ext <<_ACEOF
  12215. /* end confdefs.h. */
  12216. $ac_includes_default
  12217. #include <$ac_header>
  12218. _ACEOF
  12219. rm -f conftest.$ac_objext
  12220. if { (ac_try="$ac_compile"
  12221. case "(($ac_try" in
  12222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12223. *) ac_try_echo=$ac_try;;
  12224. esac
  12225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12226. (eval "$ac_compile") 2>conftest.er1
  12227. ac_status=$?
  12228. grep -v '^ *+' conftest.er1 >conftest.err
  12229. rm -f conftest.er1
  12230. cat conftest.err >&5
  12231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12232. (exit $ac_status); } && {
  12233. test -z "$ac_cxx_werror_flag" ||
  12234. test ! -s conftest.err
  12235. } && test -s conftest.$ac_objext; then
  12236. ac_header_compiler=yes
  12237. else
  12238. echo "$as_me: failed program was:" >&5
  12239. sed 's/^/| /' conftest.$ac_ext >&5
  12240. ac_header_compiler=no
  12241. fi
  12242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12243. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12244. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12245. # Is the header present?
  12246. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12247. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12248. cat >conftest.$ac_ext <<_ACEOF
  12249. /* confdefs.h. */
  12250. _ACEOF
  12251. cat confdefs.h >>conftest.$ac_ext
  12252. cat >>conftest.$ac_ext <<_ACEOF
  12253. /* end confdefs.h. */
  12254. #include <$ac_header>
  12255. _ACEOF
  12256. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12257. case "(($ac_try" in
  12258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12259. *) ac_try_echo=$ac_try;;
  12260. esac
  12261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12262. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12263. ac_status=$?
  12264. grep -v '^ *+' conftest.er1 >conftest.err
  12265. rm -f conftest.er1
  12266. cat conftest.err >&5
  12267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12268. (exit $ac_status); } >/dev/null && {
  12269. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12270. test ! -s conftest.err
  12271. }; then
  12272. ac_header_preproc=yes
  12273. else
  12274. echo "$as_me: failed program was:" >&5
  12275. sed 's/^/| /' conftest.$ac_ext >&5
  12276. ac_header_preproc=no
  12277. fi
  12278. rm -f conftest.err conftest.$ac_ext
  12279. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12280. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12281. # So? What about this header?
  12282. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12283. yes:no: )
  12284. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12285. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12286. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12287. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12288. ac_header_preproc=yes
  12289. ;;
  12290. no:yes:* )
  12291. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12292. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12293. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12294. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12295. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12296. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12297. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12298. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12299. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12300. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12301. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12302. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12303. ( cat <<\_ASBOX
  12304. ## ----------------------------------------------- ##
  12305. ## Report this to t-tujikawa@users.sourceforge.net ##
  12306. ## ----------------------------------------------- ##
  12307. _ASBOX
  12308. ) | sed "s/^/$as_me: WARNING: /" >&2
  12309. ;;
  12310. esac
  12311. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12312. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12313. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12314. echo $ECHO_N "(cached) $ECHO_C" >&6
  12315. else
  12316. eval "$as_ac_Header=\$ac_header_preproc"
  12317. fi
  12318. ac_res=`eval echo '${'$as_ac_Header'}'`
  12319. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12320. echo "${ECHO_T}$ac_res" >&6; }
  12321. fi
  12322. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12323. cat >>confdefs.h <<_ACEOF
  12324. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12325. _ACEOF
  12326. fi
  12327. done
  12328. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12329. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12330. argz_next __fsetlocking
  12331. do
  12332. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12333. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12334. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12335. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12336. echo $ECHO_N "(cached) $ECHO_C" >&6
  12337. else
  12338. cat >conftest.$ac_ext <<_ACEOF
  12339. /* confdefs.h. */
  12340. _ACEOF
  12341. cat confdefs.h >>conftest.$ac_ext
  12342. cat >>conftest.$ac_ext <<_ACEOF
  12343. /* end confdefs.h. */
  12344. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12345. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12346. #define $ac_func innocuous_$ac_func
  12347. /* System header to define __stub macros and hopefully few prototypes,
  12348. which can conflict with char $ac_func (); below.
  12349. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12350. <limits.h> exists even on freestanding compilers. */
  12351. #ifdef __STDC__
  12352. # include <limits.h>
  12353. #else
  12354. # include <assert.h>
  12355. #endif
  12356. #undef $ac_func
  12357. /* Override any GCC internal prototype to avoid an error.
  12358. Use char because int might match the return type of a GCC
  12359. builtin and then its argument prototype would still apply. */
  12360. #ifdef __cplusplus
  12361. extern "C"
  12362. #endif
  12363. char $ac_func ();
  12364. /* The GNU C library defines this for functions which it implements
  12365. to always fail with ENOSYS. Some functions are actually named
  12366. something starting with __ and the normal name is an alias. */
  12367. #if defined __stub_$ac_func || defined __stub___$ac_func
  12368. choke me
  12369. #endif
  12370. int
  12371. main ()
  12372. {
  12373. return $ac_func ();
  12374. ;
  12375. return 0;
  12376. }
  12377. _ACEOF
  12378. rm -f conftest.$ac_objext conftest$ac_exeext
  12379. if { (ac_try="$ac_link"
  12380. case "(($ac_try" in
  12381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12382. *) ac_try_echo=$ac_try;;
  12383. esac
  12384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12385. (eval "$ac_link") 2>conftest.er1
  12386. ac_status=$?
  12387. grep -v '^ *+' conftest.er1 >conftest.err
  12388. rm -f conftest.er1
  12389. cat conftest.err >&5
  12390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12391. (exit $ac_status); } && {
  12392. test -z "$ac_cxx_werror_flag" ||
  12393. test ! -s conftest.err
  12394. } && test -s conftest$ac_exeext &&
  12395. $as_test_x conftest$ac_exeext; then
  12396. eval "$as_ac_var=yes"
  12397. else
  12398. echo "$as_me: failed program was:" >&5
  12399. sed 's/^/| /' conftest.$ac_ext >&5
  12400. eval "$as_ac_var=no"
  12401. fi
  12402. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12403. conftest$ac_exeext conftest.$ac_ext
  12404. fi
  12405. ac_res=`eval echo '${'$as_ac_var'}'`
  12406. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12407. echo "${ECHO_T}$ac_res" >&6; }
  12408. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12409. cat >>confdefs.h <<_ACEOF
  12410. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12411. _ACEOF
  12412. fi
  12413. done
  12414. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12415. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12416. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12417. echo $ECHO_N "(cached) $ECHO_C" >&6
  12418. else
  12419. cat >conftest.$ac_ext <<_ACEOF
  12420. /* confdefs.h. */
  12421. _ACEOF
  12422. cat confdefs.h >>conftest.$ac_ext
  12423. cat >>conftest.$ac_ext <<_ACEOF
  12424. /* end confdefs.h. */
  12425. #include <stdio.h>
  12426. int
  12427. main ()
  12428. {
  12429. #ifndef feof_unlocked
  12430. char *p = (char *) feof_unlocked;
  12431. #endif
  12432. ;
  12433. return 0;
  12434. }
  12435. _ACEOF
  12436. rm -f conftest.$ac_objext
  12437. if { (ac_try="$ac_compile"
  12438. case "(($ac_try" in
  12439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12440. *) ac_try_echo=$ac_try;;
  12441. esac
  12442. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12443. (eval "$ac_compile") 2>conftest.er1
  12444. ac_status=$?
  12445. grep -v '^ *+' conftest.er1 >conftest.err
  12446. rm -f conftest.er1
  12447. cat conftest.err >&5
  12448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12449. (exit $ac_status); } && {
  12450. test -z "$ac_cxx_werror_flag" ||
  12451. test ! -s conftest.err
  12452. } && test -s conftest.$ac_objext; then
  12453. ac_cv_have_decl_feof_unlocked=yes
  12454. else
  12455. echo "$as_me: failed program was:" >&5
  12456. sed 's/^/| /' conftest.$ac_ext >&5
  12457. ac_cv_have_decl_feof_unlocked=no
  12458. fi
  12459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12460. fi
  12461. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12462. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12463. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12464. gt_value=1
  12465. else
  12466. gt_value=0
  12467. fi
  12468. cat >>confdefs.h <<_ACEOF
  12469. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12470. _ACEOF
  12471. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12472. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12473. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12474. echo $ECHO_N "(cached) $ECHO_C" >&6
  12475. else
  12476. cat >conftest.$ac_ext <<_ACEOF
  12477. /* confdefs.h. */
  12478. _ACEOF
  12479. cat confdefs.h >>conftest.$ac_ext
  12480. cat >>conftest.$ac_ext <<_ACEOF
  12481. /* end confdefs.h. */
  12482. #include <stdio.h>
  12483. int
  12484. main ()
  12485. {
  12486. #ifndef fgets_unlocked
  12487. char *p = (char *) fgets_unlocked;
  12488. #endif
  12489. ;
  12490. return 0;
  12491. }
  12492. _ACEOF
  12493. rm -f conftest.$ac_objext
  12494. if { (ac_try="$ac_compile"
  12495. case "(($ac_try" in
  12496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12497. *) ac_try_echo=$ac_try;;
  12498. esac
  12499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12500. (eval "$ac_compile") 2>conftest.er1
  12501. ac_status=$?
  12502. grep -v '^ *+' conftest.er1 >conftest.err
  12503. rm -f conftest.er1
  12504. cat conftest.err >&5
  12505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12506. (exit $ac_status); } && {
  12507. test -z "$ac_cxx_werror_flag" ||
  12508. test ! -s conftest.err
  12509. } && test -s conftest.$ac_objext; then
  12510. ac_cv_have_decl_fgets_unlocked=yes
  12511. else
  12512. echo "$as_me: failed program was:" >&5
  12513. sed 's/^/| /' conftest.$ac_ext >&5
  12514. ac_cv_have_decl_fgets_unlocked=no
  12515. fi
  12516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12517. fi
  12518. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12519. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12520. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12521. gt_value=1
  12522. else
  12523. gt_value=0
  12524. fi
  12525. cat >>confdefs.h <<_ACEOF
  12526. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12527. _ACEOF
  12528. am_save_CPPFLAGS="$CPPFLAGS"
  12529. for element in $INCICONV; do
  12530. haveit=
  12531. for x in $CPPFLAGS; do
  12532. acl_save_prefix="$prefix"
  12533. prefix="$acl_final_prefix"
  12534. acl_save_exec_prefix="$exec_prefix"
  12535. exec_prefix="$acl_final_exec_prefix"
  12536. eval x=\"$x\"
  12537. exec_prefix="$acl_save_exec_prefix"
  12538. prefix="$acl_save_prefix"
  12539. if test "X$x" = "X$element"; then
  12540. haveit=yes
  12541. break
  12542. fi
  12543. done
  12544. if test -z "$haveit"; then
  12545. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12546. fi
  12547. done
  12548. { echo "$as_me:$LINENO: checking for iconv" >&5
  12549. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12550. if test "${am_cv_func_iconv+set}" = set; then
  12551. echo $ECHO_N "(cached) $ECHO_C" >&6
  12552. else
  12553. am_cv_func_iconv="no, consider installing GNU libiconv"
  12554. am_cv_lib_iconv=no
  12555. cat >conftest.$ac_ext <<_ACEOF
  12556. /* confdefs.h. */
  12557. _ACEOF
  12558. cat confdefs.h >>conftest.$ac_ext
  12559. cat >>conftest.$ac_ext <<_ACEOF
  12560. /* end confdefs.h. */
  12561. #include <stdlib.h>
  12562. #include <iconv.h>
  12563. int
  12564. main ()
  12565. {
  12566. iconv_t cd = iconv_open("","");
  12567. iconv(cd,NULL,NULL,NULL,NULL);
  12568. iconv_close(cd);
  12569. ;
  12570. return 0;
  12571. }
  12572. _ACEOF
  12573. rm -f conftest.$ac_objext conftest$ac_exeext
  12574. if { (ac_try="$ac_link"
  12575. case "(($ac_try" in
  12576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12577. *) ac_try_echo=$ac_try;;
  12578. esac
  12579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12580. (eval "$ac_link") 2>conftest.er1
  12581. ac_status=$?
  12582. grep -v '^ *+' conftest.er1 >conftest.err
  12583. rm -f conftest.er1
  12584. cat conftest.err >&5
  12585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12586. (exit $ac_status); } && {
  12587. test -z "$ac_cxx_werror_flag" ||
  12588. test ! -s conftest.err
  12589. } && test -s conftest$ac_exeext &&
  12590. $as_test_x conftest$ac_exeext; then
  12591. am_cv_func_iconv=yes
  12592. else
  12593. echo "$as_me: failed program was:" >&5
  12594. sed 's/^/| /' conftest.$ac_ext >&5
  12595. fi
  12596. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12597. conftest$ac_exeext conftest.$ac_ext
  12598. if test "$am_cv_func_iconv" != yes; then
  12599. am_save_LIBS="$LIBS"
  12600. LIBS="$LIBS $LIBICONV"
  12601. cat >conftest.$ac_ext <<_ACEOF
  12602. /* confdefs.h. */
  12603. _ACEOF
  12604. cat confdefs.h >>conftest.$ac_ext
  12605. cat >>conftest.$ac_ext <<_ACEOF
  12606. /* end confdefs.h. */
  12607. #include <stdlib.h>
  12608. #include <iconv.h>
  12609. int
  12610. main ()
  12611. {
  12612. iconv_t cd = iconv_open("","");
  12613. iconv(cd,NULL,NULL,NULL,NULL);
  12614. iconv_close(cd);
  12615. ;
  12616. return 0;
  12617. }
  12618. _ACEOF
  12619. rm -f conftest.$ac_objext conftest$ac_exeext
  12620. if { (ac_try="$ac_link"
  12621. case "(($ac_try" in
  12622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12623. *) ac_try_echo=$ac_try;;
  12624. esac
  12625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12626. (eval "$ac_link") 2>conftest.er1
  12627. ac_status=$?
  12628. grep -v '^ *+' conftest.er1 >conftest.err
  12629. rm -f conftest.er1
  12630. cat conftest.err >&5
  12631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12632. (exit $ac_status); } && {
  12633. test -z "$ac_cxx_werror_flag" ||
  12634. test ! -s conftest.err
  12635. } && test -s conftest$ac_exeext &&
  12636. $as_test_x conftest$ac_exeext; then
  12637. am_cv_lib_iconv=yes
  12638. am_cv_func_iconv=yes
  12639. else
  12640. echo "$as_me: failed program was:" >&5
  12641. sed 's/^/| /' conftest.$ac_ext >&5
  12642. fi
  12643. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12644. conftest$ac_exeext conftest.$ac_ext
  12645. LIBS="$am_save_LIBS"
  12646. fi
  12647. fi
  12648. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12649. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12650. if test "$am_cv_func_iconv" = yes; then
  12651. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12652. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12653. if test "${am_cv_func_iconv_works+set}" = set; then
  12654. echo $ECHO_N "(cached) $ECHO_C" >&6
  12655. else
  12656. am_save_LIBS="$LIBS"
  12657. if test $am_cv_lib_iconv = yes; then
  12658. LIBS="$LIBS $LIBICONV"
  12659. fi
  12660. if test "$cross_compiling" = yes; then
  12661. case "$host_os" in
  12662. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12663. *) am_cv_func_iconv_works="guessing yes" ;;
  12664. esac
  12665. else
  12666. cat >conftest.$ac_ext <<_ACEOF
  12667. /* confdefs.h. */
  12668. _ACEOF
  12669. cat confdefs.h >>conftest.$ac_ext
  12670. cat >>conftest.$ac_ext <<_ACEOF
  12671. /* end confdefs.h. */
  12672. #include <iconv.h>
  12673. #include <string.h>
  12674. int main ()
  12675. {
  12676. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12677. returns. */
  12678. {
  12679. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12680. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12681. {
  12682. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12683. char buf[10];
  12684. const char *inptr = input;
  12685. size_t inbytesleft = strlen (input);
  12686. char *outptr = buf;
  12687. size_t outbytesleft = sizeof (buf);
  12688. size_t res = iconv (cd_utf8_to_88591,
  12689. (char **) &inptr, &inbytesleft,
  12690. &outptr, &outbytesleft);
  12691. if (res == 0)
  12692. return 1;
  12693. }
  12694. }
  12695. #if 0 /* This bug could be worked around by the caller. */
  12696. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12697. {
  12698. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12699. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12700. {
  12701. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12702. char buf[50];
  12703. const char *inptr = input;
  12704. size_t inbytesleft = strlen (input);
  12705. char *outptr = buf;
  12706. size_t outbytesleft = sizeof (buf);
  12707. size_t res = iconv (cd_88591_to_utf8,
  12708. (char **) &inptr, &inbytesleft,
  12709. &outptr, &outbytesleft);
  12710. if ((int)res > 0)
  12711. return 1;
  12712. }
  12713. }
  12714. #endif
  12715. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12716. provided. */
  12717. if (/* Try standardized names. */
  12718. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12719. /* Try IRIX, OSF/1 names. */
  12720. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12721. /* Try AIX names. */
  12722. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12723. /* Try HP-UX names. */
  12724. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12725. return 1;
  12726. return 0;
  12727. }
  12728. _ACEOF
  12729. rm -f conftest$ac_exeext
  12730. if { (ac_try="$ac_link"
  12731. case "(($ac_try" in
  12732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12733. *) ac_try_echo=$ac_try;;
  12734. esac
  12735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12736. (eval "$ac_link") 2>&5
  12737. ac_status=$?
  12738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12739. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12740. { (case "(($ac_try" in
  12741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12742. *) ac_try_echo=$ac_try;;
  12743. esac
  12744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12745. (eval "$ac_try") 2>&5
  12746. ac_status=$?
  12747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12748. (exit $ac_status); }; }; then
  12749. am_cv_func_iconv_works=yes
  12750. else
  12751. echo "$as_me: program exited with status $ac_status" >&5
  12752. echo "$as_me: failed program was:" >&5
  12753. sed 's/^/| /' conftest.$ac_ext >&5
  12754. ( exit $ac_status )
  12755. am_cv_func_iconv_works=no
  12756. fi
  12757. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12758. fi
  12759. LIBS="$am_save_LIBS"
  12760. fi
  12761. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12762. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12763. case "$am_cv_func_iconv_works" in
  12764. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12765. *) am_func_iconv=yes ;;
  12766. esac
  12767. else
  12768. am_func_iconv=no am_cv_lib_iconv=no
  12769. fi
  12770. if test "$am_func_iconv" = yes; then
  12771. cat >>confdefs.h <<\_ACEOF
  12772. #define HAVE_ICONV 1
  12773. _ACEOF
  12774. fi
  12775. if test "$am_cv_lib_iconv" = yes; then
  12776. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12777. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12778. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12779. echo "${ECHO_T}$LIBICONV" >&6; }
  12780. else
  12781. CPPFLAGS="$am_save_CPPFLAGS"
  12782. LIBICONV=
  12783. LTLIBICONV=
  12784. fi
  12785. if test "$am_cv_func_iconv" = yes; then
  12786. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12787. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12788. if test "${am_cv_proto_iconv+set}" = set; then
  12789. echo $ECHO_N "(cached) $ECHO_C" >&6
  12790. else
  12791. cat >conftest.$ac_ext <<_ACEOF
  12792. /* confdefs.h. */
  12793. _ACEOF
  12794. cat confdefs.h >>conftest.$ac_ext
  12795. cat >>conftest.$ac_ext <<_ACEOF
  12796. /* end confdefs.h. */
  12797. #include <stdlib.h>
  12798. #include <iconv.h>
  12799. extern
  12800. #ifdef __cplusplus
  12801. "C"
  12802. #endif
  12803. #if defined(__STDC__) || defined(__cplusplus)
  12804. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12805. #else
  12806. size_t iconv();
  12807. #endif
  12808. int
  12809. main ()
  12810. {
  12811. ;
  12812. return 0;
  12813. }
  12814. _ACEOF
  12815. rm -f conftest.$ac_objext
  12816. if { (ac_try="$ac_compile"
  12817. case "(($ac_try" in
  12818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12819. *) ac_try_echo=$ac_try;;
  12820. esac
  12821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12822. (eval "$ac_compile") 2>conftest.er1
  12823. ac_status=$?
  12824. grep -v '^ *+' conftest.er1 >conftest.err
  12825. rm -f conftest.er1
  12826. cat conftest.err >&5
  12827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12828. (exit $ac_status); } && {
  12829. test -z "$ac_cxx_werror_flag" ||
  12830. test ! -s conftest.err
  12831. } && test -s conftest.$ac_objext; then
  12832. am_cv_proto_iconv_arg1=""
  12833. else
  12834. echo "$as_me: failed program was:" >&5
  12835. sed 's/^/| /' conftest.$ac_ext >&5
  12836. am_cv_proto_iconv_arg1="const"
  12837. fi
  12838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12839. 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);"
  12840. fi
  12841. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12842. { echo "$as_me:$LINENO: result: ${ac_t:-
  12843. }$am_cv_proto_iconv" >&5
  12844. echo "${ECHO_T}${ac_t:-
  12845. }$am_cv_proto_iconv" >&6; }
  12846. cat >>confdefs.h <<_ACEOF
  12847. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12848. _ACEOF
  12849. fi
  12850. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12851. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12852. if test "${gt_cv_nl_locale_name+set}" = set; then
  12853. echo $ECHO_N "(cached) $ECHO_C" >&6
  12854. else
  12855. cat >conftest.$ac_ext <<_ACEOF
  12856. /* confdefs.h. */
  12857. _ACEOF
  12858. cat confdefs.h >>conftest.$ac_ext
  12859. cat >>conftest.$ac_ext <<_ACEOF
  12860. /* end confdefs.h. */
  12861. #include <langinfo.h>
  12862. #include <locale.h>
  12863. int
  12864. main ()
  12865. {
  12866. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12867. return !cs;
  12868. ;
  12869. return 0;
  12870. }
  12871. _ACEOF
  12872. rm -f conftest.$ac_objext conftest$ac_exeext
  12873. if { (ac_try="$ac_link"
  12874. case "(($ac_try" in
  12875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12876. *) ac_try_echo=$ac_try;;
  12877. esac
  12878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12879. (eval "$ac_link") 2>conftest.er1
  12880. ac_status=$?
  12881. grep -v '^ *+' conftest.er1 >conftest.err
  12882. rm -f conftest.er1
  12883. cat conftest.err >&5
  12884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12885. (exit $ac_status); } && {
  12886. test -z "$ac_cxx_werror_flag" ||
  12887. test ! -s conftest.err
  12888. } && test -s conftest$ac_exeext &&
  12889. $as_test_x conftest$ac_exeext; then
  12890. gt_cv_nl_locale_name=yes
  12891. else
  12892. echo "$as_me: failed program was:" >&5
  12893. sed 's/^/| /' conftest.$ac_ext >&5
  12894. gt_cv_nl_locale_name=no
  12895. fi
  12896. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12897. conftest$ac_exeext conftest.$ac_ext
  12898. fi
  12899. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12900. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12901. if test $gt_cv_nl_locale_name = yes; then
  12902. cat >>confdefs.h <<\_ACEOF
  12903. #define HAVE_NL_LOCALE_NAME 1
  12904. _ACEOF
  12905. fi
  12906. for ac_prog in bison
  12907. do
  12908. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12909. set dummy $ac_prog; ac_word=$2
  12910. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12911. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12912. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12913. echo $ECHO_N "(cached) $ECHO_C" >&6
  12914. else
  12915. if test -n "$INTLBISON"; then
  12916. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12917. else
  12918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12919. for as_dir in $PATH
  12920. do
  12921. IFS=$as_save_IFS
  12922. test -z "$as_dir" && as_dir=.
  12923. for ac_exec_ext in '' $ac_executable_extensions; do
  12924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12925. ac_cv_prog_INTLBISON="$ac_prog"
  12926. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12927. break 2
  12928. fi
  12929. done
  12930. done
  12931. IFS=$as_save_IFS
  12932. fi
  12933. fi
  12934. INTLBISON=$ac_cv_prog_INTLBISON
  12935. if test -n "$INTLBISON"; then
  12936. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12937. echo "${ECHO_T}$INTLBISON" >&6; }
  12938. else
  12939. { echo "$as_me:$LINENO: result: no" >&5
  12940. echo "${ECHO_T}no" >&6; }
  12941. fi
  12942. test -n "$INTLBISON" && break
  12943. done
  12944. if test -z "$INTLBISON"; then
  12945. ac_verc_fail=yes
  12946. else
  12947. { echo "$as_me:$LINENO: checking version of bison" >&5
  12948. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12949. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12950. case $ac_prog_version in
  12951. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12952. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12953. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12954. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12955. esac
  12956. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12957. echo "${ECHO_T}$ac_prog_version" >&6; }
  12958. fi
  12959. if test $ac_verc_fail = yes; then
  12960. INTLBISON=:
  12961. fi
  12962. { echo "$as_me:$LINENO: checking for long long int" >&5
  12963. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12964. if test "${ac_cv_type_long_long_int+set}" = set; then
  12965. echo $ECHO_N "(cached) $ECHO_C" >&6
  12966. else
  12967. cat >conftest.$ac_ext <<_ACEOF
  12968. /* confdefs.h. */
  12969. _ACEOF
  12970. cat confdefs.h >>conftest.$ac_ext
  12971. cat >>conftest.$ac_ext <<_ACEOF
  12972. /* end confdefs.h. */
  12973. /* Test preprocessor. */
  12974. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12975. error in preprocessor;
  12976. #endif
  12977. #if ! (18446744073709551615ULL <= -1ull)
  12978. error in preprocessor;
  12979. #endif
  12980. /* Test literals. */
  12981. long long int ll = 9223372036854775807ll;
  12982. long long int nll = -9223372036854775807LL;
  12983. unsigned long long int ull = 18446744073709551615ULL;
  12984. /* Test constant expressions. */
  12985. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12986. ? 1 : -1)];
  12987. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12988. ? 1 : -1)];
  12989. int i = 63;
  12990. int
  12991. main ()
  12992. {
  12993. /* Test availability of runtime routines for shift and division. */
  12994. long long int llmax = 9223372036854775807ll;
  12995. unsigned long long int ullmax = 18446744073709551615ull;
  12996. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12997. | (llmax / ll) | (llmax % ll)
  12998. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12999. | (ullmax / ull) | (ullmax % ull));
  13000. ;
  13001. return 0;
  13002. }
  13003. _ACEOF
  13004. rm -f conftest.$ac_objext conftest$ac_exeext
  13005. if { (ac_try="$ac_link"
  13006. case "(($ac_try" in
  13007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13008. *) ac_try_echo=$ac_try;;
  13009. esac
  13010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13011. (eval "$ac_link") 2>conftest.er1
  13012. ac_status=$?
  13013. grep -v '^ *+' conftest.er1 >conftest.err
  13014. rm -f conftest.er1
  13015. cat conftest.err >&5
  13016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13017. (exit $ac_status); } && {
  13018. test -z "$ac_cxx_werror_flag" ||
  13019. test ! -s conftest.err
  13020. } && test -s conftest$ac_exeext &&
  13021. $as_test_x conftest$ac_exeext; then
  13022. if test "$cross_compiling" = yes; then
  13023. ac_cv_type_long_long_int=yes
  13024. else
  13025. cat >conftest.$ac_ext <<_ACEOF
  13026. /* confdefs.h. */
  13027. _ACEOF
  13028. cat confdefs.h >>conftest.$ac_ext
  13029. cat >>conftest.$ac_ext <<_ACEOF
  13030. /* end confdefs.h. */
  13031. #include <limits.h>
  13032. #ifndef LLONG_MAX
  13033. # define HALF \
  13034. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13035. # define LLONG_MAX (HALF - 1 + HALF)
  13036. #endif
  13037. int
  13038. main ()
  13039. {
  13040. long long int n = 1;
  13041. int i;
  13042. for (i = 0; ; i++)
  13043. {
  13044. long long int m = n << i;
  13045. if (m >> i != n)
  13046. return 1;
  13047. if (LLONG_MAX / 2 < m)
  13048. break;
  13049. }
  13050. return 0;
  13051. ;
  13052. return 0;
  13053. }
  13054. _ACEOF
  13055. rm -f conftest$ac_exeext
  13056. if { (ac_try="$ac_link"
  13057. case "(($ac_try" in
  13058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13059. *) ac_try_echo=$ac_try;;
  13060. esac
  13061. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13062. (eval "$ac_link") 2>&5
  13063. ac_status=$?
  13064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13065. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13066. { (case "(($ac_try" in
  13067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13068. *) ac_try_echo=$ac_try;;
  13069. esac
  13070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13071. (eval "$ac_try") 2>&5
  13072. ac_status=$?
  13073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13074. (exit $ac_status); }; }; then
  13075. ac_cv_type_long_long_int=yes
  13076. else
  13077. echo "$as_me: program exited with status $ac_status" >&5
  13078. echo "$as_me: failed program was:" >&5
  13079. sed 's/^/| /' conftest.$ac_ext >&5
  13080. ( exit $ac_status )
  13081. ac_cv_type_long_long_int=no
  13082. fi
  13083. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13084. fi
  13085. else
  13086. echo "$as_me: failed program was:" >&5
  13087. sed 's/^/| /' conftest.$ac_ext >&5
  13088. ac_cv_type_long_long_int=no
  13089. fi
  13090. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13091. conftest$ac_exeext conftest.$ac_ext
  13092. fi
  13093. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13094. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13095. if test $ac_cv_type_long_long_int = yes; then
  13096. cat >>confdefs.h <<\_ACEOF
  13097. #define HAVE_LONG_LONG_INT 1
  13098. _ACEOF
  13099. fi
  13100. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13101. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13102. if test "${gt_cv_c_wchar_t+set}" = set; then
  13103. echo $ECHO_N "(cached) $ECHO_C" >&6
  13104. else
  13105. cat >conftest.$ac_ext <<_ACEOF
  13106. /* confdefs.h. */
  13107. _ACEOF
  13108. cat confdefs.h >>conftest.$ac_ext
  13109. cat >>conftest.$ac_ext <<_ACEOF
  13110. /* end confdefs.h. */
  13111. #include <stddef.h>
  13112. wchar_t foo = (wchar_t)'\0';
  13113. int
  13114. main ()
  13115. {
  13116. ;
  13117. return 0;
  13118. }
  13119. _ACEOF
  13120. rm -f conftest.$ac_objext
  13121. if { (ac_try="$ac_compile"
  13122. case "(($ac_try" in
  13123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13124. *) ac_try_echo=$ac_try;;
  13125. esac
  13126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13127. (eval "$ac_compile") 2>conftest.er1
  13128. ac_status=$?
  13129. grep -v '^ *+' conftest.er1 >conftest.err
  13130. rm -f conftest.er1
  13131. cat conftest.err >&5
  13132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13133. (exit $ac_status); } && {
  13134. test -z "$ac_cxx_werror_flag" ||
  13135. test ! -s conftest.err
  13136. } && test -s conftest.$ac_objext; then
  13137. gt_cv_c_wchar_t=yes
  13138. else
  13139. echo "$as_me: failed program was:" >&5
  13140. sed 's/^/| /' conftest.$ac_ext >&5
  13141. gt_cv_c_wchar_t=no
  13142. fi
  13143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13144. fi
  13145. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13146. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13147. if test $gt_cv_c_wchar_t = yes; then
  13148. cat >>confdefs.h <<\_ACEOF
  13149. #define HAVE_WCHAR_T 1
  13150. _ACEOF
  13151. fi
  13152. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13153. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13154. if test "${gt_cv_c_wint_t+set}" = set; then
  13155. echo $ECHO_N "(cached) $ECHO_C" >&6
  13156. else
  13157. cat >conftest.$ac_ext <<_ACEOF
  13158. /* confdefs.h. */
  13159. _ACEOF
  13160. cat confdefs.h >>conftest.$ac_ext
  13161. cat >>conftest.$ac_ext <<_ACEOF
  13162. /* end confdefs.h. */
  13163. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13164. <wchar.h>.
  13165. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13166. before <wchar.h>. */
  13167. #include <stddef.h>
  13168. #include <stdio.h>
  13169. #include <time.h>
  13170. #include <wchar.h>
  13171. wint_t foo = (wchar_t)'\0';
  13172. int
  13173. main ()
  13174. {
  13175. ;
  13176. return 0;
  13177. }
  13178. _ACEOF
  13179. rm -f conftest.$ac_objext
  13180. if { (ac_try="$ac_compile"
  13181. case "(($ac_try" in
  13182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13183. *) ac_try_echo=$ac_try;;
  13184. esac
  13185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13186. (eval "$ac_compile") 2>conftest.er1
  13187. ac_status=$?
  13188. grep -v '^ *+' conftest.er1 >conftest.err
  13189. rm -f conftest.er1
  13190. cat conftest.err >&5
  13191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13192. (exit $ac_status); } && {
  13193. test -z "$ac_cxx_werror_flag" ||
  13194. test ! -s conftest.err
  13195. } && test -s conftest.$ac_objext; then
  13196. gt_cv_c_wint_t=yes
  13197. else
  13198. echo "$as_me: failed program was:" >&5
  13199. sed 's/^/| /' conftest.$ac_ext >&5
  13200. gt_cv_c_wint_t=no
  13201. fi
  13202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13203. fi
  13204. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13205. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13206. if test $gt_cv_c_wint_t = yes; then
  13207. cat >>confdefs.h <<\_ACEOF
  13208. #define HAVE_WINT_T 1
  13209. _ACEOF
  13210. fi
  13211. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13212. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13213. if test "${gt_cv_c_intmax_t+set}" = set; then
  13214. echo $ECHO_N "(cached) $ECHO_C" >&6
  13215. else
  13216. cat >conftest.$ac_ext <<_ACEOF
  13217. /* confdefs.h. */
  13218. _ACEOF
  13219. cat confdefs.h >>conftest.$ac_ext
  13220. cat >>conftest.$ac_ext <<_ACEOF
  13221. /* end confdefs.h. */
  13222. #include <stddef.h>
  13223. #include <stdlib.h>
  13224. #if HAVE_STDINT_H_WITH_UINTMAX
  13225. #include <stdint.h>
  13226. #endif
  13227. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13228. #include <inttypes.h>
  13229. #endif
  13230. int
  13231. main ()
  13232. {
  13233. intmax_t x = -1;
  13234. return !x;
  13235. ;
  13236. return 0;
  13237. }
  13238. _ACEOF
  13239. rm -f conftest.$ac_objext
  13240. if { (ac_try="$ac_compile"
  13241. case "(($ac_try" in
  13242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13243. *) ac_try_echo=$ac_try;;
  13244. esac
  13245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13246. (eval "$ac_compile") 2>conftest.er1
  13247. ac_status=$?
  13248. grep -v '^ *+' conftest.er1 >conftest.err
  13249. rm -f conftest.er1
  13250. cat conftest.err >&5
  13251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13252. (exit $ac_status); } && {
  13253. test -z "$ac_cxx_werror_flag" ||
  13254. test ! -s conftest.err
  13255. } && test -s conftest.$ac_objext; then
  13256. gt_cv_c_intmax_t=yes
  13257. else
  13258. echo "$as_me: failed program was:" >&5
  13259. sed 's/^/| /' conftest.$ac_ext >&5
  13260. gt_cv_c_intmax_t=no
  13261. fi
  13262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13263. fi
  13264. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13265. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13266. if test $gt_cv_c_intmax_t = yes; then
  13267. cat >>confdefs.h <<\_ACEOF
  13268. #define HAVE_INTMAX_T 1
  13269. _ACEOF
  13270. fi
  13271. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13272. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13273. if test "${gt_cv_func_printf_posix+set}" = set; then
  13274. echo $ECHO_N "(cached) $ECHO_C" >&6
  13275. else
  13276. if test "$cross_compiling" = yes; then
  13277. cat >conftest.$ac_ext <<_ACEOF
  13278. /* confdefs.h. */
  13279. _ACEOF
  13280. cat confdefs.h >>conftest.$ac_ext
  13281. cat >>conftest.$ac_ext <<_ACEOF
  13282. /* end confdefs.h. */
  13283. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13284. notposix
  13285. #endif
  13286. _ACEOF
  13287. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13288. $EGREP "notposix" >/dev/null 2>&1; then
  13289. gt_cv_func_printf_posix="guessing no"
  13290. else
  13291. gt_cv_func_printf_posix="guessing yes"
  13292. fi
  13293. rm -f conftest*
  13294. else
  13295. cat >conftest.$ac_ext <<_ACEOF
  13296. /* confdefs.h. */
  13297. _ACEOF
  13298. cat confdefs.h >>conftest.$ac_ext
  13299. cat >>conftest.$ac_ext <<_ACEOF
  13300. /* end confdefs.h. */
  13301. #include <stdio.h>
  13302. #include <string.h>
  13303. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13304. dollar expansion (possibly an autoconf bug). */
  13305. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13306. static char buf[100];
  13307. int main ()
  13308. {
  13309. sprintf (buf, format, 33, 55);
  13310. return (strcmp (buf, "55 33") != 0);
  13311. }
  13312. _ACEOF
  13313. rm -f conftest$ac_exeext
  13314. if { (ac_try="$ac_link"
  13315. case "(($ac_try" in
  13316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13317. *) ac_try_echo=$ac_try;;
  13318. esac
  13319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13320. (eval "$ac_link") 2>&5
  13321. ac_status=$?
  13322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13323. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13324. { (case "(($ac_try" in
  13325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13326. *) ac_try_echo=$ac_try;;
  13327. esac
  13328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13329. (eval "$ac_try") 2>&5
  13330. ac_status=$?
  13331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13332. (exit $ac_status); }; }; then
  13333. gt_cv_func_printf_posix=yes
  13334. else
  13335. echo "$as_me: program exited with status $ac_status" >&5
  13336. echo "$as_me: failed program was:" >&5
  13337. sed 's/^/| /' conftest.$ac_ext >&5
  13338. ( exit $ac_status )
  13339. gt_cv_func_printf_posix=no
  13340. fi
  13341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13342. fi
  13343. fi
  13344. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13345. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13346. case $gt_cv_func_printf_posix in
  13347. *yes)
  13348. cat >>confdefs.h <<\_ACEOF
  13349. #define HAVE_POSIX_PRINTF 1
  13350. _ACEOF
  13351. ;;
  13352. esac
  13353. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13354. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13355. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13356. echo $ECHO_N "(cached) $ECHO_C" >&6
  13357. else
  13358. cat >conftest.$ac_ext <<_ACEOF
  13359. /* confdefs.h. */
  13360. _ACEOF
  13361. cat confdefs.h >>conftest.$ac_ext
  13362. cat >>conftest.$ac_ext <<_ACEOF
  13363. /* end confdefs.h. */
  13364. #include <features.h>
  13365. #ifdef __GNU_LIBRARY__
  13366. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13367. Lucky GNU user
  13368. #endif
  13369. #endif
  13370. _ACEOF
  13371. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13372. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13373. ac_cv_gnu_library_2_1=yes
  13374. else
  13375. ac_cv_gnu_library_2_1=no
  13376. fi
  13377. rm -f conftest*
  13378. fi
  13379. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13380. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13381. GLIBC21="$ac_cv_gnu_library_2_1"
  13382. for ac_header in stdint.h
  13383. do
  13384. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13385. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13386. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13387. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13388. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13389. echo $ECHO_N "(cached) $ECHO_C" >&6
  13390. fi
  13391. ac_res=`eval echo '${'$as_ac_Header'}'`
  13392. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13393. echo "${ECHO_T}$ac_res" >&6; }
  13394. else
  13395. # Is the header compilable?
  13396. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13397. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13398. cat >conftest.$ac_ext <<_ACEOF
  13399. /* confdefs.h. */
  13400. _ACEOF
  13401. cat confdefs.h >>conftest.$ac_ext
  13402. cat >>conftest.$ac_ext <<_ACEOF
  13403. /* end confdefs.h. */
  13404. $ac_includes_default
  13405. #include <$ac_header>
  13406. _ACEOF
  13407. rm -f conftest.$ac_objext
  13408. if { (ac_try="$ac_compile"
  13409. case "(($ac_try" in
  13410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13411. *) ac_try_echo=$ac_try;;
  13412. esac
  13413. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13414. (eval "$ac_compile") 2>conftest.er1
  13415. ac_status=$?
  13416. grep -v '^ *+' conftest.er1 >conftest.err
  13417. rm -f conftest.er1
  13418. cat conftest.err >&5
  13419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13420. (exit $ac_status); } && {
  13421. test -z "$ac_cxx_werror_flag" ||
  13422. test ! -s conftest.err
  13423. } && test -s conftest.$ac_objext; then
  13424. ac_header_compiler=yes
  13425. else
  13426. echo "$as_me: failed program was:" >&5
  13427. sed 's/^/| /' conftest.$ac_ext >&5
  13428. ac_header_compiler=no
  13429. fi
  13430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13431. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13432. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13433. # Is the header present?
  13434. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13435. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13436. cat >conftest.$ac_ext <<_ACEOF
  13437. /* confdefs.h. */
  13438. _ACEOF
  13439. cat confdefs.h >>conftest.$ac_ext
  13440. cat >>conftest.$ac_ext <<_ACEOF
  13441. /* end confdefs.h. */
  13442. #include <$ac_header>
  13443. _ACEOF
  13444. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13445. case "(($ac_try" in
  13446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13447. *) ac_try_echo=$ac_try;;
  13448. esac
  13449. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13450. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13451. ac_status=$?
  13452. grep -v '^ *+' conftest.er1 >conftest.err
  13453. rm -f conftest.er1
  13454. cat conftest.err >&5
  13455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13456. (exit $ac_status); } >/dev/null && {
  13457. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13458. test ! -s conftest.err
  13459. }; then
  13460. ac_header_preproc=yes
  13461. else
  13462. echo "$as_me: failed program was:" >&5
  13463. sed 's/^/| /' conftest.$ac_ext >&5
  13464. ac_header_preproc=no
  13465. fi
  13466. rm -f conftest.err conftest.$ac_ext
  13467. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13468. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13469. # So? What about this header?
  13470. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13471. yes:no: )
  13472. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13473. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13474. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13475. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13476. ac_header_preproc=yes
  13477. ;;
  13478. no:yes:* )
  13479. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13480. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13481. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13482. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13483. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13484. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13485. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13486. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13487. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13488. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13489. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13490. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13491. ( cat <<\_ASBOX
  13492. ## ----------------------------------------------- ##
  13493. ## Report this to t-tujikawa@users.sourceforge.net ##
  13494. ## ----------------------------------------------- ##
  13495. _ASBOX
  13496. ) | sed "s/^/$as_me: WARNING: /" >&2
  13497. ;;
  13498. esac
  13499. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13500. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13501. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13502. echo $ECHO_N "(cached) $ECHO_C" >&6
  13503. else
  13504. eval "$as_ac_Header=\$ac_header_preproc"
  13505. fi
  13506. ac_res=`eval echo '${'$as_ac_Header'}'`
  13507. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13508. echo "${ECHO_T}$ac_res" >&6; }
  13509. fi
  13510. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13511. cat >>confdefs.h <<_ACEOF
  13512. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13513. _ACEOF
  13514. fi
  13515. done
  13516. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13517. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13518. if test "${gl_cv_size_max+set}" = set; then
  13519. echo $ECHO_N "(cached) $ECHO_C" >&6
  13520. else
  13521. gl_cv_size_max=
  13522. cat >conftest.$ac_ext <<_ACEOF
  13523. /* confdefs.h. */
  13524. _ACEOF
  13525. cat confdefs.h >>conftest.$ac_ext
  13526. cat >>conftest.$ac_ext <<_ACEOF
  13527. /* end confdefs.h. */
  13528. #include <limits.h>
  13529. #if HAVE_STDINT_H
  13530. #include <stdint.h>
  13531. #endif
  13532. #ifdef SIZE_MAX
  13533. Found it
  13534. #endif
  13535. _ACEOF
  13536. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13537. $EGREP "Found it" >/dev/null 2>&1; then
  13538. gl_cv_size_max=yes
  13539. fi
  13540. rm -f conftest*
  13541. if test -z "$gl_cv_size_max"; then
  13542. if test "$cross_compiling" = yes; then
  13543. # Depending upon the size, compute the lo and hi bounds.
  13544. cat >conftest.$ac_ext <<_ACEOF
  13545. /* confdefs.h. */
  13546. _ACEOF
  13547. cat confdefs.h >>conftest.$ac_ext
  13548. cat >>conftest.$ac_ext <<_ACEOF
  13549. /* end confdefs.h. */
  13550. #include <stddef.h>
  13551. #include <limits.h>
  13552. int
  13553. main ()
  13554. {
  13555. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13556. test_array [0] = 0
  13557. ;
  13558. return 0;
  13559. }
  13560. _ACEOF
  13561. rm -f conftest.$ac_objext
  13562. if { (ac_try="$ac_compile"
  13563. case "(($ac_try" in
  13564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13565. *) ac_try_echo=$ac_try;;
  13566. esac
  13567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13568. (eval "$ac_compile") 2>conftest.er1
  13569. ac_status=$?
  13570. grep -v '^ *+' conftest.er1 >conftest.err
  13571. rm -f conftest.er1
  13572. cat conftest.err >&5
  13573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13574. (exit $ac_status); } && {
  13575. test -z "$ac_cxx_werror_flag" ||
  13576. test ! -s conftest.err
  13577. } && test -s conftest.$ac_objext; then
  13578. ac_lo=0 ac_mid=0
  13579. while :; do
  13580. cat >conftest.$ac_ext <<_ACEOF
  13581. /* confdefs.h. */
  13582. _ACEOF
  13583. cat confdefs.h >>conftest.$ac_ext
  13584. cat >>conftest.$ac_ext <<_ACEOF
  13585. /* end confdefs.h. */
  13586. #include <stddef.h>
  13587. #include <limits.h>
  13588. int
  13589. main ()
  13590. {
  13591. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13592. test_array [0] = 0
  13593. ;
  13594. return 0;
  13595. }
  13596. _ACEOF
  13597. rm -f conftest.$ac_objext
  13598. if { (ac_try="$ac_compile"
  13599. case "(($ac_try" in
  13600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13601. *) ac_try_echo=$ac_try;;
  13602. esac
  13603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13604. (eval "$ac_compile") 2>conftest.er1
  13605. ac_status=$?
  13606. grep -v '^ *+' conftest.er1 >conftest.err
  13607. rm -f conftest.er1
  13608. cat conftest.err >&5
  13609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13610. (exit $ac_status); } && {
  13611. test -z "$ac_cxx_werror_flag" ||
  13612. test ! -s conftest.err
  13613. } && test -s conftest.$ac_objext; then
  13614. ac_hi=$ac_mid; break
  13615. else
  13616. echo "$as_me: failed program was:" >&5
  13617. sed 's/^/| /' conftest.$ac_ext >&5
  13618. ac_lo=`expr $ac_mid + 1`
  13619. if test $ac_lo -le $ac_mid; then
  13620. ac_lo= ac_hi=
  13621. break
  13622. fi
  13623. ac_mid=`expr 2 '*' $ac_mid + 1`
  13624. fi
  13625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13626. done
  13627. else
  13628. echo "$as_me: failed program was:" >&5
  13629. sed 's/^/| /' conftest.$ac_ext >&5
  13630. cat >conftest.$ac_ext <<_ACEOF
  13631. /* confdefs.h. */
  13632. _ACEOF
  13633. cat confdefs.h >>conftest.$ac_ext
  13634. cat >>conftest.$ac_ext <<_ACEOF
  13635. /* end confdefs.h. */
  13636. #include <stddef.h>
  13637. #include <limits.h>
  13638. int
  13639. main ()
  13640. {
  13641. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13642. test_array [0] = 0
  13643. ;
  13644. return 0;
  13645. }
  13646. _ACEOF
  13647. rm -f conftest.$ac_objext
  13648. if { (ac_try="$ac_compile"
  13649. case "(($ac_try" in
  13650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13651. *) ac_try_echo=$ac_try;;
  13652. esac
  13653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13654. (eval "$ac_compile") 2>conftest.er1
  13655. ac_status=$?
  13656. grep -v '^ *+' conftest.er1 >conftest.err
  13657. rm -f conftest.er1
  13658. cat conftest.err >&5
  13659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13660. (exit $ac_status); } && {
  13661. test -z "$ac_cxx_werror_flag" ||
  13662. test ! -s conftest.err
  13663. } && test -s conftest.$ac_objext; then
  13664. ac_hi=-1 ac_mid=-1
  13665. while :; do
  13666. cat >conftest.$ac_ext <<_ACEOF
  13667. /* confdefs.h. */
  13668. _ACEOF
  13669. cat confdefs.h >>conftest.$ac_ext
  13670. cat >>conftest.$ac_ext <<_ACEOF
  13671. /* end confdefs.h. */
  13672. #include <stddef.h>
  13673. #include <limits.h>
  13674. int
  13675. main ()
  13676. {
  13677. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13678. test_array [0] = 0
  13679. ;
  13680. return 0;
  13681. }
  13682. _ACEOF
  13683. rm -f conftest.$ac_objext
  13684. if { (ac_try="$ac_compile"
  13685. case "(($ac_try" in
  13686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13687. *) ac_try_echo=$ac_try;;
  13688. esac
  13689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13690. (eval "$ac_compile") 2>conftest.er1
  13691. ac_status=$?
  13692. grep -v '^ *+' conftest.er1 >conftest.err
  13693. rm -f conftest.er1
  13694. cat conftest.err >&5
  13695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13696. (exit $ac_status); } && {
  13697. test -z "$ac_cxx_werror_flag" ||
  13698. test ! -s conftest.err
  13699. } && test -s conftest.$ac_objext; then
  13700. ac_lo=$ac_mid; break
  13701. else
  13702. echo "$as_me: failed program was:" >&5
  13703. sed 's/^/| /' conftest.$ac_ext >&5
  13704. ac_hi=`expr '(' $ac_mid ')' - 1`
  13705. if test $ac_mid -le $ac_hi; then
  13706. ac_lo= ac_hi=
  13707. break
  13708. fi
  13709. ac_mid=`expr 2 '*' $ac_mid`
  13710. fi
  13711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13712. done
  13713. else
  13714. echo "$as_me: failed program was:" >&5
  13715. sed 's/^/| /' conftest.$ac_ext >&5
  13716. ac_lo= ac_hi=
  13717. fi
  13718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13719. fi
  13720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13721. # Binary search between lo and hi bounds.
  13722. while test "x$ac_lo" != "x$ac_hi"; do
  13723. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13724. cat >conftest.$ac_ext <<_ACEOF
  13725. /* confdefs.h. */
  13726. _ACEOF
  13727. cat confdefs.h >>conftest.$ac_ext
  13728. cat >>conftest.$ac_ext <<_ACEOF
  13729. /* end confdefs.h. */
  13730. #include <stddef.h>
  13731. #include <limits.h>
  13732. int
  13733. main ()
  13734. {
  13735. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13736. test_array [0] = 0
  13737. ;
  13738. return 0;
  13739. }
  13740. _ACEOF
  13741. rm -f conftest.$ac_objext
  13742. if { (ac_try="$ac_compile"
  13743. case "(($ac_try" in
  13744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13745. *) ac_try_echo=$ac_try;;
  13746. esac
  13747. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13748. (eval "$ac_compile") 2>conftest.er1
  13749. ac_status=$?
  13750. grep -v '^ *+' conftest.er1 >conftest.err
  13751. rm -f conftest.er1
  13752. cat conftest.err >&5
  13753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13754. (exit $ac_status); } && {
  13755. test -z "$ac_cxx_werror_flag" ||
  13756. test ! -s conftest.err
  13757. } && test -s conftest.$ac_objext; then
  13758. ac_hi=$ac_mid
  13759. else
  13760. echo "$as_me: failed program was:" >&5
  13761. sed 's/^/| /' conftest.$ac_ext >&5
  13762. ac_lo=`expr '(' $ac_mid ')' + 1`
  13763. fi
  13764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13765. done
  13766. case $ac_lo in
  13767. ?*) size_t_bits_minus_1=$ac_lo;;
  13768. '') size_t_bits_minus_1= ;;
  13769. esac
  13770. else
  13771. cat >conftest.$ac_ext <<_ACEOF
  13772. /* confdefs.h. */
  13773. _ACEOF
  13774. cat confdefs.h >>conftest.$ac_ext
  13775. cat >>conftest.$ac_ext <<_ACEOF
  13776. /* end confdefs.h. */
  13777. #include <stddef.h>
  13778. #include <limits.h>
  13779. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13780. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13781. #include <stdio.h>
  13782. #include <stdlib.h>
  13783. int
  13784. main ()
  13785. {
  13786. FILE *f = fopen ("conftest.val", "w");
  13787. if (! f)
  13788. return 1;
  13789. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13790. {
  13791. long int i = longval ();
  13792. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13793. return 1;
  13794. fprintf (f, "%ld\n", i);
  13795. }
  13796. else
  13797. {
  13798. unsigned long int i = ulongval ();
  13799. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13800. return 1;
  13801. fprintf (f, "%lu\n", i);
  13802. }
  13803. return ferror (f) || fclose (f) != 0;
  13804. ;
  13805. return 0;
  13806. }
  13807. _ACEOF
  13808. rm -f conftest$ac_exeext
  13809. if { (ac_try="$ac_link"
  13810. case "(($ac_try" in
  13811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13812. *) ac_try_echo=$ac_try;;
  13813. esac
  13814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13815. (eval "$ac_link") 2>&5
  13816. ac_status=$?
  13817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13818. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  13825. ac_status=$?
  13826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13827. (exit $ac_status); }; }; then
  13828. size_t_bits_minus_1=`cat conftest.val`
  13829. else
  13830. echo "$as_me: program exited with status $ac_status" >&5
  13831. echo "$as_me: failed program was:" >&5
  13832. sed 's/^/| /' conftest.$ac_ext >&5
  13833. ( exit $ac_status )
  13834. size_t_bits_minus_1=
  13835. fi
  13836. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13837. fi
  13838. rm -f conftest.val
  13839. if test "$cross_compiling" = yes; then
  13840. # Depending upon the size, compute the lo and hi bounds.
  13841. cat >conftest.$ac_ext <<_ACEOF
  13842. /* confdefs.h. */
  13843. _ACEOF
  13844. cat confdefs.h >>conftest.$ac_ext
  13845. cat >>conftest.$ac_ext <<_ACEOF
  13846. /* end confdefs.h. */
  13847. #include <stddef.h>
  13848. int
  13849. main ()
  13850. {
  13851. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13852. test_array [0] = 0
  13853. ;
  13854. return 0;
  13855. }
  13856. _ACEOF
  13857. rm -f conftest.$ac_objext
  13858. if { (ac_try="$ac_compile"
  13859. case "(($ac_try" in
  13860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13861. *) ac_try_echo=$ac_try;;
  13862. esac
  13863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13864. (eval "$ac_compile") 2>conftest.er1
  13865. ac_status=$?
  13866. grep -v '^ *+' conftest.er1 >conftest.err
  13867. rm -f conftest.er1
  13868. cat conftest.err >&5
  13869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13870. (exit $ac_status); } && {
  13871. test -z "$ac_cxx_werror_flag" ||
  13872. test ! -s conftest.err
  13873. } && test -s conftest.$ac_objext; then
  13874. ac_lo=0 ac_mid=0
  13875. while :; do
  13876. cat >conftest.$ac_ext <<_ACEOF
  13877. /* confdefs.h. */
  13878. _ACEOF
  13879. cat confdefs.h >>conftest.$ac_ext
  13880. cat >>conftest.$ac_ext <<_ACEOF
  13881. /* end confdefs.h. */
  13882. #include <stddef.h>
  13883. int
  13884. main ()
  13885. {
  13886. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13887. test_array [0] = 0
  13888. ;
  13889. return 0;
  13890. }
  13891. _ACEOF
  13892. rm -f conftest.$ac_objext
  13893. if { (ac_try="$ac_compile"
  13894. case "(($ac_try" in
  13895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13896. *) ac_try_echo=$ac_try;;
  13897. esac
  13898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13899. (eval "$ac_compile") 2>conftest.er1
  13900. ac_status=$?
  13901. grep -v '^ *+' conftest.er1 >conftest.err
  13902. rm -f conftest.er1
  13903. cat conftest.err >&5
  13904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13905. (exit $ac_status); } && {
  13906. test -z "$ac_cxx_werror_flag" ||
  13907. test ! -s conftest.err
  13908. } && test -s conftest.$ac_objext; then
  13909. ac_hi=$ac_mid; break
  13910. else
  13911. echo "$as_me: failed program was:" >&5
  13912. sed 's/^/| /' conftest.$ac_ext >&5
  13913. ac_lo=`expr $ac_mid + 1`
  13914. if test $ac_lo -le $ac_mid; then
  13915. ac_lo= ac_hi=
  13916. break
  13917. fi
  13918. ac_mid=`expr 2 '*' $ac_mid + 1`
  13919. fi
  13920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13921. done
  13922. else
  13923. echo "$as_me: failed program was:" >&5
  13924. sed 's/^/| /' conftest.$ac_ext >&5
  13925. cat >conftest.$ac_ext <<_ACEOF
  13926. /* confdefs.h. */
  13927. _ACEOF
  13928. cat confdefs.h >>conftest.$ac_ext
  13929. cat >>conftest.$ac_ext <<_ACEOF
  13930. /* end confdefs.h. */
  13931. #include <stddef.h>
  13932. int
  13933. main ()
  13934. {
  13935. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13936. test_array [0] = 0
  13937. ;
  13938. return 0;
  13939. }
  13940. _ACEOF
  13941. rm -f conftest.$ac_objext
  13942. if { (ac_try="$ac_compile"
  13943. case "(($ac_try" in
  13944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13945. *) ac_try_echo=$ac_try;;
  13946. esac
  13947. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13948. (eval "$ac_compile") 2>conftest.er1
  13949. ac_status=$?
  13950. grep -v '^ *+' conftest.er1 >conftest.err
  13951. rm -f conftest.er1
  13952. cat conftest.err >&5
  13953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13954. (exit $ac_status); } && {
  13955. test -z "$ac_cxx_werror_flag" ||
  13956. test ! -s conftest.err
  13957. } && test -s conftest.$ac_objext; then
  13958. ac_hi=-1 ac_mid=-1
  13959. while :; do
  13960. cat >conftest.$ac_ext <<_ACEOF
  13961. /* confdefs.h. */
  13962. _ACEOF
  13963. cat confdefs.h >>conftest.$ac_ext
  13964. cat >>conftest.$ac_ext <<_ACEOF
  13965. /* end confdefs.h. */
  13966. #include <stddef.h>
  13967. int
  13968. main ()
  13969. {
  13970. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13971. test_array [0] = 0
  13972. ;
  13973. return 0;
  13974. }
  13975. _ACEOF
  13976. rm -f conftest.$ac_objext
  13977. if { (ac_try="$ac_compile"
  13978. case "(($ac_try" in
  13979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13980. *) ac_try_echo=$ac_try;;
  13981. esac
  13982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13983. (eval "$ac_compile") 2>conftest.er1
  13984. ac_status=$?
  13985. grep -v '^ *+' conftest.er1 >conftest.err
  13986. rm -f conftest.er1
  13987. cat conftest.err >&5
  13988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13989. (exit $ac_status); } && {
  13990. test -z "$ac_cxx_werror_flag" ||
  13991. test ! -s conftest.err
  13992. } && test -s conftest.$ac_objext; then
  13993. ac_lo=$ac_mid; break
  13994. else
  13995. echo "$as_me: failed program was:" >&5
  13996. sed 's/^/| /' conftest.$ac_ext >&5
  13997. ac_hi=`expr '(' $ac_mid ')' - 1`
  13998. if test $ac_mid -le $ac_hi; then
  13999. ac_lo= ac_hi=
  14000. break
  14001. fi
  14002. ac_mid=`expr 2 '*' $ac_mid`
  14003. fi
  14004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14005. done
  14006. else
  14007. echo "$as_me: failed program was:" >&5
  14008. sed 's/^/| /' conftest.$ac_ext >&5
  14009. ac_lo= ac_hi=
  14010. fi
  14011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14012. fi
  14013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14014. # Binary search between lo and hi bounds.
  14015. while test "x$ac_lo" != "x$ac_hi"; do
  14016. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14017. cat >conftest.$ac_ext <<_ACEOF
  14018. /* confdefs.h. */
  14019. _ACEOF
  14020. cat confdefs.h >>conftest.$ac_ext
  14021. cat >>conftest.$ac_ext <<_ACEOF
  14022. /* end confdefs.h. */
  14023. #include <stddef.h>
  14024. int
  14025. main ()
  14026. {
  14027. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14028. test_array [0] = 0
  14029. ;
  14030. return 0;
  14031. }
  14032. _ACEOF
  14033. rm -f conftest.$ac_objext
  14034. if { (ac_try="$ac_compile"
  14035. case "(($ac_try" in
  14036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14037. *) ac_try_echo=$ac_try;;
  14038. esac
  14039. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14040. (eval "$ac_compile") 2>conftest.er1
  14041. ac_status=$?
  14042. grep -v '^ *+' conftest.er1 >conftest.err
  14043. rm -f conftest.er1
  14044. cat conftest.err >&5
  14045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14046. (exit $ac_status); } && {
  14047. test -z "$ac_cxx_werror_flag" ||
  14048. test ! -s conftest.err
  14049. } && test -s conftest.$ac_objext; then
  14050. ac_hi=$ac_mid
  14051. else
  14052. echo "$as_me: failed program was:" >&5
  14053. sed 's/^/| /' conftest.$ac_ext >&5
  14054. ac_lo=`expr '(' $ac_mid ')' + 1`
  14055. fi
  14056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14057. done
  14058. case $ac_lo in
  14059. ?*) fits_in_uint=$ac_lo;;
  14060. '') fits_in_uint= ;;
  14061. esac
  14062. else
  14063. cat >conftest.$ac_ext <<_ACEOF
  14064. /* confdefs.h. */
  14065. _ACEOF
  14066. cat confdefs.h >>conftest.$ac_ext
  14067. cat >>conftest.$ac_ext <<_ACEOF
  14068. /* end confdefs.h. */
  14069. #include <stddef.h>
  14070. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14071. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14072. #include <stdio.h>
  14073. #include <stdlib.h>
  14074. int
  14075. main ()
  14076. {
  14077. FILE *f = fopen ("conftest.val", "w");
  14078. if (! f)
  14079. return 1;
  14080. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14081. {
  14082. long int i = longval ();
  14083. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14084. return 1;
  14085. fprintf (f, "%ld\n", i);
  14086. }
  14087. else
  14088. {
  14089. unsigned long int i = ulongval ();
  14090. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14091. return 1;
  14092. fprintf (f, "%lu\n", i);
  14093. }
  14094. return ferror (f) || fclose (f) != 0;
  14095. ;
  14096. return 0;
  14097. }
  14098. _ACEOF
  14099. rm -f conftest$ac_exeext
  14100. if { (ac_try="$ac_link"
  14101. case "(($ac_try" in
  14102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14103. *) ac_try_echo=$ac_try;;
  14104. esac
  14105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14106. (eval "$ac_link") 2>&5
  14107. ac_status=$?
  14108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14109. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14110. { (case "(($ac_try" in
  14111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14112. *) ac_try_echo=$ac_try;;
  14113. esac
  14114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14115. (eval "$ac_try") 2>&5
  14116. ac_status=$?
  14117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14118. (exit $ac_status); }; }; then
  14119. fits_in_uint=`cat conftest.val`
  14120. else
  14121. echo "$as_me: program exited with status $ac_status" >&5
  14122. echo "$as_me: failed program was:" >&5
  14123. sed 's/^/| /' conftest.$ac_ext >&5
  14124. ( exit $ac_status )
  14125. fits_in_uint=
  14126. fi
  14127. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14128. fi
  14129. rm -f conftest.val
  14130. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14131. if test $fits_in_uint = 1; then
  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. extern size_t foo;
  14140. extern unsigned long foo;
  14141. int
  14142. main ()
  14143. {
  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. fits_in_uint=0
  14166. else
  14167. echo "$as_me: failed program was:" >&5
  14168. sed 's/^/| /' conftest.$ac_ext >&5
  14169. fi
  14170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14171. fi
  14172. if test $fits_in_uint = 1; then
  14173. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14174. else
  14175. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14176. fi
  14177. else
  14178. gl_cv_size_max='((size_t)~(size_t)0)'
  14179. fi
  14180. fi
  14181. fi
  14182. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14183. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14184. if test "$gl_cv_size_max" != yes; then
  14185. cat >>confdefs.h <<_ACEOF
  14186. #define SIZE_MAX $gl_cv_size_max
  14187. _ACEOF
  14188. fi
  14189. for ac_header in stdint.h
  14190. do
  14191. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14192. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14193. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14194. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14195. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14196. echo $ECHO_N "(cached) $ECHO_C" >&6
  14197. fi
  14198. ac_res=`eval echo '${'$as_ac_Header'}'`
  14199. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14200. echo "${ECHO_T}$ac_res" >&6; }
  14201. else
  14202. # Is the header compilable?
  14203. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14204. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14205. cat >conftest.$ac_ext <<_ACEOF
  14206. /* confdefs.h. */
  14207. _ACEOF
  14208. cat confdefs.h >>conftest.$ac_ext
  14209. cat >>conftest.$ac_ext <<_ACEOF
  14210. /* end confdefs.h. */
  14211. $ac_includes_default
  14212. #include <$ac_header>
  14213. _ACEOF
  14214. rm -f conftest.$ac_objext
  14215. if { (ac_try="$ac_compile"
  14216. case "(($ac_try" in
  14217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14218. *) ac_try_echo=$ac_try;;
  14219. esac
  14220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14221. (eval "$ac_compile") 2>conftest.er1
  14222. ac_status=$?
  14223. grep -v '^ *+' conftest.er1 >conftest.err
  14224. rm -f conftest.er1
  14225. cat conftest.err >&5
  14226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14227. (exit $ac_status); } && {
  14228. test -z "$ac_cxx_werror_flag" ||
  14229. test ! -s conftest.err
  14230. } && test -s conftest.$ac_objext; then
  14231. ac_header_compiler=yes
  14232. else
  14233. echo "$as_me: failed program was:" >&5
  14234. sed 's/^/| /' conftest.$ac_ext >&5
  14235. ac_header_compiler=no
  14236. fi
  14237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14238. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14239. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14240. # Is the header present?
  14241. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14242. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14243. cat >conftest.$ac_ext <<_ACEOF
  14244. /* confdefs.h. */
  14245. _ACEOF
  14246. cat confdefs.h >>conftest.$ac_ext
  14247. cat >>conftest.$ac_ext <<_ACEOF
  14248. /* end confdefs.h. */
  14249. #include <$ac_header>
  14250. _ACEOF
  14251. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14252. case "(($ac_try" in
  14253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14254. *) ac_try_echo=$ac_try;;
  14255. esac
  14256. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14257. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14258. ac_status=$?
  14259. grep -v '^ *+' conftest.er1 >conftest.err
  14260. rm -f conftest.er1
  14261. cat conftest.err >&5
  14262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14263. (exit $ac_status); } >/dev/null && {
  14264. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14265. test ! -s conftest.err
  14266. }; then
  14267. ac_header_preproc=yes
  14268. else
  14269. echo "$as_me: failed program was:" >&5
  14270. sed 's/^/| /' conftest.$ac_ext >&5
  14271. ac_header_preproc=no
  14272. fi
  14273. rm -f conftest.err conftest.$ac_ext
  14274. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14275. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14276. # So? What about this header?
  14277. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14278. yes:no: )
  14279. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14280. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14281. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14282. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14283. ac_header_preproc=yes
  14284. ;;
  14285. no:yes:* )
  14286. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14287. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14288. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14289. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14290. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14291. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14292. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14293. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14294. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14295. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14296. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14297. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14298. ( cat <<\_ASBOX
  14299. ## ----------------------------------------------- ##
  14300. ## Report this to t-tujikawa@users.sourceforge.net ##
  14301. ## ----------------------------------------------- ##
  14302. _ASBOX
  14303. ) | sed "s/^/$as_me: WARNING: /" >&2
  14304. ;;
  14305. esac
  14306. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14307. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14308. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14309. echo $ECHO_N "(cached) $ECHO_C" >&6
  14310. else
  14311. eval "$as_ac_Header=\$ac_header_preproc"
  14312. fi
  14313. ac_res=`eval echo '${'$as_ac_Header'}'`
  14314. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14315. echo "${ECHO_T}$ac_res" >&6; }
  14316. fi
  14317. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14318. cat >>confdefs.h <<_ACEOF
  14319. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14320. _ACEOF
  14321. fi
  14322. done
  14323. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14324. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14325. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14326. echo $ECHO_N "(cached) $ECHO_C" >&6
  14327. else
  14328. gt_save_LIBS="$LIBS"
  14329. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14330. cat >conftest.$ac_ext <<_ACEOF
  14331. /* confdefs.h. */
  14332. _ACEOF
  14333. cat confdefs.h >>conftest.$ac_ext
  14334. cat >>conftest.$ac_ext <<_ACEOF
  14335. /* end confdefs.h. */
  14336. #include <CoreFoundation/CFPreferences.h>
  14337. int
  14338. main ()
  14339. {
  14340. CFPreferencesCopyAppValue(NULL, NULL)
  14341. ;
  14342. return 0;
  14343. }
  14344. _ACEOF
  14345. rm -f conftest.$ac_objext conftest$ac_exeext
  14346. if { (ac_try="$ac_link"
  14347. case "(($ac_try" in
  14348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14349. *) ac_try_echo=$ac_try;;
  14350. esac
  14351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14352. (eval "$ac_link") 2>conftest.er1
  14353. ac_status=$?
  14354. grep -v '^ *+' conftest.er1 >conftest.err
  14355. rm -f conftest.er1
  14356. cat conftest.err >&5
  14357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14358. (exit $ac_status); } && {
  14359. test -z "$ac_cxx_werror_flag" ||
  14360. test ! -s conftest.err
  14361. } && test -s conftest$ac_exeext &&
  14362. $as_test_x conftest$ac_exeext; then
  14363. gt_cv_func_CFPreferencesCopyAppValue=yes
  14364. else
  14365. echo "$as_me: failed program was:" >&5
  14366. sed 's/^/| /' conftest.$ac_ext >&5
  14367. gt_cv_func_CFPreferencesCopyAppValue=no
  14368. fi
  14369. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14370. conftest$ac_exeext conftest.$ac_ext
  14371. LIBS="$gt_save_LIBS"
  14372. fi
  14373. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14374. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14375. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14376. cat >>confdefs.h <<\_ACEOF
  14377. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14378. _ACEOF
  14379. fi
  14380. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14381. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14382. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14383. echo $ECHO_N "(cached) $ECHO_C" >&6
  14384. else
  14385. gt_save_LIBS="$LIBS"
  14386. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14387. cat >conftest.$ac_ext <<_ACEOF
  14388. /* confdefs.h. */
  14389. _ACEOF
  14390. cat confdefs.h >>conftest.$ac_ext
  14391. cat >>conftest.$ac_ext <<_ACEOF
  14392. /* end confdefs.h. */
  14393. #include <CoreFoundation/CFLocale.h>
  14394. int
  14395. main ()
  14396. {
  14397. CFLocaleCopyCurrent();
  14398. ;
  14399. return 0;
  14400. }
  14401. _ACEOF
  14402. rm -f conftest.$ac_objext conftest$ac_exeext
  14403. if { (ac_try="$ac_link"
  14404. case "(($ac_try" in
  14405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14406. *) ac_try_echo=$ac_try;;
  14407. esac
  14408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14409. (eval "$ac_link") 2>conftest.er1
  14410. ac_status=$?
  14411. grep -v '^ *+' conftest.er1 >conftest.err
  14412. rm -f conftest.er1
  14413. cat conftest.err >&5
  14414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14415. (exit $ac_status); } && {
  14416. test -z "$ac_cxx_werror_flag" ||
  14417. test ! -s conftest.err
  14418. } && test -s conftest$ac_exeext &&
  14419. $as_test_x conftest$ac_exeext; then
  14420. gt_cv_func_CFLocaleCopyCurrent=yes
  14421. else
  14422. echo "$as_me: failed program was:" >&5
  14423. sed 's/^/| /' conftest.$ac_ext >&5
  14424. gt_cv_func_CFLocaleCopyCurrent=no
  14425. fi
  14426. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14427. conftest$ac_exeext conftest.$ac_ext
  14428. LIBS="$gt_save_LIBS"
  14429. fi
  14430. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14431. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14432. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14433. cat >>confdefs.h <<\_ACEOF
  14434. #define HAVE_CFLOCALECOPYCURRENT 1
  14435. _ACEOF
  14436. fi
  14437. INTL_MACOSX_LIBS=
  14438. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14439. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14440. fi
  14441. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14442. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14443. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14444. echo $ECHO_N "(cached) $ECHO_C" >&6
  14445. else
  14446. cat >conftest.$ac_ext <<_ACEOF
  14447. /* confdefs.h. */
  14448. _ACEOF
  14449. cat confdefs.h >>conftest.$ac_ext
  14450. cat >>conftest.$ac_ext <<_ACEOF
  14451. /* end confdefs.h. */
  14452. $ac_includes_default
  14453. typedef ptrdiff_t ac__type_new_;
  14454. int
  14455. main ()
  14456. {
  14457. if ((ac__type_new_ *) 0)
  14458. return 0;
  14459. if (sizeof (ac__type_new_))
  14460. return 0;
  14461. ;
  14462. return 0;
  14463. }
  14464. _ACEOF
  14465. rm -f conftest.$ac_objext
  14466. if { (ac_try="$ac_compile"
  14467. case "(($ac_try" in
  14468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14469. *) ac_try_echo=$ac_try;;
  14470. esac
  14471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14472. (eval "$ac_compile") 2>conftest.er1
  14473. ac_status=$?
  14474. grep -v '^ *+' conftest.er1 >conftest.err
  14475. rm -f conftest.er1
  14476. cat conftest.err >&5
  14477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14478. (exit $ac_status); } && {
  14479. test -z "$ac_cxx_werror_flag" ||
  14480. test ! -s conftest.err
  14481. } && test -s conftest.$ac_objext; then
  14482. ac_cv_type_ptrdiff_t=yes
  14483. else
  14484. echo "$as_me: failed program was:" >&5
  14485. sed 's/^/| /' conftest.$ac_ext >&5
  14486. ac_cv_type_ptrdiff_t=no
  14487. fi
  14488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14489. fi
  14490. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14491. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14492. if test $ac_cv_type_ptrdiff_t = yes; then
  14493. :
  14494. else
  14495. cat >>confdefs.h <<\_ACEOF
  14496. #define ptrdiff_t long
  14497. _ACEOF
  14498. fi
  14499. for ac_header in stddef.h stdlib.h string.h
  14500. do
  14501. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14502. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14503. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14504. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14505. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14506. echo $ECHO_N "(cached) $ECHO_C" >&6
  14507. fi
  14508. ac_res=`eval echo '${'$as_ac_Header'}'`
  14509. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14510. echo "${ECHO_T}$ac_res" >&6; }
  14511. else
  14512. # Is the header compilable?
  14513. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14514. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14515. cat >conftest.$ac_ext <<_ACEOF
  14516. /* confdefs.h. */
  14517. _ACEOF
  14518. cat confdefs.h >>conftest.$ac_ext
  14519. cat >>conftest.$ac_ext <<_ACEOF
  14520. /* end confdefs.h. */
  14521. $ac_includes_default
  14522. #include <$ac_header>
  14523. _ACEOF
  14524. rm -f conftest.$ac_objext
  14525. if { (ac_try="$ac_compile"
  14526. case "(($ac_try" in
  14527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14528. *) ac_try_echo=$ac_try;;
  14529. esac
  14530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14531. (eval "$ac_compile") 2>conftest.er1
  14532. ac_status=$?
  14533. grep -v '^ *+' conftest.er1 >conftest.err
  14534. rm -f conftest.er1
  14535. cat conftest.err >&5
  14536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14537. (exit $ac_status); } && {
  14538. test -z "$ac_cxx_werror_flag" ||
  14539. test ! -s conftest.err
  14540. } && test -s conftest.$ac_objext; then
  14541. ac_header_compiler=yes
  14542. else
  14543. echo "$as_me: failed program was:" >&5
  14544. sed 's/^/| /' conftest.$ac_ext >&5
  14545. ac_header_compiler=no
  14546. fi
  14547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14548. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14549. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14550. # Is the header present?
  14551. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14552. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14553. cat >conftest.$ac_ext <<_ACEOF
  14554. /* confdefs.h. */
  14555. _ACEOF
  14556. cat confdefs.h >>conftest.$ac_ext
  14557. cat >>conftest.$ac_ext <<_ACEOF
  14558. /* end confdefs.h. */
  14559. #include <$ac_header>
  14560. _ACEOF
  14561. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14562. case "(($ac_try" in
  14563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14564. *) ac_try_echo=$ac_try;;
  14565. esac
  14566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14567. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14568. ac_status=$?
  14569. grep -v '^ *+' conftest.er1 >conftest.err
  14570. rm -f conftest.er1
  14571. cat conftest.err >&5
  14572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14573. (exit $ac_status); } >/dev/null && {
  14574. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14575. test ! -s conftest.err
  14576. }; then
  14577. ac_header_preproc=yes
  14578. else
  14579. echo "$as_me: failed program was:" >&5
  14580. sed 's/^/| /' conftest.$ac_ext >&5
  14581. ac_header_preproc=no
  14582. fi
  14583. rm -f conftest.err conftest.$ac_ext
  14584. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14585. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14586. # So? What about this header?
  14587. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14588. yes:no: )
  14589. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14590. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14591. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14592. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14593. ac_header_preproc=yes
  14594. ;;
  14595. no:yes:* )
  14596. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14597. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14598. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14599. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14600. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14601. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14602. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14603. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14604. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14605. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14606. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14607. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14608. ( cat <<\_ASBOX
  14609. ## ----------------------------------------------- ##
  14610. ## Report this to t-tujikawa@users.sourceforge.net ##
  14611. ## ----------------------------------------------- ##
  14612. _ASBOX
  14613. ) | sed "s/^/$as_me: WARNING: /" >&2
  14614. ;;
  14615. esac
  14616. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14617. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14618. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14619. echo $ECHO_N "(cached) $ECHO_C" >&6
  14620. else
  14621. eval "$as_ac_Header=\$ac_header_preproc"
  14622. fi
  14623. ac_res=`eval echo '${'$as_ac_Header'}'`
  14624. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14625. echo "${ECHO_T}$ac_res" >&6; }
  14626. fi
  14627. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14628. cat >>confdefs.h <<_ACEOF
  14629. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14630. _ACEOF
  14631. fi
  14632. done
  14633. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14634. do
  14635. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14636. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14637. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14638. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14639. echo $ECHO_N "(cached) $ECHO_C" >&6
  14640. else
  14641. cat >conftest.$ac_ext <<_ACEOF
  14642. /* confdefs.h. */
  14643. _ACEOF
  14644. cat confdefs.h >>conftest.$ac_ext
  14645. cat >>conftest.$ac_ext <<_ACEOF
  14646. /* end confdefs.h. */
  14647. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14648. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14649. #define $ac_func innocuous_$ac_func
  14650. /* System header to define __stub macros and hopefully few prototypes,
  14651. which can conflict with char $ac_func (); below.
  14652. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14653. <limits.h> exists even on freestanding compilers. */
  14654. #ifdef __STDC__
  14655. # include <limits.h>
  14656. #else
  14657. # include <assert.h>
  14658. #endif
  14659. #undef $ac_func
  14660. /* Override any GCC internal prototype to avoid an error.
  14661. Use char because int might match the return type of a GCC
  14662. builtin and then its argument prototype would still apply. */
  14663. #ifdef __cplusplus
  14664. extern "C"
  14665. #endif
  14666. char $ac_func ();
  14667. /* The GNU C library defines this for functions which it implements
  14668. to always fail with ENOSYS. Some functions are actually named
  14669. something starting with __ and the normal name is an alias. */
  14670. #if defined __stub_$ac_func || defined __stub___$ac_func
  14671. choke me
  14672. #endif
  14673. int
  14674. main ()
  14675. {
  14676. return $ac_func ();
  14677. ;
  14678. return 0;
  14679. }
  14680. _ACEOF
  14681. rm -f conftest.$ac_objext conftest$ac_exeext
  14682. if { (ac_try="$ac_link"
  14683. case "(($ac_try" in
  14684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14685. *) ac_try_echo=$ac_try;;
  14686. esac
  14687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14688. (eval "$ac_link") 2>conftest.er1
  14689. ac_status=$?
  14690. grep -v '^ *+' conftest.er1 >conftest.err
  14691. rm -f conftest.er1
  14692. cat conftest.err >&5
  14693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14694. (exit $ac_status); } && {
  14695. test -z "$ac_cxx_werror_flag" ||
  14696. test ! -s conftest.err
  14697. } && test -s conftest$ac_exeext &&
  14698. $as_test_x conftest$ac_exeext; then
  14699. eval "$as_ac_var=yes"
  14700. else
  14701. echo "$as_me: failed program was:" >&5
  14702. sed 's/^/| /' conftest.$ac_ext >&5
  14703. eval "$as_ac_var=no"
  14704. fi
  14705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14706. conftest$ac_exeext conftest.$ac_ext
  14707. fi
  14708. ac_res=`eval echo '${'$as_ac_var'}'`
  14709. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14710. echo "${ECHO_T}$ac_res" >&6; }
  14711. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14712. cat >>confdefs.h <<_ACEOF
  14713. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14714. _ACEOF
  14715. fi
  14716. done
  14717. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14718. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14719. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14720. echo $ECHO_N "(cached) $ECHO_C" >&6
  14721. else
  14722. cat >conftest.$ac_ext <<_ACEOF
  14723. /* confdefs.h. */
  14724. _ACEOF
  14725. cat confdefs.h >>conftest.$ac_ext
  14726. cat >>conftest.$ac_ext <<_ACEOF
  14727. /* end confdefs.h. */
  14728. #include <stdio.h>
  14729. int
  14730. main ()
  14731. {
  14732. #ifndef _snprintf
  14733. char *p = (char *) _snprintf;
  14734. #endif
  14735. ;
  14736. return 0;
  14737. }
  14738. _ACEOF
  14739. rm -f conftest.$ac_objext
  14740. if { (ac_try="$ac_compile"
  14741. case "(($ac_try" in
  14742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14743. *) ac_try_echo=$ac_try;;
  14744. esac
  14745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14746. (eval "$ac_compile") 2>conftest.er1
  14747. ac_status=$?
  14748. grep -v '^ *+' conftest.er1 >conftest.err
  14749. rm -f conftest.er1
  14750. cat conftest.err >&5
  14751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14752. (exit $ac_status); } && {
  14753. test -z "$ac_cxx_werror_flag" ||
  14754. test ! -s conftest.err
  14755. } && test -s conftest.$ac_objext; then
  14756. ac_cv_have_decl__snprintf=yes
  14757. else
  14758. echo "$as_me: failed program was:" >&5
  14759. sed 's/^/| /' conftest.$ac_ext >&5
  14760. ac_cv_have_decl__snprintf=no
  14761. fi
  14762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14763. fi
  14764. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14765. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14766. if test $ac_cv_have_decl__snprintf = yes; then
  14767. gt_value=1
  14768. else
  14769. gt_value=0
  14770. fi
  14771. cat >>confdefs.h <<_ACEOF
  14772. #define HAVE_DECL__SNPRINTF $gt_value
  14773. _ACEOF
  14774. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14775. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14776. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14777. echo $ECHO_N "(cached) $ECHO_C" >&6
  14778. else
  14779. cat >conftest.$ac_ext <<_ACEOF
  14780. /* confdefs.h. */
  14781. _ACEOF
  14782. cat confdefs.h >>conftest.$ac_ext
  14783. cat >>conftest.$ac_ext <<_ACEOF
  14784. /* end confdefs.h. */
  14785. #include <stdio.h>
  14786. int
  14787. main ()
  14788. {
  14789. #ifndef _snwprintf
  14790. char *p = (char *) _snwprintf;
  14791. #endif
  14792. ;
  14793. return 0;
  14794. }
  14795. _ACEOF
  14796. rm -f conftest.$ac_objext
  14797. if { (ac_try="$ac_compile"
  14798. case "(($ac_try" in
  14799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14800. *) ac_try_echo=$ac_try;;
  14801. esac
  14802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14803. (eval "$ac_compile") 2>conftest.er1
  14804. ac_status=$?
  14805. grep -v '^ *+' conftest.er1 >conftest.err
  14806. rm -f conftest.er1
  14807. cat conftest.err >&5
  14808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14809. (exit $ac_status); } && {
  14810. test -z "$ac_cxx_werror_flag" ||
  14811. test ! -s conftest.err
  14812. } && test -s conftest.$ac_objext; then
  14813. ac_cv_have_decl__snwprintf=yes
  14814. else
  14815. echo "$as_me: failed program was:" >&5
  14816. sed 's/^/| /' conftest.$ac_ext >&5
  14817. ac_cv_have_decl__snwprintf=no
  14818. fi
  14819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14820. fi
  14821. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14822. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14823. if test $ac_cv_have_decl__snwprintf = yes; then
  14824. gt_value=1
  14825. else
  14826. gt_value=0
  14827. fi
  14828. cat >>confdefs.h <<_ACEOF
  14829. #define HAVE_DECL__SNWPRINTF $gt_value
  14830. _ACEOF
  14831. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14832. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14833. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14834. echo $ECHO_N "(cached) $ECHO_C" >&6
  14835. else
  14836. cat >conftest.$ac_ext <<_ACEOF
  14837. /* confdefs.h. */
  14838. _ACEOF
  14839. cat confdefs.h >>conftest.$ac_ext
  14840. cat >>conftest.$ac_ext <<_ACEOF
  14841. /* end confdefs.h. */
  14842. #include <stdio.h>
  14843. int
  14844. main ()
  14845. {
  14846. #ifndef getc_unlocked
  14847. char *p = (char *) getc_unlocked;
  14848. #endif
  14849. ;
  14850. return 0;
  14851. }
  14852. _ACEOF
  14853. rm -f conftest.$ac_objext
  14854. if { (ac_try="$ac_compile"
  14855. case "(($ac_try" in
  14856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14857. *) ac_try_echo=$ac_try;;
  14858. esac
  14859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14860. (eval "$ac_compile") 2>conftest.er1
  14861. ac_status=$?
  14862. grep -v '^ *+' conftest.er1 >conftest.err
  14863. rm -f conftest.er1
  14864. cat conftest.err >&5
  14865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14866. (exit $ac_status); } && {
  14867. test -z "$ac_cxx_werror_flag" ||
  14868. test ! -s conftest.err
  14869. } && test -s conftest.$ac_objext; then
  14870. ac_cv_have_decl_getc_unlocked=yes
  14871. else
  14872. echo "$as_me: failed program was:" >&5
  14873. sed 's/^/| /' conftest.$ac_ext >&5
  14874. ac_cv_have_decl_getc_unlocked=no
  14875. fi
  14876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14877. fi
  14878. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14879. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14880. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14881. gt_value=1
  14882. else
  14883. gt_value=0
  14884. fi
  14885. cat >>confdefs.h <<_ACEOF
  14886. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14887. _ACEOF
  14888. case $gt_cv_func_printf_posix in
  14889. *yes) HAVE_POSIX_PRINTF=1 ;;
  14890. *) HAVE_POSIX_PRINTF=0 ;;
  14891. esac
  14892. if test "$ac_cv_func_asprintf" = yes; then
  14893. HAVE_ASPRINTF=1
  14894. else
  14895. HAVE_ASPRINTF=0
  14896. fi
  14897. if test "$ac_cv_func_snprintf" = yes; then
  14898. HAVE_SNPRINTF=1
  14899. else
  14900. HAVE_SNPRINTF=0
  14901. fi
  14902. if test "$ac_cv_func_wprintf" = yes; then
  14903. HAVE_WPRINTF=1
  14904. else
  14905. HAVE_WPRINTF=0
  14906. fi
  14907. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14908. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14909. if test "${am_cv_langinfo_codeset+set}" = set; then
  14910. echo $ECHO_N "(cached) $ECHO_C" >&6
  14911. else
  14912. cat >conftest.$ac_ext <<_ACEOF
  14913. /* confdefs.h. */
  14914. _ACEOF
  14915. cat confdefs.h >>conftest.$ac_ext
  14916. cat >>conftest.$ac_ext <<_ACEOF
  14917. /* end confdefs.h. */
  14918. #include <langinfo.h>
  14919. int
  14920. main ()
  14921. {
  14922. char* cs = nl_langinfo(CODESET); return !cs;
  14923. ;
  14924. return 0;
  14925. }
  14926. _ACEOF
  14927. rm -f conftest.$ac_objext conftest$ac_exeext
  14928. if { (ac_try="$ac_link"
  14929. case "(($ac_try" in
  14930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14931. *) ac_try_echo=$ac_try;;
  14932. esac
  14933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14934. (eval "$ac_link") 2>conftest.er1
  14935. ac_status=$?
  14936. grep -v '^ *+' conftest.er1 >conftest.err
  14937. rm -f conftest.er1
  14938. cat conftest.err >&5
  14939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14940. (exit $ac_status); } && {
  14941. test -z "$ac_cxx_werror_flag" ||
  14942. test ! -s conftest.err
  14943. } && test -s conftest$ac_exeext &&
  14944. $as_test_x conftest$ac_exeext; then
  14945. am_cv_langinfo_codeset=yes
  14946. else
  14947. echo "$as_me: failed program was:" >&5
  14948. sed 's/^/| /' conftest.$ac_ext >&5
  14949. am_cv_langinfo_codeset=no
  14950. fi
  14951. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14952. conftest$ac_exeext conftest.$ac_ext
  14953. fi
  14954. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14955. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14956. if test $am_cv_langinfo_codeset = yes; then
  14957. cat >>confdefs.h <<\_ACEOF
  14958. #define HAVE_LANGINFO_CODESET 1
  14959. _ACEOF
  14960. fi
  14961. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14962. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14963. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14964. echo $ECHO_N "(cached) $ECHO_C" >&6
  14965. else
  14966. cat >conftest.$ac_ext <<_ACEOF
  14967. /* confdefs.h. */
  14968. _ACEOF
  14969. cat confdefs.h >>conftest.$ac_ext
  14970. cat >>conftest.$ac_ext <<_ACEOF
  14971. /* end confdefs.h. */
  14972. #include <locale.h>
  14973. int
  14974. main ()
  14975. {
  14976. return LC_MESSAGES
  14977. ;
  14978. return 0;
  14979. }
  14980. _ACEOF
  14981. rm -f conftest.$ac_objext conftest$ac_exeext
  14982. if { (ac_try="$ac_link"
  14983. case "(($ac_try" in
  14984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14985. *) ac_try_echo=$ac_try;;
  14986. esac
  14987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14988. (eval "$ac_link") 2>conftest.er1
  14989. ac_status=$?
  14990. grep -v '^ *+' conftest.er1 >conftest.err
  14991. rm -f conftest.er1
  14992. cat conftest.err >&5
  14993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14994. (exit $ac_status); } && {
  14995. test -z "$ac_cxx_werror_flag" ||
  14996. test ! -s conftest.err
  14997. } && test -s conftest$ac_exeext &&
  14998. $as_test_x conftest$ac_exeext; then
  14999. gt_cv_val_LC_MESSAGES=yes
  15000. else
  15001. echo "$as_me: failed program was:" >&5
  15002. sed 's/^/| /' conftest.$ac_ext >&5
  15003. gt_cv_val_LC_MESSAGES=no
  15004. fi
  15005. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15006. conftest$ac_exeext conftest.$ac_ext
  15007. fi
  15008. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15009. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15010. if test $gt_cv_val_LC_MESSAGES = yes; then
  15011. cat >>confdefs.h <<\_ACEOF
  15012. #define HAVE_LC_MESSAGES 1
  15013. _ACEOF
  15014. fi
  15015. if test "$enable_shared" = yes; then
  15016. case "$host_os" in
  15017. mingw* | cygwin*) is_woe32dll=yes ;;
  15018. *) is_woe32dll=no ;;
  15019. esac
  15020. else
  15021. is_woe32dll=no
  15022. fi
  15023. WOE32DLL=$is_woe32dll
  15024. case "$host_os" in
  15025. mingw* | cygwin*) is_woe32=yes ;;
  15026. *) is_woe32=no ;;
  15027. esac
  15028. WOE32=$is_woe32
  15029. if test $WOE32 = yes; then
  15030. if test -n "$ac_tool_prefix"; then
  15031. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15032. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15033. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15034. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15035. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15036. echo $ECHO_N "(cached) $ECHO_C" >&6
  15037. else
  15038. if test -n "$WINDRES"; then
  15039. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15040. else
  15041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15042. for as_dir in $PATH
  15043. do
  15044. IFS=$as_save_IFS
  15045. test -z "$as_dir" && as_dir=.
  15046. for ac_exec_ext in '' $ac_executable_extensions; do
  15047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15048. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15049. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15050. break 2
  15051. fi
  15052. done
  15053. done
  15054. IFS=$as_save_IFS
  15055. fi
  15056. fi
  15057. WINDRES=$ac_cv_prog_WINDRES
  15058. if test -n "$WINDRES"; then
  15059. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15060. echo "${ECHO_T}$WINDRES" >&6; }
  15061. else
  15062. { echo "$as_me:$LINENO: result: no" >&5
  15063. echo "${ECHO_T}no" >&6; }
  15064. fi
  15065. fi
  15066. if test -z "$ac_cv_prog_WINDRES"; then
  15067. ac_ct_WINDRES=$WINDRES
  15068. # Extract the first word of "windres", so it can be a program name with args.
  15069. set dummy windres; ac_word=$2
  15070. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15071. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15072. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15073. echo $ECHO_N "(cached) $ECHO_C" >&6
  15074. else
  15075. if test -n "$ac_ct_WINDRES"; then
  15076. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15077. else
  15078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15079. for as_dir in $PATH
  15080. do
  15081. IFS=$as_save_IFS
  15082. test -z "$as_dir" && as_dir=.
  15083. for ac_exec_ext in '' $ac_executable_extensions; do
  15084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15085. ac_cv_prog_ac_ct_WINDRES="windres"
  15086. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15087. break 2
  15088. fi
  15089. done
  15090. done
  15091. IFS=$as_save_IFS
  15092. fi
  15093. fi
  15094. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15095. if test -n "$ac_ct_WINDRES"; then
  15096. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15097. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15098. else
  15099. { echo "$as_me:$LINENO: result: no" >&5
  15100. echo "${ECHO_T}no" >&6; }
  15101. fi
  15102. if test "x$ac_ct_WINDRES" = x; then
  15103. WINDRES=""
  15104. else
  15105. case $cross_compiling:$ac_tool_warned in
  15106. yes:)
  15107. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15108. whose name does not start with the host triplet. If you think this
  15109. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15110. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15111. whose name does not start with the host triplet. If you think this
  15112. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15113. ac_tool_warned=yes ;;
  15114. esac
  15115. WINDRES=$ac_ct_WINDRES
  15116. fi
  15117. else
  15118. WINDRES="$ac_cv_prog_WINDRES"
  15119. fi
  15120. fi
  15121. case "$host_os" in
  15122. hpux*) LTLIBC="" ;;
  15123. *) LTLIBC="-lc" ;;
  15124. esac
  15125. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15126. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15127. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15128. echo $ECHO_N "(cached) $ECHO_C" >&6
  15129. else
  15130. gt_save_LIBS="$LIBS"
  15131. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15132. cat >conftest.$ac_ext <<_ACEOF
  15133. /* confdefs.h. */
  15134. _ACEOF
  15135. cat confdefs.h >>conftest.$ac_ext
  15136. cat >>conftest.$ac_ext <<_ACEOF
  15137. /* end confdefs.h. */
  15138. #include <CoreFoundation/CFPreferences.h>
  15139. int
  15140. main ()
  15141. {
  15142. CFPreferencesCopyAppValue(NULL, NULL)
  15143. ;
  15144. return 0;
  15145. }
  15146. _ACEOF
  15147. rm -f conftest.$ac_objext conftest$ac_exeext
  15148. if { (ac_try="$ac_link"
  15149. case "(($ac_try" in
  15150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15151. *) ac_try_echo=$ac_try;;
  15152. esac
  15153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15154. (eval "$ac_link") 2>conftest.er1
  15155. ac_status=$?
  15156. grep -v '^ *+' conftest.er1 >conftest.err
  15157. rm -f conftest.er1
  15158. cat conftest.err >&5
  15159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15160. (exit $ac_status); } && {
  15161. test -z "$ac_cxx_werror_flag" ||
  15162. test ! -s conftest.err
  15163. } && test -s conftest$ac_exeext &&
  15164. $as_test_x conftest$ac_exeext; then
  15165. gt_cv_func_CFPreferencesCopyAppValue=yes
  15166. else
  15167. echo "$as_me: failed program was:" >&5
  15168. sed 's/^/| /' conftest.$ac_ext >&5
  15169. gt_cv_func_CFPreferencesCopyAppValue=no
  15170. fi
  15171. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15172. conftest$ac_exeext conftest.$ac_ext
  15173. LIBS="$gt_save_LIBS"
  15174. fi
  15175. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15176. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15177. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15178. cat >>confdefs.h <<\_ACEOF
  15179. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15180. _ACEOF
  15181. fi
  15182. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15183. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15184. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15185. echo $ECHO_N "(cached) $ECHO_C" >&6
  15186. else
  15187. gt_save_LIBS="$LIBS"
  15188. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15189. cat >conftest.$ac_ext <<_ACEOF
  15190. /* confdefs.h. */
  15191. _ACEOF
  15192. cat confdefs.h >>conftest.$ac_ext
  15193. cat >>conftest.$ac_ext <<_ACEOF
  15194. /* end confdefs.h. */
  15195. #include <CoreFoundation/CFLocale.h>
  15196. int
  15197. main ()
  15198. {
  15199. CFLocaleCopyCurrent();
  15200. ;
  15201. return 0;
  15202. }
  15203. _ACEOF
  15204. rm -f conftest.$ac_objext conftest$ac_exeext
  15205. if { (ac_try="$ac_link"
  15206. case "(($ac_try" in
  15207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15208. *) ac_try_echo=$ac_try;;
  15209. esac
  15210. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15211. (eval "$ac_link") 2>conftest.er1
  15212. ac_status=$?
  15213. grep -v '^ *+' conftest.er1 >conftest.err
  15214. rm -f conftest.er1
  15215. cat conftest.err >&5
  15216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15217. (exit $ac_status); } && {
  15218. test -z "$ac_cxx_werror_flag" ||
  15219. test ! -s conftest.err
  15220. } && test -s conftest$ac_exeext &&
  15221. $as_test_x conftest$ac_exeext; then
  15222. gt_cv_func_CFLocaleCopyCurrent=yes
  15223. else
  15224. echo "$as_me: failed program was:" >&5
  15225. sed 's/^/| /' conftest.$ac_ext >&5
  15226. gt_cv_func_CFLocaleCopyCurrent=no
  15227. fi
  15228. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15229. conftest$ac_exeext conftest.$ac_ext
  15230. LIBS="$gt_save_LIBS"
  15231. fi
  15232. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15233. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15234. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15235. cat >>confdefs.h <<\_ACEOF
  15236. #define HAVE_CFLOCALECOPYCURRENT 1
  15237. _ACEOF
  15238. fi
  15239. INTL_MACOSX_LIBS=
  15240. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15241. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15242. fi
  15243. BUILD_INCLUDED_LIBINTL=no
  15244. USE_INCLUDED_LIBINTL=no
  15245. LIBINTL=
  15246. LTLIBINTL=
  15247. POSUB=
  15248. case " $gt_needs " in
  15249. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15250. *" need-ngettext "*) gt_api_version=2 ;;
  15251. *) gt_api_version=1 ;;
  15252. esac
  15253. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15254. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15255. if test "$USE_NLS" = "yes"; then
  15256. gt_use_preinstalled_gnugettext=no
  15257. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15258. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15259. # Check whether --with-included-gettext was given.
  15260. if test "${with_included_gettext+set}" = set; then
  15261. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15262. else
  15263. nls_cv_force_use_gnu_gettext=no
  15264. fi
  15265. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15266. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15267. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15268. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15269. if test $gt_api_version -ge 3; then
  15270. gt_revision_test_code='
  15271. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15272. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15273. #endif
  15274. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15275. '
  15276. else
  15277. gt_revision_test_code=
  15278. fi
  15279. if test $gt_api_version -ge 2; then
  15280. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15281. else
  15282. gt_expression_test_code=
  15283. fi
  15284. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15285. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15286. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15287. echo $ECHO_N "(cached) $ECHO_C" >&6
  15288. else
  15289. cat >conftest.$ac_ext <<_ACEOF
  15290. /* confdefs.h. */
  15291. _ACEOF
  15292. cat confdefs.h >>conftest.$ac_ext
  15293. cat >>conftest.$ac_ext <<_ACEOF
  15294. /* end confdefs.h. */
  15295. #include <libintl.h>
  15296. $gt_revision_test_code
  15297. extern int _nl_msg_cat_cntr;
  15298. extern int *_nl_domain_bindings;
  15299. int
  15300. main ()
  15301. {
  15302. bindtextdomain ("", "");
  15303. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15304. ;
  15305. return 0;
  15306. }
  15307. _ACEOF
  15308. rm -f conftest.$ac_objext conftest$ac_exeext
  15309. if { (ac_try="$ac_link"
  15310. case "(($ac_try" in
  15311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15312. *) ac_try_echo=$ac_try;;
  15313. esac
  15314. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15315. (eval "$ac_link") 2>conftest.er1
  15316. ac_status=$?
  15317. grep -v '^ *+' conftest.er1 >conftest.err
  15318. rm -f conftest.er1
  15319. cat conftest.err >&5
  15320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15321. (exit $ac_status); } && {
  15322. test -z "$ac_cxx_werror_flag" ||
  15323. test ! -s conftest.err
  15324. } && test -s conftest$ac_exeext &&
  15325. $as_test_x conftest$ac_exeext; then
  15326. eval "$gt_func_gnugettext_libc=yes"
  15327. else
  15328. echo "$as_me: failed program was:" >&5
  15329. sed 's/^/| /' conftest.$ac_ext >&5
  15330. eval "$gt_func_gnugettext_libc=no"
  15331. fi
  15332. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15333. conftest$ac_exeext conftest.$ac_ext
  15334. fi
  15335. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15336. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15337. echo "${ECHO_T}$ac_res" >&6; }
  15338. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15339. use_additional=yes
  15340. acl_save_prefix="$prefix"
  15341. prefix="$acl_final_prefix"
  15342. acl_save_exec_prefix="$exec_prefix"
  15343. exec_prefix="$acl_final_exec_prefix"
  15344. eval additional_includedir=\"$includedir\"
  15345. eval additional_libdir=\"$libdir\"
  15346. exec_prefix="$acl_save_exec_prefix"
  15347. prefix="$acl_save_prefix"
  15348. # Check whether --with-libintl-prefix was given.
  15349. if test "${with_libintl_prefix+set}" = set; then
  15350. withval=$with_libintl_prefix;
  15351. if test "X$withval" = "Xno"; then
  15352. use_additional=no
  15353. else
  15354. if test "X$withval" = "X"; then
  15355. acl_save_prefix="$prefix"
  15356. prefix="$acl_final_prefix"
  15357. acl_save_exec_prefix="$exec_prefix"
  15358. exec_prefix="$acl_final_exec_prefix"
  15359. eval additional_includedir=\"$includedir\"
  15360. eval additional_libdir=\"$libdir\"
  15361. exec_prefix="$acl_save_exec_prefix"
  15362. prefix="$acl_save_prefix"
  15363. else
  15364. additional_includedir="$withval/include"
  15365. additional_libdir="$withval/$acl_libdirstem"
  15366. fi
  15367. fi
  15368. fi
  15369. LIBINTL=
  15370. LTLIBINTL=
  15371. INCINTL=
  15372. LIBINTL_PREFIX=
  15373. rpathdirs=
  15374. ltrpathdirs=
  15375. names_already_handled=
  15376. names_next_round='intl '
  15377. while test -n "$names_next_round"; do
  15378. names_this_round="$names_next_round"
  15379. names_next_round=
  15380. for name in $names_this_round; do
  15381. already_handled=
  15382. for n in $names_already_handled; do
  15383. if test "$n" = "$name"; then
  15384. already_handled=yes
  15385. break
  15386. fi
  15387. done
  15388. if test -z "$already_handled"; then
  15389. names_already_handled="$names_already_handled $name"
  15390. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15391. eval value=\"\$HAVE_LIB$uppername\"
  15392. if test -n "$value"; then
  15393. if test "$value" = yes; then
  15394. eval value=\"\$LIB$uppername\"
  15395. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15396. eval value=\"\$LTLIB$uppername\"
  15397. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15398. else
  15399. :
  15400. fi
  15401. else
  15402. found_dir=
  15403. found_la=
  15404. found_so=
  15405. found_a=
  15406. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15407. if test -n "$acl_shlibext"; then
  15408. shrext=".$acl_shlibext" # typically: shrext=.so
  15409. else
  15410. shrext=
  15411. fi
  15412. if test $use_additional = yes; then
  15413. dir="$additional_libdir"
  15414. if test -n "$acl_shlibext"; then
  15415. if test -f "$dir/$libname$shrext"; then
  15416. found_dir="$dir"
  15417. found_so="$dir/$libname$shrext"
  15418. else
  15419. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15420. ver=`(cd "$dir" && \
  15421. for f in "$libname$shrext".*; do echo "$f"; done \
  15422. | sed -e "s,^$libname$shrext\\\\.,," \
  15423. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15424. | sed 1q ) 2>/dev/null`
  15425. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15426. found_dir="$dir"
  15427. found_so="$dir/$libname$shrext.$ver"
  15428. fi
  15429. else
  15430. eval library_names=\"$acl_library_names_spec\"
  15431. for f in $library_names; do
  15432. if test -f "$dir/$f"; then
  15433. found_dir="$dir"
  15434. found_so="$dir/$f"
  15435. break
  15436. fi
  15437. done
  15438. fi
  15439. fi
  15440. fi
  15441. if test "X$found_dir" = "X"; then
  15442. if test -f "$dir/$libname.$acl_libext"; then
  15443. found_dir="$dir"
  15444. found_a="$dir/$libname.$acl_libext"
  15445. fi
  15446. fi
  15447. if test "X$found_dir" != "X"; then
  15448. if test -f "$dir/$libname.la"; then
  15449. found_la="$dir/$libname.la"
  15450. fi
  15451. fi
  15452. fi
  15453. if test "X$found_dir" = "X"; then
  15454. for x in $LDFLAGS $LTLIBINTL; do
  15455. acl_save_prefix="$prefix"
  15456. prefix="$acl_final_prefix"
  15457. acl_save_exec_prefix="$exec_prefix"
  15458. exec_prefix="$acl_final_exec_prefix"
  15459. eval x=\"$x\"
  15460. exec_prefix="$acl_save_exec_prefix"
  15461. prefix="$acl_save_prefix"
  15462. case "$x" in
  15463. -L*)
  15464. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15465. if test -n "$acl_shlibext"; then
  15466. if test -f "$dir/$libname$shrext"; then
  15467. found_dir="$dir"
  15468. found_so="$dir/$libname$shrext"
  15469. else
  15470. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15471. ver=`(cd "$dir" && \
  15472. for f in "$libname$shrext".*; do echo "$f"; done \
  15473. | sed -e "s,^$libname$shrext\\\\.,," \
  15474. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15475. | sed 1q ) 2>/dev/null`
  15476. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15477. found_dir="$dir"
  15478. found_so="$dir/$libname$shrext.$ver"
  15479. fi
  15480. else
  15481. eval library_names=\"$acl_library_names_spec\"
  15482. for f in $library_names; do
  15483. if test -f "$dir/$f"; then
  15484. found_dir="$dir"
  15485. found_so="$dir/$f"
  15486. break
  15487. fi
  15488. done
  15489. fi
  15490. fi
  15491. fi
  15492. if test "X$found_dir" = "X"; then
  15493. if test -f "$dir/$libname.$acl_libext"; then
  15494. found_dir="$dir"
  15495. found_a="$dir/$libname.$acl_libext"
  15496. fi
  15497. fi
  15498. if test "X$found_dir" != "X"; then
  15499. if test -f "$dir/$libname.la"; then
  15500. found_la="$dir/$libname.la"
  15501. fi
  15502. fi
  15503. ;;
  15504. esac
  15505. if test "X$found_dir" != "X"; then
  15506. break
  15507. fi
  15508. done
  15509. fi
  15510. if test "X$found_dir" != "X"; then
  15511. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15512. if test "X$found_so" != "X"; then
  15513. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15514. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15515. else
  15516. haveit=
  15517. for x in $ltrpathdirs; do
  15518. if test "X$x" = "X$found_dir"; then
  15519. haveit=yes
  15520. break
  15521. fi
  15522. done
  15523. if test -z "$haveit"; then
  15524. ltrpathdirs="$ltrpathdirs $found_dir"
  15525. fi
  15526. if test "$acl_hardcode_direct" = yes; then
  15527. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15528. else
  15529. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15530. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15531. haveit=
  15532. for x in $rpathdirs; do
  15533. if test "X$x" = "X$found_dir"; then
  15534. haveit=yes
  15535. break
  15536. fi
  15537. done
  15538. if test -z "$haveit"; then
  15539. rpathdirs="$rpathdirs $found_dir"
  15540. fi
  15541. else
  15542. haveit=
  15543. for x in $LDFLAGS $LIBINTL; do
  15544. acl_save_prefix="$prefix"
  15545. prefix="$acl_final_prefix"
  15546. acl_save_exec_prefix="$exec_prefix"
  15547. exec_prefix="$acl_final_exec_prefix"
  15548. eval x=\"$x\"
  15549. exec_prefix="$acl_save_exec_prefix"
  15550. prefix="$acl_save_prefix"
  15551. if test "X$x" = "X-L$found_dir"; then
  15552. haveit=yes
  15553. break
  15554. fi
  15555. done
  15556. if test -z "$haveit"; then
  15557. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15558. fi
  15559. if test "$acl_hardcode_minus_L" != no; then
  15560. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15561. else
  15562. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15563. fi
  15564. fi
  15565. fi
  15566. fi
  15567. else
  15568. if test "X$found_a" != "X"; then
  15569. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15570. else
  15571. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15572. fi
  15573. fi
  15574. additional_includedir=
  15575. case "$found_dir" in
  15576. */$acl_libdirstem | */$acl_libdirstem/)
  15577. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15578. LIBINTL_PREFIX="$basedir"
  15579. additional_includedir="$basedir/include"
  15580. ;;
  15581. esac
  15582. if test "X$additional_includedir" != "X"; then
  15583. if test "X$additional_includedir" != "X/usr/include"; then
  15584. haveit=
  15585. if test "X$additional_includedir" = "X/usr/local/include"; then
  15586. if test -n "$GCC"; then
  15587. case $host_os in
  15588. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15589. esac
  15590. fi
  15591. fi
  15592. if test -z "$haveit"; then
  15593. for x in $CPPFLAGS $INCINTL; do
  15594. acl_save_prefix="$prefix"
  15595. prefix="$acl_final_prefix"
  15596. acl_save_exec_prefix="$exec_prefix"
  15597. exec_prefix="$acl_final_exec_prefix"
  15598. eval x=\"$x\"
  15599. exec_prefix="$acl_save_exec_prefix"
  15600. prefix="$acl_save_prefix"
  15601. if test "X$x" = "X-I$additional_includedir"; then
  15602. haveit=yes
  15603. break
  15604. fi
  15605. done
  15606. if test -z "$haveit"; then
  15607. if test -d "$additional_includedir"; then
  15608. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15609. fi
  15610. fi
  15611. fi
  15612. fi
  15613. fi
  15614. if test -n "$found_la"; then
  15615. save_libdir="$libdir"
  15616. case "$found_la" in
  15617. */* | *\\*) . "$found_la" ;;
  15618. *) . "./$found_la" ;;
  15619. esac
  15620. libdir="$save_libdir"
  15621. for dep in $dependency_libs; do
  15622. case "$dep" in
  15623. -L*)
  15624. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15625. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15626. haveit=
  15627. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15628. if test -n "$GCC"; then
  15629. case $host_os in
  15630. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15631. esac
  15632. fi
  15633. fi
  15634. if test -z "$haveit"; then
  15635. haveit=
  15636. for x in $LDFLAGS $LIBINTL; do
  15637. acl_save_prefix="$prefix"
  15638. prefix="$acl_final_prefix"
  15639. acl_save_exec_prefix="$exec_prefix"
  15640. exec_prefix="$acl_final_exec_prefix"
  15641. eval x=\"$x\"
  15642. exec_prefix="$acl_save_exec_prefix"
  15643. prefix="$acl_save_prefix"
  15644. if test "X$x" = "X-L$additional_libdir"; then
  15645. haveit=yes
  15646. break
  15647. fi
  15648. done
  15649. if test -z "$haveit"; then
  15650. if test -d "$additional_libdir"; then
  15651. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15652. fi
  15653. fi
  15654. haveit=
  15655. for x in $LDFLAGS $LTLIBINTL; do
  15656. acl_save_prefix="$prefix"
  15657. prefix="$acl_final_prefix"
  15658. acl_save_exec_prefix="$exec_prefix"
  15659. exec_prefix="$acl_final_exec_prefix"
  15660. eval x=\"$x\"
  15661. exec_prefix="$acl_save_exec_prefix"
  15662. prefix="$acl_save_prefix"
  15663. if test "X$x" = "X-L$additional_libdir"; then
  15664. haveit=yes
  15665. break
  15666. fi
  15667. done
  15668. if test -z "$haveit"; then
  15669. if test -d "$additional_libdir"; then
  15670. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15671. fi
  15672. fi
  15673. fi
  15674. fi
  15675. ;;
  15676. -R*)
  15677. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15678. if test "$enable_rpath" != no; then
  15679. haveit=
  15680. for x in $rpathdirs; do
  15681. if test "X$x" = "X$dir"; then
  15682. haveit=yes
  15683. break
  15684. fi
  15685. done
  15686. if test -z "$haveit"; then
  15687. rpathdirs="$rpathdirs $dir"
  15688. fi
  15689. haveit=
  15690. for x in $ltrpathdirs; do
  15691. if test "X$x" = "X$dir"; then
  15692. haveit=yes
  15693. break
  15694. fi
  15695. done
  15696. if test -z "$haveit"; then
  15697. ltrpathdirs="$ltrpathdirs $dir"
  15698. fi
  15699. fi
  15700. ;;
  15701. -l*)
  15702. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15703. ;;
  15704. *.la)
  15705. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15706. ;;
  15707. *)
  15708. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15709. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15710. ;;
  15711. esac
  15712. done
  15713. fi
  15714. else
  15715. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15716. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15717. fi
  15718. fi
  15719. fi
  15720. done
  15721. done
  15722. if test "X$rpathdirs" != "X"; then
  15723. if test -n "$acl_hardcode_libdir_separator"; then
  15724. alldirs=
  15725. for found_dir in $rpathdirs; do
  15726. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15727. done
  15728. acl_save_libdir="$libdir"
  15729. libdir="$alldirs"
  15730. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15731. libdir="$acl_save_libdir"
  15732. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15733. else
  15734. for found_dir in $rpathdirs; do
  15735. acl_save_libdir="$libdir"
  15736. libdir="$found_dir"
  15737. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15738. libdir="$acl_save_libdir"
  15739. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15740. done
  15741. fi
  15742. fi
  15743. if test "X$ltrpathdirs" != "X"; then
  15744. for found_dir in $ltrpathdirs; do
  15745. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15746. done
  15747. fi
  15748. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15749. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15750. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15751. echo $ECHO_N "(cached) $ECHO_C" >&6
  15752. else
  15753. gt_save_CPPFLAGS="$CPPFLAGS"
  15754. CPPFLAGS="$CPPFLAGS $INCINTL"
  15755. gt_save_LIBS="$LIBS"
  15756. LIBS="$LIBS $LIBINTL"
  15757. cat >conftest.$ac_ext <<_ACEOF
  15758. /* confdefs.h. */
  15759. _ACEOF
  15760. cat confdefs.h >>conftest.$ac_ext
  15761. cat >>conftest.$ac_ext <<_ACEOF
  15762. /* end confdefs.h. */
  15763. #include <libintl.h>
  15764. $gt_revision_test_code
  15765. extern int _nl_msg_cat_cntr;
  15766. extern
  15767. #ifdef __cplusplus
  15768. "C"
  15769. #endif
  15770. const char *_nl_expand_alias (const char *);
  15771. int
  15772. main ()
  15773. {
  15774. bindtextdomain ("", "");
  15775. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15776. ;
  15777. return 0;
  15778. }
  15779. _ACEOF
  15780. rm -f conftest.$ac_objext conftest$ac_exeext
  15781. if { (ac_try="$ac_link"
  15782. case "(($ac_try" in
  15783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15784. *) ac_try_echo=$ac_try;;
  15785. esac
  15786. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15787. (eval "$ac_link") 2>conftest.er1
  15788. ac_status=$?
  15789. grep -v '^ *+' conftest.er1 >conftest.err
  15790. rm -f conftest.er1
  15791. cat conftest.err >&5
  15792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15793. (exit $ac_status); } && {
  15794. test -z "$ac_cxx_werror_flag" ||
  15795. test ! -s conftest.err
  15796. } && test -s conftest$ac_exeext &&
  15797. $as_test_x conftest$ac_exeext; then
  15798. eval "$gt_func_gnugettext_libintl=yes"
  15799. else
  15800. echo "$as_me: failed program was:" >&5
  15801. sed 's/^/| /' conftest.$ac_ext >&5
  15802. eval "$gt_func_gnugettext_libintl=no"
  15803. fi
  15804. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15805. conftest$ac_exeext conftest.$ac_ext
  15806. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15807. LIBS="$LIBS $LIBICONV"
  15808. cat >conftest.$ac_ext <<_ACEOF
  15809. /* confdefs.h. */
  15810. _ACEOF
  15811. cat confdefs.h >>conftest.$ac_ext
  15812. cat >>conftest.$ac_ext <<_ACEOF
  15813. /* end confdefs.h. */
  15814. #include <libintl.h>
  15815. $gt_revision_test_code
  15816. extern int _nl_msg_cat_cntr;
  15817. extern
  15818. #ifdef __cplusplus
  15819. "C"
  15820. #endif
  15821. const char *_nl_expand_alias (const char *);
  15822. int
  15823. main ()
  15824. {
  15825. bindtextdomain ("", "");
  15826. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15827. ;
  15828. return 0;
  15829. }
  15830. _ACEOF
  15831. rm -f conftest.$ac_objext conftest$ac_exeext
  15832. if { (ac_try="$ac_link"
  15833. case "(($ac_try" in
  15834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15835. *) ac_try_echo=$ac_try;;
  15836. esac
  15837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15838. (eval "$ac_link") 2>conftest.er1
  15839. ac_status=$?
  15840. grep -v '^ *+' conftest.er1 >conftest.err
  15841. rm -f conftest.er1
  15842. cat conftest.err >&5
  15843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15844. (exit $ac_status); } && {
  15845. test -z "$ac_cxx_werror_flag" ||
  15846. test ! -s conftest.err
  15847. } && test -s conftest$ac_exeext &&
  15848. $as_test_x conftest$ac_exeext; then
  15849. LIBINTL="$LIBINTL $LIBICONV"
  15850. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15851. eval "$gt_func_gnugettext_libintl=yes"
  15852. else
  15853. echo "$as_me: failed program was:" >&5
  15854. sed 's/^/| /' conftest.$ac_ext >&5
  15855. fi
  15856. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15857. conftest$ac_exeext conftest.$ac_ext
  15858. fi
  15859. CPPFLAGS="$gt_save_CPPFLAGS"
  15860. LIBS="$gt_save_LIBS"
  15861. fi
  15862. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15863. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15864. echo "${ECHO_T}$ac_res" >&6; }
  15865. fi
  15866. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15867. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15868. && test "$PACKAGE" != gettext-runtime \
  15869. && test "$PACKAGE" != gettext-tools; }; then
  15870. gt_use_preinstalled_gnugettext=yes
  15871. else
  15872. LIBINTL=
  15873. LTLIBINTL=
  15874. INCINTL=
  15875. fi
  15876. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15877. nls_cv_use_gnu_gettext=yes
  15878. fi
  15879. fi
  15880. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15881. BUILD_INCLUDED_LIBINTL=yes
  15882. USE_INCLUDED_LIBINTL=yes
  15883. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15884. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15885. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15886. fi
  15887. CATOBJEXT=
  15888. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15889. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15890. CATOBJEXT=.gmo
  15891. fi
  15892. if test -n "$INTL_MACOSX_LIBS"; then
  15893. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15894. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15895. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15896. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15897. fi
  15898. fi
  15899. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15900. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15901. cat >>confdefs.h <<\_ACEOF
  15902. #define ENABLE_NLS 1
  15903. _ACEOF
  15904. else
  15905. USE_NLS=no
  15906. fi
  15907. fi
  15908. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15909. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15910. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15911. echo "${ECHO_T}$USE_NLS" >&6; }
  15912. if test "$USE_NLS" = "yes"; then
  15913. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15914. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15915. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15916. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15917. gt_source="external libintl"
  15918. else
  15919. gt_source="libc"
  15920. fi
  15921. else
  15922. gt_source="included intl directory"
  15923. fi
  15924. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15925. echo "${ECHO_T}$gt_source" >&6; }
  15926. fi
  15927. if test "$USE_NLS" = "yes"; then
  15928. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15929. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15930. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15931. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15932. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15933. echo "${ECHO_T}$LIBINTL" >&6; }
  15934. for element in $INCINTL; do
  15935. haveit=
  15936. for x in $CPPFLAGS; do
  15937. acl_save_prefix="$prefix"
  15938. prefix="$acl_final_prefix"
  15939. acl_save_exec_prefix="$exec_prefix"
  15940. exec_prefix="$acl_final_exec_prefix"
  15941. eval x=\"$x\"
  15942. exec_prefix="$acl_save_exec_prefix"
  15943. prefix="$acl_save_prefix"
  15944. if test "X$x" = "X$element"; then
  15945. haveit=yes
  15946. break
  15947. fi
  15948. done
  15949. if test -z "$haveit"; then
  15950. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15951. fi
  15952. done
  15953. fi
  15954. cat >>confdefs.h <<\_ACEOF
  15955. #define HAVE_GETTEXT 1
  15956. _ACEOF
  15957. cat >>confdefs.h <<\_ACEOF
  15958. #define HAVE_DCGETTEXT 1
  15959. _ACEOF
  15960. fi
  15961. POSUB=po
  15962. fi
  15963. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15964. BUILD_INCLUDED_LIBINTL=yes
  15965. fi
  15966. nls_cv_header_intl=
  15967. nls_cv_header_libgt=
  15968. DATADIRNAME=share
  15969. INSTOBJEXT=.mo
  15970. GENCAT=gencat
  15971. INTLOBJS=
  15972. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15973. INTLOBJS="\$(GETTOBJS)"
  15974. fi
  15975. INTL_LIBTOOL_SUFFIX_PREFIX=
  15976. INTLLIBS="$LIBINTL"
  15977. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15978. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15979. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15980. echo $ECHO_N "(cached) $ECHO_C" >&6
  15981. else
  15982. cat >conftest.$ac_ext <<_ACEOF
  15983. /* confdefs.h. */
  15984. _ACEOF
  15985. cat confdefs.h >>conftest.$ac_ext
  15986. cat >>conftest.$ac_ext <<_ACEOF
  15987. /* end confdefs.h. */
  15988. #include <error.h>
  15989. int
  15990. main ()
  15991. {
  15992. error_at_line (0, 0, "", 0, "an error occurred");
  15993. ;
  15994. return 0;
  15995. }
  15996. _ACEOF
  15997. rm -f conftest.$ac_objext conftest$ac_exeext
  15998. if { (ac_try="$ac_link"
  15999. case "(($ac_try" in
  16000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16001. *) ac_try_echo=$ac_try;;
  16002. esac
  16003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16004. (eval "$ac_link") 2>conftest.er1
  16005. ac_status=$?
  16006. grep -v '^ *+' conftest.er1 >conftest.err
  16007. rm -f conftest.er1
  16008. cat conftest.err >&5
  16009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16010. (exit $ac_status); } && {
  16011. test -z "$ac_cxx_werror_flag" ||
  16012. test ! -s conftest.err
  16013. } && test -s conftest$ac_exeext &&
  16014. $as_test_x conftest$ac_exeext; then
  16015. ac_cv_lib_error_at_line=yes
  16016. else
  16017. echo "$as_me: failed program was:" >&5
  16018. sed 's/^/| /' conftest.$ac_ext >&5
  16019. ac_cv_lib_error_at_line=no
  16020. fi
  16021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16022. conftest$ac_exeext conftest.$ac_ext
  16023. fi
  16024. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16025. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16026. if test $ac_cv_lib_error_at_line = no; then
  16027. case " $LIBOBJS " in
  16028. *" error.$ac_objext "* ) ;;
  16029. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16030. ;;
  16031. esac
  16032. fi
  16033. if test $ac_cv_c_compiler_gnu = yes; then
  16034. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16035. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16036. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16037. echo $ECHO_N "(cached) $ECHO_C" >&6
  16038. else
  16039. ac_pattern="Autoconf.*'x'"
  16040. cat >conftest.$ac_ext <<_ACEOF
  16041. /* confdefs.h. */
  16042. _ACEOF
  16043. cat confdefs.h >>conftest.$ac_ext
  16044. cat >>conftest.$ac_ext <<_ACEOF
  16045. /* end confdefs.h. */
  16046. #include <sgtty.h>
  16047. Autoconf TIOCGETP
  16048. _ACEOF
  16049. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16050. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16051. ac_cv_prog_gcc_traditional=yes
  16052. else
  16053. ac_cv_prog_gcc_traditional=no
  16054. fi
  16055. rm -f conftest*
  16056. if test $ac_cv_prog_gcc_traditional = no; then
  16057. cat >conftest.$ac_ext <<_ACEOF
  16058. /* confdefs.h. */
  16059. _ACEOF
  16060. cat confdefs.h >>conftest.$ac_ext
  16061. cat >>conftest.$ac_ext <<_ACEOF
  16062. /* end confdefs.h. */
  16063. #include <termio.h>
  16064. Autoconf TCGETA
  16065. _ACEOF
  16066. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16067. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16068. ac_cv_prog_gcc_traditional=yes
  16069. fi
  16070. rm -f conftest*
  16071. fi
  16072. fi
  16073. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16074. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16075. if test $ac_cv_prog_gcc_traditional = yes; then
  16076. CC="$CC -traditional"
  16077. fi
  16078. fi
  16079. case "$target" in
  16080. *mingw*)
  16081. ;;
  16082. *)
  16083. for ac_header in stdlib.h
  16084. do
  16085. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16086. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16087. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16088. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16089. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16090. echo $ECHO_N "(cached) $ECHO_C" >&6
  16091. fi
  16092. ac_res=`eval echo '${'$as_ac_Header'}'`
  16093. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16094. echo "${ECHO_T}$ac_res" >&6; }
  16095. else
  16096. # Is the header compilable?
  16097. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16098. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16099. cat >conftest.$ac_ext <<_ACEOF
  16100. /* confdefs.h. */
  16101. _ACEOF
  16102. cat confdefs.h >>conftest.$ac_ext
  16103. cat >>conftest.$ac_ext <<_ACEOF
  16104. /* end confdefs.h. */
  16105. $ac_includes_default
  16106. #include <$ac_header>
  16107. _ACEOF
  16108. rm -f conftest.$ac_objext
  16109. if { (ac_try="$ac_compile"
  16110. case "(($ac_try" in
  16111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16112. *) ac_try_echo=$ac_try;;
  16113. esac
  16114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16115. (eval "$ac_compile") 2>conftest.er1
  16116. ac_status=$?
  16117. grep -v '^ *+' conftest.er1 >conftest.err
  16118. rm -f conftest.er1
  16119. cat conftest.err >&5
  16120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16121. (exit $ac_status); } && {
  16122. test -z "$ac_cxx_werror_flag" ||
  16123. test ! -s conftest.err
  16124. } && test -s conftest.$ac_objext; then
  16125. ac_header_compiler=yes
  16126. else
  16127. echo "$as_me: failed program was:" >&5
  16128. sed 's/^/| /' conftest.$ac_ext >&5
  16129. ac_header_compiler=no
  16130. fi
  16131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16132. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16133. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16134. # Is the header present?
  16135. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16136. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16137. cat >conftest.$ac_ext <<_ACEOF
  16138. /* confdefs.h. */
  16139. _ACEOF
  16140. cat confdefs.h >>conftest.$ac_ext
  16141. cat >>conftest.$ac_ext <<_ACEOF
  16142. /* end confdefs.h. */
  16143. #include <$ac_header>
  16144. _ACEOF
  16145. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16146. case "(($ac_try" in
  16147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16148. *) ac_try_echo=$ac_try;;
  16149. esac
  16150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16151. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16152. ac_status=$?
  16153. grep -v '^ *+' conftest.er1 >conftest.err
  16154. rm -f conftest.er1
  16155. cat conftest.err >&5
  16156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16157. (exit $ac_status); } >/dev/null && {
  16158. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16159. test ! -s conftest.err
  16160. }; then
  16161. ac_header_preproc=yes
  16162. else
  16163. echo "$as_me: failed program was:" >&5
  16164. sed 's/^/| /' conftest.$ac_ext >&5
  16165. ac_header_preproc=no
  16166. fi
  16167. rm -f conftest.err conftest.$ac_ext
  16168. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16169. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16170. # So? What about this header?
  16171. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16172. yes:no: )
  16173. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16174. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16175. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16176. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16177. ac_header_preproc=yes
  16178. ;;
  16179. no:yes:* )
  16180. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16181. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16182. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16183. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16184. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16185. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16186. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16187. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16188. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16189. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16190. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16191. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16192. ( cat <<\_ASBOX
  16193. ## ----------------------------------------------- ##
  16194. ## Report this to t-tujikawa@users.sourceforge.net ##
  16195. ## ----------------------------------------------- ##
  16196. _ASBOX
  16197. ) | sed "s/^/$as_me: WARNING: /" >&2
  16198. ;;
  16199. esac
  16200. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16201. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16202. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16203. echo $ECHO_N "(cached) $ECHO_C" >&6
  16204. else
  16205. eval "$as_ac_Header=\$ac_header_preproc"
  16206. fi
  16207. ac_res=`eval echo '${'$as_ac_Header'}'`
  16208. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16209. echo "${ECHO_T}$ac_res" >&6; }
  16210. fi
  16211. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16212. cat >>confdefs.h <<_ACEOF
  16213. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16214. _ACEOF
  16215. fi
  16216. done
  16217. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16218. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16219. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16220. echo $ECHO_N "(cached) $ECHO_C" >&6
  16221. else
  16222. if test "$cross_compiling" = yes; then
  16223. ac_cv_func_malloc_0_nonnull=no
  16224. else
  16225. cat >conftest.$ac_ext <<_ACEOF
  16226. /* confdefs.h. */
  16227. _ACEOF
  16228. cat confdefs.h >>conftest.$ac_ext
  16229. cat >>conftest.$ac_ext <<_ACEOF
  16230. /* end confdefs.h. */
  16231. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16232. # include <stdlib.h>
  16233. #else
  16234. char *malloc ();
  16235. #endif
  16236. int
  16237. main ()
  16238. {
  16239. return ! malloc (0);
  16240. ;
  16241. return 0;
  16242. }
  16243. _ACEOF
  16244. rm -f conftest$ac_exeext
  16245. if { (ac_try="$ac_link"
  16246. case "(($ac_try" in
  16247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16248. *) ac_try_echo=$ac_try;;
  16249. esac
  16250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16251. (eval "$ac_link") 2>&5
  16252. ac_status=$?
  16253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16254. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  16261. ac_status=$?
  16262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16263. (exit $ac_status); }; }; then
  16264. ac_cv_func_malloc_0_nonnull=yes
  16265. else
  16266. echo "$as_me: program exited with status $ac_status" >&5
  16267. echo "$as_me: failed program was:" >&5
  16268. sed 's/^/| /' conftest.$ac_ext >&5
  16269. ( exit $ac_status )
  16270. ac_cv_func_malloc_0_nonnull=no
  16271. fi
  16272. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16273. fi
  16274. fi
  16275. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16276. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16277. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16278. cat >>confdefs.h <<\_ACEOF
  16279. #define HAVE_MALLOC 1
  16280. _ACEOF
  16281. else
  16282. cat >>confdefs.h <<\_ACEOF
  16283. #define HAVE_MALLOC 0
  16284. _ACEOF
  16285. case " $LIBOBJS " in
  16286. *" malloc.$ac_objext "* ) ;;
  16287. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16288. ;;
  16289. esac
  16290. cat >>confdefs.h <<\_ACEOF
  16291. #define malloc rpl_malloc
  16292. _ACEOF
  16293. fi
  16294. for ac_header in stdlib.h
  16295. do
  16296. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16297. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16298. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16300. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16301. echo $ECHO_N "(cached) $ECHO_C" >&6
  16302. fi
  16303. ac_res=`eval echo '${'$as_ac_Header'}'`
  16304. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16305. echo "${ECHO_T}$ac_res" >&6; }
  16306. else
  16307. # Is the header compilable?
  16308. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16309. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16310. cat >conftest.$ac_ext <<_ACEOF
  16311. /* confdefs.h. */
  16312. _ACEOF
  16313. cat confdefs.h >>conftest.$ac_ext
  16314. cat >>conftest.$ac_ext <<_ACEOF
  16315. /* end confdefs.h. */
  16316. $ac_includes_default
  16317. #include <$ac_header>
  16318. _ACEOF
  16319. rm -f conftest.$ac_objext
  16320. if { (ac_try="$ac_compile"
  16321. case "(($ac_try" in
  16322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16323. *) ac_try_echo=$ac_try;;
  16324. esac
  16325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16326. (eval "$ac_compile") 2>conftest.er1
  16327. ac_status=$?
  16328. grep -v '^ *+' conftest.er1 >conftest.err
  16329. rm -f conftest.er1
  16330. cat conftest.err >&5
  16331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16332. (exit $ac_status); } && {
  16333. test -z "$ac_cxx_werror_flag" ||
  16334. test ! -s conftest.err
  16335. } && test -s conftest.$ac_objext; then
  16336. ac_header_compiler=yes
  16337. else
  16338. echo "$as_me: failed program was:" >&5
  16339. sed 's/^/| /' conftest.$ac_ext >&5
  16340. ac_header_compiler=no
  16341. fi
  16342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16343. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16344. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16345. # Is the header present?
  16346. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16347. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16348. cat >conftest.$ac_ext <<_ACEOF
  16349. /* confdefs.h. */
  16350. _ACEOF
  16351. cat confdefs.h >>conftest.$ac_ext
  16352. cat >>conftest.$ac_ext <<_ACEOF
  16353. /* end confdefs.h. */
  16354. #include <$ac_header>
  16355. _ACEOF
  16356. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16357. case "(($ac_try" in
  16358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16359. *) ac_try_echo=$ac_try;;
  16360. esac
  16361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16362. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16363. ac_status=$?
  16364. grep -v '^ *+' conftest.er1 >conftest.err
  16365. rm -f conftest.er1
  16366. cat conftest.err >&5
  16367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16368. (exit $ac_status); } >/dev/null && {
  16369. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16370. test ! -s conftest.err
  16371. }; then
  16372. ac_header_preproc=yes
  16373. else
  16374. echo "$as_me: failed program was:" >&5
  16375. sed 's/^/| /' conftest.$ac_ext >&5
  16376. ac_header_preproc=no
  16377. fi
  16378. rm -f conftest.err conftest.$ac_ext
  16379. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16380. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16381. # So? What about this header?
  16382. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16383. yes:no: )
  16384. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16385. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16386. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16387. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16388. ac_header_preproc=yes
  16389. ;;
  16390. no:yes:* )
  16391. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16392. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16393. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16394. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16395. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16396. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16397. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16398. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16399. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16400. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16401. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16402. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16403. ( cat <<\_ASBOX
  16404. ## ----------------------------------------------- ##
  16405. ## Report this to t-tujikawa@users.sourceforge.net ##
  16406. ## ----------------------------------------------- ##
  16407. _ASBOX
  16408. ) | sed "s/^/$as_me: WARNING: /" >&2
  16409. ;;
  16410. esac
  16411. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16412. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16413. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16414. echo $ECHO_N "(cached) $ECHO_C" >&6
  16415. else
  16416. eval "$as_ac_Header=\$ac_header_preproc"
  16417. fi
  16418. ac_res=`eval echo '${'$as_ac_Header'}'`
  16419. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16420. echo "${ECHO_T}$ac_res" >&6; }
  16421. fi
  16422. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16423. cat >>confdefs.h <<_ACEOF
  16424. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16425. _ACEOF
  16426. fi
  16427. done
  16428. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16429. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16430. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16431. echo $ECHO_N "(cached) $ECHO_C" >&6
  16432. else
  16433. if test "$cross_compiling" = yes; then
  16434. ac_cv_func_realloc_0_nonnull=no
  16435. else
  16436. cat >conftest.$ac_ext <<_ACEOF
  16437. /* confdefs.h. */
  16438. _ACEOF
  16439. cat confdefs.h >>conftest.$ac_ext
  16440. cat >>conftest.$ac_ext <<_ACEOF
  16441. /* end confdefs.h. */
  16442. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16443. # include <stdlib.h>
  16444. #else
  16445. char *realloc ();
  16446. #endif
  16447. int
  16448. main ()
  16449. {
  16450. return ! realloc (0, 0);
  16451. ;
  16452. return 0;
  16453. }
  16454. _ACEOF
  16455. rm -f conftest$ac_exeext
  16456. if { (ac_try="$ac_link"
  16457. case "(($ac_try" in
  16458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16459. *) ac_try_echo=$ac_try;;
  16460. esac
  16461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16462. (eval "$ac_link") 2>&5
  16463. ac_status=$?
  16464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16465. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16466. { (case "(($ac_try" in
  16467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16468. *) ac_try_echo=$ac_try;;
  16469. esac
  16470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16471. (eval "$ac_try") 2>&5
  16472. ac_status=$?
  16473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16474. (exit $ac_status); }; }; then
  16475. ac_cv_func_realloc_0_nonnull=yes
  16476. else
  16477. echo "$as_me: program exited with status $ac_status" >&5
  16478. echo "$as_me: failed program was:" >&5
  16479. sed 's/^/| /' conftest.$ac_ext >&5
  16480. ( exit $ac_status )
  16481. ac_cv_func_realloc_0_nonnull=no
  16482. fi
  16483. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16484. fi
  16485. fi
  16486. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16487. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16488. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16489. cat >>confdefs.h <<\_ACEOF
  16490. #define HAVE_REALLOC 1
  16491. _ACEOF
  16492. else
  16493. cat >>confdefs.h <<\_ACEOF
  16494. #define HAVE_REALLOC 0
  16495. _ACEOF
  16496. case " $LIBOBJS " in
  16497. *" realloc.$ac_objext "* ) ;;
  16498. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16499. ;;
  16500. esac
  16501. cat >>confdefs.h <<\_ACEOF
  16502. #define realloc rpl_realloc
  16503. _ACEOF
  16504. fi
  16505. ;;
  16506. esac
  16507. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16508. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16509. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16510. echo $ECHO_N "(cached) $ECHO_C" >&6
  16511. else
  16512. if test "$cross_compiling" = yes; then
  16513. ac_cv_func_memcmp_working=no
  16514. else
  16515. cat >conftest.$ac_ext <<_ACEOF
  16516. /* confdefs.h. */
  16517. _ACEOF
  16518. cat confdefs.h >>conftest.$ac_ext
  16519. cat >>conftest.$ac_ext <<_ACEOF
  16520. /* end confdefs.h. */
  16521. $ac_includes_default
  16522. int
  16523. main ()
  16524. {
  16525. /* Some versions of memcmp are not 8-bit clean. */
  16526. char c0 = '\100', c1 = '\200', c2 = '\201';
  16527. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16528. return 1;
  16529. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16530. or more and with at least one buffer not starting on a 4-byte boundary.
  16531. William Lewis provided this test program. */
  16532. {
  16533. char foo[21];
  16534. char bar[21];
  16535. int i;
  16536. for (i = 0; i < 4; i++)
  16537. {
  16538. char *a = foo + i;
  16539. char *b = bar + i;
  16540. strcpy (a, "--------01111111");
  16541. strcpy (b, "--------10000000");
  16542. if (memcmp (a, b, 16) >= 0)
  16543. return 1;
  16544. }
  16545. return 0;
  16546. }
  16547. ;
  16548. return 0;
  16549. }
  16550. _ACEOF
  16551. rm -f conftest$ac_exeext
  16552. if { (ac_try="$ac_link"
  16553. case "(($ac_try" in
  16554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16555. *) ac_try_echo=$ac_try;;
  16556. esac
  16557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16558. (eval "$ac_link") 2>&5
  16559. ac_status=$?
  16560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16561. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16562. { (case "(($ac_try" in
  16563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16564. *) ac_try_echo=$ac_try;;
  16565. esac
  16566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16567. (eval "$ac_try") 2>&5
  16568. ac_status=$?
  16569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16570. (exit $ac_status); }; }; then
  16571. ac_cv_func_memcmp_working=yes
  16572. else
  16573. echo "$as_me: program exited with status $ac_status" >&5
  16574. echo "$as_me: failed program was:" >&5
  16575. sed 's/^/| /' conftest.$ac_ext >&5
  16576. ( exit $ac_status )
  16577. ac_cv_func_memcmp_working=no
  16578. fi
  16579. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16580. fi
  16581. fi
  16582. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16583. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16584. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16585. *" memcmp.$ac_objext "* ) ;;
  16586. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16587. ;;
  16588. esac
  16589. for ac_header in $ac_header_list
  16590. do
  16591. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16592. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16593. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16594. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16595. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16596. echo $ECHO_N "(cached) $ECHO_C" >&6
  16597. fi
  16598. ac_res=`eval echo '${'$as_ac_Header'}'`
  16599. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16600. echo "${ECHO_T}$ac_res" >&6; }
  16601. else
  16602. # Is the header compilable?
  16603. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16604. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16605. cat >conftest.$ac_ext <<_ACEOF
  16606. /* confdefs.h. */
  16607. _ACEOF
  16608. cat confdefs.h >>conftest.$ac_ext
  16609. cat >>conftest.$ac_ext <<_ACEOF
  16610. /* end confdefs.h. */
  16611. $ac_includes_default
  16612. #include <$ac_header>
  16613. _ACEOF
  16614. rm -f conftest.$ac_objext
  16615. if { (ac_try="$ac_compile"
  16616. case "(($ac_try" in
  16617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16618. *) ac_try_echo=$ac_try;;
  16619. esac
  16620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16621. (eval "$ac_compile") 2>conftest.er1
  16622. ac_status=$?
  16623. grep -v '^ *+' conftest.er1 >conftest.err
  16624. rm -f conftest.er1
  16625. cat conftest.err >&5
  16626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16627. (exit $ac_status); } && {
  16628. test -z "$ac_cxx_werror_flag" ||
  16629. test ! -s conftest.err
  16630. } && test -s conftest.$ac_objext; then
  16631. ac_header_compiler=yes
  16632. else
  16633. echo "$as_me: failed program was:" >&5
  16634. sed 's/^/| /' conftest.$ac_ext >&5
  16635. ac_header_compiler=no
  16636. fi
  16637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16638. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16639. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16640. # Is the header present?
  16641. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16642. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16643. cat >conftest.$ac_ext <<_ACEOF
  16644. /* confdefs.h. */
  16645. _ACEOF
  16646. cat confdefs.h >>conftest.$ac_ext
  16647. cat >>conftest.$ac_ext <<_ACEOF
  16648. /* end confdefs.h. */
  16649. #include <$ac_header>
  16650. _ACEOF
  16651. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16652. case "(($ac_try" in
  16653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16654. *) ac_try_echo=$ac_try;;
  16655. esac
  16656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16657. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16658. ac_status=$?
  16659. grep -v '^ *+' conftest.er1 >conftest.err
  16660. rm -f conftest.er1
  16661. cat conftest.err >&5
  16662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16663. (exit $ac_status); } >/dev/null && {
  16664. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16665. test ! -s conftest.err
  16666. }; then
  16667. ac_header_preproc=yes
  16668. else
  16669. echo "$as_me: failed program was:" >&5
  16670. sed 's/^/| /' conftest.$ac_ext >&5
  16671. ac_header_preproc=no
  16672. fi
  16673. rm -f conftest.err conftest.$ac_ext
  16674. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16675. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16676. # So? What about this header?
  16677. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16678. yes:no: )
  16679. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16680. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16681. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16682. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16683. ac_header_preproc=yes
  16684. ;;
  16685. no:yes:* )
  16686. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16687. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16688. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16689. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16690. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16691. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16692. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16693. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16694. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16695. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16696. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16697. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16698. ( cat <<\_ASBOX
  16699. ## ----------------------------------------------- ##
  16700. ## Report this to t-tujikawa@users.sourceforge.net ##
  16701. ## ----------------------------------------------- ##
  16702. _ASBOX
  16703. ) | sed "s/^/$as_me: WARNING: /" >&2
  16704. ;;
  16705. esac
  16706. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16707. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16708. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16709. echo $ECHO_N "(cached) $ECHO_C" >&6
  16710. else
  16711. eval "$as_ac_Header=\$ac_header_preproc"
  16712. fi
  16713. ac_res=`eval echo '${'$as_ac_Header'}'`
  16714. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16715. echo "${ECHO_T}$ac_res" >&6; }
  16716. fi
  16717. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16718. cat >>confdefs.h <<_ACEOF
  16719. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16720. _ACEOF
  16721. fi
  16722. done
  16723. for ac_func in $ac_func_list
  16724. do
  16725. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16726. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16727. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16728. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16729. echo $ECHO_N "(cached) $ECHO_C" >&6
  16730. else
  16731. cat >conftest.$ac_ext <<_ACEOF
  16732. /* confdefs.h. */
  16733. _ACEOF
  16734. cat confdefs.h >>conftest.$ac_ext
  16735. cat >>conftest.$ac_ext <<_ACEOF
  16736. /* end confdefs.h. */
  16737. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16738. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16739. #define $ac_func innocuous_$ac_func
  16740. /* System header to define __stub macros and hopefully few prototypes,
  16741. which can conflict with char $ac_func (); below.
  16742. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16743. <limits.h> exists even on freestanding compilers. */
  16744. #ifdef __STDC__
  16745. # include <limits.h>
  16746. #else
  16747. # include <assert.h>
  16748. #endif
  16749. #undef $ac_func
  16750. /* Override any GCC internal prototype to avoid an error.
  16751. Use char because int might match the return type of a GCC
  16752. builtin and then its argument prototype would still apply. */
  16753. #ifdef __cplusplus
  16754. extern "C"
  16755. #endif
  16756. char $ac_func ();
  16757. /* The GNU C library defines this for functions which it implements
  16758. to always fail with ENOSYS. Some functions are actually named
  16759. something starting with __ and the normal name is an alias. */
  16760. #if defined __stub_$ac_func || defined __stub___$ac_func
  16761. choke me
  16762. #endif
  16763. int
  16764. main ()
  16765. {
  16766. return $ac_func ();
  16767. ;
  16768. return 0;
  16769. }
  16770. _ACEOF
  16771. rm -f conftest.$ac_objext conftest$ac_exeext
  16772. if { (ac_try="$ac_link"
  16773. case "(($ac_try" in
  16774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16775. *) ac_try_echo=$ac_try;;
  16776. esac
  16777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16778. (eval "$ac_link") 2>conftest.er1
  16779. ac_status=$?
  16780. grep -v '^ *+' conftest.er1 >conftest.err
  16781. rm -f conftest.er1
  16782. cat conftest.err >&5
  16783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16784. (exit $ac_status); } && {
  16785. test -z "$ac_cxx_werror_flag" ||
  16786. test ! -s conftest.err
  16787. } && test -s conftest$ac_exeext &&
  16788. $as_test_x conftest$ac_exeext; then
  16789. eval "$as_ac_var=yes"
  16790. else
  16791. echo "$as_me: failed program was:" >&5
  16792. sed 's/^/| /' conftest.$ac_ext >&5
  16793. eval "$as_ac_var=no"
  16794. fi
  16795. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16796. conftest$ac_exeext conftest.$ac_ext
  16797. fi
  16798. ac_res=`eval echo '${'$as_ac_var'}'`
  16799. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16800. echo "${ECHO_T}$ac_res" >&6; }
  16801. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16802. cat >>confdefs.h <<_ACEOF
  16803. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16804. _ACEOF
  16805. fi
  16806. done
  16807. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16808. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16809. if test "${ac_cv_func_working_mktime+set}" = set; then
  16810. echo $ECHO_N "(cached) $ECHO_C" >&6
  16811. else
  16812. if test "$cross_compiling" = yes; then
  16813. ac_cv_func_working_mktime=no
  16814. else
  16815. cat >conftest.$ac_ext <<_ACEOF
  16816. /* confdefs.h. */
  16817. _ACEOF
  16818. cat confdefs.h >>conftest.$ac_ext
  16819. cat >>conftest.$ac_ext <<_ACEOF
  16820. /* end confdefs.h. */
  16821. /* Test program from Paul Eggert and Tony Leneis. */
  16822. #ifdef TIME_WITH_SYS_TIME
  16823. # include <sys/time.h>
  16824. # include <time.h>
  16825. #else
  16826. # ifdef HAVE_SYS_TIME_H
  16827. # include <sys/time.h>
  16828. # else
  16829. # include <time.h>
  16830. # endif
  16831. #endif
  16832. #include <limits.h>
  16833. #include <stdlib.h>
  16834. #ifdef HAVE_UNISTD_H
  16835. # include <unistd.h>
  16836. #endif
  16837. #ifndef HAVE_ALARM
  16838. # define alarm(X) /* empty */
  16839. #endif
  16840. /* Work around redefinition to rpl_putenv by other config tests. */
  16841. #undef putenv
  16842. static time_t time_t_max;
  16843. static time_t time_t_min;
  16844. /* Values we'll use to set the TZ environment variable. */
  16845. static char *tz_strings[] = {
  16846. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16847. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16848. };
  16849. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16850. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16851. Based on a problem report from Andreas Jaeger. */
  16852. static int
  16853. spring_forward_gap ()
  16854. {
  16855. /* glibc (up to about 1998-10-07) failed this test. */
  16856. struct tm tm;
  16857. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16858. instead of "TZ=America/Vancouver" in order to detect the bug even
  16859. on systems that don't support the Olson extension, or don't have the
  16860. full zoneinfo tables installed. */
  16861. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16862. tm.tm_year = 98;
  16863. tm.tm_mon = 3;
  16864. tm.tm_mday = 5;
  16865. tm.tm_hour = 2;
  16866. tm.tm_min = 0;
  16867. tm.tm_sec = 0;
  16868. tm.tm_isdst = -1;
  16869. return mktime (&tm) != (time_t) -1;
  16870. }
  16871. static int
  16872. mktime_test1 (now)
  16873. time_t now;
  16874. {
  16875. struct tm *lt;
  16876. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16877. }
  16878. static int
  16879. mktime_test (now)
  16880. time_t now;
  16881. {
  16882. return (mktime_test1 (now)
  16883. && mktime_test1 ((time_t) (time_t_max - now))
  16884. && mktime_test1 ((time_t) (time_t_min + now)));
  16885. }
  16886. static int
  16887. irix_6_4_bug ()
  16888. {
  16889. /* Based on code from Ariel Faigon. */
  16890. struct tm tm;
  16891. tm.tm_year = 96;
  16892. tm.tm_mon = 3;
  16893. tm.tm_mday = 0;
  16894. tm.tm_hour = 0;
  16895. tm.tm_min = 0;
  16896. tm.tm_sec = 0;
  16897. tm.tm_isdst = -1;
  16898. mktime (&tm);
  16899. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16900. }
  16901. static int
  16902. bigtime_test (j)
  16903. int j;
  16904. {
  16905. struct tm tm;
  16906. time_t now;
  16907. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16908. now = mktime (&tm);
  16909. if (now != (time_t) -1)
  16910. {
  16911. struct tm *lt = localtime (&now);
  16912. if (! (lt
  16913. && lt->tm_year == tm.tm_year
  16914. && lt->tm_mon == tm.tm_mon
  16915. && lt->tm_mday == tm.tm_mday
  16916. && lt->tm_hour == tm.tm_hour
  16917. && lt->tm_min == tm.tm_min
  16918. && lt->tm_sec == tm.tm_sec
  16919. && lt->tm_yday == tm.tm_yday
  16920. && lt->tm_wday == tm.tm_wday
  16921. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16922. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16923. return 0;
  16924. }
  16925. return 1;
  16926. }
  16927. static int
  16928. year_2050_test ()
  16929. {
  16930. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16931. ignoring leap seconds. */
  16932. unsigned long int answer = 2527315200UL;
  16933. struct tm tm;
  16934. time_t t;
  16935. tm.tm_year = 2050 - 1900;
  16936. tm.tm_mon = 2 - 1;
  16937. tm.tm_mday = 1;
  16938. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16939. tm.tm_isdst = -1;
  16940. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16941. instead of "TZ=America/Vancouver" in order to detect the bug even
  16942. on systems that don't support the Olson extension, or don't have the
  16943. full zoneinfo tables installed. */
  16944. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16945. t = mktime (&tm);
  16946. /* Check that the result is either a failure, or close enough
  16947. to the correct answer that we can assume the discrepancy is
  16948. due to leap seconds. */
  16949. return (t == (time_t) -1
  16950. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16951. }
  16952. int
  16953. main ()
  16954. {
  16955. time_t t, delta;
  16956. int i, j;
  16957. /* This test makes some buggy mktime implementations loop.
  16958. Give up after 60 seconds; a mktime slower than that
  16959. isn't worth using anyway. */
  16960. alarm (60);
  16961. for (;;)
  16962. {
  16963. t = (time_t_max << 1) + 1;
  16964. if (t <= time_t_max)
  16965. break;
  16966. time_t_max = t;
  16967. }
  16968. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16969. delta = time_t_max / 997; /* a suitable prime number */
  16970. for (i = 0; i < N_STRINGS; i++)
  16971. {
  16972. if (tz_strings[i])
  16973. putenv (tz_strings[i]);
  16974. for (t = 0; t <= time_t_max - delta; t += delta)
  16975. if (! mktime_test (t))
  16976. return 1;
  16977. if (! (mktime_test ((time_t) 1)
  16978. && mktime_test ((time_t) (60 * 60))
  16979. && mktime_test ((time_t) (60 * 60 * 24))))
  16980. return 1;
  16981. for (j = 1; ; j <<= 1)
  16982. if (! bigtime_test (j))
  16983. return 1;
  16984. else if (INT_MAX / 2 < j)
  16985. break;
  16986. if (! bigtime_test (INT_MAX))
  16987. return 1;
  16988. }
  16989. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16990. }
  16991. _ACEOF
  16992. rm -f conftest$ac_exeext
  16993. if { (ac_try="$ac_link"
  16994. case "(($ac_try" in
  16995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16996. *) ac_try_echo=$ac_try;;
  16997. esac
  16998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16999. (eval "$ac_link") 2>&5
  17000. ac_status=$?
  17001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17002. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17003. { (case "(($ac_try" in
  17004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17005. *) ac_try_echo=$ac_try;;
  17006. esac
  17007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17008. (eval "$ac_try") 2>&5
  17009. ac_status=$?
  17010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17011. (exit $ac_status); }; }; then
  17012. ac_cv_func_working_mktime=yes
  17013. else
  17014. echo "$as_me: program exited with status $ac_status" >&5
  17015. echo "$as_me: failed program was:" >&5
  17016. sed 's/^/| /' conftest.$ac_ext >&5
  17017. ( exit $ac_status )
  17018. ac_cv_func_working_mktime=no
  17019. fi
  17020. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17021. fi
  17022. fi
  17023. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17024. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17025. if test $ac_cv_func_working_mktime = no; then
  17026. case " $LIBOBJS " in
  17027. *" mktime.$ac_objext "* ) ;;
  17028. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17029. ;;
  17030. esac
  17031. fi
  17032. for ac_header in stdlib.h unistd.h
  17033. do
  17034. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17035. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17036. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17037. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17038. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17039. echo $ECHO_N "(cached) $ECHO_C" >&6
  17040. fi
  17041. ac_res=`eval echo '${'$as_ac_Header'}'`
  17042. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17043. echo "${ECHO_T}$ac_res" >&6; }
  17044. else
  17045. # Is the header compilable?
  17046. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17047. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17048. cat >conftest.$ac_ext <<_ACEOF
  17049. /* confdefs.h. */
  17050. _ACEOF
  17051. cat confdefs.h >>conftest.$ac_ext
  17052. cat >>conftest.$ac_ext <<_ACEOF
  17053. /* end confdefs.h. */
  17054. $ac_includes_default
  17055. #include <$ac_header>
  17056. _ACEOF
  17057. rm -f conftest.$ac_objext
  17058. if { (ac_try="$ac_compile"
  17059. case "(($ac_try" in
  17060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17061. *) ac_try_echo=$ac_try;;
  17062. esac
  17063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17064. (eval "$ac_compile") 2>conftest.er1
  17065. ac_status=$?
  17066. grep -v '^ *+' conftest.er1 >conftest.err
  17067. rm -f conftest.er1
  17068. cat conftest.err >&5
  17069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17070. (exit $ac_status); } && {
  17071. test -z "$ac_cxx_werror_flag" ||
  17072. test ! -s conftest.err
  17073. } && test -s conftest.$ac_objext; then
  17074. ac_header_compiler=yes
  17075. else
  17076. echo "$as_me: failed program was:" >&5
  17077. sed 's/^/| /' conftest.$ac_ext >&5
  17078. ac_header_compiler=no
  17079. fi
  17080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17081. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17082. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17083. # Is the header present?
  17084. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17085. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17086. cat >conftest.$ac_ext <<_ACEOF
  17087. /* confdefs.h. */
  17088. _ACEOF
  17089. cat confdefs.h >>conftest.$ac_ext
  17090. cat >>conftest.$ac_ext <<_ACEOF
  17091. /* end confdefs.h. */
  17092. #include <$ac_header>
  17093. _ACEOF
  17094. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17095. case "(($ac_try" in
  17096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17097. *) ac_try_echo=$ac_try;;
  17098. esac
  17099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17100. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17101. ac_status=$?
  17102. grep -v '^ *+' conftest.er1 >conftest.err
  17103. rm -f conftest.er1
  17104. cat conftest.err >&5
  17105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17106. (exit $ac_status); } >/dev/null && {
  17107. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17108. test ! -s conftest.err
  17109. }; then
  17110. ac_header_preproc=yes
  17111. else
  17112. echo "$as_me: failed program was:" >&5
  17113. sed 's/^/| /' conftest.$ac_ext >&5
  17114. ac_header_preproc=no
  17115. fi
  17116. rm -f conftest.err conftest.$ac_ext
  17117. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17118. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17119. # So? What about this header?
  17120. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17121. yes:no: )
  17122. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17123. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17124. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17125. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17126. ac_header_preproc=yes
  17127. ;;
  17128. no:yes:* )
  17129. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17130. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17131. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17132. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17133. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17134. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17135. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17136. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17137. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17138. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17139. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17140. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17141. ( cat <<\_ASBOX
  17142. ## ----------------------------------------------- ##
  17143. ## Report this to t-tujikawa@users.sourceforge.net ##
  17144. ## ----------------------------------------------- ##
  17145. _ASBOX
  17146. ) | sed "s/^/$as_me: WARNING: /" >&2
  17147. ;;
  17148. esac
  17149. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17150. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17151. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17152. echo $ECHO_N "(cached) $ECHO_C" >&6
  17153. else
  17154. eval "$as_ac_Header=\$ac_header_preproc"
  17155. fi
  17156. ac_res=`eval echo '${'$as_ac_Header'}'`
  17157. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17158. echo "${ECHO_T}$ac_res" >&6; }
  17159. fi
  17160. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17161. cat >>confdefs.h <<_ACEOF
  17162. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17163. _ACEOF
  17164. fi
  17165. done
  17166. for ac_func in getpagesize
  17167. do
  17168. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17169. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17170. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17171. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17172. echo $ECHO_N "(cached) $ECHO_C" >&6
  17173. else
  17174. cat >conftest.$ac_ext <<_ACEOF
  17175. /* confdefs.h. */
  17176. _ACEOF
  17177. cat confdefs.h >>conftest.$ac_ext
  17178. cat >>conftest.$ac_ext <<_ACEOF
  17179. /* end confdefs.h. */
  17180. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17181. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17182. #define $ac_func innocuous_$ac_func
  17183. /* System header to define __stub macros and hopefully few prototypes,
  17184. which can conflict with char $ac_func (); below.
  17185. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17186. <limits.h> exists even on freestanding compilers. */
  17187. #ifdef __STDC__
  17188. # include <limits.h>
  17189. #else
  17190. # include <assert.h>
  17191. #endif
  17192. #undef $ac_func
  17193. /* Override any GCC internal prototype to avoid an error.
  17194. Use char because int might match the return type of a GCC
  17195. builtin and then its argument prototype would still apply. */
  17196. #ifdef __cplusplus
  17197. extern "C"
  17198. #endif
  17199. char $ac_func ();
  17200. /* The GNU C library defines this for functions which it implements
  17201. to always fail with ENOSYS. Some functions are actually named
  17202. something starting with __ and the normal name is an alias. */
  17203. #if defined __stub_$ac_func || defined __stub___$ac_func
  17204. choke me
  17205. #endif
  17206. int
  17207. main ()
  17208. {
  17209. return $ac_func ();
  17210. ;
  17211. return 0;
  17212. }
  17213. _ACEOF
  17214. rm -f conftest.$ac_objext conftest$ac_exeext
  17215. if { (ac_try="$ac_link"
  17216. case "(($ac_try" in
  17217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17218. *) ac_try_echo=$ac_try;;
  17219. esac
  17220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17221. (eval "$ac_link") 2>conftest.er1
  17222. ac_status=$?
  17223. grep -v '^ *+' conftest.er1 >conftest.err
  17224. rm -f conftest.er1
  17225. cat conftest.err >&5
  17226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17227. (exit $ac_status); } && {
  17228. test -z "$ac_cxx_werror_flag" ||
  17229. test ! -s conftest.err
  17230. } && test -s conftest$ac_exeext &&
  17231. $as_test_x conftest$ac_exeext; then
  17232. eval "$as_ac_var=yes"
  17233. else
  17234. echo "$as_me: failed program was:" >&5
  17235. sed 's/^/| /' conftest.$ac_ext >&5
  17236. eval "$as_ac_var=no"
  17237. fi
  17238. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17239. conftest$ac_exeext conftest.$ac_ext
  17240. fi
  17241. ac_res=`eval echo '${'$as_ac_var'}'`
  17242. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17243. echo "${ECHO_T}$ac_res" >&6; }
  17244. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17245. cat >>confdefs.h <<_ACEOF
  17246. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17247. _ACEOF
  17248. fi
  17249. done
  17250. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17251. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17252. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17253. echo $ECHO_N "(cached) $ECHO_C" >&6
  17254. else
  17255. if test "$cross_compiling" = yes; then
  17256. ac_cv_func_mmap_fixed_mapped=no
  17257. else
  17258. cat >conftest.$ac_ext <<_ACEOF
  17259. /* confdefs.h. */
  17260. _ACEOF
  17261. cat confdefs.h >>conftest.$ac_ext
  17262. cat >>conftest.$ac_ext <<_ACEOF
  17263. /* end confdefs.h. */
  17264. $ac_includes_default
  17265. /* malloc might have been renamed as rpl_malloc. */
  17266. #undef malloc
  17267. /* Thanks to Mike Haertel and Jim Avera for this test.
  17268. Here is a matrix of mmap possibilities:
  17269. mmap private not fixed
  17270. mmap private fixed at somewhere currently unmapped
  17271. mmap private fixed at somewhere already mapped
  17272. mmap shared not fixed
  17273. mmap shared fixed at somewhere currently unmapped
  17274. mmap shared fixed at somewhere already mapped
  17275. For private mappings, we should verify that changes cannot be read()
  17276. back from the file, nor mmap's back from the file at a different
  17277. address. (There have been systems where private was not correctly
  17278. implemented like the infamous i386 svr4.0, and systems where the
  17279. VM page cache was not coherent with the file system buffer cache
  17280. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17281. For shared mappings, we should conversely verify that changes get
  17282. propagated back to all the places they're supposed to be.
  17283. Grep wants private fixed already mapped.
  17284. The main things grep needs to know about mmap are:
  17285. * does it exist and is it safe to write into the mmap'd area
  17286. * how to use it (BSD variants) */
  17287. #include <fcntl.h>
  17288. #include <sys/mman.h>
  17289. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17290. char *malloc ();
  17291. #endif
  17292. /* This mess was copied from the GNU getpagesize.h. */
  17293. #ifndef HAVE_GETPAGESIZE
  17294. /* Assume that all systems that can run configure have sys/param.h. */
  17295. # ifndef HAVE_SYS_PARAM_H
  17296. # define HAVE_SYS_PARAM_H 1
  17297. # endif
  17298. # ifdef _SC_PAGESIZE
  17299. # define getpagesize() sysconf(_SC_PAGESIZE)
  17300. # else /* no _SC_PAGESIZE */
  17301. # ifdef HAVE_SYS_PARAM_H
  17302. # include <sys/param.h>
  17303. # ifdef EXEC_PAGESIZE
  17304. # define getpagesize() EXEC_PAGESIZE
  17305. # else /* no EXEC_PAGESIZE */
  17306. # ifdef NBPG
  17307. # define getpagesize() NBPG * CLSIZE
  17308. # ifndef CLSIZE
  17309. # define CLSIZE 1
  17310. # endif /* no CLSIZE */
  17311. # else /* no NBPG */
  17312. # ifdef NBPC
  17313. # define getpagesize() NBPC
  17314. # else /* no NBPC */
  17315. # ifdef PAGESIZE
  17316. # define getpagesize() PAGESIZE
  17317. # endif /* PAGESIZE */
  17318. # endif /* no NBPC */
  17319. # endif /* no NBPG */
  17320. # endif /* no EXEC_PAGESIZE */
  17321. # else /* no HAVE_SYS_PARAM_H */
  17322. # define getpagesize() 8192 /* punt totally */
  17323. # endif /* no HAVE_SYS_PARAM_H */
  17324. # endif /* no _SC_PAGESIZE */
  17325. #endif /* no HAVE_GETPAGESIZE */
  17326. int
  17327. main ()
  17328. {
  17329. char *data, *data2, *data3;
  17330. int i, pagesize;
  17331. int fd;
  17332. pagesize = getpagesize ();
  17333. /* First, make a file with some known garbage in it. */
  17334. data = (char *) malloc (pagesize);
  17335. if (!data)
  17336. return 1;
  17337. for (i = 0; i < pagesize; ++i)
  17338. *(data + i) = rand ();
  17339. umask (0);
  17340. fd = creat ("conftest.mmap", 0600);
  17341. if (fd < 0)
  17342. return 1;
  17343. if (write (fd, data, pagesize) != pagesize)
  17344. return 1;
  17345. close (fd);
  17346. /* Next, try to mmap the file at a fixed address which already has
  17347. something else allocated at it. If we can, also make sure that
  17348. we see the same garbage. */
  17349. fd = open ("conftest.mmap", O_RDWR);
  17350. if (fd < 0)
  17351. return 1;
  17352. data2 = (char *) malloc (2 * pagesize);
  17353. if (!data2)
  17354. return 1;
  17355. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17356. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17357. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17358. return 1;
  17359. for (i = 0; i < pagesize; ++i)
  17360. if (*(data + i) != *(data2 + i))
  17361. return 1;
  17362. /* Finally, make sure that changes to the mapped area do not
  17363. percolate back to the file as seen by read(). (This is a bug on
  17364. some variants of i386 svr4.0.) */
  17365. for (i = 0; i < pagesize; ++i)
  17366. *(data2 + i) = *(data2 + i) + 1;
  17367. data3 = (char *) malloc (pagesize);
  17368. if (!data3)
  17369. return 1;
  17370. if (read (fd, data3, pagesize) != pagesize)
  17371. return 1;
  17372. for (i = 0; i < pagesize; ++i)
  17373. if (*(data + i) != *(data3 + i))
  17374. return 1;
  17375. close (fd);
  17376. return 0;
  17377. }
  17378. _ACEOF
  17379. rm -f conftest$ac_exeext
  17380. if { (ac_try="$ac_link"
  17381. case "(($ac_try" in
  17382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17383. *) ac_try_echo=$ac_try;;
  17384. esac
  17385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17386. (eval "$ac_link") 2>&5
  17387. ac_status=$?
  17388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17389. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17390. { (case "(($ac_try" in
  17391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17392. *) ac_try_echo=$ac_try;;
  17393. esac
  17394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17395. (eval "$ac_try") 2>&5
  17396. ac_status=$?
  17397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17398. (exit $ac_status); }; }; then
  17399. ac_cv_func_mmap_fixed_mapped=yes
  17400. else
  17401. echo "$as_me: program exited with status $ac_status" >&5
  17402. echo "$as_me: failed program was:" >&5
  17403. sed 's/^/| /' conftest.$ac_ext >&5
  17404. ( exit $ac_status )
  17405. ac_cv_func_mmap_fixed_mapped=no
  17406. fi
  17407. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17408. fi
  17409. fi
  17410. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17411. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17412. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17413. cat >>confdefs.h <<\_ACEOF
  17414. #define HAVE_MMAP 1
  17415. _ACEOF
  17416. fi
  17417. rm -f conftest.mmap
  17418. for ac_header in sys/select.h sys/socket.h
  17419. do
  17420. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17421. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17422. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17423. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17424. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17425. echo $ECHO_N "(cached) $ECHO_C" >&6
  17426. fi
  17427. ac_res=`eval echo '${'$as_ac_Header'}'`
  17428. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17429. echo "${ECHO_T}$ac_res" >&6; }
  17430. else
  17431. # Is the header compilable?
  17432. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17433. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17434. cat >conftest.$ac_ext <<_ACEOF
  17435. /* confdefs.h. */
  17436. _ACEOF
  17437. cat confdefs.h >>conftest.$ac_ext
  17438. cat >>conftest.$ac_ext <<_ACEOF
  17439. /* end confdefs.h. */
  17440. $ac_includes_default
  17441. #include <$ac_header>
  17442. _ACEOF
  17443. rm -f conftest.$ac_objext
  17444. if { (ac_try="$ac_compile"
  17445. case "(($ac_try" in
  17446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17447. *) ac_try_echo=$ac_try;;
  17448. esac
  17449. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17450. (eval "$ac_compile") 2>conftest.er1
  17451. ac_status=$?
  17452. grep -v '^ *+' conftest.er1 >conftest.err
  17453. rm -f conftest.er1
  17454. cat conftest.err >&5
  17455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17456. (exit $ac_status); } && {
  17457. test -z "$ac_cxx_werror_flag" ||
  17458. test ! -s conftest.err
  17459. } && test -s conftest.$ac_objext; then
  17460. ac_header_compiler=yes
  17461. else
  17462. echo "$as_me: failed program was:" >&5
  17463. sed 's/^/| /' conftest.$ac_ext >&5
  17464. ac_header_compiler=no
  17465. fi
  17466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17467. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17468. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17469. # Is the header present?
  17470. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17471. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17472. cat >conftest.$ac_ext <<_ACEOF
  17473. /* confdefs.h. */
  17474. _ACEOF
  17475. cat confdefs.h >>conftest.$ac_ext
  17476. cat >>conftest.$ac_ext <<_ACEOF
  17477. /* end confdefs.h. */
  17478. #include <$ac_header>
  17479. _ACEOF
  17480. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17481. case "(($ac_try" in
  17482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17483. *) ac_try_echo=$ac_try;;
  17484. esac
  17485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17486. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17487. ac_status=$?
  17488. grep -v '^ *+' conftest.er1 >conftest.err
  17489. rm -f conftest.er1
  17490. cat conftest.err >&5
  17491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17492. (exit $ac_status); } >/dev/null && {
  17493. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17494. test ! -s conftest.err
  17495. }; then
  17496. ac_header_preproc=yes
  17497. else
  17498. echo "$as_me: failed program was:" >&5
  17499. sed 's/^/| /' conftest.$ac_ext >&5
  17500. ac_header_preproc=no
  17501. fi
  17502. rm -f conftest.err conftest.$ac_ext
  17503. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17504. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17505. # So? What about this header?
  17506. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17507. yes:no: )
  17508. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17509. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17510. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17511. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17512. ac_header_preproc=yes
  17513. ;;
  17514. no:yes:* )
  17515. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17516. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17517. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17518. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17519. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17520. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17521. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17522. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17523. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17524. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17525. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17526. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17527. ( cat <<\_ASBOX
  17528. ## ----------------------------------------------- ##
  17529. ## Report this to t-tujikawa@users.sourceforge.net ##
  17530. ## ----------------------------------------------- ##
  17531. _ASBOX
  17532. ) | sed "s/^/$as_me: WARNING: /" >&2
  17533. ;;
  17534. esac
  17535. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17536. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17537. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17538. echo $ECHO_N "(cached) $ECHO_C" >&6
  17539. else
  17540. eval "$as_ac_Header=\$ac_header_preproc"
  17541. fi
  17542. ac_res=`eval echo '${'$as_ac_Header'}'`
  17543. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17544. echo "${ECHO_T}$ac_res" >&6; }
  17545. fi
  17546. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17547. cat >>confdefs.h <<_ACEOF
  17548. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17549. _ACEOF
  17550. fi
  17551. done
  17552. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17553. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17554. if test "${ac_cv_func_select_args+set}" = set; then
  17555. echo $ECHO_N "(cached) $ECHO_C" >&6
  17556. else
  17557. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17558. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17559. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17560. cat >conftest.$ac_ext <<_ACEOF
  17561. /* confdefs.h. */
  17562. _ACEOF
  17563. cat confdefs.h >>conftest.$ac_ext
  17564. cat >>conftest.$ac_ext <<_ACEOF
  17565. /* end confdefs.h. */
  17566. $ac_includes_default
  17567. #ifdef HAVE_SYS_SELECT_H
  17568. # include <sys/select.h>
  17569. #endif
  17570. #ifdef HAVE_SYS_SOCKET_H
  17571. # include <sys/socket.h>
  17572. #endif
  17573. int
  17574. main ()
  17575. {
  17576. extern int select ($ac_arg1,
  17577. $ac_arg234, $ac_arg234, $ac_arg234,
  17578. $ac_arg5);
  17579. ;
  17580. return 0;
  17581. }
  17582. _ACEOF
  17583. rm -f conftest.$ac_objext
  17584. if { (ac_try="$ac_compile"
  17585. case "(($ac_try" in
  17586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17587. *) ac_try_echo=$ac_try;;
  17588. esac
  17589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17590. (eval "$ac_compile") 2>conftest.er1
  17591. ac_status=$?
  17592. grep -v '^ *+' conftest.er1 >conftest.err
  17593. rm -f conftest.er1
  17594. cat conftest.err >&5
  17595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17596. (exit $ac_status); } && {
  17597. test -z "$ac_cxx_werror_flag" ||
  17598. test ! -s conftest.err
  17599. } && test -s conftest.$ac_objext; then
  17600. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17601. else
  17602. echo "$as_me: failed program was:" >&5
  17603. sed 's/^/| /' conftest.$ac_ext >&5
  17604. fi
  17605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17606. done
  17607. done
  17608. done
  17609. # Provide a safe default value.
  17610. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17611. fi
  17612. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17613. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17614. ac_save_IFS=$IFS; IFS=','
  17615. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17616. IFS=$ac_save_IFS
  17617. shift
  17618. cat >>confdefs.h <<_ACEOF
  17619. #define SELECT_TYPE_ARG1 $1
  17620. _ACEOF
  17621. cat >>confdefs.h <<_ACEOF
  17622. #define SELECT_TYPE_ARG234 ($2)
  17623. _ACEOF
  17624. cat >>confdefs.h <<_ACEOF
  17625. #define SELECT_TYPE_ARG5 ($3)
  17626. _ACEOF
  17627. rm -f conftest*
  17628. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17629. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17630. if test "${ac_cv_type_signal+set}" = set; then
  17631. echo $ECHO_N "(cached) $ECHO_C" >&6
  17632. else
  17633. cat >conftest.$ac_ext <<_ACEOF
  17634. /* confdefs.h. */
  17635. _ACEOF
  17636. cat confdefs.h >>conftest.$ac_ext
  17637. cat >>conftest.$ac_ext <<_ACEOF
  17638. /* end confdefs.h. */
  17639. #include <sys/types.h>
  17640. #include <signal.h>
  17641. int
  17642. main ()
  17643. {
  17644. return *(signal (0, 0)) (0) == 1;
  17645. ;
  17646. return 0;
  17647. }
  17648. _ACEOF
  17649. rm -f conftest.$ac_objext
  17650. if { (ac_try="$ac_compile"
  17651. case "(($ac_try" in
  17652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17653. *) ac_try_echo=$ac_try;;
  17654. esac
  17655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17656. (eval "$ac_compile") 2>conftest.er1
  17657. ac_status=$?
  17658. grep -v '^ *+' conftest.er1 >conftest.err
  17659. rm -f conftest.er1
  17660. cat conftest.err >&5
  17661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17662. (exit $ac_status); } && {
  17663. test -z "$ac_cxx_werror_flag" ||
  17664. test ! -s conftest.err
  17665. } && test -s conftest.$ac_objext; then
  17666. ac_cv_type_signal=int
  17667. else
  17668. echo "$as_me: failed program was:" >&5
  17669. sed 's/^/| /' conftest.$ac_ext >&5
  17670. ac_cv_type_signal=void
  17671. fi
  17672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17673. fi
  17674. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17675. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17676. cat >>confdefs.h <<_ACEOF
  17677. #define RETSIGTYPE $ac_cv_type_signal
  17678. _ACEOF
  17679. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17680. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17681. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17682. echo $ECHO_N "(cached) $ECHO_C" >&6
  17683. else
  17684. rm -f conftest.sym conftest.file
  17685. echo >conftest.file
  17686. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17687. if test "$cross_compiling" = yes; then
  17688. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17689. else
  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. int
  17698. main ()
  17699. {
  17700. struct stat sbuf;
  17701. /* Linux will dereference the symlink and fail.
  17702. That is better in the sense that it means we will not
  17703. have to compile and use the lstat wrapper. */
  17704. return lstat ("conftest.sym/", &sbuf) == 0;
  17705. ;
  17706. return 0;
  17707. }
  17708. _ACEOF
  17709. rm -f conftest$ac_exeext
  17710. if { (ac_try="$ac_link"
  17711. case "(($ac_try" in
  17712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17713. *) ac_try_echo=$ac_try;;
  17714. esac
  17715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17716. (eval "$ac_link") 2>&5
  17717. ac_status=$?
  17718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17719. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17720. { (case "(($ac_try" in
  17721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17722. *) ac_try_echo=$ac_try;;
  17723. esac
  17724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17725. (eval "$ac_try") 2>&5
  17726. ac_status=$?
  17727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17728. (exit $ac_status); }; }; then
  17729. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17730. else
  17731. echo "$as_me: program exited with status $ac_status" >&5
  17732. echo "$as_me: failed program was:" >&5
  17733. sed 's/^/| /' conftest.$ac_ext >&5
  17734. ( exit $ac_status )
  17735. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17736. fi
  17737. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17738. fi
  17739. else
  17740. # If the `ln -s' command failed, then we probably don't even
  17741. # have an lstat function.
  17742. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17743. fi
  17744. rm -f conftest.sym conftest.file
  17745. fi
  17746. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17747. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17748. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17749. cat >>confdefs.h <<_ACEOF
  17750. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17751. _ACEOF
  17752. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17753. case " $LIBOBJS " in
  17754. *" lstat.$ac_objext "* ) ;;
  17755. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17756. ;;
  17757. esac
  17758. fi
  17759. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17760. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17761. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17762. echo $ECHO_N "(cached) $ECHO_C" >&6
  17763. else
  17764. if test "$cross_compiling" = yes; then
  17765. ac_cv_func_stat_empty_string_bug=yes
  17766. else
  17767. cat >conftest.$ac_ext <<_ACEOF
  17768. /* confdefs.h. */
  17769. _ACEOF
  17770. cat confdefs.h >>conftest.$ac_ext
  17771. cat >>conftest.$ac_ext <<_ACEOF
  17772. /* end confdefs.h. */
  17773. $ac_includes_default
  17774. int
  17775. main ()
  17776. {
  17777. struct stat sbuf;
  17778. return stat ("", &sbuf) == 0;
  17779. ;
  17780. return 0;
  17781. }
  17782. _ACEOF
  17783. rm -f conftest$ac_exeext
  17784. if { (ac_try="$ac_link"
  17785. case "(($ac_try" in
  17786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17787. *) ac_try_echo=$ac_try;;
  17788. esac
  17789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17790. (eval "$ac_link") 2>&5
  17791. ac_status=$?
  17792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17793. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17794. { (case "(($ac_try" in
  17795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17796. *) ac_try_echo=$ac_try;;
  17797. esac
  17798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17799. (eval "$ac_try") 2>&5
  17800. ac_status=$?
  17801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17802. (exit $ac_status); }; }; then
  17803. ac_cv_func_stat_empty_string_bug=no
  17804. else
  17805. echo "$as_me: program exited with status $ac_status" >&5
  17806. echo "$as_me: failed program was:" >&5
  17807. sed 's/^/| /' conftest.$ac_ext >&5
  17808. ( exit $ac_status )
  17809. ac_cv_func_stat_empty_string_bug=yes
  17810. fi
  17811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17812. fi
  17813. fi
  17814. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17815. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17816. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17817. case " $LIBOBJS " in
  17818. *" stat.$ac_objext "* ) ;;
  17819. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17820. ;;
  17821. esac
  17822. cat >>confdefs.h <<_ACEOF
  17823. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17824. _ACEOF
  17825. fi
  17826. for ac_func in strftime
  17827. do
  17828. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17829. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17830. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17831. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17832. echo $ECHO_N "(cached) $ECHO_C" >&6
  17833. else
  17834. cat >conftest.$ac_ext <<_ACEOF
  17835. /* confdefs.h. */
  17836. _ACEOF
  17837. cat confdefs.h >>conftest.$ac_ext
  17838. cat >>conftest.$ac_ext <<_ACEOF
  17839. /* end confdefs.h. */
  17840. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17841. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17842. #define $ac_func innocuous_$ac_func
  17843. /* System header to define __stub macros and hopefully few prototypes,
  17844. which can conflict with char $ac_func (); below.
  17845. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17846. <limits.h> exists even on freestanding compilers. */
  17847. #ifdef __STDC__
  17848. # include <limits.h>
  17849. #else
  17850. # include <assert.h>
  17851. #endif
  17852. #undef $ac_func
  17853. /* Override any GCC internal prototype to avoid an error.
  17854. Use char because int might match the return type of a GCC
  17855. builtin and then its argument prototype would still apply. */
  17856. #ifdef __cplusplus
  17857. extern "C"
  17858. #endif
  17859. char $ac_func ();
  17860. /* The GNU C library defines this for functions which it implements
  17861. to always fail with ENOSYS. Some functions are actually named
  17862. something starting with __ and the normal name is an alias. */
  17863. #if defined __stub_$ac_func || defined __stub___$ac_func
  17864. choke me
  17865. #endif
  17866. int
  17867. main ()
  17868. {
  17869. return $ac_func ();
  17870. ;
  17871. return 0;
  17872. }
  17873. _ACEOF
  17874. rm -f conftest.$ac_objext conftest$ac_exeext
  17875. if { (ac_try="$ac_link"
  17876. case "(($ac_try" in
  17877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17878. *) ac_try_echo=$ac_try;;
  17879. esac
  17880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17881. (eval "$ac_link") 2>conftest.er1
  17882. ac_status=$?
  17883. grep -v '^ *+' conftest.er1 >conftest.err
  17884. rm -f conftest.er1
  17885. cat conftest.err >&5
  17886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17887. (exit $ac_status); } && {
  17888. test -z "$ac_cxx_werror_flag" ||
  17889. test ! -s conftest.err
  17890. } && test -s conftest$ac_exeext &&
  17891. $as_test_x conftest$ac_exeext; then
  17892. eval "$as_ac_var=yes"
  17893. else
  17894. echo "$as_me: failed program was:" >&5
  17895. sed 's/^/| /' conftest.$ac_ext >&5
  17896. eval "$as_ac_var=no"
  17897. fi
  17898. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17899. conftest$ac_exeext conftest.$ac_ext
  17900. fi
  17901. ac_res=`eval echo '${'$as_ac_var'}'`
  17902. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17903. echo "${ECHO_T}$ac_res" >&6; }
  17904. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17905. cat >>confdefs.h <<_ACEOF
  17906. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17907. _ACEOF
  17908. else
  17909. # strftime is in -lintl on SCO UNIX.
  17910. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17911. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17912. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17913. echo $ECHO_N "(cached) $ECHO_C" >&6
  17914. else
  17915. ac_check_lib_save_LIBS=$LIBS
  17916. LIBS="-lintl $LIBS"
  17917. cat >conftest.$ac_ext <<_ACEOF
  17918. /* confdefs.h. */
  17919. _ACEOF
  17920. cat confdefs.h >>conftest.$ac_ext
  17921. cat >>conftest.$ac_ext <<_ACEOF
  17922. /* end confdefs.h. */
  17923. /* Override any GCC internal prototype to avoid an error.
  17924. Use char because int might match the return type of a GCC
  17925. builtin and then its argument prototype would still apply. */
  17926. #ifdef __cplusplus
  17927. extern "C"
  17928. #endif
  17929. char strftime ();
  17930. int
  17931. main ()
  17932. {
  17933. return strftime ();
  17934. ;
  17935. return 0;
  17936. }
  17937. _ACEOF
  17938. rm -f conftest.$ac_objext conftest$ac_exeext
  17939. if { (ac_try="$ac_link"
  17940. case "(($ac_try" in
  17941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17942. *) ac_try_echo=$ac_try;;
  17943. esac
  17944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17945. (eval "$ac_link") 2>conftest.er1
  17946. ac_status=$?
  17947. grep -v '^ *+' conftest.er1 >conftest.err
  17948. rm -f conftest.er1
  17949. cat conftest.err >&5
  17950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17951. (exit $ac_status); } && {
  17952. test -z "$ac_cxx_werror_flag" ||
  17953. test ! -s conftest.err
  17954. } && test -s conftest$ac_exeext &&
  17955. $as_test_x conftest$ac_exeext; then
  17956. ac_cv_lib_intl_strftime=yes
  17957. else
  17958. echo "$as_me: failed program was:" >&5
  17959. sed 's/^/| /' conftest.$ac_ext >&5
  17960. ac_cv_lib_intl_strftime=no
  17961. fi
  17962. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17963. conftest$ac_exeext conftest.$ac_ext
  17964. LIBS=$ac_check_lib_save_LIBS
  17965. fi
  17966. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17967. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17968. if test $ac_cv_lib_intl_strftime = yes; then
  17969. cat >>confdefs.h <<\_ACEOF
  17970. #define HAVE_STRFTIME 1
  17971. _ACEOF
  17972. LIBS="-lintl $LIBS"
  17973. fi
  17974. fi
  17975. done
  17976. for ac_func in vprintf
  17977. do
  17978. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17979. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17980. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17981. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17982. echo $ECHO_N "(cached) $ECHO_C" >&6
  17983. else
  17984. cat >conftest.$ac_ext <<_ACEOF
  17985. /* confdefs.h. */
  17986. _ACEOF
  17987. cat confdefs.h >>conftest.$ac_ext
  17988. cat >>conftest.$ac_ext <<_ACEOF
  17989. /* end confdefs.h. */
  17990. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17991. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17992. #define $ac_func innocuous_$ac_func
  17993. /* System header to define __stub macros and hopefully few prototypes,
  17994. which can conflict with char $ac_func (); below.
  17995. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17996. <limits.h> exists even on freestanding compilers. */
  17997. #ifdef __STDC__
  17998. # include <limits.h>
  17999. #else
  18000. # include <assert.h>
  18001. #endif
  18002. #undef $ac_func
  18003. /* Override any GCC internal prototype to avoid an error.
  18004. Use char because int might match the return type of a GCC
  18005. builtin and then its argument prototype would still apply. */
  18006. #ifdef __cplusplus
  18007. extern "C"
  18008. #endif
  18009. char $ac_func ();
  18010. /* The GNU C library defines this for functions which it implements
  18011. to always fail with ENOSYS. Some functions are actually named
  18012. something starting with __ and the normal name is an alias. */
  18013. #if defined __stub_$ac_func || defined __stub___$ac_func
  18014. choke me
  18015. #endif
  18016. int
  18017. main ()
  18018. {
  18019. return $ac_func ();
  18020. ;
  18021. return 0;
  18022. }
  18023. _ACEOF
  18024. rm -f conftest.$ac_objext conftest$ac_exeext
  18025. if { (ac_try="$ac_link"
  18026. case "(($ac_try" in
  18027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18028. *) ac_try_echo=$ac_try;;
  18029. esac
  18030. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18031. (eval "$ac_link") 2>conftest.er1
  18032. ac_status=$?
  18033. grep -v '^ *+' conftest.er1 >conftest.err
  18034. rm -f conftest.er1
  18035. cat conftest.err >&5
  18036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18037. (exit $ac_status); } && {
  18038. test -z "$ac_cxx_werror_flag" ||
  18039. test ! -s conftest.err
  18040. } && test -s conftest$ac_exeext &&
  18041. $as_test_x conftest$ac_exeext; then
  18042. eval "$as_ac_var=yes"
  18043. else
  18044. echo "$as_me: failed program was:" >&5
  18045. sed 's/^/| /' conftest.$ac_ext >&5
  18046. eval "$as_ac_var=no"
  18047. fi
  18048. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18049. conftest$ac_exeext conftest.$ac_ext
  18050. fi
  18051. ac_res=`eval echo '${'$as_ac_var'}'`
  18052. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18053. echo "${ECHO_T}$ac_res" >&6; }
  18054. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18055. cat >>confdefs.h <<_ACEOF
  18056. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18057. _ACEOF
  18058. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18059. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18060. if test "${ac_cv_func__doprnt+set}" = set; then
  18061. echo $ECHO_N "(cached) $ECHO_C" >&6
  18062. else
  18063. cat >conftest.$ac_ext <<_ACEOF
  18064. /* confdefs.h. */
  18065. _ACEOF
  18066. cat confdefs.h >>conftest.$ac_ext
  18067. cat >>conftest.$ac_ext <<_ACEOF
  18068. /* end confdefs.h. */
  18069. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18070. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18071. #define _doprnt innocuous__doprnt
  18072. /* System header to define __stub macros and hopefully few prototypes,
  18073. which can conflict with char _doprnt (); below.
  18074. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18075. <limits.h> exists even on freestanding compilers. */
  18076. #ifdef __STDC__
  18077. # include <limits.h>
  18078. #else
  18079. # include <assert.h>
  18080. #endif
  18081. #undef _doprnt
  18082. /* Override any GCC internal prototype to avoid an error.
  18083. Use char because int might match the return type of a GCC
  18084. builtin and then its argument prototype would still apply. */
  18085. #ifdef __cplusplus
  18086. extern "C"
  18087. #endif
  18088. char _doprnt ();
  18089. /* The GNU C library defines this for functions which it implements
  18090. to always fail with ENOSYS. Some functions are actually named
  18091. something starting with __ and the normal name is an alias. */
  18092. #if defined __stub__doprnt || defined __stub____doprnt
  18093. choke me
  18094. #endif
  18095. int
  18096. main ()
  18097. {
  18098. return _doprnt ();
  18099. ;
  18100. return 0;
  18101. }
  18102. _ACEOF
  18103. rm -f conftest.$ac_objext conftest$ac_exeext
  18104. if { (ac_try="$ac_link"
  18105. case "(($ac_try" in
  18106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18107. *) ac_try_echo=$ac_try;;
  18108. esac
  18109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18110. (eval "$ac_link") 2>conftest.er1
  18111. ac_status=$?
  18112. grep -v '^ *+' conftest.er1 >conftest.err
  18113. rm -f conftest.er1
  18114. cat conftest.err >&5
  18115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18116. (exit $ac_status); } && {
  18117. test -z "$ac_cxx_werror_flag" ||
  18118. test ! -s conftest.err
  18119. } && test -s conftest$ac_exeext &&
  18120. $as_test_x conftest$ac_exeext; then
  18121. ac_cv_func__doprnt=yes
  18122. else
  18123. echo "$as_me: failed program was:" >&5
  18124. sed 's/^/| /' conftest.$ac_ext >&5
  18125. ac_cv_func__doprnt=no
  18126. fi
  18127. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18128. conftest$ac_exeext conftest.$ac_ext
  18129. fi
  18130. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18131. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18132. if test $ac_cv_func__doprnt = yes; then
  18133. cat >>confdefs.h <<\_ACEOF
  18134. #define HAVE_DOPRNT 1
  18135. _ACEOF
  18136. fi
  18137. fi
  18138. done
  18139. for ac_func in __argz_count \
  18140. __argz_next \
  18141. __argz_stringify \
  18142. atexit \
  18143. daemon \
  18144. ftruncate \
  18145. getcwd \
  18146. gethostbyaddr \
  18147. gethostbyname \
  18148. getpagesize \
  18149. inet_ntoa \
  18150. memchr \
  18151. memmove \
  18152. mempcpy \
  18153. memset \
  18154. mkdir \
  18155. munmap \
  18156. nl_langinfo \
  18157. posix_memalign \
  18158. putenv \
  18159. rmdir \
  18160. select \
  18161. setlocale \
  18162. sleep \
  18163. socket \
  18164. stpcpy \
  18165. strcasecmp \
  18166. strchr \
  18167. strcspn \
  18168. strdup \
  18169. strerror \
  18170. strncasecmp \
  18171. strstr \
  18172. strtol \
  18173. strtoul \
  18174. strtoull \
  18175. tzset \
  18176. unsetenv \
  18177. usleep
  18178. do
  18179. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18180. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18181. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18182. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18183. echo $ECHO_N "(cached) $ECHO_C" >&6
  18184. else
  18185. cat >conftest.$ac_ext <<_ACEOF
  18186. /* confdefs.h. */
  18187. _ACEOF
  18188. cat confdefs.h >>conftest.$ac_ext
  18189. cat >>conftest.$ac_ext <<_ACEOF
  18190. /* end confdefs.h. */
  18191. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18192. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18193. #define $ac_func innocuous_$ac_func
  18194. /* System header to define __stub macros and hopefully few prototypes,
  18195. which can conflict with char $ac_func (); below.
  18196. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18197. <limits.h> exists even on freestanding compilers. */
  18198. #ifdef __STDC__
  18199. # include <limits.h>
  18200. #else
  18201. # include <assert.h>
  18202. #endif
  18203. #undef $ac_func
  18204. /* Override any GCC internal prototype to avoid an error.
  18205. Use char because int might match the return type of a GCC
  18206. builtin and then its argument prototype would still apply. */
  18207. #ifdef __cplusplus
  18208. extern "C"
  18209. #endif
  18210. char $ac_func ();
  18211. /* The GNU C library defines this for functions which it implements
  18212. to always fail with ENOSYS. Some functions are actually named
  18213. something starting with __ and the normal name is an alias. */
  18214. #if defined __stub_$ac_func || defined __stub___$ac_func
  18215. choke me
  18216. #endif
  18217. int
  18218. main ()
  18219. {
  18220. return $ac_func ();
  18221. ;
  18222. return 0;
  18223. }
  18224. _ACEOF
  18225. rm -f conftest.$ac_objext conftest$ac_exeext
  18226. if { (ac_try="$ac_link"
  18227. case "(($ac_try" in
  18228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18229. *) ac_try_echo=$ac_try;;
  18230. esac
  18231. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18232. (eval "$ac_link") 2>conftest.er1
  18233. ac_status=$?
  18234. grep -v '^ *+' conftest.er1 >conftest.err
  18235. rm -f conftest.er1
  18236. cat conftest.err >&5
  18237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18238. (exit $ac_status); } && {
  18239. test -z "$ac_cxx_werror_flag" ||
  18240. test ! -s conftest.err
  18241. } && test -s conftest$ac_exeext &&
  18242. $as_test_x conftest$ac_exeext; then
  18243. eval "$as_ac_var=yes"
  18244. else
  18245. echo "$as_me: failed program was:" >&5
  18246. sed 's/^/| /' conftest.$ac_ext >&5
  18247. eval "$as_ac_var=no"
  18248. fi
  18249. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18250. conftest$ac_exeext conftest.$ac_ext
  18251. fi
  18252. ac_res=`eval echo '${'$as_ac_var'}'`
  18253. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18254. echo "${ECHO_T}$ac_res" >&6; }
  18255. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18256. cat >>confdefs.h <<_ACEOF
  18257. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18258. _ACEOF
  18259. fi
  18260. done
  18261. if test "x$enable_epoll" = "xyes"; then
  18262. for ac_func in epoll_create
  18263. do
  18264. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18265. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18266. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18267. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18268. echo $ECHO_N "(cached) $ECHO_C" >&6
  18269. else
  18270. cat >conftest.$ac_ext <<_ACEOF
  18271. /* confdefs.h. */
  18272. _ACEOF
  18273. cat confdefs.h >>conftest.$ac_ext
  18274. cat >>conftest.$ac_ext <<_ACEOF
  18275. /* end confdefs.h. */
  18276. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18277. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18278. #define $ac_func innocuous_$ac_func
  18279. /* System header to define __stub macros and hopefully few prototypes,
  18280. which can conflict with char $ac_func (); below.
  18281. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18282. <limits.h> exists even on freestanding compilers. */
  18283. #ifdef __STDC__
  18284. # include <limits.h>
  18285. #else
  18286. # include <assert.h>
  18287. #endif
  18288. #undef $ac_func
  18289. /* Override any GCC internal prototype to avoid an error.
  18290. Use char because int might match the return type of a GCC
  18291. builtin and then its argument prototype would still apply. */
  18292. #ifdef __cplusplus
  18293. extern "C"
  18294. #endif
  18295. char $ac_func ();
  18296. /* The GNU C library defines this for functions which it implements
  18297. to always fail with ENOSYS. Some functions are actually named
  18298. something starting with __ and the normal name is an alias. */
  18299. #if defined __stub_$ac_func || defined __stub___$ac_func
  18300. choke me
  18301. #endif
  18302. int
  18303. main ()
  18304. {
  18305. return $ac_func ();
  18306. ;
  18307. return 0;
  18308. }
  18309. _ACEOF
  18310. rm -f conftest.$ac_objext conftest$ac_exeext
  18311. if { (ac_try="$ac_link"
  18312. case "(($ac_try" in
  18313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18314. *) ac_try_echo=$ac_try;;
  18315. esac
  18316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18317. (eval "$ac_link") 2>conftest.er1
  18318. ac_status=$?
  18319. grep -v '^ *+' conftest.er1 >conftest.err
  18320. rm -f conftest.er1
  18321. cat conftest.err >&5
  18322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18323. (exit $ac_status); } && {
  18324. test -z "$ac_cxx_werror_flag" ||
  18325. test ! -s conftest.err
  18326. } && test -s conftest$ac_exeext &&
  18327. $as_test_x conftest$ac_exeext; then
  18328. eval "$as_ac_var=yes"
  18329. else
  18330. echo "$as_me: failed program was:" >&5
  18331. sed 's/^/| /' conftest.$ac_ext >&5
  18332. eval "$as_ac_var=no"
  18333. fi
  18334. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18335. conftest$ac_exeext conftest.$ac_ext
  18336. fi
  18337. ac_res=`eval echo '${'$as_ac_var'}'`
  18338. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18339. echo "${ECHO_T}$ac_res" >&6; }
  18340. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18341. cat >>confdefs.h <<_ACEOF
  18342. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18343. _ACEOF
  18344. fi
  18345. done
  18346. fi
  18347. for ac_func in asctime_r
  18348. do
  18349. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18350. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18351. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18352. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18353. echo $ECHO_N "(cached) $ECHO_C" >&6
  18354. else
  18355. cat >conftest.$ac_ext <<_ACEOF
  18356. /* confdefs.h. */
  18357. _ACEOF
  18358. cat confdefs.h >>conftest.$ac_ext
  18359. cat >>conftest.$ac_ext <<_ACEOF
  18360. /* end confdefs.h. */
  18361. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18362. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18363. #define $ac_func innocuous_$ac_func
  18364. /* System header to define __stub macros and hopefully few prototypes,
  18365. which can conflict with char $ac_func (); below.
  18366. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18367. <limits.h> exists even on freestanding compilers. */
  18368. #ifdef __STDC__
  18369. # include <limits.h>
  18370. #else
  18371. # include <assert.h>
  18372. #endif
  18373. #undef $ac_func
  18374. /* Override any GCC internal prototype to avoid an error.
  18375. Use char because int might match the return type of a GCC
  18376. builtin and then its argument prototype would still apply. */
  18377. #ifdef __cplusplus
  18378. extern "C"
  18379. #endif
  18380. char $ac_func ();
  18381. /* The GNU C library defines this for functions which it implements
  18382. to always fail with ENOSYS. Some functions are actually named
  18383. something starting with __ and the normal name is an alias. */
  18384. #if defined __stub_$ac_func || defined __stub___$ac_func
  18385. choke me
  18386. #endif
  18387. int
  18388. main ()
  18389. {
  18390. return $ac_func ();
  18391. ;
  18392. return 0;
  18393. }
  18394. _ACEOF
  18395. rm -f conftest.$ac_objext conftest$ac_exeext
  18396. if { (ac_try="$ac_link"
  18397. case "(($ac_try" in
  18398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18399. *) ac_try_echo=$ac_try;;
  18400. esac
  18401. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18402. (eval "$ac_link") 2>conftest.er1
  18403. ac_status=$?
  18404. grep -v '^ *+' conftest.er1 >conftest.err
  18405. rm -f conftest.er1
  18406. cat conftest.err >&5
  18407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18408. (exit $ac_status); } && {
  18409. test -z "$ac_cxx_werror_flag" ||
  18410. test ! -s conftest.err
  18411. } && test -s conftest$ac_exeext &&
  18412. $as_test_x conftest$ac_exeext; then
  18413. eval "$as_ac_var=yes"
  18414. else
  18415. echo "$as_me: failed program was:" >&5
  18416. sed 's/^/| /' conftest.$ac_ext >&5
  18417. eval "$as_ac_var=no"
  18418. fi
  18419. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18420. conftest$ac_exeext conftest.$ac_ext
  18421. fi
  18422. ac_res=`eval echo '${'$as_ac_var'}'`
  18423. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18424. echo "${ECHO_T}$ac_res" >&6; }
  18425. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18426. cat >>confdefs.h <<_ACEOF
  18427. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18428. _ACEOF
  18429. if true; then
  18430. HAVE_ASCTIME_R_TRUE=
  18431. HAVE_ASCTIME_R_FALSE='#'
  18432. else
  18433. HAVE_ASCTIME_R_TRUE='#'
  18434. HAVE_ASCTIME_R_FALSE=
  18435. fi
  18436. else
  18437. if false; then
  18438. HAVE_ASCTIME_R_TRUE=
  18439. HAVE_ASCTIME_R_FALSE='#'
  18440. else
  18441. HAVE_ASCTIME_R_TRUE='#'
  18442. HAVE_ASCTIME_R_FALSE=
  18443. fi
  18444. fi
  18445. done
  18446. for ac_func in basename
  18447. do
  18448. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18449. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18450. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18451. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18452. echo $ECHO_N "(cached) $ECHO_C" >&6
  18453. else
  18454. cat >conftest.$ac_ext <<_ACEOF
  18455. /* confdefs.h. */
  18456. _ACEOF
  18457. cat confdefs.h >>conftest.$ac_ext
  18458. cat >>conftest.$ac_ext <<_ACEOF
  18459. /* end confdefs.h. */
  18460. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18461. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18462. #define $ac_func innocuous_$ac_func
  18463. /* System header to define __stub macros and hopefully few prototypes,
  18464. which can conflict with char $ac_func (); below.
  18465. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18466. <limits.h> exists even on freestanding compilers. */
  18467. #ifdef __STDC__
  18468. # include <limits.h>
  18469. #else
  18470. # include <assert.h>
  18471. #endif
  18472. #undef $ac_func
  18473. /* Override any GCC internal prototype to avoid an error.
  18474. Use char because int might match the return type of a GCC
  18475. builtin and then its argument prototype would still apply. */
  18476. #ifdef __cplusplus
  18477. extern "C"
  18478. #endif
  18479. char $ac_func ();
  18480. /* The GNU C library defines this for functions which it implements
  18481. to always fail with ENOSYS. Some functions are actually named
  18482. something starting with __ and the normal name is an alias. */
  18483. #if defined __stub_$ac_func || defined __stub___$ac_func
  18484. choke me
  18485. #endif
  18486. int
  18487. main ()
  18488. {
  18489. return $ac_func ();
  18490. ;
  18491. return 0;
  18492. }
  18493. _ACEOF
  18494. rm -f conftest.$ac_objext conftest$ac_exeext
  18495. if { (ac_try="$ac_link"
  18496. case "(($ac_try" in
  18497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18498. *) ac_try_echo=$ac_try;;
  18499. esac
  18500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18501. (eval "$ac_link") 2>conftest.er1
  18502. ac_status=$?
  18503. grep -v '^ *+' conftest.er1 >conftest.err
  18504. rm -f conftest.er1
  18505. cat conftest.err >&5
  18506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18507. (exit $ac_status); } && {
  18508. test -z "$ac_cxx_werror_flag" ||
  18509. test ! -s conftest.err
  18510. } && test -s conftest$ac_exeext &&
  18511. $as_test_x conftest$ac_exeext; then
  18512. eval "$as_ac_var=yes"
  18513. else
  18514. echo "$as_me: failed program was:" >&5
  18515. sed 's/^/| /' conftest.$ac_ext >&5
  18516. eval "$as_ac_var=no"
  18517. fi
  18518. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18519. conftest$ac_exeext conftest.$ac_ext
  18520. fi
  18521. ac_res=`eval echo '${'$as_ac_var'}'`
  18522. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18523. echo "${ECHO_T}$ac_res" >&6; }
  18524. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18525. cat >>confdefs.h <<_ACEOF
  18526. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18527. _ACEOF
  18528. if true; then
  18529. HAVE_BASENAME_TRUE=
  18530. HAVE_BASENAME_FALSE='#'
  18531. else
  18532. HAVE_BASENAME_TRUE='#'
  18533. HAVE_BASENAME_FALSE=
  18534. fi
  18535. else
  18536. if false; then
  18537. HAVE_BASENAME_TRUE=
  18538. HAVE_BASENAME_FALSE='#'
  18539. else
  18540. HAVE_BASENAME_TRUE='#'
  18541. HAVE_BASENAME_FALSE=
  18542. fi
  18543. fi
  18544. done
  18545. for ac_func in gai_strerror
  18546. do
  18547. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18548. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18549. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18550. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18551. echo $ECHO_N "(cached) $ECHO_C" >&6
  18552. else
  18553. cat >conftest.$ac_ext <<_ACEOF
  18554. /* confdefs.h. */
  18555. _ACEOF
  18556. cat confdefs.h >>conftest.$ac_ext
  18557. cat >>conftest.$ac_ext <<_ACEOF
  18558. /* end confdefs.h. */
  18559. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18560. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18561. #define $ac_func innocuous_$ac_func
  18562. /* System header to define __stub macros and hopefully few prototypes,
  18563. which can conflict with char $ac_func (); below.
  18564. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18565. <limits.h> exists even on freestanding compilers. */
  18566. #ifdef __STDC__
  18567. # include <limits.h>
  18568. #else
  18569. # include <assert.h>
  18570. #endif
  18571. #undef $ac_func
  18572. /* Override any GCC internal prototype to avoid an error.
  18573. Use char because int might match the return type of a GCC
  18574. builtin and then its argument prototype would still apply. */
  18575. #ifdef __cplusplus
  18576. extern "C"
  18577. #endif
  18578. char $ac_func ();
  18579. /* The GNU C library defines this for functions which it implements
  18580. to always fail with ENOSYS. Some functions are actually named
  18581. something starting with __ and the normal name is an alias. */
  18582. #if defined __stub_$ac_func || defined __stub___$ac_func
  18583. choke me
  18584. #endif
  18585. int
  18586. main ()
  18587. {
  18588. return $ac_func ();
  18589. ;
  18590. return 0;
  18591. }
  18592. _ACEOF
  18593. rm -f conftest.$ac_objext conftest$ac_exeext
  18594. if { (ac_try="$ac_link"
  18595. case "(($ac_try" in
  18596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18597. *) ac_try_echo=$ac_try;;
  18598. esac
  18599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18600. (eval "$ac_link") 2>conftest.er1
  18601. ac_status=$?
  18602. grep -v '^ *+' conftest.er1 >conftest.err
  18603. rm -f conftest.er1
  18604. cat conftest.err >&5
  18605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18606. (exit $ac_status); } && {
  18607. test -z "$ac_cxx_werror_flag" ||
  18608. test ! -s conftest.err
  18609. } && test -s conftest$ac_exeext &&
  18610. $as_test_x conftest$ac_exeext; then
  18611. eval "$as_ac_var=yes"
  18612. else
  18613. echo "$as_me: failed program was:" >&5
  18614. sed 's/^/| /' conftest.$ac_ext >&5
  18615. eval "$as_ac_var=no"
  18616. fi
  18617. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18618. conftest$ac_exeext conftest.$ac_ext
  18619. fi
  18620. ac_res=`eval echo '${'$as_ac_var'}'`
  18621. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18622. echo "${ECHO_T}$ac_res" >&6; }
  18623. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18624. cat >>confdefs.h <<_ACEOF
  18625. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18626. _ACEOF
  18627. if true; then
  18628. HAVE_GAI_STRERROR_TRUE=
  18629. HAVE_GAI_STRERROR_FALSE='#'
  18630. else
  18631. HAVE_GAI_STRERROR_TRUE='#'
  18632. HAVE_GAI_STRERROR_FALSE=
  18633. fi
  18634. else
  18635. if false; then
  18636. HAVE_GAI_STRERROR_TRUE=
  18637. HAVE_GAI_STRERROR_FALSE='#'
  18638. else
  18639. HAVE_GAI_STRERROR_TRUE='#'
  18640. HAVE_GAI_STRERROR_FALSE=
  18641. fi
  18642. fi
  18643. done
  18644. for ac_func in getaddrinfo
  18645. do
  18646. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18647. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18648. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18649. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18650. echo $ECHO_N "(cached) $ECHO_C" >&6
  18651. else
  18652. cat >conftest.$ac_ext <<_ACEOF
  18653. /* confdefs.h. */
  18654. _ACEOF
  18655. cat confdefs.h >>conftest.$ac_ext
  18656. cat >>conftest.$ac_ext <<_ACEOF
  18657. /* end confdefs.h. */
  18658. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18659. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18660. #define $ac_func innocuous_$ac_func
  18661. /* System header to define __stub macros and hopefully few prototypes,
  18662. which can conflict with char $ac_func (); below.
  18663. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18664. <limits.h> exists even on freestanding compilers. */
  18665. #ifdef __STDC__
  18666. # include <limits.h>
  18667. #else
  18668. # include <assert.h>
  18669. #endif
  18670. #undef $ac_func
  18671. /* Override any GCC internal prototype to avoid an error.
  18672. Use char because int might match the return type of a GCC
  18673. builtin and then its argument prototype would still apply. */
  18674. #ifdef __cplusplus
  18675. extern "C"
  18676. #endif
  18677. char $ac_func ();
  18678. /* The GNU C library defines this for functions which it implements
  18679. to always fail with ENOSYS. Some functions are actually named
  18680. something starting with __ and the normal name is an alias. */
  18681. #if defined __stub_$ac_func || defined __stub___$ac_func
  18682. choke me
  18683. #endif
  18684. int
  18685. main ()
  18686. {
  18687. return $ac_func ();
  18688. ;
  18689. return 0;
  18690. }
  18691. _ACEOF
  18692. rm -f conftest.$ac_objext conftest$ac_exeext
  18693. if { (ac_try="$ac_link"
  18694. case "(($ac_try" in
  18695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18696. *) ac_try_echo=$ac_try;;
  18697. esac
  18698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18699. (eval "$ac_link") 2>conftest.er1
  18700. ac_status=$?
  18701. grep -v '^ *+' conftest.er1 >conftest.err
  18702. rm -f conftest.er1
  18703. cat conftest.err >&5
  18704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18705. (exit $ac_status); } && {
  18706. test -z "$ac_cxx_werror_flag" ||
  18707. test ! -s conftest.err
  18708. } && test -s conftest$ac_exeext &&
  18709. $as_test_x conftest$ac_exeext; then
  18710. eval "$as_ac_var=yes"
  18711. else
  18712. echo "$as_me: failed program was:" >&5
  18713. sed 's/^/| /' conftest.$ac_ext >&5
  18714. eval "$as_ac_var=no"
  18715. fi
  18716. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18717. conftest$ac_exeext conftest.$ac_ext
  18718. fi
  18719. ac_res=`eval echo '${'$as_ac_var'}'`
  18720. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18721. echo "${ECHO_T}$ac_res" >&6; }
  18722. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18723. cat >>confdefs.h <<_ACEOF
  18724. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18725. _ACEOF
  18726. if true; then
  18727. HAVE_GETADDRINFO_TRUE=
  18728. HAVE_GETADDRINFO_FALSE='#'
  18729. else
  18730. HAVE_GETADDRINFO_TRUE='#'
  18731. HAVE_GETADDRINFO_FALSE=
  18732. fi
  18733. else
  18734. if false; then
  18735. HAVE_GETADDRINFO_TRUE=
  18736. HAVE_GETADDRINFO_FALSE='#'
  18737. else
  18738. HAVE_GETADDRINFO_TRUE='#'
  18739. HAVE_GETADDRINFO_FALSE=
  18740. fi
  18741. fi
  18742. done
  18743. for ac_func in gettimeofday
  18744. do
  18745. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18746. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18747. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18748. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18749. echo $ECHO_N "(cached) $ECHO_C" >&6
  18750. else
  18751. cat >conftest.$ac_ext <<_ACEOF
  18752. /* confdefs.h. */
  18753. _ACEOF
  18754. cat confdefs.h >>conftest.$ac_ext
  18755. cat >>conftest.$ac_ext <<_ACEOF
  18756. /* end confdefs.h. */
  18757. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18758. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18759. #define $ac_func innocuous_$ac_func
  18760. /* System header to define __stub macros and hopefully few prototypes,
  18761. which can conflict with char $ac_func (); below.
  18762. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18763. <limits.h> exists even on freestanding compilers. */
  18764. #ifdef __STDC__
  18765. # include <limits.h>
  18766. #else
  18767. # include <assert.h>
  18768. #endif
  18769. #undef $ac_func
  18770. /* Override any GCC internal prototype to avoid an error.
  18771. Use char because int might match the return type of a GCC
  18772. builtin and then its argument prototype would still apply. */
  18773. #ifdef __cplusplus
  18774. extern "C"
  18775. #endif
  18776. char $ac_func ();
  18777. /* The GNU C library defines this for functions which it implements
  18778. to always fail with ENOSYS. Some functions are actually named
  18779. something starting with __ and the normal name is an alias. */
  18780. #if defined __stub_$ac_func || defined __stub___$ac_func
  18781. choke me
  18782. #endif
  18783. int
  18784. main ()
  18785. {
  18786. return $ac_func ();
  18787. ;
  18788. return 0;
  18789. }
  18790. _ACEOF
  18791. rm -f conftest.$ac_objext conftest$ac_exeext
  18792. if { (ac_try="$ac_link"
  18793. case "(($ac_try" in
  18794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18795. *) ac_try_echo=$ac_try;;
  18796. esac
  18797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18798. (eval "$ac_link") 2>conftest.er1
  18799. ac_status=$?
  18800. grep -v '^ *+' conftest.er1 >conftest.err
  18801. rm -f conftest.er1
  18802. cat conftest.err >&5
  18803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18804. (exit $ac_status); } && {
  18805. test -z "$ac_cxx_werror_flag" ||
  18806. test ! -s conftest.err
  18807. } && test -s conftest$ac_exeext &&
  18808. $as_test_x conftest$ac_exeext; then
  18809. eval "$as_ac_var=yes"
  18810. else
  18811. echo "$as_me: failed program was:" >&5
  18812. sed 's/^/| /' conftest.$ac_ext >&5
  18813. eval "$as_ac_var=no"
  18814. fi
  18815. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18816. conftest$ac_exeext conftest.$ac_ext
  18817. fi
  18818. ac_res=`eval echo '${'$as_ac_var'}'`
  18819. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18820. echo "${ECHO_T}$ac_res" >&6; }
  18821. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18822. cat >>confdefs.h <<_ACEOF
  18823. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18824. _ACEOF
  18825. if true; then
  18826. HAVE_GETTIMEOFDAY_TRUE=
  18827. HAVE_GETTIMEOFDAY_FALSE='#'
  18828. else
  18829. HAVE_GETTIMEOFDAY_TRUE='#'
  18830. HAVE_GETTIMEOFDAY_FALSE=
  18831. fi
  18832. else
  18833. if false; then
  18834. HAVE_GETTIMEOFDAY_TRUE=
  18835. HAVE_GETTIMEOFDAY_FALSE='#'
  18836. else
  18837. HAVE_GETTIMEOFDAY_TRUE='#'
  18838. HAVE_GETTIMEOFDAY_FALSE=
  18839. fi
  18840. fi
  18841. done
  18842. for ac_func in inet_aton
  18843. do
  18844. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18845. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18846. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18847. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18848. echo $ECHO_N "(cached) $ECHO_C" >&6
  18849. else
  18850. cat >conftest.$ac_ext <<_ACEOF
  18851. /* confdefs.h. */
  18852. _ACEOF
  18853. cat confdefs.h >>conftest.$ac_ext
  18854. cat >>conftest.$ac_ext <<_ACEOF
  18855. /* end confdefs.h. */
  18856. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18857. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18858. #define $ac_func innocuous_$ac_func
  18859. /* System header to define __stub macros and hopefully few prototypes,
  18860. which can conflict with char $ac_func (); below.
  18861. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18862. <limits.h> exists even on freestanding compilers. */
  18863. #ifdef __STDC__
  18864. # include <limits.h>
  18865. #else
  18866. # include <assert.h>
  18867. #endif
  18868. #undef $ac_func
  18869. /* Override any GCC internal prototype to avoid an error.
  18870. Use char because int might match the return type of a GCC
  18871. builtin and then its argument prototype would still apply. */
  18872. #ifdef __cplusplus
  18873. extern "C"
  18874. #endif
  18875. char $ac_func ();
  18876. /* The GNU C library defines this for functions which it implements
  18877. to always fail with ENOSYS. Some functions are actually named
  18878. something starting with __ and the normal name is an alias. */
  18879. #if defined __stub_$ac_func || defined __stub___$ac_func
  18880. choke me
  18881. #endif
  18882. int
  18883. main ()
  18884. {
  18885. return $ac_func ();
  18886. ;
  18887. return 0;
  18888. }
  18889. _ACEOF
  18890. rm -f conftest.$ac_objext conftest$ac_exeext
  18891. if { (ac_try="$ac_link"
  18892. case "(($ac_try" in
  18893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18894. *) ac_try_echo=$ac_try;;
  18895. esac
  18896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18897. (eval "$ac_link") 2>conftest.er1
  18898. ac_status=$?
  18899. grep -v '^ *+' conftest.er1 >conftest.err
  18900. rm -f conftest.er1
  18901. cat conftest.err >&5
  18902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18903. (exit $ac_status); } && {
  18904. test -z "$ac_cxx_werror_flag" ||
  18905. test ! -s conftest.err
  18906. } && test -s conftest$ac_exeext &&
  18907. $as_test_x conftest$ac_exeext; then
  18908. eval "$as_ac_var=yes"
  18909. else
  18910. echo "$as_me: failed program was:" >&5
  18911. sed 's/^/| /' conftest.$ac_ext >&5
  18912. eval "$as_ac_var=no"
  18913. fi
  18914. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18915. conftest$ac_exeext conftest.$ac_ext
  18916. fi
  18917. ac_res=`eval echo '${'$as_ac_var'}'`
  18918. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18919. echo "${ECHO_T}$ac_res" >&6; }
  18920. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18921. cat >>confdefs.h <<_ACEOF
  18922. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18923. _ACEOF
  18924. if true; then
  18925. HAVE_INET_ATON_TRUE=
  18926. HAVE_INET_ATON_FALSE='#'
  18927. else
  18928. HAVE_INET_ATON_TRUE='#'
  18929. HAVE_INET_ATON_FALSE=
  18930. fi
  18931. else
  18932. if false; then
  18933. HAVE_INET_ATON_TRUE=
  18934. HAVE_INET_ATON_FALSE='#'
  18935. else
  18936. HAVE_INET_ATON_TRUE='#'
  18937. HAVE_INET_ATON_FALSE=
  18938. fi
  18939. fi
  18940. done
  18941. for ac_func in localtime_r
  18942. do
  18943. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18944. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18945. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18946. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18947. echo $ECHO_N "(cached) $ECHO_C" >&6
  18948. else
  18949. cat >conftest.$ac_ext <<_ACEOF
  18950. /* confdefs.h. */
  18951. _ACEOF
  18952. cat confdefs.h >>conftest.$ac_ext
  18953. cat >>conftest.$ac_ext <<_ACEOF
  18954. /* end confdefs.h. */
  18955. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18956. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18957. #define $ac_func innocuous_$ac_func
  18958. /* System header to define __stub macros and hopefully few prototypes,
  18959. which can conflict with char $ac_func (); below.
  18960. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18961. <limits.h> exists even on freestanding compilers. */
  18962. #ifdef __STDC__
  18963. # include <limits.h>
  18964. #else
  18965. # include <assert.h>
  18966. #endif
  18967. #undef $ac_func
  18968. /* Override any GCC internal prototype to avoid an error.
  18969. Use char because int might match the return type of a GCC
  18970. builtin and then its argument prototype would still apply. */
  18971. #ifdef __cplusplus
  18972. extern "C"
  18973. #endif
  18974. char $ac_func ();
  18975. /* The GNU C library defines this for functions which it implements
  18976. to always fail with ENOSYS. Some functions are actually named
  18977. something starting with __ and the normal name is an alias. */
  18978. #if defined __stub_$ac_func || defined __stub___$ac_func
  18979. choke me
  18980. #endif
  18981. int
  18982. main ()
  18983. {
  18984. return $ac_func ();
  18985. ;
  18986. return 0;
  18987. }
  18988. _ACEOF
  18989. rm -f conftest.$ac_objext conftest$ac_exeext
  18990. if { (ac_try="$ac_link"
  18991. case "(($ac_try" in
  18992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18993. *) ac_try_echo=$ac_try;;
  18994. esac
  18995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18996. (eval "$ac_link") 2>conftest.er1
  18997. ac_status=$?
  18998. grep -v '^ *+' conftest.er1 >conftest.err
  18999. rm -f conftest.er1
  19000. cat conftest.err >&5
  19001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19002. (exit $ac_status); } && {
  19003. test -z "$ac_cxx_werror_flag" ||
  19004. test ! -s conftest.err
  19005. } && test -s conftest$ac_exeext &&
  19006. $as_test_x conftest$ac_exeext; then
  19007. eval "$as_ac_var=yes"
  19008. else
  19009. echo "$as_me: failed program was:" >&5
  19010. sed 's/^/| /' conftest.$ac_ext >&5
  19011. eval "$as_ac_var=no"
  19012. fi
  19013. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19014. conftest$ac_exeext conftest.$ac_ext
  19015. fi
  19016. ac_res=`eval echo '${'$as_ac_var'}'`
  19017. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19018. echo "${ECHO_T}$ac_res" >&6; }
  19019. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19020. cat >>confdefs.h <<_ACEOF
  19021. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19022. _ACEOF
  19023. if true; then
  19024. HAVE_LOCALTIME_R_TRUE=
  19025. HAVE_LOCALTIME_R_FALSE='#'
  19026. else
  19027. HAVE_LOCALTIME_R_TRUE='#'
  19028. HAVE_LOCALTIME_R_FALSE=
  19029. fi
  19030. else
  19031. if false; then
  19032. HAVE_LOCALTIME_R_TRUE=
  19033. HAVE_LOCALTIME_R_FALSE='#'
  19034. else
  19035. HAVE_LOCALTIME_R_TRUE='#'
  19036. HAVE_LOCALTIME_R_FALSE=
  19037. fi
  19038. fi
  19039. done
  19040. for ac_func in strptime
  19041. do
  19042. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19043. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19044. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19045. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19046. echo $ECHO_N "(cached) $ECHO_C" >&6
  19047. else
  19048. cat >conftest.$ac_ext <<_ACEOF
  19049. /* confdefs.h. */
  19050. _ACEOF
  19051. cat confdefs.h >>conftest.$ac_ext
  19052. cat >>conftest.$ac_ext <<_ACEOF
  19053. /* end confdefs.h. */
  19054. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19055. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19056. #define $ac_func innocuous_$ac_func
  19057. /* System header to define __stub macros and hopefully few prototypes,
  19058. which can conflict with char $ac_func (); below.
  19059. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19060. <limits.h> exists even on freestanding compilers. */
  19061. #ifdef __STDC__
  19062. # include <limits.h>
  19063. #else
  19064. # include <assert.h>
  19065. #endif
  19066. #undef $ac_func
  19067. /* Override any GCC internal prototype to avoid an error.
  19068. Use char because int might match the return type of a GCC
  19069. builtin and then its argument prototype would still apply. */
  19070. #ifdef __cplusplus
  19071. extern "C"
  19072. #endif
  19073. char $ac_func ();
  19074. /* The GNU C library defines this for functions which it implements
  19075. to always fail with ENOSYS. Some functions are actually named
  19076. something starting with __ and the normal name is an alias. */
  19077. #if defined __stub_$ac_func || defined __stub___$ac_func
  19078. choke me
  19079. #endif
  19080. int
  19081. main ()
  19082. {
  19083. return $ac_func ();
  19084. ;
  19085. return 0;
  19086. }
  19087. _ACEOF
  19088. rm -f conftest.$ac_objext conftest$ac_exeext
  19089. if { (ac_try="$ac_link"
  19090. case "(($ac_try" in
  19091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19092. *) ac_try_echo=$ac_try;;
  19093. esac
  19094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19095. (eval "$ac_link") 2>conftest.er1
  19096. ac_status=$?
  19097. grep -v '^ *+' conftest.er1 >conftest.err
  19098. rm -f conftest.er1
  19099. cat conftest.err >&5
  19100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19101. (exit $ac_status); } && {
  19102. test -z "$ac_cxx_werror_flag" ||
  19103. test ! -s conftest.err
  19104. } && test -s conftest$ac_exeext &&
  19105. $as_test_x conftest$ac_exeext; then
  19106. eval "$as_ac_var=yes"
  19107. else
  19108. echo "$as_me: failed program was:" >&5
  19109. sed 's/^/| /' conftest.$ac_ext >&5
  19110. eval "$as_ac_var=no"
  19111. fi
  19112. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19113. conftest$ac_exeext conftest.$ac_ext
  19114. fi
  19115. ac_res=`eval echo '${'$as_ac_var'}'`
  19116. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19117. echo "${ECHO_T}$ac_res" >&6; }
  19118. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19119. cat >>confdefs.h <<_ACEOF
  19120. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19121. _ACEOF
  19122. if true; then
  19123. HAVE_STRPTIME_TRUE=
  19124. HAVE_STRPTIME_FALSE='#'
  19125. else
  19126. HAVE_STRPTIME_TRUE='#'
  19127. HAVE_STRPTIME_FALSE=
  19128. fi
  19129. else
  19130. if false; then
  19131. HAVE_STRPTIME_TRUE=
  19132. HAVE_STRPTIME_FALSE='#'
  19133. else
  19134. HAVE_STRPTIME_TRUE='#'
  19135. HAVE_STRPTIME_FALSE=
  19136. fi
  19137. fi
  19138. done
  19139. for ac_func in timegm
  19140. do
  19141. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19142. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19143. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19144. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19145. echo $ECHO_N "(cached) $ECHO_C" >&6
  19146. else
  19147. cat >conftest.$ac_ext <<_ACEOF
  19148. /* confdefs.h. */
  19149. _ACEOF
  19150. cat confdefs.h >>conftest.$ac_ext
  19151. cat >>conftest.$ac_ext <<_ACEOF
  19152. /* end confdefs.h. */
  19153. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19154. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19155. #define $ac_func innocuous_$ac_func
  19156. /* System header to define __stub macros and hopefully few prototypes,
  19157. which can conflict with char $ac_func (); below.
  19158. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19159. <limits.h> exists even on freestanding compilers. */
  19160. #ifdef __STDC__
  19161. # include <limits.h>
  19162. #else
  19163. # include <assert.h>
  19164. #endif
  19165. #undef $ac_func
  19166. /* Override any GCC internal prototype to avoid an error.
  19167. Use char because int might match the return type of a GCC
  19168. builtin and then its argument prototype would still apply. */
  19169. #ifdef __cplusplus
  19170. extern "C"
  19171. #endif
  19172. char $ac_func ();
  19173. /* The GNU C library defines this for functions which it implements
  19174. to always fail with ENOSYS. Some functions are actually named
  19175. something starting with __ and the normal name is an alias. */
  19176. #if defined __stub_$ac_func || defined __stub___$ac_func
  19177. choke me
  19178. #endif
  19179. int
  19180. main ()
  19181. {
  19182. return $ac_func ();
  19183. ;
  19184. return 0;
  19185. }
  19186. _ACEOF
  19187. rm -f conftest.$ac_objext conftest$ac_exeext
  19188. if { (ac_try="$ac_link"
  19189. case "(($ac_try" in
  19190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19191. *) ac_try_echo=$ac_try;;
  19192. esac
  19193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19194. (eval "$ac_link") 2>conftest.er1
  19195. ac_status=$?
  19196. grep -v '^ *+' conftest.er1 >conftest.err
  19197. rm -f conftest.er1
  19198. cat conftest.err >&5
  19199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19200. (exit $ac_status); } && {
  19201. test -z "$ac_cxx_werror_flag" ||
  19202. test ! -s conftest.err
  19203. } && test -s conftest$ac_exeext &&
  19204. $as_test_x conftest$ac_exeext; then
  19205. eval "$as_ac_var=yes"
  19206. else
  19207. echo "$as_me: failed program was:" >&5
  19208. sed 's/^/| /' conftest.$ac_ext >&5
  19209. eval "$as_ac_var=no"
  19210. fi
  19211. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19212. conftest$ac_exeext conftest.$ac_ext
  19213. fi
  19214. ac_res=`eval echo '${'$as_ac_var'}'`
  19215. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19216. echo "${ECHO_T}$ac_res" >&6; }
  19217. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19218. cat >>confdefs.h <<_ACEOF
  19219. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19220. _ACEOF
  19221. if true; then
  19222. HAVE_TIMEGM_TRUE=
  19223. HAVE_TIMEGM_FALSE='#'
  19224. else
  19225. HAVE_TIMEGM_TRUE='#'
  19226. HAVE_TIMEGM_FALSE=
  19227. fi
  19228. else
  19229. if false; then
  19230. HAVE_TIMEGM_TRUE=
  19231. HAVE_TIMEGM_FALSE='#'
  19232. else
  19233. HAVE_TIMEGM_TRUE='#'
  19234. HAVE_TIMEGM_FALSE=
  19235. fi
  19236. fi
  19237. done
  19238. case "$target" in
  19239. *mingw*)
  19240. if true; then
  19241. HAVE_GETADDRINFO_TRUE=
  19242. HAVE_GETADDRINFO_FALSE='#'
  19243. else
  19244. HAVE_GETADDRINFO_TRUE='#'
  19245. HAVE_GETADDRINFO_FALSE=
  19246. fi
  19247. if false; then
  19248. HAVE_GAI_STRERROR_TRUE=
  19249. HAVE_GAI_STRERROR_FALSE='#'
  19250. else
  19251. HAVE_GAI_STRERROR_TRUE='#'
  19252. HAVE_GAI_STRERROR_FALSE=
  19253. fi
  19254. ;;
  19255. esac
  19256. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19257. cat >confcache <<\_ACEOF
  19258. # This file is a shell script that caches the results of configure
  19259. # tests run on this system so they can be shared between configure
  19260. # scripts and configure runs, see configure's option --config-cache.
  19261. # It is not useful on other systems. If it contains results you don't
  19262. # want to keep, you may remove or edit it.
  19263. #
  19264. # config.status only pays attention to the cache file if you give it
  19265. # the --recheck option to rerun configure.
  19266. #
  19267. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19268. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19269. # following values.
  19270. _ACEOF
  19271. # The following way of writing the cache mishandles newlines in values,
  19272. # but we know of no workaround that is simple, portable, and efficient.
  19273. # So, we kill variables containing newlines.
  19274. # Ultrix sh set writes to stderr and can't be redirected directly,
  19275. # and sets the high bit in the cache file unless we assign to the vars.
  19276. (
  19277. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19278. eval ac_val=\$$ac_var
  19279. case $ac_val in #(
  19280. *${as_nl}*)
  19281. case $ac_var in #(
  19282. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19283. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19284. esac
  19285. case $ac_var in #(
  19286. _ | IFS | as_nl) ;; #(
  19287. *) $as_unset $ac_var ;;
  19288. esac ;;
  19289. esac
  19290. done
  19291. (set) 2>&1 |
  19292. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19293. *${as_nl}ac_space=\ *)
  19294. # `set' does not quote correctly, so add quotes (double-quote
  19295. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19296. sed -n \
  19297. "s/'/'\\\\''/g;
  19298. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19299. ;; #(
  19300. *)
  19301. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19302. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19303. ;;
  19304. esac |
  19305. sort
  19306. ) |
  19307. sed '
  19308. /^ac_cv_env_/b end
  19309. t clear
  19310. :clear
  19311. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19312. t end
  19313. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19314. :end' >>confcache
  19315. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19316. if test -w "$cache_file"; then
  19317. test "x$cache_file" != "x/dev/null" &&
  19318. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19319. echo "$as_me: updating cache $cache_file" >&6;}
  19320. cat confcache >$cache_file
  19321. else
  19322. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19323. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19324. fi
  19325. fi
  19326. rm -f confcache
  19327. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19328. # Let make expand exec_prefix.
  19329. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19330. DEFS=-DHAVE_CONFIG_H
  19331. ac_libobjs=
  19332. ac_ltlibobjs=
  19333. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19334. # 1. Remove the extension, and $U if already installed.
  19335. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19336. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19337. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19338. # will be set to the directory where LIBOBJS objects are built.
  19339. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19340. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19341. done
  19342. LIBOBJS=$ac_libobjs
  19343. LTLIBOBJS=$ac_ltlibobjs
  19344. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19345. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19346. Usually this means the macro was only invoked conditionally." >&5
  19347. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19348. Usually this means the macro was only invoked conditionally." >&2;}
  19349. { (exit 1); exit 1; }; }
  19350. fi
  19351. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19352. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19353. Usually this means the macro was only invoked conditionally." >&5
  19354. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19355. Usually this means the macro was only invoked conditionally." >&2;}
  19356. { (exit 1); exit 1; }; }
  19357. fi
  19358. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19359. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19360. Usually this means the macro was only invoked conditionally." >&5
  19361. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19362. Usually this means the macro was only invoked conditionally." >&2;}
  19363. { (exit 1); exit 1; }; }
  19364. fi
  19365. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19366. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19367. Usually this means the macro was only invoked conditionally." >&5
  19368. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19369. Usually this means the macro was only invoked conditionally." >&2;}
  19370. { (exit 1); exit 1; }; }
  19371. fi
  19372. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19373. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19374. Usually this means the macro was only invoked conditionally." >&5
  19375. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19376. Usually this means the macro was only invoked conditionally." >&2;}
  19377. { (exit 1); exit 1; }; }
  19378. fi
  19379. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19380. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19381. Usually this means the macro was only invoked conditionally." >&5
  19382. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19383. Usually this means the macro was only invoked conditionally." >&2;}
  19384. { (exit 1); exit 1; }; }
  19385. fi
  19386. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19387. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19388. Usually this means the macro was only invoked conditionally." >&5
  19389. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19390. Usually this means the macro was only invoked conditionally." >&2;}
  19391. { (exit 1); exit 1; }; }
  19392. fi
  19393. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19394. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19395. Usually this means the macro was only invoked conditionally." >&5
  19396. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19397. Usually this means the macro was only invoked conditionally." >&2;}
  19398. { (exit 1); exit 1; }; }
  19399. fi
  19400. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19401. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19402. Usually this means the macro was only invoked conditionally." >&5
  19403. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19404. Usually this means the macro was only invoked conditionally." >&2;}
  19405. { (exit 1); exit 1; }; }
  19406. fi
  19407. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19408. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19409. Usually this means the macro was only invoked conditionally." >&5
  19410. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19411. Usually this means the macro was only invoked conditionally." >&2;}
  19412. { (exit 1); exit 1; }; }
  19413. fi
  19414. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19415. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19416. Usually this means the macro was only invoked conditionally." >&5
  19417. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19418. Usually this means the macro was only invoked conditionally." >&2;}
  19419. { (exit 1); exit 1; }; }
  19420. fi
  19421. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19422. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19423. Usually this means the macro was only invoked conditionally." >&5
  19424. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19425. Usually this means the macro was only invoked conditionally." >&2;}
  19426. { (exit 1); exit 1; }; }
  19427. fi
  19428. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19429. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19430. Usually this means the macro was only invoked conditionally." >&5
  19431. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19432. Usually this means the macro was only invoked conditionally." >&2;}
  19433. { (exit 1); exit 1; }; }
  19434. fi
  19435. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19436. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19437. Usually this means the macro was only invoked conditionally." >&5
  19438. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19439. Usually this means the macro was only invoked conditionally." >&2;}
  19440. { (exit 1); exit 1; }; }
  19441. fi
  19442. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19443. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19444. Usually this means the macro was only invoked conditionally." >&5
  19445. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19446. Usually this means the macro was only invoked conditionally." >&2;}
  19447. { (exit 1); exit 1; }; }
  19448. fi
  19449. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19450. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19451. Usually this means the macro was only invoked conditionally." >&5
  19452. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19453. Usually this means the macro was only invoked conditionally." >&2;}
  19454. { (exit 1); exit 1; }; }
  19455. fi
  19456. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19457. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19458. Usually this means the macro was only invoked conditionally." >&5
  19459. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19460. Usually this means the macro was only invoked conditionally." >&2;}
  19461. { (exit 1); exit 1; }; }
  19462. fi
  19463. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19464. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19465. Usually this means the macro was only invoked conditionally." >&5
  19466. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19467. Usually this means the macro was only invoked conditionally." >&2;}
  19468. { (exit 1); exit 1; }; }
  19469. fi
  19470. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19471. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19472. Usually this means the macro was only invoked conditionally." >&5
  19473. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19474. Usually this means the macro was only invoked conditionally." >&2;}
  19475. { (exit 1); exit 1; }; }
  19476. fi
  19477. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19478. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19479. Usually this means the macro was only invoked conditionally." >&5
  19480. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19481. Usually this means the macro was only invoked conditionally." >&2;}
  19482. { (exit 1); exit 1; }; }
  19483. fi
  19484. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19485. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19486. Usually this means the macro was only invoked conditionally." >&5
  19487. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19488. Usually this means the macro was only invoked conditionally." >&2;}
  19489. { (exit 1); exit 1; }; }
  19490. fi
  19491. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19492. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19493. Usually this means the macro was only invoked conditionally." >&5
  19494. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19495. Usually this means the macro was only invoked conditionally." >&2;}
  19496. { (exit 1); exit 1; }; }
  19497. fi
  19498. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19499. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19500. Usually this means the macro was only invoked conditionally." >&5
  19501. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19502. Usually this means the macro was only invoked conditionally." >&2;}
  19503. { (exit 1); exit 1; }; }
  19504. fi
  19505. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19506. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19507. Usually this means the macro was only invoked conditionally." >&5
  19508. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19509. Usually this means the macro was only invoked conditionally." >&2;}
  19510. { (exit 1); exit 1; }; }
  19511. fi
  19512. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19513. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19514. Usually this means the macro was only invoked conditionally." >&5
  19515. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19516. Usually this means the macro was only invoked conditionally." >&2;}
  19517. { (exit 1); exit 1; }; }
  19518. fi
  19519. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19520. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19521. Usually this means the macro was only invoked conditionally." >&5
  19522. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19523. Usually this means the macro was only invoked conditionally." >&2;}
  19524. { (exit 1); exit 1; }; }
  19525. fi
  19526. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19527. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19528. Usually this means the macro was only invoked conditionally." >&5
  19529. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19530. Usually this means the macro was only invoked conditionally." >&2;}
  19531. { (exit 1); exit 1; }; }
  19532. fi
  19533. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19534. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19535. Usually this means the macro was only invoked conditionally." >&5
  19536. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19537. Usually this means the macro was only invoked conditionally." >&2;}
  19538. { (exit 1); exit 1; }; }
  19539. fi
  19540. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19541. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19542. Usually this means the macro was only invoked conditionally." >&5
  19543. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19544. Usually this means the macro was only invoked conditionally." >&2;}
  19545. { (exit 1); exit 1; }; }
  19546. fi
  19547. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19548. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19549. Usually this means the macro was only invoked conditionally." >&5
  19550. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19551. Usually this means the macro was only invoked conditionally." >&2;}
  19552. { (exit 1); exit 1; }; }
  19553. fi
  19554. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19555. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19556. Usually this means the macro was only invoked conditionally." >&5
  19557. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19558. Usually this means the macro was only invoked conditionally." >&2;}
  19559. { (exit 1); exit 1; }; }
  19560. fi
  19561. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19562. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19563. Usually this means the macro was only invoked conditionally." >&5
  19564. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19565. Usually this means the macro was only invoked conditionally." >&2;}
  19566. { (exit 1); exit 1; }; }
  19567. fi
  19568. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19569. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19570. Usually this means the macro was only invoked conditionally." >&5
  19571. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19572. Usually this means the macro was only invoked conditionally." >&2;}
  19573. { (exit 1); exit 1; }; }
  19574. fi
  19575. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19576. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19577. Usually this means the macro was only invoked conditionally." >&5
  19578. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19579. Usually this means the macro was only invoked conditionally." >&2;}
  19580. { (exit 1); exit 1; }; }
  19581. fi
  19582. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19583. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19584. Usually this means the macro was only invoked conditionally." >&5
  19585. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19586. Usually this means the macro was only invoked conditionally." >&2;}
  19587. { (exit 1); exit 1; }; }
  19588. fi
  19589. : ${CONFIG_STATUS=./config.status}
  19590. ac_clean_files_save=$ac_clean_files
  19591. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19592. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19593. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19594. cat >$CONFIG_STATUS <<_ACEOF
  19595. #! $SHELL
  19596. # Generated by $as_me.
  19597. # Run this file to recreate the current configuration.
  19598. # Compiler output produced by configure, useful for debugging
  19599. # configure, is in config.log if it exists.
  19600. debug=false
  19601. ac_cs_recheck=false
  19602. ac_cs_silent=false
  19603. SHELL=\${CONFIG_SHELL-$SHELL}
  19604. _ACEOF
  19605. cat >>$CONFIG_STATUS <<\_ACEOF
  19606. ## --------------------- ##
  19607. ## M4sh Initialization. ##
  19608. ## --------------------- ##
  19609. # Be more Bourne compatible
  19610. DUALCASE=1; export DUALCASE # for MKS sh
  19611. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19612. emulate sh
  19613. NULLCMD=:
  19614. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19615. # is contrary to our usage. Disable this feature.
  19616. alias -g '${1+"$@"}'='"$@"'
  19617. setopt NO_GLOB_SUBST
  19618. else
  19619. case `(set -o) 2>/dev/null` in
  19620. *posix*) set -o posix ;;
  19621. esac
  19622. fi
  19623. # PATH needs CR
  19624. # Avoid depending upon Character Ranges.
  19625. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19626. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19627. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19628. as_cr_digits='0123456789'
  19629. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19630. # The user is always right.
  19631. if test "${PATH_SEPARATOR+set}" != set; then
  19632. echo "#! /bin/sh" >conf$$.sh
  19633. echo "exit 0" >>conf$$.sh
  19634. chmod +x conf$$.sh
  19635. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19636. PATH_SEPARATOR=';'
  19637. else
  19638. PATH_SEPARATOR=:
  19639. fi
  19640. rm -f conf$$.sh
  19641. fi
  19642. # Support unset when possible.
  19643. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19644. as_unset=unset
  19645. else
  19646. as_unset=false
  19647. fi
  19648. # IFS
  19649. # We need space, tab and new line, in precisely that order. Quoting is
  19650. # there to prevent editors from complaining about space-tab.
  19651. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19652. # splitting by setting IFS to empty value.)
  19653. as_nl='
  19654. '
  19655. IFS=" "" $as_nl"
  19656. # Find who we are. Look in the path if we contain no directory separator.
  19657. case $0 in
  19658. *[\\/]* ) as_myself=$0 ;;
  19659. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19660. for as_dir in $PATH
  19661. do
  19662. IFS=$as_save_IFS
  19663. test -z "$as_dir" && as_dir=.
  19664. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19665. done
  19666. IFS=$as_save_IFS
  19667. ;;
  19668. esac
  19669. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19670. # in which case we are not to be found in the path.
  19671. if test "x$as_myself" = x; then
  19672. as_myself=$0
  19673. fi
  19674. if test ! -f "$as_myself"; then
  19675. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19676. { (exit 1); exit 1; }
  19677. fi
  19678. # Work around bugs in pre-3.0 UWIN ksh.
  19679. for as_var in ENV MAIL MAILPATH
  19680. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19681. done
  19682. PS1='$ '
  19683. PS2='> '
  19684. PS4='+ '
  19685. # NLS nuisances.
  19686. for as_var in \
  19687. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19688. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19689. LC_TELEPHONE LC_TIME
  19690. do
  19691. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19692. eval $as_var=C; export $as_var
  19693. else
  19694. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19695. fi
  19696. done
  19697. # Required to use basename.
  19698. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19699. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19700. as_expr=expr
  19701. else
  19702. as_expr=false
  19703. fi
  19704. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19705. as_basename=basename
  19706. else
  19707. as_basename=false
  19708. fi
  19709. # Name of the executable.
  19710. as_me=`$as_basename -- "$0" ||
  19711. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19712. X"$0" : 'X\(//\)$' \| \
  19713. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19714. echo X/"$0" |
  19715. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19716. s//\1/
  19717. q
  19718. }
  19719. /^X\/\(\/\/\)$/{
  19720. s//\1/
  19721. q
  19722. }
  19723. /^X\/\(\/\).*/{
  19724. s//\1/
  19725. q
  19726. }
  19727. s/.*/./; q'`
  19728. # CDPATH.
  19729. $as_unset CDPATH
  19730. as_lineno_1=$LINENO
  19731. as_lineno_2=$LINENO
  19732. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19733. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19734. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19735. # uniformly replaced by the line number. The first 'sed' inserts a
  19736. # line-number line after each line using $LINENO; the second 'sed'
  19737. # does the real work. The second script uses 'N' to pair each
  19738. # line-number line with the line containing $LINENO, and appends
  19739. # trailing '-' during substitution so that $LINENO is not a special
  19740. # case at line end.
  19741. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19742. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19743. # E. McMahon (1931-1989) for sed's syntax. :-)
  19744. sed -n '
  19745. p
  19746. /[$]LINENO/=
  19747. ' <$as_myself |
  19748. sed '
  19749. s/[$]LINENO.*/&-/
  19750. t lineno
  19751. b
  19752. :lineno
  19753. N
  19754. :loop
  19755. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19756. t loop
  19757. s/-\n.*//
  19758. ' >$as_me.lineno &&
  19759. chmod +x "$as_me.lineno" ||
  19760. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19761. { (exit 1); exit 1; }; }
  19762. # Don't try to exec as it changes $[0], causing all sort of problems
  19763. # (the dirname of $[0] is not the place where we might find the
  19764. # original and so on. Autoconf is especially sensitive to this).
  19765. . "./$as_me.lineno"
  19766. # Exit status is that of the last command.
  19767. exit
  19768. }
  19769. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19770. as_dirname=dirname
  19771. else
  19772. as_dirname=false
  19773. fi
  19774. ECHO_C= ECHO_N= ECHO_T=
  19775. case `echo -n x` in
  19776. -n*)
  19777. case `echo 'x\c'` in
  19778. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19779. *) ECHO_C='\c';;
  19780. esac;;
  19781. *)
  19782. ECHO_N='-n';;
  19783. esac
  19784. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19785. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19786. as_expr=expr
  19787. else
  19788. as_expr=false
  19789. fi
  19790. rm -f conf$$ conf$$.exe conf$$.file
  19791. if test -d conf$$.dir; then
  19792. rm -f conf$$.dir/conf$$.file
  19793. else
  19794. rm -f conf$$.dir
  19795. mkdir conf$$.dir
  19796. fi
  19797. echo >conf$$.file
  19798. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19799. as_ln_s='ln -s'
  19800. # ... but there are two gotchas:
  19801. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19802. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19803. # In both cases, we have to default to `cp -p'.
  19804. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19805. as_ln_s='cp -p'
  19806. elif ln conf$$.file conf$$ 2>/dev/null; then
  19807. as_ln_s=ln
  19808. else
  19809. as_ln_s='cp -p'
  19810. fi
  19811. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19812. rmdir conf$$.dir 2>/dev/null
  19813. if mkdir -p . 2>/dev/null; then
  19814. as_mkdir_p=:
  19815. else
  19816. test -d ./-p && rmdir ./-p
  19817. as_mkdir_p=false
  19818. fi
  19819. if test -x / >/dev/null 2>&1; then
  19820. as_test_x='test -x'
  19821. else
  19822. if ls -dL / >/dev/null 2>&1; then
  19823. as_ls_L_option=L
  19824. else
  19825. as_ls_L_option=
  19826. fi
  19827. as_test_x='
  19828. eval sh -c '\''
  19829. if test -d "$1"; then
  19830. test -d "$1/.";
  19831. else
  19832. case $1 in
  19833. -*)set "./$1";;
  19834. esac;
  19835. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19836. ???[sx]*):;;*)false;;esac;fi
  19837. '\'' sh
  19838. '
  19839. fi
  19840. as_executable_p=$as_test_x
  19841. # Sed expression to map a string onto a valid CPP name.
  19842. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19843. # Sed expression to map a string onto a valid variable name.
  19844. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19845. exec 6>&1
  19846. # Save the log message, to keep $[0] and so on meaningful, and to
  19847. # report actual input values of CONFIG_FILES etc. instead of their
  19848. # values after options handling.
  19849. ac_log="
  19850. This file was extended by aria2c $as_me 0.16.0b, which was
  19851. generated by GNU Autoconf 2.61. Invocation command line was
  19852. CONFIG_FILES = $CONFIG_FILES
  19853. CONFIG_HEADERS = $CONFIG_HEADERS
  19854. CONFIG_LINKS = $CONFIG_LINKS
  19855. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19856. $ $0 $@
  19857. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19858. "
  19859. _ACEOF
  19860. cat >>$CONFIG_STATUS <<_ACEOF
  19861. # Files that config.status was made for.
  19862. config_files="$ac_config_files"
  19863. config_headers="$ac_config_headers"
  19864. config_commands="$ac_config_commands"
  19865. _ACEOF
  19866. cat >>$CONFIG_STATUS <<\_ACEOF
  19867. ac_cs_usage="\
  19868. \`$as_me' instantiates files from templates according to the
  19869. current configuration.
  19870. Usage: $0 [OPTIONS] [FILE]...
  19871. -h, --help print this help, then exit
  19872. -V, --version print version number and configuration settings, then exit
  19873. -q, --quiet do not print progress messages
  19874. -d, --debug don't remove temporary files
  19875. --recheck update $as_me by reconfiguring in the same conditions
  19876. --file=FILE[:TEMPLATE]
  19877. instantiate the configuration file FILE
  19878. --header=FILE[:TEMPLATE]
  19879. instantiate the configuration header FILE
  19880. Configuration files:
  19881. $config_files
  19882. Configuration headers:
  19883. $config_headers
  19884. Configuration commands:
  19885. $config_commands
  19886. Report bugs to <bug-autoconf@gnu.org>."
  19887. _ACEOF
  19888. cat >>$CONFIG_STATUS <<_ACEOF
  19889. ac_cs_version="\\
  19890. aria2c config.status 0.16.0b
  19891. configured by $0, generated by GNU Autoconf 2.61,
  19892. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19893. Copyright (C) 2006 Free Software Foundation, Inc.
  19894. This config.status script is free software; the Free Software Foundation
  19895. gives unlimited permission to copy, distribute and modify it."
  19896. ac_pwd='$ac_pwd'
  19897. srcdir='$srcdir'
  19898. INSTALL='$INSTALL'
  19899. MKDIR_P='$MKDIR_P'
  19900. _ACEOF
  19901. cat >>$CONFIG_STATUS <<\_ACEOF
  19902. # If no file are specified by the user, then we need to provide default
  19903. # value. By we need to know if files were specified by the user.
  19904. ac_need_defaults=:
  19905. while test $# != 0
  19906. do
  19907. case $1 in
  19908. --*=*)
  19909. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19910. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19911. ac_shift=:
  19912. ;;
  19913. *)
  19914. ac_option=$1
  19915. ac_optarg=$2
  19916. ac_shift=shift
  19917. ;;
  19918. esac
  19919. case $ac_option in
  19920. # Handling of the options.
  19921. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19922. ac_cs_recheck=: ;;
  19923. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19924. echo "$ac_cs_version"; exit ;;
  19925. --debug | --debu | --deb | --de | --d | -d )
  19926. debug=: ;;
  19927. --file | --fil | --fi | --f )
  19928. $ac_shift
  19929. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19930. ac_need_defaults=false;;
  19931. --header | --heade | --head | --hea )
  19932. $ac_shift
  19933. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19934. ac_need_defaults=false;;
  19935. --he | --h)
  19936. # Conflict between --help and --header
  19937. { echo "$as_me: error: ambiguous option: $1
  19938. Try \`$0 --help' for more information." >&2
  19939. { (exit 1); exit 1; }; };;
  19940. --help | --hel | -h )
  19941. echo "$ac_cs_usage"; exit ;;
  19942. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19943. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19944. ac_cs_silent=: ;;
  19945. # This is an error.
  19946. -*) { echo "$as_me: error: unrecognized option: $1
  19947. Try \`$0 --help' for more information." >&2
  19948. { (exit 1); exit 1; }; } ;;
  19949. *) ac_config_targets="$ac_config_targets $1"
  19950. ac_need_defaults=false ;;
  19951. esac
  19952. shift
  19953. done
  19954. ac_configure_extra_args=
  19955. if $ac_cs_silent; then
  19956. exec 6>/dev/null
  19957. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19958. fi
  19959. _ACEOF
  19960. cat >>$CONFIG_STATUS <<_ACEOF
  19961. if \$ac_cs_recheck; then
  19962. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19963. CONFIG_SHELL=$SHELL
  19964. export CONFIG_SHELL
  19965. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19966. fi
  19967. _ACEOF
  19968. cat >>$CONFIG_STATUS <<\_ACEOF
  19969. exec 5>>config.log
  19970. {
  19971. echo
  19972. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19973. ## Running $as_me. ##
  19974. _ASBOX
  19975. echo "$ac_log"
  19976. } >&5
  19977. _ACEOF
  19978. cat >>$CONFIG_STATUS <<_ACEOF
  19979. #
  19980. # INIT-COMMANDS
  19981. #
  19982. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19983. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19984. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19985. # from automake < 1.5.
  19986. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19987. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19988. LINGUAS="${LINGUAS-%UNSET%}"
  19989. _ACEOF
  19990. cat >>$CONFIG_STATUS <<\_ACEOF
  19991. # Handling of arguments.
  19992. for ac_config_target in $ac_config_targets
  19993. do
  19994. case $ac_config_target in
  19995. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19996. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19997. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19998. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19999. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20000. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20001. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20002. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20003. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20004. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20005. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20006. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20007. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20008. { (exit 1); exit 1; }; };;
  20009. esac
  20010. done
  20011. # If the user did not use the arguments to specify the items to instantiate,
  20012. # then the envvar interface is used. Set only those that are not.
  20013. # We use the long form for the default assignment because of an extremely
  20014. # bizarre bug on SunOS 4.1.3.
  20015. if $ac_need_defaults; then
  20016. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20017. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20018. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20019. fi
  20020. # Have a temporary directory for convenience. Make it in the build tree
  20021. # simply because there is no reason against having it here, and in addition,
  20022. # creating and moving files from /tmp can sometimes cause problems.
  20023. # Hook for its removal unless debugging.
  20024. # Note that there is a small window in which the directory will not be cleaned:
  20025. # after its creation but before its name has been assigned to `$tmp'.
  20026. $debug ||
  20027. {
  20028. tmp=
  20029. trap 'exit_status=$?
  20030. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20031. ' 0
  20032. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20033. }
  20034. # Create a (secure) tmp directory for tmp files.
  20035. {
  20036. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20037. test -n "$tmp" && test -d "$tmp"
  20038. } ||
  20039. {
  20040. tmp=./conf$$-$RANDOM
  20041. (umask 077 && mkdir "$tmp")
  20042. } ||
  20043. {
  20044. echo "$me: cannot create a temporary directory in ." >&2
  20045. { (exit 1); exit 1; }
  20046. }
  20047. #
  20048. # Set up the sed scripts for CONFIG_FILES section.
  20049. #
  20050. # No need to generate the scripts if there are no CONFIG_FILES.
  20051. # This happens for instance when ./config.status config.h
  20052. if test -n "$CONFIG_FILES"; then
  20053. _ACEOF
  20054. ac_delim='%!_!# '
  20055. for ac_last_try in false false false false false :; do
  20056. cat >conf$$subs.sed <<_ACEOF
  20057. SHELL!$SHELL$ac_delim
  20058. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20059. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20060. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20061. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20062. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20063. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20064. exec_prefix!$exec_prefix$ac_delim
  20065. prefix!$prefix$ac_delim
  20066. program_transform_name!$program_transform_name$ac_delim
  20067. bindir!$bindir$ac_delim
  20068. sbindir!$sbindir$ac_delim
  20069. libexecdir!$libexecdir$ac_delim
  20070. datarootdir!$datarootdir$ac_delim
  20071. datadir!$datadir$ac_delim
  20072. sysconfdir!$sysconfdir$ac_delim
  20073. sharedstatedir!$sharedstatedir$ac_delim
  20074. localstatedir!$localstatedir$ac_delim
  20075. includedir!$includedir$ac_delim
  20076. oldincludedir!$oldincludedir$ac_delim
  20077. docdir!$docdir$ac_delim
  20078. infodir!$infodir$ac_delim
  20079. htmldir!$htmldir$ac_delim
  20080. dvidir!$dvidir$ac_delim
  20081. pdfdir!$pdfdir$ac_delim
  20082. psdir!$psdir$ac_delim
  20083. libdir!$libdir$ac_delim
  20084. localedir!$localedir$ac_delim
  20085. mandir!$mandir$ac_delim
  20086. DEFS!$DEFS$ac_delim
  20087. ECHO_C!$ECHO_C$ac_delim
  20088. ECHO_N!$ECHO_N$ac_delim
  20089. ECHO_T!$ECHO_T$ac_delim
  20090. LIBS!$LIBS$ac_delim
  20091. build_alias!$build_alias$ac_delim
  20092. host_alias!$host_alias$ac_delim
  20093. target_alias!$target_alias$ac_delim
  20094. build!$build$ac_delim
  20095. build_cpu!$build_cpu$ac_delim
  20096. build_vendor!$build_vendor$ac_delim
  20097. build_os!$build_os$ac_delim
  20098. host!$host$ac_delim
  20099. host_cpu!$host_cpu$ac_delim
  20100. host_vendor!$host_vendor$ac_delim
  20101. host_os!$host_os$ac_delim
  20102. target!$target$ac_delim
  20103. target_cpu!$target_cpu$ac_delim
  20104. target_vendor!$target_vendor$ac_delim
  20105. target_os!$target_os$ac_delim
  20106. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20107. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20108. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20109. am__isrc!$am__isrc$ac_delim
  20110. CYGPATH_W!$CYGPATH_W$ac_delim
  20111. PACKAGE!$PACKAGE$ac_delim
  20112. VERSION!$VERSION$ac_delim
  20113. ACLOCAL!$ACLOCAL$ac_delim
  20114. AUTOCONF!$AUTOCONF$ac_delim
  20115. AUTOMAKE!$AUTOMAKE$ac_delim
  20116. AUTOHEADER!$AUTOHEADER$ac_delim
  20117. MAKEINFO!$MAKEINFO$ac_delim
  20118. install_sh!$install_sh$ac_delim
  20119. STRIP!$STRIP$ac_delim
  20120. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20121. mkdir_p!$mkdir_p$ac_delim
  20122. AWK!$AWK$ac_delim
  20123. SET_MAKE!$SET_MAKE$ac_delim
  20124. am__leading_dot!$am__leading_dot$ac_delim
  20125. AMTAR!$AMTAR$ac_delim
  20126. am__tar!$am__tar$ac_delim
  20127. am__untar!$am__untar$ac_delim
  20128. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20129. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20130. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20131. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20132. CXX!$CXX$ac_delim
  20133. CXXFLAGS!$CXXFLAGS$ac_delim
  20134. LDFLAGS!$LDFLAGS$ac_delim
  20135. CPPFLAGS!$CPPFLAGS$ac_delim
  20136. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20137. EXEEXT!$EXEEXT$ac_delim
  20138. OBJEXT!$OBJEXT$ac_delim
  20139. DEPDIR!$DEPDIR$ac_delim
  20140. am__include!$am__include$ac_delim
  20141. am__quote!$am__quote$ac_delim
  20142. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20143. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20144. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20145. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20146. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20147. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20148. CC!$CC$ac_delim
  20149. CFLAGS!$CFLAGS$ac_delim
  20150. ac_ct_CC!$ac_ct_CC$ac_delim
  20151. CCDEPMODE!$CCDEPMODE$ac_delim
  20152. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20153. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20154. _ACEOF
  20155. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20156. break
  20157. elif $ac_last_try; then
  20158. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20159. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20160. { (exit 1); exit 1; }; }
  20161. else
  20162. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20163. fi
  20164. done
  20165. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20166. if test -n "$ac_eof"; then
  20167. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20168. ac_eof=`expr $ac_eof + 1`
  20169. fi
  20170. cat >>$CONFIG_STATUS <<_ACEOF
  20171. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20172. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20173. _ACEOF
  20174. sed '
  20175. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20176. s/^/s,@/; s/!/@,|#_!!_#|/
  20177. :n
  20178. t n
  20179. s/'"$ac_delim"'$/,g/; t
  20180. s/$/\\/; p
  20181. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20182. ' >>$CONFIG_STATUS <conf$$subs.sed
  20183. rm -f conf$$subs.sed
  20184. cat >>$CONFIG_STATUS <<_ACEOF
  20185. CEOF$ac_eof
  20186. _ACEOF
  20187. ac_delim='%!_!# '
  20188. for ac_last_try in false false false false false :; do
  20189. cat >conf$$subs.sed <<_ACEOF
  20190. RANLIB!$RANLIB$ac_delim
  20191. YACC!$YACC$ac_delim
  20192. YFLAGS!$YFLAGS$ac_delim
  20193. CXXCPP!$CXXCPP$ac_delim
  20194. GREP!$GREP$ac_delim
  20195. EGREP!$EGREP$ac_delim
  20196. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20197. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20198. XML_LIBS!$XML_LIBS$ac_delim
  20199. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20200. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20201. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20202. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20203. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20204. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20205. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20206. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20207. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20208. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20209. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20210. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20211. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20212. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20213. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  20214. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  20215. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20216. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20217. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20218. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20219. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20220. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20221. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20222. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20223. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20224. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20225. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20226. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20227. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20228. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20229. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20230. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20231. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20232. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20233. ALLOCA!$ALLOCA$ac_delim
  20234. USE_NLS!$USE_NLS$ac_delim
  20235. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20236. MSGFMT!$MSGFMT$ac_delim
  20237. GMSGFMT!$GMSGFMT$ac_delim
  20238. MSGFMT_015!$MSGFMT_015$ac_delim
  20239. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20240. XGETTEXT!$XGETTEXT$ac_delim
  20241. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20242. MSGMERGE!$MSGMERGE$ac_delim
  20243. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20244. GLIBC2!$GLIBC2$ac_delim
  20245. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20246. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20247. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20248. LIBPTH!$LIBPTH$ac_delim
  20249. LTLIBPTH!$LTLIBPTH$ac_delim
  20250. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20251. LIBTHREAD!$LIBTHREAD$ac_delim
  20252. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20253. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20254. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20255. LIBICONV!$LIBICONV$ac_delim
  20256. LTLIBICONV!$LTLIBICONV$ac_delim
  20257. INTLBISON!$INTLBISON$ac_delim
  20258. GLIBC21!$GLIBC21$ac_delim
  20259. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20260. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20261. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20262. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20263. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20264. WOE32DLL!$WOE32DLL$ac_delim
  20265. WOE32!$WOE32$ac_delim
  20266. WINDRES!$WINDRES$ac_delim
  20267. LTLIBC!$LTLIBC$ac_delim
  20268. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20269. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20270. CATOBJEXT!$CATOBJEXT$ac_delim
  20271. DATADIRNAME!$DATADIRNAME$ac_delim
  20272. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20273. GENCAT!$GENCAT$ac_delim
  20274. INTLOBJS!$INTLOBJS$ac_delim
  20275. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20276. INTLLIBS!$INTLLIBS$ac_delim
  20277. LIBINTL!$LIBINTL$ac_delim
  20278. LTLIBINTL!$LTLIBINTL$ac_delim
  20279. POSUB!$POSUB$ac_delim
  20280. LIBOBJS!$LIBOBJS$ac_delim
  20281. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20282. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20283. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20284. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20285. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20286. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20287. _ACEOF
  20288. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20289. break
  20290. elif $ac_last_try; then
  20291. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20292. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20293. { (exit 1); exit 1; }; }
  20294. else
  20295. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20296. fi
  20297. done
  20298. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20299. if test -n "$ac_eof"; then
  20300. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20301. ac_eof=`expr $ac_eof + 1`
  20302. fi
  20303. cat >>$CONFIG_STATUS <<_ACEOF
  20304. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20305. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20306. _ACEOF
  20307. sed '
  20308. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20309. s/^/s,@/; s/!/@,|#_!!_#|/
  20310. :n
  20311. t n
  20312. s/'"$ac_delim"'$/,g/; t
  20313. s/$/\\/; p
  20314. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20315. ' >>$CONFIG_STATUS <conf$$subs.sed
  20316. rm -f conf$$subs.sed
  20317. cat >>$CONFIG_STATUS <<_ACEOF
  20318. CEOF$ac_eof
  20319. _ACEOF
  20320. ac_delim='%!_!# '
  20321. for ac_last_try in false false false false false :; do
  20322. cat >conf$$subs.sed <<_ACEOF
  20323. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20324. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20325. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20326. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20327. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20328. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20329. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20330. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20331. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20332. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20333. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20334. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20335. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20336. _ACEOF
  20337. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
  20338. break
  20339. elif $ac_last_try; then
  20340. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20341. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20342. { (exit 1); exit 1; }; }
  20343. else
  20344. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20345. fi
  20346. done
  20347. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20348. if test -n "$ac_eof"; then
  20349. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20350. ac_eof=`expr $ac_eof + 1`
  20351. fi
  20352. cat >>$CONFIG_STATUS <<_ACEOF
  20353. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20354. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20355. _ACEOF
  20356. sed '
  20357. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20358. s/^/s,@/; s/!/@,|#_!!_#|/
  20359. :n
  20360. t n
  20361. s/'"$ac_delim"'$/,g/; t
  20362. s/$/\\/; p
  20363. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20364. ' >>$CONFIG_STATUS <conf$$subs.sed
  20365. rm -f conf$$subs.sed
  20366. cat >>$CONFIG_STATUS <<_ACEOF
  20367. :end
  20368. s/|#_!!_#|//g
  20369. CEOF$ac_eof
  20370. _ACEOF
  20371. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20372. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20373. # trailing colons and then remove the whole line if VPATH becomes empty
  20374. # (actually we leave an empty line to preserve line numbers).
  20375. if test "x$srcdir" = x.; then
  20376. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20377. s/:*\$(srcdir):*/:/
  20378. s/:*\${srcdir}:*/:/
  20379. s/:*@srcdir@:*/:/
  20380. s/^\([^=]*=[ ]*\):*/\1/
  20381. s/:*$//
  20382. s/^[^=]*=[ ]*$//
  20383. }'
  20384. fi
  20385. cat >>$CONFIG_STATUS <<\_ACEOF
  20386. fi # test -n "$CONFIG_FILES"
  20387. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20388. do
  20389. case $ac_tag in
  20390. :[FHLC]) ac_mode=$ac_tag; continue;;
  20391. esac
  20392. case $ac_mode$ac_tag in
  20393. :[FHL]*:*);;
  20394. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20395. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20396. { (exit 1); exit 1; }; };;
  20397. :[FH]-) ac_tag=-:-;;
  20398. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20399. esac
  20400. ac_save_IFS=$IFS
  20401. IFS=:
  20402. set x $ac_tag
  20403. IFS=$ac_save_IFS
  20404. shift
  20405. ac_file=$1
  20406. shift
  20407. case $ac_mode in
  20408. :L) ac_source=$1;;
  20409. :[FH])
  20410. ac_file_inputs=
  20411. for ac_f
  20412. do
  20413. case $ac_f in
  20414. -) ac_f="$tmp/stdin";;
  20415. *) # Look for the file first in the build tree, then in the source tree
  20416. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20417. # because $ac_f cannot contain `:'.
  20418. test -f "$ac_f" ||
  20419. case $ac_f in
  20420. [\\/$]*) false;;
  20421. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20422. esac ||
  20423. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20424. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20425. { (exit 1); exit 1; }; };;
  20426. esac
  20427. ac_file_inputs="$ac_file_inputs $ac_f"
  20428. done
  20429. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20430. # use $as_me), people would be surprised to read:
  20431. # /* config.h. Generated by config.status. */
  20432. configure_input="Generated from "`IFS=:
  20433. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20434. if test x"$ac_file" != x-; then
  20435. configure_input="$ac_file. $configure_input"
  20436. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20437. echo "$as_me: creating $ac_file" >&6;}
  20438. fi
  20439. case $ac_tag in
  20440. *:-:* | *:-) cat >"$tmp/stdin";;
  20441. esac
  20442. ;;
  20443. esac
  20444. ac_dir=`$as_dirname -- "$ac_file" ||
  20445. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20446. X"$ac_file" : 'X\(//\)[^/]' \| \
  20447. X"$ac_file" : 'X\(//\)$' \| \
  20448. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20449. echo X"$ac_file" |
  20450. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20451. s//\1/
  20452. q
  20453. }
  20454. /^X\(\/\/\)[^/].*/{
  20455. s//\1/
  20456. q
  20457. }
  20458. /^X\(\/\/\)$/{
  20459. s//\1/
  20460. q
  20461. }
  20462. /^X\(\/\).*/{
  20463. s//\1/
  20464. q
  20465. }
  20466. s/.*/./; q'`
  20467. { as_dir="$ac_dir"
  20468. case $as_dir in #(
  20469. -*) as_dir=./$as_dir;;
  20470. esac
  20471. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20472. as_dirs=
  20473. while :; do
  20474. case $as_dir in #(
  20475. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20476. *) as_qdir=$as_dir;;
  20477. esac
  20478. as_dirs="'$as_qdir' $as_dirs"
  20479. as_dir=`$as_dirname -- "$as_dir" ||
  20480. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20481. X"$as_dir" : 'X\(//\)[^/]' \| \
  20482. X"$as_dir" : 'X\(//\)$' \| \
  20483. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20484. echo X"$as_dir" |
  20485. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20486. s//\1/
  20487. q
  20488. }
  20489. /^X\(\/\/\)[^/].*/{
  20490. s//\1/
  20491. q
  20492. }
  20493. /^X\(\/\/\)$/{
  20494. s//\1/
  20495. q
  20496. }
  20497. /^X\(\/\).*/{
  20498. s//\1/
  20499. q
  20500. }
  20501. s/.*/./; q'`
  20502. test -d "$as_dir" && break
  20503. done
  20504. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20505. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20506. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20507. { (exit 1); exit 1; }; }; }
  20508. ac_builddir=.
  20509. case "$ac_dir" in
  20510. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20511. *)
  20512. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20513. # A ".." for each directory in $ac_dir_suffix.
  20514. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20515. case $ac_top_builddir_sub in
  20516. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20517. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20518. esac ;;
  20519. esac
  20520. ac_abs_top_builddir=$ac_pwd
  20521. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20522. # for backward compatibility:
  20523. ac_top_builddir=$ac_top_build_prefix
  20524. case $srcdir in
  20525. .) # We are building in place.
  20526. ac_srcdir=.
  20527. ac_top_srcdir=$ac_top_builddir_sub
  20528. ac_abs_top_srcdir=$ac_pwd ;;
  20529. [\\/]* | ?:[\\/]* ) # Absolute name.
  20530. ac_srcdir=$srcdir$ac_dir_suffix;
  20531. ac_top_srcdir=$srcdir
  20532. ac_abs_top_srcdir=$srcdir ;;
  20533. *) # Relative name.
  20534. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20535. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20536. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20537. esac
  20538. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20539. case $ac_mode in
  20540. :F)
  20541. #
  20542. # CONFIG_FILE
  20543. #
  20544. case $INSTALL in
  20545. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20546. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20547. esac
  20548. ac_MKDIR_P=$MKDIR_P
  20549. case $MKDIR_P in
  20550. [\\/$]* | ?:[\\/]* ) ;;
  20551. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20552. esac
  20553. _ACEOF
  20554. cat >>$CONFIG_STATUS <<\_ACEOF
  20555. # If the template does not know about datarootdir, expand it.
  20556. # FIXME: This hack should be removed a few years after 2.60.
  20557. ac_datarootdir_hack=; ac_datarootdir_seen=
  20558. case `sed -n '/datarootdir/ {
  20559. p
  20560. q
  20561. }
  20562. /@datadir@/p
  20563. /@docdir@/p
  20564. /@infodir@/p
  20565. /@localedir@/p
  20566. /@mandir@/p
  20567. ' $ac_file_inputs` in
  20568. *datarootdir*) ac_datarootdir_seen=yes;;
  20569. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20570. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20571. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20572. _ACEOF
  20573. cat >>$CONFIG_STATUS <<_ACEOF
  20574. ac_datarootdir_hack='
  20575. s&@datadir@&$datadir&g
  20576. s&@docdir@&$docdir&g
  20577. s&@infodir@&$infodir&g
  20578. s&@localedir@&$localedir&g
  20579. s&@mandir@&$mandir&g
  20580. s&\\\${datarootdir}&$datarootdir&g' ;;
  20581. esac
  20582. _ACEOF
  20583. # Neutralize VPATH when `$srcdir' = `.'.
  20584. # Shell code in configure.ac might set extrasub.
  20585. # FIXME: do we really want to maintain this feature?
  20586. cat >>$CONFIG_STATUS <<_ACEOF
  20587. sed "$ac_vpsub
  20588. $extrasub
  20589. _ACEOF
  20590. cat >>$CONFIG_STATUS <<\_ACEOF
  20591. :t
  20592. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20593. s&@configure_input@&$configure_input&;t t
  20594. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20595. s&@srcdir@&$ac_srcdir&;t t
  20596. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20597. s&@top_srcdir@&$ac_top_srcdir&;t t
  20598. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20599. s&@builddir@&$ac_builddir&;t t
  20600. s&@abs_builddir@&$ac_abs_builddir&;t t
  20601. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20602. s&@INSTALL@&$ac_INSTALL&;t t
  20603. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20604. $ac_datarootdir_hack
  20605. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20606. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20607. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20608. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20609. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20610. which seems to be undefined. Please make sure it is defined." >&5
  20611. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20612. which seems to be undefined. Please make sure it is defined." >&2;}
  20613. rm -f "$tmp/stdin"
  20614. case $ac_file in
  20615. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20616. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20617. esac
  20618. ;;
  20619. :H)
  20620. #
  20621. # CONFIG_HEADER
  20622. #
  20623. _ACEOF
  20624. # Transform confdefs.h into a sed script `conftest.defines', that
  20625. # substitutes the proper values into config.h.in to produce config.h.
  20626. rm -f conftest.defines conftest.tail
  20627. # First, append a space to every undef/define line, to ease matching.
  20628. echo 's/$/ /' >conftest.defines
  20629. # Then, protect against being on the right side of a sed subst, or in
  20630. # an unquoted here document, in config.status. If some macros were
  20631. # called several times there might be several #defines for the same
  20632. # symbol, which is useless. But do not sort them, since the last
  20633. # AC_DEFINE must be honored.
  20634. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20635. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20636. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20637. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20638. # just an empty string.
  20639. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20640. ac_dB='\\)[ (].*,\\1define\\2'
  20641. ac_dC=' '
  20642. ac_dD=' ,'
  20643. uniq confdefs.h |
  20644. sed -n '
  20645. t rset
  20646. :rset
  20647. s/^[ ]*#[ ]*define[ ][ ]*//
  20648. t ok
  20649. d
  20650. :ok
  20651. s/[\\&,]/\\&/g
  20652. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20653. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20654. ' >>conftest.defines
  20655. # Remove the space that was appended to ease matching.
  20656. # Then replace #undef with comments. This is necessary, for
  20657. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20658. # on some systems where configure will not decide to define it.
  20659. # (The regexp can be short, since the line contains either #define or #undef.)
  20660. echo 's/ $//
  20661. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20662. # Break up conftest.defines:
  20663. ac_max_sed_lines=50
  20664. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20665. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20666. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20667. # et cetera.
  20668. ac_in='$ac_file_inputs'
  20669. ac_out='"$tmp/out1"'
  20670. ac_nxt='"$tmp/out2"'
  20671. while :
  20672. do
  20673. # Write a here document:
  20674. cat >>$CONFIG_STATUS <<_ACEOF
  20675. # First, check the format of the line:
  20676. cat >"\$tmp/defines.sed" <<\\CEOF
  20677. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20678. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20679. b
  20680. :def
  20681. _ACEOF
  20682. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20683. echo 'CEOF
  20684. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20685. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20686. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20687. grep . conftest.tail >/dev/null || break
  20688. rm -f conftest.defines
  20689. mv conftest.tail conftest.defines
  20690. done
  20691. rm -f conftest.defines conftest.tail
  20692. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20693. cat >>$CONFIG_STATUS <<\_ACEOF
  20694. if test x"$ac_file" != x-; then
  20695. echo "/* $configure_input */" >"$tmp/config.h"
  20696. cat "$ac_result" >>"$tmp/config.h"
  20697. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20698. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20699. echo "$as_me: $ac_file is unchanged" >&6;}
  20700. else
  20701. rm -f $ac_file
  20702. mv "$tmp/config.h" $ac_file
  20703. fi
  20704. else
  20705. echo "/* $configure_input */"
  20706. cat "$ac_result"
  20707. fi
  20708. rm -f "$tmp/out12"
  20709. # Compute $ac_file's index in $config_headers.
  20710. _am_arg=$ac_file
  20711. _am_stamp_count=1
  20712. for _am_header in $config_headers :; do
  20713. case $_am_header in
  20714. $_am_arg | $_am_arg:* )
  20715. break ;;
  20716. * )
  20717. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20718. esac
  20719. done
  20720. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20721. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20722. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20723. X"$_am_arg" : 'X\(//\)$' \| \
  20724. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20725. echo X"$_am_arg" |
  20726. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20727. s//\1/
  20728. q
  20729. }
  20730. /^X\(\/\/\)[^/].*/{
  20731. s//\1/
  20732. q
  20733. }
  20734. /^X\(\/\/\)$/{
  20735. s//\1/
  20736. q
  20737. }
  20738. /^X\(\/\).*/{
  20739. s//\1/
  20740. q
  20741. }
  20742. s/.*/./; q'`/stamp-h$_am_stamp_count
  20743. ;;
  20744. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20745. echo "$as_me: executing $ac_file commands" >&6;}
  20746. ;;
  20747. esac
  20748. case $ac_file$ac_mode in
  20749. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20750. # Strip MF so we end up with the name of the file.
  20751. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20752. # Check whether this is an Automake generated Makefile or not.
  20753. # We used to match only the files named `Makefile.in', but
  20754. # some people rename them; so instead we look at the file content.
  20755. # Grep'ing the first line is not enough: some people post-process
  20756. # each Makefile.in and add a new line on top of each file to say so.
  20757. # Grep'ing the whole file is not good either: AIX grep has a line
  20758. # limit of 2048, but all sed's we know have understand at least 4000.
  20759. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20760. dirpart=`$as_dirname -- "$mf" ||
  20761. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20762. X"$mf" : 'X\(//\)[^/]' \| \
  20763. X"$mf" : 'X\(//\)$' \| \
  20764. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20765. echo X"$mf" |
  20766. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20767. s//\1/
  20768. q
  20769. }
  20770. /^X\(\/\/\)[^/].*/{
  20771. s//\1/
  20772. q
  20773. }
  20774. /^X\(\/\/\)$/{
  20775. s//\1/
  20776. q
  20777. }
  20778. /^X\(\/\).*/{
  20779. s//\1/
  20780. q
  20781. }
  20782. s/.*/./; q'`
  20783. else
  20784. continue
  20785. fi
  20786. # Extract the definition of DEPDIR, am__include, and am__quote
  20787. # from the Makefile without running `make'.
  20788. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20789. test -z "$DEPDIR" && continue
  20790. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20791. test -z "am__include" && continue
  20792. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20793. # When using ansi2knr, U may be empty or an underscore; expand it
  20794. U=`sed -n 's/^U = //p' < "$mf"`
  20795. # Find all dependency output files, they are included files with
  20796. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20797. # simplest approach to changing $(DEPDIR) to its actual value in the
  20798. # expansion.
  20799. for file in `sed -n "
  20800. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20801. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20802. # Make sure the directory exists.
  20803. test -f "$dirpart/$file" && continue
  20804. fdir=`$as_dirname -- "$file" ||
  20805. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20806. X"$file" : 'X\(//\)[^/]' \| \
  20807. X"$file" : 'X\(//\)$' \| \
  20808. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20809. echo X"$file" |
  20810. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20811. s//\1/
  20812. q
  20813. }
  20814. /^X\(\/\/\)[^/].*/{
  20815. s//\1/
  20816. q
  20817. }
  20818. /^X\(\/\/\)$/{
  20819. s//\1/
  20820. q
  20821. }
  20822. /^X\(\/\).*/{
  20823. s//\1/
  20824. q
  20825. }
  20826. s/.*/./; q'`
  20827. { as_dir=$dirpart/$fdir
  20828. case $as_dir in #(
  20829. -*) as_dir=./$as_dir;;
  20830. esac
  20831. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20832. as_dirs=
  20833. while :; do
  20834. case $as_dir in #(
  20835. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20836. *) as_qdir=$as_dir;;
  20837. esac
  20838. as_dirs="'$as_qdir' $as_dirs"
  20839. as_dir=`$as_dirname -- "$as_dir" ||
  20840. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20841. X"$as_dir" : 'X\(//\)[^/]' \| \
  20842. X"$as_dir" : 'X\(//\)$' \| \
  20843. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20844. echo X"$as_dir" |
  20845. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20846. s//\1/
  20847. q
  20848. }
  20849. /^X\(\/\/\)[^/].*/{
  20850. s//\1/
  20851. q
  20852. }
  20853. /^X\(\/\/\)$/{
  20854. s//\1/
  20855. q
  20856. }
  20857. /^X\(\/\).*/{
  20858. s//\1/
  20859. q
  20860. }
  20861. s/.*/./; q'`
  20862. test -d "$as_dir" && break
  20863. done
  20864. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20865. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20866. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20867. { (exit 1); exit 1; }; }; }
  20868. # echo "creating $dirpart/$file"
  20869. echo '# dummy' > "$dirpart/$file"
  20870. done
  20871. done
  20872. ;;
  20873. "po-directories":C)
  20874. for ac_file in $CONFIG_FILES; do
  20875. # Support "outfile[:infile[:infile...]]"
  20876. case "$ac_file" in
  20877. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20878. esac
  20879. # PO directories have a Makefile.in generated from Makefile.in.in.
  20880. case "$ac_file" in */Makefile.in)
  20881. # Adjust a relative srcdir.
  20882. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20883. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20884. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20885. # In autoconf-2.13 it is called $ac_given_srcdir.
  20886. # In autoconf-2.50 it is called $srcdir.
  20887. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20888. case "$ac_given_srcdir" in
  20889. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20890. /*) top_srcdir="$ac_given_srcdir" ;;
  20891. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20892. esac
  20893. # Treat a directory as a PO directory if and only if it has a
  20894. # POTFILES.in file. This allows packages to have multiple PO
  20895. # directories under different names or in different locations.
  20896. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20897. rm -f "$ac_dir/POTFILES"
  20898. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20899. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20900. POMAKEFILEDEPS="POTFILES.in"
  20901. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20902. # on $ac_dir but don't depend on user-specified configuration
  20903. # parameters.
  20904. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20905. # The LINGUAS file contains the set of available languages.
  20906. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20907. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20908. fi
  20909. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20910. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20911. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20912. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20913. else
  20914. # The set of available languages was given in configure.in.
  20915. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20916. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20917. fi
  20918. # Compute POFILES
  20919. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20920. # Compute UPDATEPOFILES
  20921. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20922. # Compute DUMMYPOFILES
  20923. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20924. # Compute GMOFILES
  20925. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20926. case "$ac_given_srcdir" in
  20927. .) srcdirpre= ;;
  20928. *) srcdirpre='$(srcdir)/' ;;
  20929. esac
  20930. POFILES=
  20931. UPDATEPOFILES=
  20932. DUMMYPOFILES=
  20933. GMOFILES=
  20934. for lang in $ALL_LINGUAS; do
  20935. POFILES="$POFILES $srcdirpre$lang.po"
  20936. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20937. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20938. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20939. done
  20940. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20941. # environment variable.
  20942. INST_LINGUAS=
  20943. if test -n "$ALL_LINGUAS"; then
  20944. for presentlang in $ALL_LINGUAS; do
  20945. useit=no
  20946. if test "%UNSET%" != "$LINGUAS"; then
  20947. desiredlanguages="$LINGUAS"
  20948. else
  20949. desiredlanguages="$ALL_LINGUAS"
  20950. fi
  20951. for desiredlang in $desiredlanguages; do
  20952. # Use the presentlang catalog if desiredlang is
  20953. # a. equal to presentlang, or
  20954. # b. a variant of presentlang (because in this case,
  20955. # presentlang can be used as a fallback for messages
  20956. # which are not translated in the desiredlang catalog).
  20957. case "$desiredlang" in
  20958. "$presentlang"*) useit=yes;;
  20959. esac
  20960. done
  20961. if test $useit = yes; then
  20962. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20963. fi
  20964. done
  20965. fi
  20966. CATALOGS=
  20967. if test -n "$INST_LINGUAS"; then
  20968. for lang in $INST_LINGUAS; do
  20969. CATALOGS="$CATALOGS $lang.gmo"
  20970. done
  20971. fi
  20972. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20973. 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"
  20974. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20975. if test -f "$f"; then
  20976. case "$f" in
  20977. *.orig | *.bak | *~) ;;
  20978. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20979. esac
  20980. fi
  20981. done
  20982. fi
  20983. ;;
  20984. esac
  20985. done ;;
  20986. esac
  20987. done # for ac_tag
  20988. { (exit 0); exit 0; }
  20989. _ACEOF
  20990. chmod +x $CONFIG_STATUS
  20991. ac_clean_files=$ac_clean_files_save
  20992. # configure is writing to config.log, and then calls config.status.
  20993. # config.status does its own redirection, appending to config.log.
  20994. # Unfortunately, on DOS this fails, as config.log is still kept open
  20995. # by configure, so config.status won't be able to write to it; its
  20996. # output is simply discarded. So we exec the FD to /dev/null,
  20997. # effectively closing config.log, so it can be properly (re)opened and
  20998. # appended to by config.status. When coming back to configure, we
  20999. # need to make the FD available again.
  21000. if test "$no_create" != yes; then
  21001. ac_cs_success=:
  21002. ac_config_status_args=
  21003. test "$silent" = yes &&
  21004. ac_config_status_args="$ac_config_status_args --quiet"
  21005. exec 5>/dev/null
  21006. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21007. exec 5>>config.log
  21008. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21009. # would make configure fail if this is the last instruction.
  21010. $ac_cs_success || { (exit 1); exit 1; }
  21011. fi
  21012. echo " "
  21013. echo "Build: $build"
  21014. echo "Target: $target"
  21015. echo "Install prefix: $prefix"
  21016. echo "CFLAGS: $CFLAGS"
  21017. echo "CPPFLAGS: $CPPFLAGS"
  21018. echo "LDFLAGS: $LDFLAGS"
  21019. echo "LIBS: $LIBS"
  21020. echo "SQLite3: $have_sqlite3"
  21021. echo "GnuTLS: $have_libgnutls"
  21022. echo "OpenSSL: $have_openssl"
  21023. echo "LibXML2: $have_libxml2"
  21024. echo "LibExpat: $have_libexpat"
  21025. echo "LibAres: $have_libares"
  21026. echo "LibCares: $have_libcares"
  21027. echo "Libz: $have_libz"
  21028. echo "Bittorrent: $enable_bittorrent"
  21029. echo "Metalink: $enable_metalink"