configure 665 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727
  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. LIBS_save=$LIBS
  5282. CPPFLAGS_save=$CPPFLAGS
  5283. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5284. if test -x $PKG_CONFIG; then
  5285. { echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5286. echo $ECHO_N "checking checking availability of sqlite3 using pkg-config... $ECHO_C" >&6; }
  5287. $PKG_CONFIG --exists sqlite3
  5288. if test "$?" = "0"; then
  5289. # Use pkg-config to detect LIBS and CFLAGS
  5290. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5291. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5292. LIBS="$SQLITE3_LIBS $LIBS"
  5293. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5294. have_sqlite3=yes
  5295. { echo "$as_me:$LINENO: result: yes" >&5
  5296. echo "${ECHO_T}yes" >&6; }
  5297. else
  5298. { echo "$as_me:$LINENO: result: no" >&5
  5299. echo "${ECHO_T}no" >&6; }
  5300. fi
  5301. fi
  5302. if test "x$have_sqlite3" != "xyes"; then
  5303. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5304. sqlite3_prefix_include=$sqlite3_prefix/include
  5305. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5306. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5307. { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5308. echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
  5309. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5310. echo $ECHO_N "(cached) $ECHO_C" >&6
  5311. else
  5312. ac_check_lib_save_LIBS=$LIBS
  5313. LIBS="-lsqlite3 $LIBS"
  5314. cat >conftest.$ac_ext <<_ACEOF
  5315. /* confdefs.h. */
  5316. _ACEOF
  5317. cat confdefs.h >>conftest.$ac_ext
  5318. cat >>conftest.$ac_ext <<_ACEOF
  5319. /* end confdefs.h. */
  5320. /* Override any GCC internal prototype to avoid an error.
  5321. Use char because int might match the return type of a GCC
  5322. builtin and then its argument prototype would still apply. */
  5323. #ifdef __cplusplus
  5324. extern "C"
  5325. #endif
  5326. char sqlite3_open ();
  5327. int
  5328. main ()
  5329. {
  5330. return sqlite3_open ();
  5331. ;
  5332. return 0;
  5333. }
  5334. _ACEOF
  5335. rm -f conftest.$ac_objext conftest$ac_exeext
  5336. if { (ac_try="$ac_link"
  5337. case "(($ac_try" in
  5338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5339. *) ac_try_echo=$ac_try;;
  5340. esac
  5341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5342. (eval "$ac_link") 2>conftest.er1
  5343. ac_status=$?
  5344. grep -v '^ *+' conftest.er1 >conftest.err
  5345. rm -f conftest.er1
  5346. cat conftest.err >&5
  5347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5348. (exit $ac_status); } && {
  5349. test -z "$ac_cxx_werror_flag" ||
  5350. test ! -s conftest.err
  5351. } && test -s conftest$ac_exeext &&
  5352. $as_test_x conftest$ac_exeext; then
  5353. ac_cv_lib_sqlite3_sqlite3_open=yes
  5354. else
  5355. echo "$as_me: failed program was:" >&5
  5356. sed 's/^/| /' conftest.$ac_ext >&5
  5357. ac_cv_lib_sqlite3_sqlite3_open=no
  5358. fi
  5359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5360. conftest$ac_exeext conftest.$ac_ext
  5361. LIBS=$ac_check_lib_save_LIBS
  5362. fi
  5363. { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5364. echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5365. if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
  5366. have_sqlite3=yes
  5367. fi
  5368. if test "x$have_sqlite3" = "xyes"; then
  5369. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5370. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5371. fi
  5372. fi
  5373. if test "x$have_sqlite3" = "xyes"; then
  5374. cat >>confdefs.h <<\_ACEOF
  5375. #define HAVE_SQLITE3 1
  5376. _ACEOF
  5377. fi
  5378. LIBS=$LIBS_save
  5379. CPPFLAGS=$CPPFLAGS_save
  5380. fi
  5381. if test "x$with_gnutls" = "xyes"; then
  5382. # Check whether --with-libgnutls-prefix was given.
  5383. if test "${with_libgnutls_prefix+set}" = set; then
  5384. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5385. else
  5386. libgnutls_config_prefix=""
  5387. fi
  5388. if test x$libgnutls_config_prefix != x ; then
  5389. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5390. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5391. fi
  5392. fi
  5393. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5394. set dummy libgnutls-config; ac_word=$2
  5395. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5396. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5397. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5398. echo $ECHO_N "(cached) $ECHO_C" >&6
  5399. else
  5400. case $LIBGNUTLS_CONFIG in
  5401. [\\/]* | ?:[\\/]*)
  5402. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5403. ;;
  5404. *)
  5405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5406. for as_dir in $PATH
  5407. do
  5408. IFS=$as_save_IFS
  5409. test -z "$as_dir" && as_dir=.
  5410. for ac_exec_ext in '' $ac_executable_extensions; do
  5411. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5412. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5413. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5414. break 2
  5415. fi
  5416. done
  5417. done
  5418. IFS=$as_save_IFS
  5419. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5420. ;;
  5421. esac
  5422. fi
  5423. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5424. if test -n "$LIBGNUTLS_CONFIG"; then
  5425. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5426. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5427. else
  5428. { echo "$as_me:$LINENO: result: no" >&5
  5429. echo "${ECHO_T}no" >&6; }
  5430. fi
  5431. min_libgnutls_version=1.2.9
  5432. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5433. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5434. no_libgnutls=""
  5435. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5436. no_libgnutls=yes
  5437. else
  5438. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5439. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5440. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5441. ac_save_CFLAGS="$CFLAGS"
  5442. ac_save_LIBS="$LIBS"
  5443. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5444. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5445. rm -f conf.libgnutlstest
  5446. if test "$cross_compiling" = yes; then
  5447. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5448. else
  5449. cat >conftest.$ac_ext <<_ACEOF
  5450. /* confdefs.h. */
  5451. _ACEOF
  5452. cat confdefs.h >>conftest.$ac_ext
  5453. cat >>conftest.$ac_ext <<_ACEOF
  5454. /* end confdefs.h. */
  5455. #include <stdio.h>
  5456. #include <stdlib.h>
  5457. #include <string.h>
  5458. #include <gnutls/gnutls.h>
  5459. int
  5460. main ()
  5461. {
  5462. system ("touch conf.libgnutlstest");
  5463. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5464. {
  5465. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5466. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5467. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5468. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5469. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5470. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5471. printf("*** required on your system.\n");
  5472. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5473. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5474. printf("*** before re-running configure\n");
  5475. }
  5476. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5477. {
  5478. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5479. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5480. }
  5481. else
  5482. {
  5483. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5484. {
  5485. return 0;
  5486. }
  5487. else
  5488. {
  5489. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5490. gnutls_check_version(NULL) );
  5491. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5492. "$min_libgnutls_version" );
  5493. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5494. printf("*** \n");
  5495. printf("*** If you have already installed a sufficiently new version, this error\n");
  5496. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5497. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5498. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5499. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5500. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5501. printf("*** so that the correct libraries are found at run-time))\n");
  5502. }
  5503. }
  5504. return 1;
  5505. }
  5506. _ACEOF
  5507. rm -f conftest$ac_exeext
  5508. if { (ac_try="$ac_link"
  5509. case "(($ac_try" in
  5510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5511. *) ac_try_echo=$ac_try;;
  5512. esac
  5513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5514. (eval "$ac_link") 2>&5
  5515. ac_status=$?
  5516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5517. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5518. { (case "(($ac_try" in
  5519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5520. *) ac_try_echo=$ac_try;;
  5521. esac
  5522. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5523. (eval "$ac_try") 2>&5
  5524. ac_status=$?
  5525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5526. (exit $ac_status); }; }; then
  5527. :
  5528. else
  5529. echo "$as_me: program exited with status $ac_status" >&5
  5530. echo "$as_me: failed program was:" >&5
  5531. sed 's/^/| /' conftest.$ac_ext >&5
  5532. ( exit $ac_status )
  5533. no_libgnutls=yes
  5534. fi
  5535. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5536. fi
  5537. CFLAGS="$ac_save_CFLAGS"
  5538. LIBS="$ac_save_LIBS"
  5539. fi
  5540. if test "x$no_libgnutls" = x ; then
  5541. { echo "$as_me:$LINENO: result: yes" >&5
  5542. echo "${ECHO_T}yes" >&6; }
  5543. have_libgnutls=yes
  5544. else
  5545. if test -f conf.libgnutlstest ; then
  5546. :
  5547. else
  5548. { echo "$as_me:$LINENO: result: no" >&5
  5549. echo "${ECHO_T}no" >&6; }
  5550. fi
  5551. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5552. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5553. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5554. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5555. echo "*** full path to libgnutls-config."
  5556. else
  5557. if test -f conf.libgnutlstest ; then
  5558. :
  5559. else
  5560. echo "*** Could not run libgnutls test program, checking why..."
  5561. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5562. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5563. cat >conftest.$ac_ext <<_ACEOF
  5564. /* confdefs.h. */
  5565. _ACEOF
  5566. cat confdefs.h >>conftest.$ac_ext
  5567. cat >>conftest.$ac_ext <<_ACEOF
  5568. /* end confdefs.h. */
  5569. #include <stdio.h>
  5570. #include <stdlib.h>
  5571. #include <string.h>
  5572. #include <gnutls/gnutls.h>
  5573. int
  5574. main ()
  5575. {
  5576. return !!gnutls_check_version(NULL);
  5577. ;
  5578. return 0;
  5579. }
  5580. _ACEOF
  5581. rm -f conftest.$ac_objext conftest$ac_exeext
  5582. if { (ac_try="$ac_link"
  5583. case "(($ac_try" in
  5584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5585. *) ac_try_echo=$ac_try;;
  5586. esac
  5587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5588. (eval "$ac_link") 2>conftest.er1
  5589. ac_status=$?
  5590. grep -v '^ *+' conftest.er1 >conftest.err
  5591. rm -f conftest.er1
  5592. cat conftest.err >&5
  5593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5594. (exit $ac_status); } && {
  5595. test -z "$ac_cxx_werror_flag" ||
  5596. test ! -s conftest.err
  5597. } && test -s conftest$ac_exeext &&
  5598. $as_test_x conftest$ac_exeext; then
  5599. echo "*** The test program compiled, but did not run. This usually means"
  5600. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5601. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5602. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5603. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5604. echo "*** is required on your system"
  5605. echo "***"
  5606. echo "*** If you have an old version installed, it is best to remove it, although"
  5607. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5608. echo "***"
  5609. else
  5610. echo "$as_me: failed program was:" >&5
  5611. sed 's/^/| /' conftest.$ac_ext >&5
  5612. echo "*** The test program failed to compile or link. See the file config.log for the"
  5613. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5614. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5615. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5616. fi
  5617. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5618. conftest$ac_exeext conftest.$ac_ext
  5619. CFLAGS="$ac_save_CFLAGS"
  5620. LIBS="$ac_save_LIBS"
  5621. fi
  5622. fi
  5623. LIBGNUTLS_CFLAGS=""
  5624. LIBGNUTLS_LIBS=""
  5625. :
  5626. fi
  5627. rm -f conf.libgnutlstest
  5628. if test "x$have_libgnutls" = "xyes"; then
  5629. cat >>confdefs.h <<\_ACEOF
  5630. #define HAVE_LIBGNUTLS 1
  5631. _ACEOF
  5632. fi
  5633. fi
  5634. if test "x$have_libgnutls" = "xyes"; then
  5635. # Check whether --with-libgcrypt-prefix was given.
  5636. if test "${with_libgcrypt_prefix+set}" = set; then
  5637. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5638. else
  5639. libgcrypt_config_prefix=""
  5640. fi
  5641. if test x$libgcrypt_config_prefix != x ; then
  5642. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5643. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5644. fi
  5645. fi
  5646. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5647. set dummy libgcrypt-config; ac_word=$2
  5648. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5649. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5650. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5651. echo $ECHO_N "(cached) $ECHO_C" >&6
  5652. else
  5653. case $LIBGCRYPT_CONFIG in
  5654. [\\/]* | ?:[\\/]*)
  5655. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5656. ;;
  5657. *)
  5658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5659. for as_dir in $PATH
  5660. do
  5661. IFS=$as_save_IFS
  5662. test -z "$as_dir" && as_dir=.
  5663. for ac_exec_ext in '' $ac_executable_extensions; do
  5664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5665. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5666. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5667. break 2
  5668. fi
  5669. done
  5670. done
  5671. IFS=$as_save_IFS
  5672. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5673. ;;
  5674. esac
  5675. fi
  5676. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5677. if test -n "$LIBGCRYPT_CONFIG"; then
  5678. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5679. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5680. else
  5681. { echo "$as_me:$LINENO: result: no" >&5
  5682. echo "${ECHO_T}no" >&6; }
  5683. fi
  5684. tmp=1.2.2
  5685. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5686. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5687. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5688. else
  5689. req_libgcrypt_api=0
  5690. min_libgcrypt_version="$tmp"
  5691. fi
  5692. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5693. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5694. ok=no
  5695. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5696. req_major=`echo $min_libgcrypt_version | \
  5697. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5698. req_minor=`echo $min_libgcrypt_version | \
  5699. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5700. req_micro=`echo $min_libgcrypt_version | \
  5701. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5702. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5703. major=`echo $libgcrypt_config_version | \
  5704. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5705. minor=`echo $libgcrypt_config_version | \
  5706. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5707. micro=`echo $libgcrypt_config_version | \
  5708. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5709. if test "$major" -gt "$req_major"; then
  5710. ok=yes
  5711. else
  5712. if test "$major" -eq "$req_major"; then
  5713. if test "$minor" -gt "$req_minor"; then
  5714. ok=yes
  5715. else
  5716. if test "$minor" -eq "$req_minor"; then
  5717. if test "$micro" -ge "$req_micro"; then
  5718. ok=yes
  5719. fi
  5720. fi
  5721. fi
  5722. fi
  5723. fi
  5724. fi
  5725. if test $ok = yes; then
  5726. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5727. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5728. else
  5729. { echo "$as_me:$LINENO: result: no" >&5
  5730. echo "${ECHO_T}no" >&6; }
  5731. fi
  5732. if test $ok = yes; then
  5733. # If we have a recent libgcrypt, we should also check that the
  5734. # API is compatible
  5735. if test "$req_libgcrypt_api" -gt 0 ; then
  5736. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5737. if test "$tmp" -gt 0 ; then
  5738. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5739. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5740. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5741. { echo "$as_me:$LINENO: result: okay" >&5
  5742. echo "${ECHO_T}okay" >&6; }
  5743. else
  5744. ok=no
  5745. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5746. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5747. fi
  5748. fi
  5749. fi
  5750. fi
  5751. if test $ok = yes; then
  5752. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5753. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5754. have_libgcrypt=yes
  5755. else
  5756. LIBGCRYPT_CFLAGS=""
  5757. LIBGCRYPT_LIBS=""
  5758. :
  5759. fi
  5760. if test "x$have_libgcrypt" = "xyes"; then
  5761. cat >>confdefs.h <<\_ACEOF
  5762. #define HAVE_LIBGCRYPT 1
  5763. _ACEOF
  5764. fi
  5765. fi
  5766. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5767. # Check whether --with-openssl-prefix was given.
  5768. if test "${with_openssl_prefix+set}" = set; then
  5769. withval=$with_openssl_prefix; openssl_prefix=$withval
  5770. else
  5771. openssl_prefix=""
  5772. fi
  5773. if test "x$openssl_prefix" = "x"; then
  5774. openssl_prefix="/usr/local"
  5775. fi
  5776. LIBS_save=$LIBS
  5777. CPPFLAGS_save=$CPPFLAGS
  5778. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  5779. if test -x $PKG_CONFIG; then
  5780. { echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  5781. echo $ECHO_N "checking checking availability of openssl using pkg-config... $ECHO_C" >&6; }
  5782. $PKG_CONFIG --exists openssl
  5783. if test "$?" = "0"; then
  5784. # Use pkg-config to detect LIBS and CFLAGS
  5785. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  5786. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5787. LIBS="$OPENSSL_LIBS $LIBS"
  5788. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  5789. have_openssl=yes
  5790. { echo "$as_me:$LINENO: result: yes" >&5
  5791. echo "${ECHO_T}yes" >&6; }
  5792. else
  5793. { echo "$as_me:$LINENO: result: no" >&5
  5794. echo "${ECHO_T}no" >&6; }
  5795. fi
  5796. fi
  5797. if test "x$have_openssl" != "xyes"; then
  5798. openssl_prefix_lib=$openssl_prefix/lib
  5799. openssl_prefix_include=$openssl_prefix/include
  5800. LIBS="-L$openssl_prefix_lib $LIBS"
  5801. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5802. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5803. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5804. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5805. echo $ECHO_N "(cached) $ECHO_C" >&6
  5806. else
  5807. ac_check_lib_save_LIBS=$LIBS
  5808. LIBS="-lssl $LIBS"
  5809. cat >conftest.$ac_ext <<_ACEOF
  5810. /* confdefs.h. */
  5811. _ACEOF
  5812. cat confdefs.h >>conftest.$ac_ext
  5813. cat >>conftest.$ac_ext <<_ACEOF
  5814. /* end confdefs.h. */
  5815. /* Override any GCC internal prototype to avoid an error.
  5816. Use char because int might match the return type of a GCC
  5817. builtin and then its argument prototype would still apply. */
  5818. #ifdef __cplusplus
  5819. extern "C"
  5820. #endif
  5821. char SSL_library_init ();
  5822. int
  5823. main ()
  5824. {
  5825. return SSL_library_init ();
  5826. ;
  5827. return 0;
  5828. }
  5829. _ACEOF
  5830. rm -f conftest.$ac_objext conftest$ac_exeext
  5831. if { (ac_try="$ac_link"
  5832. case "(($ac_try" in
  5833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5834. *) ac_try_echo=$ac_try;;
  5835. esac
  5836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5837. (eval "$ac_link") 2>conftest.er1
  5838. ac_status=$?
  5839. grep -v '^ *+' conftest.er1 >conftest.err
  5840. rm -f conftest.er1
  5841. cat conftest.err >&5
  5842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5843. (exit $ac_status); } && {
  5844. test -z "$ac_cxx_werror_flag" ||
  5845. test ! -s conftest.err
  5846. } && test -s conftest$ac_exeext &&
  5847. $as_test_x conftest$ac_exeext; then
  5848. ac_cv_lib_ssl_SSL_library_init=yes
  5849. else
  5850. echo "$as_me: failed program was:" >&5
  5851. sed 's/^/| /' conftest.$ac_ext >&5
  5852. ac_cv_lib_ssl_SSL_library_init=no
  5853. fi
  5854. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5855. conftest$ac_exeext conftest.$ac_ext
  5856. LIBS=$ac_check_lib_save_LIBS
  5857. fi
  5858. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5859. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5860. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5861. have_openssl=yes LIBS="-lssl $LIBS"
  5862. fi
  5863. if test "x$have_openssl" = "xyes"; then
  5864. have_openssl=no
  5865. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5866. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5867. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5868. echo $ECHO_N "(cached) $ECHO_C" >&6
  5869. else
  5870. ac_check_lib_save_LIBS=$LIBS
  5871. LIBS="-lcrypto $LIBS"
  5872. cat >conftest.$ac_ext <<_ACEOF
  5873. /* confdefs.h. */
  5874. _ACEOF
  5875. cat confdefs.h >>conftest.$ac_ext
  5876. cat >>conftest.$ac_ext <<_ACEOF
  5877. /* end confdefs.h. */
  5878. int
  5879. main ()
  5880. {
  5881. return main ();
  5882. ;
  5883. return 0;
  5884. }
  5885. _ACEOF
  5886. rm -f conftest.$ac_objext conftest$ac_exeext
  5887. if { (ac_try="$ac_link"
  5888. case "(($ac_try" in
  5889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5890. *) ac_try_echo=$ac_try;;
  5891. esac
  5892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5893. (eval "$ac_link") 2>conftest.er1
  5894. ac_status=$?
  5895. grep -v '^ *+' conftest.er1 >conftest.err
  5896. rm -f conftest.er1
  5897. cat conftest.err >&5
  5898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5899. (exit $ac_status); } && {
  5900. test -z "$ac_cxx_werror_flag" ||
  5901. test ! -s conftest.err
  5902. } && test -s conftest$ac_exeext &&
  5903. $as_test_x conftest$ac_exeext; then
  5904. ac_cv_lib_crypto_main=yes
  5905. else
  5906. echo "$as_me: failed program was:" >&5
  5907. sed 's/^/| /' conftest.$ac_ext >&5
  5908. ac_cv_lib_crypto_main=no
  5909. fi
  5910. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5911. conftest$ac_exeext conftest.$ac_ext
  5912. LIBS=$ac_check_lib_save_LIBS
  5913. fi
  5914. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5915. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5916. if test $ac_cv_lib_crypto_main = yes; then
  5917. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5918. fi
  5919. if test "x$have_openssl" = "xyes"; then
  5920. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5921. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5922. fi
  5923. fi
  5924. fi
  5925. if test "x$have_openssl" = "xyes"; then
  5926. cat >>confdefs.h <<\_ACEOF
  5927. #define HAVE_LIBSSL 1
  5928. _ACEOF
  5929. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  5930. for ac_func in EVP_DigestInit_ex
  5931. do
  5932. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5933. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5934. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5935. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5936. echo $ECHO_N "(cached) $ECHO_C" >&6
  5937. else
  5938. cat >conftest.$ac_ext <<_ACEOF
  5939. /* confdefs.h. */
  5940. _ACEOF
  5941. cat confdefs.h >>conftest.$ac_ext
  5942. cat >>conftest.$ac_ext <<_ACEOF
  5943. /* end confdefs.h. */
  5944. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5945. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5946. #define $ac_func innocuous_$ac_func
  5947. /* System header to define __stub macros and hopefully few prototypes,
  5948. which can conflict with char $ac_func (); below.
  5949. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5950. <limits.h> exists even on freestanding compilers. */
  5951. #ifdef __STDC__
  5952. # include <limits.h>
  5953. #else
  5954. # include <assert.h>
  5955. #endif
  5956. #undef $ac_func
  5957. /* Override any GCC internal prototype to avoid an error.
  5958. Use char because int might match the return type of a GCC
  5959. builtin and then its argument prototype would still apply. */
  5960. #ifdef __cplusplus
  5961. extern "C"
  5962. #endif
  5963. char $ac_func ();
  5964. /* The GNU C library defines this for functions which it implements
  5965. to always fail with ENOSYS. Some functions are actually named
  5966. something starting with __ and the normal name is an alias. */
  5967. #if defined __stub_$ac_func || defined __stub___$ac_func
  5968. choke me
  5969. #endif
  5970. int
  5971. main ()
  5972. {
  5973. return $ac_func ();
  5974. ;
  5975. return 0;
  5976. }
  5977. _ACEOF
  5978. rm -f conftest.$ac_objext conftest$ac_exeext
  5979. if { (ac_try="$ac_link"
  5980. case "(($ac_try" in
  5981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5982. *) ac_try_echo=$ac_try;;
  5983. esac
  5984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5985. (eval "$ac_link") 2>conftest.er1
  5986. ac_status=$?
  5987. grep -v '^ *+' conftest.er1 >conftest.err
  5988. rm -f conftest.er1
  5989. cat conftest.err >&5
  5990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5991. (exit $ac_status); } && {
  5992. test -z "$ac_cxx_werror_flag" ||
  5993. test ! -s conftest.err
  5994. } && test -s conftest$ac_exeext &&
  5995. $as_test_x conftest$ac_exeext; then
  5996. eval "$as_ac_var=yes"
  5997. else
  5998. echo "$as_me: failed program was:" >&5
  5999. sed 's/^/| /' conftest.$ac_ext >&5
  6000. eval "$as_ac_var=no"
  6001. fi
  6002. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6003. conftest$ac_exeext conftest.$ac_ext
  6004. fi
  6005. ac_res=`eval echo '${'$as_ac_var'}'`
  6006. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6007. echo "${ECHO_T}$ac_res" >&6; }
  6008. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6009. cat >>confdefs.h <<_ACEOF
  6010. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6011. _ACEOF
  6012. have_digestinit_ex=yes
  6013. fi
  6014. done
  6015. if test "x$have_digestinit_ex" = "x"; then
  6016. cat >>confdefs.h <<\_ACEOF
  6017. #define HAVE_OLD_LIBSSL 1
  6018. _ACEOF
  6019. fi
  6020. # search for sha256 support
  6021. for ac_func in EVP_sha256
  6022. do
  6023. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6024. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6025. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6026. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6027. echo $ECHO_N "(cached) $ECHO_C" >&6
  6028. else
  6029. cat >conftest.$ac_ext <<_ACEOF
  6030. /* confdefs.h. */
  6031. _ACEOF
  6032. cat confdefs.h >>conftest.$ac_ext
  6033. cat >>conftest.$ac_ext <<_ACEOF
  6034. /* end confdefs.h. */
  6035. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6036. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6037. #define $ac_func innocuous_$ac_func
  6038. /* System header to define __stub macros and hopefully few prototypes,
  6039. which can conflict with char $ac_func (); below.
  6040. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6041. <limits.h> exists even on freestanding compilers. */
  6042. #ifdef __STDC__
  6043. # include <limits.h>
  6044. #else
  6045. # include <assert.h>
  6046. #endif
  6047. #undef $ac_func
  6048. /* Override any GCC internal prototype to avoid an error.
  6049. Use char because int might match the return type of a GCC
  6050. builtin and then its argument prototype would still apply. */
  6051. #ifdef __cplusplus
  6052. extern "C"
  6053. #endif
  6054. char $ac_func ();
  6055. /* The GNU C library defines this for functions which it implements
  6056. to always fail with ENOSYS. Some functions are actually named
  6057. something starting with __ and the normal name is an alias. */
  6058. #if defined __stub_$ac_func || defined __stub___$ac_func
  6059. choke me
  6060. #endif
  6061. int
  6062. main ()
  6063. {
  6064. return $ac_func ();
  6065. ;
  6066. return 0;
  6067. }
  6068. _ACEOF
  6069. rm -f conftest.$ac_objext conftest$ac_exeext
  6070. if { (ac_try="$ac_link"
  6071. case "(($ac_try" in
  6072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6073. *) ac_try_echo=$ac_try;;
  6074. esac
  6075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6076. (eval "$ac_link") 2>conftest.er1
  6077. ac_status=$?
  6078. grep -v '^ *+' conftest.er1 >conftest.err
  6079. rm -f conftest.er1
  6080. cat conftest.err >&5
  6081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6082. (exit $ac_status); } && {
  6083. test -z "$ac_cxx_werror_flag" ||
  6084. test ! -s conftest.err
  6085. } && test -s conftest$ac_exeext &&
  6086. $as_test_x conftest$ac_exeext; then
  6087. eval "$as_ac_var=yes"
  6088. else
  6089. echo "$as_me: failed program was:" >&5
  6090. sed 's/^/| /' conftest.$ac_ext >&5
  6091. eval "$as_ac_var=no"
  6092. fi
  6093. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6094. conftest$ac_exeext conftest.$ac_ext
  6095. fi
  6096. ac_res=`eval echo '${'$as_ac_var'}'`
  6097. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6098. echo "${ECHO_T}$ac_res" >&6; }
  6099. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6100. cat >>confdefs.h <<_ACEOF
  6101. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6102. _ACEOF
  6103. fi
  6104. done
  6105. fi
  6106. LIBS=$LIBS_save
  6107. CPPFLAGS=$CPPFLAGS_save
  6108. fi
  6109. if test "x$with_libcares" = "xyes"; then
  6110. # Check whether --with-libcares-prefix was given.
  6111. if test "${with_libcares_prefix+set}" = set; then
  6112. withval=$with_libcares_prefix; libcares_prefix=$withval
  6113. else
  6114. libcares_prefix=""
  6115. fi
  6116. if test "x$libcares_prefix" = "x"; then
  6117. libcares_prefix="/usr"
  6118. fi
  6119. libcares_prefix_lib=$libcares_prefix/lib
  6120. libcares_prefix_include=$libcares_prefix/include
  6121. LIBS_save=$LIBS
  6122. CPPFLAGS_save=$CPPFLAGS
  6123. LIBS="-L$libcares_prefix_lib $LIBS"
  6124. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6125. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6126. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6127. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6128. echo $ECHO_N "(cached) $ECHO_C" >&6
  6129. else
  6130. ac_check_lib_save_LIBS=$LIBS
  6131. LIBS="-lcares $LIBS"
  6132. cat >conftest.$ac_ext <<_ACEOF
  6133. /* confdefs.h. */
  6134. _ACEOF
  6135. cat confdefs.h >>conftest.$ac_ext
  6136. cat >>conftest.$ac_ext <<_ACEOF
  6137. /* end confdefs.h. */
  6138. /* Override any GCC internal prototype to avoid an error.
  6139. Use char because int might match the return type of a GCC
  6140. builtin and then its argument prototype would still apply. */
  6141. #ifdef __cplusplus
  6142. extern "C"
  6143. #endif
  6144. char ares_init ();
  6145. int
  6146. main ()
  6147. {
  6148. return ares_init ();
  6149. ;
  6150. return 0;
  6151. }
  6152. _ACEOF
  6153. rm -f conftest.$ac_objext conftest$ac_exeext
  6154. if { (ac_try="$ac_link"
  6155. case "(($ac_try" in
  6156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6157. *) ac_try_echo=$ac_try;;
  6158. esac
  6159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6160. (eval "$ac_link") 2>conftest.er1
  6161. ac_status=$?
  6162. grep -v '^ *+' conftest.er1 >conftest.err
  6163. rm -f conftest.er1
  6164. cat conftest.err >&5
  6165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6166. (exit $ac_status); } && {
  6167. test -z "$ac_cxx_werror_flag" ||
  6168. test ! -s conftest.err
  6169. } && test -s conftest$ac_exeext &&
  6170. $as_test_x conftest$ac_exeext; then
  6171. ac_cv_lib_cares_ares_init=yes
  6172. else
  6173. echo "$as_me: failed program was:" >&5
  6174. sed 's/^/| /' conftest.$ac_ext >&5
  6175. ac_cv_lib_cares_ares_init=no
  6176. fi
  6177. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6178. conftest$ac_exeext conftest.$ac_ext
  6179. LIBS=$ac_check_lib_save_LIBS
  6180. fi
  6181. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6182. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6183. if test $ac_cv_lib_cares_ares_init = yes; then
  6184. have_libcares=yes
  6185. fi
  6186. if test "x$have_libcares" != "xyes"; then
  6187. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6188. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6189. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6190. echo $ECHO_N "(cached) $ECHO_C" >&6
  6191. else
  6192. ac_check_lib_save_LIBS=$LIBS
  6193. LIBS="-lcares -lrt $LIBS"
  6194. cat >conftest.$ac_ext <<_ACEOF
  6195. /* confdefs.h. */
  6196. _ACEOF
  6197. cat confdefs.h >>conftest.$ac_ext
  6198. cat >>conftest.$ac_ext <<_ACEOF
  6199. /* end confdefs.h. */
  6200. /* Override any GCC internal prototype to avoid an error.
  6201. Use char because int might match the return type of a GCC
  6202. builtin and then its argument prototype would still apply. */
  6203. #ifdef __cplusplus
  6204. extern "C"
  6205. #endif
  6206. char ares_init ();
  6207. int
  6208. main ()
  6209. {
  6210. return ares_init ();
  6211. ;
  6212. return 0;
  6213. }
  6214. _ACEOF
  6215. rm -f conftest.$ac_objext conftest$ac_exeext
  6216. if { (ac_try="$ac_link"
  6217. case "(($ac_try" in
  6218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6219. *) ac_try_echo=$ac_try;;
  6220. esac
  6221. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6222. (eval "$ac_link") 2>conftest.er1
  6223. ac_status=$?
  6224. grep -v '^ *+' conftest.er1 >conftest.err
  6225. rm -f conftest.er1
  6226. cat conftest.err >&5
  6227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6228. (exit $ac_status); } && {
  6229. test -z "$ac_cxx_werror_flag" ||
  6230. test ! -s conftest.err
  6231. } && test -s conftest$ac_exeext &&
  6232. $as_test_x conftest$ac_exeext; then
  6233. ac_cv_lib_cares_ares_init=yes
  6234. else
  6235. echo "$as_me: failed program was:" >&5
  6236. sed 's/^/| /' conftest.$ac_ext >&5
  6237. ac_cv_lib_cares_ares_init=no
  6238. fi
  6239. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6240. conftest$ac_exeext conftest.$ac_ext
  6241. LIBS=$ac_check_lib_save_LIBS
  6242. fi
  6243. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6244. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6245. if test $ac_cv_lib_cares_ares_init = yes; then
  6246. have_libcares=yes need_librt=yes
  6247. fi
  6248. fi
  6249. if test "x$have_libcares" = "xyes"; then
  6250. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6251. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6252. cat >conftest.$ac_ext <<_ACEOF
  6253. /* confdefs.h. */
  6254. _ACEOF
  6255. cat confdefs.h >>conftest.$ac_ext
  6256. cat >>conftest.$ac_ext <<_ACEOF
  6257. /* end confdefs.h. */
  6258. #include <ares.h>
  6259. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6260. int
  6261. main ()
  6262. {
  6263. ares_channel channel;
  6264. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6265. ;
  6266. return 0;
  6267. }
  6268. _ACEOF
  6269. rm -f conftest.$ac_objext
  6270. if { (ac_try="$ac_compile"
  6271. case "(($ac_try" in
  6272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6273. *) ac_try_echo=$ac_try;;
  6274. esac
  6275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6276. (eval "$ac_compile") 2>conftest.er1
  6277. ac_status=$?
  6278. grep -v '^ *+' conftest.er1 >conftest.err
  6279. rm -f conftest.er1
  6280. cat conftest.err >&5
  6281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6282. (exit $ac_status); } && {
  6283. test -z "$ac_cxx_werror_flag" ||
  6284. test ! -s conftest.err
  6285. } && test -s conftest.$ac_objext; then
  6286. have_libcares1_5=yes
  6287. else
  6288. echo "$as_me: failed program was:" >&5
  6289. sed 's/^/| /' conftest.$ac_ext >&5
  6290. have_libcares1_5=no
  6291. fi
  6292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6293. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6294. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6295. if test "x$have_libcares1_5" = "xyes"; then
  6296. cat >>confdefs.h <<\_ACEOF
  6297. #define HAVE_LIBCARES1_5 1
  6298. _ACEOF
  6299. fi
  6300. cat >>confdefs.h <<\_ACEOF
  6301. #define HAVE_LIBCARES 1
  6302. _ACEOF
  6303. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6304. if test "x$need_librt" = "xyes"; then
  6305. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6306. fi
  6307. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6308. fi
  6309. LIBS=$LIBS_save
  6310. CPPFLAGS=$CPPFLAGS_save
  6311. fi
  6312. if test "x$have_libcares" = "x"; then
  6313. if test "x$with_libares" = "xyes"; then
  6314. # Check whether --with-libares-prefix was given.
  6315. if test "${with_libares_prefix+set}" = set; then
  6316. withval=$with_libares_prefix; libares_prefix=$withval
  6317. else
  6318. libares_prefix=""
  6319. fi
  6320. if test "x$libares_prefix" = "x"; then
  6321. libares_prefix="/usr"
  6322. fi
  6323. libares_prefix_lib=$libares_prefix/lib
  6324. libares_prefix_include=$libares_prefix/include
  6325. LIBS_save=$LIBS
  6326. CPPFLAGS_save=$CPPFLAGS
  6327. LIBS="-L$libares_prefix_lib $LIBS"
  6328. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6329. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6330. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6331. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6332. echo $ECHO_N "(cached) $ECHO_C" >&6
  6333. else
  6334. ac_check_lib_save_LIBS=$LIBS
  6335. LIBS="-lares $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 ares_init ();
  6349. int
  6350. main ()
  6351. {
  6352. return ares_init ();
  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_ares_ares_init=yes
  6376. else
  6377. echo "$as_me: failed program was:" >&5
  6378. sed 's/^/| /' conftest.$ac_ext >&5
  6379. ac_cv_lib_ares_ares_init=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_ares_ares_init" >&5
  6386. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6387. if test $ac_cv_lib_ares_ares_init = yes; then
  6388. have_libares=yes
  6389. fi
  6390. if test "x$have_libares" = "xyes"; then
  6391. cat >>confdefs.h <<\_ACEOF
  6392. #define HAVE_LIBARES 1
  6393. _ACEOF
  6394. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6395. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6396. fi
  6397. LIBS=$LIBS_save
  6398. CPPFLAGS=$CPPFLAGS_save
  6399. fi
  6400. fi
  6401. # Check availability of libz
  6402. if test "x$with_libz" = "xyes"; then
  6403. # Check whether --with-libz-prefix was given.
  6404. if test "${with_libz_prefix+set}" = set; then
  6405. withval=$with_libz_prefix; libz_prefix=$withval
  6406. else
  6407. libz_prefix=""
  6408. fi
  6409. if test "x$libz_prefix" = "x"; then
  6410. libz_prefix="/usr"
  6411. fi
  6412. libz_prefix_lib=$libz_prefix/lib
  6413. libz_prefix_include=$libz_prefix/include
  6414. LIBS_save=$LIBS
  6415. CPPFLAGS_save=$CPPFLAGS
  6416. LIBS="-L$libz_prefix_lib $LIBS"
  6417. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6418. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6419. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6420. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6421. echo $ECHO_N "(cached) $ECHO_C" >&6
  6422. else
  6423. ac_check_lib_save_LIBS=$LIBS
  6424. LIBS="-lz $LIBS"
  6425. cat >conftest.$ac_ext <<_ACEOF
  6426. /* confdefs.h. */
  6427. _ACEOF
  6428. cat confdefs.h >>conftest.$ac_ext
  6429. cat >>conftest.$ac_ext <<_ACEOF
  6430. /* end confdefs.h. */
  6431. /* Override any GCC internal prototype to avoid an error.
  6432. Use char because int might match the return type of a GCC
  6433. builtin and then its argument prototype would still apply. */
  6434. #ifdef __cplusplus
  6435. extern "C"
  6436. #endif
  6437. char zlibVersion ();
  6438. int
  6439. main ()
  6440. {
  6441. return zlibVersion ();
  6442. ;
  6443. return 0;
  6444. }
  6445. _ACEOF
  6446. rm -f conftest.$ac_objext conftest$ac_exeext
  6447. if { (ac_try="$ac_link"
  6448. case "(($ac_try" in
  6449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6450. *) ac_try_echo=$ac_try;;
  6451. esac
  6452. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6453. (eval "$ac_link") 2>conftest.er1
  6454. ac_status=$?
  6455. grep -v '^ *+' conftest.er1 >conftest.err
  6456. rm -f conftest.er1
  6457. cat conftest.err >&5
  6458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6459. (exit $ac_status); } && {
  6460. test -z "$ac_cxx_werror_flag" ||
  6461. test ! -s conftest.err
  6462. } && test -s conftest$ac_exeext &&
  6463. $as_test_x conftest$ac_exeext; then
  6464. ac_cv_lib_z_zlibVersion=yes
  6465. else
  6466. echo "$as_me: failed program was:" >&5
  6467. sed 's/^/| /' conftest.$ac_ext >&5
  6468. ac_cv_lib_z_zlibVersion=no
  6469. fi
  6470. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6471. conftest$ac_exeext conftest.$ac_ext
  6472. LIBS=$ac_check_lib_save_LIBS
  6473. fi
  6474. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6475. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6476. if test $ac_cv_lib_z_zlibVersion = yes; then
  6477. have_libz=yes
  6478. fi
  6479. if test "x$have_libz" = "xyes"; then
  6480. cat >>confdefs.h <<\_ACEOF
  6481. #define HAVE_LIBZ 1
  6482. _ACEOF
  6483. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6484. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6485. fi
  6486. LIBS=$LIBS_save
  6487. CPPFLAGS=$CPPFLAGS_save
  6488. fi
  6489. # Define variables based on the result of the checks for libraries.
  6490. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6491. cat >>confdefs.h <<\_ACEOF
  6492. #define ENABLE_SSL 1
  6493. _ACEOF
  6494. fi
  6495. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6496. cat >>confdefs.h <<\_ACEOF
  6497. #define ENABLE_MESSAGE_DIGEST 1
  6498. _ACEOF
  6499. if true; then
  6500. ENABLE_MESSAGE_DIGEST_TRUE=
  6501. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6502. else
  6503. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6504. ENABLE_MESSAGE_DIGEST_FALSE=
  6505. fi
  6506. enable_message_digest=yes
  6507. else
  6508. if false; then
  6509. ENABLE_MESSAGE_DIGEST_TRUE=
  6510. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6511. else
  6512. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6513. ENABLE_MESSAGE_DIGEST_FALSE=
  6514. fi
  6515. fi
  6516. if test "x$enable_bittorrent" = "xyes" &&
  6517. test "x$enable_message_digest" = "xyes"; then
  6518. cat >>confdefs.h <<\_ACEOF
  6519. #define ENABLE_BITTORRENT 1
  6520. _ACEOF
  6521. if true; then
  6522. ENABLE_BITTORRENT_TRUE=
  6523. ENABLE_BITTORRENT_FALSE='#'
  6524. else
  6525. ENABLE_BITTORRENT_TRUE='#'
  6526. ENABLE_BITTORRENT_FALSE=
  6527. fi
  6528. else
  6529. enable_bittorrent=no
  6530. if false; then
  6531. ENABLE_BITTORRENT_TRUE=
  6532. ENABLE_BITTORRENT_FALSE='#'
  6533. else
  6534. ENABLE_BITTORRENT_TRUE='#'
  6535. ENABLE_BITTORRENT_FALSE=
  6536. fi
  6537. fi
  6538. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6539. test "x$enable_metalink" = "xyes"; then
  6540. cat >>confdefs.h <<\_ACEOF
  6541. #define ENABLE_METALINK 1
  6542. _ACEOF
  6543. if true; then
  6544. ENABLE_METALINK_TRUE=
  6545. ENABLE_METALINK_FALSE='#'
  6546. else
  6547. ENABLE_METALINK_TRUE='#'
  6548. ENABLE_METALINK_FALSE=
  6549. fi
  6550. else
  6551. enable_metalink=no
  6552. if false; then
  6553. ENABLE_METALINK_TRUE=
  6554. ENABLE_METALINK_FALSE='#'
  6555. else
  6556. ENABLE_METALINK_TRUE='#'
  6557. ENABLE_METALINK_FALSE=
  6558. fi
  6559. fi
  6560. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6561. ENABLE_LIBXML2_TRUE=
  6562. ENABLE_LIBXML2_FALSE='#'
  6563. else
  6564. ENABLE_LIBXML2_TRUE='#'
  6565. ENABLE_LIBXML2_FALSE=
  6566. fi
  6567. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6568. ENABLE_LIBEXPAT_TRUE=
  6569. ENABLE_LIBEXPAT_FALSE='#'
  6570. else
  6571. ENABLE_LIBEXPAT_TRUE='#'
  6572. ENABLE_LIBEXPAT_FALSE=
  6573. fi
  6574. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6575. cat >>confdefs.h <<\_ACEOF
  6576. #define ENABLE_ASYNC_DNS 1
  6577. _ACEOF
  6578. if true; then
  6579. ENABLE_ASYNC_DNS_TRUE=
  6580. ENABLE_ASYNC_DNS_FALSE='#'
  6581. else
  6582. ENABLE_ASYNC_DNS_TRUE='#'
  6583. ENABLE_ASYNC_DNS_FALSE=
  6584. fi
  6585. else
  6586. if false; then
  6587. ENABLE_ASYNC_DNS_TRUE=
  6588. ENABLE_ASYNC_DNS_FALSE='#'
  6589. else
  6590. ENABLE_ASYNC_DNS_TRUE='#'
  6591. ENABLE_ASYNC_DNS_FALSE=
  6592. fi
  6593. fi
  6594. # Set conditional for libz
  6595. if test "x$have_libz" = "xyes"; then
  6596. HAVE_LIBZ_TRUE=
  6597. HAVE_LIBZ_FALSE='#'
  6598. else
  6599. HAVE_LIBZ_TRUE='#'
  6600. HAVE_LIBZ_FALSE=
  6601. fi
  6602. # Set conditional for sqlite3
  6603. if test "x$have_sqlite3" = "xyes"; then
  6604. HAVE_SQLITE3_TRUE=
  6605. HAVE_SQLITE3_FALSE='#'
  6606. else
  6607. HAVE_SQLITE3_TRUE='#'
  6608. HAVE_SQLITE3_FALSE=
  6609. fi
  6610. # Checks for header files.
  6611. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6612. # for constant arguments. Useless!
  6613. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6614. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6615. if test "${ac_cv_working_alloca_h+set}" = set; then
  6616. echo $ECHO_N "(cached) $ECHO_C" >&6
  6617. else
  6618. cat >conftest.$ac_ext <<_ACEOF
  6619. /* confdefs.h. */
  6620. _ACEOF
  6621. cat confdefs.h >>conftest.$ac_ext
  6622. cat >>conftest.$ac_ext <<_ACEOF
  6623. /* end confdefs.h. */
  6624. #include <alloca.h>
  6625. int
  6626. main ()
  6627. {
  6628. char *p = (char *) alloca (2 * sizeof (int));
  6629. if (p) return 0;
  6630. ;
  6631. return 0;
  6632. }
  6633. _ACEOF
  6634. rm -f conftest.$ac_objext conftest$ac_exeext
  6635. if { (ac_try="$ac_link"
  6636. case "(($ac_try" in
  6637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6638. *) ac_try_echo=$ac_try;;
  6639. esac
  6640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6641. (eval "$ac_link") 2>conftest.er1
  6642. ac_status=$?
  6643. grep -v '^ *+' conftest.er1 >conftest.err
  6644. rm -f conftest.er1
  6645. cat conftest.err >&5
  6646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6647. (exit $ac_status); } && {
  6648. test -z "$ac_cxx_werror_flag" ||
  6649. test ! -s conftest.err
  6650. } && test -s conftest$ac_exeext &&
  6651. $as_test_x conftest$ac_exeext; then
  6652. ac_cv_working_alloca_h=yes
  6653. else
  6654. echo "$as_me: failed program was:" >&5
  6655. sed 's/^/| /' conftest.$ac_ext >&5
  6656. ac_cv_working_alloca_h=no
  6657. fi
  6658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6659. conftest$ac_exeext conftest.$ac_ext
  6660. fi
  6661. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6662. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6663. if test $ac_cv_working_alloca_h = yes; then
  6664. cat >>confdefs.h <<\_ACEOF
  6665. #define HAVE_ALLOCA_H 1
  6666. _ACEOF
  6667. fi
  6668. { echo "$as_me:$LINENO: checking for alloca" >&5
  6669. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6670. if test "${ac_cv_func_alloca_works+set}" = set; then
  6671. echo $ECHO_N "(cached) $ECHO_C" >&6
  6672. else
  6673. cat >conftest.$ac_ext <<_ACEOF
  6674. /* confdefs.h. */
  6675. _ACEOF
  6676. cat confdefs.h >>conftest.$ac_ext
  6677. cat >>conftest.$ac_ext <<_ACEOF
  6678. /* end confdefs.h. */
  6679. #ifdef __GNUC__
  6680. # define alloca __builtin_alloca
  6681. #else
  6682. # ifdef _MSC_VER
  6683. # include <malloc.h>
  6684. # define alloca _alloca
  6685. # else
  6686. # ifdef HAVE_ALLOCA_H
  6687. # include <alloca.h>
  6688. # else
  6689. # ifdef _AIX
  6690. #pragma alloca
  6691. # else
  6692. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6693. char *alloca ();
  6694. # endif
  6695. # endif
  6696. # endif
  6697. # endif
  6698. #endif
  6699. int
  6700. main ()
  6701. {
  6702. char *p = (char *) alloca (1);
  6703. if (p) return 0;
  6704. ;
  6705. return 0;
  6706. }
  6707. _ACEOF
  6708. rm -f conftest.$ac_objext conftest$ac_exeext
  6709. if { (ac_try="$ac_link"
  6710. case "(($ac_try" in
  6711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6712. *) ac_try_echo=$ac_try;;
  6713. esac
  6714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6715. (eval "$ac_link") 2>conftest.er1
  6716. ac_status=$?
  6717. grep -v '^ *+' conftest.er1 >conftest.err
  6718. rm -f conftest.er1
  6719. cat conftest.err >&5
  6720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721. (exit $ac_status); } && {
  6722. test -z "$ac_cxx_werror_flag" ||
  6723. test ! -s conftest.err
  6724. } && test -s conftest$ac_exeext &&
  6725. $as_test_x conftest$ac_exeext; then
  6726. ac_cv_func_alloca_works=yes
  6727. else
  6728. echo "$as_me: failed program was:" >&5
  6729. sed 's/^/| /' conftest.$ac_ext >&5
  6730. ac_cv_func_alloca_works=no
  6731. fi
  6732. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6733. conftest$ac_exeext conftest.$ac_ext
  6734. fi
  6735. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6736. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6737. if test $ac_cv_func_alloca_works = yes; then
  6738. cat >>confdefs.h <<\_ACEOF
  6739. #define HAVE_ALLOCA 1
  6740. _ACEOF
  6741. else
  6742. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6743. # that cause trouble. Some versions do not even contain alloca or
  6744. # contain a buggy version. If you still want to use their alloca,
  6745. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6746. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6747. cat >>confdefs.h <<\_ACEOF
  6748. #define C_ALLOCA 1
  6749. _ACEOF
  6750. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6751. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6752. if test "${ac_cv_os_cray+set}" = set; then
  6753. echo $ECHO_N "(cached) $ECHO_C" >&6
  6754. else
  6755. cat >conftest.$ac_ext <<_ACEOF
  6756. /* confdefs.h. */
  6757. _ACEOF
  6758. cat confdefs.h >>conftest.$ac_ext
  6759. cat >>conftest.$ac_ext <<_ACEOF
  6760. /* end confdefs.h. */
  6761. #if defined CRAY && ! defined CRAY2
  6762. webecray
  6763. #else
  6764. wenotbecray
  6765. #endif
  6766. _ACEOF
  6767. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6768. $EGREP "webecray" >/dev/null 2>&1; then
  6769. ac_cv_os_cray=yes
  6770. else
  6771. ac_cv_os_cray=no
  6772. fi
  6773. rm -f conftest*
  6774. fi
  6775. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6776. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6777. if test $ac_cv_os_cray = yes; then
  6778. for ac_func in _getb67 GETB67 getb67; do
  6779. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6780. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6781. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6782. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6783. echo $ECHO_N "(cached) $ECHO_C" >&6
  6784. else
  6785. cat >conftest.$ac_ext <<_ACEOF
  6786. /* confdefs.h. */
  6787. _ACEOF
  6788. cat confdefs.h >>conftest.$ac_ext
  6789. cat >>conftest.$ac_ext <<_ACEOF
  6790. /* end confdefs.h. */
  6791. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6792. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6793. #define $ac_func innocuous_$ac_func
  6794. /* System header to define __stub macros and hopefully few prototypes,
  6795. which can conflict with char $ac_func (); below.
  6796. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6797. <limits.h> exists even on freestanding compilers. */
  6798. #ifdef __STDC__
  6799. # include <limits.h>
  6800. #else
  6801. # include <assert.h>
  6802. #endif
  6803. #undef $ac_func
  6804. /* Override any GCC internal prototype to avoid an error.
  6805. Use char because int might match the return type of a GCC
  6806. builtin and then its argument prototype would still apply. */
  6807. #ifdef __cplusplus
  6808. extern "C"
  6809. #endif
  6810. char $ac_func ();
  6811. /* The GNU C library defines this for functions which it implements
  6812. to always fail with ENOSYS. Some functions are actually named
  6813. something starting with __ and the normal name is an alias. */
  6814. #if defined __stub_$ac_func || defined __stub___$ac_func
  6815. choke me
  6816. #endif
  6817. int
  6818. main ()
  6819. {
  6820. return $ac_func ();
  6821. ;
  6822. return 0;
  6823. }
  6824. _ACEOF
  6825. rm -f conftest.$ac_objext conftest$ac_exeext
  6826. if { (ac_try="$ac_link"
  6827. case "(($ac_try" in
  6828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6829. *) ac_try_echo=$ac_try;;
  6830. esac
  6831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6832. (eval "$ac_link") 2>conftest.er1
  6833. ac_status=$?
  6834. grep -v '^ *+' conftest.er1 >conftest.err
  6835. rm -f conftest.er1
  6836. cat conftest.err >&5
  6837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6838. (exit $ac_status); } && {
  6839. test -z "$ac_cxx_werror_flag" ||
  6840. test ! -s conftest.err
  6841. } && test -s conftest$ac_exeext &&
  6842. $as_test_x conftest$ac_exeext; then
  6843. eval "$as_ac_var=yes"
  6844. else
  6845. echo "$as_me: failed program was:" >&5
  6846. sed 's/^/| /' conftest.$ac_ext >&5
  6847. eval "$as_ac_var=no"
  6848. fi
  6849. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6850. conftest$ac_exeext conftest.$ac_ext
  6851. fi
  6852. ac_res=`eval echo '${'$as_ac_var'}'`
  6853. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6854. echo "${ECHO_T}$ac_res" >&6; }
  6855. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6856. cat >>confdefs.h <<_ACEOF
  6857. #define CRAY_STACKSEG_END $ac_func
  6858. _ACEOF
  6859. break
  6860. fi
  6861. done
  6862. fi
  6863. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6864. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6865. if test "${ac_cv_c_stack_direction+set}" = set; then
  6866. echo $ECHO_N "(cached) $ECHO_C" >&6
  6867. else
  6868. if test "$cross_compiling" = yes; then
  6869. ac_cv_c_stack_direction=0
  6870. else
  6871. cat >conftest.$ac_ext <<_ACEOF
  6872. /* confdefs.h. */
  6873. _ACEOF
  6874. cat confdefs.h >>conftest.$ac_ext
  6875. cat >>conftest.$ac_ext <<_ACEOF
  6876. /* end confdefs.h. */
  6877. $ac_includes_default
  6878. int
  6879. find_stack_direction ()
  6880. {
  6881. static char *addr = 0;
  6882. auto char dummy;
  6883. if (addr == 0)
  6884. {
  6885. addr = &dummy;
  6886. return find_stack_direction ();
  6887. }
  6888. else
  6889. return (&dummy > addr) ? 1 : -1;
  6890. }
  6891. int
  6892. main ()
  6893. {
  6894. return find_stack_direction () < 0;
  6895. }
  6896. _ACEOF
  6897. rm -f conftest$ac_exeext
  6898. if { (ac_try="$ac_link"
  6899. case "(($ac_try" in
  6900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6901. *) ac_try_echo=$ac_try;;
  6902. esac
  6903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6904. (eval "$ac_link") 2>&5
  6905. ac_status=$?
  6906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6907. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6908. { (case "(($ac_try" in
  6909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6910. *) ac_try_echo=$ac_try;;
  6911. esac
  6912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6913. (eval "$ac_try") 2>&5
  6914. ac_status=$?
  6915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6916. (exit $ac_status); }; }; then
  6917. ac_cv_c_stack_direction=1
  6918. else
  6919. echo "$as_me: program exited with status $ac_status" >&5
  6920. echo "$as_me: failed program was:" >&5
  6921. sed 's/^/| /' conftest.$ac_ext >&5
  6922. ( exit $ac_status )
  6923. ac_cv_c_stack_direction=-1
  6924. fi
  6925. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6926. fi
  6927. fi
  6928. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6929. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6930. cat >>confdefs.h <<_ACEOF
  6931. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6932. _ACEOF
  6933. fi
  6934. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6935. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6936. if test "${ac_cv_header_stdc+set}" = set; then
  6937. echo $ECHO_N "(cached) $ECHO_C" >&6
  6938. else
  6939. cat >conftest.$ac_ext <<_ACEOF
  6940. /* confdefs.h. */
  6941. _ACEOF
  6942. cat confdefs.h >>conftest.$ac_ext
  6943. cat >>conftest.$ac_ext <<_ACEOF
  6944. /* end confdefs.h. */
  6945. #include <stdlib.h>
  6946. #include <stdarg.h>
  6947. #include <string.h>
  6948. #include <float.h>
  6949. int
  6950. main ()
  6951. {
  6952. ;
  6953. return 0;
  6954. }
  6955. _ACEOF
  6956. rm -f conftest.$ac_objext
  6957. if { (ac_try="$ac_compile"
  6958. case "(($ac_try" in
  6959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6960. *) ac_try_echo=$ac_try;;
  6961. esac
  6962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6963. (eval "$ac_compile") 2>conftest.er1
  6964. ac_status=$?
  6965. grep -v '^ *+' conftest.er1 >conftest.err
  6966. rm -f conftest.er1
  6967. cat conftest.err >&5
  6968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6969. (exit $ac_status); } && {
  6970. test -z "$ac_cxx_werror_flag" ||
  6971. test ! -s conftest.err
  6972. } && test -s conftest.$ac_objext; then
  6973. ac_cv_header_stdc=yes
  6974. else
  6975. echo "$as_me: failed program was:" >&5
  6976. sed 's/^/| /' conftest.$ac_ext >&5
  6977. ac_cv_header_stdc=no
  6978. fi
  6979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6980. if test $ac_cv_header_stdc = yes; then
  6981. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6982. cat >conftest.$ac_ext <<_ACEOF
  6983. /* confdefs.h. */
  6984. _ACEOF
  6985. cat confdefs.h >>conftest.$ac_ext
  6986. cat >>conftest.$ac_ext <<_ACEOF
  6987. /* end confdefs.h. */
  6988. #include <string.h>
  6989. _ACEOF
  6990. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6991. $EGREP "memchr" >/dev/null 2>&1; then
  6992. :
  6993. else
  6994. ac_cv_header_stdc=no
  6995. fi
  6996. rm -f conftest*
  6997. fi
  6998. if test $ac_cv_header_stdc = yes; then
  6999. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7000. cat >conftest.$ac_ext <<_ACEOF
  7001. /* confdefs.h. */
  7002. _ACEOF
  7003. cat confdefs.h >>conftest.$ac_ext
  7004. cat >>conftest.$ac_ext <<_ACEOF
  7005. /* end confdefs.h. */
  7006. #include <stdlib.h>
  7007. _ACEOF
  7008. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7009. $EGREP "free" >/dev/null 2>&1; then
  7010. :
  7011. else
  7012. ac_cv_header_stdc=no
  7013. fi
  7014. rm -f conftest*
  7015. fi
  7016. if test $ac_cv_header_stdc = yes; then
  7017. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7018. if test "$cross_compiling" = yes; then
  7019. :
  7020. else
  7021. cat >conftest.$ac_ext <<_ACEOF
  7022. /* confdefs.h. */
  7023. _ACEOF
  7024. cat confdefs.h >>conftest.$ac_ext
  7025. cat >>conftest.$ac_ext <<_ACEOF
  7026. /* end confdefs.h. */
  7027. #include <ctype.h>
  7028. #include <stdlib.h>
  7029. #if ((' ' & 0x0FF) == 0x020)
  7030. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7031. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7032. #else
  7033. # define ISLOWER(c) \
  7034. (('a' <= (c) && (c) <= 'i') \
  7035. || ('j' <= (c) && (c) <= 'r') \
  7036. || ('s' <= (c) && (c) <= 'z'))
  7037. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7038. #endif
  7039. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7040. int
  7041. main ()
  7042. {
  7043. int i;
  7044. for (i = 0; i < 256; i++)
  7045. if (XOR (islower (i), ISLOWER (i))
  7046. || toupper (i) != TOUPPER (i))
  7047. return 2;
  7048. return 0;
  7049. }
  7050. _ACEOF
  7051. rm -f conftest$ac_exeext
  7052. if { (ac_try="$ac_link"
  7053. case "(($ac_try" in
  7054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7055. *) ac_try_echo=$ac_try;;
  7056. esac
  7057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7058. (eval "$ac_link") 2>&5
  7059. ac_status=$?
  7060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7061. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7062. { (case "(($ac_try" in
  7063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7064. *) ac_try_echo=$ac_try;;
  7065. esac
  7066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7067. (eval "$ac_try") 2>&5
  7068. ac_status=$?
  7069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7070. (exit $ac_status); }; }; then
  7071. :
  7072. else
  7073. echo "$as_me: program exited with status $ac_status" >&5
  7074. echo "$as_me: failed program was:" >&5
  7075. sed 's/^/| /' conftest.$ac_ext >&5
  7076. ( exit $ac_status )
  7077. ac_cv_header_stdc=no
  7078. fi
  7079. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7080. fi
  7081. fi
  7082. fi
  7083. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7084. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7085. if test $ac_cv_header_stdc = yes; then
  7086. cat >>confdefs.h <<\_ACEOF
  7087. #define STDC_HEADERS 1
  7088. _ACEOF
  7089. fi
  7090. for ac_header in winsock2.h \
  7091. ws2tcpip.h \
  7092. argz.h \
  7093. arpa/inet.h \
  7094. fcntl.h \
  7095. float.h \
  7096. inttypes.h \
  7097. io.h \
  7098. langinfo.h \
  7099. libintl.h \
  7100. limits.h \
  7101. locale.h \
  7102. malloc.h \
  7103. netdb.h \
  7104. netinet/in.h \
  7105. stddef.h \
  7106. stdint.h \
  7107. stdio_ext.h \
  7108. stdlib.h \
  7109. string.h \
  7110. strings.h \
  7111. sys/ioctl.h \
  7112. sys/param.h \
  7113. sys/socket.h \
  7114. sys/time.h \
  7115. termios.h \
  7116. unistd.h \
  7117. wchar.h
  7118. do
  7119. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7120. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7121. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7122. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7123. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7124. echo $ECHO_N "(cached) $ECHO_C" >&6
  7125. fi
  7126. ac_res=`eval echo '${'$as_ac_Header'}'`
  7127. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7128. echo "${ECHO_T}$ac_res" >&6; }
  7129. else
  7130. # Is the header compilable?
  7131. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7132. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7133. cat >conftest.$ac_ext <<_ACEOF
  7134. /* confdefs.h. */
  7135. _ACEOF
  7136. cat confdefs.h >>conftest.$ac_ext
  7137. cat >>conftest.$ac_ext <<_ACEOF
  7138. /* end confdefs.h. */
  7139. $ac_includes_default
  7140. #include <$ac_header>
  7141. _ACEOF
  7142. rm -f conftest.$ac_objext
  7143. if { (ac_try="$ac_compile"
  7144. case "(($ac_try" in
  7145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7146. *) ac_try_echo=$ac_try;;
  7147. esac
  7148. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7149. (eval "$ac_compile") 2>conftest.er1
  7150. ac_status=$?
  7151. grep -v '^ *+' conftest.er1 >conftest.err
  7152. rm -f conftest.er1
  7153. cat conftest.err >&5
  7154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7155. (exit $ac_status); } && {
  7156. test -z "$ac_cxx_werror_flag" ||
  7157. test ! -s conftest.err
  7158. } && test -s conftest.$ac_objext; then
  7159. ac_header_compiler=yes
  7160. else
  7161. echo "$as_me: failed program was:" >&5
  7162. sed 's/^/| /' conftest.$ac_ext >&5
  7163. ac_header_compiler=no
  7164. fi
  7165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7166. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7167. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7168. # Is the header present?
  7169. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7170. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7171. cat >conftest.$ac_ext <<_ACEOF
  7172. /* confdefs.h. */
  7173. _ACEOF
  7174. cat confdefs.h >>conftest.$ac_ext
  7175. cat >>conftest.$ac_ext <<_ACEOF
  7176. /* end confdefs.h. */
  7177. #include <$ac_header>
  7178. _ACEOF
  7179. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7180. case "(($ac_try" in
  7181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7182. *) ac_try_echo=$ac_try;;
  7183. esac
  7184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7185. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7186. ac_status=$?
  7187. grep -v '^ *+' conftest.er1 >conftest.err
  7188. rm -f conftest.er1
  7189. cat conftest.err >&5
  7190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7191. (exit $ac_status); } >/dev/null && {
  7192. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7193. test ! -s conftest.err
  7194. }; then
  7195. ac_header_preproc=yes
  7196. else
  7197. echo "$as_me: failed program was:" >&5
  7198. sed 's/^/| /' conftest.$ac_ext >&5
  7199. ac_header_preproc=no
  7200. fi
  7201. rm -f conftest.err conftest.$ac_ext
  7202. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7203. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7204. # So? What about this header?
  7205. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7206. yes:no: )
  7207. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7208. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7209. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7210. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7211. ac_header_preproc=yes
  7212. ;;
  7213. no:yes:* )
  7214. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7215. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7216. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7217. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7218. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7219. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7220. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7221. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7222. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7223. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7224. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7225. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7226. ( cat <<\_ASBOX
  7227. ## ----------------------------------------------- ##
  7228. ## Report this to t-tujikawa@users.sourceforge.net ##
  7229. ## ----------------------------------------------- ##
  7230. _ASBOX
  7231. ) | sed "s/^/$as_me: WARNING: /" >&2
  7232. ;;
  7233. esac
  7234. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7235. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7236. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7237. echo $ECHO_N "(cached) $ECHO_C" >&6
  7238. else
  7239. eval "$as_ac_Header=\$ac_header_preproc"
  7240. fi
  7241. ac_res=`eval echo '${'$as_ac_Header'}'`
  7242. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7243. echo "${ECHO_T}$ac_res" >&6; }
  7244. fi
  7245. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7246. cat >>confdefs.h <<_ACEOF
  7247. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7248. _ACEOF
  7249. fi
  7250. done
  7251. # Checks for typedefs, structures, and compiler characteristics.
  7252. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7253. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7254. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7255. echo $ECHO_N "(cached) $ECHO_C" >&6
  7256. else
  7257. cat >conftest.$ac_ext <<_ACEOF
  7258. /* confdefs.h. */
  7259. _ACEOF
  7260. cat confdefs.h >>conftest.$ac_ext
  7261. cat >>conftest.$ac_ext <<_ACEOF
  7262. /* end confdefs.h. */
  7263. #include <stdbool.h>
  7264. #ifndef bool
  7265. "error: bool is not defined"
  7266. #endif
  7267. #ifndef false
  7268. "error: false is not defined"
  7269. #endif
  7270. #if false
  7271. "error: false is not 0"
  7272. #endif
  7273. #ifndef true
  7274. "error: true is not defined"
  7275. #endif
  7276. #if true != 1
  7277. "error: true is not 1"
  7278. #endif
  7279. #ifndef __bool_true_false_are_defined
  7280. "error: __bool_true_false_are_defined is not defined"
  7281. #endif
  7282. struct s { _Bool s: 1; _Bool t; } s;
  7283. char a[true == 1 ? 1 : -1];
  7284. char b[false == 0 ? 1 : -1];
  7285. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7286. char d[(bool) 0.5 == true ? 1 : -1];
  7287. bool e = &s;
  7288. char f[(_Bool) 0.0 == false ? 1 : -1];
  7289. char g[true];
  7290. char h[sizeof (_Bool)];
  7291. char i[sizeof s.t];
  7292. enum { j = false, k = true, l = false * true, m = true * 256 };
  7293. _Bool n[m];
  7294. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7295. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7296. # if defined __xlc__ || defined __GNUC__
  7297. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7298. reported by James Lemley on 2005-10-05; see
  7299. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7300. This test is not quite right, since xlc is allowed to
  7301. reject this program, as the initializer for xlcbug is
  7302. not one of the forms that C requires support for.
  7303. However, doing the test right would require a runtime
  7304. test, and that would make cross-compilation harder.
  7305. Let us hope that IBM fixes the xlc bug, and also adds
  7306. support for this kind of constant expression. In the
  7307. meantime, this test will reject xlc, which is OK, since
  7308. our stdbool.h substitute should suffice. We also test
  7309. this with GCC, where it should work, to detect more
  7310. quickly whether someone messes up the test in the
  7311. future. */
  7312. char digs[] = "0123456789";
  7313. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7314. # endif
  7315. /* Catch a bug in an HP-UX C compiler. See
  7316. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7317. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7318. */
  7319. _Bool q = true;
  7320. _Bool *pq = &q;
  7321. int
  7322. main ()
  7323. {
  7324. *pq |= q;
  7325. *pq |= ! q;
  7326. /* Refer to every declared value, to avoid compiler optimizations. */
  7327. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7328. + !m + !n + !o + !p + !q + !pq);
  7329. ;
  7330. return 0;
  7331. }
  7332. _ACEOF
  7333. rm -f conftest.$ac_objext
  7334. if { (ac_try="$ac_compile"
  7335. case "(($ac_try" in
  7336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7337. *) ac_try_echo=$ac_try;;
  7338. esac
  7339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7340. (eval "$ac_compile") 2>conftest.er1
  7341. ac_status=$?
  7342. grep -v '^ *+' conftest.er1 >conftest.err
  7343. rm -f conftest.er1
  7344. cat conftest.err >&5
  7345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7346. (exit $ac_status); } && {
  7347. test -z "$ac_cxx_werror_flag" ||
  7348. test ! -s conftest.err
  7349. } && test -s conftest.$ac_objext; then
  7350. ac_cv_header_stdbool_h=yes
  7351. else
  7352. echo "$as_me: failed program was:" >&5
  7353. sed 's/^/| /' conftest.$ac_ext >&5
  7354. ac_cv_header_stdbool_h=no
  7355. fi
  7356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7357. fi
  7358. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7359. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7360. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7361. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7362. if test "${ac_cv_type__Bool+set}" = set; then
  7363. echo $ECHO_N "(cached) $ECHO_C" >&6
  7364. else
  7365. cat >conftest.$ac_ext <<_ACEOF
  7366. /* confdefs.h. */
  7367. _ACEOF
  7368. cat confdefs.h >>conftest.$ac_ext
  7369. cat >>conftest.$ac_ext <<_ACEOF
  7370. /* end confdefs.h. */
  7371. $ac_includes_default
  7372. typedef _Bool ac__type_new_;
  7373. int
  7374. main ()
  7375. {
  7376. if ((ac__type_new_ *) 0)
  7377. return 0;
  7378. if (sizeof (ac__type_new_))
  7379. return 0;
  7380. ;
  7381. return 0;
  7382. }
  7383. _ACEOF
  7384. rm -f conftest.$ac_objext
  7385. if { (ac_try="$ac_compile"
  7386. case "(($ac_try" in
  7387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7388. *) ac_try_echo=$ac_try;;
  7389. esac
  7390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7391. (eval "$ac_compile") 2>conftest.er1
  7392. ac_status=$?
  7393. grep -v '^ *+' conftest.er1 >conftest.err
  7394. rm -f conftest.er1
  7395. cat conftest.err >&5
  7396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7397. (exit $ac_status); } && {
  7398. test -z "$ac_cxx_werror_flag" ||
  7399. test ! -s conftest.err
  7400. } && test -s conftest.$ac_objext; then
  7401. ac_cv_type__Bool=yes
  7402. else
  7403. echo "$as_me: failed program was:" >&5
  7404. sed 's/^/| /' conftest.$ac_ext >&5
  7405. ac_cv_type__Bool=no
  7406. fi
  7407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7408. fi
  7409. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7410. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7411. if test $ac_cv_type__Bool = yes; then
  7412. cat >>confdefs.h <<_ACEOF
  7413. #define HAVE__BOOL 1
  7414. _ACEOF
  7415. fi
  7416. if test $ac_cv_header_stdbool_h = yes; then
  7417. cat >>confdefs.h <<\_ACEOF
  7418. #define HAVE_STDBOOL_H 1
  7419. _ACEOF
  7420. fi
  7421. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7422. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7423. if test "${ac_cv_c_const+set}" = set; then
  7424. echo $ECHO_N "(cached) $ECHO_C" >&6
  7425. else
  7426. cat >conftest.$ac_ext <<_ACEOF
  7427. /* confdefs.h. */
  7428. _ACEOF
  7429. cat confdefs.h >>conftest.$ac_ext
  7430. cat >>conftest.$ac_ext <<_ACEOF
  7431. /* end confdefs.h. */
  7432. int
  7433. main ()
  7434. {
  7435. /* FIXME: Include the comments suggested by Paul. */
  7436. #ifndef __cplusplus
  7437. /* Ultrix mips cc rejects this. */
  7438. typedef int charset[2];
  7439. const charset cs;
  7440. /* SunOS 4.1.1 cc rejects this. */
  7441. char const *const *pcpcc;
  7442. char **ppc;
  7443. /* NEC SVR4.0.2 mips cc rejects this. */
  7444. struct point {int x, y;};
  7445. static struct point const zero = {0,0};
  7446. /* AIX XL C 1.02.0.0 rejects this.
  7447. It does not let you subtract one const X* pointer from another in
  7448. an arm of an if-expression whose if-part is not a constant
  7449. expression */
  7450. const char *g = "string";
  7451. pcpcc = &g + (g ? g-g : 0);
  7452. /* HPUX 7.0 cc rejects these. */
  7453. ++pcpcc;
  7454. ppc = (char**) pcpcc;
  7455. pcpcc = (char const *const *) ppc;
  7456. { /* SCO 3.2v4 cc rejects this. */
  7457. char *t;
  7458. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7459. *t++ = 0;
  7460. if (s) return 0;
  7461. }
  7462. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7463. int x[] = {25, 17};
  7464. const int *foo = &x[0];
  7465. ++foo;
  7466. }
  7467. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7468. typedef const int *iptr;
  7469. iptr p = 0;
  7470. ++p;
  7471. }
  7472. { /* AIX XL C 1.02.0.0 rejects this saying
  7473. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7474. struct s { int j; const int *ap[3]; };
  7475. struct s *b; b->j = 5;
  7476. }
  7477. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7478. const int foo = 10;
  7479. if (!foo) return 0;
  7480. }
  7481. return !cs[0] && !zero.x;
  7482. #endif
  7483. ;
  7484. return 0;
  7485. }
  7486. _ACEOF
  7487. rm -f conftest.$ac_objext
  7488. if { (ac_try="$ac_compile"
  7489. case "(($ac_try" in
  7490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7491. *) ac_try_echo=$ac_try;;
  7492. esac
  7493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7494. (eval "$ac_compile") 2>conftest.er1
  7495. ac_status=$?
  7496. grep -v '^ *+' conftest.er1 >conftest.err
  7497. rm -f conftest.er1
  7498. cat conftest.err >&5
  7499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7500. (exit $ac_status); } && {
  7501. test -z "$ac_cxx_werror_flag" ||
  7502. test ! -s conftest.err
  7503. } && test -s conftest.$ac_objext; then
  7504. ac_cv_c_const=yes
  7505. else
  7506. echo "$as_me: failed program was:" >&5
  7507. sed 's/^/| /' conftest.$ac_ext >&5
  7508. ac_cv_c_const=no
  7509. fi
  7510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7511. fi
  7512. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7513. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7514. if test $ac_cv_c_const = no; then
  7515. cat >>confdefs.h <<\_ACEOF
  7516. #define const
  7517. _ACEOF
  7518. fi
  7519. { echo "$as_me:$LINENO: checking for inline" >&5
  7520. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7521. if test "${ac_cv_c_inline+set}" = set; then
  7522. echo $ECHO_N "(cached) $ECHO_C" >&6
  7523. else
  7524. ac_cv_c_inline=no
  7525. for ac_kw in inline __inline__ __inline; do
  7526. cat >conftest.$ac_ext <<_ACEOF
  7527. /* confdefs.h. */
  7528. _ACEOF
  7529. cat confdefs.h >>conftest.$ac_ext
  7530. cat >>conftest.$ac_ext <<_ACEOF
  7531. /* end confdefs.h. */
  7532. #ifndef __cplusplus
  7533. typedef int foo_t;
  7534. static $ac_kw foo_t static_foo () {return 0; }
  7535. $ac_kw foo_t foo () {return 0; }
  7536. #endif
  7537. _ACEOF
  7538. rm -f conftest.$ac_objext
  7539. if { (ac_try="$ac_compile"
  7540. case "(($ac_try" in
  7541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7542. *) ac_try_echo=$ac_try;;
  7543. esac
  7544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7545. (eval "$ac_compile") 2>conftest.er1
  7546. ac_status=$?
  7547. grep -v '^ *+' conftest.er1 >conftest.err
  7548. rm -f conftest.er1
  7549. cat conftest.err >&5
  7550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7551. (exit $ac_status); } && {
  7552. test -z "$ac_cxx_werror_flag" ||
  7553. test ! -s conftest.err
  7554. } && test -s conftest.$ac_objext; then
  7555. ac_cv_c_inline=$ac_kw
  7556. else
  7557. echo "$as_me: failed program was:" >&5
  7558. sed 's/^/| /' conftest.$ac_ext >&5
  7559. fi
  7560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7561. test "$ac_cv_c_inline" != no && break
  7562. done
  7563. fi
  7564. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7565. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7566. case $ac_cv_c_inline in
  7567. inline | yes) ;;
  7568. *)
  7569. case $ac_cv_c_inline in
  7570. no) ac_val=;;
  7571. *) ac_val=$ac_cv_c_inline;;
  7572. esac
  7573. cat >>confdefs.h <<_ACEOF
  7574. #ifndef __cplusplus
  7575. #define inline $ac_val
  7576. #endif
  7577. _ACEOF
  7578. ;;
  7579. esac
  7580. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7581. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7582. if test "${ac_cv_c_int16_t+set}" = set; then
  7583. echo $ECHO_N "(cached) $ECHO_C" >&6
  7584. else
  7585. ac_cv_c_int16_t=no
  7586. for ac_type in 'int16_t' 'int' 'long int' \
  7587. 'long long int' 'short int' 'signed char'; do
  7588. cat >conftest.$ac_ext <<_ACEOF
  7589. /* confdefs.h. */
  7590. _ACEOF
  7591. cat confdefs.h >>conftest.$ac_ext
  7592. cat >>conftest.$ac_ext <<_ACEOF
  7593. /* end confdefs.h. */
  7594. $ac_includes_default
  7595. int
  7596. main ()
  7597. {
  7598. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7599. test_array [0] = 0
  7600. ;
  7601. return 0;
  7602. }
  7603. _ACEOF
  7604. rm -f conftest.$ac_objext
  7605. if { (ac_try="$ac_compile"
  7606. case "(($ac_try" in
  7607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7608. *) ac_try_echo=$ac_try;;
  7609. esac
  7610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7611. (eval "$ac_compile") 2>conftest.er1
  7612. ac_status=$?
  7613. grep -v '^ *+' conftest.er1 >conftest.err
  7614. rm -f conftest.er1
  7615. cat conftest.err >&5
  7616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7617. (exit $ac_status); } && {
  7618. test -z "$ac_cxx_werror_flag" ||
  7619. test ! -s conftest.err
  7620. } && test -s conftest.$ac_objext; then
  7621. cat >conftest.$ac_ext <<_ACEOF
  7622. /* confdefs.h. */
  7623. _ACEOF
  7624. cat confdefs.h >>conftest.$ac_ext
  7625. cat >>conftest.$ac_ext <<_ACEOF
  7626. /* end confdefs.h. */
  7627. $ac_includes_default
  7628. int
  7629. main ()
  7630. {
  7631. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7632. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7633. test_array [0] = 0
  7634. ;
  7635. return 0;
  7636. }
  7637. _ACEOF
  7638. rm -f conftest.$ac_objext
  7639. if { (ac_try="$ac_compile"
  7640. case "(($ac_try" in
  7641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7642. *) ac_try_echo=$ac_try;;
  7643. esac
  7644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7645. (eval "$ac_compile") 2>conftest.er1
  7646. ac_status=$?
  7647. grep -v '^ *+' conftest.er1 >conftest.err
  7648. rm -f conftest.er1
  7649. cat conftest.err >&5
  7650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7651. (exit $ac_status); } && {
  7652. test -z "$ac_cxx_werror_flag" ||
  7653. test ! -s conftest.err
  7654. } && test -s conftest.$ac_objext; then
  7655. :
  7656. else
  7657. echo "$as_me: failed program was:" >&5
  7658. sed 's/^/| /' conftest.$ac_ext >&5
  7659. case $ac_type in
  7660. int16_t) ac_cv_c_int16_t=yes ;;
  7661. *) ac_cv_c_int16_t=$ac_type ;;
  7662. esac
  7663. fi
  7664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7665. else
  7666. echo "$as_me: failed program was:" >&5
  7667. sed 's/^/| /' conftest.$ac_ext >&5
  7668. fi
  7669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7670. test "$ac_cv_c_int16_t" != no && break
  7671. done
  7672. fi
  7673. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7674. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7675. case $ac_cv_c_int16_t in #(
  7676. no|yes) ;; #(
  7677. *)
  7678. cat >>confdefs.h <<_ACEOF
  7679. #define int16_t $ac_cv_c_int16_t
  7680. _ACEOF
  7681. ;;
  7682. esac
  7683. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7684. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7685. if test "${ac_cv_c_int32_t+set}" = set; then
  7686. echo $ECHO_N "(cached) $ECHO_C" >&6
  7687. else
  7688. ac_cv_c_int32_t=no
  7689. for ac_type in 'int32_t' 'int' 'long int' \
  7690. 'long long int' 'short int' 'signed char'; do
  7691. cat >conftest.$ac_ext <<_ACEOF
  7692. /* confdefs.h. */
  7693. _ACEOF
  7694. cat confdefs.h >>conftest.$ac_ext
  7695. cat >>conftest.$ac_ext <<_ACEOF
  7696. /* end confdefs.h. */
  7697. $ac_includes_default
  7698. int
  7699. main ()
  7700. {
  7701. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7702. test_array [0] = 0
  7703. ;
  7704. return 0;
  7705. }
  7706. _ACEOF
  7707. rm -f conftest.$ac_objext
  7708. if { (ac_try="$ac_compile"
  7709. case "(($ac_try" in
  7710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7711. *) ac_try_echo=$ac_try;;
  7712. esac
  7713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7714. (eval "$ac_compile") 2>conftest.er1
  7715. ac_status=$?
  7716. grep -v '^ *+' conftest.er1 >conftest.err
  7717. rm -f conftest.er1
  7718. cat conftest.err >&5
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); } && {
  7721. test -z "$ac_cxx_werror_flag" ||
  7722. test ! -s conftest.err
  7723. } && test -s conftest.$ac_objext; then
  7724. cat >conftest.$ac_ext <<_ACEOF
  7725. /* confdefs.h. */
  7726. _ACEOF
  7727. cat confdefs.h >>conftest.$ac_ext
  7728. cat >>conftest.$ac_ext <<_ACEOF
  7729. /* end confdefs.h. */
  7730. $ac_includes_default
  7731. int
  7732. main ()
  7733. {
  7734. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7735. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7736. test_array [0] = 0
  7737. ;
  7738. return 0;
  7739. }
  7740. _ACEOF
  7741. rm -f conftest.$ac_objext
  7742. if { (ac_try="$ac_compile"
  7743. case "(($ac_try" in
  7744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7745. *) ac_try_echo=$ac_try;;
  7746. esac
  7747. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7748. (eval "$ac_compile") 2>conftest.er1
  7749. ac_status=$?
  7750. grep -v '^ *+' conftest.er1 >conftest.err
  7751. rm -f conftest.er1
  7752. cat conftest.err >&5
  7753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7754. (exit $ac_status); } && {
  7755. test -z "$ac_cxx_werror_flag" ||
  7756. test ! -s conftest.err
  7757. } && test -s conftest.$ac_objext; then
  7758. :
  7759. else
  7760. echo "$as_me: failed program was:" >&5
  7761. sed 's/^/| /' conftest.$ac_ext >&5
  7762. case $ac_type in
  7763. int32_t) ac_cv_c_int32_t=yes ;;
  7764. *) ac_cv_c_int32_t=$ac_type ;;
  7765. esac
  7766. fi
  7767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7768. else
  7769. echo "$as_me: failed program was:" >&5
  7770. sed 's/^/| /' conftest.$ac_ext >&5
  7771. fi
  7772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7773. test "$ac_cv_c_int32_t" != no && break
  7774. done
  7775. fi
  7776. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7777. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7778. case $ac_cv_c_int32_t in #(
  7779. no|yes) ;; #(
  7780. *)
  7781. cat >>confdefs.h <<_ACEOF
  7782. #define int32_t $ac_cv_c_int32_t
  7783. _ACEOF
  7784. ;;
  7785. esac
  7786. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7787. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7788. if test "${ac_cv_c_int64_t+set}" = set; then
  7789. echo $ECHO_N "(cached) $ECHO_C" >&6
  7790. else
  7791. ac_cv_c_int64_t=no
  7792. for ac_type in 'int64_t' 'int' 'long int' \
  7793. 'long long int' 'short int' 'signed char'; do
  7794. cat >conftest.$ac_ext <<_ACEOF
  7795. /* confdefs.h. */
  7796. _ACEOF
  7797. cat confdefs.h >>conftest.$ac_ext
  7798. cat >>conftest.$ac_ext <<_ACEOF
  7799. /* end confdefs.h. */
  7800. $ac_includes_default
  7801. int
  7802. main ()
  7803. {
  7804. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7805. test_array [0] = 0
  7806. ;
  7807. return 0;
  7808. }
  7809. _ACEOF
  7810. rm -f conftest.$ac_objext
  7811. if { (ac_try="$ac_compile"
  7812. case "(($ac_try" in
  7813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7814. *) ac_try_echo=$ac_try;;
  7815. esac
  7816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7817. (eval "$ac_compile") 2>conftest.er1
  7818. ac_status=$?
  7819. grep -v '^ *+' conftest.er1 >conftest.err
  7820. rm -f conftest.er1
  7821. cat conftest.err >&5
  7822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7823. (exit $ac_status); } && {
  7824. test -z "$ac_cxx_werror_flag" ||
  7825. test ! -s conftest.err
  7826. } && test -s conftest.$ac_objext; then
  7827. cat >conftest.$ac_ext <<_ACEOF
  7828. /* confdefs.h. */
  7829. _ACEOF
  7830. cat confdefs.h >>conftest.$ac_ext
  7831. cat >>conftest.$ac_ext <<_ACEOF
  7832. /* end confdefs.h. */
  7833. $ac_includes_default
  7834. int
  7835. main ()
  7836. {
  7837. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7838. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7839. test_array [0] = 0
  7840. ;
  7841. return 0;
  7842. }
  7843. _ACEOF
  7844. rm -f conftest.$ac_objext
  7845. if { (ac_try="$ac_compile"
  7846. case "(($ac_try" in
  7847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7848. *) ac_try_echo=$ac_try;;
  7849. esac
  7850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7851. (eval "$ac_compile") 2>conftest.er1
  7852. ac_status=$?
  7853. grep -v '^ *+' conftest.er1 >conftest.err
  7854. rm -f conftest.er1
  7855. cat conftest.err >&5
  7856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7857. (exit $ac_status); } && {
  7858. test -z "$ac_cxx_werror_flag" ||
  7859. test ! -s conftest.err
  7860. } && test -s conftest.$ac_objext; then
  7861. :
  7862. else
  7863. echo "$as_me: failed program was:" >&5
  7864. sed 's/^/| /' conftest.$ac_ext >&5
  7865. case $ac_type in
  7866. int64_t) ac_cv_c_int64_t=yes ;;
  7867. *) ac_cv_c_int64_t=$ac_type ;;
  7868. esac
  7869. fi
  7870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7871. else
  7872. echo "$as_me: failed program was:" >&5
  7873. sed 's/^/| /' conftest.$ac_ext >&5
  7874. fi
  7875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7876. test "$ac_cv_c_int64_t" != no && break
  7877. done
  7878. fi
  7879. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7880. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7881. case $ac_cv_c_int64_t in #(
  7882. no|yes) ;; #(
  7883. *)
  7884. cat >>confdefs.h <<_ACEOF
  7885. #define int64_t $ac_cv_c_int64_t
  7886. _ACEOF
  7887. ;;
  7888. esac
  7889. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7890. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7891. if test "${ac_cv_c_int8_t+set}" = set; then
  7892. echo $ECHO_N "(cached) $ECHO_C" >&6
  7893. else
  7894. ac_cv_c_int8_t=no
  7895. for ac_type in 'int8_t' 'int' 'long int' \
  7896. 'long long int' 'short int' 'signed char'; do
  7897. cat >conftest.$ac_ext <<_ACEOF
  7898. /* confdefs.h. */
  7899. _ACEOF
  7900. cat confdefs.h >>conftest.$ac_ext
  7901. cat >>conftest.$ac_ext <<_ACEOF
  7902. /* end confdefs.h. */
  7903. $ac_includes_default
  7904. int
  7905. main ()
  7906. {
  7907. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7908. test_array [0] = 0
  7909. ;
  7910. return 0;
  7911. }
  7912. _ACEOF
  7913. rm -f conftest.$ac_objext
  7914. if { (ac_try="$ac_compile"
  7915. case "(($ac_try" in
  7916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7917. *) ac_try_echo=$ac_try;;
  7918. esac
  7919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7920. (eval "$ac_compile") 2>conftest.er1
  7921. ac_status=$?
  7922. grep -v '^ *+' conftest.er1 >conftest.err
  7923. rm -f conftest.er1
  7924. cat conftest.err >&5
  7925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7926. (exit $ac_status); } && {
  7927. test -z "$ac_cxx_werror_flag" ||
  7928. test ! -s conftest.err
  7929. } && test -s conftest.$ac_objext; then
  7930. cat >conftest.$ac_ext <<_ACEOF
  7931. /* confdefs.h. */
  7932. _ACEOF
  7933. cat confdefs.h >>conftest.$ac_ext
  7934. cat >>conftest.$ac_ext <<_ACEOF
  7935. /* end confdefs.h. */
  7936. $ac_includes_default
  7937. int
  7938. main ()
  7939. {
  7940. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7941. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7942. test_array [0] = 0
  7943. ;
  7944. return 0;
  7945. }
  7946. _ACEOF
  7947. rm -f conftest.$ac_objext
  7948. if { (ac_try="$ac_compile"
  7949. case "(($ac_try" in
  7950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7951. *) ac_try_echo=$ac_try;;
  7952. esac
  7953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7954. (eval "$ac_compile") 2>conftest.er1
  7955. ac_status=$?
  7956. grep -v '^ *+' conftest.er1 >conftest.err
  7957. rm -f conftest.er1
  7958. cat conftest.err >&5
  7959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7960. (exit $ac_status); } && {
  7961. test -z "$ac_cxx_werror_flag" ||
  7962. test ! -s conftest.err
  7963. } && test -s conftest.$ac_objext; then
  7964. :
  7965. else
  7966. echo "$as_me: failed program was:" >&5
  7967. sed 's/^/| /' conftest.$ac_ext >&5
  7968. case $ac_type in
  7969. int8_t) ac_cv_c_int8_t=yes ;;
  7970. *) ac_cv_c_int8_t=$ac_type ;;
  7971. esac
  7972. fi
  7973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7974. else
  7975. echo "$as_me: failed program was:" >&5
  7976. sed 's/^/| /' conftest.$ac_ext >&5
  7977. fi
  7978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7979. test "$ac_cv_c_int8_t" != no && break
  7980. done
  7981. fi
  7982. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7983. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7984. case $ac_cv_c_int8_t in #(
  7985. no|yes) ;; #(
  7986. *)
  7987. cat >>confdefs.h <<_ACEOF
  7988. #define int8_t $ac_cv_c_int8_t
  7989. _ACEOF
  7990. ;;
  7991. esac
  7992. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7993. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7994. if test "${ac_cv_type_mode_t+set}" = set; then
  7995. echo $ECHO_N "(cached) $ECHO_C" >&6
  7996. else
  7997. cat >conftest.$ac_ext <<_ACEOF
  7998. /* confdefs.h. */
  7999. _ACEOF
  8000. cat confdefs.h >>conftest.$ac_ext
  8001. cat >>conftest.$ac_ext <<_ACEOF
  8002. /* end confdefs.h. */
  8003. $ac_includes_default
  8004. typedef mode_t ac__type_new_;
  8005. int
  8006. main ()
  8007. {
  8008. if ((ac__type_new_ *) 0)
  8009. return 0;
  8010. if (sizeof (ac__type_new_))
  8011. return 0;
  8012. ;
  8013. return 0;
  8014. }
  8015. _ACEOF
  8016. rm -f conftest.$ac_objext
  8017. if { (ac_try="$ac_compile"
  8018. case "(($ac_try" in
  8019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8020. *) ac_try_echo=$ac_try;;
  8021. esac
  8022. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8023. (eval "$ac_compile") 2>conftest.er1
  8024. ac_status=$?
  8025. grep -v '^ *+' conftest.er1 >conftest.err
  8026. rm -f conftest.er1
  8027. cat conftest.err >&5
  8028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8029. (exit $ac_status); } && {
  8030. test -z "$ac_cxx_werror_flag" ||
  8031. test ! -s conftest.err
  8032. } && test -s conftest.$ac_objext; then
  8033. ac_cv_type_mode_t=yes
  8034. else
  8035. echo "$as_me: failed program was:" >&5
  8036. sed 's/^/| /' conftest.$ac_ext >&5
  8037. ac_cv_type_mode_t=no
  8038. fi
  8039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8040. fi
  8041. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8042. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  8043. if test $ac_cv_type_mode_t = yes; then
  8044. :
  8045. else
  8046. cat >>confdefs.h <<_ACEOF
  8047. #define mode_t int
  8048. _ACEOF
  8049. fi
  8050. { echo "$as_me:$LINENO: checking for off_t" >&5
  8051. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8052. if test "${ac_cv_type_off_t+set}" = set; then
  8053. echo $ECHO_N "(cached) $ECHO_C" >&6
  8054. else
  8055. cat >conftest.$ac_ext <<_ACEOF
  8056. /* confdefs.h. */
  8057. _ACEOF
  8058. cat confdefs.h >>conftest.$ac_ext
  8059. cat >>conftest.$ac_ext <<_ACEOF
  8060. /* end confdefs.h. */
  8061. $ac_includes_default
  8062. typedef off_t ac__type_new_;
  8063. int
  8064. main ()
  8065. {
  8066. if ((ac__type_new_ *) 0)
  8067. return 0;
  8068. if (sizeof (ac__type_new_))
  8069. return 0;
  8070. ;
  8071. return 0;
  8072. }
  8073. _ACEOF
  8074. rm -f conftest.$ac_objext
  8075. if { (ac_try="$ac_compile"
  8076. case "(($ac_try" in
  8077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8078. *) ac_try_echo=$ac_try;;
  8079. esac
  8080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8081. (eval "$ac_compile") 2>conftest.er1
  8082. ac_status=$?
  8083. grep -v '^ *+' conftest.er1 >conftest.err
  8084. rm -f conftest.er1
  8085. cat conftest.err >&5
  8086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8087. (exit $ac_status); } && {
  8088. test -z "$ac_cxx_werror_flag" ||
  8089. test ! -s conftest.err
  8090. } && test -s conftest.$ac_objext; then
  8091. ac_cv_type_off_t=yes
  8092. else
  8093. echo "$as_me: failed program was:" >&5
  8094. sed 's/^/| /' conftest.$ac_ext >&5
  8095. ac_cv_type_off_t=no
  8096. fi
  8097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8098. fi
  8099. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8100. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8101. if test $ac_cv_type_off_t = yes; then
  8102. :
  8103. else
  8104. cat >>confdefs.h <<_ACEOF
  8105. #define off_t long int
  8106. _ACEOF
  8107. fi
  8108. { echo "$as_me:$LINENO: checking for size_t" >&5
  8109. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8110. if test "${ac_cv_type_size_t+set}" = set; then
  8111. echo $ECHO_N "(cached) $ECHO_C" >&6
  8112. else
  8113. cat >conftest.$ac_ext <<_ACEOF
  8114. /* confdefs.h. */
  8115. _ACEOF
  8116. cat confdefs.h >>conftest.$ac_ext
  8117. cat >>conftest.$ac_ext <<_ACEOF
  8118. /* end confdefs.h. */
  8119. $ac_includes_default
  8120. typedef size_t ac__type_new_;
  8121. int
  8122. main ()
  8123. {
  8124. if ((ac__type_new_ *) 0)
  8125. return 0;
  8126. if (sizeof (ac__type_new_))
  8127. return 0;
  8128. ;
  8129. return 0;
  8130. }
  8131. _ACEOF
  8132. rm -f conftest.$ac_objext
  8133. if { (ac_try="$ac_compile"
  8134. case "(($ac_try" in
  8135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8136. *) ac_try_echo=$ac_try;;
  8137. esac
  8138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8139. (eval "$ac_compile") 2>conftest.er1
  8140. ac_status=$?
  8141. grep -v '^ *+' conftest.er1 >conftest.err
  8142. rm -f conftest.er1
  8143. cat conftest.err >&5
  8144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8145. (exit $ac_status); } && {
  8146. test -z "$ac_cxx_werror_flag" ||
  8147. test ! -s conftest.err
  8148. } && test -s conftest.$ac_objext; then
  8149. ac_cv_type_size_t=yes
  8150. else
  8151. echo "$as_me: failed program was:" >&5
  8152. sed 's/^/| /' conftest.$ac_ext >&5
  8153. ac_cv_type_size_t=no
  8154. fi
  8155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8156. fi
  8157. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8158. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8159. if test $ac_cv_type_size_t = yes; then
  8160. :
  8161. else
  8162. cat >>confdefs.h <<_ACEOF
  8163. #define size_t unsigned int
  8164. _ACEOF
  8165. fi
  8166. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8167. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8168. if test "${ac_cv_type_ssize_t+set}" = set; then
  8169. echo $ECHO_N "(cached) $ECHO_C" >&6
  8170. else
  8171. cat >conftest.$ac_ext <<_ACEOF
  8172. /* confdefs.h. */
  8173. _ACEOF
  8174. cat confdefs.h >>conftest.$ac_ext
  8175. cat >>conftest.$ac_ext <<_ACEOF
  8176. /* end confdefs.h. */
  8177. $ac_includes_default
  8178. typedef ssize_t ac__type_new_;
  8179. int
  8180. main ()
  8181. {
  8182. if ((ac__type_new_ *) 0)
  8183. return 0;
  8184. if (sizeof (ac__type_new_))
  8185. return 0;
  8186. ;
  8187. return 0;
  8188. }
  8189. _ACEOF
  8190. rm -f conftest.$ac_objext
  8191. if { (ac_try="$ac_compile"
  8192. case "(($ac_try" in
  8193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8194. *) ac_try_echo=$ac_try;;
  8195. esac
  8196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8197. (eval "$ac_compile") 2>conftest.er1
  8198. ac_status=$?
  8199. grep -v '^ *+' conftest.er1 >conftest.err
  8200. rm -f conftest.er1
  8201. cat conftest.err >&5
  8202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8203. (exit $ac_status); } && {
  8204. test -z "$ac_cxx_werror_flag" ||
  8205. test ! -s conftest.err
  8206. } && test -s conftest.$ac_objext; then
  8207. ac_cv_type_ssize_t=yes
  8208. else
  8209. echo "$as_me: failed program was:" >&5
  8210. sed 's/^/| /' conftest.$ac_ext >&5
  8211. ac_cv_type_ssize_t=no
  8212. fi
  8213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8214. fi
  8215. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8216. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8217. if test $ac_cv_type_ssize_t = yes; then
  8218. :
  8219. else
  8220. cat >>confdefs.h <<_ACEOF
  8221. #define ssize_t int
  8222. _ACEOF
  8223. fi
  8224. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8225. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8226. if test "${ac_cv_header_time+set}" = set; then
  8227. echo $ECHO_N "(cached) $ECHO_C" >&6
  8228. else
  8229. cat >conftest.$ac_ext <<_ACEOF
  8230. /* confdefs.h. */
  8231. _ACEOF
  8232. cat confdefs.h >>conftest.$ac_ext
  8233. cat >>conftest.$ac_ext <<_ACEOF
  8234. /* end confdefs.h. */
  8235. #include <sys/types.h>
  8236. #include <sys/time.h>
  8237. #include <time.h>
  8238. int
  8239. main ()
  8240. {
  8241. if ((struct tm *) 0)
  8242. return 0;
  8243. ;
  8244. return 0;
  8245. }
  8246. _ACEOF
  8247. rm -f conftest.$ac_objext
  8248. if { (ac_try="$ac_compile"
  8249. case "(($ac_try" in
  8250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8251. *) ac_try_echo=$ac_try;;
  8252. esac
  8253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8254. (eval "$ac_compile") 2>conftest.er1
  8255. ac_status=$?
  8256. grep -v '^ *+' conftest.er1 >conftest.err
  8257. rm -f conftest.er1
  8258. cat conftest.err >&5
  8259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8260. (exit $ac_status); } && {
  8261. test -z "$ac_cxx_werror_flag" ||
  8262. test ! -s conftest.err
  8263. } && test -s conftest.$ac_objext; then
  8264. ac_cv_header_time=yes
  8265. else
  8266. echo "$as_me: failed program was:" >&5
  8267. sed 's/^/| /' conftest.$ac_ext >&5
  8268. ac_cv_header_time=no
  8269. fi
  8270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8271. fi
  8272. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8273. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8274. if test $ac_cv_header_time = yes; then
  8275. cat >>confdefs.h <<\_ACEOF
  8276. #define TIME_WITH_SYS_TIME 1
  8277. _ACEOF
  8278. fi
  8279. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8280. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8281. if test "${ac_cv_struct_tm+set}" = set; then
  8282. echo $ECHO_N "(cached) $ECHO_C" >&6
  8283. else
  8284. cat >conftest.$ac_ext <<_ACEOF
  8285. /* confdefs.h. */
  8286. _ACEOF
  8287. cat confdefs.h >>conftest.$ac_ext
  8288. cat >>conftest.$ac_ext <<_ACEOF
  8289. /* end confdefs.h. */
  8290. #include <sys/types.h>
  8291. #include <time.h>
  8292. int
  8293. main ()
  8294. {
  8295. struct tm tm;
  8296. int *p = &tm.tm_sec;
  8297. return !p;
  8298. ;
  8299. return 0;
  8300. }
  8301. _ACEOF
  8302. rm -f conftest.$ac_objext
  8303. if { (ac_try="$ac_compile"
  8304. case "(($ac_try" in
  8305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8306. *) ac_try_echo=$ac_try;;
  8307. esac
  8308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8309. (eval "$ac_compile") 2>conftest.er1
  8310. ac_status=$?
  8311. grep -v '^ *+' conftest.er1 >conftest.err
  8312. rm -f conftest.er1
  8313. cat conftest.err >&5
  8314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8315. (exit $ac_status); } && {
  8316. test -z "$ac_cxx_werror_flag" ||
  8317. test ! -s conftest.err
  8318. } && test -s conftest.$ac_objext; then
  8319. ac_cv_struct_tm=time.h
  8320. else
  8321. echo "$as_me: failed program was:" >&5
  8322. sed 's/^/| /' conftest.$ac_ext >&5
  8323. ac_cv_struct_tm=sys/time.h
  8324. fi
  8325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8326. fi
  8327. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8328. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8329. if test $ac_cv_struct_tm = sys/time.h; then
  8330. cat >>confdefs.h <<\_ACEOF
  8331. #define TM_IN_SYS_TIME 1
  8332. _ACEOF
  8333. fi
  8334. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8335. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8336. if test "${ac_cv_c_uint16_t+set}" = set; then
  8337. echo $ECHO_N "(cached) $ECHO_C" >&6
  8338. else
  8339. ac_cv_c_uint16_t=no
  8340. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8341. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8342. cat >conftest.$ac_ext <<_ACEOF
  8343. /* confdefs.h. */
  8344. _ACEOF
  8345. cat confdefs.h >>conftest.$ac_ext
  8346. cat >>conftest.$ac_ext <<_ACEOF
  8347. /* end confdefs.h. */
  8348. $ac_includes_default
  8349. int
  8350. main ()
  8351. {
  8352. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8353. test_array [0] = 0
  8354. ;
  8355. return 0;
  8356. }
  8357. _ACEOF
  8358. rm -f conftest.$ac_objext
  8359. if { (ac_try="$ac_compile"
  8360. case "(($ac_try" in
  8361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8362. *) ac_try_echo=$ac_try;;
  8363. esac
  8364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8365. (eval "$ac_compile") 2>conftest.er1
  8366. ac_status=$?
  8367. grep -v '^ *+' conftest.er1 >conftest.err
  8368. rm -f conftest.er1
  8369. cat conftest.err >&5
  8370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8371. (exit $ac_status); } && {
  8372. test -z "$ac_cxx_werror_flag" ||
  8373. test ! -s conftest.err
  8374. } && test -s conftest.$ac_objext; then
  8375. case $ac_type in
  8376. uint16_t) ac_cv_c_uint16_t=yes ;;
  8377. *) ac_cv_c_uint16_t=$ac_type ;;
  8378. esac
  8379. else
  8380. echo "$as_me: failed program was:" >&5
  8381. sed 's/^/| /' conftest.$ac_ext >&5
  8382. fi
  8383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8384. test "$ac_cv_c_uint16_t" != no && break
  8385. done
  8386. fi
  8387. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8388. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8389. case $ac_cv_c_uint16_t in #(
  8390. no|yes) ;; #(
  8391. *)
  8392. cat >>confdefs.h <<_ACEOF
  8393. #define uint16_t $ac_cv_c_uint16_t
  8394. _ACEOF
  8395. ;;
  8396. esac
  8397. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8398. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8399. if test "${ac_cv_c_uint32_t+set}" = set; then
  8400. echo $ECHO_N "(cached) $ECHO_C" >&6
  8401. else
  8402. ac_cv_c_uint32_t=no
  8403. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8404. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8405. cat >conftest.$ac_ext <<_ACEOF
  8406. /* confdefs.h. */
  8407. _ACEOF
  8408. cat confdefs.h >>conftest.$ac_ext
  8409. cat >>conftest.$ac_ext <<_ACEOF
  8410. /* end confdefs.h. */
  8411. $ac_includes_default
  8412. int
  8413. main ()
  8414. {
  8415. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8416. test_array [0] = 0
  8417. ;
  8418. return 0;
  8419. }
  8420. _ACEOF
  8421. rm -f conftest.$ac_objext
  8422. if { (ac_try="$ac_compile"
  8423. case "(($ac_try" in
  8424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8425. *) ac_try_echo=$ac_try;;
  8426. esac
  8427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8428. (eval "$ac_compile") 2>conftest.er1
  8429. ac_status=$?
  8430. grep -v '^ *+' conftest.er1 >conftest.err
  8431. rm -f conftest.er1
  8432. cat conftest.err >&5
  8433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8434. (exit $ac_status); } && {
  8435. test -z "$ac_cxx_werror_flag" ||
  8436. test ! -s conftest.err
  8437. } && test -s conftest.$ac_objext; then
  8438. case $ac_type in
  8439. uint32_t) ac_cv_c_uint32_t=yes ;;
  8440. *) ac_cv_c_uint32_t=$ac_type ;;
  8441. esac
  8442. else
  8443. echo "$as_me: failed program was:" >&5
  8444. sed 's/^/| /' conftest.$ac_ext >&5
  8445. fi
  8446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8447. test "$ac_cv_c_uint32_t" != no && break
  8448. done
  8449. fi
  8450. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8451. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8452. case $ac_cv_c_uint32_t in #(
  8453. no|yes) ;; #(
  8454. *)
  8455. cat >>confdefs.h <<\_ACEOF
  8456. #define _UINT32_T 1
  8457. _ACEOF
  8458. cat >>confdefs.h <<_ACEOF
  8459. #define uint32_t $ac_cv_c_uint32_t
  8460. _ACEOF
  8461. ;;
  8462. esac
  8463. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8464. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8465. if test "${ac_cv_c_uint64_t+set}" = set; then
  8466. echo $ECHO_N "(cached) $ECHO_C" >&6
  8467. else
  8468. ac_cv_c_uint64_t=no
  8469. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8470. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8471. cat >conftest.$ac_ext <<_ACEOF
  8472. /* confdefs.h. */
  8473. _ACEOF
  8474. cat confdefs.h >>conftest.$ac_ext
  8475. cat >>conftest.$ac_ext <<_ACEOF
  8476. /* end confdefs.h. */
  8477. $ac_includes_default
  8478. int
  8479. main ()
  8480. {
  8481. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8482. test_array [0] = 0
  8483. ;
  8484. return 0;
  8485. }
  8486. _ACEOF
  8487. rm -f conftest.$ac_objext
  8488. if { (ac_try="$ac_compile"
  8489. case "(($ac_try" in
  8490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8491. *) ac_try_echo=$ac_try;;
  8492. esac
  8493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8494. (eval "$ac_compile") 2>conftest.er1
  8495. ac_status=$?
  8496. grep -v '^ *+' conftest.er1 >conftest.err
  8497. rm -f conftest.er1
  8498. cat conftest.err >&5
  8499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8500. (exit $ac_status); } && {
  8501. test -z "$ac_cxx_werror_flag" ||
  8502. test ! -s conftest.err
  8503. } && test -s conftest.$ac_objext; then
  8504. case $ac_type in
  8505. uint64_t) ac_cv_c_uint64_t=yes ;;
  8506. *) ac_cv_c_uint64_t=$ac_type ;;
  8507. esac
  8508. else
  8509. echo "$as_me: failed program was:" >&5
  8510. sed 's/^/| /' conftest.$ac_ext >&5
  8511. fi
  8512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8513. test "$ac_cv_c_uint64_t" != no && break
  8514. done
  8515. fi
  8516. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8517. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8518. case $ac_cv_c_uint64_t in #(
  8519. no|yes) ;; #(
  8520. *)
  8521. cat >>confdefs.h <<\_ACEOF
  8522. #define _UINT64_T 1
  8523. _ACEOF
  8524. cat >>confdefs.h <<_ACEOF
  8525. #define uint64_t $ac_cv_c_uint64_t
  8526. _ACEOF
  8527. ;;
  8528. esac
  8529. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8530. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8531. if test "${ac_cv_c_uint8_t+set}" = set; then
  8532. echo $ECHO_N "(cached) $ECHO_C" >&6
  8533. else
  8534. ac_cv_c_uint8_t=no
  8535. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8536. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8537. cat >conftest.$ac_ext <<_ACEOF
  8538. /* confdefs.h. */
  8539. _ACEOF
  8540. cat confdefs.h >>conftest.$ac_ext
  8541. cat >>conftest.$ac_ext <<_ACEOF
  8542. /* end confdefs.h. */
  8543. $ac_includes_default
  8544. int
  8545. main ()
  8546. {
  8547. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8548. test_array [0] = 0
  8549. ;
  8550. return 0;
  8551. }
  8552. _ACEOF
  8553. rm -f conftest.$ac_objext
  8554. if { (ac_try="$ac_compile"
  8555. case "(($ac_try" in
  8556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8557. *) ac_try_echo=$ac_try;;
  8558. esac
  8559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8560. (eval "$ac_compile") 2>conftest.er1
  8561. ac_status=$?
  8562. grep -v '^ *+' conftest.er1 >conftest.err
  8563. rm -f conftest.er1
  8564. cat conftest.err >&5
  8565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8566. (exit $ac_status); } && {
  8567. test -z "$ac_cxx_werror_flag" ||
  8568. test ! -s conftest.err
  8569. } && test -s conftest.$ac_objext; then
  8570. case $ac_type in
  8571. uint8_t) ac_cv_c_uint8_t=yes ;;
  8572. *) ac_cv_c_uint8_t=$ac_type ;;
  8573. esac
  8574. else
  8575. echo "$as_me: failed program was:" >&5
  8576. sed 's/^/| /' conftest.$ac_ext >&5
  8577. fi
  8578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8579. test "$ac_cv_c_uint8_t" != no && break
  8580. done
  8581. fi
  8582. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8583. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8584. case $ac_cv_c_uint8_t in #(
  8585. no|yes) ;; #(
  8586. *)
  8587. cat >>confdefs.h <<\_ACEOF
  8588. #define _UINT8_T 1
  8589. _ACEOF
  8590. cat >>confdefs.h <<_ACEOF
  8591. #define uint8_t $ac_cv_c_uint8_t
  8592. _ACEOF
  8593. ;;
  8594. esac
  8595. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8596. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8597. if test "${ac_cv_c_volatile+set}" = set; then
  8598. echo $ECHO_N "(cached) $ECHO_C" >&6
  8599. else
  8600. cat >conftest.$ac_ext <<_ACEOF
  8601. /* confdefs.h. */
  8602. _ACEOF
  8603. cat confdefs.h >>conftest.$ac_ext
  8604. cat >>conftest.$ac_ext <<_ACEOF
  8605. /* end confdefs.h. */
  8606. int
  8607. main ()
  8608. {
  8609. volatile int x;
  8610. int * volatile y = (int *) 0;
  8611. return !x && !y;
  8612. ;
  8613. return 0;
  8614. }
  8615. _ACEOF
  8616. rm -f conftest.$ac_objext
  8617. if { (ac_try="$ac_compile"
  8618. case "(($ac_try" in
  8619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8620. *) ac_try_echo=$ac_try;;
  8621. esac
  8622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8623. (eval "$ac_compile") 2>conftest.er1
  8624. ac_status=$?
  8625. grep -v '^ *+' conftest.er1 >conftest.err
  8626. rm -f conftest.er1
  8627. cat conftest.err >&5
  8628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8629. (exit $ac_status); } && {
  8630. test -z "$ac_cxx_werror_flag" ||
  8631. test ! -s conftest.err
  8632. } && test -s conftest.$ac_objext; then
  8633. ac_cv_c_volatile=yes
  8634. else
  8635. echo "$as_me: failed program was:" >&5
  8636. sed 's/^/| /' conftest.$ac_ext >&5
  8637. ac_cv_c_volatile=no
  8638. fi
  8639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8640. fi
  8641. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8642. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8643. if test $ac_cv_c_volatile = no; then
  8644. cat >>confdefs.h <<\_ACEOF
  8645. #define volatile
  8646. _ACEOF
  8647. fi
  8648. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8649. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8650. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8651. echo $ECHO_N "(cached) $ECHO_C" >&6
  8652. else
  8653. cat >conftest.$ac_ext <<_ACEOF
  8654. /* confdefs.h. */
  8655. _ACEOF
  8656. cat confdefs.h >>conftest.$ac_ext
  8657. cat >>conftest.$ac_ext <<_ACEOF
  8658. /* end confdefs.h. */
  8659. $ac_includes_default
  8660. typedef ptrdiff_t ac__type_new_;
  8661. int
  8662. main ()
  8663. {
  8664. if ((ac__type_new_ *) 0)
  8665. return 0;
  8666. if (sizeof (ac__type_new_))
  8667. return 0;
  8668. ;
  8669. return 0;
  8670. }
  8671. _ACEOF
  8672. rm -f conftest.$ac_objext
  8673. if { (ac_try="$ac_compile"
  8674. case "(($ac_try" in
  8675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8676. *) ac_try_echo=$ac_try;;
  8677. esac
  8678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8679. (eval "$ac_compile") 2>conftest.er1
  8680. ac_status=$?
  8681. grep -v '^ *+' conftest.er1 >conftest.err
  8682. rm -f conftest.er1
  8683. cat conftest.err >&5
  8684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8685. (exit $ac_status); } && {
  8686. test -z "$ac_cxx_werror_flag" ||
  8687. test ! -s conftest.err
  8688. } && test -s conftest.$ac_objext; then
  8689. ac_cv_type_ptrdiff_t=yes
  8690. else
  8691. echo "$as_me: failed program was:" >&5
  8692. sed 's/^/| /' conftest.$ac_ext >&5
  8693. ac_cv_type_ptrdiff_t=no
  8694. fi
  8695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8696. fi
  8697. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8698. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8699. if test $ac_cv_type_ptrdiff_t = yes; then
  8700. cat >>confdefs.h <<_ACEOF
  8701. #define HAVE_PTRDIFF_T 1
  8702. _ACEOF
  8703. fi
  8704. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8705. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8706. if test "${ac_cv_c_bigendian+set}" = set; then
  8707. echo $ECHO_N "(cached) $ECHO_C" >&6
  8708. else
  8709. # See if sys/param.h defines the BYTE_ORDER macro.
  8710. cat >conftest.$ac_ext <<_ACEOF
  8711. /* confdefs.h. */
  8712. _ACEOF
  8713. cat confdefs.h >>conftest.$ac_ext
  8714. cat >>conftest.$ac_ext <<_ACEOF
  8715. /* end confdefs.h. */
  8716. #include <sys/types.h>
  8717. #include <sys/param.h>
  8718. int
  8719. main ()
  8720. {
  8721. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8722. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8723. bogus endian macros
  8724. #endif
  8725. ;
  8726. return 0;
  8727. }
  8728. _ACEOF
  8729. rm -f conftest.$ac_objext
  8730. if { (ac_try="$ac_compile"
  8731. case "(($ac_try" in
  8732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8733. *) ac_try_echo=$ac_try;;
  8734. esac
  8735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8736. (eval "$ac_compile") 2>conftest.er1
  8737. ac_status=$?
  8738. grep -v '^ *+' conftest.er1 >conftest.err
  8739. rm -f conftest.er1
  8740. cat conftest.err >&5
  8741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8742. (exit $ac_status); } && {
  8743. test -z "$ac_cxx_werror_flag" ||
  8744. test ! -s conftest.err
  8745. } && test -s conftest.$ac_objext; then
  8746. # It does; now see whether it defined to BIG_ENDIAN or not.
  8747. cat >conftest.$ac_ext <<_ACEOF
  8748. /* confdefs.h. */
  8749. _ACEOF
  8750. cat confdefs.h >>conftest.$ac_ext
  8751. cat >>conftest.$ac_ext <<_ACEOF
  8752. /* end confdefs.h. */
  8753. #include <sys/types.h>
  8754. #include <sys/param.h>
  8755. int
  8756. main ()
  8757. {
  8758. #if BYTE_ORDER != BIG_ENDIAN
  8759. not big endian
  8760. #endif
  8761. ;
  8762. return 0;
  8763. }
  8764. _ACEOF
  8765. rm -f conftest.$ac_objext
  8766. if { (ac_try="$ac_compile"
  8767. case "(($ac_try" in
  8768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8769. *) ac_try_echo=$ac_try;;
  8770. esac
  8771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8772. (eval "$ac_compile") 2>conftest.er1
  8773. ac_status=$?
  8774. grep -v '^ *+' conftest.er1 >conftest.err
  8775. rm -f conftest.er1
  8776. cat conftest.err >&5
  8777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8778. (exit $ac_status); } && {
  8779. test -z "$ac_cxx_werror_flag" ||
  8780. test ! -s conftest.err
  8781. } && test -s conftest.$ac_objext; then
  8782. ac_cv_c_bigendian=yes
  8783. else
  8784. echo "$as_me: failed program was:" >&5
  8785. sed 's/^/| /' conftest.$ac_ext >&5
  8786. ac_cv_c_bigendian=no
  8787. fi
  8788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8789. else
  8790. echo "$as_me: failed program was:" >&5
  8791. sed 's/^/| /' conftest.$ac_ext >&5
  8792. # It does not; compile a test program.
  8793. if test "$cross_compiling" = yes; then
  8794. # try to guess the endianness by grepping values into an object file
  8795. ac_cv_c_bigendian=unknown
  8796. cat >conftest.$ac_ext <<_ACEOF
  8797. /* confdefs.h. */
  8798. _ACEOF
  8799. cat confdefs.h >>conftest.$ac_ext
  8800. cat >>conftest.$ac_ext <<_ACEOF
  8801. /* end confdefs.h. */
  8802. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8803. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8804. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  8805. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8806. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8807. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  8808. int
  8809. main ()
  8810. {
  8811. _ascii (); _ebcdic ();
  8812. ;
  8813. return 0;
  8814. }
  8815. _ACEOF
  8816. rm -f conftest.$ac_objext
  8817. if { (ac_try="$ac_compile"
  8818. case "(($ac_try" in
  8819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8820. *) ac_try_echo=$ac_try;;
  8821. esac
  8822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8823. (eval "$ac_compile") 2>conftest.er1
  8824. ac_status=$?
  8825. grep -v '^ *+' conftest.er1 >conftest.err
  8826. rm -f conftest.er1
  8827. cat conftest.err >&5
  8828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8829. (exit $ac_status); } && {
  8830. test -z "$ac_cxx_werror_flag" ||
  8831. test ! -s conftest.err
  8832. } && test -s conftest.$ac_objext; then
  8833. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  8834. ac_cv_c_bigendian=yes
  8835. fi
  8836. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8837. if test "$ac_cv_c_bigendian" = unknown; then
  8838. ac_cv_c_bigendian=no
  8839. else
  8840. # finding both strings is unlikely to happen, but who knows?
  8841. ac_cv_c_bigendian=unknown
  8842. fi
  8843. fi
  8844. else
  8845. echo "$as_me: failed program was:" >&5
  8846. sed 's/^/| /' conftest.$ac_ext >&5
  8847. fi
  8848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8849. else
  8850. cat >conftest.$ac_ext <<_ACEOF
  8851. /* confdefs.h. */
  8852. _ACEOF
  8853. cat confdefs.h >>conftest.$ac_ext
  8854. cat >>conftest.$ac_ext <<_ACEOF
  8855. /* end confdefs.h. */
  8856. $ac_includes_default
  8857. int
  8858. main ()
  8859. {
  8860. /* Are we little or big endian? From Harbison&Steele. */
  8861. union
  8862. {
  8863. long int l;
  8864. char c[sizeof (long int)];
  8865. } u;
  8866. u.l = 1;
  8867. return u.c[sizeof (long int) - 1] == 1;
  8868. ;
  8869. return 0;
  8870. }
  8871. _ACEOF
  8872. rm -f conftest$ac_exeext
  8873. if { (ac_try="$ac_link"
  8874. case "(($ac_try" in
  8875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8876. *) ac_try_echo=$ac_try;;
  8877. esac
  8878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8879. (eval "$ac_link") 2>&5
  8880. ac_status=$?
  8881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8882. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8883. { (case "(($ac_try" in
  8884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8885. *) ac_try_echo=$ac_try;;
  8886. esac
  8887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8888. (eval "$ac_try") 2>&5
  8889. ac_status=$?
  8890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8891. (exit $ac_status); }; }; then
  8892. ac_cv_c_bigendian=no
  8893. else
  8894. echo "$as_me: program exited with status $ac_status" >&5
  8895. echo "$as_me: failed program was:" >&5
  8896. sed 's/^/| /' conftest.$ac_ext >&5
  8897. ( exit $ac_status )
  8898. ac_cv_c_bigendian=yes
  8899. fi
  8900. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8901. fi
  8902. fi
  8903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8904. fi
  8905. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  8906. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  8907. case $ac_cv_c_bigendian in
  8908. yes)
  8909. cat >>confdefs.h <<\_ACEOF
  8910. #define WORDS_BIGENDIAN 1
  8911. _ACEOF
  8912. ;;
  8913. no)
  8914. ;;
  8915. *)
  8916. { { echo "$as_me:$LINENO: error: unknown endianness
  8917. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  8918. echo "$as_me: error: unknown endianness
  8919. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  8920. { (exit 1); exit 1; }; } ;;
  8921. esac
  8922. # Check whether --enable-largefile was given.
  8923. if test "${enable_largefile+set}" = set; then
  8924. enableval=$enable_largefile;
  8925. fi
  8926. if test "$enable_largefile" != no; then
  8927. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8928. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8929. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8930. echo $ECHO_N "(cached) $ECHO_C" >&6
  8931. else
  8932. ac_cv_sys_largefile_CC=no
  8933. if test "$GCC" != yes; then
  8934. ac_save_CC=$CC
  8935. while :; do
  8936. # IRIX 6.2 and later do not support large files by default,
  8937. # so use the C compiler's -n32 option if that helps.
  8938. cat >conftest.$ac_ext <<_ACEOF
  8939. /* confdefs.h. */
  8940. _ACEOF
  8941. cat confdefs.h >>conftest.$ac_ext
  8942. cat >>conftest.$ac_ext <<_ACEOF
  8943. /* end confdefs.h. */
  8944. #include <sys/types.h>
  8945. /* Check that off_t can represent 2**63 - 1 correctly.
  8946. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8947. since some C++ compilers masquerading as C compilers
  8948. incorrectly reject 9223372036854775807. */
  8949. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8950. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8951. && LARGE_OFF_T % 2147483647 == 1)
  8952. ? 1 : -1];
  8953. int
  8954. main ()
  8955. {
  8956. ;
  8957. return 0;
  8958. }
  8959. _ACEOF
  8960. rm -f conftest.$ac_objext
  8961. if { (ac_try="$ac_compile"
  8962. case "(($ac_try" in
  8963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8964. *) ac_try_echo=$ac_try;;
  8965. esac
  8966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8967. (eval "$ac_compile") 2>conftest.er1
  8968. ac_status=$?
  8969. grep -v '^ *+' conftest.er1 >conftest.err
  8970. rm -f conftest.er1
  8971. cat conftest.err >&5
  8972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8973. (exit $ac_status); } && {
  8974. test -z "$ac_cxx_werror_flag" ||
  8975. test ! -s conftest.err
  8976. } && test -s conftest.$ac_objext; then
  8977. break
  8978. else
  8979. echo "$as_me: failed program was:" >&5
  8980. sed 's/^/| /' conftest.$ac_ext >&5
  8981. fi
  8982. rm -f core conftest.err conftest.$ac_objext
  8983. CC="$CC -n32"
  8984. rm -f conftest.$ac_objext
  8985. if { (ac_try="$ac_compile"
  8986. case "(($ac_try" in
  8987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8988. *) ac_try_echo=$ac_try;;
  8989. esac
  8990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8991. (eval "$ac_compile") 2>conftest.er1
  8992. ac_status=$?
  8993. grep -v '^ *+' conftest.er1 >conftest.err
  8994. rm -f conftest.er1
  8995. cat conftest.err >&5
  8996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8997. (exit $ac_status); } && {
  8998. test -z "$ac_cxx_werror_flag" ||
  8999. test ! -s conftest.err
  9000. } && test -s conftest.$ac_objext; then
  9001. ac_cv_sys_largefile_CC=' -n32'; break
  9002. else
  9003. echo "$as_me: failed program was:" >&5
  9004. sed 's/^/| /' conftest.$ac_ext >&5
  9005. fi
  9006. rm -f core conftest.err conftest.$ac_objext
  9007. break
  9008. done
  9009. CC=$ac_save_CC
  9010. rm -f conftest.$ac_ext
  9011. fi
  9012. fi
  9013. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9014. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  9015. if test "$ac_cv_sys_largefile_CC" != no; then
  9016. CC=$CC$ac_cv_sys_largefile_CC
  9017. fi
  9018. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9019. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  9020. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9021. echo $ECHO_N "(cached) $ECHO_C" >&6
  9022. else
  9023. while :; do
  9024. cat >conftest.$ac_ext <<_ACEOF
  9025. /* confdefs.h. */
  9026. _ACEOF
  9027. cat confdefs.h >>conftest.$ac_ext
  9028. cat >>conftest.$ac_ext <<_ACEOF
  9029. /* end confdefs.h. */
  9030. #include <sys/types.h>
  9031. /* Check that off_t can represent 2**63 - 1 correctly.
  9032. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9033. since some C++ compilers masquerading as C compilers
  9034. incorrectly reject 9223372036854775807. */
  9035. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9036. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9037. && LARGE_OFF_T % 2147483647 == 1)
  9038. ? 1 : -1];
  9039. int
  9040. main ()
  9041. {
  9042. ;
  9043. return 0;
  9044. }
  9045. _ACEOF
  9046. rm -f conftest.$ac_objext
  9047. if { (ac_try="$ac_compile"
  9048. case "(($ac_try" in
  9049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9050. *) ac_try_echo=$ac_try;;
  9051. esac
  9052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9053. (eval "$ac_compile") 2>conftest.er1
  9054. ac_status=$?
  9055. grep -v '^ *+' conftest.er1 >conftest.err
  9056. rm -f conftest.er1
  9057. cat conftest.err >&5
  9058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9059. (exit $ac_status); } && {
  9060. test -z "$ac_cxx_werror_flag" ||
  9061. test ! -s conftest.err
  9062. } && test -s conftest.$ac_objext; then
  9063. ac_cv_sys_file_offset_bits=no; break
  9064. else
  9065. echo "$as_me: failed program was:" >&5
  9066. sed 's/^/| /' conftest.$ac_ext >&5
  9067. fi
  9068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9069. cat >conftest.$ac_ext <<_ACEOF
  9070. /* confdefs.h. */
  9071. _ACEOF
  9072. cat confdefs.h >>conftest.$ac_ext
  9073. cat >>conftest.$ac_ext <<_ACEOF
  9074. /* end confdefs.h. */
  9075. #define _FILE_OFFSET_BITS 64
  9076. #include <sys/types.h>
  9077. /* Check that off_t can represent 2**63 - 1 correctly.
  9078. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9079. since some C++ compilers masquerading as C compilers
  9080. incorrectly reject 9223372036854775807. */
  9081. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9082. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9083. && LARGE_OFF_T % 2147483647 == 1)
  9084. ? 1 : -1];
  9085. int
  9086. main ()
  9087. {
  9088. ;
  9089. return 0;
  9090. }
  9091. _ACEOF
  9092. rm -f conftest.$ac_objext
  9093. if { (ac_try="$ac_compile"
  9094. case "(($ac_try" in
  9095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9096. *) ac_try_echo=$ac_try;;
  9097. esac
  9098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9099. (eval "$ac_compile") 2>conftest.er1
  9100. ac_status=$?
  9101. grep -v '^ *+' conftest.er1 >conftest.err
  9102. rm -f conftest.er1
  9103. cat conftest.err >&5
  9104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9105. (exit $ac_status); } && {
  9106. test -z "$ac_cxx_werror_flag" ||
  9107. test ! -s conftest.err
  9108. } && test -s conftest.$ac_objext; then
  9109. ac_cv_sys_file_offset_bits=64; break
  9110. else
  9111. echo "$as_me: failed program was:" >&5
  9112. sed 's/^/| /' conftest.$ac_ext >&5
  9113. fi
  9114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9115. ac_cv_sys_file_offset_bits=unknown
  9116. break
  9117. done
  9118. fi
  9119. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9120. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9121. case $ac_cv_sys_file_offset_bits in #(
  9122. no | unknown) ;;
  9123. *)
  9124. cat >>confdefs.h <<_ACEOF
  9125. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9126. _ACEOF
  9127. ;;
  9128. esac
  9129. rm -f conftest*
  9130. if test $ac_cv_sys_file_offset_bits = unknown; then
  9131. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9132. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9133. if test "${ac_cv_sys_large_files+set}" = set; then
  9134. echo $ECHO_N "(cached) $ECHO_C" >&6
  9135. else
  9136. while :; do
  9137. cat >conftest.$ac_ext <<_ACEOF
  9138. /* confdefs.h. */
  9139. _ACEOF
  9140. cat confdefs.h >>conftest.$ac_ext
  9141. cat >>conftest.$ac_ext <<_ACEOF
  9142. /* end confdefs.h. */
  9143. #include <sys/types.h>
  9144. /* Check that off_t can represent 2**63 - 1 correctly.
  9145. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9146. since some C++ compilers masquerading as C compilers
  9147. incorrectly reject 9223372036854775807. */
  9148. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9149. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9150. && LARGE_OFF_T % 2147483647 == 1)
  9151. ? 1 : -1];
  9152. int
  9153. main ()
  9154. {
  9155. ;
  9156. return 0;
  9157. }
  9158. _ACEOF
  9159. rm -f conftest.$ac_objext
  9160. if { (ac_try="$ac_compile"
  9161. case "(($ac_try" in
  9162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9163. *) ac_try_echo=$ac_try;;
  9164. esac
  9165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9166. (eval "$ac_compile") 2>conftest.er1
  9167. ac_status=$?
  9168. grep -v '^ *+' conftest.er1 >conftest.err
  9169. rm -f conftest.er1
  9170. cat conftest.err >&5
  9171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9172. (exit $ac_status); } && {
  9173. test -z "$ac_cxx_werror_flag" ||
  9174. test ! -s conftest.err
  9175. } && test -s conftest.$ac_objext; then
  9176. ac_cv_sys_large_files=no; break
  9177. else
  9178. echo "$as_me: failed program was:" >&5
  9179. sed 's/^/| /' conftest.$ac_ext >&5
  9180. fi
  9181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9182. cat >conftest.$ac_ext <<_ACEOF
  9183. /* confdefs.h. */
  9184. _ACEOF
  9185. cat confdefs.h >>conftest.$ac_ext
  9186. cat >>conftest.$ac_ext <<_ACEOF
  9187. /* end confdefs.h. */
  9188. #define _LARGE_FILES 1
  9189. #include <sys/types.h>
  9190. /* Check that off_t can represent 2**63 - 1 correctly.
  9191. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9192. since some C++ compilers masquerading as C compilers
  9193. incorrectly reject 9223372036854775807. */
  9194. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9195. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9196. && LARGE_OFF_T % 2147483647 == 1)
  9197. ? 1 : -1];
  9198. int
  9199. main ()
  9200. {
  9201. ;
  9202. return 0;
  9203. }
  9204. _ACEOF
  9205. rm -f conftest.$ac_objext
  9206. if { (ac_try="$ac_compile"
  9207. case "(($ac_try" in
  9208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9209. *) ac_try_echo=$ac_try;;
  9210. esac
  9211. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9212. (eval "$ac_compile") 2>conftest.er1
  9213. ac_status=$?
  9214. grep -v '^ *+' conftest.er1 >conftest.err
  9215. rm -f conftest.er1
  9216. cat conftest.err >&5
  9217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9218. (exit $ac_status); } && {
  9219. test -z "$ac_cxx_werror_flag" ||
  9220. test ! -s conftest.err
  9221. } && test -s conftest.$ac_objext; then
  9222. ac_cv_sys_large_files=1; break
  9223. else
  9224. echo "$as_me: failed program was:" >&5
  9225. sed 's/^/| /' conftest.$ac_ext >&5
  9226. fi
  9227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9228. ac_cv_sys_large_files=unknown
  9229. break
  9230. done
  9231. fi
  9232. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9233. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9234. case $ac_cv_sys_large_files in #(
  9235. no | unknown) ;;
  9236. *)
  9237. cat >>confdefs.h <<_ACEOF
  9238. #define _LARGE_FILES $ac_cv_sys_large_files
  9239. _ACEOF
  9240. ;;
  9241. esac
  9242. rm -f conftest*
  9243. fi
  9244. fi
  9245. # Checks for library functions.
  9246. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9247. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9248. # Check whether --enable-nls was given.
  9249. if test "${enable_nls+set}" = set; then
  9250. enableval=$enable_nls; USE_NLS=$enableval
  9251. else
  9252. USE_NLS=yes
  9253. fi
  9254. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9255. echo "${ECHO_T}$USE_NLS" >&6; }
  9256. GETTEXT_MACRO_VERSION=0.17
  9257. # Prepare PATH_SEPARATOR.
  9258. # The user is always right.
  9259. if test "${PATH_SEPARATOR+set}" != set; then
  9260. echo "#! /bin/sh" >conf$$.sh
  9261. echo "exit 0" >>conf$$.sh
  9262. chmod +x conf$$.sh
  9263. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9264. PATH_SEPARATOR=';'
  9265. else
  9266. PATH_SEPARATOR=:
  9267. fi
  9268. rm -f conf$$.sh
  9269. fi
  9270. # Find out how to test for executable files. Don't use a zero-byte file,
  9271. # as systems may use methods other than mode bits to determine executability.
  9272. cat >conf$$.file <<_ASEOF
  9273. #! /bin/sh
  9274. exit 0
  9275. _ASEOF
  9276. chmod +x conf$$.file
  9277. if test -x conf$$.file >/dev/null 2>&1; then
  9278. ac_executable_p="test -x"
  9279. else
  9280. ac_executable_p="test -f"
  9281. fi
  9282. rm -f conf$$.file
  9283. # Extract the first word of "msgfmt", so it can be a program name with args.
  9284. set dummy msgfmt; ac_word=$2
  9285. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9286. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9287. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9288. echo $ECHO_N "(cached) $ECHO_C" >&6
  9289. else
  9290. case "$MSGFMT" in
  9291. [\\/]* | ?:[\\/]*)
  9292. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9293. ;;
  9294. *)
  9295. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9296. for ac_dir in $PATH; do
  9297. IFS="$ac_save_IFS"
  9298. test -z "$ac_dir" && ac_dir=.
  9299. for ac_exec_ext in '' $ac_executable_extensions; do
  9300. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9301. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9302. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9303. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9304. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9305. break 2
  9306. fi
  9307. fi
  9308. done
  9309. done
  9310. IFS="$ac_save_IFS"
  9311. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9312. ;;
  9313. esac
  9314. fi
  9315. MSGFMT="$ac_cv_path_MSGFMT"
  9316. if test "$MSGFMT" != ":"; then
  9317. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9318. echo "${ECHO_T}$MSGFMT" >&6; }
  9319. else
  9320. { echo "$as_me:$LINENO: result: no" >&5
  9321. echo "${ECHO_T}no" >&6; }
  9322. fi
  9323. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9324. set dummy gmsgfmt; ac_word=$2
  9325. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9326. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9327. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9328. echo $ECHO_N "(cached) $ECHO_C" >&6
  9329. else
  9330. case $GMSGFMT in
  9331. [\\/]* | ?:[\\/]*)
  9332. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9333. ;;
  9334. *)
  9335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9336. for as_dir in $PATH
  9337. do
  9338. IFS=$as_save_IFS
  9339. test -z "$as_dir" && as_dir=.
  9340. for ac_exec_ext in '' $ac_executable_extensions; do
  9341. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9342. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9343. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9344. break 2
  9345. fi
  9346. done
  9347. done
  9348. IFS=$as_save_IFS
  9349. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9350. ;;
  9351. esac
  9352. fi
  9353. GMSGFMT=$ac_cv_path_GMSGFMT
  9354. if test -n "$GMSGFMT"; then
  9355. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9356. echo "${ECHO_T}$GMSGFMT" >&6; }
  9357. else
  9358. { echo "$as_me:$LINENO: result: no" >&5
  9359. echo "${ECHO_T}no" >&6; }
  9360. fi
  9361. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9362. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9363. *) MSGFMT_015=$MSGFMT ;;
  9364. esac
  9365. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9366. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9367. *) GMSGFMT_015=$GMSGFMT ;;
  9368. esac
  9369. # Prepare PATH_SEPARATOR.
  9370. # The user is always right.
  9371. if test "${PATH_SEPARATOR+set}" != set; then
  9372. echo "#! /bin/sh" >conf$$.sh
  9373. echo "exit 0" >>conf$$.sh
  9374. chmod +x conf$$.sh
  9375. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9376. PATH_SEPARATOR=';'
  9377. else
  9378. PATH_SEPARATOR=:
  9379. fi
  9380. rm -f conf$$.sh
  9381. fi
  9382. # Find out how to test for executable files. Don't use a zero-byte file,
  9383. # as systems may use methods other than mode bits to determine executability.
  9384. cat >conf$$.file <<_ASEOF
  9385. #! /bin/sh
  9386. exit 0
  9387. _ASEOF
  9388. chmod +x conf$$.file
  9389. if test -x conf$$.file >/dev/null 2>&1; then
  9390. ac_executable_p="test -x"
  9391. else
  9392. ac_executable_p="test -f"
  9393. fi
  9394. rm -f conf$$.file
  9395. # Extract the first word of "xgettext", so it can be a program name with args.
  9396. set dummy xgettext; ac_word=$2
  9397. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9398. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9399. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9400. echo $ECHO_N "(cached) $ECHO_C" >&6
  9401. else
  9402. case "$XGETTEXT" in
  9403. [\\/]* | ?:[\\/]*)
  9404. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9405. ;;
  9406. *)
  9407. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9408. for ac_dir in $PATH; do
  9409. IFS="$ac_save_IFS"
  9410. test -z "$ac_dir" && ac_dir=.
  9411. for ac_exec_ext in '' $ac_executable_extensions; do
  9412. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9413. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9414. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9415. (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
  9416. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9417. break 2
  9418. fi
  9419. fi
  9420. done
  9421. done
  9422. IFS="$ac_save_IFS"
  9423. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9424. ;;
  9425. esac
  9426. fi
  9427. XGETTEXT="$ac_cv_path_XGETTEXT"
  9428. if test "$XGETTEXT" != ":"; then
  9429. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9430. echo "${ECHO_T}$XGETTEXT" >&6; }
  9431. else
  9432. { echo "$as_me:$LINENO: result: no" >&5
  9433. echo "${ECHO_T}no" >&6; }
  9434. fi
  9435. rm -f messages.po
  9436. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9437. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9438. *) XGETTEXT_015=$XGETTEXT ;;
  9439. esac
  9440. # Prepare PATH_SEPARATOR.
  9441. # The user is always right.
  9442. if test "${PATH_SEPARATOR+set}" != set; then
  9443. echo "#! /bin/sh" >conf$$.sh
  9444. echo "exit 0" >>conf$$.sh
  9445. chmod +x conf$$.sh
  9446. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9447. PATH_SEPARATOR=';'
  9448. else
  9449. PATH_SEPARATOR=:
  9450. fi
  9451. rm -f conf$$.sh
  9452. fi
  9453. # Find out how to test for executable files. Don't use a zero-byte file,
  9454. # as systems may use methods other than mode bits to determine executability.
  9455. cat >conf$$.file <<_ASEOF
  9456. #! /bin/sh
  9457. exit 0
  9458. _ASEOF
  9459. chmod +x conf$$.file
  9460. if test -x conf$$.file >/dev/null 2>&1; then
  9461. ac_executable_p="test -x"
  9462. else
  9463. ac_executable_p="test -f"
  9464. fi
  9465. rm -f conf$$.file
  9466. # Extract the first word of "msgmerge", so it can be a program name with args.
  9467. set dummy msgmerge; ac_word=$2
  9468. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9469. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9470. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9471. echo $ECHO_N "(cached) $ECHO_C" >&6
  9472. else
  9473. case "$MSGMERGE" in
  9474. [\\/]* | ?:[\\/]*)
  9475. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9476. ;;
  9477. *)
  9478. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9479. for ac_dir in $PATH; do
  9480. IFS="$ac_save_IFS"
  9481. test -z "$ac_dir" && ac_dir=.
  9482. for ac_exec_ext in '' $ac_executable_extensions; do
  9483. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9484. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9485. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9486. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9487. break 2
  9488. fi
  9489. fi
  9490. done
  9491. done
  9492. IFS="$ac_save_IFS"
  9493. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9494. ;;
  9495. esac
  9496. fi
  9497. MSGMERGE="$ac_cv_path_MSGMERGE"
  9498. if test "$MSGMERGE" != ":"; then
  9499. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9500. echo "${ECHO_T}$MSGMERGE" >&6; }
  9501. else
  9502. { echo "$as_me:$LINENO: result: no" >&5
  9503. echo "${ECHO_T}no" >&6; }
  9504. fi
  9505. test -n "$localedir" || localedir='${datadir}/locale'
  9506. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9507. ac_config_commands="$ac_config_commands po-directories"
  9508. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9509. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9510. if test "${ac_cv_gnu_library_2+set}" = set; then
  9511. echo $ECHO_N "(cached) $ECHO_C" >&6
  9512. else
  9513. cat >conftest.$ac_ext <<_ACEOF
  9514. /* confdefs.h. */
  9515. _ACEOF
  9516. cat confdefs.h >>conftest.$ac_ext
  9517. cat >>conftest.$ac_ext <<_ACEOF
  9518. /* end confdefs.h. */
  9519. #include <features.h>
  9520. #ifdef __GNU_LIBRARY__
  9521. #if (__GLIBC__ >= 2)
  9522. Lucky GNU user
  9523. #endif
  9524. #endif
  9525. _ACEOF
  9526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9527. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9528. ac_cv_gnu_library_2=yes
  9529. else
  9530. ac_cv_gnu_library_2=no
  9531. fi
  9532. rm -f conftest*
  9533. fi
  9534. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9535. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9536. GLIBC2="$ac_cv_gnu_library_2"
  9537. CFLAG_VISIBILITY=
  9538. HAVE_VISIBILITY=0
  9539. if test -n "$GCC"; then
  9540. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9541. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9542. if test "${gl_cv_cc_visibility+set}" = set; then
  9543. echo $ECHO_N "(cached) $ECHO_C" >&6
  9544. else
  9545. gl_save_CFLAGS="$CFLAGS"
  9546. CFLAGS="$CFLAGS -fvisibility=hidden"
  9547. cat >conftest.$ac_ext <<_ACEOF
  9548. /* confdefs.h. */
  9549. _ACEOF
  9550. cat confdefs.h >>conftest.$ac_ext
  9551. cat >>conftest.$ac_ext <<_ACEOF
  9552. /* end confdefs.h. */
  9553. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9554. extern __attribute__((__visibility__("default"))) int exportedvar;
  9555. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9556. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9557. int
  9558. main ()
  9559. {
  9560. ;
  9561. return 0;
  9562. }
  9563. _ACEOF
  9564. rm -f conftest.$ac_objext
  9565. if { (ac_try="$ac_compile"
  9566. case "(($ac_try" in
  9567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9568. *) ac_try_echo=$ac_try;;
  9569. esac
  9570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9571. (eval "$ac_compile") 2>conftest.er1
  9572. ac_status=$?
  9573. grep -v '^ *+' conftest.er1 >conftest.err
  9574. rm -f conftest.er1
  9575. cat conftest.err >&5
  9576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9577. (exit $ac_status); } && {
  9578. test -z "$ac_cxx_werror_flag" ||
  9579. test ! -s conftest.err
  9580. } && test -s conftest.$ac_objext; then
  9581. gl_cv_cc_visibility=yes
  9582. else
  9583. echo "$as_me: failed program was:" >&5
  9584. sed 's/^/| /' conftest.$ac_ext >&5
  9585. gl_cv_cc_visibility=no
  9586. fi
  9587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9588. CFLAGS="$gl_save_CFLAGS"
  9589. fi
  9590. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9591. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9592. if test $gl_cv_cc_visibility = yes; then
  9593. CFLAG_VISIBILITY="-fvisibility=hidden"
  9594. HAVE_VISIBILITY=1
  9595. fi
  9596. fi
  9597. cat >>confdefs.h <<_ACEOF
  9598. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9599. _ACEOF
  9600. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9601. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9602. if test "${gl_cv_header_stdint_h+set}" = set; then
  9603. echo $ECHO_N "(cached) $ECHO_C" >&6
  9604. else
  9605. cat >conftest.$ac_ext <<_ACEOF
  9606. /* confdefs.h. */
  9607. _ACEOF
  9608. cat confdefs.h >>conftest.$ac_ext
  9609. cat >>conftest.$ac_ext <<_ACEOF
  9610. /* end confdefs.h. */
  9611. #include <sys/types.h>
  9612. #include <stdint.h>
  9613. int
  9614. main ()
  9615. {
  9616. uintmax_t i = (uintmax_t) -1; return !i;
  9617. ;
  9618. return 0;
  9619. }
  9620. _ACEOF
  9621. rm -f conftest.$ac_objext
  9622. if { (ac_try="$ac_compile"
  9623. case "(($ac_try" in
  9624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9625. *) ac_try_echo=$ac_try;;
  9626. esac
  9627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9628. (eval "$ac_compile") 2>conftest.er1
  9629. ac_status=$?
  9630. grep -v '^ *+' conftest.er1 >conftest.err
  9631. rm -f conftest.er1
  9632. cat conftest.err >&5
  9633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9634. (exit $ac_status); } && {
  9635. test -z "$ac_cxx_werror_flag" ||
  9636. test ! -s conftest.err
  9637. } && test -s conftest.$ac_objext; then
  9638. gl_cv_header_stdint_h=yes
  9639. else
  9640. echo "$as_me: failed program was:" >&5
  9641. sed 's/^/| /' conftest.$ac_ext >&5
  9642. gl_cv_header_stdint_h=no
  9643. fi
  9644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9645. fi
  9646. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9647. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9648. if test $gl_cv_header_stdint_h = yes; then
  9649. cat >>confdefs.h <<_ACEOF
  9650. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9651. _ACEOF
  9652. fi
  9653. for ac_header in stdlib.h unistd.h
  9654. do
  9655. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9656. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9657. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9658. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9659. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9660. echo $ECHO_N "(cached) $ECHO_C" >&6
  9661. fi
  9662. ac_res=`eval echo '${'$as_ac_Header'}'`
  9663. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9664. echo "${ECHO_T}$ac_res" >&6; }
  9665. else
  9666. # Is the header compilable?
  9667. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9668. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9669. cat >conftest.$ac_ext <<_ACEOF
  9670. /* confdefs.h. */
  9671. _ACEOF
  9672. cat confdefs.h >>conftest.$ac_ext
  9673. cat >>conftest.$ac_ext <<_ACEOF
  9674. /* end confdefs.h. */
  9675. $ac_includes_default
  9676. #include <$ac_header>
  9677. _ACEOF
  9678. rm -f conftest.$ac_objext
  9679. if { (ac_try="$ac_compile"
  9680. case "(($ac_try" in
  9681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9682. *) ac_try_echo=$ac_try;;
  9683. esac
  9684. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9685. (eval "$ac_compile") 2>conftest.er1
  9686. ac_status=$?
  9687. grep -v '^ *+' conftest.er1 >conftest.err
  9688. rm -f conftest.er1
  9689. cat conftest.err >&5
  9690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9691. (exit $ac_status); } && {
  9692. test -z "$ac_cxx_werror_flag" ||
  9693. test ! -s conftest.err
  9694. } && test -s conftest.$ac_objext; then
  9695. ac_header_compiler=yes
  9696. else
  9697. echo "$as_me: failed program was:" >&5
  9698. sed 's/^/| /' conftest.$ac_ext >&5
  9699. ac_header_compiler=no
  9700. fi
  9701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9702. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9703. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9704. # Is the header present?
  9705. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9706. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9707. cat >conftest.$ac_ext <<_ACEOF
  9708. /* confdefs.h. */
  9709. _ACEOF
  9710. cat confdefs.h >>conftest.$ac_ext
  9711. cat >>conftest.$ac_ext <<_ACEOF
  9712. /* end confdefs.h. */
  9713. #include <$ac_header>
  9714. _ACEOF
  9715. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9716. case "(($ac_try" in
  9717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9718. *) ac_try_echo=$ac_try;;
  9719. esac
  9720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9721. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9722. ac_status=$?
  9723. grep -v '^ *+' conftest.er1 >conftest.err
  9724. rm -f conftest.er1
  9725. cat conftest.err >&5
  9726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9727. (exit $ac_status); } >/dev/null && {
  9728. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9729. test ! -s conftest.err
  9730. }; then
  9731. ac_header_preproc=yes
  9732. else
  9733. echo "$as_me: failed program was:" >&5
  9734. sed 's/^/| /' conftest.$ac_ext >&5
  9735. ac_header_preproc=no
  9736. fi
  9737. rm -f conftest.err conftest.$ac_ext
  9738. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9739. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9740. # So? What about this header?
  9741. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9742. yes:no: )
  9743. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9744. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9745. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9746. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9747. ac_header_preproc=yes
  9748. ;;
  9749. no:yes:* )
  9750. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9751. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9752. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9753. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9754. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9755. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9756. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9757. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9758. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9759. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9760. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9761. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9762. ( cat <<\_ASBOX
  9763. ## ----------------------------------------------- ##
  9764. ## Report this to t-tujikawa@users.sourceforge.net ##
  9765. ## ----------------------------------------------- ##
  9766. _ASBOX
  9767. ) | sed "s/^/$as_me: WARNING: /" >&2
  9768. ;;
  9769. esac
  9770. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9771. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9772. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9773. echo $ECHO_N "(cached) $ECHO_C" >&6
  9774. else
  9775. eval "$as_ac_Header=\$ac_header_preproc"
  9776. fi
  9777. ac_res=`eval echo '${'$as_ac_Header'}'`
  9778. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9779. echo "${ECHO_T}$ac_res" >&6; }
  9780. fi
  9781. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9782. cat >>confdefs.h <<_ACEOF
  9783. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9784. _ACEOF
  9785. fi
  9786. done
  9787. for ac_func in getpagesize
  9788. do
  9789. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9790. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9791. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9792. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9793. echo $ECHO_N "(cached) $ECHO_C" >&6
  9794. else
  9795. cat >conftest.$ac_ext <<_ACEOF
  9796. /* confdefs.h. */
  9797. _ACEOF
  9798. cat confdefs.h >>conftest.$ac_ext
  9799. cat >>conftest.$ac_ext <<_ACEOF
  9800. /* end confdefs.h. */
  9801. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9802. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9803. #define $ac_func innocuous_$ac_func
  9804. /* System header to define __stub macros and hopefully few prototypes,
  9805. which can conflict with char $ac_func (); below.
  9806. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9807. <limits.h> exists even on freestanding compilers. */
  9808. #ifdef __STDC__
  9809. # include <limits.h>
  9810. #else
  9811. # include <assert.h>
  9812. #endif
  9813. #undef $ac_func
  9814. /* Override any GCC internal prototype to avoid an error.
  9815. Use char because int might match the return type of a GCC
  9816. builtin and then its argument prototype would still apply. */
  9817. #ifdef __cplusplus
  9818. extern "C"
  9819. #endif
  9820. char $ac_func ();
  9821. /* The GNU C library defines this for functions which it implements
  9822. to always fail with ENOSYS. Some functions are actually named
  9823. something starting with __ and the normal name is an alias. */
  9824. #if defined __stub_$ac_func || defined __stub___$ac_func
  9825. choke me
  9826. #endif
  9827. int
  9828. main ()
  9829. {
  9830. return $ac_func ();
  9831. ;
  9832. return 0;
  9833. }
  9834. _ACEOF
  9835. rm -f conftest.$ac_objext conftest$ac_exeext
  9836. if { (ac_try="$ac_link"
  9837. case "(($ac_try" in
  9838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9839. *) ac_try_echo=$ac_try;;
  9840. esac
  9841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9842. (eval "$ac_link") 2>conftest.er1
  9843. ac_status=$?
  9844. grep -v '^ *+' conftest.er1 >conftest.err
  9845. rm -f conftest.er1
  9846. cat conftest.err >&5
  9847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9848. (exit $ac_status); } && {
  9849. test -z "$ac_cxx_werror_flag" ||
  9850. test ! -s conftest.err
  9851. } && test -s conftest$ac_exeext &&
  9852. $as_test_x conftest$ac_exeext; then
  9853. eval "$as_ac_var=yes"
  9854. else
  9855. echo "$as_me: failed program was:" >&5
  9856. sed 's/^/| /' conftest.$ac_ext >&5
  9857. eval "$as_ac_var=no"
  9858. fi
  9859. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9860. conftest$ac_exeext conftest.$ac_ext
  9861. fi
  9862. ac_res=`eval echo '${'$as_ac_var'}'`
  9863. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9864. echo "${ECHO_T}$ac_res" >&6; }
  9865. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9866. cat >>confdefs.h <<_ACEOF
  9867. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9868. _ACEOF
  9869. fi
  9870. done
  9871. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9872. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9873. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9874. echo $ECHO_N "(cached) $ECHO_C" >&6
  9875. else
  9876. if test "$cross_compiling" = yes; then
  9877. ac_cv_func_mmap_fixed_mapped=no
  9878. else
  9879. cat >conftest.$ac_ext <<_ACEOF
  9880. /* confdefs.h. */
  9881. _ACEOF
  9882. cat confdefs.h >>conftest.$ac_ext
  9883. cat >>conftest.$ac_ext <<_ACEOF
  9884. /* end confdefs.h. */
  9885. $ac_includes_default
  9886. /* malloc might have been renamed as rpl_malloc. */
  9887. #undef malloc
  9888. /* Thanks to Mike Haertel and Jim Avera for this test.
  9889. Here is a matrix of mmap possibilities:
  9890. mmap private not fixed
  9891. mmap private fixed at somewhere currently unmapped
  9892. mmap private fixed at somewhere already mapped
  9893. mmap shared not fixed
  9894. mmap shared fixed at somewhere currently unmapped
  9895. mmap shared fixed at somewhere already mapped
  9896. For private mappings, we should verify that changes cannot be read()
  9897. back from the file, nor mmap's back from the file at a different
  9898. address. (There have been systems where private was not correctly
  9899. implemented like the infamous i386 svr4.0, and systems where the
  9900. VM page cache was not coherent with the file system buffer cache
  9901. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9902. For shared mappings, we should conversely verify that changes get
  9903. propagated back to all the places they're supposed to be.
  9904. Grep wants private fixed already mapped.
  9905. The main things grep needs to know about mmap are:
  9906. * does it exist and is it safe to write into the mmap'd area
  9907. * how to use it (BSD variants) */
  9908. #include <fcntl.h>
  9909. #include <sys/mman.h>
  9910. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9911. char *malloc ();
  9912. #endif
  9913. /* This mess was copied from the GNU getpagesize.h. */
  9914. #ifndef HAVE_GETPAGESIZE
  9915. /* Assume that all systems that can run configure have sys/param.h. */
  9916. # ifndef HAVE_SYS_PARAM_H
  9917. # define HAVE_SYS_PARAM_H 1
  9918. # endif
  9919. # ifdef _SC_PAGESIZE
  9920. # define getpagesize() sysconf(_SC_PAGESIZE)
  9921. # else /* no _SC_PAGESIZE */
  9922. # ifdef HAVE_SYS_PARAM_H
  9923. # include <sys/param.h>
  9924. # ifdef EXEC_PAGESIZE
  9925. # define getpagesize() EXEC_PAGESIZE
  9926. # else /* no EXEC_PAGESIZE */
  9927. # ifdef NBPG
  9928. # define getpagesize() NBPG * CLSIZE
  9929. # ifndef CLSIZE
  9930. # define CLSIZE 1
  9931. # endif /* no CLSIZE */
  9932. # else /* no NBPG */
  9933. # ifdef NBPC
  9934. # define getpagesize() NBPC
  9935. # else /* no NBPC */
  9936. # ifdef PAGESIZE
  9937. # define getpagesize() PAGESIZE
  9938. # endif /* PAGESIZE */
  9939. # endif /* no NBPC */
  9940. # endif /* no NBPG */
  9941. # endif /* no EXEC_PAGESIZE */
  9942. # else /* no HAVE_SYS_PARAM_H */
  9943. # define getpagesize() 8192 /* punt totally */
  9944. # endif /* no HAVE_SYS_PARAM_H */
  9945. # endif /* no _SC_PAGESIZE */
  9946. #endif /* no HAVE_GETPAGESIZE */
  9947. int
  9948. main ()
  9949. {
  9950. char *data, *data2, *data3;
  9951. int i, pagesize;
  9952. int fd;
  9953. pagesize = getpagesize ();
  9954. /* First, make a file with some known garbage in it. */
  9955. data = (char *) malloc (pagesize);
  9956. if (!data)
  9957. return 1;
  9958. for (i = 0; i < pagesize; ++i)
  9959. *(data + i) = rand ();
  9960. umask (0);
  9961. fd = creat ("conftest.mmap", 0600);
  9962. if (fd < 0)
  9963. return 1;
  9964. if (write (fd, data, pagesize) != pagesize)
  9965. return 1;
  9966. close (fd);
  9967. /* Next, try to mmap the file at a fixed address which already has
  9968. something else allocated at it. If we can, also make sure that
  9969. we see the same garbage. */
  9970. fd = open ("conftest.mmap", O_RDWR);
  9971. if (fd < 0)
  9972. return 1;
  9973. data2 = (char *) malloc (2 * pagesize);
  9974. if (!data2)
  9975. return 1;
  9976. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9977. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9978. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9979. return 1;
  9980. for (i = 0; i < pagesize; ++i)
  9981. if (*(data + i) != *(data2 + i))
  9982. return 1;
  9983. /* Finally, make sure that changes to the mapped area do not
  9984. percolate back to the file as seen by read(). (This is a bug on
  9985. some variants of i386 svr4.0.) */
  9986. for (i = 0; i < pagesize; ++i)
  9987. *(data2 + i) = *(data2 + i) + 1;
  9988. data3 = (char *) malloc (pagesize);
  9989. if (!data3)
  9990. return 1;
  9991. if (read (fd, data3, pagesize) != pagesize)
  9992. return 1;
  9993. for (i = 0; i < pagesize; ++i)
  9994. if (*(data + i) != *(data3 + i))
  9995. return 1;
  9996. close (fd);
  9997. return 0;
  9998. }
  9999. _ACEOF
  10000. rm -f conftest$ac_exeext
  10001. if { (ac_try="$ac_link"
  10002. case "(($ac_try" in
  10003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10004. *) ac_try_echo=$ac_try;;
  10005. esac
  10006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10007. (eval "$ac_link") 2>&5
  10008. ac_status=$?
  10009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10010. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10011. { (case "(($ac_try" in
  10012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10013. *) ac_try_echo=$ac_try;;
  10014. esac
  10015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10016. (eval "$ac_try") 2>&5
  10017. ac_status=$?
  10018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10019. (exit $ac_status); }; }; then
  10020. ac_cv_func_mmap_fixed_mapped=yes
  10021. else
  10022. echo "$as_me: program exited with status $ac_status" >&5
  10023. echo "$as_me: failed program was:" >&5
  10024. sed 's/^/| /' conftest.$ac_ext >&5
  10025. ( exit $ac_status )
  10026. ac_cv_func_mmap_fixed_mapped=no
  10027. fi
  10028. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10029. fi
  10030. fi
  10031. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10032. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10033. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10034. cat >>confdefs.h <<\_ACEOF
  10035. #define HAVE_MMAP 1
  10036. _ACEOF
  10037. fi
  10038. rm -f conftest.mmap
  10039. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10040. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  10041. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10042. echo $ECHO_N "(cached) $ECHO_C" >&6
  10043. else
  10044. gt_cv_int_divbyzero_sigfpe=
  10045. case "$host_os" in
  10046. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10047. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10048. # compiling. If we were to perform the real test, 1 Crash Report
  10049. # dialog window would pop up.
  10050. case "$host_cpu" in
  10051. i[34567]86 | x86_64)
  10052. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10053. esac
  10054. ;;
  10055. esac
  10056. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10057. if test "$cross_compiling" = yes; then
  10058. # Guess based on the CPU.
  10059. case "$host_cpu" in
  10060. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10061. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10062. *)
  10063. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10064. esac
  10065. else
  10066. cat >conftest.$ac_ext <<_ACEOF
  10067. /* confdefs.h. */
  10068. _ACEOF
  10069. cat confdefs.h >>conftest.$ac_ext
  10070. cat >>conftest.$ac_ext <<_ACEOF
  10071. /* end confdefs.h. */
  10072. #include <stdlib.h>
  10073. #include <signal.h>
  10074. static void
  10075. sigfpe_handler (int sig)
  10076. {
  10077. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10078. exit (sig != SIGFPE);
  10079. }
  10080. int x = 1;
  10081. int y = 0;
  10082. int z;
  10083. int nan;
  10084. int main ()
  10085. {
  10086. signal (SIGFPE, sigfpe_handler);
  10087. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10088. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10089. signal (SIGTRAP, sigfpe_handler);
  10090. #endif
  10091. /* Linux/SPARC yields signal SIGILL. */
  10092. #if defined (__sparc__) && defined (__linux__)
  10093. signal (SIGILL, sigfpe_handler);
  10094. #endif
  10095. z = x / y;
  10096. nan = y / y;
  10097. exit (1);
  10098. }
  10099. _ACEOF
  10100. rm -f conftest$ac_exeext
  10101. if { (ac_try="$ac_link"
  10102. case "(($ac_try" in
  10103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10104. *) ac_try_echo=$ac_try;;
  10105. esac
  10106. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10107. (eval "$ac_link") 2>&5
  10108. ac_status=$?
  10109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10110. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10111. { (case "(($ac_try" in
  10112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10113. *) ac_try_echo=$ac_try;;
  10114. esac
  10115. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10116. (eval "$ac_try") 2>&5
  10117. ac_status=$?
  10118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10119. (exit $ac_status); }; }; then
  10120. gt_cv_int_divbyzero_sigfpe=yes
  10121. else
  10122. echo "$as_me: program exited with status $ac_status" >&5
  10123. echo "$as_me: failed program was:" >&5
  10124. sed 's/^/| /' conftest.$ac_ext >&5
  10125. ( exit $ac_status )
  10126. gt_cv_int_divbyzero_sigfpe=no
  10127. fi
  10128. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10129. fi
  10130. fi
  10131. fi
  10132. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10133. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10134. case "$gt_cv_int_divbyzero_sigfpe" in
  10135. *yes) value=1;;
  10136. *) value=0;;
  10137. esac
  10138. cat >>confdefs.h <<_ACEOF
  10139. #define INTDIV0_RAISES_SIGFPE $value
  10140. _ACEOF
  10141. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10142. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10143. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10144. echo $ECHO_N "(cached) $ECHO_C" >&6
  10145. else
  10146. cat >conftest.$ac_ext <<_ACEOF
  10147. /* confdefs.h. */
  10148. _ACEOF
  10149. cat confdefs.h >>conftest.$ac_ext
  10150. cat >>conftest.$ac_ext <<_ACEOF
  10151. /* end confdefs.h. */
  10152. #include <sys/types.h>
  10153. #include <inttypes.h>
  10154. int
  10155. main ()
  10156. {
  10157. uintmax_t i = (uintmax_t) -1; return !i;
  10158. ;
  10159. return 0;
  10160. }
  10161. _ACEOF
  10162. rm -f conftest.$ac_objext
  10163. if { (ac_try="$ac_compile"
  10164. case "(($ac_try" in
  10165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10166. *) ac_try_echo=$ac_try;;
  10167. esac
  10168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10169. (eval "$ac_compile") 2>conftest.er1
  10170. ac_status=$?
  10171. grep -v '^ *+' conftest.er1 >conftest.err
  10172. rm -f conftest.er1
  10173. cat conftest.err >&5
  10174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10175. (exit $ac_status); } && {
  10176. test -z "$ac_cxx_werror_flag" ||
  10177. test ! -s conftest.err
  10178. } && test -s conftest.$ac_objext; then
  10179. gl_cv_header_inttypes_h=yes
  10180. else
  10181. echo "$as_me: failed program was:" >&5
  10182. sed 's/^/| /' conftest.$ac_ext >&5
  10183. gl_cv_header_inttypes_h=no
  10184. fi
  10185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10186. fi
  10187. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10188. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10189. if test $gl_cv_header_inttypes_h = yes; then
  10190. cat >>confdefs.h <<_ACEOF
  10191. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10192. _ACEOF
  10193. fi
  10194. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10195. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10196. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10197. echo $ECHO_N "(cached) $ECHO_C" >&6
  10198. else
  10199. cat >conftest.$ac_ext <<_ACEOF
  10200. /* confdefs.h. */
  10201. _ACEOF
  10202. cat confdefs.h >>conftest.$ac_ext
  10203. cat >>conftest.$ac_ext <<_ACEOF
  10204. /* end confdefs.h. */
  10205. /* Test preprocessor. */
  10206. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10207. error in preprocessor;
  10208. #endif
  10209. #if ! (18446744073709551615ULL <= -1ull)
  10210. error in preprocessor;
  10211. #endif
  10212. /* Test literals. */
  10213. long long int ll = 9223372036854775807ll;
  10214. long long int nll = -9223372036854775807LL;
  10215. unsigned long long int ull = 18446744073709551615ULL;
  10216. /* Test constant expressions. */
  10217. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10218. ? 1 : -1)];
  10219. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10220. ? 1 : -1)];
  10221. int i = 63;
  10222. int
  10223. main ()
  10224. {
  10225. /* Test availability of runtime routines for shift and division. */
  10226. long long int llmax = 9223372036854775807ll;
  10227. unsigned long long int ullmax = 18446744073709551615ull;
  10228. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10229. | (llmax / ll) | (llmax % ll)
  10230. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10231. | (ullmax / ull) | (ullmax % ull));
  10232. ;
  10233. return 0;
  10234. }
  10235. _ACEOF
  10236. rm -f conftest.$ac_objext conftest$ac_exeext
  10237. if { (ac_try="$ac_link"
  10238. case "(($ac_try" in
  10239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10240. *) ac_try_echo=$ac_try;;
  10241. esac
  10242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10243. (eval "$ac_link") 2>conftest.er1
  10244. ac_status=$?
  10245. grep -v '^ *+' conftest.er1 >conftest.err
  10246. rm -f conftest.er1
  10247. cat conftest.err >&5
  10248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10249. (exit $ac_status); } && {
  10250. test -z "$ac_cxx_werror_flag" ||
  10251. test ! -s conftest.err
  10252. } && test -s conftest$ac_exeext &&
  10253. $as_test_x conftest$ac_exeext; then
  10254. ac_cv_type_unsigned_long_long_int=yes
  10255. else
  10256. echo "$as_me: failed program was:" >&5
  10257. sed 's/^/| /' conftest.$ac_ext >&5
  10258. ac_cv_type_unsigned_long_long_int=no
  10259. fi
  10260. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10261. conftest$ac_exeext conftest.$ac_ext
  10262. fi
  10263. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10264. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10265. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10266. cat >>confdefs.h <<\_ACEOF
  10267. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10268. _ACEOF
  10269. fi
  10270. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10271. test $ac_cv_type_unsigned_long_long_int = yes \
  10272. && ac_type='unsigned long long' \
  10273. || ac_type='unsigned long'
  10274. cat >>confdefs.h <<_ACEOF
  10275. #define uintmax_t $ac_type
  10276. _ACEOF
  10277. else
  10278. cat >>confdefs.h <<\_ACEOF
  10279. #define HAVE_UINTMAX_T 1
  10280. _ACEOF
  10281. fi
  10282. for ac_header in inttypes.h
  10283. do
  10284. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10285. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10286. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10287. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10288. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10289. echo $ECHO_N "(cached) $ECHO_C" >&6
  10290. fi
  10291. ac_res=`eval echo '${'$as_ac_Header'}'`
  10292. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10293. echo "${ECHO_T}$ac_res" >&6; }
  10294. else
  10295. # Is the header compilable?
  10296. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10297. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10298. cat >conftest.$ac_ext <<_ACEOF
  10299. /* confdefs.h. */
  10300. _ACEOF
  10301. cat confdefs.h >>conftest.$ac_ext
  10302. cat >>conftest.$ac_ext <<_ACEOF
  10303. /* end confdefs.h. */
  10304. $ac_includes_default
  10305. #include <$ac_header>
  10306. _ACEOF
  10307. rm -f conftest.$ac_objext
  10308. if { (ac_try="$ac_compile"
  10309. case "(($ac_try" in
  10310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10311. *) ac_try_echo=$ac_try;;
  10312. esac
  10313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10314. (eval "$ac_compile") 2>conftest.er1
  10315. ac_status=$?
  10316. grep -v '^ *+' conftest.er1 >conftest.err
  10317. rm -f conftest.er1
  10318. cat conftest.err >&5
  10319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10320. (exit $ac_status); } && {
  10321. test -z "$ac_cxx_werror_flag" ||
  10322. test ! -s conftest.err
  10323. } && test -s conftest.$ac_objext; then
  10324. ac_header_compiler=yes
  10325. else
  10326. echo "$as_me: failed program was:" >&5
  10327. sed 's/^/| /' conftest.$ac_ext >&5
  10328. ac_header_compiler=no
  10329. fi
  10330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10331. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10332. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10333. # Is the header present?
  10334. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10335. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10336. cat >conftest.$ac_ext <<_ACEOF
  10337. /* confdefs.h. */
  10338. _ACEOF
  10339. cat confdefs.h >>conftest.$ac_ext
  10340. cat >>conftest.$ac_ext <<_ACEOF
  10341. /* end confdefs.h. */
  10342. #include <$ac_header>
  10343. _ACEOF
  10344. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10345. case "(($ac_try" in
  10346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10347. *) ac_try_echo=$ac_try;;
  10348. esac
  10349. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10350. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10351. ac_status=$?
  10352. grep -v '^ *+' conftest.er1 >conftest.err
  10353. rm -f conftest.er1
  10354. cat conftest.err >&5
  10355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10356. (exit $ac_status); } >/dev/null && {
  10357. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10358. test ! -s conftest.err
  10359. }; then
  10360. ac_header_preproc=yes
  10361. else
  10362. echo "$as_me: failed program was:" >&5
  10363. sed 's/^/| /' conftest.$ac_ext >&5
  10364. ac_header_preproc=no
  10365. fi
  10366. rm -f conftest.err conftest.$ac_ext
  10367. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10368. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10369. # So? What about this header?
  10370. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10371. yes:no: )
  10372. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10373. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10374. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10375. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10376. ac_header_preproc=yes
  10377. ;;
  10378. no:yes:* )
  10379. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10380. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10381. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10382. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10383. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10384. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10385. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10386. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10387. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10388. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10389. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10390. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10391. ( cat <<\_ASBOX
  10392. ## ----------------------------------------------- ##
  10393. ## Report this to t-tujikawa@users.sourceforge.net ##
  10394. ## ----------------------------------------------- ##
  10395. _ASBOX
  10396. ) | sed "s/^/$as_me: WARNING: /" >&2
  10397. ;;
  10398. esac
  10399. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10400. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10401. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10402. echo $ECHO_N "(cached) $ECHO_C" >&6
  10403. else
  10404. eval "$as_ac_Header=\$ac_header_preproc"
  10405. fi
  10406. ac_res=`eval echo '${'$as_ac_Header'}'`
  10407. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10408. echo "${ECHO_T}$ac_res" >&6; }
  10409. fi
  10410. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10411. cat >>confdefs.h <<_ACEOF
  10412. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10413. _ACEOF
  10414. fi
  10415. done
  10416. if test $ac_cv_header_inttypes_h = yes; then
  10417. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10418. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10419. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10420. echo $ECHO_N "(cached) $ECHO_C" >&6
  10421. else
  10422. cat >conftest.$ac_ext <<_ACEOF
  10423. /* confdefs.h. */
  10424. _ACEOF
  10425. cat confdefs.h >>conftest.$ac_ext
  10426. cat >>conftest.$ac_ext <<_ACEOF
  10427. /* end confdefs.h. */
  10428. #include <inttypes.h>
  10429. #ifdef PRId32
  10430. char *p = PRId32;
  10431. #endif
  10432. int
  10433. main ()
  10434. {
  10435. ;
  10436. return 0;
  10437. }
  10438. _ACEOF
  10439. rm -f conftest.$ac_objext
  10440. if { (ac_try="$ac_compile"
  10441. case "(($ac_try" in
  10442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10443. *) ac_try_echo=$ac_try;;
  10444. esac
  10445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10446. (eval "$ac_compile") 2>conftest.er1
  10447. ac_status=$?
  10448. grep -v '^ *+' conftest.er1 >conftest.err
  10449. rm -f conftest.er1
  10450. cat conftest.err >&5
  10451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10452. (exit $ac_status); } && {
  10453. test -z "$ac_cxx_werror_flag" ||
  10454. test ! -s conftest.err
  10455. } && test -s conftest.$ac_objext; then
  10456. gt_cv_inttypes_pri_broken=no
  10457. else
  10458. echo "$as_me: failed program was:" >&5
  10459. sed 's/^/| /' conftest.$ac_ext >&5
  10460. gt_cv_inttypes_pri_broken=yes
  10461. fi
  10462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10463. fi
  10464. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10465. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10466. fi
  10467. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10468. cat >>confdefs.h <<_ACEOF
  10469. #define PRI_MACROS_BROKEN 1
  10470. _ACEOF
  10471. PRI_MACROS_BROKEN=1
  10472. else
  10473. PRI_MACROS_BROKEN=0
  10474. fi
  10475. # Check whether --enable-threads was given.
  10476. if test "${enable_threads+set}" = set; then
  10477. enableval=$enable_threads; gl_use_threads=$enableval
  10478. else
  10479. case "$host_os" in
  10480. osf*) gl_use_threads=no ;;
  10481. *) gl_use_threads=yes ;;
  10482. esac
  10483. fi
  10484. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10485. # For using <pthread.h>:
  10486. case "$host_os" in
  10487. osf*)
  10488. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10489. # groks <pthread.h>. cc also understands the flag -pthread, but
  10490. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10491. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10492. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10493. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10494. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10495. ;;
  10496. esac
  10497. # Some systems optimize for single-threaded programs by default, and
  10498. # need special flags to disable these optimizations. For example, the
  10499. # definition of 'errno' in <errno.h>.
  10500. case "$host_os" in
  10501. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10502. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10503. esac
  10504. fi
  10505. if test "X$prefix" = "XNONE"; then
  10506. acl_final_prefix="$ac_default_prefix"
  10507. else
  10508. acl_final_prefix="$prefix"
  10509. fi
  10510. if test "X$exec_prefix" = "XNONE"; then
  10511. acl_final_exec_prefix='${prefix}'
  10512. else
  10513. acl_final_exec_prefix="$exec_prefix"
  10514. fi
  10515. acl_save_prefix="$prefix"
  10516. prefix="$acl_final_prefix"
  10517. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10518. prefix="$acl_save_prefix"
  10519. # Check whether --with-gnu-ld was given.
  10520. if test "${with_gnu_ld+set}" = set; then
  10521. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10522. else
  10523. with_gnu_ld=no
  10524. fi
  10525. # Prepare PATH_SEPARATOR.
  10526. # The user is always right.
  10527. if test "${PATH_SEPARATOR+set}" != set; then
  10528. echo "#! /bin/sh" >conf$$.sh
  10529. echo "exit 0" >>conf$$.sh
  10530. chmod +x conf$$.sh
  10531. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10532. PATH_SEPARATOR=';'
  10533. else
  10534. PATH_SEPARATOR=:
  10535. fi
  10536. rm -f conf$$.sh
  10537. fi
  10538. ac_prog=ld
  10539. if test "$GCC" = yes; then
  10540. # Check if gcc -print-prog-name=ld gives a path.
  10541. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10542. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10543. case $host in
  10544. *-*-mingw*)
  10545. # gcc leaves a trailing carriage return which upsets mingw
  10546. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10547. *)
  10548. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10549. esac
  10550. case $ac_prog in
  10551. # Accept absolute paths.
  10552. [\\/]* | [A-Za-z]:[\\/]*)
  10553. re_direlt='/[^/][^/]*/\.\./'
  10554. # Canonicalize the path of ld
  10555. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10556. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10557. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10558. done
  10559. test -z "$LD" && LD="$ac_prog"
  10560. ;;
  10561. "")
  10562. # If it fails, then pretend we aren't using GCC.
  10563. ac_prog=ld
  10564. ;;
  10565. *)
  10566. # If it is relative, then search for the first ld in PATH.
  10567. with_gnu_ld=unknown
  10568. ;;
  10569. esac
  10570. elif test "$with_gnu_ld" = yes; then
  10571. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10572. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10573. else
  10574. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10575. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10576. fi
  10577. if test "${acl_cv_path_LD+set}" = set; then
  10578. echo $ECHO_N "(cached) $ECHO_C" >&6
  10579. else
  10580. if test -z "$LD"; then
  10581. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10582. for ac_dir in $PATH; do
  10583. test -z "$ac_dir" && ac_dir=.
  10584. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10585. acl_cv_path_LD="$ac_dir/$ac_prog"
  10586. # Check to see if the program is GNU ld. I'd rather use --version,
  10587. # but apparently some GNU ld's only accept -v.
  10588. # Break only if it was the GNU/non-GNU ld that we prefer.
  10589. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10590. *GNU* | *'with BFD'*)
  10591. test "$with_gnu_ld" != no && break ;;
  10592. *)
  10593. test "$with_gnu_ld" != yes && break ;;
  10594. esac
  10595. fi
  10596. done
  10597. IFS="$ac_save_ifs"
  10598. else
  10599. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10600. fi
  10601. fi
  10602. LD="$acl_cv_path_LD"
  10603. if test -n "$LD"; then
  10604. { echo "$as_me:$LINENO: result: $LD" >&5
  10605. echo "${ECHO_T}$LD" >&6; }
  10606. else
  10607. { echo "$as_me:$LINENO: result: no" >&5
  10608. echo "${ECHO_T}no" >&6; }
  10609. fi
  10610. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10611. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10612. { (exit 1); exit 1; }; }
  10613. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10614. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10615. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10616. echo $ECHO_N "(cached) $ECHO_C" >&6
  10617. else
  10618. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10619. case `$LD -v 2>&1 </dev/null` in
  10620. *GNU* | *'with BFD'*)
  10621. acl_cv_prog_gnu_ld=yes ;;
  10622. *)
  10623. acl_cv_prog_gnu_ld=no ;;
  10624. esac
  10625. fi
  10626. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10627. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10628. with_gnu_ld=$acl_cv_prog_gnu_ld
  10629. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10630. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10631. if test "${acl_cv_rpath+set}" = set; then
  10632. echo $ECHO_N "(cached) $ECHO_C" >&6
  10633. else
  10634. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10635. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10636. . ./conftest.sh
  10637. rm -f ./conftest.sh
  10638. acl_cv_rpath=done
  10639. fi
  10640. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10641. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10642. wl="$acl_cv_wl"
  10643. acl_libext="$acl_cv_libext"
  10644. acl_shlibext="$acl_cv_shlibext"
  10645. acl_libname_spec="$acl_cv_libname_spec"
  10646. acl_library_names_spec="$acl_cv_library_names_spec"
  10647. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10648. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10649. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10650. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10651. # Check whether --enable-rpath was given.
  10652. if test "${enable_rpath+set}" = set; then
  10653. enableval=$enable_rpath; :
  10654. else
  10655. enable_rpath=yes
  10656. fi
  10657. acl_libdirstem=lib
  10658. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10659. if test -n "$searchpath"; then
  10660. acl_save_IFS="${IFS= }"; IFS=":"
  10661. for searchdir in $searchpath; do
  10662. if test -d "$searchdir"; then
  10663. case "$searchdir" in
  10664. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10665. *) searchdir=`cd "$searchdir" && pwd`
  10666. case "$searchdir" in
  10667. */lib64 ) acl_libdirstem=lib64 ;;
  10668. esac ;;
  10669. esac
  10670. fi
  10671. done
  10672. IFS="$acl_save_IFS"
  10673. fi
  10674. gl_threads_api=none
  10675. LIBTHREAD=
  10676. LTLIBTHREAD=
  10677. LIBMULTITHREAD=
  10678. LTLIBMULTITHREAD=
  10679. if test "$gl_use_threads" != no; then
  10680. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10681. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10682. gl_have_weak=no
  10683. cat >conftest.$ac_ext <<_ACEOF
  10684. /* confdefs.h. */
  10685. _ACEOF
  10686. cat confdefs.h >>conftest.$ac_ext
  10687. cat >>conftest.$ac_ext <<_ACEOF
  10688. /* end confdefs.h. */
  10689. extern void xyzzy ();
  10690. #pragma weak xyzzy
  10691. int
  10692. main ()
  10693. {
  10694. xyzzy();
  10695. ;
  10696. return 0;
  10697. }
  10698. _ACEOF
  10699. rm -f conftest.$ac_objext conftest$ac_exeext
  10700. if { (ac_try="$ac_link"
  10701. case "(($ac_try" in
  10702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10703. *) ac_try_echo=$ac_try;;
  10704. esac
  10705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10706. (eval "$ac_link") 2>conftest.er1
  10707. ac_status=$?
  10708. grep -v '^ *+' conftest.er1 >conftest.err
  10709. rm -f conftest.er1
  10710. cat conftest.err >&5
  10711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10712. (exit $ac_status); } && {
  10713. test -z "$ac_cxx_werror_flag" ||
  10714. test ! -s conftest.err
  10715. } && test -s conftest$ac_exeext &&
  10716. $as_test_x conftest$ac_exeext; then
  10717. gl_have_weak=yes
  10718. else
  10719. echo "$as_me: failed program was:" >&5
  10720. sed 's/^/| /' conftest.$ac_ext >&5
  10721. fi
  10722. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10723. conftest$ac_exeext conftest.$ac_ext
  10724. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10725. echo "${ECHO_T}$gl_have_weak" >&6; }
  10726. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10727. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10728. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10729. if test "${ac_cv_header_pthread_h+set}" = set; then
  10730. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10731. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10732. if test "${ac_cv_header_pthread_h+set}" = set; then
  10733. echo $ECHO_N "(cached) $ECHO_C" >&6
  10734. fi
  10735. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10736. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10737. else
  10738. # Is the header compilable?
  10739. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10740. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10741. cat >conftest.$ac_ext <<_ACEOF
  10742. /* confdefs.h. */
  10743. _ACEOF
  10744. cat confdefs.h >>conftest.$ac_ext
  10745. cat >>conftest.$ac_ext <<_ACEOF
  10746. /* end confdefs.h. */
  10747. $ac_includes_default
  10748. #include <pthread.h>
  10749. _ACEOF
  10750. rm -f conftest.$ac_objext
  10751. if { (ac_try="$ac_compile"
  10752. case "(($ac_try" in
  10753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10754. *) ac_try_echo=$ac_try;;
  10755. esac
  10756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10757. (eval "$ac_compile") 2>conftest.er1
  10758. ac_status=$?
  10759. grep -v '^ *+' conftest.er1 >conftest.err
  10760. rm -f conftest.er1
  10761. cat conftest.err >&5
  10762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10763. (exit $ac_status); } && {
  10764. test -z "$ac_cxx_werror_flag" ||
  10765. test ! -s conftest.err
  10766. } && test -s conftest.$ac_objext; then
  10767. ac_header_compiler=yes
  10768. else
  10769. echo "$as_me: failed program was:" >&5
  10770. sed 's/^/| /' conftest.$ac_ext >&5
  10771. ac_header_compiler=no
  10772. fi
  10773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10774. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10775. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10776. # Is the header present?
  10777. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10778. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10779. cat >conftest.$ac_ext <<_ACEOF
  10780. /* confdefs.h. */
  10781. _ACEOF
  10782. cat confdefs.h >>conftest.$ac_ext
  10783. cat >>conftest.$ac_ext <<_ACEOF
  10784. /* end confdefs.h. */
  10785. #include <pthread.h>
  10786. _ACEOF
  10787. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10788. case "(($ac_try" in
  10789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10790. *) ac_try_echo=$ac_try;;
  10791. esac
  10792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10793. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10794. ac_status=$?
  10795. grep -v '^ *+' conftest.er1 >conftest.err
  10796. rm -f conftest.er1
  10797. cat conftest.err >&5
  10798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10799. (exit $ac_status); } >/dev/null && {
  10800. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10801. test ! -s conftest.err
  10802. }; then
  10803. ac_header_preproc=yes
  10804. else
  10805. echo "$as_me: failed program was:" >&5
  10806. sed 's/^/| /' conftest.$ac_ext >&5
  10807. ac_header_preproc=no
  10808. fi
  10809. rm -f conftest.err conftest.$ac_ext
  10810. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10811. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10812. # So? What about this header?
  10813. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10814. yes:no: )
  10815. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10816. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10817. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10818. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10819. ac_header_preproc=yes
  10820. ;;
  10821. no:yes:* )
  10822. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10823. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10824. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10825. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10826. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10827. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10828. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10829. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10830. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10831. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10832. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10833. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10834. ( cat <<\_ASBOX
  10835. ## ----------------------------------------------- ##
  10836. ## Report this to t-tujikawa@users.sourceforge.net ##
  10837. ## ----------------------------------------------- ##
  10838. _ASBOX
  10839. ) | sed "s/^/$as_me: WARNING: /" >&2
  10840. ;;
  10841. esac
  10842. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10843. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10844. if test "${ac_cv_header_pthread_h+set}" = set; then
  10845. echo $ECHO_N "(cached) $ECHO_C" >&6
  10846. else
  10847. ac_cv_header_pthread_h=$ac_header_preproc
  10848. fi
  10849. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10850. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10851. fi
  10852. if test $ac_cv_header_pthread_h = yes; then
  10853. gl_have_pthread_h=yes
  10854. else
  10855. gl_have_pthread_h=no
  10856. fi
  10857. if test "$gl_have_pthread_h" = yes; then
  10858. # Other possible tests:
  10859. # -lpthreads (FSU threads, PCthreads)
  10860. # -lgthreads
  10861. gl_have_pthread=
  10862. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10863. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10864. # the second one only in libpthread, and lock.c needs it.
  10865. cat >conftest.$ac_ext <<_ACEOF
  10866. /* confdefs.h. */
  10867. _ACEOF
  10868. cat confdefs.h >>conftest.$ac_ext
  10869. cat >>conftest.$ac_ext <<_ACEOF
  10870. /* end confdefs.h. */
  10871. #include <pthread.h>
  10872. int
  10873. main ()
  10874. {
  10875. pthread_mutex_lock((pthread_mutex_t*)0);
  10876. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10877. ;
  10878. return 0;
  10879. }
  10880. _ACEOF
  10881. rm -f conftest.$ac_objext conftest$ac_exeext
  10882. if { (ac_try="$ac_link"
  10883. case "(($ac_try" in
  10884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10885. *) ac_try_echo=$ac_try;;
  10886. esac
  10887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10888. (eval "$ac_link") 2>conftest.er1
  10889. ac_status=$?
  10890. grep -v '^ *+' conftest.er1 >conftest.err
  10891. rm -f conftest.er1
  10892. cat conftest.err >&5
  10893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10894. (exit $ac_status); } && {
  10895. test -z "$ac_cxx_werror_flag" ||
  10896. test ! -s conftest.err
  10897. } && test -s conftest$ac_exeext &&
  10898. $as_test_x conftest$ac_exeext; then
  10899. gl_have_pthread=yes
  10900. else
  10901. echo "$as_me: failed program was:" >&5
  10902. sed 's/^/| /' conftest.$ac_ext >&5
  10903. fi
  10904. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10905. conftest$ac_exeext conftest.$ac_ext
  10906. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10907. # since it is defined as a macro on OSF/1.)
  10908. if test -n "$gl_have_pthread"; then
  10909. # The program links fine without libpthread. But it may actually
  10910. # need to link with libpthread in order to create multiple threads.
  10911. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10912. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10913. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10914. echo $ECHO_N "(cached) $ECHO_C" >&6
  10915. else
  10916. ac_check_lib_save_LIBS=$LIBS
  10917. LIBS="-lpthread $LIBS"
  10918. cat >conftest.$ac_ext <<_ACEOF
  10919. /* confdefs.h. */
  10920. _ACEOF
  10921. cat confdefs.h >>conftest.$ac_ext
  10922. cat >>conftest.$ac_ext <<_ACEOF
  10923. /* end confdefs.h. */
  10924. /* Override any GCC internal prototype to avoid an error.
  10925. Use char because int might match the return type of a GCC
  10926. builtin and then its argument prototype would still apply. */
  10927. #ifdef __cplusplus
  10928. extern "C"
  10929. #endif
  10930. char pthread_kill ();
  10931. int
  10932. main ()
  10933. {
  10934. return pthread_kill ();
  10935. ;
  10936. return 0;
  10937. }
  10938. _ACEOF
  10939. rm -f conftest.$ac_objext conftest$ac_exeext
  10940. if { (ac_try="$ac_link"
  10941. case "(($ac_try" in
  10942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10943. *) ac_try_echo=$ac_try;;
  10944. esac
  10945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10946. (eval "$ac_link") 2>conftest.er1
  10947. ac_status=$?
  10948. grep -v '^ *+' conftest.er1 >conftest.err
  10949. rm -f conftest.er1
  10950. cat conftest.err >&5
  10951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10952. (exit $ac_status); } && {
  10953. test -z "$ac_cxx_werror_flag" ||
  10954. test ! -s conftest.err
  10955. } && test -s conftest$ac_exeext &&
  10956. $as_test_x conftest$ac_exeext; then
  10957. ac_cv_lib_pthread_pthread_kill=yes
  10958. else
  10959. echo "$as_me: failed program was:" >&5
  10960. sed 's/^/| /' conftest.$ac_ext >&5
  10961. ac_cv_lib_pthread_pthread_kill=no
  10962. fi
  10963. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10964. conftest$ac_exeext conftest.$ac_ext
  10965. LIBS=$ac_check_lib_save_LIBS
  10966. fi
  10967. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10968. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10969. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10970. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10971. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10972. # Therefore pthread_in_use() needs to actually try to create a
  10973. # thread: pthread_create from libc will fail, whereas
  10974. # pthread_create will actually create a thread.
  10975. case "$host_os" in
  10976. solaris* | hpux*)
  10977. cat >>confdefs.h <<\_ACEOF
  10978. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10979. _ACEOF
  10980. esac
  10981. fi
  10982. else
  10983. # Some library is needed. Try libpthread and libc_r.
  10984. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10985. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10986. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10987. echo $ECHO_N "(cached) $ECHO_C" >&6
  10988. else
  10989. ac_check_lib_save_LIBS=$LIBS
  10990. LIBS="-lpthread $LIBS"
  10991. cat >conftest.$ac_ext <<_ACEOF
  10992. /* confdefs.h. */
  10993. _ACEOF
  10994. cat confdefs.h >>conftest.$ac_ext
  10995. cat >>conftest.$ac_ext <<_ACEOF
  10996. /* end confdefs.h. */
  10997. /* Override any GCC internal prototype to avoid an error.
  10998. Use char because int might match the return type of a GCC
  10999. builtin and then its argument prototype would still apply. */
  11000. #ifdef __cplusplus
  11001. extern "C"
  11002. #endif
  11003. char pthread_kill ();
  11004. int
  11005. main ()
  11006. {
  11007. return pthread_kill ();
  11008. ;
  11009. return 0;
  11010. }
  11011. _ACEOF
  11012. rm -f conftest.$ac_objext conftest$ac_exeext
  11013. if { (ac_try="$ac_link"
  11014. case "(($ac_try" in
  11015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11016. *) ac_try_echo=$ac_try;;
  11017. esac
  11018. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11019. (eval "$ac_link") 2>conftest.er1
  11020. ac_status=$?
  11021. grep -v '^ *+' conftest.er1 >conftest.err
  11022. rm -f conftest.er1
  11023. cat conftest.err >&5
  11024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11025. (exit $ac_status); } && {
  11026. test -z "$ac_cxx_werror_flag" ||
  11027. test ! -s conftest.err
  11028. } && test -s conftest$ac_exeext &&
  11029. $as_test_x conftest$ac_exeext; then
  11030. ac_cv_lib_pthread_pthread_kill=yes
  11031. else
  11032. echo "$as_me: failed program was:" >&5
  11033. sed 's/^/| /' conftest.$ac_ext >&5
  11034. ac_cv_lib_pthread_pthread_kill=no
  11035. fi
  11036. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11037. conftest$ac_exeext conftest.$ac_ext
  11038. LIBS=$ac_check_lib_save_LIBS
  11039. fi
  11040. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11041. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11042. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11043. gl_have_pthread=yes
  11044. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11045. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11046. fi
  11047. if test -z "$gl_have_pthread"; then
  11048. # For FreeBSD 4.
  11049. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11050. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  11051. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11052. echo $ECHO_N "(cached) $ECHO_C" >&6
  11053. else
  11054. ac_check_lib_save_LIBS=$LIBS
  11055. LIBS="-lc_r $LIBS"
  11056. cat >conftest.$ac_ext <<_ACEOF
  11057. /* confdefs.h. */
  11058. _ACEOF
  11059. cat confdefs.h >>conftest.$ac_ext
  11060. cat >>conftest.$ac_ext <<_ACEOF
  11061. /* end confdefs.h. */
  11062. /* Override any GCC internal prototype to avoid an error.
  11063. Use char because int might match the return type of a GCC
  11064. builtin and then its argument prototype would still apply. */
  11065. #ifdef __cplusplus
  11066. extern "C"
  11067. #endif
  11068. char pthread_kill ();
  11069. int
  11070. main ()
  11071. {
  11072. return pthread_kill ();
  11073. ;
  11074. return 0;
  11075. }
  11076. _ACEOF
  11077. rm -f conftest.$ac_objext conftest$ac_exeext
  11078. if { (ac_try="$ac_link"
  11079. case "(($ac_try" in
  11080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11081. *) ac_try_echo=$ac_try;;
  11082. esac
  11083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11084. (eval "$ac_link") 2>conftest.er1
  11085. ac_status=$?
  11086. grep -v '^ *+' conftest.er1 >conftest.err
  11087. rm -f conftest.er1
  11088. cat conftest.err >&5
  11089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11090. (exit $ac_status); } && {
  11091. test -z "$ac_cxx_werror_flag" ||
  11092. test ! -s conftest.err
  11093. } && test -s conftest$ac_exeext &&
  11094. $as_test_x conftest$ac_exeext; then
  11095. ac_cv_lib_c_r_pthread_kill=yes
  11096. else
  11097. echo "$as_me: failed program was:" >&5
  11098. sed 's/^/| /' conftest.$ac_ext >&5
  11099. ac_cv_lib_c_r_pthread_kill=no
  11100. fi
  11101. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11102. conftest$ac_exeext conftest.$ac_ext
  11103. LIBS=$ac_check_lib_save_LIBS
  11104. fi
  11105. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11106. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11107. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11108. gl_have_pthread=yes
  11109. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11110. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11111. fi
  11112. fi
  11113. fi
  11114. if test -n "$gl_have_pthread"; then
  11115. gl_threads_api=posix
  11116. cat >>confdefs.h <<\_ACEOF
  11117. #define USE_POSIX_THREADS 1
  11118. _ACEOF
  11119. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11120. if test $gl_have_weak = yes; then
  11121. cat >>confdefs.h <<\_ACEOF
  11122. #define USE_POSIX_THREADS_WEAK 1
  11123. _ACEOF
  11124. LIBTHREAD=
  11125. LTLIBTHREAD=
  11126. fi
  11127. fi
  11128. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11129. # pthread_rwlock_* functions.
  11130. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11131. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11132. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11133. echo $ECHO_N "(cached) $ECHO_C" >&6
  11134. else
  11135. cat >conftest.$ac_ext <<_ACEOF
  11136. /* confdefs.h. */
  11137. _ACEOF
  11138. cat confdefs.h >>conftest.$ac_ext
  11139. cat >>conftest.$ac_ext <<_ACEOF
  11140. /* end confdefs.h. */
  11141. #include <pthread.h>
  11142. typedef pthread_rwlock_t ac__type_new_;
  11143. int
  11144. main ()
  11145. {
  11146. if ((ac__type_new_ *) 0)
  11147. return 0;
  11148. if (sizeof (ac__type_new_))
  11149. return 0;
  11150. ;
  11151. return 0;
  11152. }
  11153. _ACEOF
  11154. rm -f conftest.$ac_objext
  11155. if { (ac_try="$ac_compile"
  11156. case "(($ac_try" in
  11157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11158. *) ac_try_echo=$ac_try;;
  11159. esac
  11160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11161. (eval "$ac_compile") 2>conftest.er1
  11162. ac_status=$?
  11163. grep -v '^ *+' conftest.er1 >conftest.err
  11164. rm -f conftest.er1
  11165. cat conftest.err >&5
  11166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11167. (exit $ac_status); } && {
  11168. test -z "$ac_cxx_werror_flag" ||
  11169. test ! -s conftest.err
  11170. } && test -s conftest.$ac_objext; then
  11171. ac_cv_type_pthread_rwlock_t=yes
  11172. else
  11173. echo "$as_me: failed program was:" >&5
  11174. sed 's/^/| /' conftest.$ac_ext >&5
  11175. ac_cv_type_pthread_rwlock_t=no
  11176. fi
  11177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11178. fi
  11179. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11180. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11181. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11182. cat >>confdefs.h <<\_ACEOF
  11183. #define HAVE_PTHREAD_RWLOCK 1
  11184. _ACEOF
  11185. fi
  11186. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11187. cat >conftest.$ac_ext <<_ACEOF
  11188. /* confdefs.h. */
  11189. _ACEOF
  11190. cat confdefs.h >>conftest.$ac_ext
  11191. cat >>conftest.$ac_ext <<_ACEOF
  11192. /* end confdefs.h. */
  11193. #include <pthread.h>
  11194. int
  11195. main ()
  11196. {
  11197. #if __FreeBSD__ == 4
  11198. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11199. #else
  11200. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11201. return !x;
  11202. #endif
  11203. ;
  11204. return 0;
  11205. }
  11206. _ACEOF
  11207. rm -f conftest.$ac_objext
  11208. if { (ac_try="$ac_compile"
  11209. case "(($ac_try" in
  11210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11211. *) ac_try_echo=$ac_try;;
  11212. esac
  11213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11214. (eval "$ac_compile") 2>conftest.er1
  11215. ac_status=$?
  11216. grep -v '^ *+' conftest.er1 >conftest.err
  11217. rm -f conftest.er1
  11218. cat conftest.err >&5
  11219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11220. (exit $ac_status); } && {
  11221. test -z "$ac_cxx_werror_flag" ||
  11222. test ! -s conftest.err
  11223. } && test -s conftest.$ac_objext; then
  11224. cat >>confdefs.h <<\_ACEOF
  11225. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11226. _ACEOF
  11227. else
  11228. echo "$as_me: failed program was:" >&5
  11229. sed 's/^/| /' conftest.$ac_ext >&5
  11230. fi
  11231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11232. fi
  11233. fi
  11234. fi
  11235. if test -z "$gl_have_pthread"; then
  11236. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11237. gl_have_solaristhread=
  11238. gl_save_LIBS="$LIBS"
  11239. LIBS="$LIBS -lthread"
  11240. cat >conftest.$ac_ext <<_ACEOF
  11241. /* confdefs.h. */
  11242. _ACEOF
  11243. cat confdefs.h >>conftest.$ac_ext
  11244. cat >>conftest.$ac_ext <<_ACEOF
  11245. /* end confdefs.h. */
  11246. #include <thread.h>
  11247. #include <synch.h>
  11248. int
  11249. main ()
  11250. {
  11251. thr_self();
  11252. ;
  11253. return 0;
  11254. }
  11255. _ACEOF
  11256. rm -f conftest.$ac_objext conftest$ac_exeext
  11257. if { (ac_try="$ac_link"
  11258. case "(($ac_try" in
  11259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11260. *) ac_try_echo=$ac_try;;
  11261. esac
  11262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11263. (eval "$ac_link") 2>conftest.er1
  11264. ac_status=$?
  11265. grep -v '^ *+' conftest.er1 >conftest.err
  11266. rm -f conftest.er1
  11267. cat conftest.err >&5
  11268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11269. (exit $ac_status); } && {
  11270. test -z "$ac_cxx_werror_flag" ||
  11271. test ! -s conftest.err
  11272. } && test -s conftest$ac_exeext &&
  11273. $as_test_x conftest$ac_exeext; then
  11274. gl_have_solaristhread=yes
  11275. else
  11276. echo "$as_me: failed program was:" >&5
  11277. sed 's/^/| /' conftest.$ac_ext >&5
  11278. fi
  11279. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11280. conftest$ac_exeext conftest.$ac_ext
  11281. LIBS="$gl_save_LIBS"
  11282. if test -n "$gl_have_solaristhread"; then
  11283. gl_threads_api=solaris
  11284. LIBTHREAD=-lthread
  11285. LTLIBTHREAD=-lthread
  11286. LIBMULTITHREAD="$LIBTHREAD"
  11287. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11288. cat >>confdefs.h <<\_ACEOF
  11289. #define USE_SOLARIS_THREADS 1
  11290. _ACEOF
  11291. if test $gl_have_weak = yes; then
  11292. cat >>confdefs.h <<\_ACEOF
  11293. #define USE_SOLARIS_THREADS_WEAK 1
  11294. _ACEOF
  11295. LIBTHREAD=
  11296. LTLIBTHREAD=
  11297. fi
  11298. fi
  11299. fi
  11300. fi
  11301. if test "$gl_use_threads" = pth; then
  11302. gl_save_CPPFLAGS="$CPPFLAGS"
  11303. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11304. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11305. if test "${ac_cv_libpth_libs+set}" = set; then
  11306. echo $ECHO_N "(cached) $ECHO_C" >&6
  11307. else
  11308. use_additional=yes
  11309. acl_save_prefix="$prefix"
  11310. prefix="$acl_final_prefix"
  11311. acl_save_exec_prefix="$exec_prefix"
  11312. exec_prefix="$acl_final_exec_prefix"
  11313. eval additional_includedir=\"$includedir\"
  11314. eval additional_libdir=\"$libdir\"
  11315. exec_prefix="$acl_save_exec_prefix"
  11316. prefix="$acl_save_prefix"
  11317. # Check whether --with-libpth-prefix was given.
  11318. if test "${with_libpth_prefix+set}" = set; then
  11319. withval=$with_libpth_prefix;
  11320. if test "X$withval" = "Xno"; then
  11321. use_additional=no
  11322. else
  11323. if test "X$withval" = "X"; then
  11324. acl_save_prefix="$prefix"
  11325. prefix="$acl_final_prefix"
  11326. acl_save_exec_prefix="$exec_prefix"
  11327. exec_prefix="$acl_final_exec_prefix"
  11328. eval additional_includedir=\"$includedir\"
  11329. eval additional_libdir=\"$libdir\"
  11330. exec_prefix="$acl_save_exec_prefix"
  11331. prefix="$acl_save_prefix"
  11332. else
  11333. additional_includedir="$withval/include"
  11334. additional_libdir="$withval/$acl_libdirstem"
  11335. fi
  11336. fi
  11337. fi
  11338. LIBPTH=
  11339. LTLIBPTH=
  11340. INCPTH=
  11341. LIBPTH_PREFIX=
  11342. rpathdirs=
  11343. ltrpathdirs=
  11344. names_already_handled=
  11345. names_next_round='pth '
  11346. while test -n "$names_next_round"; do
  11347. names_this_round="$names_next_round"
  11348. names_next_round=
  11349. for name in $names_this_round; do
  11350. already_handled=
  11351. for n in $names_already_handled; do
  11352. if test "$n" = "$name"; then
  11353. already_handled=yes
  11354. break
  11355. fi
  11356. done
  11357. if test -z "$already_handled"; then
  11358. names_already_handled="$names_already_handled $name"
  11359. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11360. eval value=\"\$HAVE_LIB$uppername\"
  11361. if test -n "$value"; then
  11362. if test "$value" = yes; then
  11363. eval value=\"\$LIB$uppername\"
  11364. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11365. eval value=\"\$LTLIB$uppername\"
  11366. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11367. else
  11368. :
  11369. fi
  11370. else
  11371. found_dir=
  11372. found_la=
  11373. found_so=
  11374. found_a=
  11375. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11376. if test -n "$acl_shlibext"; then
  11377. shrext=".$acl_shlibext" # typically: shrext=.so
  11378. else
  11379. shrext=
  11380. fi
  11381. if test $use_additional = yes; then
  11382. dir="$additional_libdir"
  11383. if test -n "$acl_shlibext"; then
  11384. if test -f "$dir/$libname$shrext"; then
  11385. found_dir="$dir"
  11386. found_so="$dir/$libname$shrext"
  11387. else
  11388. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11389. ver=`(cd "$dir" && \
  11390. for f in "$libname$shrext".*; do echo "$f"; done \
  11391. | sed -e "s,^$libname$shrext\\\\.,," \
  11392. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11393. | sed 1q ) 2>/dev/null`
  11394. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11395. found_dir="$dir"
  11396. found_so="$dir/$libname$shrext.$ver"
  11397. fi
  11398. else
  11399. eval library_names=\"$acl_library_names_spec\"
  11400. for f in $library_names; do
  11401. if test -f "$dir/$f"; then
  11402. found_dir="$dir"
  11403. found_so="$dir/$f"
  11404. break
  11405. fi
  11406. done
  11407. fi
  11408. fi
  11409. fi
  11410. if test "X$found_dir" = "X"; then
  11411. if test -f "$dir/$libname.$acl_libext"; then
  11412. found_dir="$dir"
  11413. found_a="$dir/$libname.$acl_libext"
  11414. fi
  11415. fi
  11416. if test "X$found_dir" != "X"; then
  11417. if test -f "$dir/$libname.la"; then
  11418. found_la="$dir/$libname.la"
  11419. fi
  11420. fi
  11421. fi
  11422. if test "X$found_dir" = "X"; then
  11423. for x in $LDFLAGS $LTLIBPTH; 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. case "$x" in
  11432. -L*)
  11433. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11434. if test -n "$acl_shlibext"; then
  11435. if test -f "$dir/$libname$shrext"; then
  11436. found_dir="$dir"
  11437. found_so="$dir/$libname$shrext"
  11438. else
  11439. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11440. ver=`(cd "$dir" && \
  11441. for f in "$libname$shrext".*; do echo "$f"; done \
  11442. | sed -e "s,^$libname$shrext\\\\.,," \
  11443. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11444. | sed 1q ) 2>/dev/null`
  11445. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11446. found_dir="$dir"
  11447. found_so="$dir/$libname$shrext.$ver"
  11448. fi
  11449. else
  11450. eval library_names=\"$acl_library_names_spec\"
  11451. for f in $library_names; do
  11452. if test -f "$dir/$f"; then
  11453. found_dir="$dir"
  11454. found_so="$dir/$f"
  11455. break
  11456. fi
  11457. done
  11458. fi
  11459. fi
  11460. fi
  11461. if test "X$found_dir" = "X"; then
  11462. if test -f "$dir/$libname.$acl_libext"; then
  11463. found_dir="$dir"
  11464. found_a="$dir/$libname.$acl_libext"
  11465. fi
  11466. fi
  11467. if test "X$found_dir" != "X"; then
  11468. if test -f "$dir/$libname.la"; then
  11469. found_la="$dir/$libname.la"
  11470. fi
  11471. fi
  11472. ;;
  11473. esac
  11474. if test "X$found_dir" != "X"; then
  11475. break
  11476. fi
  11477. done
  11478. fi
  11479. if test "X$found_dir" != "X"; then
  11480. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11481. if test "X$found_so" != "X"; then
  11482. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11483. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11484. else
  11485. haveit=
  11486. for x in $ltrpathdirs; do
  11487. if test "X$x" = "X$found_dir"; then
  11488. haveit=yes
  11489. break
  11490. fi
  11491. done
  11492. if test -z "$haveit"; then
  11493. ltrpathdirs="$ltrpathdirs $found_dir"
  11494. fi
  11495. if test "$acl_hardcode_direct" = yes; then
  11496. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11497. else
  11498. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11499. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11500. haveit=
  11501. for x in $rpathdirs; do
  11502. if test "X$x" = "X$found_dir"; then
  11503. haveit=yes
  11504. break
  11505. fi
  11506. done
  11507. if test -z "$haveit"; then
  11508. rpathdirs="$rpathdirs $found_dir"
  11509. fi
  11510. else
  11511. haveit=
  11512. for x in $LDFLAGS $LIBPTH; do
  11513. acl_save_prefix="$prefix"
  11514. prefix="$acl_final_prefix"
  11515. acl_save_exec_prefix="$exec_prefix"
  11516. exec_prefix="$acl_final_exec_prefix"
  11517. eval x=\"$x\"
  11518. exec_prefix="$acl_save_exec_prefix"
  11519. prefix="$acl_save_prefix"
  11520. if test "X$x" = "X-L$found_dir"; then
  11521. haveit=yes
  11522. break
  11523. fi
  11524. done
  11525. if test -z "$haveit"; then
  11526. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11527. fi
  11528. if test "$acl_hardcode_minus_L" != no; then
  11529. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11530. else
  11531. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11532. fi
  11533. fi
  11534. fi
  11535. fi
  11536. else
  11537. if test "X$found_a" != "X"; then
  11538. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11539. else
  11540. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11541. fi
  11542. fi
  11543. additional_includedir=
  11544. case "$found_dir" in
  11545. */$acl_libdirstem | */$acl_libdirstem/)
  11546. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11547. LIBPTH_PREFIX="$basedir"
  11548. additional_includedir="$basedir/include"
  11549. ;;
  11550. esac
  11551. if test "X$additional_includedir" != "X"; then
  11552. if test "X$additional_includedir" != "X/usr/include"; then
  11553. haveit=
  11554. if test "X$additional_includedir" = "X/usr/local/include"; then
  11555. if test -n "$GCC"; then
  11556. case $host_os in
  11557. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11558. esac
  11559. fi
  11560. fi
  11561. if test -z "$haveit"; then
  11562. for x in $CPPFLAGS $INCPTH; do
  11563. acl_save_prefix="$prefix"
  11564. prefix="$acl_final_prefix"
  11565. acl_save_exec_prefix="$exec_prefix"
  11566. exec_prefix="$acl_final_exec_prefix"
  11567. eval x=\"$x\"
  11568. exec_prefix="$acl_save_exec_prefix"
  11569. prefix="$acl_save_prefix"
  11570. if test "X$x" = "X-I$additional_includedir"; then
  11571. haveit=yes
  11572. break
  11573. fi
  11574. done
  11575. if test -z "$haveit"; then
  11576. if test -d "$additional_includedir"; then
  11577. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11578. fi
  11579. fi
  11580. fi
  11581. fi
  11582. fi
  11583. if test -n "$found_la"; then
  11584. save_libdir="$libdir"
  11585. case "$found_la" in
  11586. */* | *\\*) . "$found_la" ;;
  11587. *) . "./$found_la" ;;
  11588. esac
  11589. libdir="$save_libdir"
  11590. for dep in $dependency_libs; do
  11591. case "$dep" in
  11592. -L*)
  11593. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11594. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11595. haveit=
  11596. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11597. if test -n "$GCC"; then
  11598. case $host_os in
  11599. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11600. esac
  11601. fi
  11602. fi
  11603. if test -z "$haveit"; then
  11604. haveit=
  11605. for x in $LDFLAGS $LIBPTH; do
  11606. acl_save_prefix="$prefix"
  11607. prefix="$acl_final_prefix"
  11608. acl_save_exec_prefix="$exec_prefix"
  11609. exec_prefix="$acl_final_exec_prefix"
  11610. eval x=\"$x\"
  11611. exec_prefix="$acl_save_exec_prefix"
  11612. prefix="$acl_save_prefix"
  11613. if test "X$x" = "X-L$additional_libdir"; then
  11614. haveit=yes
  11615. break
  11616. fi
  11617. done
  11618. if test -z "$haveit"; then
  11619. if test -d "$additional_libdir"; then
  11620. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11621. fi
  11622. fi
  11623. haveit=
  11624. for x in $LDFLAGS $LTLIBPTH; do
  11625. acl_save_prefix="$prefix"
  11626. prefix="$acl_final_prefix"
  11627. acl_save_exec_prefix="$exec_prefix"
  11628. exec_prefix="$acl_final_exec_prefix"
  11629. eval x=\"$x\"
  11630. exec_prefix="$acl_save_exec_prefix"
  11631. prefix="$acl_save_prefix"
  11632. if test "X$x" = "X-L$additional_libdir"; then
  11633. haveit=yes
  11634. break
  11635. fi
  11636. done
  11637. if test -z "$haveit"; then
  11638. if test -d "$additional_libdir"; then
  11639. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11640. fi
  11641. fi
  11642. fi
  11643. fi
  11644. ;;
  11645. -R*)
  11646. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11647. if test "$enable_rpath" != no; then
  11648. haveit=
  11649. for x in $rpathdirs; do
  11650. if test "X$x" = "X$dir"; then
  11651. haveit=yes
  11652. break
  11653. fi
  11654. done
  11655. if test -z "$haveit"; then
  11656. rpathdirs="$rpathdirs $dir"
  11657. fi
  11658. haveit=
  11659. for x in $ltrpathdirs; do
  11660. if test "X$x" = "X$dir"; then
  11661. haveit=yes
  11662. break
  11663. fi
  11664. done
  11665. if test -z "$haveit"; then
  11666. ltrpathdirs="$ltrpathdirs $dir"
  11667. fi
  11668. fi
  11669. ;;
  11670. -l*)
  11671. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11672. ;;
  11673. *.la)
  11674. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11675. ;;
  11676. *)
  11677. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11678. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11679. ;;
  11680. esac
  11681. done
  11682. fi
  11683. else
  11684. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11685. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11686. fi
  11687. fi
  11688. fi
  11689. done
  11690. done
  11691. if test "X$rpathdirs" != "X"; then
  11692. if test -n "$acl_hardcode_libdir_separator"; then
  11693. alldirs=
  11694. for found_dir in $rpathdirs; do
  11695. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11696. done
  11697. acl_save_libdir="$libdir"
  11698. libdir="$alldirs"
  11699. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11700. libdir="$acl_save_libdir"
  11701. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11702. else
  11703. for found_dir in $rpathdirs; do
  11704. acl_save_libdir="$libdir"
  11705. libdir="$found_dir"
  11706. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11707. libdir="$acl_save_libdir"
  11708. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11709. done
  11710. fi
  11711. fi
  11712. if test "X$ltrpathdirs" != "X"; then
  11713. for found_dir in $ltrpathdirs; do
  11714. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11715. done
  11716. fi
  11717. ac_cv_libpth_libs="$LIBPTH"
  11718. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11719. ac_cv_libpth_cppflags="$INCPTH"
  11720. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11721. fi
  11722. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11723. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11724. LIBPTH="$ac_cv_libpth_libs"
  11725. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11726. INCPTH="$ac_cv_libpth_cppflags"
  11727. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11728. for element in $INCPTH; do
  11729. haveit=
  11730. for x in $CPPFLAGS; do
  11731. acl_save_prefix="$prefix"
  11732. prefix="$acl_final_prefix"
  11733. acl_save_exec_prefix="$exec_prefix"
  11734. exec_prefix="$acl_final_exec_prefix"
  11735. eval x=\"$x\"
  11736. exec_prefix="$acl_save_exec_prefix"
  11737. prefix="$acl_save_prefix"
  11738. if test "X$x" = "X$element"; then
  11739. haveit=yes
  11740. break
  11741. fi
  11742. done
  11743. if test -z "$haveit"; then
  11744. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11745. fi
  11746. done
  11747. HAVE_LIBPTH=yes
  11748. gl_have_pth=
  11749. gl_save_LIBS="$LIBS"
  11750. LIBS="$LIBS -lpth"
  11751. cat >conftest.$ac_ext <<_ACEOF
  11752. /* confdefs.h. */
  11753. _ACEOF
  11754. cat confdefs.h >>conftest.$ac_ext
  11755. cat >>conftest.$ac_ext <<_ACEOF
  11756. /* end confdefs.h. */
  11757. #include <pth.h>
  11758. int
  11759. main ()
  11760. {
  11761. pth_self();
  11762. ;
  11763. return 0;
  11764. }
  11765. _ACEOF
  11766. rm -f conftest.$ac_objext conftest$ac_exeext
  11767. if { (ac_try="$ac_link"
  11768. case "(($ac_try" in
  11769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11770. *) ac_try_echo=$ac_try;;
  11771. esac
  11772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11773. (eval "$ac_link") 2>conftest.er1
  11774. ac_status=$?
  11775. grep -v '^ *+' conftest.er1 >conftest.err
  11776. rm -f conftest.er1
  11777. cat conftest.err >&5
  11778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11779. (exit $ac_status); } && {
  11780. test -z "$ac_cxx_werror_flag" ||
  11781. test ! -s conftest.err
  11782. } && test -s conftest$ac_exeext &&
  11783. $as_test_x conftest$ac_exeext; then
  11784. gl_have_pth=yes
  11785. else
  11786. echo "$as_me: failed program was:" >&5
  11787. sed 's/^/| /' conftest.$ac_ext >&5
  11788. fi
  11789. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11790. conftest$ac_exeext conftest.$ac_ext
  11791. LIBS="$gl_save_LIBS"
  11792. if test -n "$gl_have_pth"; then
  11793. gl_threads_api=pth
  11794. LIBTHREAD="$LIBPTH"
  11795. LTLIBTHREAD="$LTLIBPTH"
  11796. LIBMULTITHREAD="$LIBTHREAD"
  11797. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11798. cat >>confdefs.h <<\_ACEOF
  11799. #define USE_PTH_THREADS 1
  11800. _ACEOF
  11801. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11802. if test $gl_have_weak = yes; then
  11803. cat >>confdefs.h <<\_ACEOF
  11804. #define USE_PTH_THREADS_WEAK 1
  11805. _ACEOF
  11806. LIBTHREAD=
  11807. LTLIBTHREAD=
  11808. fi
  11809. fi
  11810. else
  11811. CPPFLAGS="$gl_save_CPPFLAGS"
  11812. fi
  11813. fi
  11814. if test -z "$gl_have_pthread"; then
  11815. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11816. if { case "$host_os" in
  11817. mingw*) true;;
  11818. *) false;;
  11819. esac
  11820. }; then
  11821. gl_threads_api=win32
  11822. cat >>confdefs.h <<\_ACEOF
  11823. #define USE_WIN32_THREADS 1
  11824. _ACEOF
  11825. fi
  11826. fi
  11827. fi
  11828. fi
  11829. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11830. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11831. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11832. echo "${ECHO_T}$gl_threads_api" >&6; }
  11833. use_additional=yes
  11834. acl_save_prefix="$prefix"
  11835. prefix="$acl_final_prefix"
  11836. acl_save_exec_prefix="$exec_prefix"
  11837. exec_prefix="$acl_final_exec_prefix"
  11838. eval additional_includedir=\"$includedir\"
  11839. eval additional_libdir=\"$libdir\"
  11840. exec_prefix="$acl_save_exec_prefix"
  11841. prefix="$acl_save_prefix"
  11842. # Check whether --with-libiconv-prefix was given.
  11843. if test "${with_libiconv_prefix+set}" = set; then
  11844. withval=$with_libiconv_prefix;
  11845. if test "X$withval" = "Xno"; then
  11846. use_additional=no
  11847. else
  11848. if test "X$withval" = "X"; then
  11849. acl_save_prefix="$prefix"
  11850. prefix="$acl_final_prefix"
  11851. acl_save_exec_prefix="$exec_prefix"
  11852. exec_prefix="$acl_final_exec_prefix"
  11853. eval additional_includedir=\"$includedir\"
  11854. eval additional_libdir=\"$libdir\"
  11855. exec_prefix="$acl_save_exec_prefix"
  11856. prefix="$acl_save_prefix"
  11857. else
  11858. additional_includedir="$withval/include"
  11859. additional_libdir="$withval/$acl_libdirstem"
  11860. fi
  11861. fi
  11862. fi
  11863. LIBICONV=
  11864. LTLIBICONV=
  11865. INCICONV=
  11866. LIBICONV_PREFIX=
  11867. rpathdirs=
  11868. ltrpathdirs=
  11869. names_already_handled=
  11870. names_next_round='iconv '
  11871. while test -n "$names_next_round"; do
  11872. names_this_round="$names_next_round"
  11873. names_next_round=
  11874. for name in $names_this_round; do
  11875. already_handled=
  11876. for n in $names_already_handled; do
  11877. if test "$n" = "$name"; then
  11878. already_handled=yes
  11879. break
  11880. fi
  11881. done
  11882. if test -z "$already_handled"; then
  11883. names_already_handled="$names_already_handled $name"
  11884. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11885. eval value=\"\$HAVE_LIB$uppername\"
  11886. if test -n "$value"; then
  11887. if test "$value" = yes; then
  11888. eval value=\"\$LIB$uppername\"
  11889. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11890. eval value=\"\$LTLIB$uppername\"
  11891. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11892. else
  11893. :
  11894. fi
  11895. else
  11896. found_dir=
  11897. found_la=
  11898. found_so=
  11899. found_a=
  11900. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11901. if test -n "$acl_shlibext"; then
  11902. shrext=".$acl_shlibext" # typically: shrext=.so
  11903. else
  11904. shrext=
  11905. fi
  11906. if test $use_additional = yes; then
  11907. dir="$additional_libdir"
  11908. if test -n "$acl_shlibext"; then
  11909. if test -f "$dir/$libname$shrext"; then
  11910. found_dir="$dir"
  11911. found_so="$dir/$libname$shrext"
  11912. else
  11913. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11914. ver=`(cd "$dir" && \
  11915. for f in "$libname$shrext".*; do echo "$f"; done \
  11916. | sed -e "s,^$libname$shrext\\\\.,," \
  11917. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11918. | sed 1q ) 2>/dev/null`
  11919. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11920. found_dir="$dir"
  11921. found_so="$dir/$libname$shrext.$ver"
  11922. fi
  11923. else
  11924. eval library_names=\"$acl_library_names_spec\"
  11925. for f in $library_names; do
  11926. if test -f "$dir/$f"; then
  11927. found_dir="$dir"
  11928. found_so="$dir/$f"
  11929. break
  11930. fi
  11931. done
  11932. fi
  11933. fi
  11934. fi
  11935. if test "X$found_dir" = "X"; then
  11936. if test -f "$dir/$libname.$acl_libext"; then
  11937. found_dir="$dir"
  11938. found_a="$dir/$libname.$acl_libext"
  11939. fi
  11940. fi
  11941. if test "X$found_dir" != "X"; then
  11942. if test -f "$dir/$libname.la"; then
  11943. found_la="$dir/$libname.la"
  11944. fi
  11945. fi
  11946. fi
  11947. if test "X$found_dir" = "X"; then
  11948. for x in $LDFLAGS $LTLIBICONV; 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. case "$x" in
  11957. -L*)
  11958. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11959. if test -n "$acl_shlibext"; then
  11960. if test -f "$dir/$libname$shrext"; then
  11961. found_dir="$dir"
  11962. found_so="$dir/$libname$shrext"
  11963. else
  11964. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11965. ver=`(cd "$dir" && \
  11966. for f in "$libname$shrext".*; do echo "$f"; done \
  11967. | sed -e "s,^$libname$shrext\\\\.,," \
  11968. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11969. | sed 1q ) 2>/dev/null`
  11970. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11971. found_dir="$dir"
  11972. found_so="$dir/$libname$shrext.$ver"
  11973. fi
  11974. else
  11975. eval library_names=\"$acl_library_names_spec\"
  11976. for f in $library_names; do
  11977. if test -f "$dir/$f"; then
  11978. found_dir="$dir"
  11979. found_so="$dir/$f"
  11980. break
  11981. fi
  11982. done
  11983. fi
  11984. fi
  11985. fi
  11986. if test "X$found_dir" = "X"; then
  11987. if test -f "$dir/$libname.$acl_libext"; then
  11988. found_dir="$dir"
  11989. found_a="$dir/$libname.$acl_libext"
  11990. fi
  11991. fi
  11992. if test "X$found_dir" != "X"; then
  11993. if test -f "$dir/$libname.la"; then
  11994. found_la="$dir/$libname.la"
  11995. fi
  11996. fi
  11997. ;;
  11998. esac
  11999. if test "X$found_dir" != "X"; then
  12000. break
  12001. fi
  12002. done
  12003. fi
  12004. if test "X$found_dir" != "X"; then
  12005. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12006. if test "X$found_so" != "X"; then
  12007. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12008. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12009. else
  12010. haveit=
  12011. for x in $ltrpathdirs; do
  12012. if test "X$x" = "X$found_dir"; then
  12013. haveit=yes
  12014. break
  12015. fi
  12016. done
  12017. if test -z "$haveit"; then
  12018. ltrpathdirs="$ltrpathdirs $found_dir"
  12019. fi
  12020. if test "$acl_hardcode_direct" = yes; then
  12021. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12022. else
  12023. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12024. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12025. haveit=
  12026. for x in $rpathdirs; do
  12027. if test "X$x" = "X$found_dir"; then
  12028. haveit=yes
  12029. break
  12030. fi
  12031. done
  12032. if test -z "$haveit"; then
  12033. rpathdirs="$rpathdirs $found_dir"
  12034. fi
  12035. else
  12036. haveit=
  12037. for x in $LDFLAGS $LIBICONV; do
  12038. acl_save_prefix="$prefix"
  12039. prefix="$acl_final_prefix"
  12040. acl_save_exec_prefix="$exec_prefix"
  12041. exec_prefix="$acl_final_exec_prefix"
  12042. eval x=\"$x\"
  12043. exec_prefix="$acl_save_exec_prefix"
  12044. prefix="$acl_save_prefix"
  12045. if test "X$x" = "X-L$found_dir"; then
  12046. haveit=yes
  12047. break
  12048. fi
  12049. done
  12050. if test -z "$haveit"; then
  12051. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12052. fi
  12053. if test "$acl_hardcode_minus_L" != no; then
  12054. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12055. else
  12056. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12057. fi
  12058. fi
  12059. fi
  12060. fi
  12061. else
  12062. if test "X$found_a" != "X"; then
  12063. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12064. else
  12065. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12066. fi
  12067. fi
  12068. additional_includedir=
  12069. case "$found_dir" in
  12070. */$acl_libdirstem | */$acl_libdirstem/)
  12071. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12072. LIBICONV_PREFIX="$basedir"
  12073. additional_includedir="$basedir/include"
  12074. ;;
  12075. esac
  12076. if test "X$additional_includedir" != "X"; then
  12077. if test "X$additional_includedir" != "X/usr/include"; then
  12078. haveit=
  12079. if test "X$additional_includedir" = "X/usr/local/include"; then
  12080. if test -n "$GCC"; then
  12081. case $host_os in
  12082. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12083. esac
  12084. fi
  12085. fi
  12086. if test -z "$haveit"; then
  12087. for x in $CPPFLAGS $INCICONV; do
  12088. acl_save_prefix="$prefix"
  12089. prefix="$acl_final_prefix"
  12090. acl_save_exec_prefix="$exec_prefix"
  12091. exec_prefix="$acl_final_exec_prefix"
  12092. eval x=\"$x\"
  12093. exec_prefix="$acl_save_exec_prefix"
  12094. prefix="$acl_save_prefix"
  12095. if test "X$x" = "X-I$additional_includedir"; then
  12096. haveit=yes
  12097. break
  12098. fi
  12099. done
  12100. if test -z "$haveit"; then
  12101. if test -d "$additional_includedir"; then
  12102. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12103. fi
  12104. fi
  12105. fi
  12106. fi
  12107. fi
  12108. if test -n "$found_la"; then
  12109. save_libdir="$libdir"
  12110. case "$found_la" in
  12111. */* | *\\*) . "$found_la" ;;
  12112. *) . "./$found_la" ;;
  12113. esac
  12114. libdir="$save_libdir"
  12115. for dep in $dependency_libs; do
  12116. case "$dep" in
  12117. -L*)
  12118. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12119. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12120. haveit=
  12121. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12122. if test -n "$GCC"; then
  12123. case $host_os in
  12124. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12125. esac
  12126. fi
  12127. fi
  12128. if test -z "$haveit"; then
  12129. haveit=
  12130. for x in $LDFLAGS $LIBICONV; do
  12131. acl_save_prefix="$prefix"
  12132. prefix="$acl_final_prefix"
  12133. acl_save_exec_prefix="$exec_prefix"
  12134. exec_prefix="$acl_final_exec_prefix"
  12135. eval x=\"$x\"
  12136. exec_prefix="$acl_save_exec_prefix"
  12137. prefix="$acl_save_prefix"
  12138. if test "X$x" = "X-L$additional_libdir"; then
  12139. haveit=yes
  12140. break
  12141. fi
  12142. done
  12143. if test -z "$haveit"; then
  12144. if test -d "$additional_libdir"; then
  12145. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12146. fi
  12147. fi
  12148. haveit=
  12149. for x in $LDFLAGS $LTLIBICONV; do
  12150. acl_save_prefix="$prefix"
  12151. prefix="$acl_final_prefix"
  12152. acl_save_exec_prefix="$exec_prefix"
  12153. exec_prefix="$acl_final_exec_prefix"
  12154. eval x=\"$x\"
  12155. exec_prefix="$acl_save_exec_prefix"
  12156. prefix="$acl_save_prefix"
  12157. if test "X$x" = "X-L$additional_libdir"; then
  12158. haveit=yes
  12159. break
  12160. fi
  12161. done
  12162. if test -z "$haveit"; then
  12163. if test -d "$additional_libdir"; then
  12164. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12165. fi
  12166. fi
  12167. fi
  12168. fi
  12169. ;;
  12170. -R*)
  12171. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12172. if test "$enable_rpath" != no; then
  12173. haveit=
  12174. for x in $rpathdirs; do
  12175. if test "X$x" = "X$dir"; then
  12176. haveit=yes
  12177. break
  12178. fi
  12179. done
  12180. if test -z "$haveit"; then
  12181. rpathdirs="$rpathdirs $dir"
  12182. fi
  12183. haveit=
  12184. for x in $ltrpathdirs; do
  12185. if test "X$x" = "X$dir"; then
  12186. haveit=yes
  12187. break
  12188. fi
  12189. done
  12190. if test -z "$haveit"; then
  12191. ltrpathdirs="$ltrpathdirs $dir"
  12192. fi
  12193. fi
  12194. ;;
  12195. -l*)
  12196. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12197. ;;
  12198. *.la)
  12199. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12200. ;;
  12201. *)
  12202. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12203. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12204. ;;
  12205. esac
  12206. done
  12207. fi
  12208. else
  12209. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12210. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12211. fi
  12212. fi
  12213. fi
  12214. done
  12215. done
  12216. if test "X$rpathdirs" != "X"; then
  12217. if test -n "$acl_hardcode_libdir_separator"; then
  12218. alldirs=
  12219. for found_dir in $rpathdirs; do
  12220. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12221. done
  12222. acl_save_libdir="$libdir"
  12223. libdir="$alldirs"
  12224. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12225. libdir="$acl_save_libdir"
  12226. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12227. else
  12228. for found_dir in $rpathdirs; do
  12229. acl_save_libdir="$libdir"
  12230. libdir="$found_dir"
  12231. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12232. libdir="$acl_save_libdir"
  12233. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12234. done
  12235. fi
  12236. fi
  12237. if test "X$ltrpathdirs" != "X"; then
  12238. for found_dir in $ltrpathdirs; do
  12239. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12240. done
  12241. fi
  12242. cat >conftest.$ac_ext <<_ACEOF
  12243. /* confdefs.h. */
  12244. _ACEOF
  12245. cat confdefs.h >>conftest.$ac_ext
  12246. cat >>conftest.$ac_ext <<_ACEOF
  12247. /* end confdefs.h. */
  12248. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12249. int
  12250. main ()
  12251. {
  12252. ;
  12253. return 0;
  12254. }
  12255. _ACEOF
  12256. rm -f conftest.$ac_objext conftest$ac_exeext
  12257. if { (ac_try="$ac_link"
  12258. case "(($ac_try" in
  12259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12260. *) ac_try_echo=$ac_try;;
  12261. esac
  12262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12263. (eval "$ac_link") 2>conftest.er1
  12264. ac_status=$?
  12265. grep -v '^ *+' conftest.er1 >conftest.err
  12266. rm -f conftest.er1
  12267. cat conftest.err >&5
  12268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12269. (exit $ac_status); } && {
  12270. test -z "$ac_cxx_werror_flag" ||
  12271. test ! -s conftest.err
  12272. } && test -s conftest$ac_exeext &&
  12273. $as_test_x conftest$ac_exeext; then
  12274. cat >>confdefs.h <<\_ACEOF
  12275. #define HAVE_BUILTIN_EXPECT 1
  12276. _ACEOF
  12277. else
  12278. echo "$as_me: failed program was:" >&5
  12279. sed 's/^/| /' conftest.$ac_ext >&5
  12280. fi
  12281. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12282. conftest$ac_exeext conftest.$ac_ext
  12283. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12284. do
  12285. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12286. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12287. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12288. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12289. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12290. echo $ECHO_N "(cached) $ECHO_C" >&6
  12291. fi
  12292. ac_res=`eval echo '${'$as_ac_Header'}'`
  12293. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12294. echo "${ECHO_T}$ac_res" >&6; }
  12295. else
  12296. # Is the header compilable?
  12297. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12298. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12299. cat >conftest.$ac_ext <<_ACEOF
  12300. /* confdefs.h. */
  12301. _ACEOF
  12302. cat confdefs.h >>conftest.$ac_ext
  12303. cat >>conftest.$ac_ext <<_ACEOF
  12304. /* end confdefs.h. */
  12305. $ac_includes_default
  12306. #include <$ac_header>
  12307. _ACEOF
  12308. rm -f conftest.$ac_objext
  12309. if { (ac_try="$ac_compile"
  12310. case "(($ac_try" in
  12311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12312. *) ac_try_echo=$ac_try;;
  12313. esac
  12314. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12315. (eval "$ac_compile") 2>conftest.er1
  12316. ac_status=$?
  12317. grep -v '^ *+' conftest.er1 >conftest.err
  12318. rm -f conftest.er1
  12319. cat conftest.err >&5
  12320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12321. (exit $ac_status); } && {
  12322. test -z "$ac_cxx_werror_flag" ||
  12323. test ! -s conftest.err
  12324. } && test -s conftest.$ac_objext; then
  12325. ac_header_compiler=yes
  12326. else
  12327. echo "$as_me: failed program was:" >&5
  12328. sed 's/^/| /' conftest.$ac_ext >&5
  12329. ac_header_compiler=no
  12330. fi
  12331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12332. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12333. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12334. # Is the header present?
  12335. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12336. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12337. cat >conftest.$ac_ext <<_ACEOF
  12338. /* confdefs.h. */
  12339. _ACEOF
  12340. cat confdefs.h >>conftest.$ac_ext
  12341. cat >>conftest.$ac_ext <<_ACEOF
  12342. /* end confdefs.h. */
  12343. #include <$ac_header>
  12344. _ACEOF
  12345. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12346. case "(($ac_try" in
  12347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12348. *) ac_try_echo=$ac_try;;
  12349. esac
  12350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12351. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12352. ac_status=$?
  12353. grep -v '^ *+' conftest.er1 >conftest.err
  12354. rm -f conftest.er1
  12355. cat conftest.err >&5
  12356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12357. (exit $ac_status); } >/dev/null && {
  12358. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12359. test ! -s conftest.err
  12360. }; then
  12361. ac_header_preproc=yes
  12362. else
  12363. echo "$as_me: failed program was:" >&5
  12364. sed 's/^/| /' conftest.$ac_ext >&5
  12365. ac_header_preproc=no
  12366. fi
  12367. rm -f conftest.err conftest.$ac_ext
  12368. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12369. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12370. # So? What about this header?
  12371. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12372. yes:no: )
  12373. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12374. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12375. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12376. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12377. ac_header_preproc=yes
  12378. ;;
  12379. no:yes:* )
  12380. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12381. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12382. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12383. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12384. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12385. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12386. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12387. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12388. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12389. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12390. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12391. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12392. ( cat <<\_ASBOX
  12393. ## ----------------------------------------------- ##
  12394. ## Report this to t-tujikawa@users.sourceforge.net ##
  12395. ## ----------------------------------------------- ##
  12396. _ASBOX
  12397. ) | sed "s/^/$as_me: WARNING: /" >&2
  12398. ;;
  12399. esac
  12400. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12401. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12402. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12403. echo $ECHO_N "(cached) $ECHO_C" >&6
  12404. else
  12405. eval "$as_ac_Header=\$ac_header_preproc"
  12406. fi
  12407. ac_res=`eval echo '${'$as_ac_Header'}'`
  12408. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12409. echo "${ECHO_T}$ac_res" >&6; }
  12410. fi
  12411. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12412. cat >>confdefs.h <<_ACEOF
  12413. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12414. _ACEOF
  12415. fi
  12416. done
  12417. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12418. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12419. argz_next __fsetlocking
  12420. do
  12421. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12422. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12423. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12424. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12425. echo $ECHO_N "(cached) $ECHO_C" >&6
  12426. else
  12427. cat >conftest.$ac_ext <<_ACEOF
  12428. /* confdefs.h. */
  12429. _ACEOF
  12430. cat confdefs.h >>conftest.$ac_ext
  12431. cat >>conftest.$ac_ext <<_ACEOF
  12432. /* end confdefs.h. */
  12433. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12434. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12435. #define $ac_func innocuous_$ac_func
  12436. /* System header to define __stub macros and hopefully few prototypes,
  12437. which can conflict with char $ac_func (); below.
  12438. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12439. <limits.h> exists even on freestanding compilers. */
  12440. #ifdef __STDC__
  12441. # include <limits.h>
  12442. #else
  12443. # include <assert.h>
  12444. #endif
  12445. #undef $ac_func
  12446. /* Override any GCC internal prototype to avoid an error.
  12447. Use char because int might match the return type of a GCC
  12448. builtin and then its argument prototype would still apply. */
  12449. #ifdef __cplusplus
  12450. extern "C"
  12451. #endif
  12452. char $ac_func ();
  12453. /* The GNU C library defines this for functions which it implements
  12454. to always fail with ENOSYS. Some functions are actually named
  12455. something starting with __ and the normal name is an alias. */
  12456. #if defined __stub_$ac_func || defined __stub___$ac_func
  12457. choke me
  12458. #endif
  12459. int
  12460. main ()
  12461. {
  12462. return $ac_func ();
  12463. ;
  12464. return 0;
  12465. }
  12466. _ACEOF
  12467. rm -f conftest.$ac_objext conftest$ac_exeext
  12468. if { (ac_try="$ac_link"
  12469. case "(($ac_try" in
  12470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12471. *) ac_try_echo=$ac_try;;
  12472. esac
  12473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12474. (eval "$ac_link") 2>conftest.er1
  12475. ac_status=$?
  12476. grep -v '^ *+' conftest.er1 >conftest.err
  12477. rm -f conftest.er1
  12478. cat conftest.err >&5
  12479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12480. (exit $ac_status); } && {
  12481. test -z "$ac_cxx_werror_flag" ||
  12482. test ! -s conftest.err
  12483. } && test -s conftest$ac_exeext &&
  12484. $as_test_x conftest$ac_exeext; then
  12485. eval "$as_ac_var=yes"
  12486. else
  12487. echo "$as_me: failed program was:" >&5
  12488. sed 's/^/| /' conftest.$ac_ext >&5
  12489. eval "$as_ac_var=no"
  12490. fi
  12491. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12492. conftest$ac_exeext conftest.$ac_ext
  12493. fi
  12494. ac_res=`eval echo '${'$as_ac_var'}'`
  12495. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12496. echo "${ECHO_T}$ac_res" >&6; }
  12497. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12498. cat >>confdefs.h <<_ACEOF
  12499. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12500. _ACEOF
  12501. fi
  12502. done
  12503. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12504. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12505. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12506. echo $ECHO_N "(cached) $ECHO_C" >&6
  12507. else
  12508. cat >conftest.$ac_ext <<_ACEOF
  12509. /* confdefs.h. */
  12510. _ACEOF
  12511. cat confdefs.h >>conftest.$ac_ext
  12512. cat >>conftest.$ac_ext <<_ACEOF
  12513. /* end confdefs.h. */
  12514. #include <stdio.h>
  12515. int
  12516. main ()
  12517. {
  12518. #ifndef feof_unlocked
  12519. char *p = (char *) feof_unlocked;
  12520. #endif
  12521. ;
  12522. return 0;
  12523. }
  12524. _ACEOF
  12525. rm -f conftest.$ac_objext
  12526. if { (ac_try="$ac_compile"
  12527. case "(($ac_try" in
  12528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12529. *) ac_try_echo=$ac_try;;
  12530. esac
  12531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12532. (eval "$ac_compile") 2>conftest.er1
  12533. ac_status=$?
  12534. grep -v '^ *+' conftest.er1 >conftest.err
  12535. rm -f conftest.er1
  12536. cat conftest.err >&5
  12537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12538. (exit $ac_status); } && {
  12539. test -z "$ac_cxx_werror_flag" ||
  12540. test ! -s conftest.err
  12541. } && test -s conftest.$ac_objext; then
  12542. ac_cv_have_decl_feof_unlocked=yes
  12543. else
  12544. echo "$as_me: failed program was:" >&5
  12545. sed 's/^/| /' conftest.$ac_ext >&5
  12546. ac_cv_have_decl_feof_unlocked=no
  12547. fi
  12548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12549. fi
  12550. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12551. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12552. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12553. gt_value=1
  12554. else
  12555. gt_value=0
  12556. fi
  12557. cat >>confdefs.h <<_ACEOF
  12558. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12559. _ACEOF
  12560. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12561. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12562. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12563. echo $ECHO_N "(cached) $ECHO_C" >&6
  12564. else
  12565. cat >conftest.$ac_ext <<_ACEOF
  12566. /* confdefs.h. */
  12567. _ACEOF
  12568. cat confdefs.h >>conftest.$ac_ext
  12569. cat >>conftest.$ac_ext <<_ACEOF
  12570. /* end confdefs.h. */
  12571. #include <stdio.h>
  12572. int
  12573. main ()
  12574. {
  12575. #ifndef fgets_unlocked
  12576. char *p = (char *) fgets_unlocked;
  12577. #endif
  12578. ;
  12579. return 0;
  12580. }
  12581. _ACEOF
  12582. rm -f conftest.$ac_objext
  12583. if { (ac_try="$ac_compile"
  12584. case "(($ac_try" in
  12585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12586. *) ac_try_echo=$ac_try;;
  12587. esac
  12588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12589. (eval "$ac_compile") 2>conftest.er1
  12590. ac_status=$?
  12591. grep -v '^ *+' conftest.er1 >conftest.err
  12592. rm -f conftest.er1
  12593. cat conftest.err >&5
  12594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12595. (exit $ac_status); } && {
  12596. test -z "$ac_cxx_werror_flag" ||
  12597. test ! -s conftest.err
  12598. } && test -s conftest.$ac_objext; then
  12599. ac_cv_have_decl_fgets_unlocked=yes
  12600. else
  12601. echo "$as_me: failed program was:" >&5
  12602. sed 's/^/| /' conftest.$ac_ext >&5
  12603. ac_cv_have_decl_fgets_unlocked=no
  12604. fi
  12605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12606. fi
  12607. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12608. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12609. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12610. gt_value=1
  12611. else
  12612. gt_value=0
  12613. fi
  12614. cat >>confdefs.h <<_ACEOF
  12615. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12616. _ACEOF
  12617. am_save_CPPFLAGS="$CPPFLAGS"
  12618. for element in $INCICONV; do
  12619. haveit=
  12620. for x in $CPPFLAGS; do
  12621. acl_save_prefix="$prefix"
  12622. prefix="$acl_final_prefix"
  12623. acl_save_exec_prefix="$exec_prefix"
  12624. exec_prefix="$acl_final_exec_prefix"
  12625. eval x=\"$x\"
  12626. exec_prefix="$acl_save_exec_prefix"
  12627. prefix="$acl_save_prefix"
  12628. if test "X$x" = "X$element"; then
  12629. haveit=yes
  12630. break
  12631. fi
  12632. done
  12633. if test -z "$haveit"; then
  12634. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12635. fi
  12636. done
  12637. { echo "$as_me:$LINENO: checking for iconv" >&5
  12638. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12639. if test "${am_cv_func_iconv+set}" = set; then
  12640. echo $ECHO_N "(cached) $ECHO_C" >&6
  12641. else
  12642. am_cv_func_iconv="no, consider installing GNU libiconv"
  12643. am_cv_lib_iconv=no
  12644. cat >conftest.$ac_ext <<_ACEOF
  12645. /* confdefs.h. */
  12646. _ACEOF
  12647. cat confdefs.h >>conftest.$ac_ext
  12648. cat >>conftest.$ac_ext <<_ACEOF
  12649. /* end confdefs.h. */
  12650. #include <stdlib.h>
  12651. #include <iconv.h>
  12652. int
  12653. main ()
  12654. {
  12655. iconv_t cd = iconv_open("","");
  12656. iconv(cd,NULL,NULL,NULL,NULL);
  12657. iconv_close(cd);
  12658. ;
  12659. return 0;
  12660. }
  12661. _ACEOF
  12662. rm -f conftest.$ac_objext conftest$ac_exeext
  12663. if { (ac_try="$ac_link"
  12664. case "(($ac_try" in
  12665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12666. *) ac_try_echo=$ac_try;;
  12667. esac
  12668. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12669. (eval "$ac_link") 2>conftest.er1
  12670. ac_status=$?
  12671. grep -v '^ *+' conftest.er1 >conftest.err
  12672. rm -f conftest.er1
  12673. cat conftest.err >&5
  12674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12675. (exit $ac_status); } && {
  12676. test -z "$ac_cxx_werror_flag" ||
  12677. test ! -s conftest.err
  12678. } && test -s conftest$ac_exeext &&
  12679. $as_test_x conftest$ac_exeext; then
  12680. am_cv_func_iconv=yes
  12681. else
  12682. echo "$as_me: failed program was:" >&5
  12683. sed 's/^/| /' conftest.$ac_ext >&5
  12684. fi
  12685. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12686. conftest$ac_exeext conftest.$ac_ext
  12687. if test "$am_cv_func_iconv" != yes; then
  12688. am_save_LIBS="$LIBS"
  12689. LIBS="$LIBS $LIBICONV"
  12690. cat >conftest.$ac_ext <<_ACEOF
  12691. /* confdefs.h. */
  12692. _ACEOF
  12693. cat confdefs.h >>conftest.$ac_ext
  12694. cat >>conftest.$ac_ext <<_ACEOF
  12695. /* end confdefs.h. */
  12696. #include <stdlib.h>
  12697. #include <iconv.h>
  12698. int
  12699. main ()
  12700. {
  12701. iconv_t cd = iconv_open("","");
  12702. iconv(cd,NULL,NULL,NULL,NULL);
  12703. iconv_close(cd);
  12704. ;
  12705. return 0;
  12706. }
  12707. _ACEOF
  12708. rm -f conftest.$ac_objext conftest$ac_exeext
  12709. if { (ac_try="$ac_link"
  12710. case "(($ac_try" in
  12711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12712. *) ac_try_echo=$ac_try;;
  12713. esac
  12714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12715. (eval "$ac_link") 2>conftest.er1
  12716. ac_status=$?
  12717. grep -v '^ *+' conftest.er1 >conftest.err
  12718. rm -f conftest.er1
  12719. cat conftest.err >&5
  12720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12721. (exit $ac_status); } && {
  12722. test -z "$ac_cxx_werror_flag" ||
  12723. test ! -s conftest.err
  12724. } && test -s conftest$ac_exeext &&
  12725. $as_test_x conftest$ac_exeext; then
  12726. am_cv_lib_iconv=yes
  12727. am_cv_func_iconv=yes
  12728. else
  12729. echo "$as_me: failed program was:" >&5
  12730. sed 's/^/| /' conftest.$ac_ext >&5
  12731. fi
  12732. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12733. conftest$ac_exeext conftest.$ac_ext
  12734. LIBS="$am_save_LIBS"
  12735. fi
  12736. fi
  12737. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12738. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12739. if test "$am_cv_func_iconv" = yes; then
  12740. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12741. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12742. if test "${am_cv_func_iconv_works+set}" = set; then
  12743. echo $ECHO_N "(cached) $ECHO_C" >&6
  12744. else
  12745. am_save_LIBS="$LIBS"
  12746. if test $am_cv_lib_iconv = yes; then
  12747. LIBS="$LIBS $LIBICONV"
  12748. fi
  12749. if test "$cross_compiling" = yes; then
  12750. case "$host_os" in
  12751. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12752. *) am_cv_func_iconv_works="guessing yes" ;;
  12753. esac
  12754. else
  12755. cat >conftest.$ac_ext <<_ACEOF
  12756. /* confdefs.h. */
  12757. _ACEOF
  12758. cat confdefs.h >>conftest.$ac_ext
  12759. cat >>conftest.$ac_ext <<_ACEOF
  12760. /* end confdefs.h. */
  12761. #include <iconv.h>
  12762. #include <string.h>
  12763. int main ()
  12764. {
  12765. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12766. returns. */
  12767. {
  12768. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12769. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12770. {
  12771. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12772. char buf[10];
  12773. const char *inptr = input;
  12774. size_t inbytesleft = strlen (input);
  12775. char *outptr = buf;
  12776. size_t outbytesleft = sizeof (buf);
  12777. size_t res = iconv (cd_utf8_to_88591,
  12778. (char **) &inptr, &inbytesleft,
  12779. &outptr, &outbytesleft);
  12780. if (res == 0)
  12781. return 1;
  12782. }
  12783. }
  12784. #if 0 /* This bug could be worked around by the caller. */
  12785. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12786. {
  12787. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12788. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12789. {
  12790. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12791. char buf[50];
  12792. const char *inptr = input;
  12793. size_t inbytesleft = strlen (input);
  12794. char *outptr = buf;
  12795. size_t outbytesleft = sizeof (buf);
  12796. size_t res = iconv (cd_88591_to_utf8,
  12797. (char **) &inptr, &inbytesleft,
  12798. &outptr, &outbytesleft);
  12799. if ((int)res > 0)
  12800. return 1;
  12801. }
  12802. }
  12803. #endif
  12804. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12805. provided. */
  12806. if (/* Try standardized names. */
  12807. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12808. /* Try IRIX, OSF/1 names. */
  12809. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12810. /* Try AIX names. */
  12811. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12812. /* Try HP-UX names. */
  12813. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12814. return 1;
  12815. return 0;
  12816. }
  12817. _ACEOF
  12818. rm -f conftest$ac_exeext
  12819. if { (ac_try="$ac_link"
  12820. case "(($ac_try" in
  12821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12822. *) ac_try_echo=$ac_try;;
  12823. esac
  12824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12825. (eval "$ac_link") 2>&5
  12826. ac_status=$?
  12827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12828. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12829. { (case "(($ac_try" in
  12830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12831. *) ac_try_echo=$ac_try;;
  12832. esac
  12833. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12834. (eval "$ac_try") 2>&5
  12835. ac_status=$?
  12836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12837. (exit $ac_status); }; }; then
  12838. am_cv_func_iconv_works=yes
  12839. else
  12840. echo "$as_me: program exited with status $ac_status" >&5
  12841. echo "$as_me: failed program was:" >&5
  12842. sed 's/^/| /' conftest.$ac_ext >&5
  12843. ( exit $ac_status )
  12844. am_cv_func_iconv_works=no
  12845. fi
  12846. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12847. fi
  12848. LIBS="$am_save_LIBS"
  12849. fi
  12850. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12851. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12852. case "$am_cv_func_iconv_works" in
  12853. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12854. *) am_func_iconv=yes ;;
  12855. esac
  12856. else
  12857. am_func_iconv=no am_cv_lib_iconv=no
  12858. fi
  12859. if test "$am_func_iconv" = yes; then
  12860. cat >>confdefs.h <<\_ACEOF
  12861. #define HAVE_ICONV 1
  12862. _ACEOF
  12863. fi
  12864. if test "$am_cv_lib_iconv" = yes; then
  12865. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12866. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12867. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12868. echo "${ECHO_T}$LIBICONV" >&6; }
  12869. else
  12870. CPPFLAGS="$am_save_CPPFLAGS"
  12871. LIBICONV=
  12872. LTLIBICONV=
  12873. fi
  12874. if test "$am_cv_func_iconv" = yes; then
  12875. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12876. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12877. if test "${am_cv_proto_iconv+set}" = set; then
  12878. echo $ECHO_N "(cached) $ECHO_C" >&6
  12879. else
  12880. cat >conftest.$ac_ext <<_ACEOF
  12881. /* confdefs.h. */
  12882. _ACEOF
  12883. cat confdefs.h >>conftest.$ac_ext
  12884. cat >>conftest.$ac_ext <<_ACEOF
  12885. /* end confdefs.h. */
  12886. #include <stdlib.h>
  12887. #include <iconv.h>
  12888. extern
  12889. #ifdef __cplusplus
  12890. "C"
  12891. #endif
  12892. #if defined(__STDC__) || defined(__cplusplus)
  12893. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12894. #else
  12895. size_t iconv();
  12896. #endif
  12897. int
  12898. main ()
  12899. {
  12900. ;
  12901. return 0;
  12902. }
  12903. _ACEOF
  12904. rm -f conftest.$ac_objext
  12905. if { (ac_try="$ac_compile"
  12906. case "(($ac_try" in
  12907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12908. *) ac_try_echo=$ac_try;;
  12909. esac
  12910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12911. (eval "$ac_compile") 2>conftest.er1
  12912. ac_status=$?
  12913. grep -v '^ *+' conftest.er1 >conftest.err
  12914. rm -f conftest.er1
  12915. cat conftest.err >&5
  12916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12917. (exit $ac_status); } && {
  12918. test -z "$ac_cxx_werror_flag" ||
  12919. test ! -s conftest.err
  12920. } && test -s conftest.$ac_objext; then
  12921. am_cv_proto_iconv_arg1=""
  12922. else
  12923. echo "$as_me: failed program was:" >&5
  12924. sed 's/^/| /' conftest.$ac_ext >&5
  12925. am_cv_proto_iconv_arg1="const"
  12926. fi
  12927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12928. 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);"
  12929. fi
  12930. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12931. { echo "$as_me:$LINENO: result: ${ac_t:-
  12932. }$am_cv_proto_iconv" >&5
  12933. echo "${ECHO_T}${ac_t:-
  12934. }$am_cv_proto_iconv" >&6; }
  12935. cat >>confdefs.h <<_ACEOF
  12936. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12937. _ACEOF
  12938. fi
  12939. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12940. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12941. if test "${gt_cv_nl_locale_name+set}" = set; then
  12942. echo $ECHO_N "(cached) $ECHO_C" >&6
  12943. else
  12944. cat >conftest.$ac_ext <<_ACEOF
  12945. /* confdefs.h. */
  12946. _ACEOF
  12947. cat confdefs.h >>conftest.$ac_ext
  12948. cat >>conftest.$ac_ext <<_ACEOF
  12949. /* end confdefs.h. */
  12950. #include <langinfo.h>
  12951. #include <locale.h>
  12952. int
  12953. main ()
  12954. {
  12955. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12956. return !cs;
  12957. ;
  12958. return 0;
  12959. }
  12960. _ACEOF
  12961. rm -f conftest.$ac_objext conftest$ac_exeext
  12962. if { (ac_try="$ac_link"
  12963. case "(($ac_try" in
  12964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12965. *) ac_try_echo=$ac_try;;
  12966. esac
  12967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12968. (eval "$ac_link") 2>conftest.er1
  12969. ac_status=$?
  12970. grep -v '^ *+' conftest.er1 >conftest.err
  12971. rm -f conftest.er1
  12972. cat conftest.err >&5
  12973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12974. (exit $ac_status); } && {
  12975. test -z "$ac_cxx_werror_flag" ||
  12976. test ! -s conftest.err
  12977. } && test -s conftest$ac_exeext &&
  12978. $as_test_x conftest$ac_exeext; then
  12979. gt_cv_nl_locale_name=yes
  12980. else
  12981. echo "$as_me: failed program was:" >&5
  12982. sed 's/^/| /' conftest.$ac_ext >&5
  12983. gt_cv_nl_locale_name=no
  12984. fi
  12985. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12986. conftest$ac_exeext conftest.$ac_ext
  12987. fi
  12988. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12989. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12990. if test $gt_cv_nl_locale_name = yes; then
  12991. cat >>confdefs.h <<\_ACEOF
  12992. #define HAVE_NL_LOCALE_NAME 1
  12993. _ACEOF
  12994. fi
  12995. for ac_prog in bison
  12996. do
  12997. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12998. set dummy $ac_prog; ac_word=$2
  12999. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13000. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13001. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13002. echo $ECHO_N "(cached) $ECHO_C" >&6
  13003. else
  13004. if test -n "$INTLBISON"; then
  13005. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13006. else
  13007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13008. for as_dir in $PATH
  13009. do
  13010. IFS=$as_save_IFS
  13011. test -z "$as_dir" && as_dir=.
  13012. for ac_exec_ext in '' $ac_executable_extensions; do
  13013. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13014. ac_cv_prog_INTLBISON="$ac_prog"
  13015. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13016. break 2
  13017. fi
  13018. done
  13019. done
  13020. IFS=$as_save_IFS
  13021. fi
  13022. fi
  13023. INTLBISON=$ac_cv_prog_INTLBISON
  13024. if test -n "$INTLBISON"; then
  13025. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13026. echo "${ECHO_T}$INTLBISON" >&6; }
  13027. else
  13028. { echo "$as_me:$LINENO: result: no" >&5
  13029. echo "${ECHO_T}no" >&6; }
  13030. fi
  13031. test -n "$INTLBISON" && break
  13032. done
  13033. if test -z "$INTLBISON"; then
  13034. ac_verc_fail=yes
  13035. else
  13036. { echo "$as_me:$LINENO: checking version of bison" >&5
  13037. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  13038. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13039. case $ac_prog_version in
  13040. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13041. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13042. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13043. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13044. esac
  13045. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13046. echo "${ECHO_T}$ac_prog_version" >&6; }
  13047. fi
  13048. if test $ac_verc_fail = yes; then
  13049. INTLBISON=:
  13050. fi
  13051. { echo "$as_me:$LINENO: checking for long long int" >&5
  13052. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  13053. if test "${ac_cv_type_long_long_int+set}" = set; then
  13054. echo $ECHO_N "(cached) $ECHO_C" >&6
  13055. else
  13056. cat >conftest.$ac_ext <<_ACEOF
  13057. /* confdefs.h. */
  13058. _ACEOF
  13059. cat confdefs.h >>conftest.$ac_ext
  13060. cat >>conftest.$ac_ext <<_ACEOF
  13061. /* end confdefs.h. */
  13062. /* Test preprocessor. */
  13063. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13064. error in preprocessor;
  13065. #endif
  13066. #if ! (18446744073709551615ULL <= -1ull)
  13067. error in preprocessor;
  13068. #endif
  13069. /* Test literals. */
  13070. long long int ll = 9223372036854775807ll;
  13071. long long int nll = -9223372036854775807LL;
  13072. unsigned long long int ull = 18446744073709551615ULL;
  13073. /* Test constant expressions. */
  13074. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13075. ? 1 : -1)];
  13076. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  13077. ? 1 : -1)];
  13078. int i = 63;
  13079. int
  13080. main ()
  13081. {
  13082. /* Test availability of runtime routines for shift and division. */
  13083. long long int llmax = 9223372036854775807ll;
  13084. unsigned long long int ullmax = 18446744073709551615ull;
  13085. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  13086. | (llmax / ll) | (llmax % ll)
  13087. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  13088. | (ullmax / ull) | (ullmax % ull));
  13089. ;
  13090. return 0;
  13091. }
  13092. _ACEOF
  13093. rm -f conftest.$ac_objext conftest$ac_exeext
  13094. if { (ac_try="$ac_link"
  13095. case "(($ac_try" in
  13096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13097. *) ac_try_echo=$ac_try;;
  13098. esac
  13099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13100. (eval "$ac_link") 2>conftest.er1
  13101. ac_status=$?
  13102. grep -v '^ *+' conftest.er1 >conftest.err
  13103. rm -f conftest.er1
  13104. cat conftest.err >&5
  13105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13106. (exit $ac_status); } && {
  13107. test -z "$ac_cxx_werror_flag" ||
  13108. test ! -s conftest.err
  13109. } && test -s conftest$ac_exeext &&
  13110. $as_test_x conftest$ac_exeext; then
  13111. if test "$cross_compiling" = yes; then
  13112. ac_cv_type_long_long_int=yes
  13113. else
  13114. cat >conftest.$ac_ext <<_ACEOF
  13115. /* confdefs.h. */
  13116. _ACEOF
  13117. cat confdefs.h >>conftest.$ac_ext
  13118. cat >>conftest.$ac_ext <<_ACEOF
  13119. /* end confdefs.h. */
  13120. #include <limits.h>
  13121. #ifndef LLONG_MAX
  13122. # define HALF \
  13123. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13124. # define LLONG_MAX (HALF - 1 + HALF)
  13125. #endif
  13126. int
  13127. main ()
  13128. {
  13129. long long int n = 1;
  13130. int i;
  13131. for (i = 0; ; i++)
  13132. {
  13133. long long int m = n << i;
  13134. if (m >> i != n)
  13135. return 1;
  13136. if (LLONG_MAX / 2 < m)
  13137. break;
  13138. }
  13139. return 0;
  13140. ;
  13141. return 0;
  13142. }
  13143. _ACEOF
  13144. rm -f conftest$ac_exeext
  13145. if { (ac_try="$ac_link"
  13146. case "(($ac_try" in
  13147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13148. *) ac_try_echo=$ac_try;;
  13149. esac
  13150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13151. (eval "$ac_link") 2>&5
  13152. ac_status=$?
  13153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13154. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13155. { (case "(($ac_try" in
  13156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13157. *) ac_try_echo=$ac_try;;
  13158. esac
  13159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13160. (eval "$ac_try") 2>&5
  13161. ac_status=$?
  13162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13163. (exit $ac_status); }; }; then
  13164. ac_cv_type_long_long_int=yes
  13165. else
  13166. echo "$as_me: program exited with status $ac_status" >&5
  13167. echo "$as_me: failed program was:" >&5
  13168. sed 's/^/| /' conftest.$ac_ext >&5
  13169. ( exit $ac_status )
  13170. ac_cv_type_long_long_int=no
  13171. fi
  13172. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13173. fi
  13174. else
  13175. echo "$as_me: failed program was:" >&5
  13176. sed 's/^/| /' conftest.$ac_ext >&5
  13177. ac_cv_type_long_long_int=no
  13178. fi
  13179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13180. conftest$ac_exeext conftest.$ac_ext
  13181. fi
  13182. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13183. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13184. if test $ac_cv_type_long_long_int = yes; then
  13185. cat >>confdefs.h <<\_ACEOF
  13186. #define HAVE_LONG_LONG_INT 1
  13187. _ACEOF
  13188. fi
  13189. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13190. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13191. if test "${gt_cv_c_wchar_t+set}" = set; then
  13192. echo $ECHO_N "(cached) $ECHO_C" >&6
  13193. else
  13194. cat >conftest.$ac_ext <<_ACEOF
  13195. /* confdefs.h. */
  13196. _ACEOF
  13197. cat confdefs.h >>conftest.$ac_ext
  13198. cat >>conftest.$ac_ext <<_ACEOF
  13199. /* end confdefs.h. */
  13200. #include <stddef.h>
  13201. wchar_t foo = (wchar_t)'\0';
  13202. int
  13203. main ()
  13204. {
  13205. ;
  13206. return 0;
  13207. }
  13208. _ACEOF
  13209. rm -f conftest.$ac_objext
  13210. if { (ac_try="$ac_compile"
  13211. case "(($ac_try" in
  13212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13213. *) ac_try_echo=$ac_try;;
  13214. esac
  13215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13216. (eval "$ac_compile") 2>conftest.er1
  13217. ac_status=$?
  13218. grep -v '^ *+' conftest.er1 >conftest.err
  13219. rm -f conftest.er1
  13220. cat conftest.err >&5
  13221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13222. (exit $ac_status); } && {
  13223. test -z "$ac_cxx_werror_flag" ||
  13224. test ! -s conftest.err
  13225. } && test -s conftest.$ac_objext; then
  13226. gt_cv_c_wchar_t=yes
  13227. else
  13228. echo "$as_me: failed program was:" >&5
  13229. sed 's/^/| /' conftest.$ac_ext >&5
  13230. gt_cv_c_wchar_t=no
  13231. fi
  13232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13233. fi
  13234. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13235. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13236. if test $gt_cv_c_wchar_t = yes; then
  13237. cat >>confdefs.h <<\_ACEOF
  13238. #define HAVE_WCHAR_T 1
  13239. _ACEOF
  13240. fi
  13241. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13242. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13243. if test "${gt_cv_c_wint_t+set}" = set; then
  13244. echo $ECHO_N "(cached) $ECHO_C" >&6
  13245. else
  13246. cat >conftest.$ac_ext <<_ACEOF
  13247. /* confdefs.h. */
  13248. _ACEOF
  13249. cat confdefs.h >>conftest.$ac_ext
  13250. cat >>conftest.$ac_ext <<_ACEOF
  13251. /* end confdefs.h. */
  13252. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13253. <wchar.h>.
  13254. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13255. before <wchar.h>. */
  13256. #include <stddef.h>
  13257. #include <stdio.h>
  13258. #include <time.h>
  13259. #include <wchar.h>
  13260. wint_t foo = (wchar_t)'\0';
  13261. int
  13262. main ()
  13263. {
  13264. ;
  13265. return 0;
  13266. }
  13267. _ACEOF
  13268. rm -f conftest.$ac_objext
  13269. if { (ac_try="$ac_compile"
  13270. case "(($ac_try" in
  13271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13272. *) ac_try_echo=$ac_try;;
  13273. esac
  13274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13275. (eval "$ac_compile") 2>conftest.er1
  13276. ac_status=$?
  13277. grep -v '^ *+' conftest.er1 >conftest.err
  13278. rm -f conftest.er1
  13279. cat conftest.err >&5
  13280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13281. (exit $ac_status); } && {
  13282. test -z "$ac_cxx_werror_flag" ||
  13283. test ! -s conftest.err
  13284. } && test -s conftest.$ac_objext; then
  13285. gt_cv_c_wint_t=yes
  13286. else
  13287. echo "$as_me: failed program was:" >&5
  13288. sed 's/^/| /' conftest.$ac_ext >&5
  13289. gt_cv_c_wint_t=no
  13290. fi
  13291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13292. fi
  13293. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13294. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13295. if test $gt_cv_c_wint_t = yes; then
  13296. cat >>confdefs.h <<\_ACEOF
  13297. #define HAVE_WINT_T 1
  13298. _ACEOF
  13299. fi
  13300. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13301. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13302. if test "${gt_cv_c_intmax_t+set}" = set; then
  13303. echo $ECHO_N "(cached) $ECHO_C" >&6
  13304. else
  13305. cat >conftest.$ac_ext <<_ACEOF
  13306. /* confdefs.h. */
  13307. _ACEOF
  13308. cat confdefs.h >>conftest.$ac_ext
  13309. cat >>conftest.$ac_ext <<_ACEOF
  13310. /* end confdefs.h. */
  13311. #include <stddef.h>
  13312. #include <stdlib.h>
  13313. #if HAVE_STDINT_H_WITH_UINTMAX
  13314. #include <stdint.h>
  13315. #endif
  13316. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13317. #include <inttypes.h>
  13318. #endif
  13319. int
  13320. main ()
  13321. {
  13322. intmax_t x = -1;
  13323. return !x;
  13324. ;
  13325. return 0;
  13326. }
  13327. _ACEOF
  13328. rm -f conftest.$ac_objext
  13329. if { (ac_try="$ac_compile"
  13330. case "(($ac_try" in
  13331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13332. *) ac_try_echo=$ac_try;;
  13333. esac
  13334. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13335. (eval "$ac_compile") 2>conftest.er1
  13336. ac_status=$?
  13337. grep -v '^ *+' conftest.er1 >conftest.err
  13338. rm -f conftest.er1
  13339. cat conftest.err >&5
  13340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13341. (exit $ac_status); } && {
  13342. test -z "$ac_cxx_werror_flag" ||
  13343. test ! -s conftest.err
  13344. } && test -s conftest.$ac_objext; then
  13345. gt_cv_c_intmax_t=yes
  13346. else
  13347. echo "$as_me: failed program was:" >&5
  13348. sed 's/^/| /' conftest.$ac_ext >&5
  13349. gt_cv_c_intmax_t=no
  13350. fi
  13351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13352. fi
  13353. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13354. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13355. if test $gt_cv_c_intmax_t = yes; then
  13356. cat >>confdefs.h <<\_ACEOF
  13357. #define HAVE_INTMAX_T 1
  13358. _ACEOF
  13359. fi
  13360. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13361. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13362. if test "${gt_cv_func_printf_posix+set}" = set; then
  13363. echo $ECHO_N "(cached) $ECHO_C" >&6
  13364. else
  13365. if test "$cross_compiling" = yes; then
  13366. cat >conftest.$ac_ext <<_ACEOF
  13367. /* confdefs.h. */
  13368. _ACEOF
  13369. cat confdefs.h >>conftest.$ac_ext
  13370. cat >>conftest.$ac_ext <<_ACEOF
  13371. /* end confdefs.h. */
  13372. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13373. notposix
  13374. #endif
  13375. _ACEOF
  13376. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13377. $EGREP "notposix" >/dev/null 2>&1; then
  13378. gt_cv_func_printf_posix="guessing no"
  13379. else
  13380. gt_cv_func_printf_posix="guessing yes"
  13381. fi
  13382. rm -f conftest*
  13383. else
  13384. cat >conftest.$ac_ext <<_ACEOF
  13385. /* confdefs.h. */
  13386. _ACEOF
  13387. cat confdefs.h >>conftest.$ac_ext
  13388. cat >>conftest.$ac_ext <<_ACEOF
  13389. /* end confdefs.h. */
  13390. #include <stdio.h>
  13391. #include <string.h>
  13392. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13393. dollar expansion (possibly an autoconf bug). */
  13394. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13395. static char buf[100];
  13396. int main ()
  13397. {
  13398. sprintf (buf, format, 33, 55);
  13399. return (strcmp (buf, "55 33") != 0);
  13400. }
  13401. _ACEOF
  13402. rm -f conftest$ac_exeext
  13403. if { (ac_try="$ac_link"
  13404. case "(($ac_try" in
  13405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13406. *) ac_try_echo=$ac_try;;
  13407. esac
  13408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13409. (eval "$ac_link") 2>&5
  13410. ac_status=$?
  13411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13412. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13413. { (case "(($ac_try" in
  13414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13415. *) ac_try_echo=$ac_try;;
  13416. esac
  13417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13418. (eval "$ac_try") 2>&5
  13419. ac_status=$?
  13420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13421. (exit $ac_status); }; }; then
  13422. gt_cv_func_printf_posix=yes
  13423. else
  13424. echo "$as_me: program exited with status $ac_status" >&5
  13425. echo "$as_me: failed program was:" >&5
  13426. sed 's/^/| /' conftest.$ac_ext >&5
  13427. ( exit $ac_status )
  13428. gt_cv_func_printf_posix=no
  13429. fi
  13430. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13431. fi
  13432. fi
  13433. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13434. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13435. case $gt_cv_func_printf_posix in
  13436. *yes)
  13437. cat >>confdefs.h <<\_ACEOF
  13438. #define HAVE_POSIX_PRINTF 1
  13439. _ACEOF
  13440. ;;
  13441. esac
  13442. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13443. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13444. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13445. echo $ECHO_N "(cached) $ECHO_C" >&6
  13446. else
  13447. cat >conftest.$ac_ext <<_ACEOF
  13448. /* confdefs.h. */
  13449. _ACEOF
  13450. cat confdefs.h >>conftest.$ac_ext
  13451. cat >>conftest.$ac_ext <<_ACEOF
  13452. /* end confdefs.h. */
  13453. #include <features.h>
  13454. #ifdef __GNU_LIBRARY__
  13455. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13456. Lucky GNU user
  13457. #endif
  13458. #endif
  13459. _ACEOF
  13460. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13461. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13462. ac_cv_gnu_library_2_1=yes
  13463. else
  13464. ac_cv_gnu_library_2_1=no
  13465. fi
  13466. rm -f conftest*
  13467. fi
  13468. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13469. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13470. GLIBC21="$ac_cv_gnu_library_2_1"
  13471. for ac_header in stdint.h
  13472. do
  13473. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13474. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13475. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13476. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13477. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13478. echo $ECHO_N "(cached) $ECHO_C" >&6
  13479. fi
  13480. ac_res=`eval echo '${'$as_ac_Header'}'`
  13481. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13482. echo "${ECHO_T}$ac_res" >&6; }
  13483. else
  13484. # Is the header compilable?
  13485. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13486. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13487. cat >conftest.$ac_ext <<_ACEOF
  13488. /* confdefs.h. */
  13489. _ACEOF
  13490. cat confdefs.h >>conftest.$ac_ext
  13491. cat >>conftest.$ac_ext <<_ACEOF
  13492. /* end confdefs.h. */
  13493. $ac_includes_default
  13494. #include <$ac_header>
  13495. _ACEOF
  13496. rm -f conftest.$ac_objext
  13497. if { (ac_try="$ac_compile"
  13498. case "(($ac_try" in
  13499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13500. *) ac_try_echo=$ac_try;;
  13501. esac
  13502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13503. (eval "$ac_compile") 2>conftest.er1
  13504. ac_status=$?
  13505. grep -v '^ *+' conftest.er1 >conftest.err
  13506. rm -f conftest.er1
  13507. cat conftest.err >&5
  13508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13509. (exit $ac_status); } && {
  13510. test -z "$ac_cxx_werror_flag" ||
  13511. test ! -s conftest.err
  13512. } && test -s conftest.$ac_objext; then
  13513. ac_header_compiler=yes
  13514. else
  13515. echo "$as_me: failed program was:" >&5
  13516. sed 's/^/| /' conftest.$ac_ext >&5
  13517. ac_header_compiler=no
  13518. fi
  13519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13520. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13521. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13522. # Is the header present?
  13523. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13524. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13525. cat >conftest.$ac_ext <<_ACEOF
  13526. /* confdefs.h. */
  13527. _ACEOF
  13528. cat confdefs.h >>conftest.$ac_ext
  13529. cat >>conftest.$ac_ext <<_ACEOF
  13530. /* end confdefs.h. */
  13531. #include <$ac_header>
  13532. _ACEOF
  13533. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13534. case "(($ac_try" in
  13535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13536. *) ac_try_echo=$ac_try;;
  13537. esac
  13538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13539. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13540. ac_status=$?
  13541. grep -v '^ *+' conftest.er1 >conftest.err
  13542. rm -f conftest.er1
  13543. cat conftest.err >&5
  13544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13545. (exit $ac_status); } >/dev/null && {
  13546. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13547. test ! -s conftest.err
  13548. }; then
  13549. ac_header_preproc=yes
  13550. else
  13551. echo "$as_me: failed program was:" >&5
  13552. sed 's/^/| /' conftest.$ac_ext >&5
  13553. ac_header_preproc=no
  13554. fi
  13555. rm -f conftest.err conftest.$ac_ext
  13556. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13557. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13558. # So? What about this header?
  13559. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13560. yes:no: )
  13561. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13562. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13563. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13564. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13565. ac_header_preproc=yes
  13566. ;;
  13567. no:yes:* )
  13568. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13569. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13570. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13571. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13572. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13573. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13574. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13575. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13576. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13577. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13578. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13579. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13580. ( cat <<\_ASBOX
  13581. ## ----------------------------------------------- ##
  13582. ## Report this to t-tujikawa@users.sourceforge.net ##
  13583. ## ----------------------------------------------- ##
  13584. _ASBOX
  13585. ) | sed "s/^/$as_me: WARNING: /" >&2
  13586. ;;
  13587. esac
  13588. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13589. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13590. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13591. echo $ECHO_N "(cached) $ECHO_C" >&6
  13592. else
  13593. eval "$as_ac_Header=\$ac_header_preproc"
  13594. fi
  13595. ac_res=`eval echo '${'$as_ac_Header'}'`
  13596. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13597. echo "${ECHO_T}$ac_res" >&6; }
  13598. fi
  13599. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13600. cat >>confdefs.h <<_ACEOF
  13601. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13602. _ACEOF
  13603. fi
  13604. done
  13605. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13606. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13607. if test "${gl_cv_size_max+set}" = set; then
  13608. echo $ECHO_N "(cached) $ECHO_C" >&6
  13609. else
  13610. gl_cv_size_max=
  13611. cat >conftest.$ac_ext <<_ACEOF
  13612. /* confdefs.h. */
  13613. _ACEOF
  13614. cat confdefs.h >>conftest.$ac_ext
  13615. cat >>conftest.$ac_ext <<_ACEOF
  13616. /* end confdefs.h. */
  13617. #include <limits.h>
  13618. #if HAVE_STDINT_H
  13619. #include <stdint.h>
  13620. #endif
  13621. #ifdef SIZE_MAX
  13622. Found it
  13623. #endif
  13624. _ACEOF
  13625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13626. $EGREP "Found it" >/dev/null 2>&1; then
  13627. gl_cv_size_max=yes
  13628. fi
  13629. rm -f conftest*
  13630. if test -z "$gl_cv_size_max"; then
  13631. if test "$cross_compiling" = yes; then
  13632. # Depending upon the size, compute the lo and hi bounds.
  13633. cat >conftest.$ac_ext <<_ACEOF
  13634. /* confdefs.h. */
  13635. _ACEOF
  13636. cat confdefs.h >>conftest.$ac_ext
  13637. cat >>conftest.$ac_ext <<_ACEOF
  13638. /* end confdefs.h. */
  13639. #include <stddef.h>
  13640. #include <limits.h>
  13641. int
  13642. main ()
  13643. {
  13644. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13645. test_array [0] = 0
  13646. ;
  13647. return 0;
  13648. }
  13649. _ACEOF
  13650. rm -f conftest.$ac_objext
  13651. if { (ac_try="$ac_compile"
  13652. case "(($ac_try" in
  13653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13654. *) ac_try_echo=$ac_try;;
  13655. esac
  13656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13657. (eval "$ac_compile") 2>conftest.er1
  13658. ac_status=$?
  13659. grep -v '^ *+' conftest.er1 >conftest.err
  13660. rm -f conftest.er1
  13661. cat conftest.err >&5
  13662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13663. (exit $ac_status); } && {
  13664. test -z "$ac_cxx_werror_flag" ||
  13665. test ! -s conftest.err
  13666. } && test -s conftest.$ac_objext; then
  13667. ac_lo=0 ac_mid=0
  13668. while :; do
  13669. cat >conftest.$ac_ext <<_ACEOF
  13670. /* confdefs.h. */
  13671. _ACEOF
  13672. cat confdefs.h >>conftest.$ac_ext
  13673. cat >>conftest.$ac_ext <<_ACEOF
  13674. /* end confdefs.h. */
  13675. #include <stddef.h>
  13676. #include <limits.h>
  13677. int
  13678. main ()
  13679. {
  13680. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13681. test_array [0] = 0
  13682. ;
  13683. return 0;
  13684. }
  13685. _ACEOF
  13686. rm -f conftest.$ac_objext
  13687. if { (ac_try="$ac_compile"
  13688. case "(($ac_try" in
  13689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13690. *) ac_try_echo=$ac_try;;
  13691. esac
  13692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13693. (eval "$ac_compile") 2>conftest.er1
  13694. ac_status=$?
  13695. grep -v '^ *+' conftest.er1 >conftest.err
  13696. rm -f conftest.er1
  13697. cat conftest.err >&5
  13698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13699. (exit $ac_status); } && {
  13700. test -z "$ac_cxx_werror_flag" ||
  13701. test ! -s conftest.err
  13702. } && test -s conftest.$ac_objext; then
  13703. ac_hi=$ac_mid; break
  13704. else
  13705. echo "$as_me: failed program was:" >&5
  13706. sed 's/^/| /' conftest.$ac_ext >&5
  13707. ac_lo=`expr $ac_mid + 1`
  13708. if test $ac_lo -le $ac_mid; then
  13709. ac_lo= ac_hi=
  13710. break
  13711. fi
  13712. ac_mid=`expr 2 '*' $ac_mid + 1`
  13713. fi
  13714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13715. done
  13716. else
  13717. echo "$as_me: failed program was:" >&5
  13718. sed 's/^/| /' conftest.$ac_ext >&5
  13719. cat >conftest.$ac_ext <<_ACEOF
  13720. /* confdefs.h. */
  13721. _ACEOF
  13722. cat confdefs.h >>conftest.$ac_ext
  13723. cat >>conftest.$ac_ext <<_ACEOF
  13724. /* end confdefs.h. */
  13725. #include <stddef.h>
  13726. #include <limits.h>
  13727. int
  13728. main ()
  13729. {
  13730. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13731. test_array [0] = 0
  13732. ;
  13733. return 0;
  13734. }
  13735. _ACEOF
  13736. rm -f conftest.$ac_objext
  13737. if { (ac_try="$ac_compile"
  13738. case "(($ac_try" in
  13739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13740. *) ac_try_echo=$ac_try;;
  13741. esac
  13742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13743. (eval "$ac_compile") 2>conftest.er1
  13744. ac_status=$?
  13745. grep -v '^ *+' conftest.er1 >conftest.err
  13746. rm -f conftest.er1
  13747. cat conftest.err >&5
  13748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13749. (exit $ac_status); } && {
  13750. test -z "$ac_cxx_werror_flag" ||
  13751. test ! -s conftest.err
  13752. } && test -s conftest.$ac_objext; then
  13753. ac_hi=-1 ac_mid=-1
  13754. while :; do
  13755. cat >conftest.$ac_ext <<_ACEOF
  13756. /* confdefs.h. */
  13757. _ACEOF
  13758. cat confdefs.h >>conftest.$ac_ext
  13759. cat >>conftest.$ac_ext <<_ACEOF
  13760. /* end confdefs.h. */
  13761. #include <stddef.h>
  13762. #include <limits.h>
  13763. int
  13764. main ()
  13765. {
  13766. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13767. test_array [0] = 0
  13768. ;
  13769. return 0;
  13770. }
  13771. _ACEOF
  13772. rm -f conftest.$ac_objext
  13773. if { (ac_try="$ac_compile"
  13774. case "(($ac_try" in
  13775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13776. *) ac_try_echo=$ac_try;;
  13777. esac
  13778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13779. (eval "$ac_compile") 2>conftest.er1
  13780. ac_status=$?
  13781. grep -v '^ *+' conftest.er1 >conftest.err
  13782. rm -f conftest.er1
  13783. cat conftest.err >&5
  13784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13785. (exit $ac_status); } && {
  13786. test -z "$ac_cxx_werror_flag" ||
  13787. test ! -s conftest.err
  13788. } && test -s conftest.$ac_objext; then
  13789. ac_lo=$ac_mid; break
  13790. else
  13791. echo "$as_me: failed program was:" >&5
  13792. sed 's/^/| /' conftest.$ac_ext >&5
  13793. ac_hi=`expr '(' $ac_mid ')' - 1`
  13794. if test $ac_mid -le $ac_hi; then
  13795. ac_lo= ac_hi=
  13796. break
  13797. fi
  13798. ac_mid=`expr 2 '*' $ac_mid`
  13799. fi
  13800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13801. done
  13802. else
  13803. echo "$as_me: failed program was:" >&5
  13804. sed 's/^/| /' conftest.$ac_ext >&5
  13805. ac_lo= ac_hi=
  13806. fi
  13807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13808. fi
  13809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13810. # Binary search between lo and hi bounds.
  13811. while test "x$ac_lo" != "x$ac_hi"; do
  13812. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13813. cat >conftest.$ac_ext <<_ACEOF
  13814. /* confdefs.h. */
  13815. _ACEOF
  13816. cat confdefs.h >>conftest.$ac_ext
  13817. cat >>conftest.$ac_ext <<_ACEOF
  13818. /* end confdefs.h. */
  13819. #include <stddef.h>
  13820. #include <limits.h>
  13821. int
  13822. main ()
  13823. {
  13824. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13825. test_array [0] = 0
  13826. ;
  13827. return 0;
  13828. }
  13829. _ACEOF
  13830. rm -f conftest.$ac_objext
  13831. if { (ac_try="$ac_compile"
  13832. case "(($ac_try" in
  13833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13834. *) ac_try_echo=$ac_try;;
  13835. esac
  13836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13837. (eval "$ac_compile") 2>conftest.er1
  13838. ac_status=$?
  13839. grep -v '^ *+' conftest.er1 >conftest.err
  13840. rm -f conftest.er1
  13841. cat conftest.err >&5
  13842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13843. (exit $ac_status); } && {
  13844. test -z "$ac_cxx_werror_flag" ||
  13845. test ! -s conftest.err
  13846. } && test -s conftest.$ac_objext; then
  13847. ac_hi=$ac_mid
  13848. else
  13849. echo "$as_me: failed program was:" >&5
  13850. sed 's/^/| /' conftest.$ac_ext >&5
  13851. ac_lo=`expr '(' $ac_mid ')' + 1`
  13852. fi
  13853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13854. done
  13855. case $ac_lo in
  13856. ?*) size_t_bits_minus_1=$ac_lo;;
  13857. '') size_t_bits_minus_1= ;;
  13858. esac
  13859. else
  13860. cat >conftest.$ac_ext <<_ACEOF
  13861. /* confdefs.h. */
  13862. _ACEOF
  13863. cat confdefs.h >>conftest.$ac_ext
  13864. cat >>conftest.$ac_ext <<_ACEOF
  13865. /* end confdefs.h. */
  13866. #include <stddef.h>
  13867. #include <limits.h>
  13868. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13869. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13870. #include <stdio.h>
  13871. #include <stdlib.h>
  13872. int
  13873. main ()
  13874. {
  13875. FILE *f = fopen ("conftest.val", "w");
  13876. if (! f)
  13877. return 1;
  13878. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13879. {
  13880. long int i = longval ();
  13881. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13882. return 1;
  13883. fprintf (f, "%ld\n", i);
  13884. }
  13885. else
  13886. {
  13887. unsigned long int i = ulongval ();
  13888. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13889. return 1;
  13890. fprintf (f, "%lu\n", i);
  13891. }
  13892. return ferror (f) || fclose (f) != 0;
  13893. ;
  13894. return 0;
  13895. }
  13896. _ACEOF
  13897. rm -f conftest$ac_exeext
  13898. if { (ac_try="$ac_link"
  13899. case "(($ac_try" in
  13900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13901. *) ac_try_echo=$ac_try;;
  13902. esac
  13903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13904. (eval "$ac_link") 2>&5
  13905. ac_status=$?
  13906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13907. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13908. { (case "(($ac_try" in
  13909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13910. *) ac_try_echo=$ac_try;;
  13911. esac
  13912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13913. (eval "$ac_try") 2>&5
  13914. ac_status=$?
  13915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13916. (exit $ac_status); }; }; then
  13917. size_t_bits_minus_1=`cat conftest.val`
  13918. else
  13919. echo "$as_me: program exited with status $ac_status" >&5
  13920. echo "$as_me: failed program was:" >&5
  13921. sed 's/^/| /' conftest.$ac_ext >&5
  13922. ( exit $ac_status )
  13923. size_t_bits_minus_1=
  13924. fi
  13925. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13926. fi
  13927. rm -f conftest.val
  13928. if test "$cross_compiling" = yes; then
  13929. # Depending upon the size, compute the lo and hi bounds.
  13930. cat >conftest.$ac_ext <<_ACEOF
  13931. /* confdefs.h. */
  13932. _ACEOF
  13933. cat confdefs.h >>conftest.$ac_ext
  13934. cat >>conftest.$ac_ext <<_ACEOF
  13935. /* end confdefs.h. */
  13936. #include <stddef.h>
  13937. int
  13938. main ()
  13939. {
  13940. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13941. test_array [0] = 0
  13942. ;
  13943. return 0;
  13944. }
  13945. _ACEOF
  13946. rm -f conftest.$ac_objext
  13947. if { (ac_try="$ac_compile"
  13948. case "(($ac_try" in
  13949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13950. *) ac_try_echo=$ac_try;;
  13951. esac
  13952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13953. (eval "$ac_compile") 2>conftest.er1
  13954. ac_status=$?
  13955. grep -v '^ *+' conftest.er1 >conftest.err
  13956. rm -f conftest.er1
  13957. cat conftest.err >&5
  13958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13959. (exit $ac_status); } && {
  13960. test -z "$ac_cxx_werror_flag" ||
  13961. test ! -s conftest.err
  13962. } && test -s conftest.$ac_objext; then
  13963. ac_lo=0 ac_mid=0
  13964. while :; do
  13965. cat >conftest.$ac_ext <<_ACEOF
  13966. /* confdefs.h. */
  13967. _ACEOF
  13968. cat confdefs.h >>conftest.$ac_ext
  13969. cat >>conftest.$ac_ext <<_ACEOF
  13970. /* end confdefs.h. */
  13971. #include <stddef.h>
  13972. int
  13973. main ()
  13974. {
  13975. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13976. test_array [0] = 0
  13977. ;
  13978. return 0;
  13979. }
  13980. _ACEOF
  13981. rm -f conftest.$ac_objext
  13982. if { (ac_try="$ac_compile"
  13983. case "(($ac_try" in
  13984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13985. *) ac_try_echo=$ac_try;;
  13986. esac
  13987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13988. (eval "$ac_compile") 2>conftest.er1
  13989. ac_status=$?
  13990. grep -v '^ *+' conftest.er1 >conftest.err
  13991. rm -f conftest.er1
  13992. cat conftest.err >&5
  13993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13994. (exit $ac_status); } && {
  13995. test -z "$ac_cxx_werror_flag" ||
  13996. test ! -s conftest.err
  13997. } && test -s conftest.$ac_objext; then
  13998. ac_hi=$ac_mid; break
  13999. else
  14000. echo "$as_me: failed program was:" >&5
  14001. sed 's/^/| /' conftest.$ac_ext >&5
  14002. ac_lo=`expr $ac_mid + 1`
  14003. if test $ac_lo -le $ac_mid; then
  14004. ac_lo= ac_hi=
  14005. break
  14006. fi
  14007. ac_mid=`expr 2 '*' $ac_mid + 1`
  14008. fi
  14009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14010. done
  14011. else
  14012. echo "$as_me: failed program was:" >&5
  14013. sed 's/^/| /' conftest.$ac_ext >&5
  14014. cat >conftest.$ac_ext <<_ACEOF
  14015. /* confdefs.h. */
  14016. _ACEOF
  14017. cat confdefs.h >>conftest.$ac_ext
  14018. cat >>conftest.$ac_ext <<_ACEOF
  14019. /* end confdefs.h. */
  14020. #include <stddef.h>
  14021. int
  14022. main ()
  14023. {
  14024. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  14025. test_array [0] = 0
  14026. ;
  14027. return 0;
  14028. }
  14029. _ACEOF
  14030. rm -f conftest.$ac_objext
  14031. if { (ac_try="$ac_compile"
  14032. case "(($ac_try" in
  14033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14034. *) ac_try_echo=$ac_try;;
  14035. esac
  14036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14037. (eval "$ac_compile") 2>conftest.er1
  14038. ac_status=$?
  14039. grep -v '^ *+' conftest.er1 >conftest.err
  14040. rm -f conftest.er1
  14041. cat conftest.err >&5
  14042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14043. (exit $ac_status); } && {
  14044. test -z "$ac_cxx_werror_flag" ||
  14045. test ! -s conftest.err
  14046. } && test -s conftest.$ac_objext; then
  14047. ac_hi=-1 ac_mid=-1
  14048. while :; do
  14049. cat >conftest.$ac_ext <<_ACEOF
  14050. /* confdefs.h. */
  14051. _ACEOF
  14052. cat confdefs.h >>conftest.$ac_ext
  14053. cat >>conftest.$ac_ext <<_ACEOF
  14054. /* end confdefs.h. */
  14055. #include <stddef.h>
  14056. int
  14057. main ()
  14058. {
  14059. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  14060. test_array [0] = 0
  14061. ;
  14062. return 0;
  14063. }
  14064. _ACEOF
  14065. rm -f conftest.$ac_objext
  14066. if { (ac_try="$ac_compile"
  14067. case "(($ac_try" in
  14068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14069. *) ac_try_echo=$ac_try;;
  14070. esac
  14071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14072. (eval "$ac_compile") 2>conftest.er1
  14073. ac_status=$?
  14074. grep -v '^ *+' conftest.er1 >conftest.err
  14075. rm -f conftest.er1
  14076. cat conftest.err >&5
  14077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14078. (exit $ac_status); } && {
  14079. test -z "$ac_cxx_werror_flag" ||
  14080. test ! -s conftest.err
  14081. } && test -s conftest.$ac_objext; then
  14082. ac_lo=$ac_mid; break
  14083. else
  14084. echo "$as_me: failed program was:" >&5
  14085. sed 's/^/| /' conftest.$ac_ext >&5
  14086. ac_hi=`expr '(' $ac_mid ')' - 1`
  14087. if test $ac_mid -le $ac_hi; then
  14088. ac_lo= ac_hi=
  14089. break
  14090. fi
  14091. ac_mid=`expr 2 '*' $ac_mid`
  14092. fi
  14093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14094. done
  14095. else
  14096. echo "$as_me: failed program was:" >&5
  14097. sed 's/^/| /' conftest.$ac_ext >&5
  14098. ac_lo= ac_hi=
  14099. fi
  14100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14101. fi
  14102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14103. # Binary search between lo and hi bounds.
  14104. while test "x$ac_lo" != "x$ac_hi"; do
  14105. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14106. cat >conftest.$ac_ext <<_ACEOF
  14107. /* confdefs.h. */
  14108. _ACEOF
  14109. cat confdefs.h >>conftest.$ac_ext
  14110. cat >>conftest.$ac_ext <<_ACEOF
  14111. /* end confdefs.h. */
  14112. #include <stddef.h>
  14113. int
  14114. main ()
  14115. {
  14116. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14117. test_array [0] = 0
  14118. ;
  14119. return 0;
  14120. }
  14121. _ACEOF
  14122. rm -f conftest.$ac_objext
  14123. if { (ac_try="$ac_compile"
  14124. case "(($ac_try" in
  14125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14126. *) ac_try_echo=$ac_try;;
  14127. esac
  14128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14129. (eval "$ac_compile") 2>conftest.er1
  14130. ac_status=$?
  14131. grep -v '^ *+' conftest.er1 >conftest.err
  14132. rm -f conftest.er1
  14133. cat conftest.err >&5
  14134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14135. (exit $ac_status); } && {
  14136. test -z "$ac_cxx_werror_flag" ||
  14137. test ! -s conftest.err
  14138. } && test -s conftest.$ac_objext; then
  14139. ac_hi=$ac_mid
  14140. else
  14141. echo "$as_me: failed program was:" >&5
  14142. sed 's/^/| /' conftest.$ac_ext >&5
  14143. ac_lo=`expr '(' $ac_mid ')' + 1`
  14144. fi
  14145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14146. done
  14147. case $ac_lo in
  14148. ?*) fits_in_uint=$ac_lo;;
  14149. '') fits_in_uint= ;;
  14150. esac
  14151. else
  14152. cat >conftest.$ac_ext <<_ACEOF
  14153. /* confdefs.h. */
  14154. _ACEOF
  14155. cat confdefs.h >>conftest.$ac_ext
  14156. cat >>conftest.$ac_ext <<_ACEOF
  14157. /* end confdefs.h. */
  14158. #include <stddef.h>
  14159. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14160. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14161. #include <stdio.h>
  14162. #include <stdlib.h>
  14163. int
  14164. main ()
  14165. {
  14166. FILE *f = fopen ("conftest.val", "w");
  14167. if (! f)
  14168. return 1;
  14169. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14170. {
  14171. long int i = longval ();
  14172. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14173. return 1;
  14174. fprintf (f, "%ld\n", i);
  14175. }
  14176. else
  14177. {
  14178. unsigned long int i = ulongval ();
  14179. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14180. return 1;
  14181. fprintf (f, "%lu\n", i);
  14182. }
  14183. return ferror (f) || fclose (f) != 0;
  14184. ;
  14185. return 0;
  14186. }
  14187. _ACEOF
  14188. rm -f conftest$ac_exeext
  14189. if { (ac_try="$ac_link"
  14190. case "(($ac_try" in
  14191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14192. *) ac_try_echo=$ac_try;;
  14193. esac
  14194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14195. (eval "$ac_link") 2>&5
  14196. ac_status=$?
  14197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14198. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14199. { (case "(($ac_try" in
  14200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14201. *) ac_try_echo=$ac_try;;
  14202. esac
  14203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14204. (eval "$ac_try") 2>&5
  14205. ac_status=$?
  14206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14207. (exit $ac_status); }; }; then
  14208. fits_in_uint=`cat conftest.val`
  14209. else
  14210. echo "$as_me: program exited with status $ac_status" >&5
  14211. echo "$as_me: failed program was:" >&5
  14212. sed 's/^/| /' conftest.$ac_ext >&5
  14213. ( exit $ac_status )
  14214. fits_in_uint=
  14215. fi
  14216. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14217. fi
  14218. rm -f conftest.val
  14219. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14220. if test $fits_in_uint = 1; then
  14221. cat >conftest.$ac_ext <<_ACEOF
  14222. /* confdefs.h. */
  14223. _ACEOF
  14224. cat confdefs.h >>conftest.$ac_ext
  14225. cat >>conftest.$ac_ext <<_ACEOF
  14226. /* end confdefs.h. */
  14227. #include <stddef.h>
  14228. extern size_t foo;
  14229. extern unsigned long foo;
  14230. int
  14231. main ()
  14232. {
  14233. ;
  14234. return 0;
  14235. }
  14236. _ACEOF
  14237. rm -f conftest.$ac_objext
  14238. if { (ac_try="$ac_compile"
  14239. case "(($ac_try" in
  14240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14241. *) ac_try_echo=$ac_try;;
  14242. esac
  14243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14244. (eval "$ac_compile") 2>conftest.er1
  14245. ac_status=$?
  14246. grep -v '^ *+' conftest.er1 >conftest.err
  14247. rm -f conftest.er1
  14248. cat conftest.err >&5
  14249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14250. (exit $ac_status); } && {
  14251. test -z "$ac_cxx_werror_flag" ||
  14252. test ! -s conftest.err
  14253. } && test -s conftest.$ac_objext; then
  14254. fits_in_uint=0
  14255. else
  14256. echo "$as_me: failed program was:" >&5
  14257. sed 's/^/| /' conftest.$ac_ext >&5
  14258. fi
  14259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14260. fi
  14261. if test $fits_in_uint = 1; then
  14262. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14263. else
  14264. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14265. fi
  14266. else
  14267. gl_cv_size_max='((size_t)~(size_t)0)'
  14268. fi
  14269. fi
  14270. fi
  14271. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14272. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14273. if test "$gl_cv_size_max" != yes; then
  14274. cat >>confdefs.h <<_ACEOF
  14275. #define SIZE_MAX $gl_cv_size_max
  14276. _ACEOF
  14277. fi
  14278. for ac_header in stdint.h
  14279. do
  14280. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14281. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14282. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14283. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14284. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14285. echo $ECHO_N "(cached) $ECHO_C" >&6
  14286. fi
  14287. ac_res=`eval echo '${'$as_ac_Header'}'`
  14288. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14289. echo "${ECHO_T}$ac_res" >&6; }
  14290. else
  14291. # Is the header compilable?
  14292. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14293. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14294. cat >conftest.$ac_ext <<_ACEOF
  14295. /* confdefs.h. */
  14296. _ACEOF
  14297. cat confdefs.h >>conftest.$ac_ext
  14298. cat >>conftest.$ac_ext <<_ACEOF
  14299. /* end confdefs.h. */
  14300. $ac_includes_default
  14301. #include <$ac_header>
  14302. _ACEOF
  14303. rm -f conftest.$ac_objext
  14304. if { (ac_try="$ac_compile"
  14305. case "(($ac_try" in
  14306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14307. *) ac_try_echo=$ac_try;;
  14308. esac
  14309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14310. (eval "$ac_compile") 2>conftest.er1
  14311. ac_status=$?
  14312. grep -v '^ *+' conftest.er1 >conftest.err
  14313. rm -f conftest.er1
  14314. cat conftest.err >&5
  14315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14316. (exit $ac_status); } && {
  14317. test -z "$ac_cxx_werror_flag" ||
  14318. test ! -s conftest.err
  14319. } && test -s conftest.$ac_objext; then
  14320. ac_header_compiler=yes
  14321. else
  14322. echo "$as_me: failed program was:" >&5
  14323. sed 's/^/| /' conftest.$ac_ext >&5
  14324. ac_header_compiler=no
  14325. fi
  14326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14327. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14328. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14329. # Is the header present?
  14330. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14331. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14332. cat >conftest.$ac_ext <<_ACEOF
  14333. /* confdefs.h. */
  14334. _ACEOF
  14335. cat confdefs.h >>conftest.$ac_ext
  14336. cat >>conftest.$ac_ext <<_ACEOF
  14337. /* end confdefs.h. */
  14338. #include <$ac_header>
  14339. _ACEOF
  14340. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14341. case "(($ac_try" in
  14342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14343. *) ac_try_echo=$ac_try;;
  14344. esac
  14345. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14346. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14347. ac_status=$?
  14348. grep -v '^ *+' conftest.er1 >conftest.err
  14349. rm -f conftest.er1
  14350. cat conftest.err >&5
  14351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14352. (exit $ac_status); } >/dev/null && {
  14353. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14354. test ! -s conftest.err
  14355. }; then
  14356. ac_header_preproc=yes
  14357. else
  14358. echo "$as_me: failed program was:" >&5
  14359. sed 's/^/| /' conftest.$ac_ext >&5
  14360. ac_header_preproc=no
  14361. fi
  14362. rm -f conftest.err conftest.$ac_ext
  14363. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14364. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14365. # So? What about this header?
  14366. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14367. yes:no: )
  14368. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14369. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14370. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14371. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14372. ac_header_preproc=yes
  14373. ;;
  14374. no:yes:* )
  14375. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14376. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14377. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14378. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14379. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14380. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14381. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14382. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14383. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14384. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14385. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14386. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14387. ( cat <<\_ASBOX
  14388. ## ----------------------------------------------- ##
  14389. ## Report this to t-tujikawa@users.sourceforge.net ##
  14390. ## ----------------------------------------------- ##
  14391. _ASBOX
  14392. ) | sed "s/^/$as_me: WARNING: /" >&2
  14393. ;;
  14394. esac
  14395. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14396. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14397. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14398. echo $ECHO_N "(cached) $ECHO_C" >&6
  14399. else
  14400. eval "$as_ac_Header=\$ac_header_preproc"
  14401. fi
  14402. ac_res=`eval echo '${'$as_ac_Header'}'`
  14403. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14404. echo "${ECHO_T}$ac_res" >&6; }
  14405. fi
  14406. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14407. cat >>confdefs.h <<_ACEOF
  14408. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14409. _ACEOF
  14410. fi
  14411. done
  14412. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14413. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14414. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14415. echo $ECHO_N "(cached) $ECHO_C" >&6
  14416. else
  14417. gt_save_LIBS="$LIBS"
  14418. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14419. cat >conftest.$ac_ext <<_ACEOF
  14420. /* confdefs.h. */
  14421. _ACEOF
  14422. cat confdefs.h >>conftest.$ac_ext
  14423. cat >>conftest.$ac_ext <<_ACEOF
  14424. /* end confdefs.h. */
  14425. #include <CoreFoundation/CFPreferences.h>
  14426. int
  14427. main ()
  14428. {
  14429. CFPreferencesCopyAppValue(NULL, NULL)
  14430. ;
  14431. return 0;
  14432. }
  14433. _ACEOF
  14434. rm -f conftest.$ac_objext conftest$ac_exeext
  14435. if { (ac_try="$ac_link"
  14436. case "(($ac_try" in
  14437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14438. *) ac_try_echo=$ac_try;;
  14439. esac
  14440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14441. (eval "$ac_link") 2>conftest.er1
  14442. ac_status=$?
  14443. grep -v '^ *+' conftest.er1 >conftest.err
  14444. rm -f conftest.er1
  14445. cat conftest.err >&5
  14446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14447. (exit $ac_status); } && {
  14448. test -z "$ac_cxx_werror_flag" ||
  14449. test ! -s conftest.err
  14450. } && test -s conftest$ac_exeext &&
  14451. $as_test_x conftest$ac_exeext; then
  14452. gt_cv_func_CFPreferencesCopyAppValue=yes
  14453. else
  14454. echo "$as_me: failed program was:" >&5
  14455. sed 's/^/| /' conftest.$ac_ext >&5
  14456. gt_cv_func_CFPreferencesCopyAppValue=no
  14457. fi
  14458. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14459. conftest$ac_exeext conftest.$ac_ext
  14460. LIBS="$gt_save_LIBS"
  14461. fi
  14462. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14463. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14464. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14465. cat >>confdefs.h <<\_ACEOF
  14466. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14467. _ACEOF
  14468. fi
  14469. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14470. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14471. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14472. echo $ECHO_N "(cached) $ECHO_C" >&6
  14473. else
  14474. gt_save_LIBS="$LIBS"
  14475. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14476. cat >conftest.$ac_ext <<_ACEOF
  14477. /* confdefs.h. */
  14478. _ACEOF
  14479. cat confdefs.h >>conftest.$ac_ext
  14480. cat >>conftest.$ac_ext <<_ACEOF
  14481. /* end confdefs.h. */
  14482. #include <CoreFoundation/CFLocale.h>
  14483. int
  14484. main ()
  14485. {
  14486. CFLocaleCopyCurrent();
  14487. ;
  14488. return 0;
  14489. }
  14490. _ACEOF
  14491. rm -f conftest.$ac_objext conftest$ac_exeext
  14492. if { (ac_try="$ac_link"
  14493. case "(($ac_try" in
  14494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14495. *) ac_try_echo=$ac_try;;
  14496. esac
  14497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14498. (eval "$ac_link") 2>conftest.er1
  14499. ac_status=$?
  14500. grep -v '^ *+' conftest.er1 >conftest.err
  14501. rm -f conftest.er1
  14502. cat conftest.err >&5
  14503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14504. (exit $ac_status); } && {
  14505. test -z "$ac_cxx_werror_flag" ||
  14506. test ! -s conftest.err
  14507. } && test -s conftest$ac_exeext &&
  14508. $as_test_x conftest$ac_exeext; then
  14509. gt_cv_func_CFLocaleCopyCurrent=yes
  14510. else
  14511. echo "$as_me: failed program was:" >&5
  14512. sed 's/^/| /' conftest.$ac_ext >&5
  14513. gt_cv_func_CFLocaleCopyCurrent=no
  14514. fi
  14515. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14516. conftest$ac_exeext conftest.$ac_ext
  14517. LIBS="$gt_save_LIBS"
  14518. fi
  14519. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14520. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14521. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14522. cat >>confdefs.h <<\_ACEOF
  14523. #define HAVE_CFLOCALECOPYCURRENT 1
  14524. _ACEOF
  14525. fi
  14526. INTL_MACOSX_LIBS=
  14527. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14528. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14529. fi
  14530. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14531. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14532. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14533. echo $ECHO_N "(cached) $ECHO_C" >&6
  14534. else
  14535. cat >conftest.$ac_ext <<_ACEOF
  14536. /* confdefs.h. */
  14537. _ACEOF
  14538. cat confdefs.h >>conftest.$ac_ext
  14539. cat >>conftest.$ac_ext <<_ACEOF
  14540. /* end confdefs.h. */
  14541. $ac_includes_default
  14542. typedef ptrdiff_t ac__type_new_;
  14543. int
  14544. main ()
  14545. {
  14546. if ((ac__type_new_ *) 0)
  14547. return 0;
  14548. if (sizeof (ac__type_new_))
  14549. return 0;
  14550. ;
  14551. return 0;
  14552. }
  14553. _ACEOF
  14554. rm -f conftest.$ac_objext
  14555. if { (ac_try="$ac_compile"
  14556. case "(($ac_try" in
  14557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14558. *) ac_try_echo=$ac_try;;
  14559. esac
  14560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14561. (eval "$ac_compile") 2>conftest.er1
  14562. ac_status=$?
  14563. grep -v '^ *+' conftest.er1 >conftest.err
  14564. rm -f conftest.er1
  14565. cat conftest.err >&5
  14566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14567. (exit $ac_status); } && {
  14568. test -z "$ac_cxx_werror_flag" ||
  14569. test ! -s conftest.err
  14570. } && test -s conftest.$ac_objext; then
  14571. ac_cv_type_ptrdiff_t=yes
  14572. else
  14573. echo "$as_me: failed program was:" >&5
  14574. sed 's/^/| /' conftest.$ac_ext >&5
  14575. ac_cv_type_ptrdiff_t=no
  14576. fi
  14577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14578. fi
  14579. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14580. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14581. if test $ac_cv_type_ptrdiff_t = yes; then
  14582. :
  14583. else
  14584. cat >>confdefs.h <<\_ACEOF
  14585. #define ptrdiff_t long
  14586. _ACEOF
  14587. fi
  14588. for ac_header in stddef.h stdlib.h string.h
  14589. do
  14590. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14591. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14592. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14593. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14594. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14595. echo $ECHO_N "(cached) $ECHO_C" >&6
  14596. fi
  14597. ac_res=`eval echo '${'$as_ac_Header'}'`
  14598. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14599. echo "${ECHO_T}$ac_res" >&6; }
  14600. else
  14601. # Is the header compilable?
  14602. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14603. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14604. cat >conftest.$ac_ext <<_ACEOF
  14605. /* confdefs.h. */
  14606. _ACEOF
  14607. cat confdefs.h >>conftest.$ac_ext
  14608. cat >>conftest.$ac_ext <<_ACEOF
  14609. /* end confdefs.h. */
  14610. $ac_includes_default
  14611. #include <$ac_header>
  14612. _ACEOF
  14613. rm -f conftest.$ac_objext
  14614. if { (ac_try="$ac_compile"
  14615. case "(($ac_try" in
  14616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14617. *) ac_try_echo=$ac_try;;
  14618. esac
  14619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14620. (eval "$ac_compile") 2>conftest.er1
  14621. ac_status=$?
  14622. grep -v '^ *+' conftest.er1 >conftest.err
  14623. rm -f conftest.er1
  14624. cat conftest.err >&5
  14625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14626. (exit $ac_status); } && {
  14627. test -z "$ac_cxx_werror_flag" ||
  14628. test ! -s conftest.err
  14629. } && test -s conftest.$ac_objext; then
  14630. ac_header_compiler=yes
  14631. else
  14632. echo "$as_me: failed program was:" >&5
  14633. sed 's/^/| /' conftest.$ac_ext >&5
  14634. ac_header_compiler=no
  14635. fi
  14636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14637. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14638. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14639. # Is the header present?
  14640. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14641. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14642. cat >conftest.$ac_ext <<_ACEOF
  14643. /* confdefs.h. */
  14644. _ACEOF
  14645. cat confdefs.h >>conftest.$ac_ext
  14646. cat >>conftest.$ac_ext <<_ACEOF
  14647. /* end confdefs.h. */
  14648. #include <$ac_header>
  14649. _ACEOF
  14650. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14651. case "(($ac_try" in
  14652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14653. *) ac_try_echo=$ac_try;;
  14654. esac
  14655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14656. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14657. ac_status=$?
  14658. grep -v '^ *+' conftest.er1 >conftest.err
  14659. rm -f conftest.er1
  14660. cat conftest.err >&5
  14661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14662. (exit $ac_status); } >/dev/null && {
  14663. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14664. test ! -s conftest.err
  14665. }; then
  14666. ac_header_preproc=yes
  14667. else
  14668. echo "$as_me: failed program was:" >&5
  14669. sed 's/^/| /' conftest.$ac_ext >&5
  14670. ac_header_preproc=no
  14671. fi
  14672. rm -f conftest.err conftest.$ac_ext
  14673. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14674. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14675. # So? What about this header?
  14676. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14677. yes:no: )
  14678. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14679. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14680. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14681. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14682. ac_header_preproc=yes
  14683. ;;
  14684. no:yes:* )
  14685. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14686. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14687. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14688. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14689. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14690. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14691. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14692. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14693. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14694. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14695. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14696. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14697. ( cat <<\_ASBOX
  14698. ## ----------------------------------------------- ##
  14699. ## Report this to t-tujikawa@users.sourceforge.net ##
  14700. ## ----------------------------------------------- ##
  14701. _ASBOX
  14702. ) | sed "s/^/$as_me: WARNING: /" >&2
  14703. ;;
  14704. esac
  14705. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14706. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14707. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14708. echo $ECHO_N "(cached) $ECHO_C" >&6
  14709. else
  14710. eval "$as_ac_Header=\$ac_header_preproc"
  14711. fi
  14712. ac_res=`eval echo '${'$as_ac_Header'}'`
  14713. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14714. echo "${ECHO_T}$ac_res" >&6; }
  14715. fi
  14716. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14717. cat >>confdefs.h <<_ACEOF
  14718. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14719. _ACEOF
  14720. fi
  14721. done
  14722. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14723. do
  14724. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14725. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14726. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14727. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14728. echo $ECHO_N "(cached) $ECHO_C" >&6
  14729. else
  14730. cat >conftest.$ac_ext <<_ACEOF
  14731. /* confdefs.h. */
  14732. _ACEOF
  14733. cat confdefs.h >>conftest.$ac_ext
  14734. cat >>conftest.$ac_ext <<_ACEOF
  14735. /* end confdefs.h. */
  14736. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14737. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14738. #define $ac_func innocuous_$ac_func
  14739. /* System header to define __stub macros and hopefully few prototypes,
  14740. which can conflict with char $ac_func (); below.
  14741. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14742. <limits.h> exists even on freestanding compilers. */
  14743. #ifdef __STDC__
  14744. # include <limits.h>
  14745. #else
  14746. # include <assert.h>
  14747. #endif
  14748. #undef $ac_func
  14749. /* Override any GCC internal prototype to avoid an error.
  14750. Use char because int might match the return type of a GCC
  14751. builtin and then its argument prototype would still apply. */
  14752. #ifdef __cplusplus
  14753. extern "C"
  14754. #endif
  14755. char $ac_func ();
  14756. /* The GNU C library defines this for functions which it implements
  14757. to always fail with ENOSYS. Some functions are actually named
  14758. something starting with __ and the normal name is an alias. */
  14759. #if defined __stub_$ac_func || defined __stub___$ac_func
  14760. choke me
  14761. #endif
  14762. int
  14763. main ()
  14764. {
  14765. return $ac_func ();
  14766. ;
  14767. return 0;
  14768. }
  14769. _ACEOF
  14770. rm -f conftest.$ac_objext conftest$ac_exeext
  14771. if { (ac_try="$ac_link"
  14772. case "(($ac_try" in
  14773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14774. *) ac_try_echo=$ac_try;;
  14775. esac
  14776. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14777. (eval "$ac_link") 2>conftest.er1
  14778. ac_status=$?
  14779. grep -v '^ *+' conftest.er1 >conftest.err
  14780. rm -f conftest.er1
  14781. cat conftest.err >&5
  14782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14783. (exit $ac_status); } && {
  14784. test -z "$ac_cxx_werror_flag" ||
  14785. test ! -s conftest.err
  14786. } && test -s conftest$ac_exeext &&
  14787. $as_test_x conftest$ac_exeext; then
  14788. eval "$as_ac_var=yes"
  14789. else
  14790. echo "$as_me: failed program was:" >&5
  14791. sed 's/^/| /' conftest.$ac_ext >&5
  14792. eval "$as_ac_var=no"
  14793. fi
  14794. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14795. conftest$ac_exeext conftest.$ac_ext
  14796. fi
  14797. ac_res=`eval echo '${'$as_ac_var'}'`
  14798. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14799. echo "${ECHO_T}$ac_res" >&6; }
  14800. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14801. cat >>confdefs.h <<_ACEOF
  14802. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14803. _ACEOF
  14804. fi
  14805. done
  14806. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14807. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14808. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14809. echo $ECHO_N "(cached) $ECHO_C" >&6
  14810. else
  14811. cat >conftest.$ac_ext <<_ACEOF
  14812. /* confdefs.h. */
  14813. _ACEOF
  14814. cat confdefs.h >>conftest.$ac_ext
  14815. cat >>conftest.$ac_ext <<_ACEOF
  14816. /* end confdefs.h. */
  14817. #include <stdio.h>
  14818. int
  14819. main ()
  14820. {
  14821. #ifndef _snprintf
  14822. char *p = (char *) _snprintf;
  14823. #endif
  14824. ;
  14825. return 0;
  14826. }
  14827. _ACEOF
  14828. rm -f conftest.$ac_objext
  14829. if { (ac_try="$ac_compile"
  14830. case "(($ac_try" in
  14831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14832. *) ac_try_echo=$ac_try;;
  14833. esac
  14834. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14835. (eval "$ac_compile") 2>conftest.er1
  14836. ac_status=$?
  14837. grep -v '^ *+' conftest.er1 >conftest.err
  14838. rm -f conftest.er1
  14839. cat conftest.err >&5
  14840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14841. (exit $ac_status); } && {
  14842. test -z "$ac_cxx_werror_flag" ||
  14843. test ! -s conftest.err
  14844. } && test -s conftest.$ac_objext; then
  14845. ac_cv_have_decl__snprintf=yes
  14846. else
  14847. echo "$as_me: failed program was:" >&5
  14848. sed 's/^/| /' conftest.$ac_ext >&5
  14849. ac_cv_have_decl__snprintf=no
  14850. fi
  14851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14852. fi
  14853. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14854. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14855. if test $ac_cv_have_decl__snprintf = yes; then
  14856. gt_value=1
  14857. else
  14858. gt_value=0
  14859. fi
  14860. cat >>confdefs.h <<_ACEOF
  14861. #define HAVE_DECL__SNPRINTF $gt_value
  14862. _ACEOF
  14863. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14864. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14865. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14866. echo $ECHO_N "(cached) $ECHO_C" >&6
  14867. else
  14868. cat >conftest.$ac_ext <<_ACEOF
  14869. /* confdefs.h. */
  14870. _ACEOF
  14871. cat confdefs.h >>conftest.$ac_ext
  14872. cat >>conftest.$ac_ext <<_ACEOF
  14873. /* end confdefs.h. */
  14874. #include <stdio.h>
  14875. int
  14876. main ()
  14877. {
  14878. #ifndef _snwprintf
  14879. char *p = (char *) _snwprintf;
  14880. #endif
  14881. ;
  14882. return 0;
  14883. }
  14884. _ACEOF
  14885. rm -f conftest.$ac_objext
  14886. if { (ac_try="$ac_compile"
  14887. case "(($ac_try" in
  14888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14889. *) ac_try_echo=$ac_try;;
  14890. esac
  14891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14892. (eval "$ac_compile") 2>conftest.er1
  14893. ac_status=$?
  14894. grep -v '^ *+' conftest.er1 >conftest.err
  14895. rm -f conftest.er1
  14896. cat conftest.err >&5
  14897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14898. (exit $ac_status); } && {
  14899. test -z "$ac_cxx_werror_flag" ||
  14900. test ! -s conftest.err
  14901. } && test -s conftest.$ac_objext; then
  14902. ac_cv_have_decl__snwprintf=yes
  14903. else
  14904. echo "$as_me: failed program was:" >&5
  14905. sed 's/^/| /' conftest.$ac_ext >&5
  14906. ac_cv_have_decl__snwprintf=no
  14907. fi
  14908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14909. fi
  14910. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14911. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14912. if test $ac_cv_have_decl__snwprintf = yes; then
  14913. gt_value=1
  14914. else
  14915. gt_value=0
  14916. fi
  14917. cat >>confdefs.h <<_ACEOF
  14918. #define HAVE_DECL__SNWPRINTF $gt_value
  14919. _ACEOF
  14920. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14921. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14922. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14923. echo $ECHO_N "(cached) $ECHO_C" >&6
  14924. else
  14925. cat >conftest.$ac_ext <<_ACEOF
  14926. /* confdefs.h. */
  14927. _ACEOF
  14928. cat confdefs.h >>conftest.$ac_ext
  14929. cat >>conftest.$ac_ext <<_ACEOF
  14930. /* end confdefs.h. */
  14931. #include <stdio.h>
  14932. int
  14933. main ()
  14934. {
  14935. #ifndef getc_unlocked
  14936. char *p = (char *) getc_unlocked;
  14937. #endif
  14938. ;
  14939. return 0;
  14940. }
  14941. _ACEOF
  14942. rm -f conftest.$ac_objext
  14943. if { (ac_try="$ac_compile"
  14944. case "(($ac_try" in
  14945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14946. *) ac_try_echo=$ac_try;;
  14947. esac
  14948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14949. (eval "$ac_compile") 2>conftest.er1
  14950. ac_status=$?
  14951. grep -v '^ *+' conftest.er1 >conftest.err
  14952. rm -f conftest.er1
  14953. cat conftest.err >&5
  14954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14955. (exit $ac_status); } && {
  14956. test -z "$ac_cxx_werror_flag" ||
  14957. test ! -s conftest.err
  14958. } && test -s conftest.$ac_objext; then
  14959. ac_cv_have_decl_getc_unlocked=yes
  14960. else
  14961. echo "$as_me: failed program was:" >&5
  14962. sed 's/^/| /' conftest.$ac_ext >&5
  14963. ac_cv_have_decl_getc_unlocked=no
  14964. fi
  14965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14966. fi
  14967. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14968. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14969. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14970. gt_value=1
  14971. else
  14972. gt_value=0
  14973. fi
  14974. cat >>confdefs.h <<_ACEOF
  14975. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14976. _ACEOF
  14977. case $gt_cv_func_printf_posix in
  14978. *yes) HAVE_POSIX_PRINTF=1 ;;
  14979. *) HAVE_POSIX_PRINTF=0 ;;
  14980. esac
  14981. if test "$ac_cv_func_asprintf" = yes; then
  14982. HAVE_ASPRINTF=1
  14983. else
  14984. HAVE_ASPRINTF=0
  14985. fi
  14986. if test "$ac_cv_func_snprintf" = yes; then
  14987. HAVE_SNPRINTF=1
  14988. else
  14989. HAVE_SNPRINTF=0
  14990. fi
  14991. if test "$ac_cv_func_wprintf" = yes; then
  14992. HAVE_WPRINTF=1
  14993. else
  14994. HAVE_WPRINTF=0
  14995. fi
  14996. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14997. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14998. if test "${am_cv_langinfo_codeset+set}" = set; then
  14999. echo $ECHO_N "(cached) $ECHO_C" >&6
  15000. else
  15001. cat >conftest.$ac_ext <<_ACEOF
  15002. /* confdefs.h. */
  15003. _ACEOF
  15004. cat confdefs.h >>conftest.$ac_ext
  15005. cat >>conftest.$ac_ext <<_ACEOF
  15006. /* end confdefs.h. */
  15007. #include <langinfo.h>
  15008. int
  15009. main ()
  15010. {
  15011. char* cs = nl_langinfo(CODESET); return !cs;
  15012. ;
  15013. return 0;
  15014. }
  15015. _ACEOF
  15016. rm -f conftest.$ac_objext conftest$ac_exeext
  15017. if { (ac_try="$ac_link"
  15018. case "(($ac_try" in
  15019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15020. *) ac_try_echo=$ac_try;;
  15021. esac
  15022. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15023. (eval "$ac_link") 2>conftest.er1
  15024. ac_status=$?
  15025. grep -v '^ *+' conftest.er1 >conftest.err
  15026. rm -f conftest.er1
  15027. cat conftest.err >&5
  15028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15029. (exit $ac_status); } && {
  15030. test -z "$ac_cxx_werror_flag" ||
  15031. test ! -s conftest.err
  15032. } && test -s conftest$ac_exeext &&
  15033. $as_test_x conftest$ac_exeext; then
  15034. am_cv_langinfo_codeset=yes
  15035. else
  15036. echo "$as_me: failed program was:" >&5
  15037. sed 's/^/| /' conftest.$ac_ext >&5
  15038. am_cv_langinfo_codeset=no
  15039. fi
  15040. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15041. conftest$ac_exeext conftest.$ac_ext
  15042. fi
  15043. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  15044. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  15045. if test $am_cv_langinfo_codeset = yes; then
  15046. cat >>confdefs.h <<\_ACEOF
  15047. #define HAVE_LANGINFO_CODESET 1
  15048. _ACEOF
  15049. fi
  15050. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  15051. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  15052. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  15053. echo $ECHO_N "(cached) $ECHO_C" >&6
  15054. else
  15055. cat >conftest.$ac_ext <<_ACEOF
  15056. /* confdefs.h. */
  15057. _ACEOF
  15058. cat confdefs.h >>conftest.$ac_ext
  15059. cat >>conftest.$ac_ext <<_ACEOF
  15060. /* end confdefs.h. */
  15061. #include <locale.h>
  15062. int
  15063. main ()
  15064. {
  15065. return LC_MESSAGES
  15066. ;
  15067. return 0;
  15068. }
  15069. _ACEOF
  15070. rm -f conftest.$ac_objext conftest$ac_exeext
  15071. if { (ac_try="$ac_link"
  15072. case "(($ac_try" in
  15073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15074. *) ac_try_echo=$ac_try;;
  15075. esac
  15076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15077. (eval "$ac_link") 2>conftest.er1
  15078. ac_status=$?
  15079. grep -v '^ *+' conftest.er1 >conftest.err
  15080. rm -f conftest.er1
  15081. cat conftest.err >&5
  15082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15083. (exit $ac_status); } && {
  15084. test -z "$ac_cxx_werror_flag" ||
  15085. test ! -s conftest.err
  15086. } && test -s conftest$ac_exeext &&
  15087. $as_test_x conftest$ac_exeext; then
  15088. gt_cv_val_LC_MESSAGES=yes
  15089. else
  15090. echo "$as_me: failed program was:" >&5
  15091. sed 's/^/| /' conftest.$ac_ext >&5
  15092. gt_cv_val_LC_MESSAGES=no
  15093. fi
  15094. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15095. conftest$ac_exeext conftest.$ac_ext
  15096. fi
  15097. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15098. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15099. if test $gt_cv_val_LC_MESSAGES = yes; then
  15100. cat >>confdefs.h <<\_ACEOF
  15101. #define HAVE_LC_MESSAGES 1
  15102. _ACEOF
  15103. fi
  15104. if test "$enable_shared" = yes; then
  15105. case "$host_os" in
  15106. mingw* | cygwin*) is_woe32dll=yes ;;
  15107. *) is_woe32dll=no ;;
  15108. esac
  15109. else
  15110. is_woe32dll=no
  15111. fi
  15112. WOE32DLL=$is_woe32dll
  15113. case "$host_os" in
  15114. mingw* | cygwin*) is_woe32=yes ;;
  15115. *) is_woe32=no ;;
  15116. esac
  15117. WOE32=$is_woe32
  15118. if test $WOE32 = yes; then
  15119. if test -n "$ac_tool_prefix"; then
  15120. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15121. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15122. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15123. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15124. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15125. echo $ECHO_N "(cached) $ECHO_C" >&6
  15126. else
  15127. if test -n "$WINDRES"; then
  15128. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15129. else
  15130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15131. for as_dir in $PATH
  15132. do
  15133. IFS=$as_save_IFS
  15134. test -z "$as_dir" && as_dir=.
  15135. for ac_exec_ext in '' $ac_executable_extensions; do
  15136. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15137. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15138. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15139. break 2
  15140. fi
  15141. done
  15142. done
  15143. IFS=$as_save_IFS
  15144. fi
  15145. fi
  15146. WINDRES=$ac_cv_prog_WINDRES
  15147. if test -n "$WINDRES"; then
  15148. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15149. echo "${ECHO_T}$WINDRES" >&6; }
  15150. else
  15151. { echo "$as_me:$LINENO: result: no" >&5
  15152. echo "${ECHO_T}no" >&6; }
  15153. fi
  15154. fi
  15155. if test -z "$ac_cv_prog_WINDRES"; then
  15156. ac_ct_WINDRES=$WINDRES
  15157. # Extract the first word of "windres", so it can be a program name with args.
  15158. set dummy windres; ac_word=$2
  15159. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15160. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15161. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15162. echo $ECHO_N "(cached) $ECHO_C" >&6
  15163. else
  15164. if test -n "$ac_ct_WINDRES"; then
  15165. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15166. else
  15167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15168. for as_dir in $PATH
  15169. do
  15170. IFS=$as_save_IFS
  15171. test -z "$as_dir" && as_dir=.
  15172. for ac_exec_ext in '' $ac_executable_extensions; do
  15173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15174. ac_cv_prog_ac_ct_WINDRES="windres"
  15175. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15176. break 2
  15177. fi
  15178. done
  15179. done
  15180. IFS=$as_save_IFS
  15181. fi
  15182. fi
  15183. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15184. if test -n "$ac_ct_WINDRES"; then
  15185. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15186. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15187. else
  15188. { echo "$as_me:$LINENO: result: no" >&5
  15189. echo "${ECHO_T}no" >&6; }
  15190. fi
  15191. if test "x$ac_ct_WINDRES" = x; then
  15192. WINDRES=""
  15193. else
  15194. case $cross_compiling:$ac_tool_warned in
  15195. yes:)
  15196. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15197. whose name does not start with the host triplet. If you think this
  15198. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15199. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15200. whose name does not start with the host triplet. If you think this
  15201. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15202. ac_tool_warned=yes ;;
  15203. esac
  15204. WINDRES=$ac_ct_WINDRES
  15205. fi
  15206. else
  15207. WINDRES="$ac_cv_prog_WINDRES"
  15208. fi
  15209. fi
  15210. case "$host_os" in
  15211. hpux*) LTLIBC="" ;;
  15212. *) LTLIBC="-lc" ;;
  15213. esac
  15214. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15215. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15216. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15217. echo $ECHO_N "(cached) $ECHO_C" >&6
  15218. else
  15219. gt_save_LIBS="$LIBS"
  15220. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15221. cat >conftest.$ac_ext <<_ACEOF
  15222. /* confdefs.h. */
  15223. _ACEOF
  15224. cat confdefs.h >>conftest.$ac_ext
  15225. cat >>conftest.$ac_ext <<_ACEOF
  15226. /* end confdefs.h. */
  15227. #include <CoreFoundation/CFPreferences.h>
  15228. int
  15229. main ()
  15230. {
  15231. CFPreferencesCopyAppValue(NULL, NULL)
  15232. ;
  15233. return 0;
  15234. }
  15235. _ACEOF
  15236. rm -f conftest.$ac_objext conftest$ac_exeext
  15237. if { (ac_try="$ac_link"
  15238. case "(($ac_try" in
  15239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15240. *) ac_try_echo=$ac_try;;
  15241. esac
  15242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15243. (eval "$ac_link") 2>conftest.er1
  15244. ac_status=$?
  15245. grep -v '^ *+' conftest.er1 >conftest.err
  15246. rm -f conftest.er1
  15247. cat conftest.err >&5
  15248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15249. (exit $ac_status); } && {
  15250. test -z "$ac_cxx_werror_flag" ||
  15251. test ! -s conftest.err
  15252. } && test -s conftest$ac_exeext &&
  15253. $as_test_x conftest$ac_exeext; then
  15254. gt_cv_func_CFPreferencesCopyAppValue=yes
  15255. else
  15256. echo "$as_me: failed program was:" >&5
  15257. sed 's/^/| /' conftest.$ac_ext >&5
  15258. gt_cv_func_CFPreferencesCopyAppValue=no
  15259. fi
  15260. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15261. conftest$ac_exeext conftest.$ac_ext
  15262. LIBS="$gt_save_LIBS"
  15263. fi
  15264. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15265. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15266. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15267. cat >>confdefs.h <<\_ACEOF
  15268. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15269. _ACEOF
  15270. fi
  15271. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15272. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15273. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15274. echo $ECHO_N "(cached) $ECHO_C" >&6
  15275. else
  15276. gt_save_LIBS="$LIBS"
  15277. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15278. cat >conftest.$ac_ext <<_ACEOF
  15279. /* confdefs.h. */
  15280. _ACEOF
  15281. cat confdefs.h >>conftest.$ac_ext
  15282. cat >>conftest.$ac_ext <<_ACEOF
  15283. /* end confdefs.h. */
  15284. #include <CoreFoundation/CFLocale.h>
  15285. int
  15286. main ()
  15287. {
  15288. CFLocaleCopyCurrent();
  15289. ;
  15290. return 0;
  15291. }
  15292. _ACEOF
  15293. rm -f conftest.$ac_objext conftest$ac_exeext
  15294. if { (ac_try="$ac_link"
  15295. case "(($ac_try" in
  15296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15297. *) ac_try_echo=$ac_try;;
  15298. esac
  15299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15300. (eval "$ac_link") 2>conftest.er1
  15301. ac_status=$?
  15302. grep -v '^ *+' conftest.er1 >conftest.err
  15303. rm -f conftest.er1
  15304. cat conftest.err >&5
  15305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15306. (exit $ac_status); } && {
  15307. test -z "$ac_cxx_werror_flag" ||
  15308. test ! -s conftest.err
  15309. } && test -s conftest$ac_exeext &&
  15310. $as_test_x conftest$ac_exeext; then
  15311. gt_cv_func_CFLocaleCopyCurrent=yes
  15312. else
  15313. echo "$as_me: failed program was:" >&5
  15314. sed 's/^/| /' conftest.$ac_ext >&5
  15315. gt_cv_func_CFLocaleCopyCurrent=no
  15316. fi
  15317. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15318. conftest$ac_exeext conftest.$ac_ext
  15319. LIBS="$gt_save_LIBS"
  15320. fi
  15321. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15322. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15323. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15324. cat >>confdefs.h <<\_ACEOF
  15325. #define HAVE_CFLOCALECOPYCURRENT 1
  15326. _ACEOF
  15327. fi
  15328. INTL_MACOSX_LIBS=
  15329. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15330. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15331. fi
  15332. BUILD_INCLUDED_LIBINTL=no
  15333. USE_INCLUDED_LIBINTL=no
  15334. LIBINTL=
  15335. LTLIBINTL=
  15336. POSUB=
  15337. case " $gt_needs " in
  15338. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15339. *" need-ngettext "*) gt_api_version=2 ;;
  15340. *) gt_api_version=1 ;;
  15341. esac
  15342. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15343. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15344. if test "$USE_NLS" = "yes"; then
  15345. gt_use_preinstalled_gnugettext=no
  15346. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15347. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15348. # Check whether --with-included-gettext was given.
  15349. if test "${with_included_gettext+set}" = set; then
  15350. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15351. else
  15352. nls_cv_force_use_gnu_gettext=no
  15353. fi
  15354. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15355. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15356. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15357. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15358. if test $gt_api_version -ge 3; then
  15359. gt_revision_test_code='
  15360. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15361. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15362. #endif
  15363. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15364. '
  15365. else
  15366. gt_revision_test_code=
  15367. fi
  15368. if test $gt_api_version -ge 2; then
  15369. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15370. else
  15371. gt_expression_test_code=
  15372. fi
  15373. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15374. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15375. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15376. echo $ECHO_N "(cached) $ECHO_C" >&6
  15377. else
  15378. cat >conftest.$ac_ext <<_ACEOF
  15379. /* confdefs.h. */
  15380. _ACEOF
  15381. cat confdefs.h >>conftest.$ac_ext
  15382. cat >>conftest.$ac_ext <<_ACEOF
  15383. /* end confdefs.h. */
  15384. #include <libintl.h>
  15385. $gt_revision_test_code
  15386. extern int _nl_msg_cat_cntr;
  15387. extern int *_nl_domain_bindings;
  15388. int
  15389. main ()
  15390. {
  15391. bindtextdomain ("", "");
  15392. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15393. ;
  15394. return 0;
  15395. }
  15396. _ACEOF
  15397. rm -f conftest.$ac_objext conftest$ac_exeext
  15398. if { (ac_try="$ac_link"
  15399. case "(($ac_try" in
  15400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15401. *) ac_try_echo=$ac_try;;
  15402. esac
  15403. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15404. (eval "$ac_link") 2>conftest.er1
  15405. ac_status=$?
  15406. grep -v '^ *+' conftest.er1 >conftest.err
  15407. rm -f conftest.er1
  15408. cat conftest.err >&5
  15409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15410. (exit $ac_status); } && {
  15411. test -z "$ac_cxx_werror_flag" ||
  15412. test ! -s conftest.err
  15413. } && test -s conftest$ac_exeext &&
  15414. $as_test_x conftest$ac_exeext; then
  15415. eval "$gt_func_gnugettext_libc=yes"
  15416. else
  15417. echo "$as_me: failed program was:" >&5
  15418. sed 's/^/| /' conftest.$ac_ext >&5
  15419. eval "$gt_func_gnugettext_libc=no"
  15420. fi
  15421. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15422. conftest$ac_exeext conftest.$ac_ext
  15423. fi
  15424. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15425. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15426. echo "${ECHO_T}$ac_res" >&6; }
  15427. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15428. use_additional=yes
  15429. acl_save_prefix="$prefix"
  15430. prefix="$acl_final_prefix"
  15431. acl_save_exec_prefix="$exec_prefix"
  15432. exec_prefix="$acl_final_exec_prefix"
  15433. eval additional_includedir=\"$includedir\"
  15434. eval additional_libdir=\"$libdir\"
  15435. exec_prefix="$acl_save_exec_prefix"
  15436. prefix="$acl_save_prefix"
  15437. # Check whether --with-libintl-prefix was given.
  15438. if test "${with_libintl_prefix+set}" = set; then
  15439. withval=$with_libintl_prefix;
  15440. if test "X$withval" = "Xno"; then
  15441. use_additional=no
  15442. else
  15443. if test "X$withval" = "X"; then
  15444. acl_save_prefix="$prefix"
  15445. prefix="$acl_final_prefix"
  15446. acl_save_exec_prefix="$exec_prefix"
  15447. exec_prefix="$acl_final_exec_prefix"
  15448. eval additional_includedir=\"$includedir\"
  15449. eval additional_libdir=\"$libdir\"
  15450. exec_prefix="$acl_save_exec_prefix"
  15451. prefix="$acl_save_prefix"
  15452. else
  15453. additional_includedir="$withval/include"
  15454. additional_libdir="$withval/$acl_libdirstem"
  15455. fi
  15456. fi
  15457. fi
  15458. LIBINTL=
  15459. LTLIBINTL=
  15460. INCINTL=
  15461. LIBINTL_PREFIX=
  15462. rpathdirs=
  15463. ltrpathdirs=
  15464. names_already_handled=
  15465. names_next_round='intl '
  15466. while test -n "$names_next_round"; do
  15467. names_this_round="$names_next_round"
  15468. names_next_round=
  15469. for name in $names_this_round; do
  15470. already_handled=
  15471. for n in $names_already_handled; do
  15472. if test "$n" = "$name"; then
  15473. already_handled=yes
  15474. break
  15475. fi
  15476. done
  15477. if test -z "$already_handled"; then
  15478. names_already_handled="$names_already_handled $name"
  15479. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15480. eval value=\"\$HAVE_LIB$uppername\"
  15481. if test -n "$value"; then
  15482. if test "$value" = yes; then
  15483. eval value=\"\$LIB$uppername\"
  15484. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15485. eval value=\"\$LTLIB$uppername\"
  15486. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15487. else
  15488. :
  15489. fi
  15490. else
  15491. found_dir=
  15492. found_la=
  15493. found_so=
  15494. found_a=
  15495. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15496. if test -n "$acl_shlibext"; then
  15497. shrext=".$acl_shlibext" # typically: shrext=.so
  15498. else
  15499. shrext=
  15500. fi
  15501. if test $use_additional = yes; then
  15502. dir="$additional_libdir"
  15503. if test -n "$acl_shlibext"; then
  15504. if test -f "$dir/$libname$shrext"; then
  15505. found_dir="$dir"
  15506. found_so="$dir/$libname$shrext"
  15507. else
  15508. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15509. ver=`(cd "$dir" && \
  15510. for f in "$libname$shrext".*; do echo "$f"; done \
  15511. | sed -e "s,^$libname$shrext\\\\.,," \
  15512. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15513. | sed 1q ) 2>/dev/null`
  15514. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15515. found_dir="$dir"
  15516. found_so="$dir/$libname$shrext.$ver"
  15517. fi
  15518. else
  15519. eval library_names=\"$acl_library_names_spec\"
  15520. for f in $library_names; do
  15521. if test -f "$dir/$f"; then
  15522. found_dir="$dir"
  15523. found_so="$dir/$f"
  15524. break
  15525. fi
  15526. done
  15527. fi
  15528. fi
  15529. fi
  15530. if test "X$found_dir" = "X"; then
  15531. if test -f "$dir/$libname.$acl_libext"; then
  15532. found_dir="$dir"
  15533. found_a="$dir/$libname.$acl_libext"
  15534. fi
  15535. fi
  15536. if test "X$found_dir" != "X"; then
  15537. if test -f "$dir/$libname.la"; then
  15538. found_la="$dir/$libname.la"
  15539. fi
  15540. fi
  15541. fi
  15542. if test "X$found_dir" = "X"; then
  15543. for x in $LDFLAGS $LTLIBINTL; 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. case "$x" in
  15552. -L*)
  15553. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15554. if test -n "$acl_shlibext"; then
  15555. if test -f "$dir/$libname$shrext"; then
  15556. found_dir="$dir"
  15557. found_so="$dir/$libname$shrext"
  15558. else
  15559. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15560. ver=`(cd "$dir" && \
  15561. for f in "$libname$shrext".*; do echo "$f"; done \
  15562. | sed -e "s,^$libname$shrext\\\\.,," \
  15563. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15564. | sed 1q ) 2>/dev/null`
  15565. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15566. found_dir="$dir"
  15567. found_so="$dir/$libname$shrext.$ver"
  15568. fi
  15569. else
  15570. eval library_names=\"$acl_library_names_spec\"
  15571. for f in $library_names; do
  15572. if test -f "$dir/$f"; then
  15573. found_dir="$dir"
  15574. found_so="$dir/$f"
  15575. break
  15576. fi
  15577. done
  15578. fi
  15579. fi
  15580. fi
  15581. if test "X$found_dir" = "X"; then
  15582. if test -f "$dir/$libname.$acl_libext"; then
  15583. found_dir="$dir"
  15584. found_a="$dir/$libname.$acl_libext"
  15585. fi
  15586. fi
  15587. if test "X$found_dir" != "X"; then
  15588. if test -f "$dir/$libname.la"; then
  15589. found_la="$dir/$libname.la"
  15590. fi
  15591. fi
  15592. ;;
  15593. esac
  15594. if test "X$found_dir" != "X"; then
  15595. break
  15596. fi
  15597. done
  15598. fi
  15599. if test "X$found_dir" != "X"; then
  15600. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15601. if test "X$found_so" != "X"; then
  15602. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15603. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15604. else
  15605. haveit=
  15606. for x in $ltrpathdirs; do
  15607. if test "X$x" = "X$found_dir"; then
  15608. haveit=yes
  15609. break
  15610. fi
  15611. done
  15612. if test -z "$haveit"; then
  15613. ltrpathdirs="$ltrpathdirs $found_dir"
  15614. fi
  15615. if test "$acl_hardcode_direct" = yes; then
  15616. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15617. else
  15618. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15619. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15620. haveit=
  15621. for x in $rpathdirs; do
  15622. if test "X$x" = "X$found_dir"; then
  15623. haveit=yes
  15624. break
  15625. fi
  15626. done
  15627. if test -z "$haveit"; then
  15628. rpathdirs="$rpathdirs $found_dir"
  15629. fi
  15630. else
  15631. haveit=
  15632. for x in $LDFLAGS $LIBINTL; do
  15633. acl_save_prefix="$prefix"
  15634. prefix="$acl_final_prefix"
  15635. acl_save_exec_prefix="$exec_prefix"
  15636. exec_prefix="$acl_final_exec_prefix"
  15637. eval x=\"$x\"
  15638. exec_prefix="$acl_save_exec_prefix"
  15639. prefix="$acl_save_prefix"
  15640. if test "X$x" = "X-L$found_dir"; then
  15641. haveit=yes
  15642. break
  15643. fi
  15644. done
  15645. if test -z "$haveit"; then
  15646. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15647. fi
  15648. if test "$acl_hardcode_minus_L" != no; then
  15649. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15650. else
  15651. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15652. fi
  15653. fi
  15654. fi
  15655. fi
  15656. else
  15657. if test "X$found_a" != "X"; then
  15658. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15659. else
  15660. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15661. fi
  15662. fi
  15663. additional_includedir=
  15664. case "$found_dir" in
  15665. */$acl_libdirstem | */$acl_libdirstem/)
  15666. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15667. LIBINTL_PREFIX="$basedir"
  15668. additional_includedir="$basedir/include"
  15669. ;;
  15670. esac
  15671. if test "X$additional_includedir" != "X"; then
  15672. if test "X$additional_includedir" != "X/usr/include"; then
  15673. haveit=
  15674. if test "X$additional_includedir" = "X/usr/local/include"; then
  15675. if test -n "$GCC"; then
  15676. case $host_os in
  15677. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15678. esac
  15679. fi
  15680. fi
  15681. if test -z "$haveit"; then
  15682. for x in $CPPFLAGS $INCINTL; do
  15683. acl_save_prefix="$prefix"
  15684. prefix="$acl_final_prefix"
  15685. acl_save_exec_prefix="$exec_prefix"
  15686. exec_prefix="$acl_final_exec_prefix"
  15687. eval x=\"$x\"
  15688. exec_prefix="$acl_save_exec_prefix"
  15689. prefix="$acl_save_prefix"
  15690. if test "X$x" = "X-I$additional_includedir"; then
  15691. haveit=yes
  15692. break
  15693. fi
  15694. done
  15695. if test -z "$haveit"; then
  15696. if test -d "$additional_includedir"; then
  15697. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15698. fi
  15699. fi
  15700. fi
  15701. fi
  15702. fi
  15703. if test -n "$found_la"; then
  15704. save_libdir="$libdir"
  15705. case "$found_la" in
  15706. */* | *\\*) . "$found_la" ;;
  15707. *) . "./$found_la" ;;
  15708. esac
  15709. libdir="$save_libdir"
  15710. for dep in $dependency_libs; do
  15711. case "$dep" in
  15712. -L*)
  15713. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15714. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15715. haveit=
  15716. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15717. if test -n "$GCC"; then
  15718. case $host_os in
  15719. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15720. esac
  15721. fi
  15722. fi
  15723. if test -z "$haveit"; then
  15724. haveit=
  15725. for x in $LDFLAGS $LIBINTL; do
  15726. acl_save_prefix="$prefix"
  15727. prefix="$acl_final_prefix"
  15728. acl_save_exec_prefix="$exec_prefix"
  15729. exec_prefix="$acl_final_exec_prefix"
  15730. eval x=\"$x\"
  15731. exec_prefix="$acl_save_exec_prefix"
  15732. prefix="$acl_save_prefix"
  15733. if test "X$x" = "X-L$additional_libdir"; then
  15734. haveit=yes
  15735. break
  15736. fi
  15737. done
  15738. if test -z "$haveit"; then
  15739. if test -d "$additional_libdir"; then
  15740. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15741. fi
  15742. fi
  15743. haveit=
  15744. for x in $LDFLAGS $LTLIBINTL; do
  15745. acl_save_prefix="$prefix"
  15746. prefix="$acl_final_prefix"
  15747. acl_save_exec_prefix="$exec_prefix"
  15748. exec_prefix="$acl_final_exec_prefix"
  15749. eval x=\"$x\"
  15750. exec_prefix="$acl_save_exec_prefix"
  15751. prefix="$acl_save_prefix"
  15752. if test "X$x" = "X-L$additional_libdir"; then
  15753. haveit=yes
  15754. break
  15755. fi
  15756. done
  15757. if test -z "$haveit"; then
  15758. if test -d "$additional_libdir"; then
  15759. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15760. fi
  15761. fi
  15762. fi
  15763. fi
  15764. ;;
  15765. -R*)
  15766. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15767. if test "$enable_rpath" != no; then
  15768. haveit=
  15769. for x in $rpathdirs; do
  15770. if test "X$x" = "X$dir"; then
  15771. haveit=yes
  15772. break
  15773. fi
  15774. done
  15775. if test -z "$haveit"; then
  15776. rpathdirs="$rpathdirs $dir"
  15777. fi
  15778. haveit=
  15779. for x in $ltrpathdirs; do
  15780. if test "X$x" = "X$dir"; then
  15781. haveit=yes
  15782. break
  15783. fi
  15784. done
  15785. if test -z "$haveit"; then
  15786. ltrpathdirs="$ltrpathdirs $dir"
  15787. fi
  15788. fi
  15789. ;;
  15790. -l*)
  15791. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15792. ;;
  15793. *.la)
  15794. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15795. ;;
  15796. *)
  15797. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15798. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15799. ;;
  15800. esac
  15801. done
  15802. fi
  15803. else
  15804. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15805. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15806. fi
  15807. fi
  15808. fi
  15809. done
  15810. done
  15811. if test "X$rpathdirs" != "X"; then
  15812. if test -n "$acl_hardcode_libdir_separator"; then
  15813. alldirs=
  15814. for found_dir in $rpathdirs; do
  15815. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15816. done
  15817. acl_save_libdir="$libdir"
  15818. libdir="$alldirs"
  15819. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15820. libdir="$acl_save_libdir"
  15821. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15822. else
  15823. for found_dir in $rpathdirs; do
  15824. acl_save_libdir="$libdir"
  15825. libdir="$found_dir"
  15826. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15827. libdir="$acl_save_libdir"
  15828. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15829. done
  15830. fi
  15831. fi
  15832. if test "X$ltrpathdirs" != "X"; then
  15833. for found_dir in $ltrpathdirs; do
  15834. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15835. done
  15836. fi
  15837. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15838. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15839. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15840. echo $ECHO_N "(cached) $ECHO_C" >&6
  15841. else
  15842. gt_save_CPPFLAGS="$CPPFLAGS"
  15843. CPPFLAGS="$CPPFLAGS $INCINTL"
  15844. gt_save_LIBS="$LIBS"
  15845. LIBS="$LIBS $LIBINTL"
  15846. cat >conftest.$ac_ext <<_ACEOF
  15847. /* confdefs.h. */
  15848. _ACEOF
  15849. cat confdefs.h >>conftest.$ac_ext
  15850. cat >>conftest.$ac_ext <<_ACEOF
  15851. /* end confdefs.h. */
  15852. #include <libintl.h>
  15853. $gt_revision_test_code
  15854. extern int _nl_msg_cat_cntr;
  15855. extern
  15856. #ifdef __cplusplus
  15857. "C"
  15858. #endif
  15859. const char *_nl_expand_alias (const char *);
  15860. int
  15861. main ()
  15862. {
  15863. bindtextdomain ("", "");
  15864. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15865. ;
  15866. return 0;
  15867. }
  15868. _ACEOF
  15869. rm -f conftest.$ac_objext conftest$ac_exeext
  15870. if { (ac_try="$ac_link"
  15871. case "(($ac_try" in
  15872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15873. *) ac_try_echo=$ac_try;;
  15874. esac
  15875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15876. (eval "$ac_link") 2>conftest.er1
  15877. ac_status=$?
  15878. grep -v '^ *+' conftest.er1 >conftest.err
  15879. rm -f conftest.er1
  15880. cat conftest.err >&5
  15881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15882. (exit $ac_status); } && {
  15883. test -z "$ac_cxx_werror_flag" ||
  15884. test ! -s conftest.err
  15885. } && test -s conftest$ac_exeext &&
  15886. $as_test_x conftest$ac_exeext; then
  15887. eval "$gt_func_gnugettext_libintl=yes"
  15888. else
  15889. echo "$as_me: failed program was:" >&5
  15890. sed 's/^/| /' conftest.$ac_ext >&5
  15891. eval "$gt_func_gnugettext_libintl=no"
  15892. fi
  15893. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15894. conftest$ac_exeext conftest.$ac_ext
  15895. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15896. LIBS="$LIBS $LIBICONV"
  15897. cat >conftest.$ac_ext <<_ACEOF
  15898. /* confdefs.h. */
  15899. _ACEOF
  15900. cat confdefs.h >>conftest.$ac_ext
  15901. cat >>conftest.$ac_ext <<_ACEOF
  15902. /* end confdefs.h. */
  15903. #include <libintl.h>
  15904. $gt_revision_test_code
  15905. extern int _nl_msg_cat_cntr;
  15906. extern
  15907. #ifdef __cplusplus
  15908. "C"
  15909. #endif
  15910. const char *_nl_expand_alias (const char *);
  15911. int
  15912. main ()
  15913. {
  15914. bindtextdomain ("", "");
  15915. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15916. ;
  15917. return 0;
  15918. }
  15919. _ACEOF
  15920. rm -f conftest.$ac_objext conftest$ac_exeext
  15921. if { (ac_try="$ac_link"
  15922. case "(($ac_try" in
  15923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15924. *) ac_try_echo=$ac_try;;
  15925. esac
  15926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15927. (eval "$ac_link") 2>conftest.er1
  15928. ac_status=$?
  15929. grep -v '^ *+' conftest.er1 >conftest.err
  15930. rm -f conftest.er1
  15931. cat conftest.err >&5
  15932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15933. (exit $ac_status); } && {
  15934. test -z "$ac_cxx_werror_flag" ||
  15935. test ! -s conftest.err
  15936. } && test -s conftest$ac_exeext &&
  15937. $as_test_x conftest$ac_exeext; then
  15938. LIBINTL="$LIBINTL $LIBICONV"
  15939. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15940. eval "$gt_func_gnugettext_libintl=yes"
  15941. else
  15942. echo "$as_me: failed program was:" >&5
  15943. sed 's/^/| /' conftest.$ac_ext >&5
  15944. fi
  15945. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15946. conftest$ac_exeext conftest.$ac_ext
  15947. fi
  15948. CPPFLAGS="$gt_save_CPPFLAGS"
  15949. LIBS="$gt_save_LIBS"
  15950. fi
  15951. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15952. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15953. echo "${ECHO_T}$ac_res" >&6; }
  15954. fi
  15955. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15956. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15957. && test "$PACKAGE" != gettext-runtime \
  15958. && test "$PACKAGE" != gettext-tools; }; then
  15959. gt_use_preinstalled_gnugettext=yes
  15960. else
  15961. LIBINTL=
  15962. LTLIBINTL=
  15963. INCINTL=
  15964. fi
  15965. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15966. nls_cv_use_gnu_gettext=yes
  15967. fi
  15968. fi
  15969. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15970. BUILD_INCLUDED_LIBINTL=yes
  15971. USE_INCLUDED_LIBINTL=yes
  15972. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15973. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15974. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15975. fi
  15976. CATOBJEXT=
  15977. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15978. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15979. CATOBJEXT=.gmo
  15980. fi
  15981. if test -n "$INTL_MACOSX_LIBS"; then
  15982. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15983. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15984. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15985. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15986. fi
  15987. fi
  15988. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15989. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15990. cat >>confdefs.h <<\_ACEOF
  15991. #define ENABLE_NLS 1
  15992. _ACEOF
  15993. else
  15994. USE_NLS=no
  15995. fi
  15996. fi
  15997. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15998. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15999. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  16000. echo "${ECHO_T}$USE_NLS" >&6; }
  16001. if test "$USE_NLS" = "yes"; then
  16002. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  16003. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  16004. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16005. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16006. gt_source="external libintl"
  16007. else
  16008. gt_source="libc"
  16009. fi
  16010. else
  16011. gt_source="included intl directory"
  16012. fi
  16013. { echo "$as_me:$LINENO: result: $gt_source" >&5
  16014. echo "${ECHO_T}$gt_source" >&6; }
  16015. fi
  16016. if test "$USE_NLS" = "yes"; then
  16017. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16018. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16019. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  16020. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  16021. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  16022. echo "${ECHO_T}$LIBINTL" >&6; }
  16023. for element in $INCINTL; do
  16024. haveit=
  16025. for x in $CPPFLAGS; do
  16026. acl_save_prefix="$prefix"
  16027. prefix="$acl_final_prefix"
  16028. acl_save_exec_prefix="$exec_prefix"
  16029. exec_prefix="$acl_final_exec_prefix"
  16030. eval x=\"$x\"
  16031. exec_prefix="$acl_save_exec_prefix"
  16032. prefix="$acl_save_prefix"
  16033. if test "X$x" = "X$element"; then
  16034. haveit=yes
  16035. break
  16036. fi
  16037. done
  16038. if test -z "$haveit"; then
  16039. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16040. fi
  16041. done
  16042. fi
  16043. cat >>confdefs.h <<\_ACEOF
  16044. #define HAVE_GETTEXT 1
  16045. _ACEOF
  16046. cat >>confdefs.h <<\_ACEOF
  16047. #define HAVE_DCGETTEXT 1
  16048. _ACEOF
  16049. fi
  16050. POSUB=po
  16051. fi
  16052. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  16053. BUILD_INCLUDED_LIBINTL=yes
  16054. fi
  16055. nls_cv_header_intl=
  16056. nls_cv_header_libgt=
  16057. DATADIRNAME=share
  16058. INSTOBJEXT=.mo
  16059. GENCAT=gencat
  16060. INTLOBJS=
  16061. if test "$USE_INCLUDED_LIBINTL" = yes; then
  16062. INTLOBJS="\$(GETTOBJS)"
  16063. fi
  16064. INTL_LIBTOOL_SUFFIX_PREFIX=
  16065. INTLLIBS="$LIBINTL"
  16066. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  16067. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  16068. if test "${ac_cv_lib_error_at_line+set}" = set; then
  16069. echo $ECHO_N "(cached) $ECHO_C" >&6
  16070. else
  16071. cat >conftest.$ac_ext <<_ACEOF
  16072. /* confdefs.h. */
  16073. _ACEOF
  16074. cat confdefs.h >>conftest.$ac_ext
  16075. cat >>conftest.$ac_ext <<_ACEOF
  16076. /* end confdefs.h. */
  16077. #include <error.h>
  16078. int
  16079. main ()
  16080. {
  16081. error_at_line (0, 0, "", 0, "an error occurred");
  16082. ;
  16083. return 0;
  16084. }
  16085. _ACEOF
  16086. rm -f conftest.$ac_objext conftest$ac_exeext
  16087. if { (ac_try="$ac_link"
  16088. case "(($ac_try" in
  16089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16090. *) ac_try_echo=$ac_try;;
  16091. esac
  16092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16093. (eval "$ac_link") 2>conftest.er1
  16094. ac_status=$?
  16095. grep -v '^ *+' conftest.er1 >conftest.err
  16096. rm -f conftest.er1
  16097. cat conftest.err >&5
  16098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16099. (exit $ac_status); } && {
  16100. test -z "$ac_cxx_werror_flag" ||
  16101. test ! -s conftest.err
  16102. } && test -s conftest$ac_exeext &&
  16103. $as_test_x conftest$ac_exeext; then
  16104. ac_cv_lib_error_at_line=yes
  16105. else
  16106. echo "$as_me: failed program was:" >&5
  16107. sed 's/^/| /' conftest.$ac_ext >&5
  16108. ac_cv_lib_error_at_line=no
  16109. fi
  16110. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16111. conftest$ac_exeext conftest.$ac_ext
  16112. fi
  16113. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16114. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16115. if test $ac_cv_lib_error_at_line = no; then
  16116. case " $LIBOBJS " in
  16117. *" error.$ac_objext "* ) ;;
  16118. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16119. ;;
  16120. esac
  16121. fi
  16122. if test $ac_cv_c_compiler_gnu = yes; then
  16123. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16124. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16125. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16126. echo $ECHO_N "(cached) $ECHO_C" >&6
  16127. else
  16128. ac_pattern="Autoconf.*'x'"
  16129. cat >conftest.$ac_ext <<_ACEOF
  16130. /* confdefs.h. */
  16131. _ACEOF
  16132. cat confdefs.h >>conftest.$ac_ext
  16133. cat >>conftest.$ac_ext <<_ACEOF
  16134. /* end confdefs.h. */
  16135. #include <sgtty.h>
  16136. Autoconf TIOCGETP
  16137. _ACEOF
  16138. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16139. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16140. ac_cv_prog_gcc_traditional=yes
  16141. else
  16142. ac_cv_prog_gcc_traditional=no
  16143. fi
  16144. rm -f conftest*
  16145. if test $ac_cv_prog_gcc_traditional = no; then
  16146. cat >conftest.$ac_ext <<_ACEOF
  16147. /* confdefs.h. */
  16148. _ACEOF
  16149. cat confdefs.h >>conftest.$ac_ext
  16150. cat >>conftest.$ac_ext <<_ACEOF
  16151. /* end confdefs.h. */
  16152. #include <termio.h>
  16153. Autoconf TCGETA
  16154. _ACEOF
  16155. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16156. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16157. ac_cv_prog_gcc_traditional=yes
  16158. fi
  16159. rm -f conftest*
  16160. fi
  16161. fi
  16162. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16163. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16164. if test $ac_cv_prog_gcc_traditional = yes; then
  16165. CC="$CC -traditional"
  16166. fi
  16167. fi
  16168. case "$target" in
  16169. *mingw*)
  16170. ;;
  16171. *)
  16172. for ac_header in stdlib.h
  16173. do
  16174. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16175. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16176. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16177. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16178. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16179. echo $ECHO_N "(cached) $ECHO_C" >&6
  16180. fi
  16181. ac_res=`eval echo '${'$as_ac_Header'}'`
  16182. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16183. echo "${ECHO_T}$ac_res" >&6; }
  16184. else
  16185. # Is the header compilable?
  16186. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16187. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16188. cat >conftest.$ac_ext <<_ACEOF
  16189. /* confdefs.h. */
  16190. _ACEOF
  16191. cat confdefs.h >>conftest.$ac_ext
  16192. cat >>conftest.$ac_ext <<_ACEOF
  16193. /* end confdefs.h. */
  16194. $ac_includes_default
  16195. #include <$ac_header>
  16196. _ACEOF
  16197. rm -f conftest.$ac_objext
  16198. if { (ac_try="$ac_compile"
  16199. case "(($ac_try" in
  16200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16201. *) ac_try_echo=$ac_try;;
  16202. esac
  16203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16204. (eval "$ac_compile") 2>conftest.er1
  16205. ac_status=$?
  16206. grep -v '^ *+' conftest.er1 >conftest.err
  16207. rm -f conftest.er1
  16208. cat conftest.err >&5
  16209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16210. (exit $ac_status); } && {
  16211. test -z "$ac_cxx_werror_flag" ||
  16212. test ! -s conftest.err
  16213. } && test -s conftest.$ac_objext; then
  16214. ac_header_compiler=yes
  16215. else
  16216. echo "$as_me: failed program was:" >&5
  16217. sed 's/^/| /' conftest.$ac_ext >&5
  16218. ac_header_compiler=no
  16219. fi
  16220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16221. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16222. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16223. # Is the header present?
  16224. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16225. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16226. cat >conftest.$ac_ext <<_ACEOF
  16227. /* confdefs.h. */
  16228. _ACEOF
  16229. cat confdefs.h >>conftest.$ac_ext
  16230. cat >>conftest.$ac_ext <<_ACEOF
  16231. /* end confdefs.h. */
  16232. #include <$ac_header>
  16233. _ACEOF
  16234. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16235. case "(($ac_try" in
  16236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16237. *) ac_try_echo=$ac_try;;
  16238. esac
  16239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16240. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16241. ac_status=$?
  16242. grep -v '^ *+' conftest.er1 >conftest.err
  16243. rm -f conftest.er1
  16244. cat conftest.err >&5
  16245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16246. (exit $ac_status); } >/dev/null && {
  16247. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16248. test ! -s conftest.err
  16249. }; then
  16250. ac_header_preproc=yes
  16251. else
  16252. echo "$as_me: failed program was:" >&5
  16253. sed 's/^/| /' conftest.$ac_ext >&5
  16254. ac_header_preproc=no
  16255. fi
  16256. rm -f conftest.err conftest.$ac_ext
  16257. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16258. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16259. # So? What about this header?
  16260. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16261. yes:no: )
  16262. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16263. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16264. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16265. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16266. ac_header_preproc=yes
  16267. ;;
  16268. no:yes:* )
  16269. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16270. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16271. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16272. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16273. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16274. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16275. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16276. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16277. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16278. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16279. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16280. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16281. ( cat <<\_ASBOX
  16282. ## ----------------------------------------------- ##
  16283. ## Report this to t-tujikawa@users.sourceforge.net ##
  16284. ## ----------------------------------------------- ##
  16285. _ASBOX
  16286. ) | sed "s/^/$as_me: WARNING: /" >&2
  16287. ;;
  16288. esac
  16289. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16290. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16291. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16292. echo $ECHO_N "(cached) $ECHO_C" >&6
  16293. else
  16294. eval "$as_ac_Header=\$ac_header_preproc"
  16295. fi
  16296. ac_res=`eval echo '${'$as_ac_Header'}'`
  16297. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16298. echo "${ECHO_T}$ac_res" >&6; }
  16299. fi
  16300. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16301. cat >>confdefs.h <<_ACEOF
  16302. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16303. _ACEOF
  16304. fi
  16305. done
  16306. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16307. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16308. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16309. echo $ECHO_N "(cached) $ECHO_C" >&6
  16310. else
  16311. if test "$cross_compiling" = yes; then
  16312. ac_cv_func_malloc_0_nonnull=no
  16313. else
  16314. cat >conftest.$ac_ext <<_ACEOF
  16315. /* confdefs.h. */
  16316. _ACEOF
  16317. cat confdefs.h >>conftest.$ac_ext
  16318. cat >>conftest.$ac_ext <<_ACEOF
  16319. /* end confdefs.h. */
  16320. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16321. # include <stdlib.h>
  16322. #else
  16323. char *malloc ();
  16324. #endif
  16325. int
  16326. main ()
  16327. {
  16328. return ! malloc (0);
  16329. ;
  16330. return 0;
  16331. }
  16332. _ACEOF
  16333. rm -f conftest$ac_exeext
  16334. if { (ac_try="$ac_link"
  16335. case "(($ac_try" in
  16336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16337. *) ac_try_echo=$ac_try;;
  16338. esac
  16339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16340. (eval "$ac_link") 2>&5
  16341. ac_status=$?
  16342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16343. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16344. { (case "(($ac_try" in
  16345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16346. *) ac_try_echo=$ac_try;;
  16347. esac
  16348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16349. (eval "$ac_try") 2>&5
  16350. ac_status=$?
  16351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16352. (exit $ac_status); }; }; then
  16353. ac_cv_func_malloc_0_nonnull=yes
  16354. else
  16355. echo "$as_me: program exited with status $ac_status" >&5
  16356. echo "$as_me: failed program was:" >&5
  16357. sed 's/^/| /' conftest.$ac_ext >&5
  16358. ( exit $ac_status )
  16359. ac_cv_func_malloc_0_nonnull=no
  16360. fi
  16361. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16362. fi
  16363. fi
  16364. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16365. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16366. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16367. cat >>confdefs.h <<\_ACEOF
  16368. #define HAVE_MALLOC 1
  16369. _ACEOF
  16370. else
  16371. cat >>confdefs.h <<\_ACEOF
  16372. #define HAVE_MALLOC 0
  16373. _ACEOF
  16374. case " $LIBOBJS " in
  16375. *" malloc.$ac_objext "* ) ;;
  16376. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16377. ;;
  16378. esac
  16379. cat >>confdefs.h <<\_ACEOF
  16380. #define malloc rpl_malloc
  16381. _ACEOF
  16382. fi
  16383. for ac_header in stdlib.h
  16384. do
  16385. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16386. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16387. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16388. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16389. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16390. echo $ECHO_N "(cached) $ECHO_C" >&6
  16391. fi
  16392. ac_res=`eval echo '${'$as_ac_Header'}'`
  16393. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16394. echo "${ECHO_T}$ac_res" >&6; }
  16395. else
  16396. # Is the header compilable?
  16397. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16398. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16399. cat >conftest.$ac_ext <<_ACEOF
  16400. /* confdefs.h. */
  16401. _ACEOF
  16402. cat confdefs.h >>conftest.$ac_ext
  16403. cat >>conftest.$ac_ext <<_ACEOF
  16404. /* end confdefs.h. */
  16405. $ac_includes_default
  16406. #include <$ac_header>
  16407. _ACEOF
  16408. rm -f conftest.$ac_objext
  16409. if { (ac_try="$ac_compile"
  16410. case "(($ac_try" in
  16411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16412. *) ac_try_echo=$ac_try;;
  16413. esac
  16414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16415. (eval "$ac_compile") 2>conftest.er1
  16416. ac_status=$?
  16417. grep -v '^ *+' conftest.er1 >conftest.err
  16418. rm -f conftest.er1
  16419. cat conftest.err >&5
  16420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16421. (exit $ac_status); } && {
  16422. test -z "$ac_cxx_werror_flag" ||
  16423. test ! -s conftest.err
  16424. } && test -s conftest.$ac_objext; then
  16425. ac_header_compiler=yes
  16426. else
  16427. echo "$as_me: failed program was:" >&5
  16428. sed 's/^/| /' conftest.$ac_ext >&5
  16429. ac_header_compiler=no
  16430. fi
  16431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16432. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16433. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16434. # Is the header present?
  16435. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16436. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16437. cat >conftest.$ac_ext <<_ACEOF
  16438. /* confdefs.h. */
  16439. _ACEOF
  16440. cat confdefs.h >>conftest.$ac_ext
  16441. cat >>conftest.$ac_ext <<_ACEOF
  16442. /* end confdefs.h. */
  16443. #include <$ac_header>
  16444. _ACEOF
  16445. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16446. case "(($ac_try" in
  16447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16448. *) ac_try_echo=$ac_try;;
  16449. esac
  16450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16451. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16452. ac_status=$?
  16453. grep -v '^ *+' conftest.er1 >conftest.err
  16454. rm -f conftest.er1
  16455. cat conftest.err >&5
  16456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16457. (exit $ac_status); } >/dev/null && {
  16458. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16459. test ! -s conftest.err
  16460. }; then
  16461. ac_header_preproc=yes
  16462. else
  16463. echo "$as_me: failed program was:" >&5
  16464. sed 's/^/| /' conftest.$ac_ext >&5
  16465. ac_header_preproc=no
  16466. fi
  16467. rm -f conftest.err conftest.$ac_ext
  16468. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16469. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16470. # So? What about this header?
  16471. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16472. yes:no: )
  16473. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16474. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16475. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16476. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16477. ac_header_preproc=yes
  16478. ;;
  16479. no:yes:* )
  16480. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16481. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16482. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16483. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16484. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16485. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16486. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16487. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16488. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16489. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16490. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16491. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16492. ( cat <<\_ASBOX
  16493. ## ----------------------------------------------- ##
  16494. ## Report this to t-tujikawa@users.sourceforge.net ##
  16495. ## ----------------------------------------------- ##
  16496. _ASBOX
  16497. ) | sed "s/^/$as_me: WARNING: /" >&2
  16498. ;;
  16499. esac
  16500. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16501. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16502. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16503. echo $ECHO_N "(cached) $ECHO_C" >&6
  16504. else
  16505. eval "$as_ac_Header=\$ac_header_preproc"
  16506. fi
  16507. ac_res=`eval echo '${'$as_ac_Header'}'`
  16508. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16509. echo "${ECHO_T}$ac_res" >&6; }
  16510. fi
  16511. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16512. cat >>confdefs.h <<_ACEOF
  16513. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16514. _ACEOF
  16515. fi
  16516. done
  16517. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16518. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16519. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16520. echo $ECHO_N "(cached) $ECHO_C" >&6
  16521. else
  16522. if test "$cross_compiling" = yes; then
  16523. ac_cv_func_realloc_0_nonnull=no
  16524. else
  16525. cat >conftest.$ac_ext <<_ACEOF
  16526. /* confdefs.h. */
  16527. _ACEOF
  16528. cat confdefs.h >>conftest.$ac_ext
  16529. cat >>conftest.$ac_ext <<_ACEOF
  16530. /* end confdefs.h. */
  16531. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16532. # include <stdlib.h>
  16533. #else
  16534. char *realloc ();
  16535. #endif
  16536. int
  16537. main ()
  16538. {
  16539. return ! realloc (0, 0);
  16540. ;
  16541. return 0;
  16542. }
  16543. _ACEOF
  16544. rm -f conftest$ac_exeext
  16545. if { (ac_try="$ac_link"
  16546. case "(($ac_try" in
  16547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16548. *) ac_try_echo=$ac_try;;
  16549. esac
  16550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16551. (eval "$ac_link") 2>&5
  16552. ac_status=$?
  16553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16554. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16555. { (case "(($ac_try" in
  16556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16557. *) ac_try_echo=$ac_try;;
  16558. esac
  16559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16560. (eval "$ac_try") 2>&5
  16561. ac_status=$?
  16562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16563. (exit $ac_status); }; }; then
  16564. ac_cv_func_realloc_0_nonnull=yes
  16565. else
  16566. echo "$as_me: program exited with status $ac_status" >&5
  16567. echo "$as_me: failed program was:" >&5
  16568. sed 's/^/| /' conftest.$ac_ext >&5
  16569. ( exit $ac_status )
  16570. ac_cv_func_realloc_0_nonnull=no
  16571. fi
  16572. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16573. fi
  16574. fi
  16575. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16576. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16577. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16578. cat >>confdefs.h <<\_ACEOF
  16579. #define HAVE_REALLOC 1
  16580. _ACEOF
  16581. else
  16582. cat >>confdefs.h <<\_ACEOF
  16583. #define HAVE_REALLOC 0
  16584. _ACEOF
  16585. case " $LIBOBJS " in
  16586. *" realloc.$ac_objext "* ) ;;
  16587. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16588. ;;
  16589. esac
  16590. cat >>confdefs.h <<\_ACEOF
  16591. #define realloc rpl_realloc
  16592. _ACEOF
  16593. fi
  16594. ;;
  16595. esac
  16596. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16597. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16598. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16599. echo $ECHO_N "(cached) $ECHO_C" >&6
  16600. else
  16601. if test "$cross_compiling" = yes; then
  16602. ac_cv_func_memcmp_working=no
  16603. else
  16604. cat >conftest.$ac_ext <<_ACEOF
  16605. /* confdefs.h. */
  16606. _ACEOF
  16607. cat confdefs.h >>conftest.$ac_ext
  16608. cat >>conftest.$ac_ext <<_ACEOF
  16609. /* end confdefs.h. */
  16610. $ac_includes_default
  16611. int
  16612. main ()
  16613. {
  16614. /* Some versions of memcmp are not 8-bit clean. */
  16615. char c0 = '\100', c1 = '\200', c2 = '\201';
  16616. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16617. return 1;
  16618. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16619. or more and with at least one buffer not starting on a 4-byte boundary.
  16620. William Lewis provided this test program. */
  16621. {
  16622. char foo[21];
  16623. char bar[21];
  16624. int i;
  16625. for (i = 0; i < 4; i++)
  16626. {
  16627. char *a = foo + i;
  16628. char *b = bar + i;
  16629. strcpy (a, "--------01111111");
  16630. strcpy (b, "--------10000000");
  16631. if (memcmp (a, b, 16) >= 0)
  16632. return 1;
  16633. }
  16634. return 0;
  16635. }
  16636. ;
  16637. return 0;
  16638. }
  16639. _ACEOF
  16640. rm -f conftest$ac_exeext
  16641. if { (ac_try="$ac_link"
  16642. case "(($ac_try" in
  16643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16644. *) ac_try_echo=$ac_try;;
  16645. esac
  16646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16647. (eval "$ac_link") 2>&5
  16648. ac_status=$?
  16649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16650. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16651. { (case "(($ac_try" in
  16652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16653. *) ac_try_echo=$ac_try;;
  16654. esac
  16655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16656. (eval "$ac_try") 2>&5
  16657. ac_status=$?
  16658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16659. (exit $ac_status); }; }; then
  16660. ac_cv_func_memcmp_working=yes
  16661. else
  16662. echo "$as_me: program exited with status $ac_status" >&5
  16663. echo "$as_me: failed program was:" >&5
  16664. sed 's/^/| /' conftest.$ac_ext >&5
  16665. ( exit $ac_status )
  16666. ac_cv_func_memcmp_working=no
  16667. fi
  16668. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16669. fi
  16670. fi
  16671. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16672. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16673. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16674. *" memcmp.$ac_objext "* ) ;;
  16675. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16676. ;;
  16677. esac
  16678. for ac_header in $ac_header_list
  16679. do
  16680. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16681. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16682. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16683. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16684. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16685. echo $ECHO_N "(cached) $ECHO_C" >&6
  16686. fi
  16687. ac_res=`eval echo '${'$as_ac_Header'}'`
  16688. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16689. echo "${ECHO_T}$ac_res" >&6; }
  16690. else
  16691. # Is the header compilable?
  16692. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16693. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16694. cat >conftest.$ac_ext <<_ACEOF
  16695. /* confdefs.h. */
  16696. _ACEOF
  16697. cat confdefs.h >>conftest.$ac_ext
  16698. cat >>conftest.$ac_ext <<_ACEOF
  16699. /* end confdefs.h. */
  16700. $ac_includes_default
  16701. #include <$ac_header>
  16702. _ACEOF
  16703. rm -f conftest.$ac_objext
  16704. if { (ac_try="$ac_compile"
  16705. case "(($ac_try" in
  16706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16707. *) ac_try_echo=$ac_try;;
  16708. esac
  16709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16710. (eval "$ac_compile") 2>conftest.er1
  16711. ac_status=$?
  16712. grep -v '^ *+' conftest.er1 >conftest.err
  16713. rm -f conftest.er1
  16714. cat conftest.err >&5
  16715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16716. (exit $ac_status); } && {
  16717. test -z "$ac_cxx_werror_flag" ||
  16718. test ! -s conftest.err
  16719. } && test -s conftest.$ac_objext; then
  16720. ac_header_compiler=yes
  16721. else
  16722. echo "$as_me: failed program was:" >&5
  16723. sed 's/^/| /' conftest.$ac_ext >&5
  16724. ac_header_compiler=no
  16725. fi
  16726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16727. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16728. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16729. # Is the header present?
  16730. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16731. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16732. cat >conftest.$ac_ext <<_ACEOF
  16733. /* confdefs.h. */
  16734. _ACEOF
  16735. cat confdefs.h >>conftest.$ac_ext
  16736. cat >>conftest.$ac_ext <<_ACEOF
  16737. /* end confdefs.h. */
  16738. #include <$ac_header>
  16739. _ACEOF
  16740. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16741. case "(($ac_try" in
  16742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16743. *) ac_try_echo=$ac_try;;
  16744. esac
  16745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16746. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16747. ac_status=$?
  16748. grep -v '^ *+' conftest.er1 >conftest.err
  16749. rm -f conftest.er1
  16750. cat conftest.err >&5
  16751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16752. (exit $ac_status); } >/dev/null && {
  16753. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16754. test ! -s conftest.err
  16755. }; then
  16756. ac_header_preproc=yes
  16757. else
  16758. echo "$as_me: failed program was:" >&5
  16759. sed 's/^/| /' conftest.$ac_ext >&5
  16760. ac_header_preproc=no
  16761. fi
  16762. rm -f conftest.err conftest.$ac_ext
  16763. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16764. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16765. # So? What about this header?
  16766. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16767. yes:no: )
  16768. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16769. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16770. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16771. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16772. ac_header_preproc=yes
  16773. ;;
  16774. no:yes:* )
  16775. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16776. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16777. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16778. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16779. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16780. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16781. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16782. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16783. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16784. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16785. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16786. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16787. ( cat <<\_ASBOX
  16788. ## ----------------------------------------------- ##
  16789. ## Report this to t-tujikawa@users.sourceforge.net ##
  16790. ## ----------------------------------------------- ##
  16791. _ASBOX
  16792. ) | sed "s/^/$as_me: WARNING: /" >&2
  16793. ;;
  16794. esac
  16795. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16796. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16797. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16798. echo $ECHO_N "(cached) $ECHO_C" >&6
  16799. else
  16800. eval "$as_ac_Header=\$ac_header_preproc"
  16801. fi
  16802. ac_res=`eval echo '${'$as_ac_Header'}'`
  16803. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16804. echo "${ECHO_T}$ac_res" >&6; }
  16805. fi
  16806. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16807. cat >>confdefs.h <<_ACEOF
  16808. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16809. _ACEOF
  16810. fi
  16811. done
  16812. for ac_func in $ac_func_list
  16813. do
  16814. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16815. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16816. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16817. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16818. echo $ECHO_N "(cached) $ECHO_C" >&6
  16819. else
  16820. cat >conftest.$ac_ext <<_ACEOF
  16821. /* confdefs.h. */
  16822. _ACEOF
  16823. cat confdefs.h >>conftest.$ac_ext
  16824. cat >>conftest.$ac_ext <<_ACEOF
  16825. /* end confdefs.h. */
  16826. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16827. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16828. #define $ac_func innocuous_$ac_func
  16829. /* System header to define __stub macros and hopefully few prototypes,
  16830. which can conflict with char $ac_func (); below.
  16831. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16832. <limits.h> exists even on freestanding compilers. */
  16833. #ifdef __STDC__
  16834. # include <limits.h>
  16835. #else
  16836. # include <assert.h>
  16837. #endif
  16838. #undef $ac_func
  16839. /* Override any GCC internal prototype to avoid an error.
  16840. Use char because int might match the return type of a GCC
  16841. builtin and then its argument prototype would still apply. */
  16842. #ifdef __cplusplus
  16843. extern "C"
  16844. #endif
  16845. char $ac_func ();
  16846. /* The GNU C library defines this for functions which it implements
  16847. to always fail with ENOSYS. Some functions are actually named
  16848. something starting with __ and the normal name is an alias. */
  16849. #if defined __stub_$ac_func || defined __stub___$ac_func
  16850. choke me
  16851. #endif
  16852. int
  16853. main ()
  16854. {
  16855. return $ac_func ();
  16856. ;
  16857. return 0;
  16858. }
  16859. _ACEOF
  16860. rm -f conftest.$ac_objext conftest$ac_exeext
  16861. if { (ac_try="$ac_link"
  16862. case "(($ac_try" in
  16863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16864. *) ac_try_echo=$ac_try;;
  16865. esac
  16866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16867. (eval "$ac_link") 2>conftest.er1
  16868. ac_status=$?
  16869. grep -v '^ *+' conftest.er1 >conftest.err
  16870. rm -f conftest.er1
  16871. cat conftest.err >&5
  16872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16873. (exit $ac_status); } && {
  16874. test -z "$ac_cxx_werror_flag" ||
  16875. test ! -s conftest.err
  16876. } && test -s conftest$ac_exeext &&
  16877. $as_test_x conftest$ac_exeext; then
  16878. eval "$as_ac_var=yes"
  16879. else
  16880. echo "$as_me: failed program was:" >&5
  16881. sed 's/^/| /' conftest.$ac_ext >&5
  16882. eval "$as_ac_var=no"
  16883. fi
  16884. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16885. conftest$ac_exeext conftest.$ac_ext
  16886. fi
  16887. ac_res=`eval echo '${'$as_ac_var'}'`
  16888. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16889. echo "${ECHO_T}$ac_res" >&6; }
  16890. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16891. cat >>confdefs.h <<_ACEOF
  16892. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16893. _ACEOF
  16894. fi
  16895. done
  16896. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16897. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16898. if test "${ac_cv_func_working_mktime+set}" = set; then
  16899. echo $ECHO_N "(cached) $ECHO_C" >&6
  16900. else
  16901. if test "$cross_compiling" = yes; then
  16902. ac_cv_func_working_mktime=no
  16903. else
  16904. cat >conftest.$ac_ext <<_ACEOF
  16905. /* confdefs.h. */
  16906. _ACEOF
  16907. cat confdefs.h >>conftest.$ac_ext
  16908. cat >>conftest.$ac_ext <<_ACEOF
  16909. /* end confdefs.h. */
  16910. /* Test program from Paul Eggert and Tony Leneis. */
  16911. #ifdef TIME_WITH_SYS_TIME
  16912. # include <sys/time.h>
  16913. # include <time.h>
  16914. #else
  16915. # ifdef HAVE_SYS_TIME_H
  16916. # include <sys/time.h>
  16917. # else
  16918. # include <time.h>
  16919. # endif
  16920. #endif
  16921. #include <limits.h>
  16922. #include <stdlib.h>
  16923. #ifdef HAVE_UNISTD_H
  16924. # include <unistd.h>
  16925. #endif
  16926. #ifndef HAVE_ALARM
  16927. # define alarm(X) /* empty */
  16928. #endif
  16929. /* Work around redefinition to rpl_putenv by other config tests. */
  16930. #undef putenv
  16931. static time_t time_t_max;
  16932. static time_t time_t_min;
  16933. /* Values we'll use to set the TZ environment variable. */
  16934. static char *tz_strings[] = {
  16935. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16936. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16937. };
  16938. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16939. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16940. Based on a problem report from Andreas Jaeger. */
  16941. static int
  16942. spring_forward_gap ()
  16943. {
  16944. /* glibc (up to about 1998-10-07) failed this test. */
  16945. struct tm tm;
  16946. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16947. instead of "TZ=America/Vancouver" in order to detect the bug even
  16948. on systems that don't support the Olson extension, or don't have the
  16949. full zoneinfo tables installed. */
  16950. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16951. tm.tm_year = 98;
  16952. tm.tm_mon = 3;
  16953. tm.tm_mday = 5;
  16954. tm.tm_hour = 2;
  16955. tm.tm_min = 0;
  16956. tm.tm_sec = 0;
  16957. tm.tm_isdst = -1;
  16958. return mktime (&tm) != (time_t) -1;
  16959. }
  16960. static int
  16961. mktime_test1 (now)
  16962. time_t now;
  16963. {
  16964. struct tm *lt;
  16965. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16966. }
  16967. static int
  16968. mktime_test (now)
  16969. time_t now;
  16970. {
  16971. return (mktime_test1 (now)
  16972. && mktime_test1 ((time_t) (time_t_max - now))
  16973. && mktime_test1 ((time_t) (time_t_min + now)));
  16974. }
  16975. static int
  16976. irix_6_4_bug ()
  16977. {
  16978. /* Based on code from Ariel Faigon. */
  16979. struct tm tm;
  16980. tm.tm_year = 96;
  16981. tm.tm_mon = 3;
  16982. tm.tm_mday = 0;
  16983. tm.tm_hour = 0;
  16984. tm.tm_min = 0;
  16985. tm.tm_sec = 0;
  16986. tm.tm_isdst = -1;
  16987. mktime (&tm);
  16988. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16989. }
  16990. static int
  16991. bigtime_test (j)
  16992. int j;
  16993. {
  16994. struct tm tm;
  16995. time_t now;
  16996. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16997. now = mktime (&tm);
  16998. if (now != (time_t) -1)
  16999. {
  17000. struct tm *lt = localtime (&now);
  17001. if (! (lt
  17002. && lt->tm_year == tm.tm_year
  17003. && lt->tm_mon == tm.tm_mon
  17004. && lt->tm_mday == tm.tm_mday
  17005. && lt->tm_hour == tm.tm_hour
  17006. && lt->tm_min == tm.tm_min
  17007. && lt->tm_sec == tm.tm_sec
  17008. && lt->tm_yday == tm.tm_yday
  17009. && lt->tm_wday == tm.tm_wday
  17010. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17011. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17012. return 0;
  17013. }
  17014. return 1;
  17015. }
  17016. static int
  17017. year_2050_test ()
  17018. {
  17019. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17020. ignoring leap seconds. */
  17021. unsigned long int answer = 2527315200UL;
  17022. struct tm tm;
  17023. time_t t;
  17024. tm.tm_year = 2050 - 1900;
  17025. tm.tm_mon = 2 - 1;
  17026. tm.tm_mday = 1;
  17027. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17028. tm.tm_isdst = -1;
  17029. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17030. instead of "TZ=America/Vancouver" in order to detect the bug even
  17031. on systems that don't support the Olson extension, or don't have the
  17032. full zoneinfo tables installed. */
  17033. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17034. t = mktime (&tm);
  17035. /* Check that the result is either a failure, or close enough
  17036. to the correct answer that we can assume the discrepancy is
  17037. due to leap seconds. */
  17038. return (t == (time_t) -1
  17039. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17040. }
  17041. int
  17042. main ()
  17043. {
  17044. time_t t, delta;
  17045. int i, j;
  17046. /* This test makes some buggy mktime implementations loop.
  17047. Give up after 60 seconds; a mktime slower than that
  17048. isn't worth using anyway. */
  17049. alarm (60);
  17050. for (;;)
  17051. {
  17052. t = (time_t_max << 1) + 1;
  17053. if (t <= time_t_max)
  17054. break;
  17055. time_t_max = t;
  17056. }
  17057. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17058. delta = time_t_max / 997; /* a suitable prime number */
  17059. for (i = 0; i < N_STRINGS; i++)
  17060. {
  17061. if (tz_strings[i])
  17062. putenv (tz_strings[i]);
  17063. for (t = 0; t <= time_t_max - delta; t += delta)
  17064. if (! mktime_test (t))
  17065. return 1;
  17066. if (! (mktime_test ((time_t) 1)
  17067. && mktime_test ((time_t) (60 * 60))
  17068. && mktime_test ((time_t) (60 * 60 * 24))))
  17069. return 1;
  17070. for (j = 1; ; j <<= 1)
  17071. if (! bigtime_test (j))
  17072. return 1;
  17073. else if (INT_MAX / 2 < j)
  17074. break;
  17075. if (! bigtime_test (INT_MAX))
  17076. return 1;
  17077. }
  17078. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17079. }
  17080. _ACEOF
  17081. rm -f conftest$ac_exeext
  17082. if { (ac_try="$ac_link"
  17083. case "(($ac_try" in
  17084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17085. *) ac_try_echo=$ac_try;;
  17086. esac
  17087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17088. (eval "$ac_link") 2>&5
  17089. ac_status=$?
  17090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17091. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17092. { (case "(($ac_try" in
  17093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17094. *) ac_try_echo=$ac_try;;
  17095. esac
  17096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17097. (eval "$ac_try") 2>&5
  17098. ac_status=$?
  17099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17100. (exit $ac_status); }; }; then
  17101. ac_cv_func_working_mktime=yes
  17102. else
  17103. echo "$as_me: program exited with status $ac_status" >&5
  17104. echo "$as_me: failed program was:" >&5
  17105. sed 's/^/| /' conftest.$ac_ext >&5
  17106. ( exit $ac_status )
  17107. ac_cv_func_working_mktime=no
  17108. fi
  17109. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17110. fi
  17111. fi
  17112. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17113. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17114. if test $ac_cv_func_working_mktime = no; then
  17115. case " $LIBOBJS " in
  17116. *" mktime.$ac_objext "* ) ;;
  17117. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17118. ;;
  17119. esac
  17120. fi
  17121. for ac_header in stdlib.h unistd.h
  17122. do
  17123. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17124. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17125. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17126. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17127. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17128. echo $ECHO_N "(cached) $ECHO_C" >&6
  17129. fi
  17130. ac_res=`eval echo '${'$as_ac_Header'}'`
  17131. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17132. echo "${ECHO_T}$ac_res" >&6; }
  17133. else
  17134. # Is the header compilable?
  17135. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17136. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17137. cat >conftest.$ac_ext <<_ACEOF
  17138. /* confdefs.h. */
  17139. _ACEOF
  17140. cat confdefs.h >>conftest.$ac_ext
  17141. cat >>conftest.$ac_ext <<_ACEOF
  17142. /* end confdefs.h. */
  17143. $ac_includes_default
  17144. #include <$ac_header>
  17145. _ACEOF
  17146. rm -f conftest.$ac_objext
  17147. if { (ac_try="$ac_compile"
  17148. case "(($ac_try" in
  17149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17150. *) ac_try_echo=$ac_try;;
  17151. esac
  17152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17153. (eval "$ac_compile") 2>conftest.er1
  17154. ac_status=$?
  17155. grep -v '^ *+' conftest.er1 >conftest.err
  17156. rm -f conftest.er1
  17157. cat conftest.err >&5
  17158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17159. (exit $ac_status); } && {
  17160. test -z "$ac_cxx_werror_flag" ||
  17161. test ! -s conftest.err
  17162. } && test -s conftest.$ac_objext; then
  17163. ac_header_compiler=yes
  17164. else
  17165. echo "$as_me: failed program was:" >&5
  17166. sed 's/^/| /' conftest.$ac_ext >&5
  17167. ac_header_compiler=no
  17168. fi
  17169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17170. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17171. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17172. # Is the header present?
  17173. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17174. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17175. cat >conftest.$ac_ext <<_ACEOF
  17176. /* confdefs.h. */
  17177. _ACEOF
  17178. cat confdefs.h >>conftest.$ac_ext
  17179. cat >>conftest.$ac_ext <<_ACEOF
  17180. /* end confdefs.h. */
  17181. #include <$ac_header>
  17182. _ACEOF
  17183. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17184. case "(($ac_try" in
  17185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17186. *) ac_try_echo=$ac_try;;
  17187. esac
  17188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17189. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17190. ac_status=$?
  17191. grep -v '^ *+' conftest.er1 >conftest.err
  17192. rm -f conftest.er1
  17193. cat conftest.err >&5
  17194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17195. (exit $ac_status); } >/dev/null && {
  17196. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17197. test ! -s conftest.err
  17198. }; then
  17199. ac_header_preproc=yes
  17200. else
  17201. echo "$as_me: failed program was:" >&5
  17202. sed 's/^/| /' conftest.$ac_ext >&5
  17203. ac_header_preproc=no
  17204. fi
  17205. rm -f conftest.err conftest.$ac_ext
  17206. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17207. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17208. # So? What about this header?
  17209. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17210. yes:no: )
  17211. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17212. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17213. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17214. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17215. ac_header_preproc=yes
  17216. ;;
  17217. no:yes:* )
  17218. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17219. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17220. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17221. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17222. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17223. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17224. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17225. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17226. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17227. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17228. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17229. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17230. ( cat <<\_ASBOX
  17231. ## ----------------------------------------------- ##
  17232. ## Report this to t-tujikawa@users.sourceforge.net ##
  17233. ## ----------------------------------------------- ##
  17234. _ASBOX
  17235. ) | sed "s/^/$as_me: WARNING: /" >&2
  17236. ;;
  17237. esac
  17238. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17239. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17240. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17241. echo $ECHO_N "(cached) $ECHO_C" >&6
  17242. else
  17243. eval "$as_ac_Header=\$ac_header_preproc"
  17244. fi
  17245. ac_res=`eval echo '${'$as_ac_Header'}'`
  17246. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17247. echo "${ECHO_T}$ac_res" >&6; }
  17248. fi
  17249. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17250. cat >>confdefs.h <<_ACEOF
  17251. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17252. _ACEOF
  17253. fi
  17254. done
  17255. for ac_func in getpagesize
  17256. do
  17257. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17258. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17259. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17260. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17261. echo $ECHO_N "(cached) $ECHO_C" >&6
  17262. else
  17263. cat >conftest.$ac_ext <<_ACEOF
  17264. /* confdefs.h. */
  17265. _ACEOF
  17266. cat confdefs.h >>conftest.$ac_ext
  17267. cat >>conftest.$ac_ext <<_ACEOF
  17268. /* end confdefs.h. */
  17269. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17270. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17271. #define $ac_func innocuous_$ac_func
  17272. /* System header to define __stub macros and hopefully few prototypes,
  17273. which can conflict with char $ac_func (); below.
  17274. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17275. <limits.h> exists even on freestanding compilers. */
  17276. #ifdef __STDC__
  17277. # include <limits.h>
  17278. #else
  17279. # include <assert.h>
  17280. #endif
  17281. #undef $ac_func
  17282. /* Override any GCC internal prototype to avoid an error.
  17283. Use char because int might match the return type of a GCC
  17284. builtin and then its argument prototype would still apply. */
  17285. #ifdef __cplusplus
  17286. extern "C"
  17287. #endif
  17288. char $ac_func ();
  17289. /* The GNU C library defines this for functions which it implements
  17290. to always fail with ENOSYS. Some functions are actually named
  17291. something starting with __ and the normal name is an alias. */
  17292. #if defined __stub_$ac_func || defined __stub___$ac_func
  17293. choke me
  17294. #endif
  17295. int
  17296. main ()
  17297. {
  17298. return $ac_func ();
  17299. ;
  17300. return 0;
  17301. }
  17302. _ACEOF
  17303. rm -f conftest.$ac_objext conftest$ac_exeext
  17304. if { (ac_try="$ac_link"
  17305. case "(($ac_try" in
  17306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17307. *) ac_try_echo=$ac_try;;
  17308. esac
  17309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17310. (eval "$ac_link") 2>conftest.er1
  17311. ac_status=$?
  17312. grep -v '^ *+' conftest.er1 >conftest.err
  17313. rm -f conftest.er1
  17314. cat conftest.err >&5
  17315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17316. (exit $ac_status); } && {
  17317. test -z "$ac_cxx_werror_flag" ||
  17318. test ! -s conftest.err
  17319. } && test -s conftest$ac_exeext &&
  17320. $as_test_x conftest$ac_exeext; then
  17321. eval "$as_ac_var=yes"
  17322. else
  17323. echo "$as_me: failed program was:" >&5
  17324. sed 's/^/| /' conftest.$ac_ext >&5
  17325. eval "$as_ac_var=no"
  17326. fi
  17327. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17328. conftest$ac_exeext conftest.$ac_ext
  17329. fi
  17330. ac_res=`eval echo '${'$as_ac_var'}'`
  17331. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17332. echo "${ECHO_T}$ac_res" >&6; }
  17333. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17334. cat >>confdefs.h <<_ACEOF
  17335. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17336. _ACEOF
  17337. fi
  17338. done
  17339. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17340. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17341. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17342. echo $ECHO_N "(cached) $ECHO_C" >&6
  17343. else
  17344. if test "$cross_compiling" = yes; then
  17345. ac_cv_func_mmap_fixed_mapped=no
  17346. else
  17347. cat >conftest.$ac_ext <<_ACEOF
  17348. /* confdefs.h. */
  17349. _ACEOF
  17350. cat confdefs.h >>conftest.$ac_ext
  17351. cat >>conftest.$ac_ext <<_ACEOF
  17352. /* end confdefs.h. */
  17353. $ac_includes_default
  17354. /* malloc might have been renamed as rpl_malloc. */
  17355. #undef malloc
  17356. /* Thanks to Mike Haertel and Jim Avera for this test.
  17357. Here is a matrix of mmap possibilities:
  17358. mmap private not fixed
  17359. mmap private fixed at somewhere currently unmapped
  17360. mmap private fixed at somewhere already mapped
  17361. mmap shared not fixed
  17362. mmap shared fixed at somewhere currently unmapped
  17363. mmap shared fixed at somewhere already mapped
  17364. For private mappings, we should verify that changes cannot be read()
  17365. back from the file, nor mmap's back from the file at a different
  17366. address. (There have been systems where private was not correctly
  17367. implemented like the infamous i386 svr4.0, and systems where the
  17368. VM page cache was not coherent with the file system buffer cache
  17369. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17370. For shared mappings, we should conversely verify that changes get
  17371. propagated back to all the places they're supposed to be.
  17372. Grep wants private fixed already mapped.
  17373. The main things grep needs to know about mmap are:
  17374. * does it exist and is it safe to write into the mmap'd area
  17375. * how to use it (BSD variants) */
  17376. #include <fcntl.h>
  17377. #include <sys/mman.h>
  17378. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17379. char *malloc ();
  17380. #endif
  17381. /* This mess was copied from the GNU getpagesize.h. */
  17382. #ifndef HAVE_GETPAGESIZE
  17383. /* Assume that all systems that can run configure have sys/param.h. */
  17384. # ifndef HAVE_SYS_PARAM_H
  17385. # define HAVE_SYS_PARAM_H 1
  17386. # endif
  17387. # ifdef _SC_PAGESIZE
  17388. # define getpagesize() sysconf(_SC_PAGESIZE)
  17389. # else /* no _SC_PAGESIZE */
  17390. # ifdef HAVE_SYS_PARAM_H
  17391. # include <sys/param.h>
  17392. # ifdef EXEC_PAGESIZE
  17393. # define getpagesize() EXEC_PAGESIZE
  17394. # else /* no EXEC_PAGESIZE */
  17395. # ifdef NBPG
  17396. # define getpagesize() NBPG * CLSIZE
  17397. # ifndef CLSIZE
  17398. # define CLSIZE 1
  17399. # endif /* no CLSIZE */
  17400. # else /* no NBPG */
  17401. # ifdef NBPC
  17402. # define getpagesize() NBPC
  17403. # else /* no NBPC */
  17404. # ifdef PAGESIZE
  17405. # define getpagesize() PAGESIZE
  17406. # endif /* PAGESIZE */
  17407. # endif /* no NBPC */
  17408. # endif /* no NBPG */
  17409. # endif /* no EXEC_PAGESIZE */
  17410. # else /* no HAVE_SYS_PARAM_H */
  17411. # define getpagesize() 8192 /* punt totally */
  17412. # endif /* no HAVE_SYS_PARAM_H */
  17413. # endif /* no _SC_PAGESIZE */
  17414. #endif /* no HAVE_GETPAGESIZE */
  17415. int
  17416. main ()
  17417. {
  17418. char *data, *data2, *data3;
  17419. int i, pagesize;
  17420. int fd;
  17421. pagesize = getpagesize ();
  17422. /* First, make a file with some known garbage in it. */
  17423. data = (char *) malloc (pagesize);
  17424. if (!data)
  17425. return 1;
  17426. for (i = 0; i < pagesize; ++i)
  17427. *(data + i) = rand ();
  17428. umask (0);
  17429. fd = creat ("conftest.mmap", 0600);
  17430. if (fd < 0)
  17431. return 1;
  17432. if (write (fd, data, pagesize) != pagesize)
  17433. return 1;
  17434. close (fd);
  17435. /* Next, try to mmap the file at a fixed address which already has
  17436. something else allocated at it. If we can, also make sure that
  17437. we see the same garbage. */
  17438. fd = open ("conftest.mmap", O_RDWR);
  17439. if (fd < 0)
  17440. return 1;
  17441. data2 = (char *) malloc (2 * pagesize);
  17442. if (!data2)
  17443. return 1;
  17444. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17445. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17446. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17447. return 1;
  17448. for (i = 0; i < pagesize; ++i)
  17449. if (*(data + i) != *(data2 + i))
  17450. return 1;
  17451. /* Finally, make sure that changes to the mapped area do not
  17452. percolate back to the file as seen by read(). (This is a bug on
  17453. some variants of i386 svr4.0.) */
  17454. for (i = 0; i < pagesize; ++i)
  17455. *(data2 + i) = *(data2 + i) + 1;
  17456. data3 = (char *) malloc (pagesize);
  17457. if (!data3)
  17458. return 1;
  17459. if (read (fd, data3, pagesize) != pagesize)
  17460. return 1;
  17461. for (i = 0; i < pagesize; ++i)
  17462. if (*(data + i) != *(data3 + i))
  17463. return 1;
  17464. close (fd);
  17465. return 0;
  17466. }
  17467. _ACEOF
  17468. rm -f conftest$ac_exeext
  17469. if { (ac_try="$ac_link"
  17470. case "(($ac_try" in
  17471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17472. *) ac_try_echo=$ac_try;;
  17473. esac
  17474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17475. (eval "$ac_link") 2>&5
  17476. ac_status=$?
  17477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17478. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17479. { (case "(($ac_try" in
  17480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17481. *) ac_try_echo=$ac_try;;
  17482. esac
  17483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17484. (eval "$ac_try") 2>&5
  17485. ac_status=$?
  17486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17487. (exit $ac_status); }; }; then
  17488. ac_cv_func_mmap_fixed_mapped=yes
  17489. else
  17490. echo "$as_me: program exited with status $ac_status" >&5
  17491. echo "$as_me: failed program was:" >&5
  17492. sed 's/^/| /' conftest.$ac_ext >&5
  17493. ( exit $ac_status )
  17494. ac_cv_func_mmap_fixed_mapped=no
  17495. fi
  17496. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17497. fi
  17498. fi
  17499. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17500. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17501. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17502. cat >>confdefs.h <<\_ACEOF
  17503. #define HAVE_MMAP 1
  17504. _ACEOF
  17505. fi
  17506. rm -f conftest.mmap
  17507. for ac_header in sys/select.h sys/socket.h
  17508. do
  17509. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17510. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17511. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17512. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17513. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17514. echo $ECHO_N "(cached) $ECHO_C" >&6
  17515. fi
  17516. ac_res=`eval echo '${'$as_ac_Header'}'`
  17517. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17518. echo "${ECHO_T}$ac_res" >&6; }
  17519. else
  17520. # Is the header compilable?
  17521. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17522. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17523. cat >conftest.$ac_ext <<_ACEOF
  17524. /* confdefs.h. */
  17525. _ACEOF
  17526. cat confdefs.h >>conftest.$ac_ext
  17527. cat >>conftest.$ac_ext <<_ACEOF
  17528. /* end confdefs.h. */
  17529. $ac_includes_default
  17530. #include <$ac_header>
  17531. _ACEOF
  17532. rm -f conftest.$ac_objext
  17533. if { (ac_try="$ac_compile"
  17534. case "(($ac_try" in
  17535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17536. *) ac_try_echo=$ac_try;;
  17537. esac
  17538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17539. (eval "$ac_compile") 2>conftest.er1
  17540. ac_status=$?
  17541. grep -v '^ *+' conftest.er1 >conftest.err
  17542. rm -f conftest.er1
  17543. cat conftest.err >&5
  17544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17545. (exit $ac_status); } && {
  17546. test -z "$ac_cxx_werror_flag" ||
  17547. test ! -s conftest.err
  17548. } && test -s conftest.$ac_objext; then
  17549. ac_header_compiler=yes
  17550. else
  17551. echo "$as_me: failed program was:" >&5
  17552. sed 's/^/| /' conftest.$ac_ext >&5
  17553. ac_header_compiler=no
  17554. fi
  17555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17556. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17557. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17558. # Is the header present?
  17559. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17560. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17561. cat >conftest.$ac_ext <<_ACEOF
  17562. /* confdefs.h. */
  17563. _ACEOF
  17564. cat confdefs.h >>conftest.$ac_ext
  17565. cat >>conftest.$ac_ext <<_ACEOF
  17566. /* end confdefs.h. */
  17567. #include <$ac_header>
  17568. _ACEOF
  17569. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17570. case "(($ac_try" in
  17571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17572. *) ac_try_echo=$ac_try;;
  17573. esac
  17574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17575. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17576. ac_status=$?
  17577. grep -v '^ *+' conftest.er1 >conftest.err
  17578. rm -f conftest.er1
  17579. cat conftest.err >&5
  17580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17581. (exit $ac_status); } >/dev/null && {
  17582. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17583. test ! -s conftest.err
  17584. }; then
  17585. ac_header_preproc=yes
  17586. else
  17587. echo "$as_me: failed program was:" >&5
  17588. sed 's/^/| /' conftest.$ac_ext >&5
  17589. ac_header_preproc=no
  17590. fi
  17591. rm -f conftest.err conftest.$ac_ext
  17592. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17593. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17594. # So? What about this header?
  17595. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17596. yes:no: )
  17597. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17598. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17599. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17600. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17601. ac_header_preproc=yes
  17602. ;;
  17603. no:yes:* )
  17604. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17605. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17606. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17607. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17608. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17609. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17610. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17611. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17612. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17613. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17614. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17615. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17616. ( cat <<\_ASBOX
  17617. ## ----------------------------------------------- ##
  17618. ## Report this to t-tujikawa@users.sourceforge.net ##
  17619. ## ----------------------------------------------- ##
  17620. _ASBOX
  17621. ) | sed "s/^/$as_me: WARNING: /" >&2
  17622. ;;
  17623. esac
  17624. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17625. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17626. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17627. echo $ECHO_N "(cached) $ECHO_C" >&6
  17628. else
  17629. eval "$as_ac_Header=\$ac_header_preproc"
  17630. fi
  17631. ac_res=`eval echo '${'$as_ac_Header'}'`
  17632. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17633. echo "${ECHO_T}$ac_res" >&6; }
  17634. fi
  17635. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17636. cat >>confdefs.h <<_ACEOF
  17637. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17638. _ACEOF
  17639. fi
  17640. done
  17641. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17642. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17643. if test "${ac_cv_func_select_args+set}" = set; then
  17644. echo $ECHO_N "(cached) $ECHO_C" >&6
  17645. else
  17646. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17647. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17648. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17649. cat >conftest.$ac_ext <<_ACEOF
  17650. /* confdefs.h. */
  17651. _ACEOF
  17652. cat confdefs.h >>conftest.$ac_ext
  17653. cat >>conftest.$ac_ext <<_ACEOF
  17654. /* end confdefs.h. */
  17655. $ac_includes_default
  17656. #ifdef HAVE_SYS_SELECT_H
  17657. # include <sys/select.h>
  17658. #endif
  17659. #ifdef HAVE_SYS_SOCKET_H
  17660. # include <sys/socket.h>
  17661. #endif
  17662. int
  17663. main ()
  17664. {
  17665. extern int select ($ac_arg1,
  17666. $ac_arg234, $ac_arg234, $ac_arg234,
  17667. $ac_arg5);
  17668. ;
  17669. return 0;
  17670. }
  17671. _ACEOF
  17672. rm -f conftest.$ac_objext
  17673. if { (ac_try="$ac_compile"
  17674. case "(($ac_try" in
  17675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17676. *) ac_try_echo=$ac_try;;
  17677. esac
  17678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17679. (eval "$ac_compile") 2>conftest.er1
  17680. ac_status=$?
  17681. grep -v '^ *+' conftest.er1 >conftest.err
  17682. rm -f conftest.er1
  17683. cat conftest.err >&5
  17684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17685. (exit $ac_status); } && {
  17686. test -z "$ac_cxx_werror_flag" ||
  17687. test ! -s conftest.err
  17688. } && test -s conftest.$ac_objext; then
  17689. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17690. else
  17691. echo "$as_me: failed program was:" >&5
  17692. sed 's/^/| /' conftest.$ac_ext >&5
  17693. fi
  17694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17695. done
  17696. done
  17697. done
  17698. # Provide a safe default value.
  17699. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17700. fi
  17701. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17702. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17703. ac_save_IFS=$IFS; IFS=','
  17704. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17705. IFS=$ac_save_IFS
  17706. shift
  17707. cat >>confdefs.h <<_ACEOF
  17708. #define SELECT_TYPE_ARG1 $1
  17709. _ACEOF
  17710. cat >>confdefs.h <<_ACEOF
  17711. #define SELECT_TYPE_ARG234 ($2)
  17712. _ACEOF
  17713. cat >>confdefs.h <<_ACEOF
  17714. #define SELECT_TYPE_ARG5 ($3)
  17715. _ACEOF
  17716. rm -f conftest*
  17717. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17718. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17719. if test "${ac_cv_type_signal+set}" = set; then
  17720. echo $ECHO_N "(cached) $ECHO_C" >&6
  17721. else
  17722. cat >conftest.$ac_ext <<_ACEOF
  17723. /* confdefs.h. */
  17724. _ACEOF
  17725. cat confdefs.h >>conftest.$ac_ext
  17726. cat >>conftest.$ac_ext <<_ACEOF
  17727. /* end confdefs.h. */
  17728. #include <sys/types.h>
  17729. #include <signal.h>
  17730. int
  17731. main ()
  17732. {
  17733. return *(signal (0, 0)) (0) == 1;
  17734. ;
  17735. return 0;
  17736. }
  17737. _ACEOF
  17738. rm -f conftest.$ac_objext
  17739. if { (ac_try="$ac_compile"
  17740. case "(($ac_try" in
  17741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17742. *) ac_try_echo=$ac_try;;
  17743. esac
  17744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17745. (eval "$ac_compile") 2>conftest.er1
  17746. ac_status=$?
  17747. grep -v '^ *+' conftest.er1 >conftest.err
  17748. rm -f conftest.er1
  17749. cat conftest.err >&5
  17750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17751. (exit $ac_status); } && {
  17752. test -z "$ac_cxx_werror_flag" ||
  17753. test ! -s conftest.err
  17754. } && test -s conftest.$ac_objext; then
  17755. ac_cv_type_signal=int
  17756. else
  17757. echo "$as_me: failed program was:" >&5
  17758. sed 's/^/| /' conftest.$ac_ext >&5
  17759. ac_cv_type_signal=void
  17760. fi
  17761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17762. fi
  17763. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17764. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17765. cat >>confdefs.h <<_ACEOF
  17766. #define RETSIGTYPE $ac_cv_type_signal
  17767. _ACEOF
  17768. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17769. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17770. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17771. echo $ECHO_N "(cached) $ECHO_C" >&6
  17772. else
  17773. rm -f conftest.sym conftest.file
  17774. echo >conftest.file
  17775. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17776. if test "$cross_compiling" = yes; then
  17777. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17778. else
  17779. cat >conftest.$ac_ext <<_ACEOF
  17780. /* confdefs.h. */
  17781. _ACEOF
  17782. cat confdefs.h >>conftest.$ac_ext
  17783. cat >>conftest.$ac_ext <<_ACEOF
  17784. /* end confdefs.h. */
  17785. $ac_includes_default
  17786. int
  17787. main ()
  17788. {
  17789. struct stat sbuf;
  17790. /* Linux will dereference the symlink and fail.
  17791. That is better in the sense that it means we will not
  17792. have to compile and use the lstat wrapper. */
  17793. return lstat ("conftest.sym/", &sbuf) == 0;
  17794. ;
  17795. return 0;
  17796. }
  17797. _ACEOF
  17798. rm -f conftest$ac_exeext
  17799. if { (ac_try="$ac_link"
  17800. case "(($ac_try" in
  17801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17802. *) ac_try_echo=$ac_try;;
  17803. esac
  17804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17805. (eval "$ac_link") 2>&5
  17806. ac_status=$?
  17807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17808. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17809. { (case "(($ac_try" in
  17810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17811. *) ac_try_echo=$ac_try;;
  17812. esac
  17813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17814. (eval "$ac_try") 2>&5
  17815. ac_status=$?
  17816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17817. (exit $ac_status); }; }; then
  17818. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17819. else
  17820. echo "$as_me: program exited with status $ac_status" >&5
  17821. echo "$as_me: failed program was:" >&5
  17822. sed 's/^/| /' conftest.$ac_ext >&5
  17823. ( exit $ac_status )
  17824. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17825. fi
  17826. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17827. fi
  17828. else
  17829. # If the `ln -s' command failed, then we probably don't even
  17830. # have an lstat function.
  17831. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17832. fi
  17833. rm -f conftest.sym conftest.file
  17834. fi
  17835. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17836. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17837. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17838. cat >>confdefs.h <<_ACEOF
  17839. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17840. _ACEOF
  17841. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17842. case " $LIBOBJS " in
  17843. *" lstat.$ac_objext "* ) ;;
  17844. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17845. ;;
  17846. esac
  17847. fi
  17848. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17849. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17850. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17851. echo $ECHO_N "(cached) $ECHO_C" >&6
  17852. else
  17853. if test "$cross_compiling" = yes; then
  17854. ac_cv_func_stat_empty_string_bug=yes
  17855. else
  17856. cat >conftest.$ac_ext <<_ACEOF
  17857. /* confdefs.h. */
  17858. _ACEOF
  17859. cat confdefs.h >>conftest.$ac_ext
  17860. cat >>conftest.$ac_ext <<_ACEOF
  17861. /* end confdefs.h. */
  17862. $ac_includes_default
  17863. int
  17864. main ()
  17865. {
  17866. struct stat sbuf;
  17867. return stat ("", &sbuf) == 0;
  17868. ;
  17869. return 0;
  17870. }
  17871. _ACEOF
  17872. rm -f conftest$ac_exeext
  17873. if { (ac_try="$ac_link"
  17874. case "(($ac_try" in
  17875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17876. *) ac_try_echo=$ac_try;;
  17877. esac
  17878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17879. (eval "$ac_link") 2>&5
  17880. ac_status=$?
  17881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17882. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17883. { (case "(($ac_try" in
  17884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17885. *) ac_try_echo=$ac_try;;
  17886. esac
  17887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17888. (eval "$ac_try") 2>&5
  17889. ac_status=$?
  17890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17891. (exit $ac_status); }; }; then
  17892. ac_cv_func_stat_empty_string_bug=no
  17893. else
  17894. echo "$as_me: program exited with status $ac_status" >&5
  17895. echo "$as_me: failed program was:" >&5
  17896. sed 's/^/| /' conftest.$ac_ext >&5
  17897. ( exit $ac_status )
  17898. ac_cv_func_stat_empty_string_bug=yes
  17899. fi
  17900. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17901. fi
  17902. fi
  17903. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17904. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17905. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17906. case " $LIBOBJS " in
  17907. *" stat.$ac_objext "* ) ;;
  17908. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17909. ;;
  17910. esac
  17911. cat >>confdefs.h <<_ACEOF
  17912. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17913. _ACEOF
  17914. fi
  17915. for ac_func in strftime
  17916. do
  17917. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17918. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17919. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17920. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17921. echo $ECHO_N "(cached) $ECHO_C" >&6
  17922. else
  17923. cat >conftest.$ac_ext <<_ACEOF
  17924. /* confdefs.h. */
  17925. _ACEOF
  17926. cat confdefs.h >>conftest.$ac_ext
  17927. cat >>conftest.$ac_ext <<_ACEOF
  17928. /* end confdefs.h. */
  17929. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17931. #define $ac_func innocuous_$ac_func
  17932. /* System header to define __stub macros and hopefully few prototypes,
  17933. which can conflict with char $ac_func (); below.
  17934. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17935. <limits.h> exists even on freestanding compilers. */
  17936. #ifdef __STDC__
  17937. # include <limits.h>
  17938. #else
  17939. # include <assert.h>
  17940. #endif
  17941. #undef $ac_func
  17942. /* Override any GCC internal prototype to avoid an error.
  17943. Use char because int might match the return type of a GCC
  17944. builtin and then its argument prototype would still apply. */
  17945. #ifdef __cplusplus
  17946. extern "C"
  17947. #endif
  17948. char $ac_func ();
  17949. /* The GNU C library defines this for functions which it implements
  17950. to always fail with ENOSYS. Some functions are actually named
  17951. something starting with __ and the normal name is an alias. */
  17952. #if defined __stub_$ac_func || defined __stub___$ac_func
  17953. choke me
  17954. #endif
  17955. int
  17956. main ()
  17957. {
  17958. return $ac_func ();
  17959. ;
  17960. return 0;
  17961. }
  17962. _ACEOF
  17963. rm -f conftest.$ac_objext conftest$ac_exeext
  17964. if { (ac_try="$ac_link"
  17965. case "(($ac_try" in
  17966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17967. *) ac_try_echo=$ac_try;;
  17968. esac
  17969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17970. (eval "$ac_link") 2>conftest.er1
  17971. ac_status=$?
  17972. grep -v '^ *+' conftest.er1 >conftest.err
  17973. rm -f conftest.er1
  17974. cat conftest.err >&5
  17975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17976. (exit $ac_status); } && {
  17977. test -z "$ac_cxx_werror_flag" ||
  17978. test ! -s conftest.err
  17979. } && test -s conftest$ac_exeext &&
  17980. $as_test_x conftest$ac_exeext; then
  17981. eval "$as_ac_var=yes"
  17982. else
  17983. echo "$as_me: failed program was:" >&5
  17984. sed 's/^/| /' conftest.$ac_ext >&5
  17985. eval "$as_ac_var=no"
  17986. fi
  17987. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17988. conftest$ac_exeext conftest.$ac_ext
  17989. fi
  17990. ac_res=`eval echo '${'$as_ac_var'}'`
  17991. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17992. echo "${ECHO_T}$ac_res" >&6; }
  17993. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17994. cat >>confdefs.h <<_ACEOF
  17995. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17996. _ACEOF
  17997. else
  17998. # strftime is in -lintl on SCO UNIX.
  17999. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18000. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  18001. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18002. echo $ECHO_N "(cached) $ECHO_C" >&6
  18003. else
  18004. ac_check_lib_save_LIBS=$LIBS
  18005. LIBS="-lintl $LIBS"
  18006. cat >conftest.$ac_ext <<_ACEOF
  18007. /* confdefs.h. */
  18008. _ACEOF
  18009. cat confdefs.h >>conftest.$ac_ext
  18010. cat >>conftest.$ac_ext <<_ACEOF
  18011. /* end confdefs.h. */
  18012. /* Override any GCC internal prototype to avoid an error.
  18013. Use char because int might match the return type of a GCC
  18014. builtin and then its argument prototype would still apply. */
  18015. #ifdef __cplusplus
  18016. extern "C"
  18017. #endif
  18018. char strftime ();
  18019. int
  18020. main ()
  18021. {
  18022. return strftime ();
  18023. ;
  18024. return 0;
  18025. }
  18026. _ACEOF
  18027. rm -f conftest.$ac_objext conftest$ac_exeext
  18028. if { (ac_try="$ac_link"
  18029. case "(($ac_try" in
  18030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18031. *) ac_try_echo=$ac_try;;
  18032. esac
  18033. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18034. (eval "$ac_link") 2>conftest.er1
  18035. ac_status=$?
  18036. grep -v '^ *+' conftest.er1 >conftest.err
  18037. rm -f conftest.er1
  18038. cat conftest.err >&5
  18039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18040. (exit $ac_status); } && {
  18041. test -z "$ac_cxx_werror_flag" ||
  18042. test ! -s conftest.err
  18043. } && test -s conftest$ac_exeext &&
  18044. $as_test_x conftest$ac_exeext; then
  18045. ac_cv_lib_intl_strftime=yes
  18046. else
  18047. echo "$as_me: failed program was:" >&5
  18048. sed 's/^/| /' conftest.$ac_ext >&5
  18049. ac_cv_lib_intl_strftime=no
  18050. fi
  18051. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18052. conftest$ac_exeext conftest.$ac_ext
  18053. LIBS=$ac_check_lib_save_LIBS
  18054. fi
  18055. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18056. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  18057. if test $ac_cv_lib_intl_strftime = yes; then
  18058. cat >>confdefs.h <<\_ACEOF
  18059. #define HAVE_STRFTIME 1
  18060. _ACEOF
  18061. LIBS="-lintl $LIBS"
  18062. fi
  18063. fi
  18064. done
  18065. for ac_func in vprintf
  18066. do
  18067. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18068. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18069. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18070. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18071. echo $ECHO_N "(cached) $ECHO_C" >&6
  18072. else
  18073. cat >conftest.$ac_ext <<_ACEOF
  18074. /* confdefs.h. */
  18075. _ACEOF
  18076. cat confdefs.h >>conftest.$ac_ext
  18077. cat >>conftest.$ac_ext <<_ACEOF
  18078. /* end confdefs.h. */
  18079. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18080. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18081. #define $ac_func innocuous_$ac_func
  18082. /* System header to define __stub macros and hopefully few prototypes,
  18083. which can conflict with char $ac_func (); below.
  18084. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18085. <limits.h> exists even on freestanding compilers. */
  18086. #ifdef __STDC__
  18087. # include <limits.h>
  18088. #else
  18089. # include <assert.h>
  18090. #endif
  18091. #undef $ac_func
  18092. /* Override any GCC internal prototype to avoid an error.
  18093. Use char because int might match the return type of a GCC
  18094. builtin and then its argument prototype would still apply. */
  18095. #ifdef __cplusplus
  18096. extern "C"
  18097. #endif
  18098. char $ac_func ();
  18099. /* The GNU C library defines this for functions which it implements
  18100. to always fail with ENOSYS. Some functions are actually named
  18101. something starting with __ and the normal name is an alias. */
  18102. #if defined __stub_$ac_func || defined __stub___$ac_func
  18103. choke me
  18104. #endif
  18105. int
  18106. main ()
  18107. {
  18108. return $ac_func ();
  18109. ;
  18110. return 0;
  18111. }
  18112. _ACEOF
  18113. rm -f conftest.$ac_objext conftest$ac_exeext
  18114. if { (ac_try="$ac_link"
  18115. case "(($ac_try" in
  18116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18117. *) ac_try_echo=$ac_try;;
  18118. esac
  18119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18120. (eval "$ac_link") 2>conftest.er1
  18121. ac_status=$?
  18122. grep -v '^ *+' conftest.er1 >conftest.err
  18123. rm -f conftest.er1
  18124. cat conftest.err >&5
  18125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18126. (exit $ac_status); } && {
  18127. test -z "$ac_cxx_werror_flag" ||
  18128. test ! -s conftest.err
  18129. } && test -s conftest$ac_exeext &&
  18130. $as_test_x conftest$ac_exeext; then
  18131. eval "$as_ac_var=yes"
  18132. else
  18133. echo "$as_me: failed program was:" >&5
  18134. sed 's/^/| /' conftest.$ac_ext >&5
  18135. eval "$as_ac_var=no"
  18136. fi
  18137. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18138. conftest$ac_exeext conftest.$ac_ext
  18139. fi
  18140. ac_res=`eval echo '${'$as_ac_var'}'`
  18141. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18142. echo "${ECHO_T}$ac_res" >&6; }
  18143. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18144. cat >>confdefs.h <<_ACEOF
  18145. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18146. _ACEOF
  18147. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18148. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18149. if test "${ac_cv_func__doprnt+set}" = set; then
  18150. echo $ECHO_N "(cached) $ECHO_C" >&6
  18151. else
  18152. cat >conftest.$ac_ext <<_ACEOF
  18153. /* confdefs.h. */
  18154. _ACEOF
  18155. cat confdefs.h >>conftest.$ac_ext
  18156. cat >>conftest.$ac_ext <<_ACEOF
  18157. /* end confdefs.h. */
  18158. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18159. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18160. #define _doprnt innocuous__doprnt
  18161. /* System header to define __stub macros and hopefully few prototypes,
  18162. which can conflict with char _doprnt (); below.
  18163. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18164. <limits.h> exists even on freestanding compilers. */
  18165. #ifdef __STDC__
  18166. # include <limits.h>
  18167. #else
  18168. # include <assert.h>
  18169. #endif
  18170. #undef _doprnt
  18171. /* Override any GCC internal prototype to avoid an error.
  18172. Use char because int might match the return type of a GCC
  18173. builtin and then its argument prototype would still apply. */
  18174. #ifdef __cplusplus
  18175. extern "C"
  18176. #endif
  18177. char _doprnt ();
  18178. /* The GNU C library defines this for functions which it implements
  18179. to always fail with ENOSYS. Some functions are actually named
  18180. something starting with __ and the normal name is an alias. */
  18181. #if defined __stub__doprnt || defined __stub____doprnt
  18182. choke me
  18183. #endif
  18184. int
  18185. main ()
  18186. {
  18187. return _doprnt ();
  18188. ;
  18189. return 0;
  18190. }
  18191. _ACEOF
  18192. rm -f conftest.$ac_objext conftest$ac_exeext
  18193. if { (ac_try="$ac_link"
  18194. case "(($ac_try" in
  18195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18196. *) ac_try_echo=$ac_try;;
  18197. esac
  18198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18199. (eval "$ac_link") 2>conftest.er1
  18200. ac_status=$?
  18201. grep -v '^ *+' conftest.er1 >conftest.err
  18202. rm -f conftest.er1
  18203. cat conftest.err >&5
  18204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18205. (exit $ac_status); } && {
  18206. test -z "$ac_cxx_werror_flag" ||
  18207. test ! -s conftest.err
  18208. } && test -s conftest$ac_exeext &&
  18209. $as_test_x conftest$ac_exeext; then
  18210. ac_cv_func__doprnt=yes
  18211. else
  18212. echo "$as_me: failed program was:" >&5
  18213. sed 's/^/| /' conftest.$ac_ext >&5
  18214. ac_cv_func__doprnt=no
  18215. fi
  18216. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18217. conftest$ac_exeext conftest.$ac_ext
  18218. fi
  18219. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18220. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18221. if test $ac_cv_func__doprnt = yes; then
  18222. cat >>confdefs.h <<\_ACEOF
  18223. #define HAVE_DOPRNT 1
  18224. _ACEOF
  18225. fi
  18226. fi
  18227. done
  18228. for ac_func in __argz_count \
  18229. __argz_next \
  18230. __argz_stringify \
  18231. atexit \
  18232. daemon \
  18233. ftruncate \
  18234. getcwd \
  18235. gethostbyaddr \
  18236. gethostbyname \
  18237. getpagesize \
  18238. inet_ntoa \
  18239. memchr \
  18240. memmove \
  18241. mempcpy \
  18242. memset \
  18243. mkdir \
  18244. munmap \
  18245. nl_langinfo \
  18246. posix_memalign \
  18247. putenv \
  18248. rmdir \
  18249. select \
  18250. setlocale \
  18251. sleep \
  18252. socket \
  18253. stpcpy \
  18254. strcasecmp \
  18255. strchr \
  18256. strcspn \
  18257. strdup \
  18258. strerror \
  18259. strncasecmp \
  18260. strstr \
  18261. strtol \
  18262. strtoul \
  18263. strtoull \
  18264. tzset \
  18265. unsetenv \
  18266. usleep
  18267. do
  18268. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18269. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18270. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18271. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18272. echo $ECHO_N "(cached) $ECHO_C" >&6
  18273. else
  18274. cat >conftest.$ac_ext <<_ACEOF
  18275. /* confdefs.h. */
  18276. _ACEOF
  18277. cat confdefs.h >>conftest.$ac_ext
  18278. cat >>conftest.$ac_ext <<_ACEOF
  18279. /* end confdefs.h. */
  18280. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18281. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18282. #define $ac_func innocuous_$ac_func
  18283. /* System header to define __stub macros and hopefully few prototypes,
  18284. which can conflict with char $ac_func (); below.
  18285. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18286. <limits.h> exists even on freestanding compilers. */
  18287. #ifdef __STDC__
  18288. # include <limits.h>
  18289. #else
  18290. # include <assert.h>
  18291. #endif
  18292. #undef $ac_func
  18293. /* Override any GCC internal prototype to avoid an error.
  18294. Use char because int might match the return type of a GCC
  18295. builtin and then its argument prototype would still apply. */
  18296. #ifdef __cplusplus
  18297. extern "C"
  18298. #endif
  18299. char $ac_func ();
  18300. /* The GNU C library defines this for functions which it implements
  18301. to always fail with ENOSYS. Some functions are actually named
  18302. something starting with __ and the normal name is an alias. */
  18303. #if defined __stub_$ac_func || defined __stub___$ac_func
  18304. choke me
  18305. #endif
  18306. int
  18307. main ()
  18308. {
  18309. return $ac_func ();
  18310. ;
  18311. return 0;
  18312. }
  18313. _ACEOF
  18314. rm -f conftest.$ac_objext conftest$ac_exeext
  18315. if { (ac_try="$ac_link"
  18316. case "(($ac_try" in
  18317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18318. *) ac_try_echo=$ac_try;;
  18319. esac
  18320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18321. (eval "$ac_link") 2>conftest.er1
  18322. ac_status=$?
  18323. grep -v '^ *+' conftest.er1 >conftest.err
  18324. rm -f conftest.er1
  18325. cat conftest.err >&5
  18326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18327. (exit $ac_status); } && {
  18328. test -z "$ac_cxx_werror_flag" ||
  18329. test ! -s conftest.err
  18330. } && test -s conftest$ac_exeext &&
  18331. $as_test_x conftest$ac_exeext; then
  18332. eval "$as_ac_var=yes"
  18333. else
  18334. echo "$as_me: failed program was:" >&5
  18335. sed 's/^/| /' conftest.$ac_ext >&5
  18336. eval "$as_ac_var=no"
  18337. fi
  18338. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18339. conftest$ac_exeext conftest.$ac_ext
  18340. fi
  18341. ac_res=`eval echo '${'$as_ac_var'}'`
  18342. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18343. echo "${ECHO_T}$ac_res" >&6; }
  18344. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18345. cat >>confdefs.h <<_ACEOF
  18346. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18347. _ACEOF
  18348. fi
  18349. done
  18350. if test "x$enable_epoll" = "xyes"; then
  18351. for ac_func in epoll_create
  18352. do
  18353. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18354. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18355. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18356. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18357. echo $ECHO_N "(cached) $ECHO_C" >&6
  18358. else
  18359. cat >conftest.$ac_ext <<_ACEOF
  18360. /* confdefs.h. */
  18361. _ACEOF
  18362. cat confdefs.h >>conftest.$ac_ext
  18363. cat >>conftest.$ac_ext <<_ACEOF
  18364. /* end confdefs.h. */
  18365. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18366. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18367. #define $ac_func innocuous_$ac_func
  18368. /* System header to define __stub macros and hopefully few prototypes,
  18369. which can conflict with char $ac_func (); below.
  18370. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18371. <limits.h> exists even on freestanding compilers. */
  18372. #ifdef __STDC__
  18373. # include <limits.h>
  18374. #else
  18375. # include <assert.h>
  18376. #endif
  18377. #undef $ac_func
  18378. /* Override any GCC internal prototype to avoid an error.
  18379. Use char because int might match the return type of a GCC
  18380. builtin and then its argument prototype would still apply. */
  18381. #ifdef __cplusplus
  18382. extern "C"
  18383. #endif
  18384. char $ac_func ();
  18385. /* The GNU C library defines this for functions which it implements
  18386. to always fail with ENOSYS. Some functions are actually named
  18387. something starting with __ and the normal name is an alias. */
  18388. #if defined __stub_$ac_func || defined __stub___$ac_func
  18389. choke me
  18390. #endif
  18391. int
  18392. main ()
  18393. {
  18394. return $ac_func ();
  18395. ;
  18396. return 0;
  18397. }
  18398. _ACEOF
  18399. rm -f conftest.$ac_objext conftest$ac_exeext
  18400. if { (ac_try="$ac_link"
  18401. case "(($ac_try" in
  18402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18403. *) ac_try_echo=$ac_try;;
  18404. esac
  18405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18406. (eval "$ac_link") 2>conftest.er1
  18407. ac_status=$?
  18408. grep -v '^ *+' conftest.er1 >conftest.err
  18409. rm -f conftest.er1
  18410. cat conftest.err >&5
  18411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18412. (exit $ac_status); } && {
  18413. test -z "$ac_cxx_werror_flag" ||
  18414. test ! -s conftest.err
  18415. } && test -s conftest$ac_exeext &&
  18416. $as_test_x conftest$ac_exeext; then
  18417. eval "$as_ac_var=yes"
  18418. else
  18419. echo "$as_me: failed program was:" >&5
  18420. sed 's/^/| /' conftest.$ac_ext >&5
  18421. eval "$as_ac_var=no"
  18422. fi
  18423. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18424. conftest$ac_exeext conftest.$ac_ext
  18425. fi
  18426. ac_res=`eval echo '${'$as_ac_var'}'`
  18427. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18428. echo "${ECHO_T}$ac_res" >&6; }
  18429. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18430. cat >>confdefs.h <<_ACEOF
  18431. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18432. _ACEOF
  18433. fi
  18434. done
  18435. fi
  18436. for ac_func in asctime_r
  18437. do
  18438. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18439. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18440. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18441. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18442. echo $ECHO_N "(cached) $ECHO_C" >&6
  18443. else
  18444. cat >conftest.$ac_ext <<_ACEOF
  18445. /* confdefs.h. */
  18446. _ACEOF
  18447. cat confdefs.h >>conftest.$ac_ext
  18448. cat >>conftest.$ac_ext <<_ACEOF
  18449. /* end confdefs.h. */
  18450. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18451. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18452. #define $ac_func innocuous_$ac_func
  18453. /* System header to define __stub macros and hopefully few prototypes,
  18454. which can conflict with char $ac_func (); below.
  18455. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18456. <limits.h> exists even on freestanding compilers. */
  18457. #ifdef __STDC__
  18458. # include <limits.h>
  18459. #else
  18460. # include <assert.h>
  18461. #endif
  18462. #undef $ac_func
  18463. /* Override any GCC internal prototype to avoid an error.
  18464. Use char because int might match the return type of a GCC
  18465. builtin and then its argument prototype would still apply. */
  18466. #ifdef __cplusplus
  18467. extern "C"
  18468. #endif
  18469. char $ac_func ();
  18470. /* The GNU C library defines this for functions which it implements
  18471. to always fail with ENOSYS. Some functions are actually named
  18472. something starting with __ and the normal name is an alias. */
  18473. #if defined __stub_$ac_func || defined __stub___$ac_func
  18474. choke me
  18475. #endif
  18476. int
  18477. main ()
  18478. {
  18479. return $ac_func ();
  18480. ;
  18481. return 0;
  18482. }
  18483. _ACEOF
  18484. rm -f conftest.$ac_objext conftest$ac_exeext
  18485. if { (ac_try="$ac_link"
  18486. case "(($ac_try" in
  18487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18488. *) ac_try_echo=$ac_try;;
  18489. esac
  18490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18491. (eval "$ac_link") 2>conftest.er1
  18492. ac_status=$?
  18493. grep -v '^ *+' conftest.er1 >conftest.err
  18494. rm -f conftest.er1
  18495. cat conftest.err >&5
  18496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18497. (exit $ac_status); } && {
  18498. test -z "$ac_cxx_werror_flag" ||
  18499. test ! -s conftest.err
  18500. } && test -s conftest$ac_exeext &&
  18501. $as_test_x conftest$ac_exeext; then
  18502. eval "$as_ac_var=yes"
  18503. else
  18504. echo "$as_me: failed program was:" >&5
  18505. sed 's/^/| /' conftest.$ac_ext >&5
  18506. eval "$as_ac_var=no"
  18507. fi
  18508. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18509. conftest$ac_exeext conftest.$ac_ext
  18510. fi
  18511. ac_res=`eval echo '${'$as_ac_var'}'`
  18512. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18513. echo "${ECHO_T}$ac_res" >&6; }
  18514. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18515. cat >>confdefs.h <<_ACEOF
  18516. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18517. _ACEOF
  18518. if true; then
  18519. HAVE_ASCTIME_R_TRUE=
  18520. HAVE_ASCTIME_R_FALSE='#'
  18521. else
  18522. HAVE_ASCTIME_R_TRUE='#'
  18523. HAVE_ASCTIME_R_FALSE=
  18524. fi
  18525. else
  18526. if false; then
  18527. HAVE_ASCTIME_R_TRUE=
  18528. HAVE_ASCTIME_R_FALSE='#'
  18529. else
  18530. HAVE_ASCTIME_R_TRUE='#'
  18531. HAVE_ASCTIME_R_FALSE=
  18532. fi
  18533. fi
  18534. done
  18535. for ac_func in basename
  18536. do
  18537. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18538. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18539. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18540. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18541. echo $ECHO_N "(cached) $ECHO_C" >&6
  18542. else
  18543. cat >conftest.$ac_ext <<_ACEOF
  18544. /* confdefs.h. */
  18545. _ACEOF
  18546. cat confdefs.h >>conftest.$ac_ext
  18547. cat >>conftest.$ac_ext <<_ACEOF
  18548. /* end confdefs.h. */
  18549. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18550. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18551. #define $ac_func innocuous_$ac_func
  18552. /* System header to define __stub macros and hopefully few prototypes,
  18553. which can conflict with char $ac_func (); below.
  18554. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18555. <limits.h> exists even on freestanding compilers. */
  18556. #ifdef __STDC__
  18557. # include <limits.h>
  18558. #else
  18559. # include <assert.h>
  18560. #endif
  18561. #undef $ac_func
  18562. /* Override any GCC internal prototype to avoid an error.
  18563. Use char because int might match the return type of a GCC
  18564. builtin and then its argument prototype would still apply. */
  18565. #ifdef __cplusplus
  18566. extern "C"
  18567. #endif
  18568. char $ac_func ();
  18569. /* The GNU C library defines this for functions which it implements
  18570. to always fail with ENOSYS. Some functions are actually named
  18571. something starting with __ and the normal name is an alias. */
  18572. #if defined __stub_$ac_func || defined __stub___$ac_func
  18573. choke me
  18574. #endif
  18575. int
  18576. main ()
  18577. {
  18578. return $ac_func ();
  18579. ;
  18580. return 0;
  18581. }
  18582. _ACEOF
  18583. rm -f conftest.$ac_objext conftest$ac_exeext
  18584. if { (ac_try="$ac_link"
  18585. case "(($ac_try" in
  18586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18587. *) ac_try_echo=$ac_try;;
  18588. esac
  18589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18590. (eval "$ac_link") 2>conftest.er1
  18591. ac_status=$?
  18592. grep -v '^ *+' conftest.er1 >conftest.err
  18593. rm -f conftest.er1
  18594. cat conftest.err >&5
  18595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18596. (exit $ac_status); } && {
  18597. test -z "$ac_cxx_werror_flag" ||
  18598. test ! -s conftest.err
  18599. } && test -s conftest$ac_exeext &&
  18600. $as_test_x conftest$ac_exeext; then
  18601. eval "$as_ac_var=yes"
  18602. else
  18603. echo "$as_me: failed program was:" >&5
  18604. sed 's/^/| /' conftest.$ac_ext >&5
  18605. eval "$as_ac_var=no"
  18606. fi
  18607. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18608. conftest$ac_exeext conftest.$ac_ext
  18609. fi
  18610. ac_res=`eval echo '${'$as_ac_var'}'`
  18611. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18612. echo "${ECHO_T}$ac_res" >&6; }
  18613. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18614. cat >>confdefs.h <<_ACEOF
  18615. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18616. _ACEOF
  18617. if true; then
  18618. HAVE_BASENAME_TRUE=
  18619. HAVE_BASENAME_FALSE='#'
  18620. else
  18621. HAVE_BASENAME_TRUE='#'
  18622. HAVE_BASENAME_FALSE=
  18623. fi
  18624. else
  18625. if false; then
  18626. HAVE_BASENAME_TRUE=
  18627. HAVE_BASENAME_FALSE='#'
  18628. else
  18629. HAVE_BASENAME_TRUE='#'
  18630. HAVE_BASENAME_FALSE=
  18631. fi
  18632. fi
  18633. done
  18634. for ac_func in gai_strerror
  18635. do
  18636. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18637. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18638. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18639. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18640. echo $ECHO_N "(cached) $ECHO_C" >&6
  18641. else
  18642. cat >conftest.$ac_ext <<_ACEOF
  18643. /* confdefs.h. */
  18644. _ACEOF
  18645. cat confdefs.h >>conftest.$ac_ext
  18646. cat >>conftest.$ac_ext <<_ACEOF
  18647. /* end confdefs.h. */
  18648. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18649. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18650. #define $ac_func innocuous_$ac_func
  18651. /* System header to define __stub macros and hopefully few prototypes,
  18652. which can conflict with char $ac_func (); below.
  18653. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18654. <limits.h> exists even on freestanding compilers. */
  18655. #ifdef __STDC__
  18656. # include <limits.h>
  18657. #else
  18658. # include <assert.h>
  18659. #endif
  18660. #undef $ac_func
  18661. /* Override any GCC internal prototype to avoid an error.
  18662. Use char because int might match the return type of a GCC
  18663. builtin and then its argument prototype would still apply. */
  18664. #ifdef __cplusplus
  18665. extern "C"
  18666. #endif
  18667. char $ac_func ();
  18668. /* The GNU C library defines this for functions which it implements
  18669. to always fail with ENOSYS. Some functions are actually named
  18670. something starting with __ and the normal name is an alias. */
  18671. #if defined __stub_$ac_func || defined __stub___$ac_func
  18672. choke me
  18673. #endif
  18674. int
  18675. main ()
  18676. {
  18677. return $ac_func ();
  18678. ;
  18679. return 0;
  18680. }
  18681. _ACEOF
  18682. rm -f conftest.$ac_objext conftest$ac_exeext
  18683. if { (ac_try="$ac_link"
  18684. case "(($ac_try" in
  18685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18686. *) ac_try_echo=$ac_try;;
  18687. esac
  18688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18689. (eval "$ac_link") 2>conftest.er1
  18690. ac_status=$?
  18691. grep -v '^ *+' conftest.er1 >conftest.err
  18692. rm -f conftest.er1
  18693. cat conftest.err >&5
  18694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18695. (exit $ac_status); } && {
  18696. test -z "$ac_cxx_werror_flag" ||
  18697. test ! -s conftest.err
  18698. } && test -s conftest$ac_exeext &&
  18699. $as_test_x conftest$ac_exeext; then
  18700. eval "$as_ac_var=yes"
  18701. else
  18702. echo "$as_me: failed program was:" >&5
  18703. sed 's/^/| /' conftest.$ac_ext >&5
  18704. eval "$as_ac_var=no"
  18705. fi
  18706. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18707. conftest$ac_exeext conftest.$ac_ext
  18708. fi
  18709. ac_res=`eval echo '${'$as_ac_var'}'`
  18710. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18711. echo "${ECHO_T}$ac_res" >&6; }
  18712. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18713. cat >>confdefs.h <<_ACEOF
  18714. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18715. _ACEOF
  18716. if true; then
  18717. HAVE_GAI_STRERROR_TRUE=
  18718. HAVE_GAI_STRERROR_FALSE='#'
  18719. else
  18720. HAVE_GAI_STRERROR_TRUE='#'
  18721. HAVE_GAI_STRERROR_FALSE=
  18722. fi
  18723. else
  18724. if false; then
  18725. HAVE_GAI_STRERROR_TRUE=
  18726. HAVE_GAI_STRERROR_FALSE='#'
  18727. else
  18728. HAVE_GAI_STRERROR_TRUE='#'
  18729. HAVE_GAI_STRERROR_FALSE=
  18730. fi
  18731. fi
  18732. done
  18733. for ac_func in getaddrinfo
  18734. do
  18735. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18736. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18737. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18738. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18739. echo $ECHO_N "(cached) $ECHO_C" >&6
  18740. else
  18741. cat >conftest.$ac_ext <<_ACEOF
  18742. /* confdefs.h. */
  18743. _ACEOF
  18744. cat confdefs.h >>conftest.$ac_ext
  18745. cat >>conftest.$ac_ext <<_ACEOF
  18746. /* end confdefs.h. */
  18747. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18748. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18749. #define $ac_func innocuous_$ac_func
  18750. /* System header to define __stub macros and hopefully few prototypes,
  18751. which can conflict with char $ac_func (); below.
  18752. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18753. <limits.h> exists even on freestanding compilers. */
  18754. #ifdef __STDC__
  18755. # include <limits.h>
  18756. #else
  18757. # include <assert.h>
  18758. #endif
  18759. #undef $ac_func
  18760. /* Override any GCC internal prototype to avoid an error.
  18761. Use char because int might match the return type of a GCC
  18762. builtin and then its argument prototype would still apply. */
  18763. #ifdef __cplusplus
  18764. extern "C"
  18765. #endif
  18766. char $ac_func ();
  18767. /* The GNU C library defines this for functions which it implements
  18768. to always fail with ENOSYS. Some functions are actually named
  18769. something starting with __ and the normal name is an alias. */
  18770. #if defined __stub_$ac_func || defined __stub___$ac_func
  18771. choke me
  18772. #endif
  18773. int
  18774. main ()
  18775. {
  18776. return $ac_func ();
  18777. ;
  18778. return 0;
  18779. }
  18780. _ACEOF
  18781. rm -f conftest.$ac_objext conftest$ac_exeext
  18782. if { (ac_try="$ac_link"
  18783. case "(($ac_try" in
  18784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18785. *) ac_try_echo=$ac_try;;
  18786. esac
  18787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18788. (eval "$ac_link") 2>conftest.er1
  18789. ac_status=$?
  18790. grep -v '^ *+' conftest.er1 >conftest.err
  18791. rm -f conftest.er1
  18792. cat conftest.err >&5
  18793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18794. (exit $ac_status); } && {
  18795. test -z "$ac_cxx_werror_flag" ||
  18796. test ! -s conftest.err
  18797. } && test -s conftest$ac_exeext &&
  18798. $as_test_x conftest$ac_exeext; then
  18799. eval "$as_ac_var=yes"
  18800. else
  18801. echo "$as_me: failed program was:" >&5
  18802. sed 's/^/| /' conftest.$ac_ext >&5
  18803. eval "$as_ac_var=no"
  18804. fi
  18805. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18806. conftest$ac_exeext conftest.$ac_ext
  18807. fi
  18808. ac_res=`eval echo '${'$as_ac_var'}'`
  18809. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18810. echo "${ECHO_T}$ac_res" >&6; }
  18811. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18812. cat >>confdefs.h <<_ACEOF
  18813. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18814. _ACEOF
  18815. if true; then
  18816. HAVE_GETADDRINFO_TRUE=
  18817. HAVE_GETADDRINFO_FALSE='#'
  18818. else
  18819. HAVE_GETADDRINFO_TRUE='#'
  18820. HAVE_GETADDRINFO_FALSE=
  18821. fi
  18822. else
  18823. if false; then
  18824. HAVE_GETADDRINFO_TRUE=
  18825. HAVE_GETADDRINFO_FALSE='#'
  18826. else
  18827. HAVE_GETADDRINFO_TRUE='#'
  18828. HAVE_GETADDRINFO_FALSE=
  18829. fi
  18830. fi
  18831. done
  18832. for ac_func in gettimeofday
  18833. do
  18834. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18835. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18836. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18837. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18838. echo $ECHO_N "(cached) $ECHO_C" >&6
  18839. else
  18840. cat >conftest.$ac_ext <<_ACEOF
  18841. /* confdefs.h. */
  18842. _ACEOF
  18843. cat confdefs.h >>conftest.$ac_ext
  18844. cat >>conftest.$ac_ext <<_ACEOF
  18845. /* end confdefs.h. */
  18846. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18847. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18848. #define $ac_func innocuous_$ac_func
  18849. /* System header to define __stub macros and hopefully few prototypes,
  18850. which can conflict with char $ac_func (); below.
  18851. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18852. <limits.h> exists even on freestanding compilers. */
  18853. #ifdef __STDC__
  18854. # include <limits.h>
  18855. #else
  18856. # include <assert.h>
  18857. #endif
  18858. #undef $ac_func
  18859. /* Override any GCC internal prototype to avoid an error.
  18860. Use char because int might match the return type of a GCC
  18861. builtin and then its argument prototype would still apply. */
  18862. #ifdef __cplusplus
  18863. extern "C"
  18864. #endif
  18865. char $ac_func ();
  18866. /* The GNU C library defines this for functions which it implements
  18867. to always fail with ENOSYS. Some functions are actually named
  18868. something starting with __ and the normal name is an alias. */
  18869. #if defined __stub_$ac_func || defined __stub___$ac_func
  18870. choke me
  18871. #endif
  18872. int
  18873. main ()
  18874. {
  18875. return $ac_func ();
  18876. ;
  18877. return 0;
  18878. }
  18879. _ACEOF
  18880. rm -f conftest.$ac_objext conftest$ac_exeext
  18881. if { (ac_try="$ac_link"
  18882. case "(($ac_try" in
  18883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18884. *) ac_try_echo=$ac_try;;
  18885. esac
  18886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18887. (eval "$ac_link") 2>conftest.er1
  18888. ac_status=$?
  18889. grep -v '^ *+' conftest.er1 >conftest.err
  18890. rm -f conftest.er1
  18891. cat conftest.err >&5
  18892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18893. (exit $ac_status); } && {
  18894. test -z "$ac_cxx_werror_flag" ||
  18895. test ! -s conftest.err
  18896. } && test -s conftest$ac_exeext &&
  18897. $as_test_x conftest$ac_exeext; then
  18898. eval "$as_ac_var=yes"
  18899. else
  18900. echo "$as_me: failed program was:" >&5
  18901. sed 's/^/| /' conftest.$ac_ext >&5
  18902. eval "$as_ac_var=no"
  18903. fi
  18904. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18905. conftest$ac_exeext conftest.$ac_ext
  18906. fi
  18907. ac_res=`eval echo '${'$as_ac_var'}'`
  18908. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18909. echo "${ECHO_T}$ac_res" >&6; }
  18910. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18911. cat >>confdefs.h <<_ACEOF
  18912. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18913. _ACEOF
  18914. if true; then
  18915. HAVE_GETTIMEOFDAY_TRUE=
  18916. HAVE_GETTIMEOFDAY_FALSE='#'
  18917. else
  18918. HAVE_GETTIMEOFDAY_TRUE='#'
  18919. HAVE_GETTIMEOFDAY_FALSE=
  18920. fi
  18921. else
  18922. if false; then
  18923. HAVE_GETTIMEOFDAY_TRUE=
  18924. HAVE_GETTIMEOFDAY_FALSE='#'
  18925. else
  18926. HAVE_GETTIMEOFDAY_TRUE='#'
  18927. HAVE_GETTIMEOFDAY_FALSE=
  18928. fi
  18929. fi
  18930. done
  18931. for ac_func in inet_aton
  18932. do
  18933. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18934. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18935. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18936. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18937. echo $ECHO_N "(cached) $ECHO_C" >&6
  18938. else
  18939. cat >conftest.$ac_ext <<_ACEOF
  18940. /* confdefs.h. */
  18941. _ACEOF
  18942. cat confdefs.h >>conftest.$ac_ext
  18943. cat >>conftest.$ac_ext <<_ACEOF
  18944. /* end confdefs.h. */
  18945. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18946. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18947. #define $ac_func innocuous_$ac_func
  18948. /* System header to define __stub macros and hopefully few prototypes,
  18949. which can conflict with char $ac_func (); below.
  18950. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18951. <limits.h> exists even on freestanding compilers. */
  18952. #ifdef __STDC__
  18953. # include <limits.h>
  18954. #else
  18955. # include <assert.h>
  18956. #endif
  18957. #undef $ac_func
  18958. /* Override any GCC internal prototype to avoid an error.
  18959. Use char because int might match the return type of a GCC
  18960. builtin and then its argument prototype would still apply. */
  18961. #ifdef __cplusplus
  18962. extern "C"
  18963. #endif
  18964. char $ac_func ();
  18965. /* The GNU C library defines this for functions which it implements
  18966. to always fail with ENOSYS. Some functions are actually named
  18967. something starting with __ and the normal name is an alias. */
  18968. #if defined __stub_$ac_func || defined __stub___$ac_func
  18969. choke me
  18970. #endif
  18971. int
  18972. main ()
  18973. {
  18974. return $ac_func ();
  18975. ;
  18976. return 0;
  18977. }
  18978. _ACEOF
  18979. rm -f conftest.$ac_objext conftest$ac_exeext
  18980. if { (ac_try="$ac_link"
  18981. case "(($ac_try" in
  18982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18983. *) ac_try_echo=$ac_try;;
  18984. esac
  18985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18986. (eval "$ac_link") 2>conftest.er1
  18987. ac_status=$?
  18988. grep -v '^ *+' conftest.er1 >conftest.err
  18989. rm -f conftest.er1
  18990. cat conftest.err >&5
  18991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18992. (exit $ac_status); } && {
  18993. test -z "$ac_cxx_werror_flag" ||
  18994. test ! -s conftest.err
  18995. } && test -s conftest$ac_exeext &&
  18996. $as_test_x conftest$ac_exeext; then
  18997. eval "$as_ac_var=yes"
  18998. else
  18999. echo "$as_me: failed program was:" >&5
  19000. sed 's/^/| /' conftest.$ac_ext >&5
  19001. eval "$as_ac_var=no"
  19002. fi
  19003. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19004. conftest$ac_exeext conftest.$ac_ext
  19005. fi
  19006. ac_res=`eval echo '${'$as_ac_var'}'`
  19007. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19008. echo "${ECHO_T}$ac_res" >&6; }
  19009. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19010. cat >>confdefs.h <<_ACEOF
  19011. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19012. _ACEOF
  19013. if true; then
  19014. HAVE_INET_ATON_TRUE=
  19015. HAVE_INET_ATON_FALSE='#'
  19016. else
  19017. HAVE_INET_ATON_TRUE='#'
  19018. HAVE_INET_ATON_FALSE=
  19019. fi
  19020. else
  19021. if false; then
  19022. HAVE_INET_ATON_TRUE=
  19023. HAVE_INET_ATON_FALSE='#'
  19024. else
  19025. HAVE_INET_ATON_TRUE='#'
  19026. HAVE_INET_ATON_FALSE=
  19027. fi
  19028. fi
  19029. done
  19030. for ac_func in localtime_r
  19031. do
  19032. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19033. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19034. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19035. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19036. echo $ECHO_N "(cached) $ECHO_C" >&6
  19037. else
  19038. cat >conftest.$ac_ext <<_ACEOF
  19039. /* confdefs.h. */
  19040. _ACEOF
  19041. cat confdefs.h >>conftest.$ac_ext
  19042. cat >>conftest.$ac_ext <<_ACEOF
  19043. /* end confdefs.h. */
  19044. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19045. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19046. #define $ac_func innocuous_$ac_func
  19047. /* System header to define __stub macros and hopefully few prototypes,
  19048. which can conflict with char $ac_func (); below.
  19049. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19050. <limits.h> exists even on freestanding compilers. */
  19051. #ifdef __STDC__
  19052. # include <limits.h>
  19053. #else
  19054. # include <assert.h>
  19055. #endif
  19056. #undef $ac_func
  19057. /* Override any GCC internal prototype to avoid an error.
  19058. Use char because int might match the return type of a GCC
  19059. builtin and then its argument prototype would still apply. */
  19060. #ifdef __cplusplus
  19061. extern "C"
  19062. #endif
  19063. char $ac_func ();
  19064. /* The GNU C library defines this for functions which it implements
  19065. to always fail with ENOSYS. Some functions are actually named
  19066. something starting with __ and the normal name is an alias. */
  19067. #if defined __stub_$ac_func || defined __stub___$ac_func
  19068. choke me
  19069. #endif
  19070. int
  19071. main ()
  19072. {
  19073. return $ac_func ();
  19074. ;
  19075. return 0;
  19076. }
  19077. _ACEOF
  19078. rm -f conftest.$ac_objext conftest$ac_exeext
  19079. if { (ac_try="$ac_link"
  19080. case "(($ac_try" in
  19081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19082. *) ac_try_echo=$ac_try;;
  19083. esac
  19084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19085. (eval "$ac_link") 2>conftest.er1
  19086. ac_status=$?
  19087. grep -v '^ *+' conftest.er1 >conftest.err
  19088. rm -f conftest.er1
  19089. cat conftest.err >&5
  19090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19091. (exit $ac_status); } && {
  19092. test -z "$ac_cxx_werror_flag" ||
  19093. test ! -s conftest.err
  19094. } && test -s conftest$ac_exeext &&
  19095. $as_test_x conftest$ac_exeext; then
  19096. eval "$as_ac_var=yes"
  19097. else
  19098. echo "$as_me: failed program was:" >&5
  19099. sed 's/^/| /' conftest.$ac_ext >&5
  19100. eval "$as_ac_var=no"
  19101. fi
  19102. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19103. conftest$ac_exeext conftest.$ac_ext
  19104. fi
  19105. ac_res=`eval echo '${'$as_ac_var'}'`
  19106. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19107. echo "${ECHO_T}$ac_res" >&6; }
  19108. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19109. cat >>confdefs.h <<_ACEOF
  19110. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19111. _ACEOF
  19112. if true; then
  19113. HAVE_LOCALTIME_R_TRUE=
  19114. HAVE_LOCALTIME_R_FALSE='#'
  19115. else
  19116. HAVE_LOCALTIME_R_TRUE='#'
  19117. HAVE_LOCALTIME_R_FALSE=
  19118. fi
  19119. else
  19120. if false; then
  19121. HAVE_LOCALTIME_R_TRUE=
  19122. HAVE_LOCALTIME_R_FALSE='#'
  19123. else
  19124. HAVE_LOCALTIME_R_TRUE='#'
  19125. HAVE_LOCALTIME_R_FALSE=
  19126. fi
  19127. fi
  19128. done
  19129. for ac_func in strptime
  19130. do
  19131. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19132. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19133. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19134. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19135. echo $ECHO_N "(cached) $ECHO_C" >&6
  19136. else
  19137. cat >conftest.$ac_ext <<_ACEOF
  19138. /* confdefs.h. */
  19139. _ACEOF
  19140. cat confdefs.h >>conftest.$ac_ext
  19141. cat >>conftest.$ac_ext <<_ACEOF
  19142. /* end confdefs.h. */
  19143. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19144. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19145. #define $ac_func innocuous_$ac_func
  19146. /* System header to define __stub macros and hopefully few prototypes,
  19147. which can conflict with char $ac_func (); below.
  19148. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19149. <limits.h> exists even on freestanding compilers. */
  19150. #ifdef __STDC__
  19151. # include <limits.h>
  19152. #else
  19153. # include <assert.h>
  19154. #endif
  19155. #undef $ac_func
  19156. /* Override any GCC internal prototype to avoid an error.
  19157. Use char because int might match the return type of a GCC
  19158. builtin and then its argument prototype would still apply. */
  19159. #ifdef __cplusplus
  19160. extern "C"
  19161. #endif
  19162. char $ac_func ();
  19163. /* The GNU C library defines this for functions which it implements
  19164. to always fail with ENOSYS. Some functions are actually named
  19165. something starting with __ and the normal name is an alias. */
  19166. #if defined __stub_$ac_func || defined __stub___$ac_func
  19167. choke me
  19168. #endif
  19169. int
  19170. main ()
  19171. {
  19172. return $ac_func ();
  19173. ;
  19174. return 0;
  19175. }
  19176. _ACEOF
  19177. rm -f conftest.$ac_objext conftest$ac_exeext
  19178. if { (ac_try="$ac_link"
  19179. case "(($ac_try" in
  19180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19181. *) ac_try_echo=$ac_try;;
  19182. esac
  19183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19184. (eval "$ac_link") 2>conftest.er1
  19185. ac_status=$?
  19186. grep -v '^ *+' conftest.er1 >conftest.err
  19187. rm -f conftest.er1
  19188. cat conftest.err >&5
  19189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19190. (exit $ac_status); } && {
  19191. test -z "$ac_cxx_werror_flag" ||
  19192. test ! -s conftest.err
  19193. } && test -s conftest$ac_exeext &&
  19194. $as_test_x conftest$ac_exeext; then
  19195. eval "$as_ac_var=yes"
  19196. else
  19197. echo "$as_me: failed program was:" >&5
  19198. sed 's/^/| /' conftest.$ac_ext >&5
  19199. eval "$as_ac_var=no"
  19200. fi
  19201. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19202. conftest$ac_exeext conftest.$ac_ext
  19203. fi
  19204. ac_res=`eval echo '${'$as_ac_var'}'`
  19205. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19206. echo "${ECHO_T}$ac_res" >&6; }
  19207. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19208. cat >>confdefs.h <<_ACEOF
  19209. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19210. _ACEOF
  19211. if true; then
  19212. HAVE_STRPTIME_TRUE=
  19213. HAVE_STRPTIME_FALSE='#'
  19214. else
  19215. HAVE_STRPTIME_TRUE='#'
  19216. HAVE_STRPTIME_FALSE=
  19217. fi
  19218. else
  19219. if false; then
  19220. HAVE_STRPTIME_TRUE=
  19221. HAVE_STRPTIME_FALSE='#'
  19222. else
  19223. HAVE_STRPTIME_TRUE='#'
  19224. HAVE_STRPTIME_FALSE=
  19225. fi
  19226. fi
  19227. done
  19228. for ac_func in timegm
  19229. do
  19230. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19231. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19232. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19233. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19234. echo $ECHO_N "(cached) $ECHO_C" >&6
  19235. else
  19236. cat >conftest.$ac_ext <<_ACEOF
  19237. /* confdefs.h. */
  19238. _ACEOF
  19239. cat confdefs.h >>conftest.$ac_ext
  19240. cat >>conftest.$ac_ext <<_ACEOF
  19241. /* end confdefs.h. */
  19242. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19243. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19244. #define $ac_func innocuous_$ac_func
  19245. /* System header to define __stub macros and hopefully few prototypes,
  19246. which can conflict with char $ac_func (); below.
  19247. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19248. <limits.h> exists even on freestanding compilers. */
  19249. #ifdef __STDC__
  19250. # include <limits.h>
  19251. #else
  19252. # include <assert.h>
  19253. #endif
  19254. #undef $ac_func
  19255. /* Override any GCC internal prototype to avoid an error.
  19256. Use char because int might match the return type of a GCC
  19257. builtin and then its argument prototype would still apply. */
  19258. #ifdef __cplusplus
  19259. extern "C"
  19260. #endif
  19261. char $ac_func ();
  19262. /* The GNU C library defines this for functions which it implements
  19263. to always fail with ENOSYS. Some functions are actually named
  19264. something starting with __ and the normal name is an alias. */
  19265. #if defined __stub_$ac_func || defined __stub___$ac_func
  19266. choke me
  19267. #endif
  19268. int
  19269. main ()
  19270. {
  19271. return $ac_func ();
  19272. ;
  19273. return 0;
  19274. }
  19275. _ACEOF
  19276. rm -f conftest.$ac_objext conftest$ac_exeext
  19277. if { (ac_try="$ac_link"
  19278. case "(($ac_try" in
  19279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19280. *) ac_try_echo=$ac_try;;
  19281. esac
  19282. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19283. (eval "$ac_link") 2>conftest.er1
  19284. ac_status=$?
  19285. grep -v '^ *+' conftest.er1 >conftest.err
  19286. rm -f conftest.er1
  19287. cat conftest.err >&5
  19288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19289. (exit $ac_status); } && {
  19290. test -z "$ac_cxx_werror_flag" ||
  19291. test ! -s conftest.err
  19292. } && test -s conftest$ac_exeext &&
  19293. $as_test_x conftest$ac_exeext; then
  19294. eval "$as_ac_var=yes"
  19295. else
  19296. echo "$as_me: failed program was:" >&5
  19297. sed 's/^/| /' conftest.$ac_ext >&5
  19298. eval "$as_ac_var=no"
  19299. fi
  19300. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19301. conftest$ac_exeext conftest.$ac_ext
  19302. fi
  19303. ac_res=`eval echo '${'$as_ac_var'}'`
  19304. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19305. echo "${ECHO_T}$ac_res" >&6; }
  19306. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19307. cat >>confdefs.h <<_ACEOF
  19308. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19309. _ACEOF
  19310. if true; then
  19311. HAVE_TIMEGM_TRUE=
  19312. HAVE_TIMEGM_FALSE='#'
  19313. else
  19314. HAVE_TIMEGM_TRUE='#'
  19315. HAVE_TIMEGM_FALSE=
  19316. fi
  19317. else
  19318. if false; then
  19319. HAVE_TIMEGM_TRUE=
  19320. HAVE_TIMEGM_FALSE='#'
  19321. else
  19322. HAVE_TIMEGM_TRUE='#'
  19323. HAVE_TIMEGM_FALSE=
  19324. fi
  19325. fi
  19326. done
  19327. case "$target" in
  19328. *mingw*)
  19329. if true; then
  19330. HAVE_GETADDRINFO_TRUE=
  19331. HAVE_GETADDRINFO_FALSE='#'
  19332. else
  19333. HAVE_GETADDRINFO_TRUE='#'
  19334. HAVE_GETADDRINFO_FALSE=
  19335. fi
  19336. if false; then
  19337. HAVE_GAI_STRERROR_TRUE=
  19338. HAVE_GAI_STRERROR_FALSE='#'
  19339. else
  19340. HAVE_GAI_STRERROR_TRUE='#'
  19341. HAVE_GAI_STRERROR_FALSE=
  19342. fi
  19343. ;;
  19344. esac
  19345. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19346. cat >confcache <<\_ACEOF
  19347. # This file is a shell script that caches the results of configure
  19348. # tests run on this system so they can be shared between configure
  19349. # scripts and configure runs, see configure's option --config-cache.
  19350. # It is not useful on other systems. If it contains results you don't
  19351. # want to keep, you may remove or edit it.
  19352. #
  19353. # config.status only pays attention to the cache file if you give it
  19354. # the --recheck option to rerun configure.
  19355. #
  19356. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19357. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19358. # following values.
  19359. _ACEOF
  19360. # The following way of writing the cache mishandles newlines in values,
  19361. # but we know of no workaround that is simple, portable, and efficient.
  19362. # So, we kill variables containing newlines.
  19363. # Ultrix sh set writes to stderr and can't be redirected directly,
  19364. # and sets the high bit in the cache file unless we assign to the vars.
  19365. (
  19366. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19367. eval ac_val=\$$ac_var
  19368. case $ac_val in #(
  19369. *${as_nl}*)
  19370. case $ac_var in #(
  19371. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19372. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19373. esac
  19374. case $ac_var in #(
  19375. _ | IFS | as_nl) ;; #(
  19376. *) $as_unset $ac_var ;;
  19377. esac ;;
  19378. esac
  19379. done
  19380. (set) 2>&1 |
  19381. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19382. *${as_nl}ac_space=\ *)
  19383. # `set' does not quote correctly, so add quotes (double-quote
  19384. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19385. sed -n \
  19386. "s/'/'\\\\''/g;
  19387. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19388. ;; #(
  19389. *)
  19390. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19391. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19392. ;;
  19393. esac |
  19394. sort
  19395. ) |
  19396. sed '
  19397. /^ac_cv_env_/b end
  19398. t clear
  19399. :clear
  19400. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19401. t end
  19402. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19403. :end' >>confcache
  19404. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19405. if test -w "$cache_file"; then
  19406. test "x$cache_file" != "x/dev/null" &&
  19407. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19408. echo "$as_me: updating cache $cache_file" >&6;}
  19409. cat confcache >$cache_file
  19410. else
  19411. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19412. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19413. fi
  19414. fi
  19415. rm -f confcache
  19416. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19417. # Let make expand exec_prefix.
  19418. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19419. DEFS=-DHAVE_CONFIG_H
  19420. ac_libobjs=
  19421. ac_ltlibobjs=
  19422. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19423. # 1. Remove the extension, and $U if already installed.
  19424. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19425. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19426. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19427. # will be set to the directory where LIBOBJS objects are built.
  19428. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19429. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19430. done
  19431. LIBOBJS=$ac_libobjs
  19432. LTLIBOBJS=$ac_ltlibobjs
  19433. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19434. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19435. Usually this means the macro was only invoked conditionally." >&5
  19436. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19437. Usually this means the macro was only invoked conditionally." >&2;}
  19438. { (exit 1); exit 1; }; }
  19439. fi
  19440. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19441. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19442. Usually this means the macro was only invoked conditionally." >&5
  19443. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19444. Usually this means the macro was only invoked conditionally." >&2;}
  19445. { (exit 1); exit 1; }; }
  19446. fi
  19447. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19448. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19449. Usually this means the macro was only invoked conditionally." >&5
  19450. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19451. Usually this means the macro was only invoked conditionally." >&2;}
  19452. { (exit 1); exit 1; }; }
  19453. fi
  19454. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19455. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19456. Usually this means the macro was only invoked conditionally." >&5
  19457. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19458. Usually this means the macro was only invoked conditionally." >&2;}
  19459. { (exit 1); exit 1; }; }
  19460. fi
  19461. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19462. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19463. Usually this means the macro was only invoked conditionally." >&5
  19464. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19465. Usually this means the macro was only invoked conditionally." >&2;}
  19466. { (exit 1); exit 1; }; }
  19467. fi
  19468. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19469. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19470. Usually this means the macro was only invoked conditionally." >&5
  19471. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19472. Usually this means the macro was only invoked conditionally." >&2;}
  19473. { (exit 1); exit 1; }; }
  19474. fi
  19475. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19476. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19477. Usually this means the macro was only invoked conditionally." >&5
  19478. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19479. Usually this means the macro was only invoked conditionally." >&2;}
  19480. { (exit 1); exit 1; }; }
  19481. fi
  19482. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19483. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19484. Usually this means the macro was only invoked conditionally." >&5
  19485. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19486. Usually this means the macro was only invoked conditionally." >&2;}
  19487. { (exit 1); exit 1; }; }
  19488. fi
  19489. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19490. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19491. Usually this means the macro was only invoked conditionally." >&5
  19492. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19493. Usually this means the macro was only invoked conditionally." >&2;}
  19494. { (exit 1); exit 1; }; }
  19495. fi
  19496. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19497. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19498. Usually this means the macro was only invoked conditionally." >&5
  19499. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19500. Usually this means the macro was only invoked conditionally." >&2;}
  19501. { (exit 1); exit 1; }; }
  19502. fi
  19503. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19504. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19505. Usually this means the macro was only invoked conditionally." >&5
  19506. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19507. Usually this means the macro was only invoked conditionally." >&2;}
  19508. { (exit 1); exit 1; }; }
  19509. fi
  19510. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19511. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19512. Usually this means the macro was only invoked conditionally." >&5
  19513. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19514. Usually this means the macro was only invoked conditionally." >&2;}
  19515. { (exit 1); exit 1; }; }
  19516. fi
  19517. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19518. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19519. Usually this means the macro was only invoked conditionally." >&5
  19520. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19521. Usually this means the macro was only invoked conditionally." >&2;}
  19522. { (exit 1); exit 1; }; }
  19523. fi
  19524. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19525. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19526. Usually this means the macro was only invoked conditionally." >&5
  19527. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19528. Usually this means the macro was only invoked conditionally." >&2;}
  19529. { (exit 1); exit 1; }; }
  19530. fi
  19531. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19532. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19533. Usually this means the macro was only invoked conditionally." >&5
  19534. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19535. Usually this means the macro was only invoked conditionally." >&2;}
  19536. { (exit 1); exit 1; }; }
  19537. fi
  19538. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19539. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19540. Usually this means the macro was only invoked conditionally." >&5
  19541. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19542. Usually this means the macro was only invoked conditionally." >&2;}
  19543. { (exit 1); exit 1; }; }
  19544. fi
  19545. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19546. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19547. Usually this means the macro was only invoked conditionally." >&5
  19548. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19549. Usually this means the macro was only invoked conditionally." >&2;}
  19550. { (exit 1); exit 1; }; }
  19551. fi
  19552. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19553. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19554. Usually this means the macro was only invoked conditionally." >&5
  19555. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19556. Usually this means the macro was only invoked conditionally." >&2;}
  19557. { (exit 1); exit 1; }; }
  19558. fi
  19559. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19560. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19561. Usually this means the macro was only invoked conditionally." >&5
  19562. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19563. Usually this means the macro was only invoked conditionally." >&2;}
  19564. { (exit 1); exit 1; }; }
  19565. fi
  19566. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19567. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19568. Usually this means the macro was only invoked conditionally." >&5
  19569. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19570. Usually this means the macro was only invoked conditionally." >&2;}
  19571. { (exit 1); exit 1; }; }
  19572. fi
  19573. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19574. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19575. Usually this means the macro was only invoked conditionally." >&5
  19576. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19577. Usually this means the macro was only invoked conditionally." >&2;}
  19578. { (exit 1); exit 1; }; }
  19579. fi
  19580. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19581. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19582. Usually this means the macro was only invoked conditionally." >&5
  19583. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19584. Usually this means the macro was only invoked conditionally." >&2;}
  19585. { (exit 1); exit 1; }; }
  19586. fi
  19587. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19588. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19589. Usually this means the macro was only invoked conditionally." >&5
  19590. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19591. Usually this means the macro was only invoked conditionally." >&2;}
  19592. { (exit 1); exit 1; }; }
  19593. fi
  19594. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19595. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19596. Usually this means the macro was only invoked conditionally." >&5
  19597. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19598. Usually this means the macro was only invoked conditionally." >&2;}
  19599. { (exit 1); exit 1; }; }
  19600. fi
  19601. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19602. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19603. Usually this means the macro was only invoked conditionally." >&5
  19604. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19605. Usually this means the macro was only invoked conditionally." >&2;}
  19606. { (exit 1); exit 1; }; }
  19607. fi
  19608. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19609. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19610. Usually this means the macro was only invoked conditionally." >&5
  19611. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19612. Usually this means the macro was only invoked conditionally." >&2;}
  19613. { (exit 1); exit 1; }; }
  19614. fi
  19615. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19616. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19617. Usually this means the macro was only invoked conditionally." >&5
  19618. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19619. Usually this means the macro was only invoked conditionally." >&2;}
  19620. { (exit 1); exit 1; }; }
  19621. fi
  19622. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19623. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19624. Usually this means the macro was only invoked conditionally." >&5
  19625. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19626. Usually this means the macro was only invoked conditionally." >&2;}
  19627. { (exit 1); exit 1; }; }
  19628. fi
  19629. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19630. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19631. Usually this means the macro was only invoked conditionally." >&5
  19632. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19633. Usually this means the macro was only invoked conditionally." >&2;}
  19634. { (exit 1); exit 1; }; }
  19635. fi
  19636. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19637. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19638. Usually this means the macro was only invoked conditionally." >&5
  19639. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19640. Usually this means the macro was only invoked conditionally." >&2;}
  19641. { (exit 1); exit 1; }; }
  19642. fi
  19643. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19644. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19645. Usually this means the macro was only invoked conditionally." >&5
  19646. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19647. Usually this means the macro was only invoked conditionally." >&2;}
  19648. { (exit 1); exit 1; }; }
  19649. fi
  19650. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19651. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19652. Usually this means the macro was only invoked conditionally." >&5
  19653. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19654. Usually this means the macro was only invoked conditionally." >&2;}
  19655. { (exit 1); exit 1; }; }
  19656. fi
  19657. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19658. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19659. Usually this means the macro was only invoked conditionally." >&5
  19660. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19661. Usually this means the macro was only invoked conditionally." >&2;}
  19662. { (exit 1); exit 1; }; }
  19663. fi
  19664. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19665. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19666. Usually this means the macro was only invoked conditionally." >&5
  19667. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19668. Usually this means the macro was only invoked conditionally." >&2;}
  19669. { (exit 1); exit 1; }; }
  19670. fi
  19671. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19672. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19673. Usually this means the macro was only invoked conditionally." >&5
  19674. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19675. Usually this means the macro was only invoked conditionally." >&2;}
  19676. { (exit 1); exit 1; }; }
  19677. fi
  19678. : ${CONFIG_STATUS=./config.status}
  19679. ac_clean_files_save=$ac_clean_files
  19680. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19681. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19682. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19683. cat >$CONFIG_STATUS <<_ACEOF
  19684. #! $SHELL
  19685. # Generated by $as_me.
  19686. # Run this file to recreate the current configuration.
  19687. # Compiler output produced by configure, useful for debugging
  19688. # configure, is in config.log if it exists.
  19689. debug=false
  19690. ac_cs_recheck=false
  19691. ac_cs_silent=false
  19692. SHELL=\${CONFIG_SHELL-$SHELL}
  19693. _ACEOF
  19694. cat >>$CONFIG_STATUS <<\_ACEOF
  19695. ## --------------------- ##
  19696. ## M4sh Initialization. ##
  19697. ## --------------------- ##
  19698. # Be more Bourne compatible
  19699. DUALCASE=1; export DUALCASE # for MKS sh
  19700. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19701. emulate sh
  19702. NULLCMD=:
  19703. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19704. # is contrary to our usage. Disable this feature.
  19705. alias -g '${1+"$@"}'='"$@"'
  19706. setopt NO_GLOB_SUBST
  19707. else
  19708. case `(set -o) 2>/dev/null` in
  19709. *posix*) set -o posix ;;
  19710. esac
  19711. fi
  19712. # PATH needs CR
  19713. # Avoid depending upon Character Ranges.
  19714. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19715. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19716. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19717. as_cr_digits='0123456789'
  19718. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19719. # The user is always right.
  19720. if test "${PATH_SEPARATOR+set}" != set; then
  19721. echo "#! /bin/sh" >conf$$.sh
  19722. echo "exit 0" >>conf$$.sh
  19723. chmod +x conf$$.sh
  19724. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19725. PATH_SEPARATOR=';'
  19726. else
  19727. PATH_SEPARATOR=:
  19728. fi
  19729. rm -f conf$$.sh
  19730. fi
  19731. # Support unset when possible.
  19732. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19733. as_unset=unset
  19734. else
  19735. as_unset=false
  19736. fi
  19737. # IFS
  19738. # We need space, tab and new line, in precisely that order. Quoting is
  19739. # there to prevent editors from complaining about space-tab.
  19740. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19741. # splitting by setting IFS to empty value.)
  19742. as_nl='
  19743. '
  19744. IFS=" "" $as_nl"
  19745. # Find who we are. Look in the path if we contain no directory separator.
  19746. case $0 in
  19747. *[\\/]* ) as_myself=$0 ;;
  19748. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19749. for as_dir in $PATH
  19750. do
  19751. IFS=$as_save_IFS
  19752. test -z "$as_dir" && as_dir=.
  19753. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19754. done
  19755. IFS=$as_save_IFS
  19756. ;;
  19757. esac
  19758. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19759. # in which case we are not to be found in the path.
  19760. if test "x$as_myself" = x; then
  19761. as_myself=$0
  19762. fi
  19763. if test ! -f "$as_myself"; then
  19764. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19765. { (exit 1); exit 1; }
  19766. fi
  19767. # Work around bugs in pre-3.0 UWIN ksh.
  19768. for as_var in ENV MAIL MAILPATH
  19769. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19770. done
  19771. PS1='$ '
  19772. PS2='> '
  19773. PS4='+ '
  19774. # NLS nuisances.
  19775. for as_var in \
  19776. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19777. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19778. LC_TELEPHONE LC_TIME
  19779. do
  19780. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19781. eval $as_var=C; export $as_var
  19782. else
  19783. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19784. fi
  19785. done
  19786. # Required to use basename.
  19787. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19788. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19789. as_expr=expr
  19790. else
  19791. as_expr=false
  19792. fi
  19793. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19794. as_basename=basename
  19795. else
  19796. as_basename=false
  19797. fi
  19798. # Name of the executable.
  19799. as_me=`$as_basename -- "$0" ||
  19800. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19801. X"$0" : 'X\(//\)$' \| \
  19802. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19803. echo X/"$0" |
  19804. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19805. s//\1/
  19806. q
  19807. }
  19808. /^X\/\(\/\/\)$/{
  19809. s//\1/
  19810. q
  19811. }
  19812. /^X\/\(\/\).*/{
  19813. s//\1/
  19814. q
  19815. }
  19816. s/.*/./; q'`
  19817. # CDPATH.
  19818. $as_unset CDPATH
  19819. as_lineno_1=$LINENO
  19820. as_lineno_2=$LINENO
  19821. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19822. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19823. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19824. # uniformly replaced by the line number. The first 'sed' inserts a
  19825. # line-number line after each line using $LINENO; the second 'sed'
  19826. # does the real work. The second script uses 'N' to pair each
  19827. # line-number line with the line containing $LINENO, and appends
  19828. # trailing '-' during substitution so that $LINENO is not a special
  19829. # case at line end.
  19830. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19831. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19832. # E. McMahon (1931-1989) for sed's syntax. :-)
  19833. sed -n '
  19834. p
  19835. /[$]LINENO/=
  19836. ' <$as_myself |
  19837. sed '
  19838. s/[$]LINENO.*/&-/
  19839. t lineno
  19840. b
  19841. :lineno
  19842. N
  19843. :loop
  19844. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19845. t loop
  19846. s/-\n.*//
  19847. ' >$as_me.lineno &&
  19848. chmod +x "$as_me.lineno" ||
  19849. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19850. { (exit 1); exit 1; }; }
  19851. # Don't try to exec as it changes $[0], causing all sort of problems
  19852. # (the dirname of $[0] is not the place where we might find the
  19853. # original and so on. Autoconf is especially sensitive to this).
  19854. . "./$as_me.lineno"
  19855. # Exit status is that of the last command.
  19856. exit
  19857. }
  19858. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19859. as_dirname=dirname
  19860. else
  19861. as_dirname=false
  19862. fi
  19863. ECHO_C= ECHO_N= ECHO_T=
  19864. case `echo -n x` in
  19865. -n*)
  19866. case `echo 'x\c'` in
  19867. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19868. *) ECHO_C='\c';;
  19869. esac;;
  19870. *)
  19871. ECHO_N='-n';;
  19872. esac
  19873. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19874. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19875. as_expr=expr
  19876. else
  19877. as_expr=false
  19878. fi
  19879. rm -f conf$$ conf$$.exe conf$$.file
  19880. if test -d conf$$.dir; then
  19881. rm -f conf$$.dir/conf$$.file
  19882. else
  19883. rm -f conf$$.dir
  19884. mkdir conf$$.dir
  19885. fi
  19886. echo >conf$$.file
  19887. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19888. as_ln_s='ln -s'
  19889. # ... but there are two gotchas:
  19890. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19891. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19892. # In both cases, we have to default to `cp -p'.
  19893. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19894. as_ln_s='cp -p'
  19895. elif ln conf$$.file conf$$ 2>/dev/null; then
  19896. as_ln_s=ln
  19897. else
  19898. as_ln_s='cp -p'
  19899. fi
  19900. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19901. rmdir conf$$.dir 2>/dev/null
  19902. if mkdir -p . 2>/dev/null; then
  19903. as_mkdir_p=:
  19904. else
  19905. test -d ./-p && rmdir ./-p
  19906. as_mkdir_p=false
  19907. fi
  19908. if test -x / >/dev/null 2>&1; then
  19909. as_test_x='test -x'
  19910. else
  19911. if ls -dL / >/dev/null 2>&1; then
  19912. as_ls_L_option=L
  19913. else
  19914. as_ls_L_option=
  19915. fi
  19916. as_test_x='
  19917. eval sh -c '\''
  19918. if test -d "$1"; then
  19919. test -d "$1/.";
  19920. else
  19921. case $1 in
  19922. -*)set "./$1";;
  19923. esac;
  19924. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19925. ???[sx]*):;;*)false;;esac;fi
  19926. '\'' sh
  19927. '
  19928. fi
  19929. as_executable_p=$as_test_x
  19930. # Sed expression to map a string onto a valid CPP name.
  19931. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19932. # Sed expression to map a string onto a valid variable name.
  19933. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19934. exec 6>&1
  19935. # Save the log message, to keep $[0] and so on meaningful, and to
  19936. # report actual input values of CONFIG_FILES etc. instead of their
  19937. # values after options handling.
  19938. ac_log="
  19939. This file was extended by aria2c $as_me 0.16.0b, which was
  19940. generated by GNU Autoconf 2.61. Invocation command line was
  19941. CONFIG_FILES = $CONFIG_FILES
  19942. CONFIG_HEADERS = $CONFIG_HEADERS
  19943. CONFIG_LINKS = $CONFIG_LINKS
  19944. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19945. $ $0 $@
  19946. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19947. "
  19948. _ACEOF
  19949. cat >>$CONFIG_STATUS <<_ACEOF
  19950. # Files that config.status was made for.
  19951. config_files="$ac_config_files"
  19952. config_headers="$ac_config_headers"
  19953. config_commands="$ac_config_commands"
  19954. _ACEOF
  19955. cat >>$CONFIG_STATUS <<\_ACEOF
  19956. ac_cs_usage="\
  19957. \`$as_me' instantiates files from templates according to the
  19958. current configuration.
  19959. Usage: $0 [OPTIONS] [FILE]...
  19960. -h, --help print this help, then exit
  19961. -V, --version print version number and configuration settings, then exit
  19962. -q, --quiet do not print progress messages
  19963. -d, --debug don't remove temporary files
  19964. --recheck update $as_me by reconfiguring in the same conditions
  19965. --file=FILE[:TEMPLATE]
  19966. instantiate the configuration file FILE
  19967. --header=FILE[:TEMPLATE]
  19968. instantiate the configuration header FILE
  19969. Configuration files:
  19970. $config_files
  19971. Configuration headers:
  19972. $config_headers
  19973. Configuration commands:
  19974. $config_commands
  19975. Report bugs to <bug-autoconf@gnu.org>."
  19976. _ACEOF
  19977. cat >>$CONFIG_STATUS <<_ACEOF
  19978. ac_cs_version="\\
  19979. aria2c config.status 0.16.0b
  19980. configured by $0, generated by GNU Autoconf 2.61,
  19981. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19982. Copyright (C) 2006 Free Software Foundation, Inc.
  19983. This config.status script is free software; the Free Software Foundation
  19984. gives unlimited permission to copy, distribute and modify it."
  19985. ac_pwd='$ac_pwd'
  19986. srcdir='$srcdir'
  19987. INSTALL='$INSTALL'
  19988. MKDIR_P='$MKDIR_P'
  19989. _ACEOF
  19990. cat >>$CONFIG_STATUS <<\_ACEOF
  19991. # If no file are specified by the user, then we need to provide default
  19992. # value. By we need to know if files were specified by the user.
  19993. ac_need_defaults=:
  19994. while test $# != 0
  19995. do
  19996. case $1 in
  19997. --*=*)
  19998. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19999. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20000. ac_shift=:
  20001. ;;
  20002. *)
  20003. ac_option=$1
  20004. ac_optarg=$2
  20005. ac_shift=shift
  20006. ;;
  20007. esac
  20008. case $ac_option in
  20009. # Handling of the options.
  20010. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20011. ac_cs_recheck=: ;;
  20012. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20013. echo "$ac_cs_version"; exit ;;
  20014. --debug | --debu | --deb | --de | --d | -d )
  20015. debug=: ;;
  20016. --file | --fil | --fi | --f )
  20017. $ac_shift
  20018. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20019. ac_need_defaults=false;;
  20020. --header | --heade | --head | --hea )
  20021. $ac_shift
  20022. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20023. ac_need_defaults=false;;
  20024. --he | --h)
  20025. # Conflict between --help and --header
  20026. { echo "$as_me: error: ambiguous option: $1
  20027. Try \`$0 --help' for more information." >&2
  20028. { (exit 1); exit 1; }; };;
  20029. --help | --hel | -h )
  20030. echo "$ac_cs_usage"; exit ;;
  20031. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20032. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20033. ac_cs_silent=: ;;
  20034. # This is an error.
  20035. -*) { echo "$as_me: error: unrecognized option: $1
  20036. Try \`$0 --help' for more information." >&2
  20037. { (exit 1); exit 1; }; } ;;
  20038. *) ac_config_targets="$ac_config_targets $1"
  20039. ac_need_defaults=false ;;
  20040. esac
  20041. shift
  20042. done
  20043. ac_configure_extra_args=
  20044. if $ac_cs_silent; then
  20045. exec 6>/dev/null
  20046. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20047. fi
  20048. _ACEOF
  20049. cat >>$CONFIG_STATUS <<_ACEOF
  20050. if \$ac_cs_recheck; then
  20051. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20052. CONFIG_SHELL=$SHELL
  20053. export CONFIG_SHELL
  20054. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20055. fi
  20056. _ACEOF
  20057. cat >>$CONFIG_STATUS <<\_ACEOF
  20058. exec 5>>config.log
  20059. {
  20060. echo
  20061. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20062. ## Running $as_me. ##
  20063. _ASBOX
  20064. echo "$ac_log"
  20065. } >&5
  20066. _ACEOF
  20067. cat >>$CONFIG_STATUS <<_ACEOF
  20068. #
  20069. # INIT-COMMANDS
  20070. #
  20071. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20072. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  20073. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  20074. # from automake < 1.5.
  20075. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  20076. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  20077. LINGUAS="${LINGUAS-%UNSET%}"
  20078. _ACEOF
  20079. cat >>$CONFIG_STATUS <<\_ACEOF
  20080. # Handling of arguments.
  20081. for ac_config_target in $ac_config_targets
  20082. do
  20083. case $ac_config_target in
  20084. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20085. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20086. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  20087. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20088. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20089. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20090. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20091. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20092. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20093. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20094. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20095. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20096. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20097. { (exit 1); exit 1; }; };;
  20098. esac
  20099. done
  20100. # If the user did not use the arguments to specify the items to instantiate,
  20101. # then the envvar interface is used. Set only those that are not.
  20102. # We use the long form for the default assignment because of an extremely
  20103. # bizarre bug on SunOS 4.1.3.
  20104. if $ac_need_defaults; then
  20105. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20106. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20107. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20108. fi
  20109. # Have a temporary directory for convenience. Make it in the build tree
  20110. # simply because there is no reason against having it here, and in addition,
  20111. # creating and moving files from /tmp can sometimes cause problems.
  20112. # Hook for its removal unless debugging.
  20113. # Note that there is a small window in which the directory will not be cleaned:
  20114. # after its creation but before its name has been assigned to `$tmp'.
  20115. $debug ||
  20116. {
  20117. tmp=
  20118. trap 'exit_status=$?
  20119. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20120. ' 0
  20121. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20122. }
  20123. # Create a (secure) tmp directory for tmp files.
  20124. {
  20125. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20126. test -n "$tmp" && test -d "$tmp"
  20127. } ||
  20128. {
  20129. tmp=./conf$$-$RANDOM
  20130. (umask 077 && mkdir "$tmp")
  20131. } ||
  20132. {
  20133. echo "$me: cannot create a temporary directory in ." >&2
  20134. { (exit 1); exit 1; }
  20135. }
  20136. #
  20137. # Set up the sed scripts for CONFIG_FILES section.
  20138. #
  20139. # No need to generate the scripts if there are no CONFIG_FILES.
  20140. # This happens for instance when ./config.status config.h
  20141. if test -n "$CONFIG_FILES"; then
  20142. _ACEOF
  20143. ac_delim='%!_!# '
  20144. for ac_last_try in false false false false false :; do
  20145. cat >conf$$subs.sed <<_ACEOF
  20146. SHELL!$SHELL$ac_delim
  20147. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20148. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20149. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20150. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20151. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20152. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20153. exec_prefix!$exec_prefix$ac_delim
  20154. prefix!$prefix$ac_delim
  20155. program_transform_name!$program_transform_name$ac_delim
  20156. bindir!$bindir$ac_delim
  20157. sbindir!$sbindir$ac_delim
  20158. libexecdir!$libexecdir$ac_delim
  20159. datarootdir!$datarootdir$ac_delim
  20160. datadir!$datadir$ac_delim
  20161. sysconfdir!$sysconfdir$ac_delim
  20162. sharedstatedir!$sharedstatedir$ac_delim
  20163. localstatedir!$localstatedir$ac_delim
  20164. includedir!$includedir$ac_delim
  20165. oldincludedir!$oldincludedir$ac_delim
  20166. docdir!$docdir$ac_delim
  20167. infodir!$infodir$ac_delim
  20168. htmldir!$htmldir$ac_delim
  20169. dvidir!$dvidir$ac_delim
  20170. pdfdir!$pdfdir$ac_delim
  20171. psdir!$psdir$ac_delim
  20172. libdir!$libdir$ac_delim
  20173. localedir!$localedir$ac_delim
  20174. mandir!$mandir$ac_delim
  20175. DEFS!$DEFS$ac_delim
  20176. ECHO_C!$ECHO_C$ac_delim
  20177. ECHO_N!$ECHO_N$ac_delim
  20178. ECHO_T!$ECHO_T$ac_delim
  20179. LIBS!$LIBS$ac_delim
  20180. build_alias!$build_alias$ac_delim
  20181. host_alias!$host_alias$ac_delim
  20182. target_alias!$target_alias$ac_delim
  20183. build!$build$ac_delim
  20184. build_cpu!$build_cpu$ac_delim
  20185. build_vendor!$build_vendor$ac_delim
  20186. build_os!$build_os$ac_delim
  20187. host!$host$ac_delim
  20188. host_cpu!$host_cpu$ac_delim
  20189. host_vendor!$host_vendor$ac_delim
  20190. host_os!$host_os$ac_delim
  20191. target!$target$ac_delim
  20192. target_cpu!$target_cpu$ac_delim
  20193. target_vendor!$target_vendor$ac_delim
  20194. target_os!$target_os$ac_delim
  20195. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20196. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20197. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20198. am__isrc!$am__isrc$ac_delim
  20199. CYGPATH_W!$CYGPATH_W$ac_delim
  20200. PACKAGE!$PACKAGE$ac_delim
  20201. VERSION!$VERSION$ac_delim
  20202. ACLOCAL!$ACLOCAL$ac_delim
  20203. AUTOCONF!$AUTOCONF$ac_delim
  20204. AUTOMAKE!$AUTOMAKE$ac_delim
  20205. AUTOHEADER!$AUTOHEADER$ac_delim
  20206. MAKEINFO!$MAKEINFO$ac_delim
  20207. install_sh!$install_sh$ac_delim
  20208. STRIP!$STRIP$ac_delim
  20209. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20210. mkdir_p!$mkdir_p$ac_delim
  20211. AWK!$AWK$ac_delim
  20212. SET_MAKE!$SET_MAKE$ac_delim
  20213. am__leading_dot!$am__leading_dot$ac_delim
  20214. AMTAR!$AMTAR$ac_delim
  20215. am__tar!$am__tar$ac_delim
  20216. am__untar!$am__untar$ac_delim
  20217. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20218. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20219. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20220. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20221. CXX!$CXX$ac_delim
  20222. CXXFLAGS!$CXXFLAGS$ac_delim
  20223. LDFLAGS!$LDFLAGS$ac_delim
  20224. CPPFLAGS!$CPPFLAGS$ac_delim
  20225. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20226. EXEEXT!$EXEEXT$ac_delim
  20227. OBJEXT!$OBJEXT$ac_delim
  20228. DEPDIR!$DEPDIR$ac_delim
  20229. am__include!$am__include$ac_delim
  20230. am__quote!$am__quote$ac_delim
  20231. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20232. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20233. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20234. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20235. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20236. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20237. CC!$CC$ac_delim
  20238. CFLAGS!$CFLAGS$ac_delim
  20239. ac_ct_CC!$ac_ct_CC$ac_delim
  20240. CCDEPMODE!$CCDEPMODE$ac_delim
  20241. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20242. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20243. _ACEOF
  20244. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20245. break
  20246. elif $ac_last_try; then
  20247. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20248. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20249. { (exit 1); exit 1; }; }
  20250. else
  20251. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20252. fi
  20253. done
  20254. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20255. if test -n "$ac_eof"; then
  20256. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20257. ac_eof=`expr $ac_eof + 1`
  20258. fi
  20259. cat >>$CONFIG_STATUS <<_ACEOF
  20260. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20261. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20262. _ACEOF
  20263. sed '
  20264. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20265. s/^/s,@/; s/!/@,|#_!!_#|/
  20266. :n
  20267. t n
  20268. s/'"$ac_delim"'$/,g/; t
  20269. s/$/\\/; p
  20270. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20271. ' >>$CONFIG_STATUS <conf$$subs.sed
  20272. rm -f conf$$subs.sed
  20273. cat >>$CONFIG_STATUS <<_ACEOF
  20274. CEOF$ac_eof
  20275. _ACEOF
  20276. ac_delim='%!_!# '
  20277. for ac_last_try in false false false false false :; do
  20278. cat >conf$$subs.sed <<_ACEOF
  20279. RANLIB!$RANLIB$ac_delim
  20280. YACC!$YACC$ac_delim
  20281. YFLAGS!$YFLAGS$ac_delim
  20282. CXXCPP!$CXXCPP$ac_delim
  20283. GREP!$GREP$ac_delim
  20284. EGREP!$EGREP$ac_delim
  20285. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20286. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20287. XML_LIBS!$XML_LIBS$ac_delim
  20288. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20289. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20290. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20291. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20292. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20293. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20294. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20295. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20296. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20297. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20298. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20299. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20300. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20301. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20302. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  20303. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  20304. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20305. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20306. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20307. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20308. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20309. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20310. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20311. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20312. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20313. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20314. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20315. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20316. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20317. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20318. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20319. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20320. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20321. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20322. ALLOCA!$ALLOCA$ac_delim
  20323. USE_NLS!$USE_NLS$ac_delim
  20324. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20325. MSGFMT!$MSGFMT$ac_delim
  20326. GMSGFMT!$GMSGFMT$ac_delim
  20327. MSGFMT_015!$MSGFMT_015$ac_delim
  20328. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20329. XGETTEXT!$XGETTEXT$ac_delim
  20330. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20331. MSGMERGE!$MSGMERGE$ac_delim
  20332. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20333. GLIBC2!$GLIBC2$ac_delim
  20334. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20335. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20336. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20337. LIBPTH!$LIBPTH$ac_delim
  20338. LTLIBPTH!$LTLIBPTH$ac_delim
  20339. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20340. LIBTHREAD!$LIBTHREAD$ac_delim
  20341. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20342. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20343. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20344. LIBICONV!$LIBICONV$ac_delim
  20345. LTLIBICONV!$LTLIBICONV$ac_delim
  20346. INTLBISON!$INTLBISON$ac_delim
  20347. GLIBC21!$GLIBC21$ac_delim
  20348. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20349. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20350. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20351. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20352. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20353. WOE32DLL!$WOE32DLL$ac_delim
  20354. WOE32!$WOE32$ac_delim
  20355. WINDRES!$WINDRES$ac_delim
  20356. LTLIBC!$LTLIBC$ac_delim
  20357. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20358. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20359. CATOBJEXT!$CATOBJEXT$ac_delim
  20360. DATADIRNAME!$DATADIRNAME$ac_delim
  20361. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20362. GENCAT!$GENCAT$ac_delim
  20363. INTLOBJS!$INTLOBJS$ac_delim
  20364. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20365. INTLLIBS!$INTLLIBS$ac_delim
  20366. LIBINTL!$LIBINTL$ac_delim
  20367. LTLIBINTL!$LTLIBINTL$ac_delim
  20368. POSUB!$POSUB$ac_delim
  20369. LIBOBJS!$LIBOBJS$ac_delim
  20370. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20371. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20372. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20373. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20374. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20375. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20376. _ACEOF
  20377. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20378. break
  20379. elif $ac_last_try; then
  20380. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20381. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20382. { (exit 1); exit 1; }; }
  20383. else
  20384. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20385. fi
  20386. done
  20387. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20388. if test -n "$ac_eof"; then
  20389. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20390. ac_eof=`expr $ac_eof + 1`
  20391. fi
  20392. cat >>$CONFIG_STATUS <<_ACEOF
  20393. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20394. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20395. _ACEOF
  20396. sed '
  20397. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20398. s/^/s,@/; s/!/@,|#_!!_#|/
  20399. :n
  20400. t n
  20401. s/'"$ac_delim"'$/,g/; t
  20402. s/$/\\/; p
  20403. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20404. ' >>$CONFIG_STATUS <conf$$subs.sed
  20405. rm -f conf$$subs.sed
  20406. cat >>$CONFIG_STATUS <<_ACEOF
  20407. CEOF$ac_eof
  20408. _ACEOF
  20409. ac_delim='%!_!# '
  20410. for ac_last_try in false false false false false :; do
  20411. cat >conf$$subs.sed <<_ACEOF
  20412. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20413. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20414. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20415. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20416. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20417. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20418. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20419. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20420. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20421. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20422. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20423. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20424. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20425. _ACEOF
  20426. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
  20427. break
  20428. elif $ac_last_try; then
  20429. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20430. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20431. { (exit 1); exit 1; }; }
  20432. else
  20433. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20434. fi
  20435. done
  20436. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20437. if test -n "$ac_eof"; then
  20438. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20439. ac_eof=`expr $ac_eof + 1`
  20440. fi
  20441. cat >>$CONFIG_STATUS <<_ACEOF
  20442. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20443. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20444. _ACEOF
  20445. sed '
  20446. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20447. s/^/s,@/; s/!/@,|#_!!_#|/
  20448. :n
  20449. t n
  20450. s/'"$ac_delim"'$/,g/; t
  20451. s/$/\\/; p
  20452. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20453. ' >>$CONFIG_STATUS <conf$$subs.sed
  20454. rm -f conf$$subs.sed
  20455. cat >>$CONFIG_STATUS <<_ACEOF
  20456. :end
  20457. s/|#_!!_#|//g
  20458. CEOF$ac_eof
  20459. _ACEOF
  20460. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20461. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20462. # trailing colons and then remove the whole line if VPATH becomes empty
  20463. # (actually we leave an empty line to preserve line numbers).
  20464. if test "x$srcdir" = x.; then
  20465. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20466. s/:*\$(srcdir):*/:/
  20467. s/:*\${srcdir}:*/:/
  20468. s/:*@srcdir@:*/:/
  20469. s/^\([^=]*=[ ]*\):*/\1/
  20470. s/:*$//
  20471. s/^[^=]*=[ ]*$//
  20472. }'
  20473. fi
  20474. cat >>$CONFIG_STATUS <<\_ACEOF
  20475. fi # test -n "$CONFIG_FILES"
  20476. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20477. do
  20478. case $ac_tag in
  20479. :[FHLC]) ac_mode=$ac_tag; continue;;
  20480. esac
  20481. case $ac_mode$ac_tag in
  20482. :[FHL]*:*);;
  20483. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20484. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20485. { (exit 1); exit 1; }; };;
  20486. :[FH]-) ac_tag=-:-;;
  20487. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20488. esac
  20489. ac_save_IFS=$IFS
  20490. IFS=:
  20491. set x $ac_tag
  20492. IFS=$ac_save_IFS
  20493. shift
  20494. ac_file=$1
  20495. shift
  20496. case $ac_mode in
  20497. :L) ac_source=$1;;
  20498. :[FH])
  20499. ac_file_inputs=
  20500. for ac_f
  20501. do
  20502. case $ac_f in
  20503. -) ac_f="$tmp/stdin";;
  20504. *) # Look for the file first in the build tree, then in the source tree
  20505. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20506. # because $ac_f cannot contain `:'.
  20507. test -f "$ac_f" ||
  20508. case $ac_f in
  20509. [\\/$]*) false;;
  20510. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20511. esac ||
  20512. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20513. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20514. { (exit 1); exit 1; }; };;
  20515. esac
  20516. ac_file_inputs="$ac_file_inputs $ac_f"
  20517. done
  20518. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20519. # use $as_me), people would be surprised to read:
  20520. # /* config.h. Generated by config.status. */
  20521. configure_input="Generated from "`IFS=:
  20522. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20523. if test x"$ac_file" != x-; then
  20524. configure_input="$ac_file. $configure_input"
  20525. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20526. echo "$as_me: creating $ac_file" >&6;}
  20527. fi
  20528. case $ac_tag in
  20529. *:-:* | *:-) cat >"$tmp/stdin";;
  20530. esac
  20531. ;;
  20532. esac
  20533. ac_dir=`$as_dirname -- "$ac_file" ||
  20534. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20535. X"$ac_file" : 'X\(//\)[^/]' \| \
  20536. X"$ac_file" : 'X\(//\)$' \| \
  20537. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20538. echo X"$ac_file" |
  20539. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20540. s//\1/
  20541. q
  20542. }
  20543. /^X\(\/\/\)[^/].*/{
  20544. s//\1/
  20545. q
  20546. }
  20547. /^X\(\/\/\)$/{
  20548. s//\1/
  20549. q
  20550. }
  20551. /^X\(\/\).*/{
  20552. s//\1/
  20553. q
  20554. }
  20555. s/.*/./; q'`
  20556. { as_dir="$ac_dir"
  20557. case $as_dir in #(
  20558. -*) as_dir=./$as_dir;;
  20559. esac
  20560. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20561. as_dirs=
  20562. while :; do
  20563. case $as_dir in #(
  20564. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20565. *) as_qdir=$as_dir;;
  20566. esac
  20567. as_dirs="'$as_qdir' $as_dirs"
  20568. as_dir=`$as_dirname -- "$as_dir" ||
  20569. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20570. X"$as_dir" : 'X\(//\)[^/]' \| \
  20571. X"$as_dir" : 'X\(//\)$' \| \
  20572. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20573. echo X"$as_dir" |
  20574. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20575. s//\1/
  20576. q
  20577. }
  20578. /^X\(\/\/\)[^/].*/{
  20579. s//\1/
  20580. q
  20581. }
  20582. /^X\(\/\/\)$/{
  20583. s//\1/
  20584. q
  20585. }
  20586. /^X\(\/\).*/{
  20587. s//\1/
  20588. q
  20589. }
  20590. s/.*/./; q'`
  20591. test -d "$as_dir" && break
  20592. done
  20593. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20594. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20595. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20596. { (exit 1); exit 1; }; }; }
  20597. ac_builddir=.
  20598. case "$ac_dir" in
  20599. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20600. *)
  20601. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20602. # A ".." for each directory in $ac_dir_suffix.
  20603. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20604. case $ac_top_builddir_sub in
  20605. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20606. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20607. esac ;;
  20608. esac
  20609. ac_abs_top_builddir=$ac_pwd
  20610. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20611. # for backward compatibility:
  20612. ac_top_builddir=$ac_top_build_prefix
  20613. case $srcdir in
  20614. .) # We are building in place.
  20615. ac_srcdir=.
  20616. ac_top_srcdir=$ac_top_builddir_sub
  20617. ac_abs_top_srcdir=$ac_pwd ;;
  20618. [\\/]* | ?:[\\/]* ) # Absolute name.
  20619. ac_srcdir=$srcdir$ac_dir_suffix;
  20620. ac_top_srcdir=$srcdir
  20621. ac_abs_top_srcdir=$srcdir ;;
  20622. *) # Relative name.
  20623. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20624. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20625. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20626. esac
  20627. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20628. case $ac_mode in
  20629. :F)
  20630. #
  20631. # CONFIG_FILE
  20632. #
  20633. case $INSTALL in
  20634. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20635. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20636. esac
  20637. ac_MKDIR_P=$MKDIR_P
  20638. case $MKDIR_P in
  20639. [\\/$]* | ?:[\\/]* ) ;;
  20640. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20641. esac
  20642. _ACEOF
  20643. cat >>$CONFIG_STATUS <<\_ACEOF
  20644. # If the template does not know about datarootdir, expand it.
  20645. # FIXME: This hack should be removed a few years after 2.60.
  20646. ac_datarootdir_hack=; ac_datarootdir_seen=
  20647. case `sed -n '/datarootdir/ {
  20648. p
  20649. q
  20650. }
  20651. /@datadir@/p
  20652. /@docdir@/p
  20653. /@infodir@/p
  20654. /@localedir@/p
  20655. /@mandir@/p
  20656. ' $ac_file_inputs` in
  20657. *datarootdir*) ac_datarootdir_seen=yes;;
  20658. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20659. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20660. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20661. _ACEOF
  20662. cat >>$CONFIG_STATUS <<_ACEOF
  20663. ac_datarootdir_hack='
  20664. s&@datadir@&$datadir&g
  20665. s&@docdir@&$docdir&g
  20666. s&@infodir@&$infodir&g
  20667. s&@localedir@&$localedir&g
  20668. s&@mandir@&$mandir&g
  20669. s&\\\${datarootdir}&$datarootdir&g' ;;
  20670. esac
  20671. _ACEOF
  20672. # Neutralize VPATH when `$srcdir' = `.'.
  20673. # Shell code in configure.ac might set extrasub.
  20674. # FIXME: do we really want to maintain this feature?
  20675. cat >>$CONFIG_STATUS <<_ACEOF
  20676. sed "$ac_vpsub
  20677. $extrasub
  20678. _ACEOF
  20679. cat >>$CONFIG_STATUS <<\_ACEOF
  20680. :t
  20681. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20682. s&@configure_input@&$configure_input&;t t
  20683. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20684. s&@srcdir@&$ac_srcdir&;t t
  20685. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20686. s&@top_srcdir@&$ac_top_srcdir&;t t
  20687. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20688. s&@builddir@&$ac_builddir&;t t
  20689. s&@abs_builddir@&$ac_abs_builddir&;t t
  20690. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20691. s&@INSTALL@&$ac_INSTALL&;t t
  20692. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20693. $ac_datarootdir_hack
  20694. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20695. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20696. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20697. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20698. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20699. which seems to be undefined. Please make sure it is defined." >&5
  20700. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20701. which seems to be undefined. Please make sure it is defined." >&2;}
  20702. rm -f "$tmp/stdin"
  20703. case $ac_file in
  20704. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20705. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20706. esac
  20707. ;;
  20708. :H)
  20709. #
  20710. # CONFIG_HEADER
  20711. #
  20712. _ACEOF
  20713. # Transform confdefs.h into a sed script `conftest.defines', that
  20714. # substitutes the proper values into config.h.in to produce config.h.
  20715. rm -f conftest.defines conftest.tail
  20716. # First, append a space to every undef/define line, to ease matching.
  20717. echo 's/$/ /' >conftest.defines
  20718. # Then, protect against being on the right side of a sed subst, or in
  20719. # an unquoted here document, in config.status. If some macros were
  20720. # called several times there might be several #defines for the same
  20721. # symbol, which is useless. But do not sort them, since the last
  20722. # AC_DEFINE must be honored.
  20723. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20724. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20725. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20726. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20727. # just an empty string.
  20728. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20729. ac_dB='\\)[ (].*,\\1define\\2'
  20730. ac_dC=' '
  20731. ac_dD=' ,'
  20732. uniq confdefs.h |
  20733. sed -n '
  20734. t rset
  20735. :rset
  20736. s/^[ ]*#[ ]*define[ ][ ]*//
  20737. t ok
  20738. d
  20739. :ok
  20740. s/[\\&,]/\\&/g
  20741. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20742. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20743. ' >>conftest.defines
  20744. # Remove the space that was appended to ease matching.
  20745. # Then replace #undef with comments. This is necessary, for
  20746. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20747. # on some systems where configure will not decide to define it.
  20748. # (The regexp can be short, since the line contains either #define or #undef.)
  20749. echo 's/ $//
  20750. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20751. # Break up conftest.defines:
  20752. ac_max_sed_lines=50
  20753. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20754. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20755. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20756. # et cetera.
  20757. ac_in='$ac_file_inputs'
  20758. ac_out='"$tmp/out1"'
  20759. ac_nxt='"$tmp/out2"'
  20760. while :
  20761. do
  20762. # Write a here document:
  20763. cat >>$CONFIG_STATUS <<_ACEOF
  20764. # First, check the format of the line:
  20765. cat >"\$tmp/defines.sed" <<\\CEOF
  20766. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20767. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20768. b
  20769. :def
  20770. _ACEOF
  20771. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20772. echo 'CEOF
  20773. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20774. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20775. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20776. grep . conftest.tail >/dev/null || break
  20777. rm -f conftest.defines
  20778. mv conftest.tail conftest.defines
  20779. done
  20780. rm -f conftest.defines conftest.tail
  20781. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20782. cat >>$CONFIG_STATUS <<\_ACEOF
  20783. if test x"$ac_file" != x-; then
  20784. echo "/* $configure_input */" >"$tmp/config.h"
  20785. cat "$ac_result" >>"$tmp/config.h"
  20786. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20787. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20788. echo "$as_me: $ac_file is unchanged" >&6;}
  20789. else
  20790. rm -f $ac_file
  20791. mv "$tmp/config.h" $ac_file
  20792. fi
  20793. else
  20794. echo "/* $configure_input */"
  20795. cat "$ac_result"
  20796. fi
  20797. rm -f "$tmp/out12"
  20798. # Compute $ac_file's index in $config_headers.
  20799. _am_arg=$ac_file
  20800. _am_stamp_count=1
  20801. for _am_header in $config_headers :; do
  20802. case $_am_header in
  20803. $_am_arg | $_am_arg:* )
  20804. break ;;
  20805. * )
  20806. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20807. esac
  20808. done
  20809. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20810. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20811. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20812. X"$_am_arg" : 'X\(//\)$' \| \
  20813. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20814. echo X"$_am_arg" |
  20815. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20816. s//\1/
  20817. q
  20818. }
  20819. /^X\(\/\/\)[^/].*/{
  20820. s//\1/
  20821. q
  20822. }
  20823. /^X\(\/\/\)$/{
  20824. s//\1/
  20825. q
  20826. }
  20827. /^X\(\/\).*/{
  20828. s//\1/
  20829. q
  20830. }
  20831. s/.*/./; q'`/stamp-h$_am_stamp_count
  20832. ;;
  20833. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20834. echo "$as_me: executing $ac_file commands" >&6;}
  20835. ;;
  20836. esac
  20837. case $ac_file$ac_mode in
  20838. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20839. # Strip MF so we end up with the name of the file.
  20840. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20841. # Check whether this is an Automake generated Makefile or not.
  20842. # We used to match only the files named `Makefile.in', but
  20843. # some people rename them; so instead we look at the file content.
  20844. # Grep'ing the first line is not enough: some people post-process
  20845. # each Makefile.in and add a new line on top of each file to say so.
  20846. # Grep'ing the whole file is not good either: AIX grep has a line
  20847. # limit of 2048, but all sed's we know have understand at least 4000.
  20848. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20849. dirpart=`$as_dirname -- "$mf" ||
  20850. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20851. X"$mf" : 'X\(//\)[^/]' \| \
  20852. X"$mf" : 'X\(//\)$' \| \
  20853. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20854. echo X"$mf" |
  20855. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20856. s//\1/
  20857. q
  20858. }
  20859. /^X\(\/\/\)[^/].*/{
  20860. s//\1/
  20861. q
  20862. }
  20863. /^X\(\/\/\)$/{
  20864. s//\1/
  20865. q
  20866. }
  20867. /^X\(\/\).*/{
  20868. s//\1/
  20869. q
  20870. }
  20871. s/.*/./; q'`
  20872. else
  20873. continue
  20874. fi
  20875. # Extract the definition of DEPDIR, am__include, and am__quote
  20876. # from the Makefile without running `make'.
  20877. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20878. test -z "$DEPDIR" && continue
  20879. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20880. test -z "am__include" && continue
  20881. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20882. # When using ansi2knr, U may be empty or an underscore; expand it
  20883. U=`sed -n 's/^U = //p' < "$mf"`
  20884. # Find all dependency output files, they are included files with
  20885. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20886. # simplest approach to changing $(DEPDIR) to its actual value in the
  20887. # expansion.
  20888. for file in `sed -n "
  20889. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20890. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20891. # Make sure the directory exists.
  20892. test -f "$dirpart/$file" && continue
  20893. fdir=`$as_dirname -- "$file" ||
  20894. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20895. X"$file" : 'X\(//\)[^/]' \| \
  20896. X"$file" : 'X\(//\)$' \| \
  20897. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20898. echo X"$file" |
  20899. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20900. s//\1/
  20901. q
  20902. }
  20903. /^X\(\/\/\)[^/].*/{
  20904. s//\1/
  20905. q
  20906. }
  20907. /^X\(\/\/\)$/{
  20908. s//\1/
  20909. q
  20910. }
  20911. /^X\(\/\).*/{
  20912. s//\1/
  20913. q
  20914. }
  20915. s/.*/./; q'`
  20916. { as_dir=$dirpart/$fdir
  20917. case $as_dir in #(
  20918. -*) as_dir=./$as_dir;;
  20919. esac
  20920. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20921. as_dirs=
  20922. while :; do
  20923. case $as_dir in #(
  20924. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20925. *) as_qdir=$as_dir;;
  20926. esac
  20927. as_dirs="'$as_qdir' $as_dirs"
  20928. as_dir=`$as_dirname -- "$as_dir" ||
  20929. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20930. X"$as_dir" : 'X\(//\)[^/]' \| \
  20931. X"$as_dir" : 'X\(//\)$' \| \
  20932. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20933. echo X"$as_dir" |
  20934. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20935. s//\1/
  20936. q
  20937. }
  20938. /^X\(\/\/\)[^/].*/{
  20939. s//\1/
  20940. q
  20941. }
  20942. /^X\(\/\/\)$/{
  20943. s//\1/
  20944. q
  20945. }
  20946. /^X\(\/\).*/{
  20947. s//\1/
  20948. q
  20949. }
  20950. s/.*/./; q'`
  20951. test -d "$as_dir" && break
  20952. done
  20953. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20954. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20955. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20956. { (exit 1); exit 1; }; }; }
  20957. # echo "creating $dirpart/$file"
  20958. echo '# dummy' > "$dirpart/$file"
  20959. done
  20960. done
  20961. ;;
  20962. "po-directories":C)
  20963. for ac_file in $CONFIG_FILES; do
  20964. # Support "outfile[:infile[:infile...]]"
  20965. case "$ac_file" in
  20966. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20967. esac
  20968. # PO directories have a Makefile.in generated from Makefile.in.in.
  20969. case "$ac_file" in */Makefile.in)
  20970. # Adjust a relative srcdir.
  20971. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20972. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20973. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20974. # In autoconf-2.13 it is called $ac_given_srcdir.
  20975. # In autoconf-2.50 it is called $srcdir.
  20976. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20977. case "$ac_given_srcdir" in
  20978. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20979. /*) top_srcdir="$ac_given_srcdir" ;;
  20980. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20981. esac
  20982. # Treat a directory as a PO directory if and only if it has a
  20983. # POTFILES.in file. This allows packages to have multiple PO
  20984. # directories under different names or in different locations.
  20985. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20986. rm -f "$ac_dir/POTFILES"
  20987. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20988. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20989. POMAKEFILEDEPS="POTFILES.in"
  20990. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20991. # on $ac_dir but don't depend on user-specified configuration
  20992. # parameters.
  20993. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20994. # The LINGUAS file contains the set of available languages.
  20995. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20996. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20997. fi
  20998. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20999. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21000. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  21001. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  21002. else
  21003. # The set of available languages was given in configure.in.
  21004. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21005. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  21006. fi
  21007. # Compute POFILES
  21008. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21009. # Compute UPDATEPOFILES
  21010. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21011. # Compute DUMMYPOFILES
  21012. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21013. # Compute GMOFILES
  21014. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21015. case "$ac_given_srcdir" in
  21016. .) srcdirpre= ;;
  21017. *) srcdirpre='$(srcdir)/' ;;
  21018. esac
  21019. POFILES=
  21020. UPDATEPOFILES=
  21021. DUMMYPOFILES=
  21022. GMOFILES=
  21023. for lang in $ALL_LINGUAS; do
  21024. POFILES="$POFILES $srcdirpre$lang.po"
  21025. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  21026. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  21027. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  21028. done
  21029. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  21030. # environment variable.
  21031. INST_LINGUAS=
  21032. if test -n "$ALL_LINGUAS"; then
  21033. for presentlang in $ALL_LINGUAS; do
  21034. useit=no
  21035. if test "%UNSET%" != "$LINGUAS"; then
  21036. desiredlanguages="$LINGUAS"
  21037. else
  21038. desiredlanguages="$ALL_LINGUAS"
  21039. fi
  21040. for desiredlang in $desiredlanguages; do
  21041. # Use the presentlang catalog if desiredlang is
  21042. # a. equal to presentlang, or
  21043. # b. a variant of presentlang (because in this case,
  21044. # presentlang can be used as a fallback for messages
  21045. # which are not translated in the desiredlang catalog).
  21046. case "$desiredlang" in
  21047. "$presentlang"*) useit=yes;;
  21048. esac
  21049. done
  21050. if test $useit = yes; then
  21051. INST_LINGUAS="$INST_LINGUAS $presentlang"
  21052. fi
  21053. done
  21054. fi
  21055. CATALOGS=
  21056. if test -n "$INST_LINGUAS"; then
  21057. for lang in $INST_LINGUAS; do
  21058. CATALOGS="$CATALOGS $lang.gmo"
  21059. done
  21060. fi
  21061. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  21062. 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"
  21063. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  21064. if test -f "$f"; then
  21065. case "$f" in
  21066. *.orig | *.bak | *~) ;;
  21067. *) cat "$f" >> "$ac_dir/Makefile" ;;
  21068. esac
  21069. fi
  21070. done
  21071. fi
  21072. ;;
  21073. esac
  21074. done ;;
  21075. esac
  21076. done # for ac_tag
  21077. { (exit 0); exit 0; }
  21078. _ACEOF
  21079. chmod +x $CONFIG_STATUS
  21080. ac_clean_files=$ac_clean_files_save
  21081. # configure is writing to config.log, and then calls config.status.
  21082. # config.status does its own redirection, appending to config.log.
  21083. # Unfortunately, on DOS this fails, as config.log is still kept open
  21084. # by configure, so config.status won't be able to write to it; its
  21085. # output is simply discarded. So we exec the FD to /dev/null,
  21086. # effectively closing config.log, so it can be properly (re)opened and
  21087. # appended to by config.status. When coming back to configure, we
  21088. # need to make the FD available again.
  21089. if test "$no_create" != yes; then
  21090. ac_cs_success=:
  21091. ac_config_status_args=
  21092. test "$silent" = yes &&
  21093. ac_config_status_args="$ac_config_status_args --quiet"
  21094. exec 5>/dev/null
  21095. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21096. exec 5>>config.log
  21097. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21098. # would make configure fail if this is the last instruction.
  21099. $ac_cs_success || { (exit 1); exit 1; }
  21100. fi
  21101. echo " "
  21102. echo "Build: $build"
  21103. echo "Target: $target"
  21104. echo "Install prefix: $prefix"
  21105. echo "CFLAGS: $CFLAGS"
  21106. echo "CPPFLAGS: $CPPFLAGS"
  21107. echo "LDFLAGS: $LDFLAGS"
  21108. echo "LIBS: $LIBS"
  21109. echo "SQLite3: $have_sqlite3"
  21110. echo "GnuTLS: $have_libgnutls"
  21111. echo "OpenSSL: $have_openssl"
  21112. echo "LibXML2: $have_libxml2"
  21113. echo "LibExpat: $have_libexpat"
  21114. echo "LibAres: $have_libares"
  21115. echo "LibCares: $have_libcares"
  21116. echo "Libz: $have_libz"
  21117. echo "Bittorrent: $enable_bittorrent"
  21118. echo "Metalink: $enable_metalink"