configure 650 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.15.0dev.
  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.15.0dev'
  496. PACKAGE_STRING='aria2c 0.15.0dev'
  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. LIBGNUTLS_CONFIG
  646. LIBGNUTLS_CFLAGS
  647. LIBGNUTLS_LIBS
  648. LIBGCRYPT_CONFIG
  649. LIBGCRYPT_CFLAGS
  650. LIBGCRYPT_LIBS
  651. OPENSSL_LIBS
  652. OPENSSL_CFLAGS
  653. LIBCARES_LIBS
  654. LIBCARES_CPPFLAGS
  655. LIBARES_LIBS
  656. LIBARES_CPPFLAGS
  657. LIBZ_LIBS
  658. LIBZ_CPPFLAGS
  659. ENABLE_MESSAGE_DIGEST_TRUE
  660. ENABLE_MESSAGE_DIGEST_FALSE
  661. ENABLE_BITTORRENT_TRUE
  662. ENABLE_BITTORRENT_FALSE
  663. ENABLE_METALINK_TRUE
  664. ENABLE_METALINK_FALSE
  665. ENABLE_LIBXML2_TRUE
  666. ENABLE_LIBXML2_FALSE
  667. ENABLE_LIBEXPAT_TRUE
  668. ENABLE_LIBEXPAT_FALSE
  669. ENABLE_ASYNC_DNS_TRUE
  670. ENABLE_ASYNC_DNS_FALSE
  671. HAVE_LIBZ_TRUE
  672. HAVE_LIBZ_FALSE
  673. ALLOCA
  674. USE_NLS
  675. GETTEXT_MACRO_VERSION
  676. MSGFMT
  677. GMSGFMT
  678. MSGFMT_015
  679. GMSGFMT_015
  680. XGETTEXT
  681. XGETTEXT_015
  682. MSGMERGE
  683. XGETTEXT_EXTRA_OPTIONS
  684. GLIBC2
  685. CFLAG_VISIBILITY
  686. HAVE_VISIBILITY
  687. PRI_MACROS_BROKEN
  688. LIBPTH
  689. LTLIBPTH
  690. LIBPTH_PREFIX
  691. LIBTHREAD
  692. LTLIBTHREAD
  693. LIBMULTITHREAD
  694. LTLIBMULTITHREAD
  695. LIBICONV
  696. LTLIBICONV
  697. INTLBISON
  698. GLIBC21
  699. INTL_MACOSX_LIBS
  700. HAVE_POSIX_PRINTF
  701. HAVE_ASPRINTF
  702. HAVE_SNPRINTF
  703. HAVE_WPRINTF
  704. WOE32DLL
  705. WOE32
  706. WINDRES
  707. LTLIBC
  708. BUILD_INCLUDED_LIBINTL
  709. USE_INCLUDED_LIBINTL
  710. CATOBJEXT
  711. DATADIRNAME
  712. INSTOBJEXT
  713. GENCAT
  714. INTLOBJS
  715. INTL_LIBTOOL_SUFFIX_PREFIX
  716. INTLLIBS
  717. LIBINTL
  718. LTLIBINTL
  719. POSUB
  720. LIBOBJS
  721. HAVE_ASCTIME_R_TRUE
  722. HAVE_ASCTIME_R_FALSE
  723. HAVE_BASENAME_TRUE
  724. HAVE_BASENAME_FALSE
  725. HAVE_GAI_STRERROR_TRUE
  726. HAVE_GAI_STRERROR_FALSE
  727. HAVE_GETADDRINFO_TRUE
  728. HAVE_GETADDRINFO_FALSE
  729. HAVE_GETTIMEOFDAY_TRUE
  730. HAVE_GETTIMEOFDAY_FALSE
  731. HAVE_INET_ATON_TRUE
  732. HAVE_INET_ATON_FALSE
  733. HAVE_LOCALTIME_R_TRUE
  734. HAVE_LOCALTIME_R_FALSE
  735. HAVE_STRPTIME_TRUE
  736. HAVE_STRPTIME_FALSE
  737. HAVE_TIMEGM_TRUE
  738. HAVE_TIMEGM_FALSE
  739. LTLIBOBJS'
  740. ac_subst_files=''
  741. ac_precious_vars='build_alias
  742. host_alias
  743. target_alias
  744. CXX
  745. CXXFLAGS
  746. LDFLAGS
  747. LIBS
  748. CPPFLAGS
  749. CCC
  750. CC
  751. CFLAGS
  752. YACC
  753. YFLAGS
  754. CXXCPP'
  755. # Initialize some variables set by options.
  756. ac_init_help=
  757. ac_init_version=false
  758. # The variables have the same names as the options, with
  759. # dashes changed to underlines.
  760. cache_file=/dev/null
  761. exec_prefix=NONE
  762. no_create=
  763. no_recursion=
  764. prefix=NONE
  765. program_prefix=NONE
  766. program_suffix=NONE
  767. program_transform_name=s,x,x,
  768. silent=
  769. site=
  770. srcdir=
  771. verbose=
  772. x_includes=NONE
  773. x_libraries=NONE
  774. # Installation directory options.
  775. # These are left unexpanded so users can "make install exec_prefix=/foo"
  776. # and all the variables that are supposed to be based on exec_prefix
  777. # by default will actually change.
  778. # Use braces instead of parens because sh, perl, etc. also accept them.
  779. # (The list follows the same order as the GNU Coding Standards.)
  780. bindir='${exec_prefix}/bin'
  781. sbindir='${exec_prefix}/sbin'
  782. libexecdir='${exec_prefix}/libexec'
  783. datarootdir='${prefix}/share'
  784. datadir='${datarootdir}'
  785. sysconfdir='${prefix}/etc'
  786. sharedstatedir='${prefix}/com'
  787. localstatedir='${prefix}/var'
  788. includedir='${prefix}/include'
  789. oldincludedir='/usr/include'
  790. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  791. infodir='${datarootdir}/info'
  792. htmldir='${docdir}'
  793. dvidir='${docdir}'
  794. pdfdir='${docdir}'
  795. psdir='${docdir}'
  796. libdir='${exec_prefix}/lib'
  797. localedir='${datarootdir}/locale'
  798. mandir='${datarootdir}/man'
  799. ac_prev=
  800. ac_dashdash=
  801. for ac_option
  802. do
  803. # If the previous option needs an argument, assign it.
  804. if test -n "$ac_prev"; then
  805. eval $ac_prev=\$ac_option
  806. ac_prev=
  807. continue
  808. fi
  809. case $ac_option in
  810. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  811. *) ac_optarg=yes ;;
  812. esac
  813. # Accept the important Cygnus configure options, so we can diagnose typos.
  814. case $ac_dashdash$ac_option in
  815. --)
  816. ac_dashdash=yes ;;
  817. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  818. ac_prev=bindir ;;
  819. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  820. bindir=$ac_optarg ;;
  821. -build | --build | --buil | --bui | --bu)
  822. ac_prev=build_alias ;;
  823. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  824. build_alias=$ac_optarg ;;
  825. -cache-file | --cache-file | --cache-fil | --cache-fi \
  826. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  827. ac_prev=cache_file ;;
  828. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  829. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  830. cache_file=$ac_optarg ;;
  831. --config-cache | -C)
  832. cache_file=config.cache ;;
  833. -datadir | --datadir | --datadi | --datad)
  834. ac_prev=datadir ;;
  835. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  836. datadir=$ac_optarg ;;
  837. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  838. | --dataroo | --dataro | --datar)
  839. ac_prev=datarootdir ;;
  840. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  841. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  842. datarootdir=$ac_optarg ;;
  843. -disable-* | --disable-*)
  844. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  847. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  848. { (exit 1); exit 1; }; }
  849. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  850. eval enable_$ac_feature=no ;;
  851. -docdir | --docdir | --docdi | --doc | --do)
  852. ac_prev=docdir ;;
  853. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  854. docdir=$ac_optarg ;;
  855. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  856. ac_prev=dvidir ;;
  857. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  858. dvidir=$ac_optarg ;;
  859. -enable-* | --enable-*)
  860. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  863. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  864. { (exit 1); exit 1; }; }
  865. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  866. eval enable_$ac_feature=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  968. -program-transform-name=* | --program-transform-name=* \
  969. | --program-transform-nam=* | --program-transform-na=* \
  970. | --program-transform-n=* | --program-transform-=* \
  971. | --program-transform=* | --program-transfor=* \
  972. | --program-transfo=* | --program-transf=* \
  973. | --program-trans=* | --program-tran=* \
  974. | --progr-tra=* | --program-tr=* | --program-t=*)
  975. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1028. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1029. { (exit 1); exit 1; }; }
  1030. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1031. eval with_$ac_package=\$ac_optarg ;;
  1032. -without-* | --without-*)
  1033. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1034. # Reject names that are not valid shell variable names.
  1035. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1036. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1037. { (exit 1); exit 1; }; }
  1038. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1039. eval with_$ac_package=no ;;
  1040. --x)
  1041. # Obsolete; use --with-x.
  1042. with_x=yes ;;
  1043. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1044. | --x-incl | --x-inc | --x-in | --x-i)
  1045. ac_prev=x_includes ;;
  1046. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1047. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1048. x_includes=$ac_optarg ;;
  1049. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1050. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1051. ac_prev=x_libraries ;;
  1052. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1053. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1054. x_libraries=$ac_optarg ;;
  1055. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1056. Try \`$0 --help' for more information." >&2
  1057. { (exit 1); exit 1; }; }
  1058. ;;
  1059. *=*)
  1060. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1061. # Reject names that are not valid shell variable names.
  1062. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1063. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1064. { (exit 1); exit 1; }; }
  1065. eval $ac_envvar=\$ac_optarg
  1066. export $ac_envvar ;;
  1067. *)
  1068. # FIXME: should be removed in autoconf 3.0.
  1069. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1070. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1071. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1072. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1073. ;;
  1074. esac
  1075. done
  1076. if test -n "$ac_prev"; then
  1077. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1078. { echo "$as_me: error: missing argument to $ac_option" >&2
  1079. { (exit 1); exit 1; }; }
  1080. fi
  1081. # Be sure to have absolute directory names.
  1082. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1083. datadir sysconfdir sharedstatedir localstatedir includedir \
  1084. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1085. libdir localedir mandir
  1086. do
  1087. eval ac_val=\$$ac_var
  1088. case $ac_val in
  1089. [\\/$]* | ?:[\\/]* ) continue;;
  1090. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1091. esac
  1092. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1093. { (exit 1); exit 1; }; }
  1094. done
  1095. # There might be people who depend on the old broken behavior: `$host'
  1096. # used to hold the argument of --host etc.
  1097. # FIXME: To remove some day.
  1098. build=$build_alias
  1099. host=$host_alias
  1100. target=$target_alias
  1101. # FIXME: To remove some day.
  1102. if test "x$host_alias" != x; then
  1103. if test "x$build_alias" = x; then
  1104. cross_compiling=maybe
  1105. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1106. If a cross compiler is detected then cross compile mode will be used." >&2
  1107. elif test "x$build_alias" != "x$host_alias"; then
  1108. cross_compiling=yes
  1109. fi
  1110. fi
  1111. ac_tool_prefix=
  1112. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1113. test "$silent" = yes && exec 6>/dev/null
  1114. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1115. ac_ls_di=`ls -di .` &&
  1116. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1117. { echo "$as_me: error: Working directory cannot be determined" >&2
  1118. { (exit 1); exit 1; }; }
  1119. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1120. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1121. { (exit 1); exit 1; }; }
  1122. # Find the source files, if location was not specified.
  1123. if test -z "$srcdir"; then
  1124. ac_srcdir_defaulted=yes
  1125. # Try the directory containing this script, then the parent directory.
  1126. ac_confdir=`$as_dirname -- "$0" ||
  1127. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1128. X"$0" : 'X\(//\)[^/]' \| \
  1129. X"$0" : 'X\(//\)$' \| \
  1130. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1131. echo X"$0" |
  1132. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1133. s//\1/
  1134. q
  1135. }
  1136. /^X\(\/\/\)[^/].*/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\).*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. s/.*/./; q'`
  1149. srcdir=$ac_confdir
  1150. if test ! -r "$srcdir/$ac_unique_file"; then
  1151. srcdir=..
  1152. fi
  1153. else
  1154. ac_srcdir_defaulted=no
  1155. fi
  1156. if test ! -r "$srcdir/$ac_unique_file"; then
  1157. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1158. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1159. { (exit 1); exit 1; }; }
  1160. fi
  1161. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1162. ac_abs_confdir=`(
  1163. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1164. { (exit 1); exit 1; }; }
  1165. pwd)`
  1166. # When building in place, set srcdir=.
  1167. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1168. srcdir=.
  1169. fi
  1170. # Remove unnecessary trailing slashes from srcdir.
  1171. # Double slashes in file names in object file debugging info
  1172. # mess up M-x gdb in Emacs.
  1173. case $srcdir in
  1174. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1175. esac
  1176. for ac_var in $ac_precious_vars; do
  1177. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1178. eval ac_env_${ac_var}_value=\$${ac_var}
  1179. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1181. done
  1182. #
  1183. # Report the --help message.
  1184. #
  1185. if test "$ac_init_help" = "long"; then
  1186. # Omit some internal or obsolete options to make the list less imposing.
  1187. # This message is too long to be a string in the A/UX 3.1 sh.
  1188. cat <<_ACEOF
  1189. \`configure' configures aria2c 0.15.0dev to adapt to many kinds of systems.
  1190. Usage: $0 [OPTION]... [VAR=VALUE]...
  1191. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1192. VAR=VALUE. See below for descriptions of some of the useful variables.
  1193. Defaults for the options are specified in brackets.
  1194. Configuration:
  1195. -h, --help display this help and exit
  1196. --help=short display options specific to this package
  1197. --help=recursive display the short help of all the included packages
  1198. -V, --version display version information and exit
  1199. -q, --quiet, --silent do not print \`checking...' messages
  1200. --cache-file=FILE cache test results in FILE [disabled]
  1201. -C, --config-cache alias for \`--cache-file=config.cache'
  1202. -n, --no-create do not create output files
  1203. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1204. Installation directories:
  1205. --prefix=PREFIX install architecture-independent files in PREFIX
  1206. [$ac_default_prefix]
  1207. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1208. [PREFIX]
  1209. By default, \`make install' will install all the files in
  1210. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1211. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1212. for instance \`--prefix=\$HOME'.
  1213. For better control, use the options below.
  1214. Fine tuning of the installation directories:
  1215. --bindir=DIR user executables [EPREFIX/bin]
  1216. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1217. --libexecdir=DIR program executables [EPREFIX/libexec]
  1218. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1219. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1220. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1221. --libdir=DIR object code libraries [EPREFIX/lib]
  1222. --includedir=DIR C header files [PREFIX/include]
  1223. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1224. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1225. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1226. --infodir=DIR info documentation [DATAROOTDIR/info]
  1227. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1228. --mandir=DIR man documentation [DATAROOTDIR/man]
  1229. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1230. --htmldir=DIR html documentation [DOCDIR]
  1231. --dvidir=DIR dvi documentation [DOCDIR]
  1232. --pdfdir=DIR pdf documentation [DOCDIR]
  1233. --psdir=DIR ps documentation [DOCDIR]
  1234. _ACEOF
  1235. cat <<\_ACEOF
  1236. Program names:
  1237. --program-prefix=PREFIX prepend PREFIX to installed program names
  1238. --program-suffix=SUFFIX append SUFFIX to installed program names
  1239. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1240. System types:
  1241. --build=BUILD configure for building on BUILD [guessed]
  1242. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1243. --target=TARGET configure for building compilers for TARGET [HOST]
  1244. _ACEOF
  1245. fi
  1246. if test -n "$ac_init_help"; then
  1247. case $ac_init_help in
  1248. short | recursive ) echo "Configuration of aria2c 0.15.0dev:";;
  1249. esac
  1250. cat <<\_ACEOF
  1251. Optional Features:
  1252. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1253. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1254. --enable-bittorrent enable BitTorrent support. Default: yes
  1255. --enable-metalink enable Metalink support. Default: yes
  1256. --enable-epoll enable epoll support. Default: yes
  1257. --disable-dependency-tracking speeds up one-time build
  1258. --enable-dependency-tracking do not reject slow dependency extractors
  1259. --disable-xmltest Do not try to compile and run a test LIBXML program
  1260. --disable-largefile omit support for large files
  1261. --disable-nls do not use Native Language Support
  1262. --enable-threads={posix|solaris|pth|win32}
  1263. specify multithreading API
  1264. --disable-threads build without multithread safety
  1265. --disable-rpath do not hardcode runtime library paths
  1266. Optional Packages:
  1267. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1268. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1269. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1270. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1271. --with-gnutls use gnutls library if installed. Default: yes
  1272. --with-openssl use openssl library if installed. Default: yes
  1273. --with-libxml2 use libxml2 library if installed. Default: yes
  1274. --with-libexpat use libexpat library if installed. Default: yes
  1275. --with-libares use ares library if installed. Default: yes
  1276. --with-libcares use c-ares library if installed. Default: yes
  1277. --with-libz use libz if it is installed.
  1278. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1279. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1280. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1281. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1282. --with-libgcrypt-prefix=PFX
  1283. prefix where LIBGCRYPT is installed (optional)
  1284. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1285. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1286. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1287. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1288. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1289. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1290. --without-libpth-prefix don't search for libpth in includedir and libdir
  1291. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1292. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1293. --with-included-gettext use the GNU gettext library included here
  1294. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1295. --without-libintl-prefix don't search for libintl in includedir and libdir
  1296. Some influential environment variables:
  1297. CXX C++ compiler command
  1298. CXXFLAGS C++ compiler flags
  1299. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1300. nonstandard directory <lib dir>
  1301. LIBS libraries to pass to the linker, e.g. -l<library>
  1302. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1303. you have headers in a nonstandard directory <include dir>
  1304. CC C compiler command
  1305. CFLAGS C compiler flags
  1306. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1307. the first program found out of: `bison -y', `byacc', `yacc'.
  1308. YFLAGS The list of arguments that will be passed by default to $YACC.
  1309. This script will default YFLAGS to the empty string to avoid a
  1310. default value of `-d' given by some make applications.
  1311. CXXCPP C++ preprocessor
  1312. Use these variables to override the choices made by `configure' or to help
  1313. it to find libraries and programs with nonstandard names/locations.
  1314. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1315. _ACEOF
  1316. ac_status=$?
  1317. fi
  1318. if test "$ac_init_help" = "recursive"; then
  1319. # If there are subdirs, report their specific --help.
  1320. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1321. test -d "$ac_dir" || continue
  1322. ac_builddir=.
  1323. case "$ac_dir" in
  1324. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1325. *)
  1326. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1327. # A ".." for each directory in $ac_dir_suffix.
  1328. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1329. case $ac_top_builddir_sub in
  1330. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1332. esac ;;
  1333. esac
  1334. ac_abs_top_builddir=$ac_pwd
  1335. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1336. # for backward compatibility:
  1337. ac_top_builddir=$ac_top_build_prefix
  1338. case $srcdir in
  1339. .) # We are building in place.
  1340. ac_srcdir=.
  1341. ac_top_srcdir=$ac_top_builddir_sub
  1342. ac_abs_top_srcdir=$ac_pwd ;;
  1343. [\\/]* | ?:[\\/]* ) # Absolute name.
  1344. ac_srcdir=$srcdir$ac_dir_suffix;
  1345. ac_top_srcdir=$srcdir
  1346. ac_abs_top_srcdir=$srcdir ;;
  1347. *) # Relative name.
  1348. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1349. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1350. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1351. esac
  1352. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1353. cd "$ac_dir" || { ac_status=$?; continue; }
  1354. # Check for guested configure.
  1355. if test -f "$ac_srcdir/configure.gnu"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1358. elif test -f "$ac_srcdir/configure"; then
  1359. echo &&
  1360. $SHELL "$ac_srcdir/configure" --help=recursive
  1361. else
  1362. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1363. fi || ac_status=$?
  1364. cd "$ac_pwd" || { ac_status=$?; break; }
  1365. done
  1366. fi
  1367. test -n "$ac_init_help" && exit $ac_status
  1368. if $ac_init_version; then
  1369. cat <<\_ACEOF
  1370. aria2c configure 0.15.0dev
  1371. generated by GNU Autoconf 2.61
  1372. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1373. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1374. This configure script is free software; the Free Software Foundation
  1375. gives unlimited permission to copy, distribute and modify it.
  1376. _ACEOF
  1377. exit
  1378. fi
  1379. cat >config.log <<_ACEOF
  1380. This file contains any messages produced by compilers while
  1381. running configure, to aid debugging if configure makes a mistake.
  1382. It was created by aria2c $as_me 0.15.0dev, which was
  1383. generated by GNU Autoconf 2.61. Invocation command line was
  1384. $ $0 $@
  1385. _ACEOF
  1386. exec 5>>config.log
  1387. {
  1388. cat <<_ASUNAME
  1389. ## --------- ##
  1390. ## Platform. ##
  1391. ## --------- ##
  1392. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1393. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1394. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1395. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1396. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1397. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1398. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1399. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1400. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1401. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1402. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1403. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1404. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1405. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1406. _ASUNAME
  1407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1408. for as_dir in $PATH
  1409. do
  1410. IFS=$as_save_IFS
  1411. test -z "$as_dir" && as_dir=.
  1412. echo "PATH: $as_dir"
  1413. done
  1414. IFS=$as_save_IFS
  1415. } >&5
  1416. cat >&5 <<_ACEOF
  1417. ## ----------- ##
  1418. ## Core tests. ##
  1419. ## ----------- ##
  1420. _ACEOF
  1421. # Keep a trace of the command line.
  1422. # Strip out --no-create and --no-recursion so they do not pile up.
  1423. # Strip out --silent because we don't want to record it for future runs.
  1424. # Also quote any args containing shell meta-characters.
  1425. # Make two passes to allow for proper duplicate-argument suppression.
  1426. ac_configure_args=
  1427. ac_configure_args0=
  1428. ac_configure_args1=
  1429. ac_must_keep_next=false
  1430. for ac_pass in 1 2
  1431. do
  1432. for ac_arg
  1433. do
  1434. case $ac_arg in
  1435. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1436. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1437. | -silent | --silent | --silen | --sile | --sil)
  1438. continue ;;
  1439. *\'*)
  1440. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1441. esac
  1442. case $ac_pass in
  1443. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1444. 2)
  1445. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1446. if test $ac_must_keep_next = true; then
  1447. ac_must_keep_next=false # Got value, back to normal.
  1448. else
  1449. case $ac_arg in
  1450. *=* | --config-cache | -C | -disable-* | --disable-* \
  1451. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1452. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1453. | -with-* | --with-* | -without-* | --without-* | --x)
  1454. case "$ac_configure_args0 " in
  1455. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1456. esac
  1457. ;;
  1458. -* ) ac_must_keep_next=true ;;
  1459. esac
  1460. fi
  1461. ac_configure_args="$ac_configure_args '$ac_arg'"
  1462. ;;
  1463. esac
  1464. done
  1465. done
  1466. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1467. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1468. # When interrupted or exit'd, cleanup temporary files, and complete
  1469. # config.log. We remove comments because anyway the quotes in there
  1470. # would cause problems or look ugly.
  1471. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1472. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1473. trap 'exit_status=$?
  1474. # Save into config.log some information that might help in debugging.
  1475. {
  1476. echo
  1477. cat <<\_ASBOX
  1478. ## ---------------- ##
  1479. ## Cache variables. ##
  1480. ## ---------------- ##
  1481. _ASBOX
  1482. echo
  1483. # The following way of writing the cache mishandles newlines in values,
  1484. (
  1485. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1486. eval ac_val=\$$ac_var
  1487. case $ac_val in #(
  1488. *${as_nl}*)
  1489. case $ac_var in #(
  1490. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1491. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1492. esac
  1493. case $ac_var in #(
  1494. _ | IFS | as_nl) ;; #(
  1495. *) $as_unset $ac_var ;;
  1496. esac ;;
  1497. esac
  1498. done
  1499. (set) 2>&1 |
  1500. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1501. *${as_nl}ac_space=\ *)
  1502. sed -n \
  1503. "s/'\''/'\''\\\\'\'''\''/g;
  1504. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1505. ;; #(
  1506. *)
  1507. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1508. ;;
  1509. esac |
  1510. sort
  1511. )
  1512. echo
  1513. cat <<\_ASBOX
  1514. ## ----------------- ##
  1515. ## Output variables. ##
  1516. ## ----------------- ##
  1517. _ASBOX
  1518. echo
  1519. for ac_var in $ac_subst_vars
  1520. do
  1521. eval ac_val=\$$ac_var
  1522. case $ac_val in
  1523. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1524. esac
  1525. echo "$ac_var='\''$ac_val'\''"
  1526. done | sort
  1527. echo
  1528. if test -n "$ac_subst_files"; then
  1529. cat <<\_ASBOX
  1530. ## ------------------- ##
  1531. ## File substitutions. ##
  1532. ## ------------------- ##
  1533. _ASBOX
  1534. echo
  1535. for ac_var in $ac_subst_files
  1536. do
  1537. eval ac_val=\$$ac_var
  1538. case $ac_val in
  1539. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1540. esac
  1541. echo "$ac_var='\''$ac_val'\''"
  1542. done | sort
  1543. echo
  1544. fi
  1545. if test -s confdefs.h; then
  1546. cat <<\_ASBOX
  1547. ## ----------- ##
  1548. ## confdefs.h. ##
  1549. ## ----------- ##
  1550. _ASBOX
  1551. echo
  1552. cat confdefs.h
  1553. echo
  1554. fi
  1555. test "$ac_signal" != 0 &&
  1556. echo "$as_me: caught signal $ac_signal"
  1557. echo "$as_me: exit $exit_status"
  1558. } >&5
  1559. rm -f core *.core core.conftest.* &&
  1560. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1561. exit $exit_status
  1562. ' 0
  1563. for ac_signal in 1 2 13 15; do
  1564. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1565. done
  1566. ac_signal=0
  1567. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1568. rm -f -r conftest* confdefs.h
  1569. # Predefined preprocessor variables.
  1570. cat >>confdefs.h <<_ACEOF
  1571. #define PACKAGE_NAME "$PACKAGE_NAME"
  1572. _ACEOF
  1573. cat >>confdefs.h <<_ACEOF
  1574. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1575. _ACEOF
  1576. cat >>confdefs.h <<_ACEOF
  1577. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1578. _ACEOF
  1579. cat >>confdefs.h <<_ACEOF
  1580. #define PACKAGE_STRING "$PACKAGE_STRING"
  1581. _ACEOF
  1582. cat >>confdefs.h <<_ACEOF
  1583. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1584. _ACEOF
  1585. # Let the site file select an alternate cache file if it wants to.
  1586. # Prefer explicitly selected file to automatically selected ones.
  1587. if test -n "$CONFIG_SITE"; then
  1588. set x "$CONFIG_SITE"
  1589. elif test "x$prefix" != xNONE; then
  1590. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1591. else
  1592. set x "$ac_default_prefix/share/config.site" \
  1593. "$ac_default_prefix/etc/config.site"
  1594. fi
  1595. shift
  1596. for ac_site_file
  1597. do
  1598. if test -r "$ac_site_file"; then
  1599. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1600. echo "$as_me: loading site script $ac_site_file" >&6;}
  1601. sed 's/^/| /' "$ac_site_file" >&5
  1602. . "$ac_site_file"
  1603. fi
  1604. done
  1605. if test -r "$cache_file"; then
  1606. # Some versions of bash will fail to source /dev/null (special
  1607. # files actually), so we avoid doing that.
  1608. if test -f "$cache_file"; then
  1609. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1610. echo "$as_me: loading cache $cache_file" >&6;}
  1611. case $cache_file in
  1612. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1613. *) . "./$cache_file";;
  1614. esac
  1615. fi
  1616. else
  1617. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1618. echo "$as_me: creating cache $cache_file" >&6;}
  1619. >$cache_file
  1620. fi
  1621. gt_needs="$gt_needs "
  1622. ac_header_list="$ac_header_list sys/time.h"
  1623. ac_header_list="$ac_header_list unistd.h"
  1624. ac_func_list="$ac_func_list alarm"
  1625. # Check that the precious variables saved in the cache have kept the same
  1626. # value.
  1627. ac_cache_corrupted=false
  1628. for ac_var in $ac_precious_vars; do
  1629. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1630. eval ac_new_set=\$ac_env_${ac_var}_set
  1631. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1632. eval ac_new_val=\$ac_env_${ac_var}_value
  1633. case $ac_old_set,$ac_new_set in
  1634. set,)
  1635. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1636. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1637. ac_cache_corrupted=: ;;
  1638. ,set)
  1639. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1640. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1641. ac_cache_corrupted=: ;;
  1642. ,);;
  1643. *)
  1644. if test "x$ac_old_val" != "x$ac_new_val"; then
  1645. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1646. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1647. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1648. echo "$as_me: former value: $ac_old_val" >&2;}
  1649. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1650. echo "$as_me: current value: $ac_new_val" >&2;}
  1651. ac_cache_corrupted=:
  1652. fi;;
  1653. esac
  1654. # Pass precious variables to config.status.
  1655. if test "$ac_new_set" = set; then
  1656. case $ac_new_val in
  1657. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1658. *) ac_arg=$ac_var=$ac_new_val ;;
  1659. esac
  1660. case " $ac_configure_args " in
  1661. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1662. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1663. esac
  1664. fi
  1665. done
  1666. if $ac_cache_corrupted; then
  1667. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1668. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1669. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1670. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1671. { (exit 1); exit 1; }; }
  1672. fi
  1673. ac_ext=c
  1674. ac_cpp='$CPP $CPPFLAGS'
  1675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1678. ac_aux_dir=
  1679. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1680. if test -f "$ac_dir/install-sh"; then
  1681. ac_aux_dir=$ac_dir
  1682. ac_install_sh="$ac_aux_dir/install-sh -c"
  1683. break
  1684. elif test -f "$ac_dir/install.sh"; then
  1685. ac_aux_dir=$ac_dir
  1686. ac_install_sh="$ac_aux_dir/install.sh -c"
  1687. break
  1688. elif test -f "$ac_dir/shtool"; then
  1689. ac_aux_dir=$ac_dir
  1690. ac_install_sh="$ac_aux_dir/shtool install -c"
  1691. break
  1692. fi
  1693. done
  1694. if test -z "$ac_aux_dir"; then
  1695. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1696. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1697. { (exit 1); exit 1; }; }
  1698. fi
  1699. # These three variables are undocumented and unsupported,
  1700. # and are intended to be withdrawn in a future Autoconf release.
  1701. # They can cause serious problems if a builder's source tree is in a directory
  1702. # whose full name contains unusual characters.
  1703. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1704. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1705. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1706. # Make sure we can run config.sub.
  1707. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1708. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1709. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1710. { (exit 1); exit 1; }; }
  1711. { echo "$as_me:$LINENO: checking build system type" >&5
  1712. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1713. if test "${ac_cv_build+set}" = set; then
  1714. echo $ECHO_N "(cached) $ECHO_C" >&6
  1715. else
  1716. ac_build_alias=$build_alias
  1717. test "x$ac_build_alias" = x &&
  1718. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1719. test "x$ac_build_alias" = x &&
  1720. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1721. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1722. { (exit 1); exit 1; }; }
  1723. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1724. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1725. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1726. { (exit 1); exit 1; }; }
  1727. fi
  1728. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1729. echo "${ECHO_T}$ac_cv_build" >&6; }
  1730. case $ac_cv_build in
  1731. *-*-*) ;;
  1732. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1733. echo "$as_me: error: invalid value of canonical build" >&2;}
  1734. { (exit 1); exit 1; }; };;
  1735. esac
  1736. build=$ac_cv_build
  1737. ac_save_IFS=$IFS; IFS='-'
  1738. set x $ac_cv_build
  1739. shift
  1740. build_cpu=$1
  1741. build_vendor=$2
  1742. shift; shift
  1743. # Remember, the first character of IFS is used to create $*,
  1744. # except with old shells:
  1745. build_os=$*
  1746. IFS=$ac_save_IFS
  1747. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1748. { echo "$as_me:$LINENO: checking host system type" >&5
  1749. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1750. if test "${ac_cv_host+set}" = set; then
  1751. echo $ECHO_N "(cached) $ECHO_C" >&6
  1752. else
  1753. if test "x$host_alias" = x; then
  1754. ac_cv_host=$ac_cv_build
  1755. else
  1756. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1757. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1758. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1759. { (exit 1); exit 1; }; }
  1760. fi
  1761. fi
  1762. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1763. echo "${ECHO_T}$ac_cv_host" >&6; }
  1764. case $ac_cv_host in
  1765. *-*-*) ;;
  1766. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1767. echo "$as_me: error: invalid value of canonical host" >&2;}
  1768. { (exit 1); exit 1; }; };;
  1769. esac
  1770. host=$ac_cv_host
  1771. ac_save_IFS=$IFS; IFS='-'
  1772. set x $ac_cv_host
  1773. shift
  1774. host_cpu=$1
  1775. host_vendor=$2
  1776. shift; shift
  1777. # Remember, the first character of IFS is used to create $*,
  1778. # except with old shells:
  1779. host_os=$*
  1780. IFS=$ac_save_IFS
  1781. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1782. { echo "$as_me:$LINENO: checking target system type" >&5
  1783. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1784. if test "${ac_cv_target+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. if test "x$target_alias" = x; then
  1788. ac_cv_target=$ac_cv_host
  1789. else
  1790. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1791. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1792. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1793. { (exit 1); exit 1; }; }
  1794. fi
  1795. fi
  1796. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1797. echo "${ECHO_T}$ac_cv_target" >&6; }
  1798. case $ac_cv_target in
  1799. *-*-*) ;;
  1800. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1801. echo "$as_me: error: invalid value of canonical target" >&2;}
  1802. { (exit 1); exit 1; }; };;
  1803. esac
  1804. target=$ac_cv_target
  1805. ac_save_IFS=$IFS; IFS='-'
  1806. set x $ac_cv_target
  1807. shift
  1808. target_cpu=$1
  1809. target_vendor=$2
  1810. shift; shift
  1811. # Remember, the first character of IFS is used to create $*,
  1812. # except with old shells:
  1813. target_os=$*
  1814. IFS=$ac_save_IFS
  1815. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1816. # The aliases save the names the user supplied, while $host etc.
  1817. # will get canonicalized.
  1818. test -n "$target_alias" &&
  1819. test "$program_prefix$program_suffix$program_transform_name" = \
  1820. NONENONEs,x,x, &&
  1821. program_prefix=${target_alias}-
  1822. am__api_version='1.10'
  1823. # Find a good install program. We prefer a C program (faster),
  1824. # so one script is as good as another. But avoid the broken or
  1825. # incompatible versions:
  1826. # SysV /etc/install, /usr/sbin/install
  1827. # SunOS /usr/etc/install
  1828. # IRIX /sbin/install
  1829. # AIX /bin/install
  1830. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1831. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1832. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1833. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1834. # OS/2's system install, which has a completely different semantic
  1835. # ./install, which can be erroneously created by make from ./install.sh.
  1836. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1837. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1838. if test -z "$INSTALL"; then
  1839. if test "${ac_cv_path_install+set}" = set; then
  1840. echo $ECHO_N "(cached) $ECHO_C" >&6
  1841. else
  1842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1843. for as_dir in $PATH
  1844. do
  1845. IFS=$as_save_IFS
  1846. test -z "$as_dir" && as_dir=.
  1847. # Account for people who put trailing slashes in PATH elements.
  1848. case $as_dir/ in
  1849. ./ | .// | /cC/* | \
  1850. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1851. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1852. /usr/ucb/* ) ;;
  1853. *)
  1854. # OSF1 and SCO ODT 3.0 have their own names for install.
  1855. # Don't use installbsd from OSF since it installs stuff as root
  1856. # by default.
  1857. for ac_prog in ginstall scoinst install; do
  1858. for ac_exec_ext in '' $ac_executable_extensions; do
  1859. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1860. if test $ac_prog = install &&
  1861. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1862. # AIX install. It has an incompatible calling convention.
  1863. :
  1864. elif test $ac_prog = install &&
  1865. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1866. # program-specific install script used by HP pwplus--don't use.
  1867. :
  1868. else
  1869. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1870. break 3
  1871. fi
  1872. fi
  1873. done
  1874. done
  1875. ;;
  1876. esac
  1877. done
  1878. IFS=$as_save_IFS
  1879. fi
  1880. if test "${ac_cv_path_install+set}" = set; then
  1881. INSTALL=$ac_cv_path_install
  1882. else
  1883. # As a last resort, use the slow shell script. Don't cache a
  1884. # value for INSTALL within a source directory, because that will
  1885. # break other packages using the cache if that directory is
  1886. # removed, or if the value is a relative name.
  1887. INSTALL=$ac_install_sh
  1888. fi
  1889. fi
  1890. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1891. echo "${ECHO_T}$INSTALL" >&6; }
  1892. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1893. # It thinks the first close brace ends the variable substitution.
  1894. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1895. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1896. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1897. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1898. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1899. # Just in case
  1900. sleep 1
  1901. echo timestamp > conftest.file
  1902. # Do `set' in a subshell so we don't clobber the current shell's
  1903. # arguments. Must try -L first in case configure is actually a
  1904. # symlink; some systems play weird games with the mod time of symlinks
  1905. # (eg FreeBSD returns the mod time of the symlink's containing
  1906. # directory).
  1907. if (
  1908. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1909. if test "$*" = "X"; then
  1910. # -L didn't work.
  1911. set X `ls -t $srcdir/configure conftest.file`
  1912. fi
  1913. rm -f conftest.file
  1914. if test "$*" != "X $srcdir/configure conftest.file" \
  1915. && test "$*" != "X conftest.file $srcdir/configure"; then
  1916. # If neither matched, then we have a broken ls. This can happen
  1917. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1918. # broken ls alias from the environment. This has actually
  1919. # happened. Such a system could not be considered "sane".
  1920. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1921. alias in your environment" >&5
  1922. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1923. alias in your environment" >&2;}
  1924. { (exit 1); exit 1; }; }
  1925. fi
  1926. test "$2" = conftest.file
  1927. )
  1928. then
  1929. # Ok.
  1930. :
  1931. else
  1932. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1933. Check your system clock" >&5
  1934. echo "$as_me: error: newly created file is older than distributed files!
  1935. Check your system clock" >&2;}
  1936. { (exit 1); exit 1; }; }
  1937. fi
  1938. { echo "$as_me:$LINENO: result: yes" >&5
  1939. echo "${ECHO_T}yes" >&6; }
  1940. test "$program_prefix" != NONE &&
  1941. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1942. # Use a double $ so make ignores it.
  1943. test "$program_suffix" != NONE &&
  1944. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1945. # Double any \ or $. echo might interpret backslashes.
  1946. # By default was `s,x,x', remove it if useless.
  1947. cat <<\_ACEOF >conftest.sed
  1948. s/[\\$]/&&/g;s/;s,x,x,$//
  1949. _ACEOF
  1950. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1951. rm -f conftest.sed
  1952. # expand $ac_aux_dir to an absolute path
  1953. am_aux_dir=`cd $ac_aux_dir && pwd`
  1954. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1955. # Use eval to expand $SHELL
  1956. if eval "$MISSING --run true"; then
  1957. am_missing_run="$MISSING --run "
  1958. else
  1959. am_missing_run=
  1960. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1961. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1962. fi
  1963. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1964. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1965. if test -z "$MKDIR_P"; then
  1966. if test "${ac_cv_path_mkdir+set}" = set; then
  1967. echo $ECHO_N "(cached) $ECHO_C" >&6
  1968. else
  1969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1970. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1971. do
  1972. IFS=$as_save_IFS
  1973. test -z "$as_dir" && as_dir=.
  1974. for ac_prog in mkdir gmkdir; do
  1975. for ac_exec_ext in '' $ac_executable_extensions; do
  1976. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1977. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1978. 'mkdir (GNU coreutils) '* | \
  1979. 'mkdir (coreutils) '* | \
  1980. 'mkdir (fileutils) '4.1*)
  1981. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1982. break 3;;
  1983. esac
  1984. done
  1985. done
  1986. done
  1987. IFS=$as_save_IFS
  1988. fi
  1989. if test "${ac_cv_path_mkdir+set}" = set; then
  1990. MKDIR_P="$ac_cv_path_mkdir -p"
  1991. else
  1992. # As a last resort, use the slow shell script. Don't cache a
  1993. # value for MKDIR_P within a source directory, because that will
  1994. # break other packages using the cache if that directory is
  1995. # removed, or if the value is a relative name.
  1996. test -d ./--version && rmdir ./--version
  1997. MKDIR_P="$ac_install_sh -d"
  1998. fi
  1999. fi
  2000. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2001. echo "${ECHO_T}$MKDIR_P" >&6; }
  2002. mkdir_p="$MKDIR_P"
  2003. case $mkdir_p in
  2004. [\\/$]* | ?:[\\/]*) ;;
  2005. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2006. esac
  2007. for ac_prog in gawk mawk nawk awk
  2008. do
  2009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2010. set dummy $ac_prog; ac_word=$2
  2011. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2013. if test "${ac_cv_prog_AWK+set}" = set; then
  2014. echo $ECHO_N "(cached) $ECHO_C" >&6
  2015. else
  2016. if test -n "$AWK"; then
  2017. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2018. else
  2019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2020. for as_dir in $PATH
  2021. do
  2022. IFS=$as_save_IFS
  2023. test -z "$as_dir" && as_dir=.
  2024. for ac_exec_ext in '' $ac_executable_extensions; do
  2025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2026. ac_cv_prog_AWK="$ac_prog"
  2027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2028. break 2
  2029. fi
  2030. done
  2031. done
  2032. IFS=$as_save_IFS
  2033. fi
  2034. fi
  2035. AWK=$ac_cv_prog_AWK
  2036. if test -n "$AWK"; then
  2037. { echo "$as_me:$LINENO: result: $AWK" >&5
  2038. echo "${ECHO_T}$AWK" >&6; }
  2039. else
  2040. { echo "$as_me:$LINENO: result: no" >&5
  2041. echo "${ECHO_T}no" >&6; }
  2042. fi
  2043. test -n "$AWK" && break
  2044. done
  2045. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2046. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2047. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2048. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. cat >conftest.make <<\_ACEOF
  2052. SHELL = /bin/sh
  2053. all:
  2054. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2055. _ACEOF
  2056. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2057. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2058. *@@@%%%=?*=@@@%%%*)
  2059. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2060. *)
  2061. eval ac_cv_prog_make_${ac_make}_set=no;;
  2062. esac
  2063. rm -f conftest.make
  2064. fi
  2065. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2066. { echo "$as_me:$LINENO: result: yes" >&5
  2067. echo "${ECHO_T}yes" >&6; }
  2068. SET_MAKE=
  2069. else
  2070. { echo "$as_me:$LINENO: result: no" >&5
  2071. echo "${ECHO_T}no" >&6; }
  2072. SET_MAKE="MAKE=${MAKE-make}"
  2073. fi
  2074. rm -rf .tst 2>/dev/null
  2075. mkdir .tst 2>/dev/null
  2076. if test -d .tst; then
  2077. am__leading_dot=.
  2078. else
  2079. am__leading_dot=_
  2080. fi
  2081. rmdir .tst 2>/dev/null
  2082. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2083. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2084. # is not polluted with repeated "-I."
  2085. am__isrc=' -I$(srcdir)'
  2086. # test to see if srcdir already configured
  2087. if test -f $srcdir/config.status; then
  2088. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2089. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2090. { (exit 1); exit 1; }; }
  2091. fi
  2092. fi
  2093. # test whether we have cygpath
  2094. if test -z "$CYGPATH_W"; then
  2095. if (cygpath --version) >/dev/null 2>/dev/null; then
  2096. CYGPATH_W='cygpath -w'
  2097. else
  2098. CYGPATH_W=echo
  2099. fi
  2100. fi
  2101. # Define the identity of the package.
  2102. PACKAGE='aria2c'
  2103. VERSION='0.15.0dev'
  2104. cat >>confdefs.h <<_ACEOF
  2105. #define PACKAGE "$PACKAGE"
  2106. _ACEOF
  2107. cat >>confdefs.h <<_ACEOF
  2108. #define VERSION "$VERSION"
  2109. _ACEOF
  2110. # Some tools Automake needs.
  2111. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2112. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2113. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2114. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2115. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2116. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2117. # Installed binaries are usually stripped using `strip' when the user
  2118. # run `make install-strip'. However `strip' might not be the right
  2119. # tool to use in cross-compilation environments, therefore Automake
  2120. # will honor the `STRIP' environment variable to overrule this program.
  2121. if test "$cross_compiling" != no; then
  2122. if test -n "$ac_tool_prefix"; then
  2123. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2124. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2125. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2126. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2127. if test "${ac_cv_prog_STRIP+set}" = set; then
  2128. echo $ECHO_N "(cached) $ECHO_C" >&6
  2129. else
  2130. if test -n "$STRIP"; then
  2131. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2132. else
  2133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2134. for as_dir in $PATH
  2135. do
  2136. IFS=$as_save_IFS
  2137. test -z "$as_dir" && as_dir=.
  2138. for ac_exec_ext in '' $ac_executable_extensions; do
  2139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2140. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2141. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2142. break 2
  2143. fi
  2144. done
  2145. done
  2146. IFS=$as_save_IFS
  2147. fi
  2148. fi
  2149. STRIP=$ac_cv_prog_STRIP
  2150. if test -n "$STRIP"; then
  2151. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2152. echo "${ECHO_T}$STRIP" >&6; }
  2153. else
  2154. { echo "$as_me:$LINENO: result: no" >&5
  2155. echo "${ECHO_T}no" >&6; }
  2156. fi
  2157. fi
  2158. if test -z "$ac_cv_prog_STRIP"; then
  2159. ac_ct_STRIP=$STRIP
  2160. # Extract the first word of "strip", so it can be a program name with args.
  2161. set dummy strip; ac_word=$2
  2162. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2164. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2165. echo $ECHO_N "(cached) $ECHO_C" >&6
  2166. else
  2167. if test -n "$ac_ct_STRIP"; then
  2168. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2169. else
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173. IFS=$as_save_IFS
  2174. test -z "$as_dir" && as_dir=.
  2175. for ac_exec_ext in '' $ac_executable_extensions; do
  2176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2177. ac_cv_prog_ac_ct_STRIP="strip"
  2178. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2179. break 2
  2180. fi
  2181. done
  2182. done
  2183. IFS=$as_save_IFS
  2184. fi
  2185. fi
  2186. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2187. if test -n "$ac_ct_STRIP"; then
  2188. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2189. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2190. else
  2191. { echo "$as_me:$LINENO: result: no" >&5
  2192. echo "${ECHO_T}no" >&6; }
  2193. fi
  2194. if test "x$ac_ct_STRIP" = x; then
  2195. STRIP=":"
  2196. else
  2197. case $cross_compiling:$ac_tool_warned in
  2198. yes:)
  2199. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2200. whose name does not start with the host triplet. If you think this
  2201. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2202. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2203. whose name does not start with the host triplet. If you think this
  2204. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2205. ac_tool_warned=yes ;;
  2206. esac
  2207. STRIP=$ac_ct_STRIP
  2208. fi
  2209. else
  2210. STRIP="$ac_cv_prog_STRIP"
  2211. fi
  2212. fi
  2213. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2214. # We need awk for the "check" target. The system "awk" is bad on
  2215. # some platforms.
  2216. # Always define AMTAR for backward compatibility.
  2217. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2218. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2219. # Check whether --with-cppunit-prefix was given.
  2220. if test "${with_cppunit_prefix+set}" = set; then
  2221. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2222. else
  2223. cppunit_config_prefix=""
  2224. fi
  2225. # Check whether --with-cppunit-exec-prefix was given.
  2226. if test "${with_cppunit_exec_prefix+set}" = set; then
  2227. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2228. else
  2229. cppunit_config_exec_prefix=""
  2230. fi
  2231. if test x$cppunit_config_exec_prefix != x ; then
  2232. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2233. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2234. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2235. fi
  2236. fi
  2237. if test x$cppunit_config_prefix != x ; then
  2238. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2239. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2240. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2241. fi
  2242. fi
  2243. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2244. set dummy cppunit-config; ac_word=$2
  2245. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2246. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2247. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2248. echo $ECHO_N "(cached) $ECHO_C" >&6
  2249. else
  2250. case $CPPUNIT_CONFIG in
  2251. [\\/]* | ?:[\\/]*)
  2252. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2253. ;;
  2254. *)
  2255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2256. for as_dir in $PATH
  2257. do
  2258. IFS=$as_save_IFS
  2259. test -z "$as_dir" && as_dir=.
  2260. for ac_exec_ext in '' $ac_executable_extensions; do
  2261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2262. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2264. break 2
  2265. fi
  2266. done
  2267. done
  2268. IFS=$as_save_IFS
  2269. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2270. ;;
  2271. esac
  2272. fi
  2273. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2274. if test -n "$CPPUNIT_CONFIG"; then
  2275. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2276. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2277. else
  2278. { echo "$as_me:$LINENO: result: no" >&5
  2279. echo "${ECHO_T}no" >&6; }
  2280. fi
  2281. cppunit_version_min=1.10.2
  2282. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2283. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2284. no_cppunit=""
  2285. if test "$CPPUNIT_CONFIG" = "no" ; then
  2286. { echo "$as_me:$LINENO: result: no" >&5
  2287. echo "${ECHO_T}no" >&6; }
  2288. no_cppunit=yes
  2289. else
  2290. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2291. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2292. cppunit_version=`$CPPUNIT_CONFIG --version`
  2293. cppunit_major_version=`echo $cppunit_version | \
  2294. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2295. cppunit_minor_version=`echo $cppunit_version | \
  2296. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2297. cppunit_micro_version=`echo $cppunit_version | \
  2298. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2299. cppunit_major_min=`echo $cppunit_version_min | \
  2300. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2301. if test "x${cppunit_major_min}" = "x" ; then
  2302. cppunit_major_min=0
  2303. fi
  2304. cppunit_minor_min=`echo $cppunit_version_min | \
  2305. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2306. if test "x${cppunit_minor_min}" = "x" ; then
  2307. cppunit_minor_min=0
  2308. fi
  2309. cppunit_micro_min=`echo $cppunit_version_min | \
  2310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2311. if test "x${cppunit_micro_min}" = "x" ; then
  2312. cppunit_micro_min=0
  2313. fi
  2314. cppunit_version_proper=`expr \
  2315. $cppunit_major_version \> $cppunit_major_min \| \
  2316. $cppunit_major_version \= $cppunit_major_min \& \
  2317. $cppunit_minor_version \> $cppunit_minor_min \| \
  2318. $cppunit_major_version \= $cppunit_major_min \& \
  2319. $cppunit_minor_version \= $cppunit_minor_min \& \
  2320. $cppunit_micro_version \>= $cppunit_micro_min `
  2321. if test "$cppunit_version_proper" = "1" ; then
  2322. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2323. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2324. else
  2325. { echo "$as_me:$LINENO: result: no" >&5
  2326. echo "${ECHO_T}no" >&6; }
  2327. no_cppunit=yes
  2328. fi
  2329. fi
  2330. if test "x$no_cppunit" = x ; then
  2331. :
  2332. else
  2333. CPPUNIT_CFLAGS=""
  2334. CPPUNIT_LIBS=""
  2335. :
  2336. fi
  2337. ac_config_headers="$ac_config_headers config.h"
  2338. case "$target" in
  2339. *mingw*|*cygwin*)
  2340. WINSOCK_LIBS="-lws2_32 -lpthread"
  2341. ;;
  2342. esac
  2343. cat >>confdefs.h <<_ACEOF
  2344. #define TARGET "$target"
  2345. _ACEOF
  2346. # Set localedir
  2347. localedir=${datadir}/locale
  2348. # Checks for arguments.
  2349. # Check whether --with-gnutls was given.
  2350. if test "${with_gnutls+set}" = set; then
  2351. withval=$with_gnutls; with_gnutls=$withval
  2352. else
  2353. with_gnutls=yes
  2354. fi
  2355. # Check whether --with-openssl was given.
  2356. if test "${with_openssl+set}" = set; then
  2357. withval=$with_openssl; with_openssl=$withval
  2358. else
  2359. with_openssl=yes
  2360. fi
  2361. # Check whether --with-libxml2 was given.
  2362. if test "${with_libxml2+set}" = set; then
  2363. withval=$with_libxml2; with_libxml2=$withval
  2364. else
  2365. with_libxml2=yes
  2366. fi
  2367. # Check whether --with-libexpat was given.
  2368. if test "${with_libexpat+set}" = set; then
  2369. withval=$with_libexpat; with_libexpat=$withval
  2370. else
  2371. with_libexpat=yes
  2372. fi
  2373. # Check whether --with-libares was given.
  2374. if test "${with_libares+set}" = set; then
  2375. withval=$with_libares; with_libares=$withval
  2376. else
  2377. with_libares=yes
  2378. fi
  2379. # Check whether --with-libcares was given.
  2380. if test "${with_libcares+set}" = set; then
  2381. withval=$with_libcares; with_libcares=$withval
  2382. else
  2383. with_libcares=yes
  2384. fi
  2385. # Check whether --with-libz was given.
  2386. if test "${with_libz+set}" = set; then
  2387. withval=$with_libz; with_libz=$withval
  2388. else
  2389. with_libz=yes
  2390. fi
  2391. # Check whether --enable-bittorrent was given.
  2392. if test "${enable_bittorrent+set}" = set; then
  2393. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2394. else
  2395. enable_bittorrent=yes
  2396. fi
  2397. # Check whether --enable-metalink was given.
  2398. if test "${enable_metalink+set}" = set; then
  2399. enableval=$enable_metalink; enable_metalink=$enableval
  2400. else
  2401. enable_metalink=yes
  2402. fi
  2403. # Check whether --enable-epoll was given.
  2404. if test "${enable_epoll+set}" = set; then
  2405. enableval=$enable_epoll; enable_epoll=$enableval
  2406. else
  2407. enable_epoll=yes
  2408. fi
  2409. # Checks for programs.
  2410. ac_ext=cpp
  2411. ac_cpp='$CXXCPP $CPPFLAGS'
  2412. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2413. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2414. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2415. if test -z "$CXX"; then
  2416. if test -n "$CCC"; then
  2417. CXX=$CCC
  2418. else
  2419. if test -n "$ac_tool_prefix"; then
  2420. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2421. do
  2422. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2423. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2424. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2425. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2426. if test "${ac_cv_prog_CXX+set}" = set; then
  2427. echo $ECHO_N "(cached) $ECHO_C" >&6
  2428. else
  2429. if test -n "$CXX"; then
  2430. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2431. else
  2432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2433. for as_dir in $PATH
  2434. do
  2435. IFS=$as_save_IFS
  2436. test -z "$as_dir" && as_dir=.
  2437. for ac_exec_ext in '' $ac_executable_extensions; do
  2438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2439. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2440. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2441. break 2
  2442. fi
  2443. done
  2444. done
  2445. IFS=$as_save_IFS
  2446. fi
  2447. fi
  2448. CXX=$ac_cv_prog_CXX
  2449. if test -n "$CXX"; then
  2450. { echo "$as_me:$LINENO: result: $CXX" >&5
  2451. echo "${ECHO_T}$CXX" >&6; }
  2452. else
  2453. { echo "$as_me:$LINENO: result: no" >&5
  2454. echo "${ECHO_T}no" >&6; }
  2455. fi
  2456. test -n "$CXX" && break
  2457. done
  2458. fi
  2459. if test -z "$CXX"; then
  2460. ac_ct_CXX=$CXX
  2461. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2462. do
  2463. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2464. set dummy $ac_prog; ac_word=$2
  2465. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2466. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2467. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2468. echo $ECHO_N "(cached) $ECHO_C" >&6
  2469. else
  2470. if test -n "$ac_ct_CXX"; then
  2471. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2472. else
  2473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2474. for as_dir in $PATH
  2475. do
  2476. IFS=$as_save_IFS
  2477. test -z "$as_dir" && as_dir=.
  2478. for ac_exec_ext in '' $ac_executable_extensions; do
  2479. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2480. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2481. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2482. break 2
  2483. fi
  2484. done
  2485. done
  2486. IFS=$as_save_IFS
  2487. fi
  2488. fi
  2489. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2490. if test -n "$ac_ct_CXX"; then
  2491. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2492. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2493. else
  2494. { echo "$as_me:$LINENO: result: no" >&5
  2495. echo "${ECHO_T}no" >&6; }
  2496. fi
  2497. test -n "$ac_ct_CXX" && break
  2498. done
  2499. if test "x$ac_ct_CXX" = x; then
  2500. CXX="g++"
  2501. else
  2502. case $cross_compiling:$ac_tool_warned in
  2503. yes:)
  2504. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2505. whose name does not start with the host triplet. If you think this
  2506. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2507. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2508. whose name does not start with the host triplet. If you think this
  2509. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2510. ac_tool_warned=yes ;;
  2511. esac
  2512. CXX=$ac_ct_CXX
  2513. fi
  2514. fi
  2515. fi
  2516. fi
  2517. # Provide some information about the compiler.
  2518. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2519. ac_compiler=`set X $ac_compile; echo $2`
  2520. { (ac_try="$ac_compiler --version >&5"
  2521. case "(($ac_try" in
  2522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2523. *) ac_try_echo=$ac_try;;
  2524. esac
  2525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2526. (eval "$ac_compiler --version >&5") 2>&5
  2527. ac_status=$?
  2528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2529. (exit $ac_status); }
  2530. { (ac_try="$ac_compiler -v >&5"
  2531. case "(($ac_try" in
  2532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2533. *) ac_try_echo=$ac_try;;
  2534. esac
  2535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2536. (eval "$ac_compiler -v >&5") 2>&5
  2537. ac_status=$?
  2538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2539. (exit $ac_status); }
  2540. { (ac_try="$ac_compiler -V >&5"
  2541. case "(($ac_try" in
  2542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2543. *) ac_try_echo=$ac_try;;
  2544. esac
  2545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2546. (eval "$ac_compiler -V >&5") 2>&5
  2547. ac_status=$?
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); }
  2550. cat >conftest.$ac_ext <<_ACEOF
  2551. /* confdefs.h. */
  2552. _ACEOF
  2553. cat confdefs.h >>conftest.$ac_ext
  2554. cat >>conftest.$ac_ext <<_ACEOF
  2555. /* end confdefs.h. */
  2556. int
  2557. main ()
  2558. {
  2559. ;
  2560. return 0;
  2561. }
  2562. _ACEOF
  2563. ac_clean_files_save=$ac_clean_files
  2564. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2565. # Try to create an executable without -o first, disregard a.out.
  2566. # It will help us diagnose broken compilers, and finding out an intuition
  2567. # of exeext.
  2568. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2569. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2570. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2571. #
  2572. # List of possible output files, starting from the most likely.
  2573. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2574. # only as a last resort. b.out is created by i960 compilers.
  2575. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2576. #
  2577. # The IRIX 6 linker writes into existing files which may not be
  2578. # executable, retaining their permissions. Remove them first so a
  2579. # subsequent execution test works.
  2580. ac_rmfiles=
  2581. for ac_file in $ac_files
  2582. do
  2583. case $ac_file in
  2584. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2585. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2586. esac
  2587. done
  2588. rm -f $ac_rmfiles
  2589. if { (ac_try="$ac_link_default"
  2590. case "(($ac_try" in
  2591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2592. *) ac_try_echo=$ac_try;;
  2593. esac
  2594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2595. (eval "$ac_link_default") 2>&5
  2596. ac_status=$?
  2597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); }; then
  2599. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2600. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2601. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2602. # so that the user can short-circuit this test for compilers unknown to
  2603. # Autoconf.
  2604. for ac_file in $ac_files ''
  2605. do
  2606. test -f "$ac_file" || continue
  2607. case $ac_file in
  2608. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2609. ;;
  2610. [ab].out )
  2611. # We found the default executable, but exeext='' is most
  2612. # certainly right.
  2613. break;;
  2614. *.* )
  2615. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2616. then :; else
  2617. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2618. fi
  2619. # We set ac_cv_exeext here because the later test for it is not
  2620. # safe: cross compilers may not add the suffix if given an `-o'
  2621. # argument, so we may need to know it at that point already.
  2622. # Even if this section looks crufty: it has the advantage of
  2623. # actually working.
  2624. break;;
  2625. * )
  2626. break;;
  2627. esac
  2628. done
  2629. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2630. else
  2631. ac_file=''
  2632. fi
  2633. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2634. echo "${ECHO_T}$ac_file" >&6; }
  2635. if test -z "$ac_file"; then
  2636. echo "$as_me: failed program was:" >&5
  2637. sed 's/^/| /' conftest.$ac_ext >&5
  2638. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2639. See \`config.log' for more details." >&5
  2640. echo "$as_me: error: C++ compiler cannot create executables
  2641. See \`config.log' for more details." >&2;}
  2642. { (exit 77); exit 77; }; }
  2643. fi
  2644. ac_exeext=$ac_cv_exeext
  2645. # Check that the compiler produces executables we can run. If not, either
  2646. # the compiler is broken, or we cross compile.
  2647. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2648. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2649. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2650. # If not cross compiling, check that we can run a simple program.
  2651. if test "$cross_compiling" != yes; then
  2652. if { ac_try='./$ac_file'
  2653. { (case "(($ac_try" in
  2654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2655. *) ac_try_echo=$ac_try;;
  2656. esac
  2657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2658. (eval "$ac_try") 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }; }; then
  2662. cross_compiling=no
  2663. else
  2664. if test "$cross_compiling" = maybe; then
  2665. cross_compiling=yes
  2666. else
  2667. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2668. If you meant to cross compile, use \`--host'.
  2669. See \`config.log' for more details." >&5
  2670. echo "$as_me: error: cannot run C++ compiled programs.
  2671. If you meant to cross compile, use \`--host'.
  2672. See \`config.log' for more details." >&2;}
  2673. { (exit 1); exit 1; }; }
  2674. fi
  2675. fi
  2676. fi
  2677. { echo "$as_me:$LINENO: result: yes" >&5
  2678. echo "${ECHO_T}yes" >&6; }
  2679. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2680. ac_clean_files=$ac_clean_files_save
  2681. # Check that the compiler produces executables we can run. If not, either
  2682. # the compiler is broken, or we cross compile.
  2683. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2684. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2685. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2686. echo "${ECHO_T}$cross_compiling" >&6; }
  2687. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2688. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2689. if { (ac_try="$ac_link"
  2690. case "(($ac_try" in
  2691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2692. *) ac_try_echo=$ac_try;;
  2693. esac
  2694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2695. (eval "$ac_link") 2>&5
  2696. ac_status=$?
  2697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2698. (exit $ac_status); }; then
  2699. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2700. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2701. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2702. # `rm'.
  2703. for ac_file in conftest.exe conftest conftest.*; do
  2704. test -f "$ac_file" || continue
  2705. case $ac_file in
  2706. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2707. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2708. break;;
  2709. * ) break;;
  2710. esac
  2711. done
  2712. else
  2713. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2714. See \`config.log' for more details." >&5
  2715. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2716. See \`config.log' for more details." >&2;}
  2717. { (exit 1); exit 1; }; }
  2718. fi
  2719. rm -f conftest$ac_cv_exeext
  2720. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2721. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2722. rm -f conftest.$ac_ext
  2723. EXEEXT=$ac_cv_exeext
  2724. ac_exeext=$EXEEXT
  2725. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2726. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2727. if test "${ac_cv_objext+set}" = set; then
  2728. echo $ECHO_N "(cached) $ECHO_C" >&6
  2729. else
  2730. cat >conftest.$ac_ext <<_ACEOF
  2731. /* confdefs.h. */
  2732. _ACEOF
  2733. cat confdefs.h >>conftest.$ac_ext
  2734. cat >>conftest.$ac_ext <<_ACEOF
  2735. /* end confdefs.h. */
  2736. int
  2737. main ()
  2738. {
  2739. ;
  2740. return 0;
  2741. }
  2742. _ACEOF
  2743. rm -f conftest.o conftest.obj
  2744. if { (ac_try="$ac_compile"
  2745. case "(($ac_try" in
  2746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2747. *) ac_try_echo=$ac_try;;
  2748. esac
  2749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2750. (eval "$ac_compile") 2>&5
  2751. ac_status=$?
  2752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2753. (exit $ac_status); }; then
  2754. for ac_file in conftest.o conftest.obj conftest.*; do
  2755. test -f "$ac_file" || continue;
  2756. case $ac_file in
  2757. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2758. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2759. break;;
  2760. esac
  2761. done
  2762. else
  2763. echo "$as_me: failed program was:" >&5
  2764. sed 's/^/| /' conftest.$ac_ext >&5
  2765. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2766. See \`config.log' for more details." >&5
  2767. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2768. See \`config.log' for more details." >&2;}
  2769. { (exit 1); exit 1; }; }
  2770. fi
  2771. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2772. fi
  2773. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2774. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2775. OBJEXT=$ac_cv_objext
  2776. ac_objext=$OBJEXT
  2777. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2778. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2779. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2780. echo $ECHO_N "(cached) $ECHO_C" >&6
  2781. else
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. #ifndef __GNUC__
  2792. choke me
  2793. #endif
  2794. ;
  2795. return 0;
  2796. }
  2797. _ACEOF
  2798. rm -f conftest.$ac_objext
  2799. if { (ac_try="$ac_compile"
  2800. case "(($ac_try" in
  2801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2802. *) ac_try_echo=$ac_try;;
  2803. esac
  2804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2805. (eval "$ac_compile") 2>conftest.er1
  2806. ac_status=$?
  2807. grep -v '^ *+' conftest.er1 >conftest.err
  2808. rm -f conftest.er1
  2809. cat conftest.err >&5
  2810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2811. (exit $ac_status); } && {
  2812. test -z "$ac_cxx_werror_flag" ||
  2813. test ! -s conftest.err
  2814. } && test -s conftest.$ac_objext; then
  2815. ac_compiler_gnu=yes
  2816. else
  2817. echo "$as_me: failed program was:" >&5
  2818. sed 's/^/| /' conftest.$ac_ext >&5
  2819. ac_compiler_gnu=no
  2820. fi
  2821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2822. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2823. fi
  2824. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2825. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2826. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2827. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2828. ac_save_CXXFLAGS=$CXXFLAGS
  2829. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2830. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2831. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2832. echo $ECHO_N "(cached) $ECHO_C" >&6
  2833. else
  2834. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2835. ac_cxx_werror_flag=yes
  2836. ac_cv_prog_cxx_g=no
  2837. CXXFLAGS="-g"
  2838. cat >conftest.$ac_ext <<_ACEOF
  2839. /* confdefs.h. */
  2840. _ACEOF
  2841. cat confdefs.h >>conftest.$ac_ext
  2842. cat >>conftest.$ac_ext <<_ACEOF
  2843. /* end confdefs.h. */
  2844. int
  2845. main ()
  2846. {
  2847. ;
  2848. return 0;
  2849. }
  2850. _ACEOF
  2851. rm -f conftest.$ac_objext
  2852. if { (ac_try="$ac_compile"
  2853. case "(($ac_try" in
  2854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2855. *) ac_try_echo=$ac_try;;
  2856. esac
  2857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2858. (eval "$ac_compile") 2>conftest.er1
  2859. ac_status=$?
  2860. grep -v '^ *+' conftest.er1 >conftest.err
  2861. rm -f conftest.er1
  2862. cat conftest.err >&5
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); } && {
  2865. test -z "$ac_cxx_werror_flag" ||
  2866. test ! -s conftest.err
  2867. } && test -s conftest.$ac_objext; then
  2868. ac_cv_prog_cxx_g=yes
  2869. else
  2870. echo "$as_me: failed program was:" >&5
  2871. sed 's/^/| /' conftest.$ac_ext >&5
  2872. CXXFLAGS=""
  2873. cat >conftest.$ac_ext <<_ACEOF
  2874. /* confdefs.h. */
  2875. _ACEOF
  2876. cat confdefs.h >>conftest.$ac_ext
  2877. cat >>conftest.$ac_ext <<_ACEOF
  2878. /* end confdefs.h. */
  2879. int
  2880. main ()
  2881. {
  2882. ;
  2883. return 0;
  2884. }
  2885. _ACEOF
  2886. rm -f conftest.$ac_objext
  2887. if { (ac_try="$ac_compile"
  2888. case "(($ac_try" in
  2889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2890. *) ac_try_echo=$ac_try;;
  2891. esac
  2892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2893. (eval "$ac_compile") 2>conftest.er1
  2894. ac_status=$?
  2895. grep -v '^ *+' conftest.er1 >conftest.err
  2896. rm -f conftest.er1
  2897. cat conftest.err >&5
  2898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2899. (exit $ac_status); } && {
  2900. test -z "$ac_cxx_werror_flag" ||
  2901. test ! -s conftest.err
  2902. } && test -s conftest.$ac_objext; then
  2903. :
  2904. else
  2905. echo "$as_me: failed program was:" >&5
  2906. sed 's/^/| /' conftest.$ac_ext >&5
  2907. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2908. CXXFLAGS="-g"
  2909. cat >conftest.$ac_ext <<_ACEOF
  2910. /* confdefs.h. */
  2911. _ACEOF
  2912. cat confdefs.h >>conftest.$ac_ext
  2913. cat >>conftest.$ac_ext <<_ACEOF
  2914. /* end confdefs.h. */
  2915. int
  2916. main ()
  2917. {
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. rm -f conftest.$ac_objext
  2923. if { (ac_try="$ac_compile"
  2924. case "(($ac_try" in
  2925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2926. *) ac_try_echo=$ac_try;;
  2927. esac
  2928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2929. (eval "$ac_compile") 2>conftest.er1
  2930. ac_status=$?
  2931. grep -v '^ *+' conftest.er1 >conftest.err
  2932. rm -f conftest.er1
  2933. cat conftest.err >&5
  2934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2935. (exit $ac_status); } && {
  2936. test -z "$ac_cxx_werror_flag" ||
  2937. test ! -s conftest.err
  2938. } && test -s conftest.$ac_objext; then
  2939. ac_cv_prog_cxx_g=yes
  2940. else
  2941. echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. fi
  2944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2945. fi
  2946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2947. fi
  2948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2949. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2950. fi
  2951. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2952. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2953. if test "$ac_test_CXXFLAGS" = set; then
  2954. CXXFLAGS=$ac_save_CXXFLAGS
  2955. elif test $ac_cv_prog_cxx_g = yes; then
  2956. if test "$GXX" = yes; then
  2957. CXXFLAGS="-g -O2"
  2958. else
  2959. CXXFLAGS="-g"
  2960. fi
  2961. else
  2962. if test "$GXX" = yes; then
  2963. CXXFLAGS="-O2"
  2964. else
  2965. CXXFLAGS=
  2966. fi
  2967. fi
  2968. ac_ext=c
  2969. ac_cpp='$CPP $CPPFLAGS'
  2970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2973. DEPDIR="${am__leading_dot}deps"
  2974. ac_config_commands="$ac_config_commands depfiles"
  2975. am_make=${MAKE-make}
  2976. cat > confinc << 'END'
  2977. am__doit:
  2978. @echo done
  2979. .PHONY: am__doit
  2980. END
  2981. # If we don't find an include directive, just comment out the code.
  2982. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2983. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2984. am__include="#"
  2985. am__quote=
  2986. _am_result=none
  2987. # First try GNU make style include.
  2988. echo "include confinc" > confmf
  2989. # We grep out `Entering directory' and `Leaving directory'
  2990. # messages which can occur if `w' ends up in MAKEFLAGS.
  2991. # In particular we don't look at `^make:' because GNU make might
  2992. # be invoked under some other name (usually "gmake"), in which
  2993. # case it prints its new name instead of `make'.
  2994. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2995. am__include=include
  2996. am__quote=
  2997. _am_result=GNU
  2998. fi
  2999. # Now try BSD make style include.
  3000. if test "$am__include" = "#"; then
  3001. echo '.include "confinc"' > confmf
  3002. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3003. am__include=.include
  3004. am__quote="\""
  3005. _am_result=BSD
  3006. fi
  3007. fi
  3008. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3009. echo "${ECHO_T}$_am_result" >&6; }
  3010. rm -f confinc confmf
  3011. # Check whether --enable-dependency-tracking was given.
  3012. if test "${enable_dependency_tracking+set}" = set; then
  3013. enableval=$enable_dependency_tracking;
  3014. fi
  3015. if test "x$enable_dependency_tracking" != xno; then
  3016. am_depcomp="$ac_aux_dir/depcomp"
  3017. AMDEPBACKSLASH='\'
  3018. fi
  3019. if test "x$enable_dependency_tracking" != xno; then
  3020. AMDEP_TRUE=
  3021. AMDEP_FALSE='#'
  3022. else
  3023. AMDEP_TRUE='#'
  3024. AMDEP_FALSE=
  3025. fi
  3026. depcc="$CXX" am_compiler_list=
  3027. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3028. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3029. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3030. echo $ECHO_N "(cached) $ECHO_C" >&6
  3031. else
  3032. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3033. # We make a subdir and do the tests there. Otherwise we can end up
  3034. # making bogus files that we don't know about and never remove. For
  3035. # instance it was reported that on HP-UX the gcc test will end up
  3036. # making a dummy file named `D' -- because `-MD' means `put the output
  3037. # in D'.
  3038. mkdir conftest.dir
  3039. # Copy depcomp to subdir because otherwise we won't find it if we're
  3040. # using a relative directory.
  3041. cp "$am_depcomp" conftest.dir
  3042. cd conftest.dir
  3043. # We will build objects and dependencies in a subdirectory because
  3044. # it helps to detect inapplicable dependency modes. For instance
  3045. # both Tru64's cc and ICC support -MD to output dependencies as a
  3046. # side effect of compilation, but ICC will put the dependencies in
  3047. # the current directory while Tru64 will put them in the object
  3048. # directory.
  3049. mkdir sub
  3050. am_cv_CXX_dependencies_compiler_type=none
  3051. if test "$am_compiler_list" = ""; then
  3052. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3053. fi
  3054. for depmode in $am_compiler_list; do
  3055. # Setup a source with many dependencies, because some compilers
  3056. # like to wrap large dependency lists on column 80 (with \), and
  3057. # we should not choose a depcomp mode which is confused by this.
  3058. #
  3059. # We need to recreate these files for each test, as the compiler may
  3060. # overwrite some of them when testing with obscure command lines.
  3061. # This happens at least with the AIX C compiler.
  3062. : > sub/conftest.c
  3063. for i in 1 2 3 4 5 6; do
  3064. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3065. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3066. # Solaris 8's {/usr,}/bin/sh.
  3067. touch sub/conftst$i.h
  3068. done
  3069. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3070. case $depmode in
  3071. nosideeffect)
  3072. # after this tag, mechanisms are not by side-effect, so they'll
  3073. # only be used when explicitly requested
  3074. if test "x$enable_dependency_tracking" = xyes; then
  3075. continue
  3076. else
  3077. break
  3078. fi
  3079. ;;
  3080. none) break ;;
  3081. esac
  3082. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3083. # mode. It turns out that the SunPro C++ compiler does not properly
  3084. # handle `-M -o', and we need to detect this.
  3085. if depmode=$depmode \
  3086. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3087. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3088. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3089. >/dev/null 2>conftest.err &&
  3090. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3091. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3092. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3093. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3094. # icc doesn't choke on unknown options, it will just issue warnings
  3095. # or remarks (even with -Werror). So we grep stderr for any message
  3096. # that says an option was ignored or not supported.
  3097. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3098. # icc: Command line warning: ignoring option '-M'; no argument required
  3099. # The diagnosis changed in icc 8.0:
  3100. # icc: Command line remark: option '-MP' not supported
  3101. if (grep 'ignoring option' conftest.err ||
  3102. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3103. am_cv_CXX_dependencies_compiler_type=$depmode
  3104. break
  3105. fi
  3106. fi
  3107. done
  3108. cd ..
  3109. rm -rf conftest.dir
  3110. else
  3111. am_cv_CXX_dependencies_compiler_type=none
  3112. fi
  3113. fi
  3114. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3115. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3116. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3117. if
  3118. test "x$enable_dependency_tracking" != xno \
  3119. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3120. am__fastdepCXX_TRUE=
  3121. am__fastdepCXX_FALSE='#'
  3122. else
  3123. am__fastdepCXX_TRUE='#'
  3124. am__fastdepCXX_FALSE=
  3125. fi
  3126. ac_ext=c
  3127. ac_cpp='$CPP $CPPFLAGS'
  3128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3131. if test -n "$ac_tool_prefix"; then
  3132. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3133. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3134. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3135. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3136. if test "${ac_cv_prog_CC+set}" = set; then
  3137. echo $ECHO_N "(cached) $ECHO_C" >&6
  3138. else
  3139. if test -n "$CC"; then
  3140. ac_cv_prog_CC="$CC" # Let the user override the test.
  3141. else
  3142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3143. for as_dir in $PATH
  3144. do
  3145. IFS=$as_save_IFS
  3146. test -z "$as_dir" && as_dir=.
  3147. for ac_exec_ext in '' $ac_executable_extensions; do
  3148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3149. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3150. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3151. break 2
  3152. fi
  3153. done
  3154. done
  3155. IFS=$as_save_IFS
  3156. fi
  3157. fi
  3158. CC=$ac_cv_prog_CC
  3159. if test -n "$CC"; then
  3160. { echo "$as_me:$LINENO: result: $CC" >&5
  3161. echo "${ECHO_T}$CC" >&6; }
  3162. else
  3163. { echo "$as_me:$LINENO: result: no" >&5
  3164. echo "${ECHO_T}no" >&6; }
  3165. fi
  3166. fi
  3167. if test -z "$ac_cv_prog_CC"; then
  3168. ac_ct_CC=$CC
  3169. # Extract the first word of "gcc", so it can be a program name with args.
  3170. set dummy gcc; ac_word=$2
  3171. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3173. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3174. echo $ECHO_N "(cached) $ECHO_C" >&6
  3175. else
  3176. if test -n "$ac_ct_CC"; then
  3177. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3178. else
  3179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3180. for as_dir in $PATH
  3181. do
  3182. IFS=$as_save_IFS
  3183. test -z "$as_dir" && as_dir=.
  3184. for ac_exec_ext in '' $ac_executable_extensions; do
  3185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3186. ac_cv_prog_ac_ct_CC="gcc"
  3187. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3188. break 2
  3189. fi
  3190. done
  3191. done
  3192. IFS=$as_save_IFS
  3193. fi
  3194. fi
  3195. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3196. if test -n "$ac_ct_CC"; then
  3197. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3198. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3199. else
  3200. { echo "$as_me:$LINENO: result: no" >&5
  3201. echo "${ECHO_T}no" >&6; }
  3202. fi
  3203. if test "x$ac_ct_CC" = x; then
  3204. CC=""
  3205. else
  3206. case $cross_compiling:$ac_tool_warned in
  3207. yes:)
  3208. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3209. whose name does not start with the host triplet. If you think this
  3210. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3211. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3212. whose name does not start with the host triplet. If you think this
  3213. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3214. ac_tool_warned=yes ;;
  3215. esac
  3216. CC=$ac_ct_CC
  3217. fi
  3218. else
  3219. CC="$ac_cv_prog_CC"
  3220. fi
  3221. if test -z "$CC"; then
  3222. if test -n "$ac_tool_prefix"; then
  3223. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3224. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3225. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3226. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3227. if test "${ac_cv_prog_CC+set}" = set; then
  3228. echo $ECHO_N "(cached) $ECHO_C" >&6
  3229. else
  3230. if test -n "$CC"; then
  3231. ac_cv_prog_CC="$CC" # Let the user override the test.
  3232. else
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_exec_ext in '' $ac_executable_extensions; do
  3239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3240. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3241. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3242. break 2
  3243. fi
  3244. done
  3245. done
  3246. IFS=$as_save_IFS
  3247. fi
  3248. fi
  3249. CC=$ac_cv_prog_CC
  3250. if test -n "$CC"; then
  3251. { echo "$as_me:$LINENO: result: $CC" >&5
  3252. echo "${ECHO_T}$CC" >&6; }
  3253. else
  3254. { echo "$as_me:$LINENO: result: no" >&5
  3255. echo "${ECHO_T}no" >&6; }
  3256. fi
  3257. fi
  3258. fi
  3259. if test -z "$CC"; then
  3260. # Extract the first word of "cc", so it can be a program name with args.
  3261. set dummy cc; ac_word=$2
  3262. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3263. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3264. if test "${ac_cv_prog_CC+set}" = set; then
  3265. echo $ECHO_N "(cached) $ECHO_C" >&6
  3266. else
  3267. if test -n "$CC"; then
  3268. ac_cv_prog_CC="$CC" # Let the user override the test.
  3269. else
  3270. ac_prog_rejected=no
  3271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3272. for as_dir in $PATH
  3273. do
  3274. IFS=$as_save_IFS
  3275. test -z "$as_dir" && as_dir=.
  3276. for ac_exec_ext in '' $ac_executable_extensions; do
  3277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3278. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3279. ac_prog_rejected=yes
  3280. continue
  3281. fi
  3282. ac_cv_prog_CC="cc"
  3283. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3284. break 2
  3285. fi
  3286. done
  3287. done
  3288. IFS=$as_save_IFS
  3289. if test $ac_prog_rejected = yes; then
  3290. # We found a bogon in the path, so make sure we never use it.
  3291. set dummy $ac_cv_prog_CC
  3292. shift
  3293. if test $# != 0; then
  3294. # We chose a different compiler from the bogus one.
  3295. # However, it has the same basename, so the bogon will be chosen
  3296. # first if we set CC to just the basename; use the full file name.
  3297. shift
  3298. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3299. fi
  3300. fi
  3301. fi
  3302. fi
  3303. CC=$ac_cv_prog_CC
  3304. if test -n "$CC"; then
  3305. { echo "$as_me:$LINENO: result: $CC" >&5
  3306. echo "${ECHO_T}$CC" >&6; }
  3307. else
  3308. { echo "$as_me:$LINENO: result: no" >&5
  3309. echo "${ECHO_T}no" >&6; }
  3310. fi
  3311. fi
  3312. if test -z "$CC"; then
  3313. if test -n "$ac_tool_prefix"; then
  3314. for ac_prog in cl.exe
  3315. do
  3316. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3317. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3318. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3319. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3320. if test "${ac_cv_prog_CC+set}" = set; then
  3321. echo $ECHO_N "(cached) $ECHO_C" >&6
  3322. else
  3323. if test -n "$CC"; then
  3324. ac_cv_prog_CC="$CC" # Let the user override the test.
  3325. else
  3326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3327. for as_dir in $PATH
  3328. do
  3329. IFS=$as_save_IFS
  3330. test -z "$as_dir" && as_dir=.
  3331. for ac_exec_ext in '' $ac_executable_extensions; do
  3332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3333. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3334. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3335. break 2
  3336. fi
  3337. done
  3338. done
  3339. IFS=$as_save_IFS
  3340. fi
  3341. fi
  3342. CC=$ac_cv_prog_CC
  3343. if test -n "$CC"; then
  3344. { echo "$as_me:$LINENO: result: $CC" >&5
  3345. echo "${ECHO_T}$CC" >&6; }
  3346. else
  3347. { echo "$as_me:$LINENO: result: no" >&5
  3348. echo "${ECHO_T}no" >&6; }
  3349. fi
  3350. test -n "$CC" && break
  3351. done
  3352. fi
  3353. if test -z "$CC"; then
  3354. ac_ct_CC=$CC
  3355. for ac_prog in cl.exe
  3356. do
  3357. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3358. set dummy $ac_prog; ac_word=$2
  3359. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3360. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3361. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3362. echo $ECHO_N "(cached) $ECHO_C" >&6
  3363. else
  3364. if test -n "$ac_ct_CC"; then
  3365. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3366. else
  3367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3368. for as_dir in $PATH
  3369. do
  3370. IFS=$as_save_IFS
  3371. test -z "$as_dir" && as_dir=.
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3374. ac_cv_prog_ac_ct_CC="$ac_prog"
  3375. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3376. break 2
  3377. fi
  3378. done
  3379. done
  3380. IFS=$as_save_IFS
  3381. fi
  3382. fi
  3383. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3384. if test -n "$ac_ct_CC"; then
  3385. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3386. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3387. else
  3388. { echo "$as_me:$LINENO: result: no" >&5
  3389. echo "${ECHO_T}no" >&6; }
  3390. fi
  3391. test -n "$ac_ct_CC" && break
  3392. done
  3393. if test "x$ac_ct_CC" = x; then
  3394. CC=""
  3395. else
  3396. case $cross_compiling:$ac_tool_warned in
  3397. yes:)
  3398. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3399. whose name does not start with the host triplet. If you think this
  3400. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3401. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3402. whose name does not start with the host triplet. If you think this
  3403. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3404. ac_tool_warned=yes ;;
  3405. esac
  3406. CC=$ac_ct_CC
  3407. fi
  3408. fi
  3409. fi
  3410. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3411. See \`config.log' for more details." >&5
  3412. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3413. See \`config.log' for more details." >&2;}
  3414. { (exit 1); exit 1; }; }
  3415. # Provide some information about the compiler.
  3416. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3417. ac_compiler=`set X $ac_compile; echo $2`
  3418. { (ac_try="$ac_compiler --version >&5"
  3419. case "(($ac_try" in
  3420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3421. *) ac_try_echo=$ac_try;;
  3422. esac
  3423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3424. (eval "$ac_compiler --version >&5") 2>&5
  3425. ac_status=$?
  3426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3427. (exit $ac_status); }
  3428. { (ac_try="$ac_compiler -v >&5"
  3429. case "(($ac_try" in
  3430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3431. *) ac_try_echo=$ac_try;;
  3432. esac
  3433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3434. (eval "$ac_compiler -v >&5") 2>&5
  3435. ac_status=$?
  3436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3437. (exit $ac_status); }
  3438. { (ac_try="$ac_compiler -V >&5"
  3439. case "(($ac_try" in
  3440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3441. *) ac_try_echo=$ac_try;;
  3442. esac
  3443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3444. (eval "$ac_compiler -V >&5") 2>&5
  3445. ac_status=$?
  3446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3447. (exit $ac_status); }
  3448. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3449. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3450. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3451. echo $ECHO_N "(cached) $ECHO_C" >&6
  3452. else
  3453. cat >conftest.$ac_ext <<_ACEOF
  3454. /* confdefs.h. */
  3455. _ACEOF
  3456. cat confdefs.h >>conftest.$ac_ext
  3457. cat >>conftest.$ac_ext <<_ACEOF
  3458. /* end confdefs.h. */
  3459. int
  3460. main ()
  3461. {
  3462. #ifndef __GNUC__
  3463. choke me
  3464. #endif
  3465. ;
  3466. return 0;
  3467. }
  3468. _ACEOF
  3469. rm -f conftest.$ac_objext
  3470. if { (ac_try="$ac_compile"
  3471. case "(($ac_try" in
  3472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3473. *) ac_try_echo=$ac_try;;
  3474. esac
  3475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3476. (eval "$ac_compile") 2>conftest.er1
  3477. ac_status=$?
  3478. grep -v '^ *+' conftest.er1 >conftest.err
  3479. rm -f conftest.er1
  3480. cat conftest.err >&5
  3481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3482. (exit $ac_status); } && {
  3483. test -z "$ac_c_werror_flag" ||
  3484. test ! -s conftest.err
  3485. } && test -s conftest.$ac_objext; then
  3486. ac_compiler_gnu=yes
  3487. else
  3488. echo "$as_me: failed program was:" >&5
  3489. sed 's/^/| /' conftest.$ac_ext >&5
  3490. ac_compiler_gnu=no
  3491. fi
  3492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3493. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3494. fi
  3495. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3496. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3497. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3498. ac_test_CFLAGS=${CFLAGS+set}
  3499. ac_save_CFLAGS=$CFLAGS
  3500. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3501. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3502. if test "${ac_cv_prog_cc_g+set}" = set; then
  3503. echo $ECHO_N "(cached) $ECHO_C" >&6
  3504. else
  3505. ac_save_c_werror_flag=$ac_c_werror_flag
  3506. ac_c_werror_flag=yes
  3507. ac_cv_prog_cc_g=no
  3508. CFLAGS="-g"
  3509. cat >conftest.$ac_ext <<_ACEOF
  3510. /* confdefs.h. */
  3511. _ACEOF
  3512. cat confdefs.h >>conftest.$ac_ext
  3513. cat >>conftest.$ac_ext <<_ACEOF
  3514. /* end confdefs.h. */
  3515. int
  3516. main ()
  3517. {
  3518. ;
  3519. return 0;
  3520. }
  3521. _ACEOF
  3522. rm -f conftest.$ac_objext
  3523. if { (ac_try="$ac_compile"
  3524. case "(($ac_try" in
  3525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3526. *) ac_try_echo=$ac_try;;
  3527. esac
  3528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3529. (eval "$ac_compile") 2>conftest.er1
  3530. ac_status=$?
  3531. grep -v '^ *+' conftest.er1 >conftest.err
  3532. rm -f conftest.er1
  3533. cat conftest.err >&5
  3534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3535. (exit $ac_status); } && {
  3536. test -z "$ac_c_werror_flag" ||
  3537. test ! -s conftest.err
  3538. } && test -s conftest.$ac_objext; then
  3539. ac_cv_prog_cc_g=yes
  3540. else
  3541. echo "$as_me: failed program was:" >&5
  3542. sed 's/^/| /' conftest.$ac_ext >&5
  3543. CFLAGS=""
  3544. cat >conftest.$ac_ext <<_ACEOF
  3545. /* confdefs.h. */
  3546. _ACEOF
  3547. cat confdefs.h >>conftest.$ac_ext
  3548. cat >>conftest.$ac_ext <<_ACEOF
  3549. /* end confdefs.h. */
  3550. int
  3551. main ()
  3552. {
  3553. ;
  3554. return 0;
  3555. }
  3556. _ACEOF
  3557. rm -f conftest.$ac_objext
  3558. if { (ac_try="$ac_compile"
  3559. case "(($ac_try" in
  3560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3561. *) ac_try_echo=$ac_try;;
  3562. esac
  3563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3564. (eval "$ac_compile") 2>conftest.er1
  3565. ac_status=$?
  3566. grep -v '^ *+' conftest.er1 >conftest.err
  3567. rm -f conftest.er1
  3568. cat conftest.err >&5
  3569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570. (exit $ac_status); } && {
  3571. test -z "$ac_c_werror_flag" ||
  3572. test ! -s conftest.err
  3573. } && test -s conftest.$ac_objext; then
  3574. :
  3575. else
  3576. echo "$as_me: failed program was:" >&5
  3577. sed 's/^/| /' conftest.$ac_ext >&5
  3578. ac_c_werror_flag=$ac_save_c_werror_flag
  3579. CFLAGS="-g"
  3580. cat >conftest.$ac_ext <<_ACEOF
  3581. /* confdefs.h. */
  3582. _ACEOF
  3583. cat confdefs.h >>conftest.$ac_ext
  3584. cat >>conftest.$ac_ext <<_ACEOF
  3585. /* end confdefs.h. */
  3586. int
  3587. main ()
  3588. {
  3589. ;
  3590. return 0;
  3591. }
  3592. _ACEOF
  3593. rm -f conftest.$ac_objext
  3594. if { (ac_try="$ac_compile"
  3595. case "(($ac_try" in
  3596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3597. *) ac_try_echo=$ac_try;;
  3598. esac
  3599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3600. (eval "$ac_compile") 2>conftest.er1
  3601. ac_status=$?
  3602. grep -v '^ *+' conftest.er1 >conftest.err
  3603. rm -f conftest.er1
  3604. cat conftest.err >&5
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); } && {
  3607. test -z "$ac_c_werror_flag" ||
  3608. test ! -s conftest.err
  3609. } && test -s conftest.$ac_objext; then
  3610. ac_cv_prog_cc_g=yes
  3611. else
  3612. echo "$as_me: failed program was:" >&5
  3613. sed 's/^/| /' conftest.$ac_ext >&5
  3614. fi
  3615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3616. fi
  3617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3618. fi
  3619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3620. ac_c_werror_flag=$ac_save_c_werror_flag
  3621. fi
  3622. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3623. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3624. if test "$ac_test_CFLAGS" = set; then
  3625. CFLAGS=$ac_save_CFLAGS
  3626. elif test $ac_cv_prog_cc_g = yes; then
  3627. if test "$GCC" = yes; then
  3628. CFLAGS="-g -O2"
  3629. else
  3630. CFLAGS="-g"
  3631. fi
  3632. else
  3633. if test "$GCC" = yes; then
  3634. CFLAGS="-O2"
  3635. else
  3636. CFLAGS=
  3637. fi
  3638. fi
  3639. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3640. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3641. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3642. echo $ECHO_N "(cached) $ECHO_C" >&6
  3643. else
  3644. ac_cv_prog_cc_c89=no
  3645. ac_save_CC=$CC
  3646. cat >conftest.$ac_ext <<_ACEOF
  3647. /* confdefs.h. */
  3648. _ACEOF
  3649. cat confdefs.h >>conftest.$ac_ext
  3650. cat >>conftest.$ac_ext <<_ACEOF
  3651. /* end confdefs.h. */
  3652. #include <stdarg.h>
  3653. #include <stdio.h>
  3654. #include <sys/types.h>
  3655. #include <sys/stat.h>
  3656. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3657. struct buf { int x; };
  3658. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3659. static char *e (p, i)
  3660. char **p;
  3661. int i;
  3662. {
  3663. return p[i];
  3664. }
  3665. static char *f (char * (*g) (char **, int), char **p, ...)
  3666. {
  3667. char *s;
  3668. va_list v;
  3669. va_start (v,p);
  3670. s = g (p, va_arg (v,int));
  3671. va_end (v);
  3672. return s;
  3673. }
  3674. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3675. function prototypes and stuff, but not '\xHH' hex character constants.
  3676. These don't provoke an error unfortunately, instead are silently treated
  3677. as 'x'. The following induces an error, until -std is added to get
  3678. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3679. array size at least. It's necessary to write '\x00'==0 to get something
  3680. that's true only with -std. */
  3681. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3682. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3683. inside strings and character constants. */
  3684. #define FOO(x) 'x'
  3685. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3686. int test (int i, double x);
  3687. struct s1 {int (*f) (int a);};
  3688. struct s2 {int (*f) (double a);};
  3689. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3690. int argc;
  3691. char **argv;
  3692. int
  3693. main ()
  3694. {
  3695. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3696. ;
  3697. return 0;
  3698. }
  3699. _ACEOF
  3700. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3701. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3702. do
  3703. CC="$ac_save_CC $ac_arg"
  3704. rm -f conftest.$ac_objext
  3705. if { (ac_try="$ac_compile"
  3706. case "(($ac_try" in
  3707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3708. *) ac_try_echo=$ac_try;;
  3709. esac
  3710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3711. (eval "$ac_compile") 2>conftest.er1
  3712. ac_status=$?
  3713. grep -v '^ *+' conftest.er1 >conftest.err
  3714. rm -f conftest.er1
  3715. cat conftest.err >&5
  3716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3717. (exit $ac_status); } && {
  3718. test -z "$ac_c_werror_flag" ||
  3719. test ! -s conftest.err
  3720. } && test -s conftest.$ac_objext; then
  3721. ac_cv_prog_cc_c89=$ac_arg
  3722. else
  3723. echo "$as_me: failed program was:" >&5
  3724. sed 's/^/| /' conftest.$ac_ext >&5
  3725. fi
  3726. rm -f core conftest.err conftest.$ac_objext
  3727. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3728. done
  3729. rm -f conftest.$ac_ext
  3730. CC=$ac_save_CC
  3731. fi
  3732. # AC_CACHE_VAL
  3733. case "x$ac_cv_prog_cc_c89" in
  3734. x)
  3735. { echo "$as_me:$LINENO: result: none needed" >&5
  3736. echo "${ECHO_T}none needed" >&6; } ;;
  3737. xno)
  3738. { echo "$as_me:$LINENO: result: unsupported" >&5
  3739. echo "${ECHO_T}unsupported" >&6; } ;;
  3740. *)
  3741. CC="$CC $ac_cv_prog_cc_c89"
  3742. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3743. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3744. esac
  3745. ac_ext=c
  3746. ac_cpp='$CPP $CPPFLAGS'
  3747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3750. depcc="$CC" am_compiler_list=
  3751. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3752. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3753. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3754. echo $ECHO_N "(cached) $ECHO_C" >&6
  3755. else
  3756. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3757. # We make a subdir and do the tests there. Otherwise we can end up
  3758. # making bogus files that we don't know about and never remove. For
  3759. # instance it was reported that on HP-UX the gcc test will end up
  3760. # making a dummy file named `D' -- because `-MD' means `put the output
  3761. # in D'.
  3762. mkdir conftest.dir
  3763. # Copy depcomp to subdir because otherwise we won't find it if we're
  3764. # using a relative directory.
  3765. cp "$am_depcomp" conftest.dir
  3766. cd conftest.dir
  3767. # We will build objects and dependencies in a subdirectory because
  3768. # it helps to detect inapplicable dependency modes. For instance
  3769. # both Tru64's cc and ICC support -MD to output dependencies as a
  3770. # side effect of compilation, but ICC will put the dependencies in
  3771. # the current directory while Tru64 will put them in the object
  3772. # directory.
  3773. mkdir sub
  3774. am_cv_CC_dependencies_compiler_type=none
  3775. if test "$am_compiler_list" = ""; then
  3776. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3777. fi
  3778. for depmode in $am_compiler_list; do
  3779. # Setup a source with many dependencies, because some compilers
  3780. # like to wrap large dependency lists on column 80 (with \), and
  3781. # we should not choose a depcomp mode which is confused by this.
  3782. #
  3783. # We need to recreate these files for each test, as the compiler may
  3784. # overwrite some of them when testing with obscure command lines.
  3785. # This happens at least with the AIX C compiler.
  3786. : > sub/conftest.c
  3787. for i in 1 2 3 4 5 6; do
  3788. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3789. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3790. # Solaris 8's {/usr,}/bin/sh.
  3791. touch sub/conftst$i.h
  3792. done
  3793. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3794. case $depmode in
  3795. nosideeffect)
  3796. # after this tag, mechanisms are not by side-effect, so they'll
  3797. # only be used when explicitly requested
  3798. if test "x$enable_dependency_tracking" = xyes; then
  3799. continue
  3800. else
  3801. break
  3802. fi
  3803. ;;
  3804. none) break ;;
  3805. esac
  3806. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3807. # mode. It turns out that the SunPro C++ compiler does not properly
  3808. # handle `-M -o', and we need to detect this.
  3809. if depmode=$depmode \
  3810. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3811. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3812. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3813. >/dev/null 2>conftest.err &&
  3814. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3815. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3816. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3817. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3818. # icc doesn't choke on unknown options, it will just issue warnings
  3819. # or remarks (even with -Werror). So we grep stderr for any message
  3820. # that says an option was ignored or not supported.
  3821. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3822. # icc: Command line warning: ignoring option '-M'; no argument required
  3823. # The diagnosis changed in icc 8.0:
  3824. # icc: Command line remark: option '-MP' not supported
  3825. if (grep 'ignoring option' conftest.err ||
  3826. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3827. am_cv_CC_dependencies_compiler_type=$depmode
  3828. break
  3829. fi
  3830. fi
  3831. done
  3832. cd ..
  3833. rm -rf conftest.dir
  3834. else
  3835. am_cv_CC_dependencies_compiler_type=none
  3836. fi
  3837. fi
  3838. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3839. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3840. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3841. if
  3842. test "x$enable_dependency_tracking" != xno \
  3843. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3844. am__fastdepCC_TRUE=
  3845. am__fastdepCC_FALSE='#'
  3846. else
  3847. am__fastdepCC_TRUE='#'
  3848. am__fastdepCC_FALSE=
  3849. fi
  3850. # Find a good install program. We prefer a C program (faster),
  3851. # so one script is as good as another. But avoid the broken or
  3852. # incompatible versions:
  3853. # SysV /etc/install, /usr/sbin/install
  3854. # SunOS /usr/etc/install
  3855. # IRIX /sbin/install
  3856. # AIX /bin/install
  3857. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3858. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3859. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3860. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3861. # OS/2's system install, which has a completely different semantic
  3862. # ./install, which can be erroneously created by make from ./install.sh.
  3863. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3864. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3865. if test -z "$INSTALL"; then
  3866. if test "${ac_cv_path_install+set}" = set; then
  3867. echo $ECHO_N "(cached) $ECHO_C" >&6
  3868. else
  3869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3870. for as_dir in $PATH
  3871. do
  3872. IFS=$as_save_IFS
  3873. test -z "$as_dir" && as_dir=.
  3874. # Account for people who put trailing slashes in PATH elements.
  3875. case $as_dir/ in
  3876. ./ | .// | /cC/* | \
  3877. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3878. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3879. /usr/ucb/* ) ;;
  3880. *)
  3881. # OSF1 and SCO ODT 3.0 have their own names for install.
  3882. # Don't use installbsd from OSF since it installs stuff as root
  3883. # by default.
  3884. for ac_prog in ginstall scoinst install; do
  3885. for ac_exec_ext in '' $ac_executable_extensions; do
  3886. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3887. if test $ac_prog = install &&
  3888. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3889. # AIX install. It has an incompatible calling convention.
  3890. :
  3891. elif test $ac_prog = install &&
  3892. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3893. # program-specific install script used by HP pwplus--don't use.
  3894. :
  3895. else
  3896. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3897. break 3
  3898. fi
  3899. fi
  3900. done
  3901. done
  3902. ;;
  3903. esac
  3904. done
  3905. IFS=$as_save_IFS
  3906. fi
  3907. if test "${ac_cv_path_install+set}" = set; then
  3908. INSTALL=$ac_cv_path_install
  3909. else
  3910. # As a last resort, use the slow shell script. Don't cache a
  3911. # value for INSTALL within a source directory, because that will
  3912. # break other packages using the cache if that directory is
  3913. # removed, or if the value is a relative name.
  3914. INSTALL=$ac_install_sh
  3915. fi
  3916. fi
  3917. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3918. echo "${ECHO_T}$INSTALL" >&6; }
  3919. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3920. # It thinks the first close brace ends the variable substitution.
  3921. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3922. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3923. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3924. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3925. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3926. if test -z "$MKDIR_P"; then
  3927. if test "${ac_cv_path_mkdir+set}" = set; then
  3928. echo $ECHO_N "(cached) $ECHO_C" >&6
  3929. else
  3930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3932. do
  3933. IFS=$as_save_IFS
  3934. test -z "$as_dir" && as_dir=.
  3935. for ac_prog in mkdir gmkdir; do
  3936. for ac_exec_ext in '' $ac_executable_extensions; do
  3937. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3938. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3939. 'mkdir (GNU coreutils) '* | \
  3940. 'mkdir (coreutils) '* | \
  3941. 'mkdir (fileutils) '4.1*)
  3942. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3943. break 3;;
  3944. esac
  3945. done
  3946. done
  3947. done
  3948. IFS=$as_save_IFS
  3949. fi
  3950. if test "${ac_cv_path_mkdir+set}" = set; then
  3951. MKDIR_P="$ac_cv_path_mkdir -p"
  3952. else
  3953. # As a last resort, use the slow shell script. Don't cache a
  3954. # value for MKDIR_P within a source directory, because that will
  3955. # break other packages using the cache if that directory is
  3956. # removed, or if the value is a relative name.
  3957. test -d ./--version && rmdir ./--version
  3958. MKDIR_P="$ac_install_sh -d"
  3959. fi
  3960. fi
  3961. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3962. echo "${ECHO_T}$MKDIR_P" >&6; }
  3963. if test -n "$ac_tool_prefix"; then
  3964. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3965. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3966. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3967. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3968. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3969. echo $ECHO_N "(cached) $ECHO_C" >&6
  3970. else
  3971. if test -n "$RANLIB"; then
  3972. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3973. else
  3974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3975. for as_dir in $PATH
  3976. do
  3977. IFS=$as_save_IFS
  3978. test -z "$as_dir" && as_dir=.
  3979. for ac_exec_ext in '' $ac_executable_extensions; do
  3980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3981. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3982. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3983. break 2
  3984. fi
  3985. done
  3986. done
  3987. IFS=$as_save_IFS
  3988. fi
  3989. fi
  3990. RANLIB=$ac_cv_prog_RANLIB
  3991. if test -n "$RANLIB"; then
  3992. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3993. echo "${ECHO_T}$RANLIB" >&6; }
  3994. else
  3995. { echo "$as_me:$LINENO: result: no" >&5
  3996. echo "${ECHO_T}no" >&6; }
  3997. fi
  3998. fi
  3999. if test -z "$ac_cv_prog_RANLIB"; then
  4000. ac_ct_RANLIB=$RANLIB
  4001. # Extract the first word of "ranlib", so it can be a program name with args.
  4002. set dummy ranlib; ac_word=$2
  4003. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4004. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4005. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4006. echo $ECHO_N "(cached) $ECHO_C" >&6
  4007. else
  4008. if test -n "$ac_ct_RANLIB"; then
  4009. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4010. else
  4011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4012. for as_dir in $PATH
  4013. do
  4014. IFS=$as_save_IFS
  4015. test -z "$as_dir" && as_dir=.
  4016. for ac_exec_ext in '' $ac_executable_extensions; do
  4017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4018. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4019. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4020. break 2
  4021. fi
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. fi
  4026. fi
  4027. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4028. if test -n "$ac_ct_RANLIB"; then
  4029. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4030. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4031. else
  4032. { echo "$as_me:$LINENO: result: no" >&5
  4033. echo "${ECHO_T}no" >&6; }
  4034. fi
  4035. if test "x$ac_ct_RANLIB" = x; then
  4036. RANLIB=":"
  4037. else
  4038. case $cross_compiling:$ac_tool_warned in
  4039. yes:)
  4040. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4041. whose name does not start with the host triplet. If you think this
  4042. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4043. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4044. whose name does not start with the host triplet. If you think this
  4045. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4046. ac_tool_warned=yes ;;
  4047. esac
  4048. RANLIB=$ac_ct_RANLIB
  4049. fi
  4050. else
  4051. RANLIB="$ac_cv_prog_RANLIB"
  4052. fi
  4053. for ac_prog in 'bison -y' byacc
  4054. do
  4055. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4056. set dummy $ac_prog; ac_word=$2
  4057. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4058. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4059. if test "${ac_cv_prog_YACC+set}" = set; then
  4060. echo $ECHO_N "(cached) $ECHO_C" >&6
  4061. else
  4062. if test -n "$YACC"; then
  4063. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4064. else
  4065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4066. for as_dir in $PATH
  4067. do
  4068. IFS=$as_save_IFS
  4069. test -z "$as_dir" && as_dir=.
  4070. for ac_exec_ext in '' $ac_executable_extensions; do
  4071. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4072. ac_cv_prog_YACC="$ac_prog"
  4073. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4074. break 2
  4075. fi
  4076. done
  4077. done
  4078. IFS=$as_save_IFS
  4079. fi
  4080. fi
  4081. YACC=$ac_cv_prog_YACC
  4082. if test -n "$YACC"; then
  4083. { echo "$as_me:$LINENO: result: $YACC" >&5
  4084. echo "${ECHO_T}$YACC" >&6; }
  4085. else
  4086. { echo "$as_me:$LINENO: result: no" >&5
  4087. echo "${ECHO_T}no" >&6; }
  4088. fi
  4089. test -n "$YACC" && break
  4090. done
  4091. test -n "$YACC" || YACC="yacc"
  4092. # Setting language choice
  4093. ac_ext=cpp
  4094. ac_cpp='$CXXCPP $CPPFLAGS'
  4095. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4096. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4097. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4098. # Check for GNU library
  4099. cat >>confdefs.h <<\_ACEOF
  4100. #define _GNU_SOURCE 1
  4101. _ACEOF
  4102. # Enable system extensions
  4103. ac_ext=cpp
  4104. ac_cpp='$CXXCPP $CPPFLAGS'
  4105. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4106. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4107. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4108. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4109. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4110. if test -z "$CXXCPP"; then
  4111. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4112. echo $ECHO_N "(cached) $ECHO_C" >&6
  4113. else
  4114. # Double quotes because CXXCPP needs to be expanded
  4115. for CXXCPP in "$CXX -E" "/lib/cpp"
  4116. do
  4117. ac_preproc_ok=false
  4118. for ac_cxx_preproc_warn_flag in '' yes
  4119. do
  4120. # Use a header file that comes with gcc, so configuring glibc
  4121. # with a fresh cross-compiler works.
  4122. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4123. # <limits.h> exists even on freestanding compilers.
  4124. # On the NeXT, cc -E runs the code through the compiler's parser,
  4125. # not just through cpp. "Syntax error" is here to catch this case.
  4126. cat >conftest.$ac_ext <<_ACEOF
  4127. /* confdefs.h. */
  4128. _ACEOF
  4129. cat confdefs.h >>conftest.$ac_ext
  4130. cat >>conftest.$ac_ext <<_ACEOF
  4131. /* end confdefs.h. */
  4132. #ifdef __STDC__
  4133. # include <limits.h>
  4134. #else
  4135. # include <assert.h>
  4136. #endif
  4137. Syntax error
  4138. _ACEOF
  4139. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4140. case "(($ac_try" in
  4141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4142. *) ac_try_echo=$ac_try;;
  4143. esac
  4144. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4145. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4146. ac_status=$?
  4147. grep -v '^ *+' conftest.er1 >conftest.err
  4148. rm -f conftest.er1
  4149. cat conftest.err >&5
  4150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4151. (exit $ac_status); } >/dev/null && {
  4152. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4153. test ! -s conftest.err
  4154. }; then
  4155. :
  4156. else
  4157. echo "$as_me: failed program was:" >&5
  4158. sed 's/^/| /' conftest.$ac_ext >&5
  4159. # Broken: fails on valid input.
  4160. continue
  4161. fi
  4162. rm -f conftest.err conftest.$ac_ext
  4163. # OK, works on sane cases. Now check whether nonexistent headers
  4164. # can be detected and how.
  4165. cat >conftest.$ac_ext <<_ACEOF
  4166. /* confdefs.h. */
  4167. _ACEOF
  4168. cat confdefs.h >>conftest.$ac_ext
  4169. cat >>conftest.$ac_ext <<_ACEOF
  4170. /* end confdefs.h. */
  4171. #include <ac_nonexistent.h>
  4172. _ACEOF
  4173. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4174. case "(($ac_try" in
  4175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4176. *) ac_try_echo=$ac_try;;
  4177. esac
  4178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4179. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4180. ac_status=$?
  4181. grep -v '^ *+' conftest.er1 >conftest.err
  4182. rm -f conftest.er1
  4183. cat conftest.err >&5
  4184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4185. (exit $ac_status); } >/dev/null && {
  4186. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4187. test ! -s conftest.err
  4188. }; then
  4189. # Broken: success on invalid input.
  4190. continue
  4191. else
  4192. echo "$as_me: failed program was:" >&5
  4193. sed 's/^/| /' conftest.$ac_ext >&5
  4194. # Passes both tests.
  4195. ac_preproc_ok=:
  4196. break
  4197. fi
  4198. rm -f conftest.err conftest.$ac_ext
  4199. done
  4200. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4201. rm -f conftest.err conftest.$ac_ext
  4202. if $ac_preproc_ok; then
  4203. break
  4204. fi
  4205. done
  4206. ac_cv_prog_CXXCPP=$CXXCPP
  4207. fi
  4208. CXXCPP=$ac_cv_prog_CXXCPP
  4209. else
  4210. ac_cv_prog_CXXCPP=$CXXCPP
  4211. fi
  4212. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4213. echo "${ECHO_T}$CXXCPP" >&6; }
  4214. ac_preproc_ok=false
  4215. for ac_cxx_preproc_warn_flag in '' yes
  4216. do
  4217. # Use a header file that comes with gcc, so configuring glibc
  4218. # with a fresh cross-compiler works.
  4219. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4220. # <limits.h> exists even on freestanding compilers.
  4221. # On the NeXT, cc -E runs the code through the compiler's parser,
  4222. # not just through cpp. "Syntax error" is here to catch this case.
  4223. cat >conftest.$ac_ext <<_ACEOF
  4224. /* confdefs.h. */
  4225. _ACEOF
  4226. cat confdefs.h >>conftest.$ac_ext
  4227. cat >>conftest.$ac_ext <<_ACEOF
  4228. /* end confdefs.h. */
  4229. #ifdef __STDC__
  4230. # include <limits.h>
  4231. #else
  4232. # include <assert.h>
  4233. #endif
  4234. Syntax error
  4235. _ACEOF
  4236. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4237. case "(($ac_try" in
  4238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4239. *) ac_try_echo=$ac_try;;
  4240. esac
  4241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4242. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4243. ac_status=$?
  4244. grep -v '^ *+' conftest.er1 >conftest.err
  4245. rm -f conftest.er1
  4246. cat conftest.err >&5
  4247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); } >/dev/null && {
  4249. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4250. test ! -s conftest.err
  4251. }; then
  4252. :
  4253. else
  4254. echo "$as_me: failed program was:" >&5
  4255. sed 's/^/| /' conftest.$ac_ext >&5
  4256. # Broken: fails on valid input.
  4257. continue
  4258. fi
  4259. rm -f conftest.err conftest.$ac_ext
  4260. # OK, works on sane cases. Now check whether nonexistent headers
  4261. # can be detected and how.
  4262. cat >conftest.$ac_ext <<_ACEOF
  4263. /* confdefs.h. */
  4264. _ACEOF
  4265. cat confdefs.h >>conftest.$ac_ext
  4266. cat >>conftest.$ac_ext <<_ACEOF
  4267. /* end confdefs.h. */
  4268. #include <ac_nonexistent.h>
  4269. _ACEOF
  4270. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4271. case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4276. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4277. ac_status=$?
  4278. grep -v '^ *+' conftest.er1 >conftest.err
  4279. rm -f conftest.er1
  4280. cat conftest.err >&5
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); } >/dev/null && {
  4283. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4284. test ! -s conftest.err
  4285. }; then
  4286. # Broken: success on invalid input.
  4287. continue
  4288. else
  4289. echo "$as_me: failed program was:" >&5
  4290. sed 's/^/| /' conftest.$ac_ext >&5
  4291. # Passes both tests.
  4292. ac_preproc_ok=:
  4293. break
  4294. fi
  4295. rm -f conftest.err conftest.$ac_ext
  4296. done
  4297. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4298. rm -f conftest.err conftest.$ac_ext
  4299. if $ac_preproc_ok; then
  4300. :
  4301. else
  4302. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4303. See \`config.log' for more details." >&5
  4304. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4305. See \`config.log' for more details." >&2;}
  4306. { (exit 1); exit 1; }; }
  4307. fi
  4308. ac_ext=cpp
  4309. ac_cpp='$CXXCPP $CPPFLAGS'
  4310. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4311. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4312. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4313. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4314. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4315. if test "${ac_cv_path_GREP+set}" = set; then
  4316. echo $ECHO_N "(cached) $ECHO_C" >&6
  4317. else
  4318. # Extract the first word of "grep ggrep" to use in msg output
  4319. if test -z "$GREP"; then
  4320. set dummy grep ggrep; ac_prog_name=$2
  4321. if test "${ac_cv_path_GREP+set}" = set; then
  4322. echo $ECHO_N "(cached) $ECHO_C" >&6
  4323. else
  4324. ac_path_GREP_found=false
  4325. # Loop through the user's path and test for each of PROGNAME-LIST
  4326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4327. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4328. do
  4329. IFS=$as_save_IFS
  4330. test -z "$as_dir" && as_dir=.
  4331. for ac_prog in grep ggrep; do
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4334. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4335. # Check for GNU ac_path_GREP and select it if it is found.
  4336. # Check for GNU $ac_path_GREP
  4337. case `"$ac_path_GREP" --version 2>&1` in
  4338. *GNU*)
  4339. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4340. *)
  4341. ac_count=0
  4342. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4343. while :
  4344. do
  4345. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4346. mv "conftest.tmp" "conftest.in"
  4347. cp "conftest.in" "conftest.nl"
  4348. echo 'GREP' >> "conftest.nl"
  4349. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4350. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4351. ac_count=`expr $ac_count + 1`
  4352. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4353. # Best one so far, save it but keep looking for a better one
  4354. ac_cv_path_GREP="$ac_path_GREP"
  4355. ac_path_GREP_max=$ac_count
  4356. fi
  4357. # 10*(2^10) chars as input seems more than enough
  4358. test $ac_count -gt 10 && break
  4359. done
  4360. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4361. esac
  4362. $ac_path_GREP_found && break 3
  4363. done
  4364. done
  4365. done
  4366. IFS=$as_save_IFS
  4367. fi
  4368. GREP="$ac_cv_path_GREP"
  4369. if test -z "$GREP"; then
  4370. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4371. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4372. { (exit 1); exit 1; }; }
  4373. fi
  4374. else
  4375. ac_cv_path_GREP=$GREP
  4376. fi
  4377. fi
  4378. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4379. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4380. GREP="$ac_cv_path_GREP"
  4381. { echo "$as_me:$LINENO: checking for egrep" >&5
  4382. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4383. if test "${ac_cv_path_EGREP+set}" = set; then
  4384. echo $ECHO_N "(cached) $ECHO_C" >&6
  4385. else
  4386. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4387. then ac_cv_path_EGREP="$GREP -E"
  4388. else
  4389. # Extract the first word of "egrep" to use in msg output
  4390. if test -z "$EGREP"; then
  4391. set dummy egrep; ac_prog_name=$2
  4392. if test "${ac_cv_path_EGREP+set}" = set; then
  4393. echo $ECHO_N "(cached) $ECHO_C" >&6
  4394. else
  4395. ac_path_EGREP_found=false
  4396. # Loop through the user's path and test for each of PROGNAME-LIST
  4397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4398. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4399. do
  4400. IFS=$as_save_IFS
  4401. test -z "$as_dir" && as_dir=.
  4402. for ac_prog in egrep; do
  4403. for ac_exec_ext in '' $ac_executable_extensions; do
  4404. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4405. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4406. # Check for GNU ac_path_EGREP and select it if it is found.
  4407. # Check for GNU $ac_path_EGREP
  4408. case `"$ac_path_EGREP" --version 2>&1` in
  4409. *GNU*)
  4410. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4411. *)
  4412. ac_count=0
  4413. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4414. while :
  4415. do
  4416. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4417. mv "conftest.tmp" "conftest.in"
  4418. cp "conftest.in" "conftest.nl"
  4419. echo 'EGREP' >> "conftest.nl"
  4420. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4421. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4422. ac_count=`expr $ac_count + 1`
  4423. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4424. # Best one so far, save it but keep looking for a better one
  4425. ac_cv_path_EGREP="$ac_path_EGREP"
  4426. ac_path_EGREP_max=$ac_count
  4427. fi
  4428. # 10*(2^10) chars as input seems more than enough
  4429. test $ac_count -gt 10 && break
  4430. done
  4431. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4432. esac
  4433. $ac_path_EGREP_found && break 3
  4434. done
  4435. done
  4436. done
  4437. IFS=$as_save_IFS
  4438. fi
  4439. EGREP="$ac_cv_path_EGREP"
  4440. if test -z "$EGREP"; then
  4441. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4442. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4443. { (exit 1); exit 1; }; }
  4444. fi
  4445. else
  4446. ac_cv_path_EGREP=$EGREP
  4447. fi
  4448. fi
  4449. fi
  4450. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4451. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4452. EGREP="$ac_cv_path_EGREP"
  4453. { echo "$as_me:$LINENO: checking for AIX" >&5
  4454. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4455. cat >conftest.$ac_ext <<_ACEOF
  4456. /* confdefs.h. */
  4457. _ACEOF
  4458. cat confdefs.h >>conftest.$ac_ext
  4459. cat >>conftest.$ac_ext <<_ACEOF
  4460. /* end confdefs.h. */
  4461. #ifdef _AIX
  4462. yes
  4463. #endif
  4464. _ACEOF
  4465. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4466. $EGREP "yes" >/dev/null 2>&1; then
  4467. { echo "$as_me:$LINENO: result: yes" >&5
  4468. echo "${ECHO_T}yes" >&6; }
  4469. cat >>confdefs.h <<\_ACEOF
  4470. #define _ALL_SOURCE 1
  4471. _ACEOF
  4472. else
  4473. { echo "$as_me:$LINENO: result: no" >&5
  4474. echo "${ECHO_T}no" >&6; }
  4475. fi
  4476. rm -f conftest*
  4477. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4478. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4479. if test "${ac_cv_header_stdc+set}" = set; then
  4480. echo $ECHO_N "(cached) $ECHO_C" >&6
  4481. else
  4482. cat >conftest.$ac_ext <<_ACEOF
  4483. /* confdefs.h. */
  4484. _ACEOF
  4485. cat confdefs.h >>conftest.$ac_ext
  4486. cat >>conftest.$ac_ext <<_ACEOF
  4487. /* end confdefs.h. */
  4488. #include <stdlib.h>
  4489. #include <stdarg.h>
  4490. #include <string.h>
  4491. #include <float.h>
  4492. int
  4493. main ()
  4494. {
  4495. ;
  4496. return 0;
  4497. }
  4498. _ACEOF
  4499. rm -f conftest.$ac_objext
  4500. if { (ac_try="$ac_compile"
  4501. case "(($ac_try" in
  4502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4503. *) ac_try_echo=$ac_try;;
  4504. esac
  4505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4506. (eval "$ac_compile") 2>conftest.er1
  4507. ac_status=$?
  4508. grep -v '^ *+' conftest.er1 >conftest.err
  4509. rm -f conftest.er1
  4510. cat conftest.err >&5
  4511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4512. (exit $ac_status); } && {
  4513. test -z "$ac_cxx_werror_flag" ||
  4514. test ! -s conftest.err
  4515. } && test -s conftest.$ac_objext; then
  4516. ac_cv_header_stdc=yes
  4517. else
  4518. echo "$as_me: failed program was:" >&5
  4519. sed 's/^/| /' conftest.$ac_ext >&5
  4520. ac_cv_header_stdc=no
  4521. fi
  4522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4523. if test $ac_cv_header_stdc = yes; then
  4524. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4525. cat >conftest.$ac_ext <<_ACEOF
  4526. /* confdefs.h. */
  4527. _ACEOF
  4528. cat confdefs.h >>conftest.$ac_ext
  4529. cat >>conftest.$ac_ext <<_ACEOF
  4530. /* end confdefs.h. */
  4531. #include <string.h>
  4532. _ACEOF
  4533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4534. $EGREP "memchr" >/dev/null 2>&1; then
  4535. :
  4536. else
  4537. ac_cv_header_stdc=no
  4538. fi
  4539. rm -f conftest*
  4540. fi
  4541. if test $ac_cv_header_stdc = yes; then
  4542. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. #include <stdlib.h>
  4550. _ACEOF
  4551. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4552. $EGREP "free" >/dev/null 2>&1; then
  4553. :
  4554. else
  4555. ac_cv_header_stdc=no
  4556. fi
  4557. rm -f conftest*
  4558. fi
  4559. if test $ac_cv_header_stdc = yes; then
  4560. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4561. if test "$cross_compiling" = yes; then
  4562. :
  4563. else
  4564. cat >conftest.$ac_ext <<_ACEOF
  4565. /* confdefs.h. */
  4566. _ACEOF
  4567. cat confdefs.h >>conftest.$ac_ext
  4568. cat >>conftest.$ac_ext <<_ACEOF
  4569. /* end confdefs.h. */
  4570. #include <ctype.h>
  4571. #include <stdlib.h>
  4572. #if ((' ' & 0x0FF) == 0x020)
  4573. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4574. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4575. #else
  4576. # define ISLOWER(c) \
  4577. (('a' <= (c) && (c) <= 'i') \
  4578. || ('j' <= (c) && (c) <= 'r') \
  4579. || ('s' <= (c) && (c) <= 'z'))
  4580. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4581. #endif
  4582. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4583. int
  4584. main ()
  4585. {
  4586. int i;
  4587. for (i = 0; i < 256; i++)
  4588. if (XOR (islower (i), ISLOWER (i))
  4589. || toupper (i) != TOUPPER (i))
  4590. return 2;
  4591. return 0;
  4592. }
  4593. _ACEOF
  4594. rm -f conftest$ac_exeext
  4595. if { (ac_try="$ac_link"
  4596. case "(($ac_try" in
  4597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4598. *) ac_try_echo=$ac_try;;
  4599. esac
  4600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4601. (eval "$ac_link") 2>&5
  4602. ac_status=$?
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4605. { (case "(($ac_try" in
  4606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4607. *) ac_try_echo=$ac_try;;
  4608. esac
  4609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4610. (eval "$ac_try") 2>&5
  4611. ac_status=$?
  4612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4613. (exit $ac_status); }; }; then
  4614. :
  4615. else
  4616. echo "$as_me: program exited with status $ac_status" >&5
  4617. echo "$as_me: failed program was:" >&5
  4618. sed 's/^/| /' conftest.$ac_ext >&5
  4619. ( exit $ac_status )
  4620. ac_cv_header_stdc=no
  4621. fi
  4622. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4623. fi
  4624. fi
  4625. fi
  4626. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4627. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4628. if test $ac_cv_header_stdc = yes; then
  4629. cat >>confdefs.h <<\_ACEOF
  4630. #define STDC_HEADERS 1
  4631. _ACEOF
  4632. fi
  4633. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4634. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4635. inttypes.h stdint.h unistd.h
  4636. do
  4637. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4638. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4639. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4640. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4641. echo $ECHO_N "(cached) $ECHO_C" >&6
  4642. else
  4643. cat >conftest.$ac_ext <<_ACEOF
  4644. /* confdefs.h. */
  4645. _ACEOF
  4646. cat confdefs.h >>conftest.$ac_ext
  4647. cat >>conftest.$ac_ext <<_ACEOF
  4648. /* end confdefs.h. */
  4649. $ac_includes_default
  4650. #include <$ac_header>
  4651. _ACEOF
  4652. rm -f conftest.$ac_objext
  4653. if { (ac_try="$ac_compile"
  4654. case "(($ac_try" in
  4655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4656. *) ac_try_echo=$ac_try;;
  4657. esac
  4658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4659. (eval "$ac_compile") 2>conftest.er1
  4660. ac_status=$?
  4661. grep -v '^ *+' conftest.er1 >conftest.err
  4662. rm -f conftest.er1
  4663. cat conftest.err >&5
  4664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4665. (exit $ac_status); } && {
  4666. test -z "$ac_cxx_werror_flag" ||
  4667. test ! -s conftest.err
  4668. } && test -s conftest.$ac_objext; then
  4669. eval "$as_ac_Header=yes"
  4670. else
  4671. echo "$as_me: failed program was:" >&5
  4672. sed 's/^/| /' conftest.$ac_ext >&5
  4673. eval "$as_ac_Header=no"
  4674. fi
  4675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4676. fi
  4677. ac_res=`eval echo '${'$as_ac_Header'}'`
  4678. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4679. echo "${ECHO_T}$ac_res" >&6; }
  4680. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4681. cat >>confdefs.h <<_ACEOF
  4682. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4683. _ACEOF
  4684. fi
  4685. done
  4686. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4687. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4688. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4689. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4690. echo $ECHO_N "(cached) $ECHO_C" >&6
  4691. fi
  4692. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4693. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4694. else
  4695. # Is the header compilable?
  4696. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4697. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4698. cat >conftest.$ac_ext <<_ACEOF
  4699. /* confdefs.h. */
  4700. _ACEOF
  4701. cat confdefs.h >>conftest.$ac_ext
  4702. cat >>conftest.$ac_ext <<_ACEOF
  4703. /* end confdefs.h. */
  4704. $ac_includes_default
  4705. #include <minix/config.h>
  4706. _ACEOF
  4707. rm -f conftest.$ac_objext
  4708. if { (ac_try="$ac_compile"
  4709. case "(($ac_try" in
  4710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4711. *) ac_try_echo=$ac_try;;
  4712. esac
  4713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4714. (eval "$ac_compile") 2>conftest.er1
  4715. ac_status=$?
  4716. grep -v '^ *+' conftest.er1 >conftest.err
  4717. rm -f conftest.er1
  4718. cat conftest.err >&5
  4719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720. (exit $ac_status); } && {
  4721. test -z "$ac_cxx_werror_flag" ||
  4722. test ! -s conftest.err
  4723. } && test -s conftest.$ac_objext; then
  4724. ac_header_compiler=yes
  4725. else
  4726. echo "$as_me: failed program was:" >&5
  4727. sed 's/^/| /' conftest.$ac_ext >&5
  4728. ac_header_compiler=no
  4729. fi
  4730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4731. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4732. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4733. # Is the header present?
  4734. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4735. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4736. cat >conftest.$ac_ext <<_ACEOF
  4737. /* confdefs.h. */
  4738. _ACEOF
  4739. cat confdefs.h >>conftest.$ac_ext
  4740. cat >>conftest.$ac_ext <<_ACEOF
  4741. /* end confdefs.h. */
  4742. #include <minix/config.h>
  4743. _ACEOF
  4744. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4745. case "(($ac_try" in
  4746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4747. *) ac_try_echo=$ac_try;;
  4748. esac
  4749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4750. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4751. ac_status=$?
  4752. grep -v '^ *+' conftest.er1 >conftest.err
  4753. rm -f conftest.er1
  4754. cat conftest.err >&5
  4755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); } >/dev/null && {
  4757. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4758. test ! -s conftest.err
  4759. }; then
  4760. ac_header_preproc=yes
  4761. else
  4762. echo "$as_me: failed program was:" >&5
  4763. sed 's/^/| /' conftest.$ac_ext >&5
  4764. ac_header_preproc=no
  4765. fi
  4766. rm -f conftest.err conftest.$ac_ext
  4767. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4768. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4769. # So? What about this header?
  4770. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4771. yes:no: )
  4772. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4773. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4774. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4775. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4776. ac_header_preproc=yes
  4777. ;;
  4778. no:yes:* )
  4779. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4780. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4781. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4782. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4783. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4784. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4785. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4786. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4787. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4788. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4789. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4790. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4791. ( cat <<\_ASBOX
  4792. ## ----------------------------------------------- ##
  4793. ## Report this to t-tujikawa@users.sourceforge.net ##
  4794. ## ----------------------------------------------- ##
  4795. _ASBOX
  4796. ) | sed "s/^/$as_me: WARNING: /" >&2
  4797. ;;
  4798. esac
  4799. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4800. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4801. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4802. echo $ECHO_N "(cached) $ECHO_C" >&6
  4803. else
  4804. ac_cv_header_minix_config_h=$ac_header_preproc
  4805. fi
  4806. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4807. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4808. fi
  4809. if test $ac_cv_header_minix_config_h = yes; then
  4810. MINIX=yes
  4811. else
  4812. MINIX=
  4813. fi
  4814. if test "$MINIX" = yes; then
  4815. cat >>confdefs.h <<\_ACEOF
  4816. #define _POSIX_SOURCE 1
  4817. _ACEOF
  4818. cat >>confdefs.h <<\_ACEOF
  4819. #define _POSIX_1_SOURCE 2
  4820. _ACEOF
  4821. cat >>confdefs.h <<\_ACEOF
  4822. #define _MINIX 1
  4823. _ACEOF
  4824. fi
  4825. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4826. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4827. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4828. echo $ECHO_N "(cached) $ECHO_C" >&6
  4829. else
  4830. cat >conftest.$ac_ext <<_ACEOF
  4831. /* confdefs.h. */
  4832. _ACEOF
  4833. cat confdefs.h >>conftest.$ac_ext
  4834. cat >>conftest.$ac_ext <<_ACEOF
  4835. /* end confdefs.h. */
  4836. # define __EXTENSIONS__ 1
  4837. $ac_includes_default
  4838. int
  4839. main ()
  4840. {
  4841. ;
  4842. return 0;
  4843. }
  4844. _ACEOF
  4845. rm -f conftest.$ac_objext
  4846. if { (ac_try="$ac_compile"
  4847. case "(($ac_try" in
  4848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4849. *) ac_try_echo=$ac_try;;
  4850. esac
  4851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4852. (eval "$ac_compile") 2>conftest.er1
  4853. ac_status=$?
  4854. grep -v '^ *+' conftest.er1 >conftest.err
  4855. rm -f conftest.er1
  4856. cat conftest.err >&5
  4857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4858. (exit $ac_status); } && {
  4859. test -z "$ac_cxx_werror_flag" ||
  4860. test ! -s conftest.err
  4861. } && test -s conftest.$ac_objext; then
  4862. ac_cv_safe_to_define___extensions__=yes
  4863. else
  4864. echo "$as_me: failed program was:" >&5
  4865. sed 's/^/| /' conftest.$ac_ext >&5
  4866. ac_cv_safe_to_define___extensions__=no
  4867. fi
  4868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4869. fi
  4870. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4871. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4872. test $ac_cv_safe_to_define___extensions__ = yes &&
  4873. cat >>confdefs.h <<\_ACEOF
  4874. #define __EXTENSIONS__ 1
  4875. _ACEOF
  4876. cat >>confdefs.h <<\_ACEOF
  4877. #define _POSIX_PTHREAD_SEMANTICS 1
  4878. _ACEOF
  4879. cat >>confdefs.h <<\_ACEOF
  4880. #define _TANDEM_SOURCE 1
  4881. _ACEOF
  4882. # Checks for libraries.
  4883. if test "x$with_libxml2" = "xyes"; then
  4884. # Check whether --with-xml-prefix was given.
  4885. if test "${with_xml_prefix+set}" = set; then
  4886. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4887. else
  4888. xml_config_prefix=""
  4889. fi
  4890. # Check whether --with-xml-exec-prefix was given.
  4891. if test "${with_xml_exec_prefix+set}" = set; then
  4892. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4893. else
  4894. xml_config_exec_prefix=""
  4895. fi
  4896. # Check whether --enable-xmltest was given.
  4897. if test "${enable_xmltest+set}" = set; then
  4898. enableval=$enable_xmltest;
  4899. else
  4900. enable_xmltest=yes
  4901. fi
  4902. if test x$xml_config_exec_prefix != x ; then
  4903. xml_config_args="$xml_config_args"
  4904. if test x${XML2_CONFIG+set} != xset ; then
  4905. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4906. fi
  4907. fi
  4908. if test x$xml_config_prefix != x ; then
  4909. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4910. if test x${XML2_CONFIG+set} != xset ; then
  4911. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4912. fi
  4913. fi
  4914. # Extract the first word of "xml2-config", so it can be a program name with args.
  4915. set dummy xml2-config; ac_word=$2
  4916. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4917. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4918. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4919. echo $ECHO_N "(cached) $ECHO_C" >&6
  4920. else
  4921. case $XML2_CONFIG in
  4922. [\\/]* | ?:[\\/]*)
  4923. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4924. ;;
  4925. *)
  4926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4927. for as_dir in $PATH
  4928. do
  4929. IFS=$as_save_IFS
  4930. test -z "$as_dir" && as_dir=.
  4931. for ac_exec_ext in '' $ac_executable_extensions; do
  4932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4933. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4934. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4935. break 2
  4936. fi
  4937. done
  4938. done
  4939. IFS=$as_save_IFS
  4940. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4941. ;;
  4942. esac
  4943. fi
  4944. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4945. if test -n "$XML2_CONFIG"; then
  4946. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4947. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4948. else
  4949. { echo "$as_me:$LINENO: result: no" >&5
  4950. echo "${ECHO_T}no" >&6; }
  4951. fi
  4952. min_xml_version=2.6.24
  4953. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4954. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4955. no_xml=""
  4956. if test "$XML2_CONFIG" = "no" ; then
  4957. no_xml=yes
  4958. else
  4959. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4960. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4961. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4962. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4963. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4964. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4965. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4966. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4967. if test "x$enable_xmltest" = "xyes" ; then
  4968. ac_save_CPPFLAGS="$CPPFLAGS"
  4969. ac_save_LIBS="$LIBS"
  4970. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4971. LIBS="$XML_LIBS $LIBS"
  4972. rm -f conf.xmltest
  4973. if test "$cross_compiling" = yes; then
  4974. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4975. else
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. #include <stdlib.h>
  4983. #include <stdio.h>
  4984. #include <string.h>
  4985. #include <libxml/xmlversion.h>
  4986. int
  4987. main()
  4988. {
  4989. int xml_major_version, xml_minor_version, xml_micro_version;
  4990. int major, minor, micro;
  4991. char *tmp_version;
  4992. system("touch conf.xmltest");
  4993. /* Capture xml2-config output via autoconf/configure variables */
  4994. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4995. tmp_version = (char *)strdup("$min_xml_version");
  4996. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4997. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4998. exit(1);
  4999. }
  5000. free(tmp_version);
  5001. /* Capture the version information from the header files */
  5002. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5003. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5004. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5005. exit(1);
  5006. }
  5007. free(tmp_version);
  5008. /* Compare xml2-config output to the libxml headers */
  5009. if ((xml_major_version != $xml_config_major_version) ||
  5010. (xml_minor_version != $xml_config_minor_version) ||
  5011. (xml_micro_version != $xml_config_micro_version))
  5012. {
  5013. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5014. xml_major_version, xml_minor_version, xml_micro_version);
  5015. printf("*** xml2-config (version %d.%d.%d)\n",
  5016. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5017. return 1;
  5018. }
  5019. /* Compare the headers to the library to make sure we match */
  5020. /* Less than ideal -- doesn't provide us with return value feedback,
  5021. * only exits if there's a serious mismatch between header and library.
  5022. */
  5023. LIBXML_TEST_VERSION;
  5024. /* Test that the library is greater than our minimum version */
  5025. if ((xml_major_version > major) ||
  5026. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5027. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5028. (xml_micro_version >= micro)))
  5029. {
  5030. return 0;
  5031. }
  5032. else
  5033. {
  5034. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5035. xml_major_version, xml_minor_version, xml_micro_version);
  5036. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5037. major, minor, micro);
  5038. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5039. printf("***\n");
  5040. printf("*** If you have already installed a sufficiently new version, this error\n");
  5041. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5042. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5043. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5044. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5045. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5046. printf("*** so that the correct libraries are found at run-time))\n");
  5047. }
  5048. return 1;
  5049. }
  5050. _ACEOF
  5051. rm -f conftest$ac_exeext
  5052. if { (ac_try="$ac_link"
  5053. case "(($ac_try" in
  5054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5055. *) ac_try_echo=$ac_try;;
  5056. esac
  5057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5058. (eval "$ac_link") 2>&5
  5059. ac_status=$?
  5060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5061. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5062. { (case "(($ac_try" in
  5063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5064. *) ac_try_echo=$ac_try;;
  5065. esac
  5066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5067. (eval "$ac_try") 2>&5
  5068. ac_status=$?
  5069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5070. (exit $ac_status); }; }; then
  5071. :
  5072. else
  5073. echo "$as_me: program exited with status $ac_status" >&5
  5074. echo "$as_me: failed program was:" >&5
  5075. sed 's/^/| /' conftest.$ac_ext >&5
  5076. ( exit $ac_status )
  5077. no_xml=yes
  5078. fi
  5079. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5080. fi
  5081. CPPFLAGS="$ac_save_CPPFLAGS"
  5082. LIBS="$ac_save_LIBS"
  5083. fi
  5084. fi
  5085. if test "x$no_xml" = x ; then
  5086. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5087. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5088. have_libxml2=yes
  5089. else
  5090. { echo "$as_me:$LINENO: result: no" >&5
  5091. echo "${ECHO_T}no" >&6; }
  5092. if test "$XML2_CONFIG" = "no" ; then
  5093. echo "*** The xml2-config script installed by LIBXML could not be found"
  5094. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5095. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5096. echo "*** full path to xml2-config."
  5097. else
  5098. if test -f conf.xmltest ; then
  5099. :
  5100. else
  5101. echo "*** Could not run libxml test program, checking why..."
  5102. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5103. LIBS="$LIBS $XML_LIBS"
  5104. cat >conftest.$ac_ext <<_ACEOF
  5105. /* confdefs.h. */
  5106. _ACEOF
  5107. cat confdefs.h >>conftest.$ac_ext
  5108. cat >>conftest.$ac_ext <<_ACEOF
  5109. /* end confdefs.h. */
  5110. #include <libxml/xmlversion.h>
  5111. #include <stdio.h>
  5112. int
  5113. main ()
  5114. {
  5115. LIBXML_TEST_VERSION; return 0;
  5116. ;
  5117. return 0;
  5118. }
  5119. _ACEOF
  5120. rm -f conftest.$ac_objext conftest$ac_exeext
  5121. if { (ac_try="$ac_link"
  5122. case "(($ac_try" in
  5123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5124. *) ac_try_echo=$ac_try;;
  5125. esac
  5126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5127. (eval "$ac_link") 2>conftest.er1
  5128. ac_status=$?
  5129. grep -v '^ *+' conftest.er1 >conftest.err
  5130. rm -f conftest.er1
  5131. cat conftest.err >&5
  5132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5133. (exit $ac_status); } && {
  5134. test -z "$ac_cxx_werror_flag" ||
  5135. test ! -s conftest.err
  5136. } && test -s conftest$ac_exeext &&
  5137. $as_test_x conftest$ac_exeext; then
  5138. echo "*** The test program compiled, but did not run. This usually means"
  5139. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5140. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5141. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5142. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5143. echo "*** is required on your system"
  5144. echo "***"
  5145. echo "*** If you have an old version installed, it is best to remove it, although"
  5146. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5147. else
  5148. echo "$as_me: failed program was:" >&5
  5149. sed 's/^/| /' conftest.$ac_ext >&5
  5150. echo "*** The test program failed to compile or link. See the file config.log for the"
  5151. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5152. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5153. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5154. fi
  5155. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5156. conftest$ac_exeext conftest.$ac_ext
  5157. CPPFLAGS="$ac_save_CPPFLAGS"
  5158. LIBS="$ac_save_LIBS"
  5159. fi
  5160. fi
  5161. XML_CPPFLAGS=""
  5162. XML_LIBS=""
  5163. :
  5164. fi
  5165. rm -f conf.xmltest
  5166. if test "x$have_libxml2" = "xyes"; then
  5167. cat >>confdefs.h <<\_ACEOF
  5168. #define HAVE_LIBXML2 1
  5169. _ACEOF
  5170. fi
  5171. fi
  5172. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5173. # Check whether --with-libexpat-prefix was given.
  5174. if test "${with_libexpat_prefix+set}" = set; then
  5175. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5176. else
  5177. libexpat_prefix=""
  5178. fi
  5179. if test "x$libexpat_prefix" = "x"; then
  5180. libexpat_prefix="/usr"
  5181. fi
  5182. libexpat_prefix_lib=$libexpat_prefix/lib
  5183. libexpat_prefix_include=$libexpat_prefix/include
  5184. LIBS_save=$LIBS
  5185. CPPFLAGS_save=$CPPFLAGS
  5186. LIBS="-L$libexpat_prefix_lib $LIBS"
  5187. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5188. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5189. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5190. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5191. echo $ECHO_N "(cached) $ECHO_C" >&6
  5192. else
  5193. ac_check_lib_save_LIBS=$LIBS
  5194. LIBS="-lexpat $LIBS"
  5195. cat >conftest.$ac_ext <<_ACEOF
  5196. /* confdefs.h. */
  5197. _ACEOF
  5198. cat confdefs.h >>conftest.$ac_ext
  5199. cat >>conftest.$ac_ext <<_ACEOF
  5200. /* end confdefs.h. */
  5201. /* Override any GCC internal prototype to avoid an error.
  5202. Use char because int might match the return type of a GCC
  5203. builtin and then its argument prototype would still apply. */
  5204. #ifdef __cplusplus
  5205. extern "C"
  5206. #endif
  5207. char XML_ParserCreate ();
  5208. int
  5209. main ()
  5210. {
  5211. return XML_ParserCreate ();
  5212. ;
  5213. return 0;
  5214. }
  5215. _ACEOF
  5216. rm -f conftest.$ac_objext conftest$ac_exeext
  5217. if { (ac_try="$ac_link"
  5218. case "(($ac_try" in
  5219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5220. *) ac_try_echo=$ac_try;;
  5221. esac
  5222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5223. (eval "$ac_link") 2>conftest.er1
  5224. ac_status=$?
  5225. grep -v '^ *+' conftest.er1 >conftest.err
  5226. rm -f conftest.er1
  5227. cat conftest.err >&5
  5228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5229. (exit $ac_status); } && {
  5230. test -z "$ac_cxx_werror_flag" ||
  5231. test ! -s conftest.err
  5232. } && test -s conftest$ac_exeext &&
  5233. $as_test_x conftest$ac_exeext; then
  5234. ac_cv_lib_expat_XML_ParserCreate=yes
  5235. else
  5236. echo "$as_me: failed program was:" >&5
  5237. sed 's/^/| /' conftest.$ac_ext >&5
  5238. ac_cv_lib_expat_XML_ParserCreate=no
  5239. fi
  5240. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5241. conftest$ac_exeext conftest.$ac_ext
  5242. LIBS=$ac_check_lib_save_LIBS
  5243. fi
  5244. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5245. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5246. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5247. have_libexpat=yes
  5248. fi
  5249. if test "x$have_libexpat" = "xyes"; then
  5250. cat >>confdefs.h <<\_ACEOF
  5251. #define HAVE_LIBEXPAT 1
  5252. _ACEOF
  5253. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5254. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5255. fi
  5256. LIBS=$LIBS_save
  5257. CPPFLAGS=$CPPFLAGS_save
  5258. fi
  5259. if test "x$with_gnutls" = "xyes"; then
  5260. # Check whether --with-libgnutls-prefix was given.
  5261. if test "${with_libgnutls_prefix+set}" = set; then
  5262. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5263. else
  5264. libgnutls_config_prefix=""
  5265. fi
  5266. if test x$libgnutls_config_prefix != x ; then
  5267. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5268. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5269. fi
  5270. fi
  5271. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5272. set dummy libgnutls-config; ac_word=$2
  5273. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5274. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5275. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5276. echo $ECHO_N "(cached) $ECHO_C" >&6
  5277. else
  5278. case $LIBGNUTLS_CONFIG in
  5279. [\\/]* | ?:[\\/]*)
  5280. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5281. ;;
  5282. *)
  5283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5284. for as_dir in $PATH
  5285. do
  5286. IFS=$as_save_IFS
  5287. test -z "$as_dir" && as_dir=.
  5288. for ac_exec_ext in '' $ac_executable_extensions; do
  5289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5290. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5292. break 2
  5293. fi
  5294. done
  5295. done
  5296. IFS=$as_save_IFS
  5297. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5298. ;;
  5299. esac
  5300. fi
  5301. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5302. if test -n "$LIBGNUTLS_CONFIG"; then
  5303. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5304. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5305. else
  5306. { echo "$as_me:$LINENO: result: no" >&5
  5307. echo "${ECHO_T}no" >&6; }
  5308. fi
  5309. min_libgnutls_version=1.2.9
  5310. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5311. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5312. no_libgnutls=""
  5313. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5314. no_libgnutls=yes
  5315. else
  5316. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5317. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5318. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5319. ac_save_CFLAGS="$CFLAGS"
  5320. ac_save_LIBS="$LIBS"
  5321. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5322. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5323. rm -f conf.libgnutlstest
  5324. if test "$cross_compiling" = yes; then
  5325. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5326. else
  5327. cat >conftest.$ac_ext <<_ACEOF
  5328. /* confdefs.h. */
  5329. _ACEOF
  5330. cat confdefs.h >>conftest.$ac_ext
  5331. cat >>conftest.$ac_ext <<_ACEOF
  5332. /* end confdefs.h. */
  5333. #include <stdio.h>
  5334. #include <stdlib.h>
  5335. #include <string.h>
  5336. #include <gnutls/gnutls.h>
  5337. int
  5338. main ()
  5339. {
  5340. system ("touch conf.libgnutlstest");
  5341. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5342. {
  5343. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5344. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5345. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5346. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5347. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5348. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5349. printf("*** required on your system.\n");
  5350. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5351. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5352. printf("*** before re-running configure\n");
  5353. }
  5354. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5355. {
  5356. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5357. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5358. }
  5359. else
  5360. {
  5361. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5362. {
  5363. return 0;
  5364. }
  5365. else
  5366. {
  5367. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5368. gnutls_check_version(NULL) );
  5369. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5370. "$min_libgnutls_version" );
  5371. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5372. printf("*** \n");
  5373. printf("*** If you have already installed a sufficiently new version, this error\n");
  5374. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5375. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5376. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5377. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5378. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5379. printf("*** so that the correct libraries are found at run-time))\n");
  5380. }
  5381. }
  5382. return 1;
  5383. }
  5384. _ACEOF
  5385. rm -f conftest$ac_exeext
  5386. if { (ac_try="$ac_link"
  5387. case "(($ac_try" in
  5388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5389. *) ac_try_echo=$ac_try;;
  5390. esac
  5391. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5392. (eval "$ac_link") 2>&5
  5393. ac_status=$?
  5394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5395. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5396. { (case "(($ac_try" in
  5397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5398. *) ac_try_echo=$ac_try;;
  5399. esac
  5400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5401. (eval "$ac_try") 2>&5
  5402. ac_status=$?
  5403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5404. (exit $ac_status); }; }; then
  5405. :
  5406. else
  5407. echo "$as_me: program exited with status $ac_status" >&5
  5408. echo "$as_me: failed program was:" >&5
  5409. sed 's/^/| /' conftest.$ac_ext >&5
  5410. ( exit $ac_status )
  5411. no_libgnutls=yes
  5412. fi
  5413. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5414. fi
  5415. CFLAGS="$ac_save_CFLAGS"
  5416. LIBS="$ac_save_LIBS"
  5417. fi
  5418. if test "x$no_libgnutls" = x ; then
  5419. { echo "$as_me:$LINENO: result: yes" >&5
  5420. echo "${ECHO_T}yes" >&6; }
  5421. have_libgnutls=yes
  5422. else
  5423. if test -f conf.libgnutlstest ; then
  5424. :
  5425. else
  5426. { echo "$as_me:$LINENO: result: no" >&5
  5427. echo "${ECHO_T}no" >&6; }
  5428. fi
  5429. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5430. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5431. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5432. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5433. echo "*** full path to libgnutls-config."
  5434. else
  5435. if test -f conf.libgnutlstest ; then
  5436. :
  5437. else
  5438. echo "*** Could not run libgnutls test program, checking why..."
  5439. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5440. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5441. cat >conftest.$ac_ext <<_ACEOF
  5442. /* confdefs.h. */
  5443. _ACEOF
  5444. cat confdefs.h >>conftest.$ac_ext
  5445. cat >>conftest.$ac_ext <<_ACEOF
  5446. /* end confdefs.h. */
  5447. #include <stdio.h>
  5448. #include <stdlib.h>
  5449. #include <string.h>
  5450. #include <gnutls/gnutls.h>
  5451. int
  5452. main ()
  5453. {
  5454. return !!gnutls_check_version(NULL);
  5455. ;
  5456. return 0;
  5457. }
  5458. _ACEOF
  5459. rm -f conftest.$ac_objext conftest$ac_exeext
  5460. if { (ac_try="$ac_link"
  5461. case "(($ac_try" in
  5462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5463. *) ac_try_echo=$ac_try;;
  5464. esac
  5465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5466. (eval "$ac_link") 2>conftest.er1
  5467. ac_status=$?
  5468. grep -v '^ *+' conftest.er1 >conftest.err
  5469. rm -f conftest.er1
  5470. cat conftest.err >&5
  5471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5472. (exit $ac_status); } && {
  5473. test -z "$ac_cxx_werror_flag" ||
  5474. test ! -s conftest.err
  5475. } && test -s conftest$ac_exeext &&
  5476. $as_test_x conftest$ac_exeext; then
  5477. echo "*** The test program compiled, but did not run. This usually means"
  5478. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5479. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5480. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5481. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5482. echo "*** is required on your system"
  5483. echo "***"
  5484. echo "*** If you have an old version installed, it is best to remove it, although"
  5485. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5486. echo "***"
  5487. else
  5488. echo "$as_me: failed program was:" >&5
  5489. sed 's/^/| /' conftest.$ac_ext >&5
  5490. echo "*** The test program failed to compile or link. See the file config.log for the"
  5491. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5492. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5493. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5494. fi
  5495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5496. conftest$ac_exeext conftest.$ac_ext
  5497. CFLAGS="$ac_save_CFLAGS"
  5498. LIBS="$ac_save_LIBS"
  5499. fi
  5500. fi
  5501. LIBGNUTLS_CFLAGS=""
  5502. LIBGNUTLS_LIBS=""
  5503. :
  5504. fi
  5505. rm -f conf.libgnutlstest
  5506. if test "x$have_libgnutls" = "xyes"; then
  5507. cat >>confdefs.h <<\_ACEOF
  5508. #define HAVE_LIBGNUTLS 1
  5509. _ACEOF
  5510. fi
  5511. fi
  5512. if test "x$have_libgnutls" = "xyes"; then
  5513. # Check whether --with-libgcrypt-prefix was given.
  5514. if test "${with_libgcrypt_prefix+set}" = set; then
  5515. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5516. else
  5517. libgcrypt_config_prefix=""
  5518. fi
  5519. if test x$libgcrypt_config_prefix != x ; then
  5520. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5521. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5522. fi
  5523. fi
  5524. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5525. set dummy libgcrypt-config; ac_word=$2
  5526. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5527. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5528. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5529. echo $ECHO_N "(cached) $ECHO_C" >&6
  5530. else
  5531. case $LIBGCRYPT_CONFIG in
  5532. [\\/]* | ?:[\\/]*)
  5533. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5534. ;;
  5535. *)
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5543. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5544. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5551. ;;
  5552. esac
  5553. fi
  5554. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5555. if test -n "$LIBGCRYPT_CONFIG"; then
  5556. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5557. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5558. else
  5559. { echo "$as_me:$LINENO: result: no" >&5
  5560. echo "${ECHO_T}no" >&6; }
  5561. fi
  5562. tmp=1.2.2
  5563. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5564. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5565. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5566. else
  5567. req_libgcrypt_api=0
  5568. min_libgcrypt_version="$tmp"
  5569. fi
  5570. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5571. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5572. ok=no
  5573. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5574. req_major=`echo $min_libgcrypt_version | \
  5575. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5576. req_minor=`echo $min_libgcrypt_version | \
  5577. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5578. req_micro=`echo $min_libgcrypt_version | \
  5579. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5580. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5581. major=`echo $libgcrypt_config_version | \
  5582. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5583. minor=`echo $libgcrypt_config_version | \
  5584. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5585. micro=`echo $libgcrypt_config_version | \
  5586. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5587. if test "$major" -gt "$req_major"; then
  5588. ok=yes
  5589. else
  5590. if test "$major" -eq "$req_major"; then
  5591. if test "$minor" -gt "$req_minor"; then
  5592. ok=yes
  5593. else
  5594. if test "$minor" -eq "$req_minor"; then
  5595. if test "$micro" -ge "$req_micro"; then
  5596. ok=yes
  5597. fi
  5598. fi
  5599. fi
  5600. fi
  5601. fi
  5602. fi
  5603. if test $ok = yes; then
  5604. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5605. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5606. else
  5607. { echo "$as_me:$LINENO: result: no" >&5
  5608. echo "${ECHO_T}no" >&6; }
  5609. fi
  5610. if test $ok = yes; then
  5611. # If we have a recent libgcrypt, we should also check that the
  5612. # API is compatible
  5613. if test "$req_libgcrypt_api" -gt 0 ; then
  5614. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5615. if test "$tmp" -gt 0 ; then
  5616. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5617. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5618. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5619. { echo "$as_me:$LINENO: result: okay" >&5
  5620. echo "${ECHO_T}okay" >&6; }
  5621. else
  5622. ok=no
  5623. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5624. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5625. fi
  5626. fi
  5627. fi
  5628. fi
  5629. if test $ok = yes; then
  5630. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5631. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5632. have_libgcrypt=yes
  5633. else
  5634. LIBGCRYPT_CFLAGS=""
  5635. LIBGCRYPT_LIBS=""
  5636. :
  5637. fi
  5638. if test "x$have_libgcrypt" = "xyes"; then
  5639. cat >>confdefs.h <<\_ACEOF
  5640. #define HAVE_LIBGCRYPT 1
  5641. _ACEOF
  5642. fi
  5643. fi
  5644. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5645. # Check whether --with-openssl-prefix was given.
  5646. if test "${with_openssl_prefix+set}" = set; then
  5647. withval=$with_openssl_prefix; openssl_prefix=$withval
  5648. else
  5649. openssl_prefix=""
  5650. fi
  5651. if test "x$openssl_prefix" = "x"; then
  5652. openssl_prefix="/usr/local"
  5653. fi
  5654. openssl_prefix_lib=$openssl_prefix/lib
  5655. openssl_prefix_include=$openssl_prefix/include
  5656. LIBS_save=$LIBS
  5657. CPPFLAGS_save=$CPPFLAGS
  5658. LIBS="-L$openssl_prefix_lib $LIBS"
  5659. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5660. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5661. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5662. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5663. echo $ECHO_N "(cached) $ECHO_C" >&6
  5664. else
  5665. ac_check_lib_save_LIBS=$LIBS
  5666. LIBS="-lssl $LIBS"
  5667. cat >conftest.$ac_ext <<_ACEOF
  5668. /* confdefs.h. */
  5669. _ACEOF
  5670. cat confdefs.h >>conftest.$ac_ext
  5671. cat >>conftest.$ac_ext <<_ACEOF
  5672. /* end confdefs.h. */
  5673. /* Override any GCC internal prototype to avoid an error.
  5674. Use char because int might match the return type of a GCC
  5675. builtin and then its argument prototype would still apply. */
  5676. #ifdef __cplusplus
  5677. extern "C"
  5678. #endif
  5679. char SSL_library_init ();
  5680. int
  5681. main ()
  5682. {
  5683. return SSL_library_init ();
  5684. ;
  5685. return 0;
  5686. }
  5687. _ACEOF
  5688. rm -f conftest.$ac_objext conftest$ac_exeext
  5689. if { (ac_try="$ac_link"
  5690. case "(($ac_try" in
  5691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5692. *) ac_try_echo=$ac_try;;
  5693. esac
  5694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5695. (eval "$ac_link") 2>conftest.er1
  5696. ac_status=$?
  5697. grep -v '^ *+' conftest.er1 >conftest.err
  5698. rm -f conftest.er1
  5699. cat conftest.err >&5
  5700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5701. (exit $ac_status); } && {
  5702. test -z "$ac_cxx_werror_flag" ||
  5703. test ! -s conftest.err
  5704. } && test -s conftest$ac_exeext &&
  5705. $as_test_x conftest$ac_exeext; then
  5706. ac_cv_lib_ssl_SSL_library_init=yes
  5707. else
  5708. echo "$as_me: failed program was:" >&5
  5709. sed 's/^/| /' conftest.$ac_ext >&5
  5710. ac_cv_lib_ssl_SSL_library_init=no
  5711. fi
  5712. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5713. conftest$ac_exeext conftest.$ac_ext
  5714. LIBS=$ac_check_lib_save_LIBS
  5715. fi
  5716. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5717. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5718. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5719. have_openssl=yes; LIBS="-lssl $LIBS"
  5720. fi
  5721. if test "x$have_openssl" = "xyes"; then
  5722. have_openssl=no
  5723. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5724. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5725. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5726. echo $ECHO_N "(cached) $ECHO_C" >&6
  5727. else
  5728. ac_check_lib_save_LIBS=$LIBS
  5729. LIBS="-lcrypto $LIBS"
  5730. cat >conftest.$ac_ext <<_ACEOF
  5731. /* confdefs.h. */
  5732. _ACEOF
  5733. cat confdefs.h >>conftest.$ac_ext
  5734. cat >>conftest.$ac_ext <<_ACEOF
  5735. /* end confdefs.h. */
  5736. int
  5737. main ()
  5738. {
  5739. return main ();
  5740. ;
  5741. return 0;
  5742. }
  5743. _ACEOF
  5744. rm -f conftest.$ac_objext conftest$ac_exeext
  5745. if { (ac_try="$ac_link"
  5746. case "(($ac_try" in
  5747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5748. *) ac_try_echo=$ac_try;;
  5749. esac
  5750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5751. (eval "$ac_link") 2>conftest.er1
  5752. ac_status=$?
  5753. grep -v '^ *+' conftest.er1 >conftest.err
  5754. rm -f conftest.er1
  5755. cat conftest.err >&5
  5756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757. (exit $ac_status); } && {
  5758. test -z "$ac_cxx_werror_flag" ||
  5759. test ! -s conftest.err
  5760. } && test -s conftest$ac_exeext &&
  5761. $as_test_x conftest$ac_exeext; then
  5762. ac_cv_lib_crypto_main=yes
  5763. else
  5764. echo "$as_me: failed program was:" >&5
  5765. sed 's/^/| /' conftest.$ac_ext >&5
  5766. ac_cv_lib_crypto_main=no
  5767. fi
  5768. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5769. conftest$ac_exeext conftest.$ac_ext
  5770. LIBS=$ac_check_lib_save_LIBS
  5771. fi
  5772. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5773. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5774. if test $ac_cv_lib_crypto_main = yes; then
  5775. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5776. fi
  5777. if test "x$have_openssl" = "xyes"; then
  5778. cat >>confdefs.h <<\_ACEOF
  5779. #define HAVE_LIBSSL 1
  5780. _ACEOF
  5781. for ac_func in EVP_DigestInit_ex
  5782. do
  5783. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5784. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5785. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5786. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5787. echo $ECHO_N "(cached) $ECHO_C" >&6
  5788. else
  5789. cat >conftest.$ac_ext <<_ACEOF
  5790. /* confdefs.h. */
  5791. _ACEOF
  5792. cat confdefs.h >>conftest.$ac_ext
  5793. cat >>conftest.$ac_ext <<_ACEOF
  5794. /* end confdefs.h. */
  5795. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5796. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5797. #define $ac_func innocuous_$ac_func
  5798. /* System header to define __stub macros and hopefully few prototypes,
  5799. which can conflict with char $ac_func (); below.
  5800. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5801. <limits.h> exists even on freestanding compilers. */
  5802. #ifdef __STDC__
  5803. # include <limits.h>
  5804. #else
  5805. # include <assert.h>
  5806. #endif
  5807. #undef $ac_func
  5808. /* Override any GCC internal prototype to avoid an error.
  5809. Use char because int might match the return type of a GCC
  5810. builtin and then its argument prototype would still apply. */
  5811. #ifdef __cplusplus
  5812. extern "C"
  5813. #endif
  5814. char $ac_func ();
  5815. /* The GNU C library defines this for functions which it implements
  5816. to always fail with ENOSYS. Some functions are actually named
  5817. something starting with __ and the normal name is an alias. */
  5818. #if defined __stub_$ac_func || defined __stub___$ac_func
  5819. choke me
  5820. #endif
  5821. int
  5822. main ()
  5823. {
  5824. return $ac_func ();
  5825. ;
  5826. return 0;
  5827. }
  5828. _ACEOF
  5829. rm -f conftest.$ac_objext conftest$ac_exeext
  5830. if { (ac_try="$ac_link"
  5831. case "(($ac_try" in
  5832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5833. *) ac_try_echo=$ac_try;;
  5834. esac
  5835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5836. (eval "$ac_link") 2>conftest.er1
  5837. ac_status=$?
  5838. grep -v '^ *+' conftest.er1 >conftest.err
  5839. rm -f conftest.er1
  5840. cat conftest.err >&5
  5841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5842. (exit $ac_status); } && {
  5843. test -z "$ac_cxx_werror_flag" ||
  5844. test ! -s conftest.err
  5845. } && test -s conftest$ac_exeext &&
  5846. $as_test_x conftest$ac_exeext; then
  5847. eval "$as_ac_var=yes"
  5848. else
  5849. echo "$as_me: failed program was:" >&5
  5850. sed 's/^/| /' conftest.$ac_ext >&5
  5851. eval "$as_ac_var=no"
  5852. fi
  5853. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5854. conftest$ac_exeext conftest.$ac_ext
  5855. fi
  5856. ac_res=`eval echo '${'$as_ac_var'}'`
  5857. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5858. echo "${ECHO_T}$ac_res" >&6; }
  5859. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5860. cat >>confdefs.h <<_ACEOF
  5861. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5862. _ACEOF
  5863. have_digestinit_ex=yes
  5864. fi
  5865. done
  5866. if test "x$have_digestinit_ex" = "x"; then
  5867. cat >>confdefs.h <<\_ACEOF
  5868. #define HAVE_OLD_LIBSSL 1
  5869. _ACEOF
  5870. fi
  5871. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5872. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5873. for ac_func in EVP_sha256
  5874. do
  5875. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5876. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5877. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5878. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5879. echo $ECHO_N "(cached) $ECHO_C" >&6
  5880. else
  5881. cat >conftest.$ac_ext <<_ACEOF
  5882. /* confdefs.h. */
  5883. _ACEOF
  5884. cat confdefs.h >>conftest.$ac_ext
  5885. cat >>conftest.$ac_ext <<_ACEOF
  5886. /* end confdefs.h. */
  5887. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5888. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5889. #define $ac_func innocuous_$ac_func
  5890. /* System header to define __stub macros and hopefully few prototypes,
  5891. which can conflict with char $ac_func (); below.
  5892. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5893. <limits.h> exists even on freestanding compilers. */
  5894. #ifdef __STDC__
  5895. # include <limits.h>
  5896. #else
  5897. # include <assert.h>
  5898. #endif
  5899. #undef $ac_func
  5900. /* Override any GCC internal prototype to avoid an error.
  5901. Use char because int might match the return type of a GCC
  5902. builtin and then its argument prototype would still apply. */
  5903. #ifdef __cplusplus
  5904. extern "C"
  5905. #endif
  5906. char $ac_func ();
  5907. /* The GNU C library defines this for functions which it implements
  5908. to always fail with ENOSYS. Some functions are actually named
  5909. something starting with __ and the normal name is an alias. */
  5910. #if defined __stub_$ac_func || defined __stub___$ac_func
  5911. choke me
  5912. #endif
  5913. int
  5914. main ()
  5915. {
  5916. return $ac_func ();
  5917. ;
  5918. return 0;
  5919. }
  5920. _ACEOF
  5921. rm -f conftest.$ac_objext conftest$ac_exeext
  5922. if { (ac_try="$ac_link"
  5923. case "(($ac_try" in
  5924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5925. *) ac_try_echo=$ac_try;;
  5926. esac
  5927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5928. (eval "$ac_link") 2>conftest.er1
  5929. ac_status=$?
  5930. grep -v '^ *+' conftest.er1 >conftest.err
  5931. rm -f conftest.er1
  5932. cat conftest.err >&5
  5933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5934. (exit $ac_status); } && {
  5935. test -z "$ac_cxx_werror_flag" ||
  5936. test ! -s conftest.err
  5937. } && test -s conftest$ac_exeext &&
  5938. $as_test_x conftest$ac_exeext; then
  5939. eval "$as_ac_var=yes"
  5940. else
  5941. echo "$as_me: failed program was:" >&5
  5942. sed 's/^/| /' conftest.$ac_ext >&5
  5943. eval "$as_ac_var=no"
  5944. fi
  5945. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5946. conftest$ac_exeext conftest.$ac_ext
  5947. fi
  5948. ac_res=`eval echo '${'$as_ac_var'}'`
  5949. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5950. echo "${ECHO_T}$ac_res" >&6; }
  5951. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5952. cat >>confdefs.h <<_ACEOF
  5953. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5954. _ACEOF
  5955. fi
  5956. done
  5957. fi
  5958. fi
  5959. LIBS=$LIBS_save
  5960. CPPFLAGS=$CPPFLAGS_save
  5961. fi
  5962. if test "x$with_libcares" = "xyes"; then
  5963. # Check whether --with-libcares-prefix was given.
  5964. if test "${with_libcares_prefix+set}" = set; then
  5965. withval=$with_libcares_prefix; libcares_prefix=$withval
  5966. else
  5967. libcares_prefix=""
  5968. fi
  5969. if test "x$libcares_prefix" = "x"; then
  5970. libcares_prefix="/usr"
  5971. fi
  5972. libcares_prefix_lib=$libcares_prefix/lib
  5973. libcares_prefix_include=$libcares_prefix/include
  5974. LIBS_save=$LIBS
  5975. CPPFLAGS_save=$CPPFLAGS
  5976. LIBS="-L$libcares_prefix_lib $LIBS"
  5977. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5978. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5979. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5980. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5981. echo $ECHO_N "(cached) $ECHO_C" >&6
  5982. else
  5983. ac_check_lib_save_LIBS=$LIBS
  5984. LIBS="-lcares $LIBS"
  5985. cat >conftest.$ac_ext <<_ACEOF
  5986. /* confdefs.h. */
  5987. _ACEOF
  5988. cat confdefs.h >>conftest.$ac_ext
  5989. cat >>conftest.$ac_ext <<_ACEOF
  5990. /* end confdefs.h. */
  5991. /* Override any GCC internal prototype to avoid an error.
  5992. Use char because int might match the return type of a GCC
  5993. builtin and then its argument prototype would still apply. */
  5994. #ifdef __cplusplus
  5995. extern "C"
  5996. #endif
  5997. char ares_init ();
  5998. int
  5999. main ()
  6000. {
  6001. return ares_init ();
  6002. ;
  6003. return 0;
  6004. }
  6005. _ACEOF
  6006. rm -f conftest.$ac_objext conftest$ac_exeext
  6007. if { (ac_try="$ac_link"
  6008. case "(($ac_try" in
  6009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6010. *) ac_try_echo=$ac_try;;
  6011. esac
  6012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6013. (eval "$ac_link") 2>conftest.er1
  6014. ac_status=$?
  6015. grep -v '^ *+' conftest.er1 >conftest.err
  6016. rm -f conftest.er1
  6017. cat conftest.err >&5
  6018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019. (exit $ac_status); } && {
  6020. test -z "$ac_cxx_werror_flag" ||
  6021. test ! -s conftest.err
  6022. } && test -s conftest$ac_exeext &&
  6023. $as_test_x conftest$ac_exeext; then
  6024. ac_cv_lib_cares_ares_init=yes
  6025. else
  6026. echo "$as_me: failed program was:" >&5
  6027. sed 's/^/| /' conftest.$ac_ext >&5
  6028. ac_cv_lib_cares_ares_init=no
  6029. fi
  6030. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6031. conftest$ac_exeext conftest.$ac_ext
  6032. LIBS=$ac_check_lib_save_LIBS
  6033. fi
  6034. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6035. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6036. if test $ac_cv_lib_cares_ares_init = yes; then
  6037. have_libcares=yes
  6038. fi
  6039. if test "x$have_libcares" = "xyes"; then
  6040. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6041. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6042. cat >conftest.$ac_ext <<_ACEOF
  6043. /* confdefs.h. */
  6044. _ACEOF
  6045. cat confdefs.h >>conftest.$ac_ext
  6046. cat >>conftest.$ac_ext <<_ACEOF
  6047. /* end confdefs.h. */
  6048. #include <ares.h>
  6049. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6050. int
  6051. main ()
  6052. {
  6053. ares_channel channel;
  6054. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6055. ;
  6056. return 0;
  6057. }
  6058. _ACEOF
  6059. rm -f conftest.$ac_objext
  6060. if { (ac_try="$ac_compile"
  6061. case "(($ac_try" in
  6062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6063. *) ac_try_echo=$ac_try;;
  6064. esac
  6065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6066. (eval "$ac_compile") 2>conftest.er1
  6067. ac_status=$?
  6068. grep -v '^ *+' conftest.er1 >conftest.err
  6069. rm -f conftest.er1
  6070. cat conftest.err >&5
  6071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6072. (exit $ac_status); } && {
  6073. test -z "$ac_cxx_werror_flag" ||
  6074. test ! -s conftest.err
  6075. } && test -s conftest.$ac_objext; then
  6076. have_libcares1_5=yes
  6077. else
  6078. echo "$as_me: failed program was:" >&5
  6079. sed 's/^/| /' conftest.$ac_ext >&5
  6080. have_libcares1_5=no
  6081. fi
  6082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6083. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6084. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6085. if test "x$have_libcares1_5" = "xyes"; then
  6086. cat >>confdefs.h <<\_ACEOF
  6087. #define HAVE_LIBCARES1_5 1
  6088. _ACEOF
  6089. fi
  6090. cat >>confdefs.h <<\_ACEOF
  6091. #define HAVE_LIBCARES 1
  6092. _ACEOF
  6093. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6094. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6095. fi
  6096. LIBS=$LIBS_save
  6097. CPPFLAGS=$CPPFLAGS_save
  6098. fi
  6099. if test "x$have_libcares" = "x"; then
  6100. if test "x$with_libares" = "xyes"; then
  6101. # Check whether --with-libares-prefix was given.
  6102. if test "${with_libares_prefix+set}" = set; then
  6103. withval=$with_libares_prefix; libares_prefix=$withval
  6104. else
  6105. libares_prefix=""
  6106. fi
  6107. if test "x$libares_prefix" = "x"; then
  6108. libares_prefix="/usr"
  6109. fi
  6110. libares_prefix_lib=$libares_prefix/lib
  6111. libares_prefix_include=$libares_prefix/include
  6112. LIBS_save=$LIBS
  6113. CPPFLAGS_save=$CPPFLAGS
  6114. LIBS="-L$libares_prefix_lib $LIBS"
  6115. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6116. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6117. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6118. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6119. echo $ECHO_N "(cached) $ECHO_C" >&6
  6120. else
  6121. ac_check_lib_save_LIBS=$LIBS
  6122. LIBS="-lares $LIBS"
  6123. cat >conftest.$ac_ext <<_ACEOF
  6124. /* confdefs.h. */
  6125. _ACEOF
  6126. cat confdefs.h >>conftest.$ac_ext
  6127. cat >>conftest.$ac_ext <<_ACEOF
  6128. /* end confdefs.h. */
  6129. /* Override any GCC internal prototype to avoid an error.
  6130. Use char because int might match the return type of a GCC
  6131. builtin and then its argument prototype would still apply. */
  6132. #ifdef __cplusplus
  6133. extern "C"
  6134. #endif
  6135. char ares_init ();
  6136. int
  6137. main ()
  6138. {
  6139. return ares_init ();
  6140. ;
  6141. return 0;
  6142. }
  6143. _ACEOF
  6144. rm -f conftest.$ac_objext conftest$ac_exeext
  6145. if { (ac_try="$ac_link"
  6146. case "(($ac_try" in
  6147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6148. *) ac_try_echo=$ac_try;;
  6149. esac
  6150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6151. (eval "$ac_link") 2>conftest.er1
  6152. ac_status=$?
  6153. grep -v '^ *+' conftest.er1 >conftest.err
  6154. rm -f conftest.er1
  6155. cat conftest.err >&5
  6156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6157. (exit $ac_status); } && {
  6158. test -z "$ac_cxx_werror_flag" ||
  6159. test ! -s conftest.err
  6160. } && test -s conftest$ac_exeext &&
  6161. $as_test_x conftest$ac_exeext; then
  6162. ac_cv_lib_ares_ares_init=yes
  6163. else
  6164. echo "$as_me: failed program was:" >&5
  6165. sed 's/^/| /' conftest.$ac_ext >&5
  6166. ac_cv_lib_ares_ares_init=no
  6167. fi
  6168. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6169. conftest$ac_exeext conftest.$ac_ext
  6170. LIBS=$ac_check_lib_save_LIBS
  6171. fi
  6172. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6173. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6174. if test $ac_cv_lib_ares_ares_init = yes; then
  6175. have_libares=yes
  6176. fi
  6177. if test "x$have_libares" = "xyes"; then
  6178. cat >>confdefs.h <<\_ACEOF
  6179. #define HAVE_LIBARES 1
  6180. _ACEOF
  6181. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6182. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6183. fi
  6184. LIBS=$LIBS_save
  6185. CPPFLAGS=$CPPFLAGS_save
  6186. fi
  6187. fi
  6188. if test "x$with_libz" = "xyes"; then
  6189. # Check whether --with-libz-prefix was given.
  6190. if test "${with_libz_prefix+set}" = set; then
  6191. withval=$with_libz_prefix; libz_prefix=$withval
  6192. else
  6193. libz_prefix=""
  6194. fi
  6195. if test "x$libz_prefix" = "x"; then
  6196. libz_prefix="/usr"
  6197. fi
  6198. libz_prefix_lib=$libz_prefix/lib
  6199. libz_prefix_include=$libz_prefix/include
  6200. LIBS_save=$LIBS
  6201. CPPFLAGS_save=$CPPFLAGS
  6202. LIBS="-L$libz_prefix_lib $LIBS"
  6203. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6204. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6205. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6206. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6207. echo $ECHO_N "(cached) $ECHO_C" >&6
  6208. else
  6209. ac_check_lib_save_LIBS=$LIBS
  6210. LIBS="-lz $LIBS"
  6211. cat >conftest.$ac_ext <<_ACEOF
  6212. /* confdefs.h. */
  6213. _ACEOF
  6214. cat confdefs.h >>conftest.$ac_ext
  6215. cat >>conftest.$ac_ext <<_ACEOF
  6216. /* end confdefs.h. */
  6217. /* Override any GCC internal prototype to avoid an error.
  6218. Use char because int might match the return type of a GCC
  6219. builtin and then its argument prototype would still apply. */
  6220. #ifdef __cplusplus
  6221. extern "C"
  6222. #endif
  6223. char zlibVersion ();
  6224. int
  6225. main ()
  6226. {
  6227. return zlibVersion ();
  6228. ;
  6229. return 0;
  6230. }
  6231. _ACEOF
  6232. rm -f conftest.$ac_objext conftest$ac_exeext
  6233. if { (ac_try="$ac_link"
  6234. case "(($ac_try" in
  6235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6236. *) ac_try_echo=$ac_try;;
  6237. esac
  6238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6239. (eval "$ac_link") 2>conftest.er1
  6240. ac_status=$?
  6241. grep -v '^ *+' conftest.er1 >conftest.err
  6242. rm -f conftest.er1
  6243. cat conftest.err >&5
  6244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6245. (exit $ac_status); } && {
  6246. test -z "$ac_cxx_werror_flag" ||
  6247. test ! -s conftest.err
  6248. } && test -s conftest$ac_exeext &&
  6249. $as_test_x conftest$ac_exeext; then
  6250. ac_cv_lib_z_zlibVersion=yes
  6251. else
  6252. echo "$as_me: failed program was:" >&5
  6253. sed 's/^/| /' conftest.$ac_ext >&5
  6254. ac_cv_lib_z_zlibVersion=no
  6255. fi
  6256. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6257. conftest$ac_exeext conftest.$ac_ext
  6258. LIBS=$ac_check_lib_save_LIBS
  6259. fi
  6260. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6261. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6262. if test $ac_cv_lib_z_zlibVersion = yes; then
  6263. have_libz=yes
  6264. fi
  6265. if test "x$have_libz" = "xyes"; then
  6266. cat >>confdefs.h <<\_ACEOF
  6267. #define HAVE_LIBZ 1
  6268. _ACEOF
  6269. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6270. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6271. fi
  6272. LIBS=$LIBS_save
  6273. CPPFLAGS=$CPPFLAGS_save
  6274. fi
  6275. # Define variables based on the result of the checks for libraries.
  6276. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6277. cat >>confdefs.h <<\_ACEOF
  6278. #define ENABLE_SSL 1
  6279. _ACEOF
  6280. fi
  6281. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6282. cat >>confdefs.h <<\_ACEOF
  6283. #define ENABLE_MESSAGE_DIGEST 1
  6284. _ACEOF
  6285. if true; then
  6286. ENABLE_MESSAGE_DIGEST_TRUE=
  6287. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6288. else
  6289. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6290. ENABLE_MESSAGE_DIGEST_FALSE=
  6291. fi
  6292. enable_message_digest=yes
  6293. else
  6294. if false; then
  6295. ENABLE_MESSAGE_DIGEST_TRUE=
  6296. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6297. else
  6298. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6299. ENABLE_MESSAGE_DIGEST_FALSE=
  6300. fi
  6301. fi
  6302. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  6303. cat >>confdefs.h <<\_ACEOF
  6304. #define ENABLE_BITTORRENT 1
  6305. _ACEOF
  6306. if true; then
  6307. ENABLE_BITTORRENT_TRUE=
  6308. ENABLE_BITTORRENT_FALSE='#'
  6309. else
  6310. ENABLE_BITTORRENT_TRUE='#'
  6311. ENABLE_BITTORRENT_FALSE=
  6312. fi
  6313. else
  6314. enable_bittorrent=no
  6315. if false; then
  6316. ENABLE_BITTORRENT_TRUE=
  6317. ENABLE_BITTORRENT_FALSE='#'
  6318. else
  6319. ENABLE_BITTORRENT_TRUE='#'
  6320. ENABLE_BITTORRENT_FALSE=
  6321. fi
  6322. fi
  6323. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") && test "x$enable_metalink" = "xyes"; then
  6324. cat >>confdefs.h <<\_ACEOF
  6325. #define ENABLE_METALINK 1
  6326. _ACEOF
  6327. if true; then
  6328. ENABLE_METALINK_TRUE=
  6329. ENABLE_METALINK_FALSE='#'
  6330. else
  6331. ENABLE_METALINK_TRUE='#'
  6332. ENABLE_METALINK_FALSE=
  6333. fi
  6334. else
  6335. enable_metalink=no
  6336. if false; then
  6337. ENABLE_METALINK_TRUE=
  6338. ENABLE_METALINK_FALSE='#'
  6339. else
  6340. ENABLE_METALINK_TRUE='#'
  6341. ENABLE_METALINK_FALSE=
  6342. fi
  6343. fi
  6344. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6345. ENABLE_LIBXML2_TRUE=
  6346. ENABLE_LIBXML2_FALSE='#'
  6347. else
  6348. ENABLE_LIBXML2_TRUE='#'
  6349. ENABLE_LIBXML2_FALSE=
  6350. fi
  6351. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6352. ENABLE_LIBEXPAT_TRUE=
  6353. ENABLE_LIBEXPAT_FALSE='#'
  6354. else
  6355. ENABLE_LIBEXPAT_TRUE='#'
  6356. ENABLE_LIBEXPAT_FALSE=
  6357. fi
  6358. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6359. cat >>confdefs.h <<\_ACEOF
  6360. #define ENABLE_ASYNC_DNS 1
  6361. _ACEOF
  6362. if true; then
  6363. ENABLE_ASYNC_DNS_TRUE=
  6364. ENABLE_ASYNC_DNS_FALSE='#'
  6365. else
  6366. ENABLE_ASYNC_DNS_TRUE='#'
  6367. ENABLE_ASYNC_DNS_FALSE=
  6368. fi
  6369. else
  6370. if false; then
  6371. ENABLE_ASYNC_DNS_TRUE=
  6372. ENABLE_ASYNC_DNS_FALSE='#'
  6373. else
  6374. ENABLE_ASYNC_DNS_TRUE='#'
  6375. ENABLE_ASYNC_DNS_FALSE=
  6376. fi
  6377. fi
  6378. if test "x$have_libz" = "xyes"; then
  6379. HAVE_LIBZ_TRUE=
  6380. HAVE_LIBZ_FALSE='#'
  6381. else
  6382. HAVE_LIBZ_TRUE='#'
  6383. HAVE_LIBZ_FALSE=
  6384. fi
  6385. # Checks for header files.
  6386. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6387. # for constant arguments. Useless!
  6388. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6389. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6390. if test "${ac_cv_working_alloca_h+set}" = set; then
  6391. echo $ECHO_N "(cached) $ECHO_C" >&6
  6392. else
  6393. cat >conftest.$ac_ext <<_ACEOF
  6394. /* confdefs.h. */
  6395. _ACEOF
  6396. cat confdefs.h >>conftest.$ac_ext
  6397. cat >>conftest.$ac_ext <<_ACEOF
  6398. /* end confdefs.h. */
  6399. #include <alloca.h>
  6400. int
  6401. main ()
  6402. {
  6403. char *p = (char *) alloca (2 * sizeof (int));
  6404. if (p) return 0;
  6405. ;
  6406. return 0;
  6407. }
  6408. _ACEOF
  6409. rm -f conftest.$ac_objext conftest$ac_exeext
  6410. if { (ac_try="$ac_link"
  6411. case "(($ac_try" in
  6412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6413. *) ac_try_echo=$ac_try;;
  6414. esac
  6415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6416. (eval "$ac_link") 2>conftest.er1
  6417. ac_status=$?
  6418. grep -v '^ *+' conftest.er1 >conftest.err
  6419. rm -f conftest.er1
  6420. cat conftest.err >&5
  6421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6422. (exit $ac_status); } && {
  6423. test -z "$ac_cxx_werror_flag" ||
  6424. test ! -s conftest.err
  6425. } && test -s conftest$ac_exeext &&
  6426. $as_test_x conftest$ac_exeext; then
  6427. ac_cv_working_alloca_h=yes
  6428. else
  6429. echo "$as_me: failed program was:" >&5
  6430. sed 's/^/| /' conftest.$ac_ext >&5
  6431. ac_cv_working_alloca_h=no
  6432. fi
  6433. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6434. conftest$ac_exeext conftest.$ac_ext
  6435. fi
  6436. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6437. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6438. if test $ac_cv_working_alloca_h = yes; then
  6439. cat >>confdefs.h <<\_ACEOF
  6440. #define HAVE_ALLOCA_H 1
  6441. _ACEOF
  6442. fi
  6443. { echo "$as_me:$LINENO: checking for alloca" >&5
  6444. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6445. if test "${ac_cv_func_alloca_works+set}" = set; then
  6446. echo $ECHO_N "(cached) $ECHO_C" >&6
  6447. else
  6448. cat >conftest.$ac_ext <<_ACEOF
  6449. /* confdefs.h. */
  6450. _ACEOF
  6451. cat confdefs.h >>conftest.$ac_ext
  6452. cat >>conftest.$ac_ext <<_ACEOF
  6453. /* end confdefs.h. */
  6454. #ifdef __GNUC__
  6455. # define alloca __builtin_alloca
  6456. #else
  6457. # ifdef _MSC_VER
  6458. # include <malloc.h>
  6459. # define alloca _alloca
  6460. # else
  6461. # ifdef HAVE_ALLOCA_H
  6462. # include <alloca.h>
  6463. # else
  6464. # ifdef _AIX
  6465. #pragma alloca
  6466. # else
  6467. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6468. char *alloca ();
  6469. # endif
  6470. # endif
  6471. # endif
  6472. # endif
  6473. #endif
  6474. int
  6475. main ()
  6476. {
  6477. char *p = (char *) alloca (1);
  6478. if (p) return 0;
  6479. ;
  6480. return 0;
  6481. }
  6482. _ACEOF
  6483. rm -f conftest.$ac_objext conftest$ac_exeext
  6484. if { (ac_try="$ac_link"
  6485. case "(($ac_try" in
  6486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6487. *) ac_try_echo=$ac_try;;
  6488. esac
  6489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6490. (eval "$ac_link") 2>conftest.er1
  6491. ac_status=$?
  6492. grep -v '^ *+' conftest.er1 >conftest.err
  6493. rm -f conftest.er1
  6494. cat conftest.err >&5
  6495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6496. (exit $ac_status); } && {
  6497. test -z "$ac_cxx_werror_flag" ||
  6498. test ! -s conftest.err
  6499. } && test -s conftest$ac_exeext &&
  6500. $as_test_x conftest$ac_exeext; then
  6501. ac_cv_func_alloca_works=yes
  6502. else
  6503. echo "$as_me: failed program was:" >&5
  6504. sed 's/^/| /' conftest.$ac_ext >&5
  6505. ac_cv_func_alloca_works=no
  6506. fi
  6507. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6508. conftest$ac_exeext conftest.$ac_ext
  6509. fi
  6510. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6511. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6512. if test $ac_cv_func_alloca_works = yes; then
  6513. cat >>confdefs.h <<\_ACEOF
  6514. #define HAVE_ALLOCA 1
  6515. _ACEOF
  6516. else
  6517. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6518. # that cause trouble. Some versions do not even contain alloca or
  6519. # contain a buggy version. If you still want to use their alloca,
  6520. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6521. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6522. cat >>confdefs.h <<\_ACEOF
  6523. #define C_ALLOCA 1
  6524. _ACEOF
  6525. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6526. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6527. if test "${ac_cv_os_cray+set}" = set; then
  6528. echo $ECHO_N "(cached) $ECHO_C" >&6
  6529. else
  6530. cat >conftest.$ac_ext <<_ACEOF
  6531. /* confdefs.h. */
  6532. _ACEOF
  6533. cat confdefs.h >>conftest.$ac_ext
  6534. cat >>conftest.$ac_ext <<_ACEOF
  6535. /* end confdefs.h. */
  6536. #if defined CRAY && ! defined CRAY2
  6537. webecray
  6538. #else
  6539. wenotbecray
  6540. #endif
  6541. _ACEOF
  6542. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6543. $EGREP "webecray" >/dev/null 2>&1; then
  6544. ac_cv_os_cray=yes
  6545. else
  6546. ac_cv_os_cray=no
  6547. fi
  6548. rm -f conftest*
  6549. fi
  6550. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6551. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6552. if test $ac_cv_os_cray = yes; then
  6553. for ac_func in _getb67 GETB67 getb67; do
  6554. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6555. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6556. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6557. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6558. echo $ECHO_N "(cached) $ECHO_C" >&6
  6559. else
  6560. cat >conftest.$ac_ext <<_ACEOF
  6561. /* confdefs.h. */
  6562. _ACEOF
  6563. cat confdefs.h >>conftest.$ac_ext
  6564. cat >>conftest.$ac_ext <<_ACEOF
  6565. /* end confdefs.h. */
  6566. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6567. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6568. #define $ac_func innocuous_$ac_func
  6569. /* System header to define __stub macros and hopefully few prototypes,
  6570. which can conflict with char $ac_func (); below.
  6571. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6572. <limits.h> exists even on freestanding compilers. */
  6573. #ifdef __STDC__
  6574. # include <limits.h>
  6575. #else
  6576. # include <assert.h>
  6577. #endif
  6578. #undef $ac_func
  6579. /* Override any GCC internal prototype to avoid an error.
  6580. Use char because int might match the return type of a GCC
  6581. builtin and then its argument prototype would still apply. */
  6582. #ifdef __cplusplus
  6583. extern "C"
  6584. #endif
  6585. char $ac_func ();
  6586. /* The GNU C library defines this for functions which it implements
  6587. to always fail with ENOSYS. Some functions are actually named
  6588. something starting with __ and the normal name is an alias. */
  6589. #if defined __stub_$ac_func || defined __stub___$ac_func
  6590. choke me
  6591. #endif
  6592. int
  6593. main ()
  6594. {
  6595. return $ac_func ();
  6596. ;
  6597. return 0;
  6598. }
  6599. _ACEOF
  6600. rm -f conftest.$ac_objext conftest$ac_exeext
  6601. if { (ac_try="$ac_link"
  6602. case "(($ac_try" in
  6603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6604. *) ac_try_echo=$ac_try;;
  6605. esac
  6606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6607. (eval "$ac_link") 2>conftest.er1
  6608. ac_status=$?
  6609. grep -v '^ *+' conftest.er1 >conftest.err
  6610. rm -f conftest.er1
  6611. cat conftest.err >&5
  6612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6613. (exit $ac_status); } && {
  6614. test -z "$ac_cxx_werror_flag" ||
  6615. test ! -s conftest.err
  6616. } && test -s conftest$ac_exeext &&
  6617. $as_test_x conftest$ac_exeext; then
  6618. eval "$as_ac_var=yes"
  6619. else
  6620. echo "$as_me: failed program was:" >&5
  6621. sed 's/^/| /' conftest.$ac_ext >&5
  6622. eval "$as_ac_var=no"
  6623. fi
  6624. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6625. conftest$ac_exeext conftest.$ac_ext
  6626. fi
  6627. ac_res=`eval echo '${'$as_ac_var'}'`
  6628. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6629. echo "${ECHO_T}$ac_res" >&6; }
  6630. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6631. cat >>confdefs.h <<_ACEOF
  6632. #define CRAY_STACKSEG_END $ac_func
  6633. _ACEOF
  6634. break
  6635. fi
  6636. done
  6637. fi
  6638. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6639. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6640. if test "${ac_cv_c_stack_direction+set}" = set; then
  6641. echo $ECHO_N "(cached) $ECHO_C" >&6
  6642. else
  6643. if test "$cross_compiling" = yes; then
  6644. ac_cv_c_stack_direction=0
  6645. else
  6646. cat >conftest.$ac_ext <<_ACEOF
  6647. /* confdefs.h. */
  6648. _ACEOF
  6649. cat confdefs.h >>conftest.$ac_ext
  6650. cat >>conftest.$ac_ext <<_ACEOF
  6651. /* end confdefs.h. */
  6652. $ac_includes_default
  6653. int
  6654. find_stack_direction ()
  6655. {
  6656. static char *addr = 0;
  6657. auto char dummy;
  6658. if (addr == 0)
  6659. {
  6660. addr = &dummy;
  6661. return find_stack_direction ();
  6662. }
  6663. else
  6664. return (&dummy > addr) ? 1 : -1;
  6665. }
  6666. int
  6667. main ()
  6668. {
  6669. return find_stack_direction () < 0;
  6670. }
  6671. _ACEOF
  6672. rm -f conftest$ac_exeext
  6673. if { (ac_try="$ac_link"
  6674. case "(($ac_try" in
  6675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6676. *) ac_try_echo=$ac_try;;
  6677. esac
  6678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6679. (eval "$ac_link") 2>&5
  6680. ac_status=$?
  6681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6682. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6683. { (case "(($ac_try" in
  6684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6685. *) ac_try_echo=$ac_try;;
  6686. esac
  6687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6688. (eval "$ac_try") 2>&5
  6689. ac_status=$?
  6690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6691. (exit $ac_status); }; }; then
  6692. ac_cv_c_stack_direction=1
  6693. else
  6694. echo "$as_me: program exited with status $ac_status" >&5
  6695. echo "$as_me: failed program was:" >&5
  6696. sed 's/^/| /' conftest.$ac_ext >&5
  6697. ( exit $ac_status )
  6698. ac_cv_c_stack_direction=-1
  6699. fi
  6700. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6701. fi
  6702. fi
  6703. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6704. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6705. cat >>confdefs.h <<_ACEOF
  6706. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6707. _ACEOF
  6708. fi
  6709. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6710. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6711. if test "${ac_cv_header_stdc+set}" = set; then
  6712. echo $ECHO_N "(cached) $ECHO_C" >&6
  6713. else
  6714. cat >conftest.$ac_ext <<_ACEOF
  6715. /* confdefs.h. */
  6716. _ACEOF
  6717. cat confdefs.h >>conftest.$ac_ext
  6718. cat >>conftest.$ac_ext <<_ACEOF
  6719. /* end confdefs.h. */
  6720. #include <stdlib.h>
  6721. #include <stdarg.h>
  6722. #include <string.h>
  6723. #include <float.h>
  6724. int
  6725. main ()
  6726. {
  6727. ;
  6728. return 0;
  6729. }
  6730. _ACEOF
  6731. rm -f conftest.$ac_objext
  6732. if { (ac_try="$ac_compile"
  6733. case "(($ac_try" in
  6734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6735. *) ac_try_echo=$ac_try;;
  6736. esac
  6737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6738. (eval "$ac_compile") 2>conftest.er1
  6739. ac_status=$?
  6740. grep -v '^ *+' conftest.er1 >conftest.err
  6741. rm -f conftest.er1
  6742. cat conftest.err >&5
  6743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6744. (exit $ac_status); } && {
  6745. test -z "$ac_cxx_werror_flag" ||
  6746. test ! -s conftest.err
  6747. } && test -s conftest.$ac_objext; then
  6748. ac_cv_header_stdc=yes
  6749. else
  6750. echo "$as_me: failed program was:" >&5
  6751. sed 's/^/| /' conftest.$ac_ext >&5
  6752. ac_cv_header_stdc=no
  6753. fi
  6754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6755. if test $ac_cv_header_stdc = yes; then
  6756. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6757. cat >conftest.$ac_ext <<_ACEOF
  6758. /* confdefs.h. */
  6759. _ACEOF
  6760. cat confdefs.h >>conftest.$ac_ext
  6761. cat >>conftest.$ac_ext <<_ACEOF
  6762. /* end confdefs.h. */
  6763. #include <string.h>
  6764. _ACEOF
  6765. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6766. $EGREP "memchr" >/dev/null 2>&1; then
  6767. :
  6768. else
  6769. ac_cv_header_stdc=no
  6770. fi
  6771. rm -f conftest*
  6772. fi
  6773. if test $ac_cv_header_stdc = yes; then
  6774. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6775. cat >conftest.$ac_ext <<_ACEOF
  6776. /* confdefs.h. */
  6777. _ACEOF
  6778. cat confdefs.h >>conftest.$ac_ext
  6779. cat >>conftest.$ac_ext <<_ACEOF
  6780. /* end confdefs.h. */
  6781. #include <stdlib.h>
  6782. _ACEOF
  6783. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6784. $EGREP "free" >/dev/null 2>&1; then
  6785. :
  6786. else
  6787. ac_cv_header_stdc=no
  6788. fi
  6789. rm -f conftest*
  6790. fi
  6791. if test $ac_cv_header_stdc = yes; then
  6792. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6793. if test "$cross_compiling" = yes; then
  6794. :
  6795. else
  6796. cat >conftest.$ac_ext <<_ACEOF
  6797. /* confdefs.h. */
  6798. _ACEOF
  6799. cat confdefs.h >>conftest.$ac_ext
  6800. cat >>conftest.$ac_ext <<_ACEOF
  6801. /* end confdefs.h. */
  6802. #include <ctype.h>
  6803. #include <stdlib.h>
  6804. #if ((' ' & 0x0FF) == 0x020)
  6805. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6806. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6807. #else
  6808. # define ISLOWER(c) \
  6809. (('a' <= (c) && (c) <= 'i') \
  6810. || ('j' <= (c) && (c) <= 'r') \
  6811. || ('s' <= (c) && (c) <= 'z'))
  6812. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6813. #endif
  6814. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6815. int
  6816. main ()
  6817. {
  6818. int i;
  6819. for (i = 0; i < 256; i++)
  6820. if (XOR (islower (i), ISLOWER (i))
  6821. || toupper (i) != TOUPPER (i))
  6822. return 2;
  6823. return 0;
  6824. }
  6825. _ACEOF
  6826. rm -f conftest$ac_exeext
  6827. if { (ac_try="$ac_link"
  6828. case "(($ac_try" in
  6829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6830. *) ac_try_echo=$ac_try;;
  6831. esac
  6832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6833. (eval "$ac_link") 2>&5
  6834. ac_status=$?
  6835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6836. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6837. { (case "(($ac_try" in
  6838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6839. *) ac_try_echo=$ac_try;;
  6840. esac
  6841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6842. (eval "$ac_try") 2>&5
  6843. ac_status=$?
  6844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6845. (exit $ac_status); }; }; then
  6846. :
  6847. else
  6848. echo "$as_me: program exited with status $ac_status" >&5
  6849. echo "$as_me: failed program was:" >&5
  6850. sed 's/^/| /' conftest.$ac_ext >&5
  6851. ( exit $ac_status )
  6852. ac_cv_header_stdc=no
  6853. fi
  6854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6855. fi
  6856. fi
  6857. fi
  6858. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6859. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6860. if test $ac_cv_header_stdc = yes; then
  6861. cat >>confdefs.h <<\_ACEOF
  6862. #define STDC_HEADERS 1
  6863. _ACEOF
  6864. fi
  6865. for ac_header in winsock2.h ws2tcpip.h argz.h arpa/inet.h fcntl.h float.h inttypes.h io.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h termios.h unistd.h wchar.h
  6866. do
  6867. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6868. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6869. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6870. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6871. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6872. echo $ECHO_N "(cached) $ECHO_C" >&6
  6873. fi
  6874. ac_res=`eval echo '${'$as_ac_Header'}'`
  6875. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6876. echo "${ECHO_T}$ac_res" >&6; }
  6877. else
  6878. # Is the header compilable?
  6879. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6880. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6881. cat >conftest.$ac_ext <<_ACEOF
  6882. /* confdefs.h. */
  6883. _ACEOF
  6884. cat confdefs.h >>conftest.$ac_ext
  6885. cat >>conftest.$ac_ext <<_ACEOF
  6886. /* end confdefs.h. */
  6887. $ac_includes_default
  6888. #include <$ac_header>
  6889. _ACEOF
  6890. rm -f conftest.$ac_objext
  6891. if { (ac_try="$ac_compile"
  6892. case "(($ac_try" in
  6893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6894. *) ac_try_echo=$ac_try;;
  6895. esac
  6896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6897. (eval "$ac_compile") 2>conftest.er1
  6898. ac_status=$?
  6899. grep -v '^ *+' conftest.er1 >conftest.err
  6900. rm -f conftest.er1
  6901. cat conftest.err >&5
  6902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6903. (exit $ac_status); } && {
  6904. test -z "$ac_cxx_werror_flag" ||
  6905. test ! -s conftest.err
  6906. } && test -s conftest.$ac_objext; then
  6907. ac_header_compiler=yes
  6908. else
  6909. echo "$as_me: failed program was:" >&5
  6910. sed 's/^/| /' conftest.$ac_ext >&5
  6911. ac_header_compiler=no
  6912. fi
  6913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6914. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6915. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6916. # Is the header present?
  6917. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6918. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6919. cat >conftest.$ac_ext <<_ACEOF
  6920. /* confdefs.h. */
  6921. _ACEOF
  6922. cat confdefs.h >>conftest.$ac_ext
  6923. cat >>conftest.$ac_ext <<_ACEOF
  6924. /* end confdefs.h. */
  6925. #include <$ac_header>
  6926. _ACEOF
  6927. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6928. case "(($ac_try" in
  6929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6930. *) ac_try_echo=$ac_try;;
  6931. esac
  6932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6933. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6934. ac_status=$?
  6935. grep -v '^ *+' conftest.er1 >conftest.err
  6936. rm -f conftest.er1
  6937. cat conftest.err >&5
  6938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6939. (exit $ac_status); } >/dev/null && {
  6940. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6941. test ! -s conftest.err
  6942. }; then
  6943. ac_header_preproc=yes
  6944. else
  6945. echo "$as_me: failed program was:" >&5
  6946. sed 's/^/| /' conftest.$ac_ext >&5
  6947. ac_header_preproc=no
  6948. fi
  6949. rm -f conftest.err conftest.$ac_ext
  6950. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6951. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6952. # So? What about this header?
  6953. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6954. yes:no: )
  6955. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6956. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6957. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6958. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6959. ac_header_preproc=yes
  6960. ;;
  6961. no:yes:* )
  6962. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6963. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6964. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6965. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6966. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6967. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6968. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6969. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6970. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6971. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6972. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6973. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6974. ( cat <<\_ASBOX
  6975. ## ----------------------------------------------- ##
  6976. ## Report this to t-tujikawa@users.sourceforge.net ##
  6977. ## ----------------------------------------------- ##
  6978. _ASBOX
  6979. ) | sed "s/^/$as_me: WARNING: /" >&2
  6980. ;;
  6981. esac
  6982. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6983. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6984. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6985. echo $ECHO_N "(cached) $ECHO_C" >&6
  6986. else
  6987. eval "$as_ac_Header=\$ac_header_preproc"
  6988. fi
  6989. ac_res=`eval echo '${'$as_ac_Header'}'`
  6990. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6991. echo "${ECHO_T}$ac_res" >&6; }
  6992. fi
  6993. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6994. cat >>confdefs.h <<_ACEOF
  6995. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6996. _ACEOF
  6997. fi
  6998. done
  6999. # Checks for typedefs, structures, and compiler characteristics.
  7000. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7001. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7002. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7003. echo $ECHO_N "(cached) $ECHO_C" >&6
  7004. else
  7005. cat >conftest.$ac_ext <<_ACEOF
  7006. /* confdefs.h. */
  7007. _ACEOF
  7008. cat confdefs.h >>conftest.$ac_ext
  7009. cat >>conftest.$ac_ext <<_ACEOF
  7010. /* end confdefs.h. */
  7011. #include <stdbool.h>
  7012. #ifndef bool
  7013. "error: bool is not defined"
  7014. #endif
  7015. #ifndef false
  7016. "error: false is not defined"
  7017. #endif
  7018. #if false
  7019. "error: false is not 0"
  7020. #endif
  7021. #ifndef true
  7022. "error: true is not defined"
  7023. #endif
  7024. #if true != 1
  7025. "error: true is not 1"
  7026. #endif
  7027. #ifndef __bool_true_false_are_defined
  7028. "error: __bool_true_false_are_defined is not defined"
  7029. #endif
  7030. struct s { _Bool s: 1; _Bool t; } s;
  7031. char a[true == 1 ? 1 : -1];
  7032. char b[false == 0 ? 1 : -1];
  7033. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7034. char d[(bool) 0.5 == true ? 1 : -1];
  7035. bool e = &s;
  7036. char f[(_Bool) 0.0 == false ? 1 : -1];
  7037. char g[true];
  7038. char h[sizeof (_Bool)];
  7039. char i[sizeof s.t];
  7040. enum { j = false, k = true, l = false * true, m = true * 256 };
  7041. _Bool n[m];
  7042. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7043. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7044. # if defined __xlc__ || defined __GNUC__
  7045. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7046. reported by James Lemley on 2005-10-05; see
  7047. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7048. This test is not quite right, since xlc is allowed to
  7049. reject this program, as the initializer for xlcbug is
  7050. not one of the forms that C requires support for.
  7051. However, doing the test right would require a runtime
  7052. test, and that would make cross-compilation harder.
  7053. Let us hope that IBM fixes the xlc bug, and also adds
  7054. support for this kind of constant expression. In the
  7055. meantime, this test will reject xlc, which is OK, since
  7056. our stdbool.h substitute should suffice. We also test
  7057. this with GCC, where it should work, to detect more
  7058. quickly whether someone messes up the test in the
  7059. future. */
  7060. char digs[] = "0123456789";
  7061. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7062. # endif
  7063. /* Catch a bug in an HP-UX C compiler. See
  7064. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7065. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7066. */
  7067. _Bool q = true;
  7068. _Bool *pq = &q;
  7069. int
  7070. main ()
  7071. {
  7072. *pq |= q;
  7073. *pq |= ! q;
  7074. /* Refer to every declared value, to avoid compiler optimizations. */
  7075. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7076. + !m + !n + !o + !p + !q + !pq);
  7077. ;
  7078. return 0;
  7079. }
  7080. _ACEOF
  7081. rm -f conftest.$ac_objext
  7082. if { (ac_try="$ac_compile"
  7083. case "(($ac_try" in
  7084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7085. *) ac_try_echo=$ac_try;;
  7086. esac
  7087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7088. (eval "$ac_compile") 2>conftest.er1
  7089. ac_status=$?
  7090. grep -v '^ *+' conftest.er1 >conftest.err
  7091. rm -f conftest.er1
  7092. cat conftest.err >&5
  7093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7094. (exit $ac_status); } && {
  7095. test -z "$ac_cxx_werror_flag" ||
  7096. test ! -s conftest.err
  7097. } && test -s conftest.$ac_objext; then
  7098. ac_cv_header_stdbool_h=yes
  7099. else
  7100. echo "$as_me: failed program was:" >&5
  7101. sed 's/^/| /' conftest.$ac_ext >&5
  7102. ac_cv_header_stdbool_h=no
  7103. fi
  7104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7105. fi
  7106. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7107. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7108. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7109. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7110. if test "${ac_cv_type__Bool+set}" = set; then
  7111. echo $ECHO_N "(cached) $ECHO_C" >&6
  7112. else
  7113. cat >conftest.$ac_ext <<_ACEOF
  7114. /* confdefs.h. */
  7115. _ACEOF
  7116. cat confdefs.h >>conftest.$ac_ext
  7117. cat >>conftest.$ac_ext <<_ACEOF
  7118. /* end confdefs.h. */
  7119. $ac_includes_default
  7120. typedef _Bool ac__type_new_;
  7121. int
  7122. main ()
  7123. {
  7124. if ((ac__type_new_ *) 0)
  7125. return 0;
  7126. if (sizeof (ac__type_new_))
  7127. return 0;
  7128. ;
  7129. return 0;
  7130. }
  7131. _ACEOF
  7132. rm -f conftest.$ac_objext
  7133. if { (ac_try="$ac_compile"
  7134. case "(($ac_try" in
  7135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7136. *) ac_try_echo=$ac_try;;
  7137. esac
  7138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7139. (eval "$ac_compile") 2>conftest.er1
  7140. ac_status=$?
  7141. grep -v '^ *+' conftest.er1 >conftest.err
  7142. rm -f conftest.er1
  7143. cat conftest.err >&5
  7144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7145. (exit $ac_status); } && {
  7146. test -z "$ac_cxx_werror_flag" ||
  7147. test ! -s conftest.err
  7148. } && test -s conftest.$ac_objext; then
  7149. ac_cv_type__Bool=yes
  7150. else
  7151. echo "$as_me: failed program was:" >&5
  7152. sed 's/^/| /' conftest.$ac_ext >&5
  7153. ac_cv_type__Bool=no
  7154. fi
  7155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7156. fi
  7157. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7158. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7159. if test $ac_cv_type__Bool = yes; then
  7160. cat >>confdefs.h <<_ACEOF
  7161. #define HAVE__BOOL 1
  7162. _ACEOF
  7163. fi
  7164. if test $ac_cv_header_stdbool_h = yes; then
  7165. cat >>confdefs.h <<\_ACEOF
  7166. #define HAVE_STDBOOL_H 1
  7167. _ACEOF
  7168. fi
  7169. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7170. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7171. if test "${ac_cv_c_const+set}" = set; then
  7172. echo $ECHO_N "(cached) $ECHO_C" >&6
  7173. else
  7174. cat >conftest.$ac_ext <<_ACEOF
  7175. /* confdefs.h. */
  7176. _ACEOF
  7177. cat confdefs.h >>conftest.$ac_ext
  7178. cat >>conftest.$ac_ext <<_ACEOF
  7179. /* end confdefs.h. */
  7180. int
  7181. main ()
  7182. {
  7183. /* FIXME: Include the comments suggested by Paul. */
  7184. #ifndef __cplusplus
  7185. /* Ultrix mips cc rejects this. */
  7186. typedef int charset[2];
  7187. const charset cs;
  7188. /* SunOS 4.1.1 cc rejects this. */
  7189. char const *const *pcpcc;
  7190. char **ppc;
  7191. /* NEC SVR4.0.2 mips cc rejects this. */
  7192. struct point {int x, y;};
  7193. static struct point const zero = {0,0};
  7194. /* AIX XL C 1.02.0.0 rejects this.
  7195. It does not let you subtract one const X* pointer from another in
  7196. an arm of an if-expression whose if-part is not a constant
  7197. expression */
  7198. const char *g = "string";
  7199. pcpcc = &g + (g ? g-g : 0);
  7200. /* HPUX 7.0 cc rejects these. */
  7201. ++pcpcc;
  7202. ppc = (char**) pcpcc;
  7203. pcpcc = (char const *const *) ppc;
  7204. { /* SCO 3.2v4 cc rejects this. */
  7205. char *t;
  7206. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7207. *t++ = 0;
  7208. if (s) return 0;
  7209. }
  7210. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7211. int x[] = {25, 17};
  7212. const int *foo = &x[0];
  7213. ++foo;
  7214. }
  7215. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7216. typedef const int *iptr;
  7217. iptr p = 0;
  7218. ++p;
  7219. }
  7220. { /* AIX XL C 1.02.0.0 rejects this saying
  7221. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7222. struct s { int j; const int *ap[3]; };
  7223. struct s *b; b->j = 5;
  7224. }
  7225. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7226. const int foo = 10;
  7227. if (!foo) return 0;
  7228. }
  7229. return !cs[0] && !zero.x;
  7230. #endif
  7231. ;
  7232. return 0;
  7233. }
  7234. _ACEOF
  7235. rm -f conftest.$ac_objext
  7236. if { (ac_try="$ac_compile"
  7237. case "(($ac_try" in
  7238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7239. *) ac_try_echo=$ac_try;;
  7240. esac
  7241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7242. (eval "$ac_compile") 2>conftest.er1
  7243. ac_status=$?
  7244. grep -v '^ *+' conftest.er1 >conftest.err
  7245. rm -f conftest.er1
  7246. cat conftest.err >&5
  7247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7248. (exit $ac_status); } && {
  7249. test -z "$ac_cxx_werror_flag" ||
  7250. test ! -s conftest.err
  7251. } && test -s conftest.$ac_objext; then
  7252. ac_cv_c_const=yes
  7253. else
  7254. echo "$as_me: failed program was:" >&5
  7255. sed 's/^/| /' conftest.$ac_ext >&5
  7256. ac_cv_c_const=no
  7257. fi
  7258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7259. fi
  7260. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7261. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7262. if test $ac_cv_c_const = no; then
  7263. cat >>confdefs.h <<\_ACEOF
  7264. #define const
  7265. _ACEOF
  7266. fi
  7267. { echo "$as_me:$LINENO: checking for inline" >&5
  7268. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7269. if test "${ac_cv_c_inline+set}" = set; then
  7270. echo $ECHO_N "(cached) $ECHO_C" >&6
  7271. else
  7272. ac_cv_c_inline=no
  7273. for ac_kw in inline __inline__ __inline; do
  7274. cat >conftest.$ac_ext <<_ACEOF
  7275. /* confdefs.h. */
  7276. _ACEOF
  7277. cat confdefs.h >>conftest.$ac_ext
  7278. cat >>conftest.$ac_ext <<_ACEOF
  7279. /* end confdefs.h. */
  7280. #ifndef __cplusplus
  7281. typedef int foo_t;
  7282. static $ac_kw foo_t static_foo () {return 0; }
  7283. $ac_kw foo_t foo () {return 0; }
  7284. #endif
  7285. _ACEOF
  7286. rm -f conftest.$ac_objext
  7287. if { (ac_try="$ac_compile"
  7288. case "(($ac_try" in
  7289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7290. *) ac_try_echo=$ac_try;;
  7291. esac
  7292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7293. (eval "$ac_compile") 2>conftest.er1
  7294. ac_status=$?
  7295. grep -v '^ *+' conftest.er1 >conftest.err
  7296. rm -f conftest.er1
  7297. cat conftest.err >&5
  7298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7299. (exit $ac_status); } && {
  7300. test -z "$ac_cxx_werror_flag" ||
  7301. test ! -s conftest.err
  7302. } && test -s conftest.$ac_objext; then
  7303. ac_cv_c_inline=$ac_kw
  7304. else
  7305. echo "$as_me: failed program was:" >&5
  7306. sed 's/^/| /' conftest.$ac_ext >&5
  7307. fi
  7308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7309. test "$ac_cv_c_inline" != no && break
  7310. done
  7311. fi
  7312. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7313. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7314. case $ac_cv_c_inline in
  7315. inline | yes) ;;
  7316. *)
  7317. case $ac_cv_c_inline in
  7318. no) ac_val=;;
  7319. *) ac_val=$ac_cv_c_inline;;
  7320. esac
  7321. cat >>confdefs.h <<_ACEOF
  7322. #ifndef __cplusplus
  7323. #define inline $ac_val
  7324. #endif
  7325. _ACEOF
  7326. ;;
  7327. esac
  7328. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7329. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7330. if test "${ac_cv_c_int16_t+set}" = set; then
  7331. echo $ECHO_N "(cached) $ECHO_C" >&6
  7332. else
  7333. ac_cv_c_int16_t=no
  7334. for ac_type in 'int16_t' 'int' 'long int' \
  7335. 'long long int' 'short int' 'signed char'; do
  7336. cat >conftest.$ac_ext <<_ACEOF
  7337. /* confdefs.h. */
  7338. _ACEOF
  7339. cat confdefs.h >>conftest.$ac_ext
  7340. cat >>conftest.$ac_ext <<_ACEOF
  7341. /* end confdefs.h. */
  7342. $ac_includes_default
  7343. int
  7344. main ()
  7345. {
  7346. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7347. test_array [0] = 0
  7348. ;
  7349. return 0;
  7350. }
  7351. _ACEOF
  7352. rm -f conftest.$ac_objext
  7353. if { (ac_try="$ac_compile"
  7354. case "(($ac_try" in
  7355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7356. *) ac_try_echo=$ac_try;;
  7357. esac
  7358. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7359. (eval "$ac_compile") 2>conftest.er1
  7360. ac_status=$?
  7361. grep -v '^ *+' conftest.er1 >conftest.err
  7362. rm -f conftest.er1
  7363. cat conftest.err >&5
  7364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7365. (exit $ac_status); } && {
  7366. test -z "$ac_cxx_werror_flag" ||
  7367. test ! -s conftest.err
  7368. } && test -s conftest.$ac_objext; then
  7369. cat >conftest.$ac_ext <<_ACEOF
  7370. /* confdefs.h. */
  7371. _ACEOF
  7372. cat confdefs.h >>conftest.$ac_ext
  7373. cat >>conftest.$ac_ext <<_ACEOF
  7374. /* end confdefs.h. */
  7375. $ac_includes_default
  7376. int
  7377. main ()
  7378. {
  7379. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7380. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7381. test_array [0] = 0
  7382. ;
  7383. return 0;
  7384. }
  7385. _ACEOF
  7386. rm -f conftest.$ac_objext
  7387. if { (ac_try="$ac_compile"
  7388. case "(($ac_try" in
  7389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7390. *) ac_try_echo=$ac_try;;
  7391. esac
  7392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7393. (eval "$ac_compile") 2>conftest.er1
  7394. ac_status=$?
  7395. grep -v '^ *+' conftest.er1 >conftest.err
  7396. rm -f conftest.er1
  7397. cat conftest.err >&5
  7398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7399. (exit $ac_status); } && {
  7400. test -z "$ac_cxx_werror_flag" ||
  7401. test ! -s conftest.err
  7402. } && test -s conftest.$ac_objext; then
  7403. :
  7404. else
  7405. echo "$as_me: failed program was:" >&5
  7406. sed 's/^/| /' conftest.$ac_ext >&5
  7407. case $ac_type in
  7408. int16_t) ac_cv_c_int16_t=yes ;;
  7409. *) ac_cv_c_int16_t=$ac_type ;;
  7410. esac
  7411. fi
  7412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7413. else
  7414. echo "$as_me: failed program was:" >&5
  7415. sed 's/^/| /' conftest.$ac_ext >&5
  7416. fi
  7417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7418. test "$ac_cv_c_int16_t" != no && break
  7419. done
  7420. fi
  7421. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7422. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7423. case $ac_cv_c_int16_t in #(
  7424. no|yes) ;; #(
  7425. *)
  7426. cat >>confdefs.h <<_ACEOF
  7427. #define int16_t $ac_cv_c_int16_t
  7428. _ACEOF
  7429. ;;
  7430. esac
  7431. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7432. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7433. if test "${ac_cv_c_int32_t+set}" = set; then
  7434. echo $ECHO_N "(cached) $ECHO_C" >&6
  7435. else
  7436. ac_cv_c_int32_t=no
  7437. for ac_type in 'int32_t' 'int' 'long int' \
  7438. 'long long int' 'short int' 'signed char'; do
  7439. cat >conftest.$ac_ext <<_ACEOF
  7440. /* confdefs.h. */
  7441. _ACEOF
  7442. cat confdefs.h >>conftest.$ac_ext
  7443. cat >>conftest.$ac_ext <<_ACEOF
  7444. /* end confdefs.h. */
  7445. $ac_includes_default
  7446. int
  7447. main ()
  7448. {
  7449. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7450. test_array [0] = 0
  7451. ;
  7452. return 0;
  7453. }
  7454. _ACEOF
  7455. rm -f conftest.$ac_objext
  7456. if { (ac_try="$ac_compile"
  7457. case "(($ac_try" in
  7458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7459. *) ac_try_echo=$ac_try;;
  7460. esac
  7461. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7462. (eval "$ac_compile") 2>conftest.er1
  7463. ac_status=$?
  7464. grep -v '^ *+' conftest.er1 >conftest.err
  7465. rm -f conftest.er1
  7466. cat conftest.err >&5
  7467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7468. (exit $ac_status); } && {
  7469. test -z "$ac_cxx_werror_flag" ||
  7470. test ! -s conftest.err
  7471. } && test -s conftest.$ac_objext; then
  7472. cat >conftest.$ac_ext <<_ACEOF
  7473. /* confdefs.h. */
  7474. _ACEOF
  7475. cat confdefs.h >>conftest.$ac_ext
  7476. cat >>conftest.$ac_ext <<_ACEOF
  7477. /* end confdefs.h. */
  7478. $ac_includes_default
  7479. int
  7480. main ()
  7481. {
  7482. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7483. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7484. test_array [0] = 0
  7485. ;
  7486. return 0;
  7487. }
  7488. _ACEOF
  7489. rm -f conftest.$ac_objext
  7490. if { (ac_try="$ac_compile"
  7491. case "(($ac_try" in
  7492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7493. *) ac_try_echo=$ac_try;;
  7494. esac
  7495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7496. (eval "$ac_compile") 2>conftest.er1
  7497. ac_status=$?
  7498. grep -v '^ *+' conftest.er1 >conftest.err
  7499. rm -f conftest.er1
  7500. cat conftest.err >&5
  7501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7502. (exit $ac_status); } && {
  7503. test -z "$ac_cxx_werror_flag" ||
  7504. test ! -s conftest.err
  7505. } && test -s conftest.$ac_objext; then
  7506. :
  7507. else
  7508. echo "$as_me: failed program was:" >&5
  7509. sed 's/^/| /' conftest.$ac_ext >&5
  7510. case $ac_type in
  7511. int32_t) ac_cv_c_int32_t=yes ;;
  7512. *) ac_cv_c_int32_t=$ac_type ;;
  7513. esac
  7514. fi
  7515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7516. else
  7517. echo "$as_me: failed program was:" >&5
  7518. sed 's/^/| /' conftest.$ac_ext >&5
  7519. fi
  7520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7521. test "$ac_cv_c_int32_t" != no && break
  7522. done
  7523. fi
  7524. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7525. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7526. case $ac_cv_c_int32_t in #(
  7527. no|yes) ;; #(
  7528. *)
  7529. cat >>confdefs.h <<_ACEOF
  7530. #define int32_t $ac_cv_c_int32_t
  7531. _ACEOF
  7532. ;;
  7533. esac
  7534. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7535. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7536. if test "${ac_cv_c_int64_t+set}" = set; then
  7537. echo $ECHO_N "(cached) $ECHO_C" >&6
  7538. else
  7539. ac_cv_c_int64_t=no
  7540. for ac_type in 'int64_t' 'int' 'long int' \
  7541. 'long long int' 'short int' 'signed char'; do
  7542. cat >conftest.$ac_ext <<_ACEOF
  7543. /* confdefs.h. */
  7544. _ACEOF
  7545. cat confdefs.h >>conftest.$ac_ext
  7546. cat >>conftest.$ac_ext <<_ACEOF
  7547. /* end confdefs.h. */
  7548. $ac_includes_default
  7549. int
  7550. main ()
  7551. {
  7552. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7553. test_array [0] = 0
  7554. ;
  7555. return 0;
  7556. }
  7557. _ACEOF
  7558. rm -f conftest.$ac_objext
  7559. if { (ac_try="$ac_compile"
  7560. case "(($ac_try" in
  7561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7562. *) ac_try_echo=$ac_try;;
  7563. esac
  7564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7565. (eval "$ac_compile") 2>conftest.er1
  7566. ac_status=$?
  7567. grep -v '^ *+' conftest.er1 >conftest.err
  7568. rm -f conftest.er1
  7569. cat conftest.err >&5
  7570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7571. (exit $ac_status); } && {
  7572. test -z "$ac_cxx_werror_flag" ||
  7573. test ! -s conftest.err
  7574. } && test -s conftest.$ac_objext; then
  7575. cat >conftest.$ac_ext <<_ACEOF
  7576. /* confdefs.h. */
  7577. _ACEOF
  7578. cat confdefs.h >>conftest.$ac_ext
  7579. cat >>conftest.$ac_ext <<_ACEOF
  7580. /* end confdefs.h. */
  7581. $ac_includes_default
  7582. int
  7583. main ()
  7584. {
  7585. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7586. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7587. test_array [0] = 0
  7588. ;
  7589. return 0;
  7590. }
  7591. _ACEOF
  7592. rm -f conftest.$ac_objext
  7593. if { (ac_try="$ac_compile"
  7594. case "(($ac_try" in
  7595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7596. *) ac_try_echo=$ac_try;;
  7597. esac
  7598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7599. (eval "$ac_compile") 2>conftest.er1
  7600. ac_status=$?
  7601. grep -v '^ *+' conftest.er1 >conftest.err
  7602. rm -f conftest.er1
  7603. cat conftest.err >&5
  7604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7605. (exit $ac_status); } && {
  7606. test -z "$ac_cxx_werror_flag" ||
  7607. test ! -s conftest.err
  7608. } && test -s conftest.$ac_objext; then
  7609. :
  7610. else
  7611. echo "$as_me: failed program was:" >&5
  7612. sed 's/^/| /' conftest.$ac_ext >&5
  7613. case $ac_type in
  7614. int64_t) ac_cv_c_int64_t=yes ;;
  7615. *) ac_cv_c_int64_t=$ac_type ;;
  7616. esac
  7617. fi
  7618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7619. else
  7620. echo "$as_me: failed program was:" >&5
  7621. sed 's/^/| /' conftest.$ac_ext >&5
  7622. fi
  7623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7624. test "$ac_cv_c_int64_t" != no && break
  7625. done
  7626. fi
  7627. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7628. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7629. case $ac_cv_c_int64_t in #(
  7630. no|yes) ;; #(
  7631. *)
  7632. cat >>confdefs.h <<_ACEOF
  7633. #define int64_t $ac_cv_c_int64_t
  7634. _ACEOF
  7635. ;;
  7636. esac
  7637. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7638. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7639. if test "${ac_cv_c_int8_t+set}" = set; then
  7640. echo $ECHO_N "(cached) $ECHO_C" >&6
  7641. else
  7642. ac_cv_c_int8_t=no
  7643. for ac_type in 'int8_t' 'int' 'long int' \
  7644. 'long long int' 'short int' 'signed char'; do
  7645. cat >conftest.$ac_ext <<_ACEOF
  7646. /* confdefs.h. */
  7647. _ACEOF
  7648. cat confdefs.h >>conftest.$ac_ext
  7649. cat >>conftest.$ac_ext <<_ACEOF
  7650. /* end confdefs.h. */
  7651. $ac_includes_default
  7652. int
  7653. main ()
  7654. {
  7655. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7656. test_array [0] = 0
  7657. ;
  7658. return 0;
  7659. }
  7660. _ACEOF
  7661. rm -f conftest.$ac_objext
  7662. if { (ac_try="$ac_compile"
  7663. case "(($ac_try" in
  7664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7665. *) ac_try_echo=$ac_try;;
  7666. esac
  7667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7668. (eval "$ac_compile") 2>conftest.er1
  7669. ac_status=$?
  7670. grep -v '^ *+' conftest.er1 >conftest.err
  7671. rm -f conftest.er1
  7672. cat conftest.err >&5
  7673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7674. (exit $ac_status); } && {
  7675. test -z "$ac_cxx_werror_flag" ||
  7676. test ! -s conftest.err
  7677. } && test -s conftest.$ac_objext; then
  7678. cat >conftest.$ac_ext <<_ACEOF
  7679. /* confdefs.h. */
  7680. _ACEOF
  7681. cat confdefs.h >>conftest.$ac_ext
  7682. cat >>conftest.$ac_ext <<_ACEOF
  7683. /* end confdefs.h. */
  7684. $ac_includes_default
  7685. int
  7686. main ()
  7687. {
  7688. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7689. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7690. test_array [0] = 0
  7691. ;
  7692. return 0;
  7693. }
  7694. _ACEOF
  7695. rm -f conftest.$ac_objext
  7696. if { (ac_try="$ac_compile"
  7697. case "(($ac_try" in
  7698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7699. *) ac_try_echo=$ac_try;;
  7700. esac
  7701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7702. (eval "$ac_compile") 2>conftest.er1
  7703. ac_status=$?
  7704. grep -v '^ *+' conftest.er1 >conftest.err
  7705. rm -f conftest.er1
  7706. cat conftest.err >&5
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. (exit $ac_status); } && {
  7709. test -z "$ac_cxx_werror_flag" ||
  7710. test ! -s conftest.err
  7711. } && test -s conftest.$ac_objext; then
  7712. :
  7713. else
  7714. echo "$as_me: failed program was:" >&5
  7715. sed 's/^/| /' conftest.$ac_ext >&5
  7716. case $ac_type in
  7717. int8_t) ac_cv_c_int8_t=yes ;;
  7718. *) ac_cv_c_int8_t=$ac_type ;;
  7719. esac
  7720. fi
  7721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7722. else
  7723. echo "$as_me: failed program was:" >&5
  7724. sed 's/^/| /' conftest.$ac_ext >&5
  7725. fi
  7726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7727. test "$ac_cv_c_int8_t" != no && break
  7728. done
  7729. fi
  7730. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7731. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7732. case $ac_cv_c_int8_t in #(
  7733. no|yes) ;; #(
  7734. *)
  7735. cat >>confdefs.h <<_ACEOF
  7736. #define int8_t $ac_cv_c_int8_t
  7737. _ACEOF
  7738. ;;
  7739. esac
  7740. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7741. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7742. if test "${ac_cv_type_mode_t+set}" = set; then
  7743. echo $ECHO_N "(cached) $ECHO_C" >&6
  7744. else
  7745. cat >conftest.$ac_ext <<_ACEOF
  7746. /* confdefs.h. */
  7747. _ACEOF
  7748. cat confdefs.h >>conftest.$ac_ext
  7749. cat >>conftest.$ac_ext <<_ACEOF
  7750. /* end confdefs.h. */
  7751. $ac_includes_default
  7752. typedef mode_t ac__type_new_;
  7753. int
  7754. main ()
  7755. {
  7756. if ((ac__type_new_ *) 0)
  7757. return 0;
  7758. if (sizeof (ac__type_new_))
  7759. return 0;
  7760. ;
  7761. return 0;
  7762. }
  7763. _ACEOF
  7764. rm -f conftest.$ac_objext
  7765. if { (ac_try="$ac_compile"
  7766. case "(($ac_try" in
  7767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7768. *) ac_try_echo=$ac_try;;
  7769. esac
  7770. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7771. (eval "$ac_compile") 2>conftest.er1
  7772. ac_status=$?
  7773. grep -v '^ *+' conftest.er1 >conftest.err
  7774. rm -f conftest.er1
  7775. cat conftest.err >&5
  7776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7777. (exit $ac_status); } && {
  7778. test -z "$ac_cxx_werror_flag" ||
  7779. test ! -s conftest.err
  7780. } && test -s conftest.$ac_objext; then
  7781. ac_cv_type_mode_t=yes
  7782. else
  7783. echo "$as_me: failed program was:" >&5
  7784. sed 's/^/| /' conftest.$ac_ext >&5
  7785. ac_cv_type_mode_t=no
  7786. fi
  7787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7788. fi
  7789. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7790. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7791. if test $ac_cv_type_mode_t = yes; then
  7792. :
  7793. else
  7794. cat >>confdefs.h <<_ACEOF
  7795. #define mode_t int
  7796. _ACEOF
  7797. fi
  7798. { echo "$as_me:$LINENO: checking for off_t" >&5
  7799. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7800. if test "${ac_cv_type_off_t+set}" = set; then
  7801. echo $ECHO_N "(cached) $ECHO_C" >&6
  7802. else
  7803. cat >conftest.$ac_ext <<_ACEOF
  7804. /* confdefs.h. */
  7805. _ACEOF
  7806. cat confdefs.h >>conftest.$ac_ext
  7807. cat >>conftest.$ac_ext <<_ACEOF
  7808. /* end confdefs.h. */
  7809. $ac_includes_default
  7810. typedef off_t ac__type_new_;
  7811. int
  7812. main ()
  7813. {
  7814. if ((ac__type_new_ *) 0)
  7815. return 0;
  7816. if (sizeof (ac__type_new_))
  7817. return 0;
  7818. ;
  7819. return 0;
  7820. }
  7821. _ACEOF
  7822. rm -f conftest.$ac_objext
  7823. if { (ac_try="$ac_compile"
  7824. case "(($ac_try" in
  7825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7826. *) ac_try_echo=$ac_try;;
  7827. esac
  7828. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7829. (eval "$ac_compile") 2>conftest.er1
  7830. ac_status=$?
  7831. grep -v '^ *+' conftest.er1 >conftest.err
  7832. rm -f conftest.er1
  7833. cat conftest.err >&5
  7834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7835. (exit $ac_status); } && {
  7836. test -z "$ac_cxx_werror_flag" ||
  7837. test ! -s conftest.err
  7838. } && test -s conftest.$ac_objext; then
  7839. ac_cv_type_off_t=yes
  7840. else
  7841. echo "$as_me: failed program was:" >&5
  7842. sed 's/^/| /' conftest.$ac_ext >&5
  7843. ac_cv_type_off_t=no
  7844. fi
  7845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7846. fi
  7847. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7848. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7849. if test $ac_cv_type_off_t = yes; then
  7850. :
  7851. else
  7852. cat >>confdefs.h <<_ACEOF
  7853. #define off_t long int
  7854. _ACEOF
  7855. fi
  7856. { echo "$as_me:$LINENO: checking for size_t" >&5
  7857. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7858. if test "${ac_cv_type_size_t+set}" = set; then
  7859. echo $ECHO_N "(cached) $ECHO_C" >&6
  7860. else
  7861. cat >conftest.$ac_ext <<_ACEOF
  7862. /* confdefs.h. */
  7863. _ACEOF
  7864. cat confdefs.h >>conftest.$ac_ext
  7865. cat >>conftest.$ac_ext <<_ACEOF
  7866. /* end confdefs.h. */
  7867. $ac_includes_default
  7868. typedef size_t ac__type_new_;
  7869. int
  7870. main ()
  7871. {
  7872. if ((ac__type_new_ *) 0)
  7873. return 0;
  7874. if (sizeof (ac__type_new_))
  7875. return 0;
  7876. ;
  7877. return 0;
  7878. }
  7879. _ACEOF
  7880. rm -f conftest.$ac_objext
  7881. if { (ac_try="$ac_compile"
  7882. case "(($ac_try" in
  7883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7884. *) ac_try_echo=$ac_try;;
  7885. esac
  7886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7887. (eval "$ac_compile") 2>conftest.er1
  7888. ac_status=$?
  7889. grep -v '^ *+' conftest.er1 >conftest.err
  7890. rm -f conftest.er1
  7891. cat conftest.err >&5
  7892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7893. (exit $ac_status); } && {
  7894. test -z "$ac_cxx_werror_flag" ||
  7895. test ! -s conftest.err
  7896. } && test -s conftest.$ac_objext; then
  7897. ac_cv_type_size_t=yes
  7898. else
  7899. echo "$as_me: failed program was:" >&5
  7900. sed 's/^/| /' conftest.$ac_ext >&5
  7901. ac_cv_type_size_t=no
  7902. fi
  7903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7904. fi
  7905. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7906. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7907. if test $ac_cv_type_size_t = yes; then
  7908. :
  7909. else
  7910. cat >>confdefs.h <<_ACEOF
  7911. #define size_t unsigned int
  7912. _ACEOF
  7913. fi
  7914. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  7915. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  7916. if test "${ac_cv_type_ssize_t+set}" = set; then
  7917. echo $ECHO_N "(cached) $ECHO_C" >&6
  7918. else
  7919. cat >conftest.$ac_ext <<_ACEOF
  7920. /* confdefs.h. */
  7921. _ACEOF
  7922. cat confdefs.h >>conftest.$ac_ext
  7923. cat >>conftest.$ac_ext <<_ACEOF
  7924. /* end confdefs.h. */
  7925. $ac_includes_default
  7926. typedef ssize_t ac__type_new_;
  7927. int
  7928. main ()
  7929. {
  7930. if ((ac__type_new_ *) 0)
  7931. return 0;
  7932. if (sizeof (ac__type_new_))
  7933. return 0;
  7934. ;
  7935. return 0;
  7936. }
  7937. _ACEOF
  7938. rm -f conftest.$ac_objext
  7939. if { (ac_try="$ac_compile"
  7940. case "(($ac_try" in
  7941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7942. *) ac_try_echo=$ac_try;;
  7943. esac
  7944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7945. (eval "$ac_compile") 2>conftest.er1
  7946. ac_status=$?
  7947. grep -v '^ *+' conftest.er1 >conftest.err
  7948. rm -f conftest.er1
  7949. cat conftest.err >&5
  7950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7951. (exit $ac_status); } && {
  7952. test -z "$ac_cxx_werror_flag" ||
  7953. test ! -s conftest.err
  7954. } && test -s conftest.$ac_objext; then
  7955. ac_cv_type_ssize_t=yes
  7956. else
  7957. echo "$as_me: failed program was:" >&5
  7958. sed 's/^/| /' conftest.$ac_ext >&5
  7959. ac_cv_type_ssize_t=no
  7960. fi
  7961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7962. fi
  7963. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  7964. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  7965. if test $ac_cv_type_ssize_t = yes; then
  7966. :
  7967. else
  7968. cat >>confdefs.h <<_ACEOF
  7969. #define ssize_t int
  7970. _ACEOF
  7971. fi
  7972. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  7973. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  7974. if test "${ac_cv_header_time+set}" = set; then
  7975. echo $ECHO_N "(cached) $ECHO_C" >&6
  7976. else
  7977. cat >conftest.$ac_ext <<_ACEOF
  7978. /* confdefs.h. */
  7979. _ACEOF
  7980. cat confdefs.h >>conftest.$ac_ext
  7981. cat >>conftest.$ac_ext <<_ACEOF
  7982. /* end confdefs.h. */
  7983. #include <sys/types.h>
  7984. #include <sys/time.h>
  7985. #include <time.h>
  7986. int
  7987. main ()
  7988. {
  7989. if ((struct tm *) 0)
  7990. return 0;
  7991. ;
  7992. return 0;
  7993. }
  7994. _ACEOF
  7995. rm -f conftest.$ac_objext
  7996. if { (ac_try="$ac_compile"
  7997. case "(($ac_try" in
  7998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7999. *) ac_try_echo=$ac_try;;
  8000. esac
  8001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8002. (eval "$ac_compile") 2>conftest.er1
  8003. ac_status=$?
  8004. grep -v '^ *+' conftest.er1 >conftest.err
  8005. rm -f conftest.er1
  8006. cat conftest.err >&5
  8007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8008. (exit $ac_status); } && {
  8009. test -z "$ac_cxx_werror_flag" ||
  8010. test ! -s conftest.err
  8011. } && test -s conftest.$ac_objext; then
  8012. ac_cv_header_time=yes
  8013. else
  8014. echo "$as_me: failed program was:" >&5
  8015. sed 's/^/| /' conftest.$ac_ext >&5
  8016. ac_cv_header_time=no
  8017. fi
  8018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8019. fi
  8020. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8021. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8022. if test $ac_cv_header_time = yes; then
  8023. cat >>confdefs.h <<\_ACEOF
  8024. #define TIME_WITH_SYS_TIME 1
  8025. _ACEOF
  8026. fi
  8027. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8028. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8029. if test "${ac_cv_struct_tm+set}" = set; then
  8030. echo $ECHO_N "(cached) $ECHO_C" >&6
  8031. else
  8032. cat >conftest.$ac_ext <<_ACEOF
  8033. /* confdefs.h. */
  8034. _ACEOF
  8035. cat confdefs.h >>conftest.$ac_ext
  8036. cat >>conftest.$ac_ext <<_ACEOF
  8037. /* end confdefs.h. */
  8038. #include <sys/types.h>
  8039. #include <time.h>
  8040. int
  8041. main ()
  8042. {
  8043. struct tm tm;
  8044. int *p = &tm.tm_sec;
  8045. return !p;
  8046. ;
  8047. return 0;
  8048. }
  8049. _ACEOF
  8050. rm -f conftest.$ac_objext
  8051. if { (ac_try="$ac_compile"
  8052. case "(($ac_try" in
  8053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8054. *) ac_try_echo=$ac_try;;
  8055. esac
  8056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8057. (eval "$ac_compile") 2>conftest.er1
  8058. ac_status=$?
  8059. grep -v '^ *+' conftest.er1 >conftest.err
  8060. rm -f conftest.er1
  8061. cat conftest.err >&5
  8062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8063. (exit $ac_status); } && {
  8064. test -z "$ac_cxx_werror_flag" ||
  8065. test ! -s conftest.err
  8066. } && test -s conftest.$ac_objext; then
  8067. ac_cv_struct_tm=time.h
  8068. else
  8069. echo "$as_me: failed program was:" >&5
  8070. sed 's/^/| /' conftest.$ac_ext >&5
  8071. ac_cv_struct_tm=sys/time.h
  8072. fi
  8073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8074. fi
  8075. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8076. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8077. if test $ac_cv_struct_tm = sys/time.h; then
  8078. cat >>confdefs.h <<\_ACEOF
  8079. #define TM_IN_SYS_TIME 1
  8080. _ACEOF
  8081. fi
  8082. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8083. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8084. if test "${ac_cv_c_uint16_t+set}" = set; then
  8085. echo $ECHO_N "(cached) $ECHO_C" >&6
  8086. else
  8087. ac_cv_c_uint16_t=no
  8088. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8089. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8090. cat >conftest.$ac_ext <<_ACEOF
  8091. /* confdefs.h. */
  8092. _ACEOF
  8093. cat confdefs.h >>conftest.$ac_ext
  8094. cat >>conftest.$ac_ext <<_ACEOF
  8095. /* end confdefs.h. */
  8096. $ac_includes_default
  8097. int
  8098. main ()
  8099. {
  8100. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8101. test_array [0] = 0
  8102. ;
  8103. return 0;
  8104. }
  8105. _ACEOF
  8106. rm -f conftest.$ac_objext
  8107. if { (ac_try="$ac_compile"
  8108. case "(($ac_try" in
  8109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8110. *) ac_try_echo=$ac_try;;
  8111. esac
  8112. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8113. (eval "$ac_compile") 2>conftest.er1
  8114. ac_status=$?
  8115. grep -v '^ *+' conftest.er1 >conftest.err
  8116. rm -f conftest.er1
  8117. cat conftest.err >&5
  8118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8119. (exit $ac_status); } && {
  8120. test -z "$ac_cxx_werror_flag" ||
  8121. test ! -s conftest.err
  8122. } && test -s conftest.$ac_objext; then
  8123. case $ac_type in
  8124. uint16_t) ac_cv_c_uint16_t=yes ;;
  8125. *) ac_cv_c_uint16_t=$ac_type ;;
  8126. esac
  8127. else
  8128. echo "$as_me: failed program was:" >&5
  8129. sed 's/^/| /' conftest.$ac_ext >&5
  8130. fi
  8131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8132. test "$ac_cv_c_uint16_t" != no && break
  8133. done
  8134. fi
  8135. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8136. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8137. case $ac_cv_c_uint16_t in #(
  8138. no|yes) ;; #(
  8139. *)
  8140. cat >>confdefs.h <<_ACEOF
  8141. #define uint16_t $ac_cv_c_uint16_t
  8142. _ACEOF
  8143. ;;
  8144. esac
  8145. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8146. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8147. if test "${ac_cv_c_uint32_t+set}" = set; then
  8148. echo $ECHO_N "(cached) $ECHO_C" >&6
  8149. else
  8150. ac_cv_c_uint32_t=no
  8151. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8152. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8153. cat >conftest.$ac_ext <<_ACEOF
  8154. /* confdefs.h. */
  8155. _ACEOF
  8156. cat confdefs.h >>conftest.$ac_ext
  8157. cat >>conftest.$ac_ext <<_ACEOF
  8158. /* end confdefs.h. */
  8159. $ac_includes_default
  8160. int
  8161. main ()
  8162. {
  8163. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8164. test_array [0] = 0
  8165. ;
  8166. return 0;
  8167. }
  8168. _ACEOF
  8169. rm -f conftest.$ac_objext
  8170. if { (ac_try="$ac_compile"
  8171. case "(($ac_try" in
  8172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8173. *) ac_try_echo=$ac_try;;
  8174. esac
  8175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8176. (eval "$ac_compile") 2>conftest.er1
  8177. ac_status=$?
  8178. grep -v '^ *+' conftest.er1 >conftest.err
  8179. rm -f conftest.er1
  8180. cat conftest.err >&5
  8181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8182. (exit $ac_status); } && {
  8183. test -z "$ac_cxx_werror_flag" ||
  8184. test ! -s conftest.err
  8185. } && test -s conftest.$ac_objext; then
  8186. case $ac_type in
  8187. uint32_t) ac_cv_c_uint32_t=yes ;;
  8188. *) ac_cv_c_uint32_t=$ac_type ;;
  8189. esac
  8190. else
  8191. echo "$as_me: failed program was:" >&5
  8192. sed 's/^/| /' conftest.$ac_ext >&5
  8193. fi
  8194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8195. test "$ac_cv_c_uint32_t" != no && break
  8196. done
  8197. fi
  8198. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8199. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8200. case $ac_cv_c_uint32_t in #(
  8201. no|yes) ;; #(
  8202. *)
  8203. cat >>confdefs.h <<\_ACEOF
  8204. #define _UINT32_T 1
  8205. _ACEOF
  8206. cat >>confdefs.h <<_ACEOF
  8207. #define uint32_t $ac_cv_c_uint32_t
  8208. _ACEOF
  8209. ;;
  8210. esac
  8211. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8212. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8213. if test "${ac_cv_c_uint64_t+set}" = set; then
  8214. echo $ECHO_N "(cached) $ECHO_C" >&6
  8215. else
  8216. ac_cv_c_uint64_t=no
  8217. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8218. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8219. cat >conftest.$ac_ext <<_ACEOF
  8220. /* confdefs.h. */
  8221. _ACEOF
  8222. cat confdefs.h >>conftest.$ac_ext
  8223. cat >>conftest.$ac_ext <<_ACEOF
  8224. /* end confdefs.h. */
  8225. $ac_includes_default
  8226. int
  8227. main ()
  8228. {
  8229. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8230. test_array [0] = 0
  8231. ;
  8232. return 0;
  8233. }
  8234. _ACEOF
  8235. rm -f conftest.$ac_objext
  8236. if { (ac_try="$ac_compile"
  8237. case "(($ac_try" in
  8238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8239. *) ac_try_echo=$ac_try;;
  8240. esac
  8241. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8242. (eval "$ac_compile") 2>conftest.er1
  8243. ac_status=$?
  8244. grep -v '^ *+' conftest.er1 >conftest.err
  8245. rm -f conftest.er1
  8246. cat conftest.err >&5
  8247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8248. (exit $ac_status); } && {
  8249. test -z "$ac_cxx_werror_flag" ||
  8250. test ! -s conftest.err
  8251. } && test -s conftest.$ac_objext; then
  8252. case $ac_type in
  8253. uint64_t) ac_cv_c_uint64_t=yes ;;
  8254. *) ac_cv_c_uint64_t=$ac_type ;;
  8255. esac
  8256. else
  8257. echo "$as_me: failed program was:" >&5
  8258. sed 's/^/| /' conftest.$ac_ext >&5
  8259. fi
  8260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8261. test "$ac_cv_c_uint64_t" != no && break
  8262. done
  8263. fi
  8264. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8265. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8266. case $ac_cv_c_uint64_t in #(
  8267. no|yes) ;; #(
  8268. *)
  8269. cat >>confdefs.h <<\_ACEOF
  8270. #define _UINT64_T 1
  8271. _ACEOF
  8272. cat >>confdefs.h <<_ACEOF
  8273. #define uint64_t $ac_cv_c_uint64_t
  8274. _ACEOF
  8275. ;;
  8276. esac
  8277. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8278. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8279. if test "${ac_cv_c_uint8_t+set}" = set; then
  8280. echo $ECHO_N "(cached) $ECHO_C" >&6
  8281. else
  8282. ac_cv_c_uint8_t=no
  8283. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8284. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8285. cat >conftest.$ac_ext <<_ACEOF
  8286. /* confdefs.h. */
  8287. _ACEOF
  8288. cat confdefs.h >>conftest.$ac_ext
  8289. cat >>conftest.$ac_ext <<_ACEOF
  8290. /* end confdefs.h. */
  8291. $ac_includes_default
  8292. int
  8293. main ()
  8294. {
  8295. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8296. test_array [0] = 0
  8297. ;
  8298. return 0;
  8299. }
  8300. _ACEOF
  8301. rm -f conftest.$ac_objext
  8302. if { (ac_try="$ac_compile"
  8303. case "(($ac_try" in
  8304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8305. *) ac_try_echo=$ac_try;;
  8306. esac
  8307. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8308. (eval "$ac_compile") 2>conftest.er1
  8309. ac_status=$?
  8310. grep -v '^ *+' conftest.er1 >conftest.err
  8311. rm -f conftest.er1
  8312. cat conftest.err >&5
  8313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8314. (exit $ac_status); } && {
  8315. test -z "$ac_cxx_werror_flag" ||
  8316. test ! -s conftest.err
  8317. } && test -s conftest.$ac_objext; then
  8318. case $ac_type in
  8319. uint8_t) ac_cv_c_uint8_t=yes ;;
  8320. *) ac_cv_c_uint8_t=$ac_type ;;
  8321. esac
  8322. else
  8323. echo "$as_me: failed program was:" >&5
  8324. sed 's/^/| /' conftest.$ac_ext >&5
  8325. fi
  8326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8327. test "$ac_cv_c_uint8_t" != no && break
  8328. done
  8329. fi
  8330. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8331. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8332. case $ac_cv_c_uint8_t in #(
  8333. no|yes) ;; #(
  8334. *)
  8335. cat >>confdefs.h <<\_ACEOF
  8336. #define _UINT8_T 1
  8337. _ACEOF
  8338. cat >>confdefs.h <<_ACEOF
  8339. #define uint8_t $ac_cv_c_uint8_t
  8340. _ACEOF
  8341. ;;
  8342. esac
  8343. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8344. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8345. if test "${ac_cv_c_volatile+set}" = set; then
  8346. echo $ECHO_N "(cached) $ECHO_C" >&6
  8347. else
  8348. cat >conftest.$ac_ext <<_ACEOF
  8349. /* confdefs.h. */
  8350. _ACEOF
  8351. cat confdefs.h >>conftest.$ac_ext
  8352. cat >>conftest.$ac_ext <<_ACEOF
  8353. /* end confdefs.h. */
  8354. int
  8355. main ()
  8356. {
  8357. volatile int x;
  8358. int * volatile y = (int *) 0;
  8359. return !x && !y;
  8360. ;
  8361. return 0;
  8362. }
  8363. _ACEOF
  8364. rm -f conftest.$ac_objext
  8365. if { (ac_try="$ac_compile"
  8366. case "(($ac_try" in
  8367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8368. *) ac_try_echo=$ac_try;;
  8369. esac
  8370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8371. (eval "$ac_compile") 2>conftest.er1
  8372. ac_status=$?
  8373. grep -v '^ *+' conftest.er1 >conftest.err
  8374. rm -f conftest.er1
  8375. cat conftest.err >&5
  8376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8377. (exit $ac_status); } && {
  8378. test -z "$ac_cxx_werror_flag" ||
  8379. test ! -s conftest.err
  8380. } && test -s conftest.$ac_objext; then
  8381. ac_cv_c_volatile=yes
  8382. else
  8383. echo "$as_me: failed program was:" >&5
  8384. sed 's/^/| /' conftest.$ac_ext >&5
  8385. ac_cv_c_volatile=no
  8386. fi
  8387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8388. fi
  8389. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8390. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8391. if test $ac_cv_c_volatile = no; then
  8392. cat >>confdefs.h <<\_ACEOF
  8393. #define volatile
  8394. _ACEOF
  8395. fi
  8396. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8397. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8398. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8399. echo $ECHO_N "(cached) $ECHO_C" >&6
  8400. else
  8401. cat >conftest.$ac_ext <<_ACEOF
  8402. /* confdefs.h. */
  8403. _ACEOF
  8404. cat confdefs.h >>conftest.$ac_ext
  8405. cat >>conftest.$ac_ext <<_ACEOF
  8406. /* end confdefs.h. */
  8407. $ac_includes_default
  8408. typedef ptrdiff_t ac__type_new_;
  8409. int
  8410. main ()
  8411. {
  8412. if ((ac__type_new_ *) 0)
  8413. return 0;
  8414. if (sizeof (ac__type_new_))
  8415. return 0;
  8416. ;
  8417. return 0;
  8418. }
  8419. _ACEOF
  8420. rm -f conftest.$ac_objext
  8421. if { (ac_try="$ac_compile"
  8422. case "(($ac_try" in
  8423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8424. *) ac_try_echo=$ac_try;;
  8425. esac
  8426. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8427. (eval "$ac_compile") 2>conftest.er1
  8428. ac_status=$?
  8429. grep -v '^ *+' conftest.er1 >conftest.err
  8430. rm -f conftest.er1
  8431. cat conftest.err >&5
  8432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8433. (exit $ac_status); } && {
  8434. test -z "$ac_cxx_werror_flag" ||
  8435. test ! -s conftest.err
  8436. } && test -s conftest.$ac_objext; then
  8437. ac_cv_type_ptrdiff_t=yes
  8438. else
  8439. echo "$as_me: failed program was:" >&5
  8440. sed 's/^/| /' conftest.$ac_ext >&5
  8441. ac_cv_type_ptrdiff_t=no
  8442. fi
  8443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8444. fi
  8445. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8446. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8447. if test $ac_cv_type_ptrdiff_t = yes; then
  8448. cat >>confdefs.h <<_ACEOF
  8449. #define HAVE_PTRDIFF_T 1
  8450. _ACEOF
  8451. fi
  8452. # Check whether --enable-largefile was given.
  8453. if test "${enable_largefile+set}" = set; then
  8454. enableval=$enable_largefile;
  8455. fi
  8456. if test "$enable_largefile" != no; then
  8457. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8458. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8459. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8460. echo $ECHO_N "(cached) $ECHO_C" >&6
  8461. else
  8462. ac_cv_sys_largefile_CC=no
  8463. if test "$GCC" != yes; then
  8464. ac_save_CC=$CC
  8465. while :; do
  8466. # IRIX 6.2 and later do not support large files by default,
  8467. # so use the C compiler's -n32 option if that helps.
  8468. cat >conftest.$ac_ext <<_ACEOF
  8469. /* confdefs.h. */
  8470. _ACEOF
  8471. cat confdefs.h >>conftest.$ac_ext
  8472. cat >>conftest.$ac_ext <<_ACEOF
  8473. /* end confdefs.h. */
  8474. #include <sys/types.h>
  8475. /* Check that off_t can represent 2**63 - 1 correctly.
  8476. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8477. since some C++ compilers masquerading as C compilers
  8478. incorrectly reject 9223372036854775807. */
  8479. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8480. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8481. && LARGE_OFF_T % 2147483647 == 1)
  8482. ? 1 : -1];
  8483. int
  8484. main ()
  8485. {
  8486. ;
  8487. return 0;
  8488. }
  8489. _ACEOF
  8490. rm -f conftest.$ac_objext
  8491. if { (ac_try="$ac_compile"
  8492. case "(($ac_try" in
  8493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8494. *) ac_try_echo=$ac_try;;
  8495. esac
  8496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8497. (eval "$ac_compile") 2>conftest.er1
  8498. ac_status=$?
  8499. grep -v '^ *+' conftest.er1 >conftest.err
  8500. rm -f conftest.er1
  8501. cat conftest.err >&5
  8502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8503. (exit $ac_status); } && {
  8504. test -z "$ac_cxx_werror_flag" ||
  8505. test ! -s conftest.err
  8506. } && test -s conftest.$ac_objext; then
  8507. break
  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
  8513. CC="$CC -n32"
  8514. rm -f conftest.$ac_objext
  8515. if { (ac_try="$ac_compile"
  8516. case "(($ac_try" in
  8517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8518. *) ac_try_echo=$ac_try;;
  8519. esac
  8520. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8521. (eval "$ac_compile") 2>conftest.er1
  8522. ac_status=$?
  8523. grep -v '^ *+' conftest.er1 >conftest.err
  8524. rm -f conftest.er1
  8525. cat conftest.err >&5
  8526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8527. (exit $ac_status); } && {
  8528. test -z "$ac_cxx_werror_flag" ||
  8529. test ! -s conftest.err
  8530. } && test -s conftest.$ac_objext; then
  8531. ac_cv_sys_largefile_CC=' -n32'; break
  8532. else
  8533. echo "$as_me: failed program was:" >&5
  8534. sed 's/^/| /' conftest.$ac_ext >&5
  8535. fi
  8536. rm -f core conftest.err conftest.$ac_objext
  8537. break
  8538. done
  8539. CC=$ac_save_CC
  8540. rm -f conftest.$ac_ext
  8541. fi
  8542. fi
  8543. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8544. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8545. if test "$ac_cv_sys_largefile_CC" != no; then
  8546. CC=$CC$ac_cv_sys_largefile_CC
  8547. fi
  8548. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8549. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8550. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8551. echo $ECHO_N "(cached) $ECHO_C" >&6
  8552. else
  8553. while :; do
  8554. cat >conftest.$ac_ext <<_ACEOF
  8555. /* confdefs.h. */
  8556. _ACEOF
  8557. cat confdefs.h >>conftest.$ac_ext
  8558. cat >>conftest.$ac_ext <<_ACEOF
  8559. /* end confdefs.h. */
  8560. #include <sys/types.h>
  8561. /* Check that off_t can represent 2**63 - 1 correctly.
  8562. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8563. since some C++ compilers masquerading as C compilers
  8564. incorrectly reject 9223372036854775807. */
  8565. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8566. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8567. && LARGE_OFF_T % 2147483647 == 1)
  8568. ? 1 : -1];
  8569. int
  8570. main ()
  8571. {
  8572. ;
  8573. return 0;
  8574. }
  8575. _ACEOF
  8576. rm -f conftest.$ac_objext
  8577. if { (ac_try="$ac_compile"
  8578. case "(($ac_try" in
  8579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8580. *) ac_try_echo=$ac_try;;
  8581. esac
  8582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8583. (eval "$ac_compile") 2>conftest.er1
  8584. ac_status=$?
  8585. grep -v '^ *+' conftest.er1 >conftest.err
  8586. rm -f conftest.er1
  8587. cat conftest.err >&5
  8588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8589. (exit $ac_status); } && {
  8590. test -z "$ac_cxx_werror_flag" ||
  8591. test ! -s conftest.err
  8592. } && test -s conftest.$ac_objext; then
  8593. ac_cv_sys_file_offset_bits=no; break
  8594. else
  8595. echo "$as_me: failed program was:" >&5
  8596. sed 's/^/| /' conftest.$ac_ext >&5
  8597. fi
  8598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8599. cat >conftest.$ac_ext <<_ACEOF
  8600. /* confdefs.h. */
  8601. _ACEOF
  8602. cat confdefs.h >>conftest.$ac_ext
  8603. cat >>conftest.$ac_ext <<_ACEOF
  8604. /* end confdefs.h. */
  8605. #define _FILE_OFFSET_BITS 64
  8606. #include <sys/types.h>
  8607. /* Check that off_t can represent 2**63 - 1 correctly.
  8608. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8609. since some C++ compilers masquerading as C compilers
  8610. incorrectly reject 9223372036854775807. */
  8611. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8612. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8613. && LARGE_OFF_T % 2147483647 == 1)
  8614. ? 1 : -1];
  8615. int
  8616. main ()
  8617. {
  8618. ;
  8619. return 0;
  8620. }
  8621. _ACEOF
  8622. rm -f conftest.$ac_objext
  8623. if { (ac_try="$ac_compile"
  8624. case "(($ac_try" in
  8625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8626. *) ac_try_echo=$ac_try;;
  8627. esac
  8628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8629. (eval "$ac_compile") 2>conftest.er1
  8630. ac_status=$?
  8631. grep -v '^ *+' conftest.er1 >conftest.err
  8632. rm -f conftest.er1
  8633. cat conftest.err >&5
  8634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8635. (exit $ac_status); } && {
  8636. test -z "$ac_cxx_werror_flag" ||
  8637. test ! -s conftest.err
  8638. } && test -s conftest.$ac_objext; then
  8639. ac_cv_sys_file_offset_bits=64; break
  8640. else
  8641. echo "$as_me: failed program was:" >&5
  8642. sed 's/^/| /' conftest.$ac_ext >&5
  8643. fi
  8644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8645. ac_cv_sys_file_offset_bits=unknown
  8646. break
  8647. done
  8648. fi
  8649. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  8650. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  8651. case $ac_cv_sys_file_offset_bits in #(
  8652. no | unknown) ;;
  8653. *)
  8654. cat >>confdefs.h <<_ACEOF
  8655. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8656. _ACEOF
  8657. ;;
  8658. esac
  8659. rm -f conftest*
  8660. if test $ac_cv_sys_file_offset_bits = unknown; then
  8661. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  8662. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  8663. if test "${ac_cv_sys_large_files+set}" = set; then
  8664. echo $ECHO_N "(cached) $ECHO_C" >&6
  8665. else
  8666. while :; do
  8667. cat >conftest.$ac_ext <<_ACEOF
  8668. /* confdefs.h. */
  8669. _ACEOF
  8670. cat confdefs.h >>conftest.$ac_ext
  8671. cat >>conftest.$ac_ext <<_ACEOF
  8672. /* end confdefs.h. */
  8673. #include <sys/types.h>
  8674. /* Check that off_t can represent 2**63 - 1 correctly.
  8675. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8676. since some C++ compilers masquerading as C compilers
  8677. incorrectly reject 9223372036854775807. */
  8678. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8679. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8680. && LARGE_OFF_T % 2147483647 == 1)
  8681. ? 1 : -1];
  8682. int
  8683. main ()
  8684. {
  8685. ;
  8686. return 0;
  8687. }
  8688. _ACEOF
  8689. rm -f conftest.$ac_objext
  8690. if { (ac_try="$ac_compile"
  8691. case "(($ac_try" in
  8692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8693. *) ac_try_echo=$ac_try;;
  8694. esac
  8695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8696. (eval "$ac_compile") 2>conftest.er1
  8697. ac_status=$?
  8698. grep -v '^ *+' conftest.er1 >conftest.err
  8699. rm -f conftest.er1
  8700. cat conftest.err >&5
  8701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8702. (exit $ac_status); } && {
  8703. test -z "$ac_cxx_werror_flag" ||
  8704. test ! -s conftest.err
  8705. } && test -s conftest.$ac_objext; then
  8706. ac_cv_sys_large_files=no; break
  8707. else
  8708. echo "$as_me: failed program was:" >&5
  8709. sed 's/^/| /' conftest.$ac_ext >&5
  8710. fi
  8711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8712. cat >conftest.$ac_ext <<_ACEOF
  8713. /* confdefs.h. */
  8714. _ACEOF
  8715. cat confdefs.h >>conftest.$ac_ext
  8716. cat >>conftest.$ac_ext <<_ACEOF
  8717. /* end confdefs.h. */
  8718. #define _LARGE_FILES 1
  8719. #include <sys/types.h>
  8720. /* Check that off_t can represent 2**63 - 1 correctly.
  8721. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8722. since some C++ compilers masquerading as C compilers
  8723. incorrectly reject 9223372036854775807. */
  8724. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8725. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8726. && LARGE_OFF_T % 2147483647 == 1)
  8727. ? 1 : -1];
  8728. int
  8729. main ()
  8730. {
  8731. ;
  8732. return 0;
  8733. }
  8734. _ACEOF
  8735. rm -f conftest.$ac_objext
  8736. if { (ac_try="$ac_compile"
  8737. case "(($ac_try" in
  8738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8739. *) ac_try_echo=$ac_try;;
  8740. esac
  8741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8742. (eval "$ac_compile") 2>conftest.er1
  8743. ac_status=$?
  8744. grep -v '^ *+' conftest.er1 >conftest.err
  8745. rm -f conftest.er1
  8746. cat conftest.err >&5
  8747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8748. (exit $ac_status); } && {
  8749. test -z "$ac_cxx_werror_flag" ||
  8750. test ! -s conftest.err
  8751. } && test -s conftest.$ac_objext; then
  8752. ac_cv_sys_large_files=1; break
  8753. else
  8754. echo "$as_me: failed program was:" >&5
  8755. sed 's/^/| /' conftest.$ac_ext >&5
  8756. fi
  8757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8758. ac_cv_sys_large_files=unknown
  8759. break
  8760. done
  8761. fi
  8762. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  8763. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  8764. case $ac_cv_sys_large_files in #(
  8765. no | unknown) ;;
  8766. *)
  8767. cat >>confdefs.h <<_ACEOF
  8768. #define _LARGE_FILES $ac_cv_sys_large_files
  8769. _ACEOF
  8770. ;;
  8771. esac
  8772. rm -f conftest*
  8773. fi
  8774. fi
  8775. # Checks for library functions.
  8776. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8777. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8778. # Check whether --enable-nls was given.
  8779. if test "${enable_nls+set}" = set; then
  8780. enableval=$enable_nls; USE_NLS=$enableval
  8781. else
  8782. USE_NLS=yes
  8783. fi
  8784. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8785. echo "${ECHO_T}$USE_NLS" >&6; }
  8786. GETTEXT_MACRO_VERSION=0.17
  8787. # Prepare PATH_SEPARATOR.
  8788. # The user is always right.
  8789. if test "${PATH_SEPARATOR+set}" != set; then
  8790. echo "#! /bin/sh" >conf$$.sh
  8791. echo "exit 0" >>conf$$.sh
  8792. chmod +x conf$$.sh
  8793. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8794. PATH_SEPARATOR=';'
  8795. else
  8796. PATH_SEPARATOR=:
  8797. fi
  8798. rm -f conf$$.sh
  8799. fi
  8800. # Find out how to test for executable files. Don't use a zero-byte file,
  8801. # as systems may use methods other than mode bits to determine executability.
  8802. cat >conf$$.file <<_ASEOF
  8803. #! /bin/sh
  8804. exit 0
  8805. _ASEOF
  8806. chmod +x conf$$.file
  8807. if test -x conf$$.file >/dev/null 2>&1; then
  8808. ac_executable_p="test -x"
  8809. else
  8810. ac_executable_p="test -f"
  8811. fi
  8812. rm -f conf$$.file
  8813. # Extract the first word of "msgfmt", so it can be a program name with args.
  8814. set dummy msgfmt; ac_word=$2
  8815. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8816. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8817. if test "${ac_cv_path_MSGFMT+set}" = set; then
  8818. echo $ECHO_N "(cached) $ECHO_C" >&6
  8819. else
  8820. case "$MSGFMT" in
  8821. [\\/]* | ?:[\\/]*)
  8822. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8823. ;;
  8824. *)
  8825. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8826. for ac_dir in $PATH; do
  8827. IFS="$ac_save_IFS"
  8828. test -z "$ac_dir" && ac_dir=.
  8829. for ac_exec_ext in '' $ac_executable_extensions; do
  8830. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8831. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8832. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8833. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8834. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8835. break 2
  8836. fi
  8837. fi
  8838. done
  8839. done
  8840. IFS="$ac_save_IFS"
  8841. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8842. ;;
  8843. esac
  8844. fi
  8845. MSGFMT="$ac_cv_path_MSGFMT"
  8846. if test "$MSGFMT" != ":"; then
  8847. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  8848. echo "${ECHO_T}$MSGFMT" >&6; }
  8849. else
  8850. { echo "$as_me:$LINENO: result: no" >&5
  8851. echo "${ECHO_T}no" >&6; }
  8852. fi
  8853. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8854. set dummy gmsgfmt; ac_word=$2
  8855. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8856. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8857. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  8858. echo $ECHO_N "(cached) $ECHO_C" >&6
  8859. else
  8860. case $GMSGFMT in
  8861. [\\/]* | ?:[\\/]*)
  8862. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8863. ;;
  8864. *)
  8865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8866. for as_dir in $PATH
  8867. do
  8868. IFS=$as_save_IFS
  8869. test -z "$as_dir" && as_dir=.
  8870. for ac_exec_ext in '' $ac_executable_extensions; do
  8871. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8872. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8873. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8874. break 2
  8875. fi
  8876. done
  8877. done
  8878. IFS=$as_save_IFS
  8879. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8880. ;;
  8881. esac
  8882. fi
  8883. GMSGFMT=$ac_cv_path_GMSGFMT
  8884. if test -n "$GMSGFMT"; then
  8885. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  8886. echo "${ECHO_T}$GMSGFMT" >&6; }
  8887. else
  8888. { echo "$as_me:$LINENO: result: no" >&5
  8889. echo "${ECHO_T}no" >&6; }
  8890. fi
  8891. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8892. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8893. *) MSGFMT_015=$MSGFMT ;;
  8894. esac
  8895. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8896. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8897. *) GMSGFMT_015=$GMSGFMT ;;
  8898. esac
  8899. # Prepare PATH_SEPARATOR.
  8900. # The user is always right.
  8901. if test "${PATH_SEPARATOR+set}" != set; then
  8902. echo "#! /bin/sh" >conf$$.sh
  8903. echo "exit 0" >>conf$$.sh
  8904. chmod +x conf$$.sh
  8905. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8906. PATH_SEPARATOR=';'
  8907. else
  8908. PATH_SEPARATOR=:
  8909. fi
  8910. rm -f conf$$.sh
  8911. fi
  8912. # Find out how to test for executable files. Don't use a zero-byte file,
  8913. # as systems may use methods other than mode bits to determine executability.
  8914. cat >conf$$.file <<_ASEOF
  8915. #! /bin/sh
  8916. exit 0
  8917. _ASEOF
  8918. chmod +x conf$$.file
  8919. if test -x conf$$.file >/dev/null 2>&1; then
  8920. ac_executable_p="test -x"
  8921. else
  8922. ac_executable_p="test -f"
  8923. fi
  8924. rm -f conf$$.file
  8925. # Extract the first word of "xgettext", so it can be a program name with args.
  8926. set dummy xgettext; ac_word=$2
  8927. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8928. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8929. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  8930. echo $ECHO_N "(cached) $ECHO_C" >&6
  8931. else
  8932. case "$XGETTEXT" in
  8933. [\\/]* | ?:[\\/]*)
  8934. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8935. ;;
  8936. *)
  8937. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8938. for ac_dir in $PATH; do
  8939. IFS="$ac_save_IFS"
  8940. test -z "$ac_dir" && ac_dir=.
  8941. for ac_exec_ext in '' $ac_executable_extensions; do
  8942. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8943. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8944. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8945. (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
  8946. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8947. break 2
  8948. fi
  8949. fi
  8950. done
  8951. done
  8952. IFS="$ac_save_IFS"
  8953. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8954. ;;
  8955. esac
  8956. fi
  8957. XGETTEXT="$ac_cv_path_XGETTEXT"
  8958. if test "$XGETTEXT" != ":"; then
  8959. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  8960. echo "${ECHO_T}$XGETTEXT" >&6; }
  8961. else
  8962. { echo "$as_me:$LINENO: result: no" >&5
  8963. echo "${ECHO_T}no" >&6; }
  8964. fi
  8965. rm -f messages.po
  8966. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8967. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8968. *) XGETTEXT_015=$XGETTEXT ;;
  8969. esac
  8970. # Prepare PATH_SEPARATOR.
  8971. # The user is always right.
  8972. if test "${PATH_SEPARATOR+set}" != set; then
  8973. echo "#! /bin/sh" >conf$$.sh
  8974. echo "exit 0" >>conf$$.sh
  8975. chmod +x conf$$.sh
  8976. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8977. PATH_SEPARATOR=';'
  8978. else
  8979. PATH_SEPARATOR=:
  8980. fi
  8981. rm -f conf$$.sh
  8982. fi
  8983. # Find out how to test for executable files. Don't use a zero-byte file,
  8984. # as systems may use methods other than mode bits to determine executability.
  8985. cat >conf$$.file <<_ASEOF
  8986. #! /bin/sh
  8987. exit 0
  8988. _ASEOF
  8989. chmod +x conf$$.file
  8990. if test -x conf$$.file >/dev/null 2>&1; then
  8991. ac_executable_p="test -x"
  8992. else
  8993. ac_executable_p="test -f"
  8994. fi
  8995. rm -f conf$$.file
  8996. # Extract the first word of "msgmerge", so it can be a program name with args.
  8997. set dummy msgmerge; ac_word=$2
  8998. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8999. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9000. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9001. echo $ECHO_N "(cached) $ECHO_C" >&6
  9002. else
  9003. case "$MSGMERGE" in
  9004. [\\/]* | ?:[\\/]*)
  9005. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9006. ;;
  9007. *)
  9008. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9009. for ac_dir in $PATH; do
  9010. IFS="$ac_save_IFS"
  9011. test -z "$ac_dir" && ac_dir=.
  9012. for ac_exec_ext in '' $ac_executable_extensions; do
  9013. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9014. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9015. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9016. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9017. break 2
  9018. fi
  9019. fi
  9020. done
  9021. done
  9022. IFS="$ac_save_IFS"
  9023. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9024. ;;
  9025. esac
  9026. fi
  9027. MSGMERGE="$ac_cv_path_MSGMERGE"
  9028. if test "$MSGMERGE" != ":"; then
  9029. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9030. echo "${ECHO_T}$MSGMERGE" >&6; }
  9031. else
  9032. { echo "$as_me:$LINENO: result: no" >&5
  9033. echo "${ECHO_T}no" >&6; }
  9034. fi
  9035. test -n "$localedir" || localedir='${datadir}/locale'
  9036. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9037. ac_config_commands="$ac_config_commands po-directories"
  9038. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9039. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9040. if test "${ac_cv_gnu_library_2+set}" = set; then
  9041. echo $ECHO_N "(cached) $ECHO_C" >&6
  9042. else
  9043. cat >conftest.$ac_ext <<_ACEOF
  9044. /* confdefs.h. */
  9045. _ACEOF
  9046. cat confdefs.h >>conftest.$ac_ext
  9047. cat >>conftest.$ac_ext <<_ACEOF
  9048. /* end confdefs.h. */
  9049. #include <features.h>
  9050. #ifdef __GNU_LIBRARY__
  9051. #if (__GLIBC__ >= 2)
  9052. Lucky GNU user
  9053. #endif
  9054. #endif
  9055. _ACEOF
  9056. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9057. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9058. ac_cv_gnu_library_2=yes
  9059. else
  9060. ac_cv_gnu_library_2=no
  9061. fi
  9062. rm -f conftest*
  9063. fi
  9064. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9065. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9066. GLIBC2="$ac_cv_gnu_library_2"
  9067. CFLAG_VISIBILITY=
  9068. HAVE_VISIBILITY=0
  9069. if test -n "$GCC"; then
  9070. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9071. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9072. if test "${gl_cv_cc_visibility+set}" = set; then
  9073. echo $ECHO_N "(cached) $ECHO_C" >&6
  9074. else
  9075. gl_save_CFLAGS="$CFLAGS"
  9076. CFLAGS="$CFLAGS -fvisibility=hidden"
  9077. cat >conftest.$ac_ext <<_ACEOF
  9078. /* confdefs.h. */
  9079. _ACEOF
  9080. cat confdefs.h >>conftest.$ac_ext
  9081. cat >>conftest.$ac_ext <<_ACEOF
  9082. /* end confdefs.h. */
  9083. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9084. extern __attribute__((__visibility__("default"))) int exportedvar;
  9085. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9086. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9087. int
  9088. main ()
  9089. {
  9090. ;
  9091. return 0;
  9092. }
  9093. _ACEOF
  9094. rm -f conftest.$ac_objext
  9095. if { (ac_try="$ac_compile"
  9096. case "(($ac_try" in
  9097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9098. *) ac_try_echo=$ac_try;;
  9099. esac
  9100. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9101. (eval "$ac_compile") 2>conftest.er1
  9102. ac_status=$?
  9103. grep -v '^ *+' conftest.er1 >conftest.err
  9104. rm -f conftest.er1
  9105. cat conftest.err >&5
  9106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9107. (exit $ac_status); } && {
  9108. test -z "$ac_cxx_werror_flag" ||
  9109. test ! -s conftest.err
  9110. } && test -s conftest.$ac_objext; then
  9111. gl_cv_cc_visibility=yes
  9112. else
  9113. echo "$as_me: failed program was:" >&5
  9114. sed 's/^/| /' conftest.$ac_ext >&5
  9115. gl_cv_cc_visibility=no
  9116. fi
  9117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9118. CFLAGS="$gl_save_CFLAGS"
  9119. fi
  9120. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9121. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9122. if test $gl_cv_cc_visibility = yes; then
  9123. CFLAG_VISIBILITY="-fvisibility=hidden"
  9124. HAVE_VISIBILITY=1
  9125. fi
  9126. fi
  9127. cat >>confdefs.h <<_ACEOF
  9128. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9129. _ACEOF
  9130. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9131. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9132. if test "${gl_cv_header_stdint_h+set}" = set; then
  9133. echo $ECHO_N "(cached) $ECHO_C" >&6
  9134. else
  9135. cat >conftest.$ac_ext <<_ACEOF
  9136. /* confdefs.h. */
  9137. _ACEOF
  9138. cat confdefs.h >>conftest.$ac_ext
  9139. cat >>conftest.$ac_ext <<_ACEOF
  9140. /* end confdefs.h. */
  9141. #include <sys/types.h>
  9142. #include <stdint.h>
  9143. int
  9144. main ()
  9145. {
  9146. uintmax_t i = (uintmax_t) -1; return !i;
  9147. ;
  9148. return 0;
  9149. }
  9150. _ACEOF
  9151. rm -f conftest.$ac_objext
  9152. if { (ac_try="$ac_compile"
  9153. case "(($ac_try" in
  9154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9155. *) ac_try_echo=$ac_try;;
  9156. esac
  9157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9158. (eval "$ac_compile") 2>conftest.er1
  9159. ac_status=$?
  9160. grep -v '^ *+' conftest.er1 >conftest.err
  9161. rm -f conftest.er1
  9162. cat conftest.err >&5
  9163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9164. (exit $ac_status); } && {
  9165. test -z "$ac_cxx_werror_flag" ||
  9166. test ! -s conftest.err
  9167. } && test -s conftest.$ac_objext; then
  9168. gl_cv_header_stdint_h=yes
  9169. else
  9170. echo "$as_me: failed program was:" >&5
  9171. sed 's/^/| /' conftest.$ac_ext >&5
  9172. gl_cv_header_stdint_h=no
  9173. fi
  9174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9175. fi
  9176. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9177. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9178. if test $gl_cv_header_stdint_h = yes; then
  9179. cat >>confdefs.h <<_ACEOF
  9180. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9181. _ACEOF
  9182. fi
  9183. for ac_header in stdlib.h unistd.h
  9184. do
  9185. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9186. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9187. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9188. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9189. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9190. echo $ECHO_N "(cached) $ECHO_C" >&6
  9191. fi
  9192. ac_res=`eval echo '${'$as_ac_Header'}'`
  9193. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9194. echo "${ECHO_T}$ac_res" >&6; }
  9195. else
  9196. # Is the header compilable?
  9197. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9198. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9199. cat >conftest.$ac_ext <<_ACEOF
  9200. /* confdefs.h. */
  9201. _ACEOF
  9202. cat confdefs.h >>conftest.$ac_ext
  9203. cat >>conftest.$ac_ext <<_ACEOF
  9204. /* end confdefs.h. */
  9205. $ac_includes_default
  9206. #include <$ac_header>
  9207. _ACEOF
  9208. rm -f conftest.$ac_objext
  9209. if { (ac_try="$ac_compile"
  9210. case "(($ac_try" in
  9211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9212. *) ac_try_echo=$ac_try;;
  9213. esac
  9214. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9215. (eval "$ac_compile") 2>conftest.er1
  9216. ac_status=$?
  9217. grep -v '^ *+' conftest.er1 >conftest.err
  9218. rm -f conftest.er1
  9219. cat conftest.err >&5
  9220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9221. (exit $ac_status); } && {
  9222. test -z "$ac_cxx_werror_flag" ||
  9223. test ! -s conftest.err
  9224. } && test -s conftest.$ac_objext; then
  9225. ac_header_compiler=yes
  9226. else
  9227. echo "$as_me: failed program was:" >&5
  9228. sed 's/^/| /' conftest.$ac_ext >&5
  9229. ac_header_compiler=no
  9230. fi
  9231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9232. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9233. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9234. # Is the header present?
  9235. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9236. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9237. cat >conftest.$ac_ext <<_ACEOF
  9238. /* confdefs.h. */
  9239. _ACEOF
  9240. cat confdefs.h >>conftest.$ac_ext
  9241. cat >>conftest.$ac_ext <<_ACEOF
  9242. /* end confdefs.h. */
  9243. #include <$ac_header>
  9244. _ACEOF
  9245. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9246. case "(($ac_try" in
  9247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9248. *) ac_try_echo=$ac_try;;
  9249. esac
  9250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9251. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9252. ac_status=$?
  9253. grep -v '^ *+' conftest.er1 >conftest.err
  9254. rm -f conftest.er1
  9255. cat conftest.err >&5
  9256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9257. (exit $ac_status); } >/dev/null && {
  9258. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9259. test ! -s conftest.err
  9260. }; then
  9261. ac_header_preproc=yes
  9262. else
  9263. echo "$as_me: failed program was:" >&5
  9264. sed 's/^/| /' conftest.$ac_ext >&5
  9265. ac_header_preproc=no
  9266. fi
  9267. rm -f conftest.err conftest.$ac_ext
  9268. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9269. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9270. # So? What about this header?
  9271. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9272. yes:no: )
  9273. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9274. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9275. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9276. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9277. ac_header_preproc=yes
  9278. ;;
  9279. no:yes:* )
  9280. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9281. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9282. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9283. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9284. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9285. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9286. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9287. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9288. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9289. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9290. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9291. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9292. ( cat <<\_ASBOX
  9293. ## ----------------------------------------------- ##
  9294. ## Report this to t-tujikawa@users.sourceforge.net ##
  9295. ## ----------------------------------------------- ##
  9296. _ASBOX
  9297. ) | sed "s/^/$as_me: WARNING: /" >&2
  9298. ;;
  9299. esac
  9300. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9301. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9302. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9303. echo $ECHO_N "(cached) $ECHO_C" >&6
  9304. else
  9305. eval "$as_ac_Header=\$ac_header_preproc"
  9306. fi
  9307. ac_res=`eval echo '${'$as_ac_Header'}'`
  9308. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9309. echo "${ECHO_T}$ac_res" >&6; }
  9310. fi
  9311. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9312. cat >>confdefs.h <<_ACEOF
  9313. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9314. _ACEOF
  9315. fi
  9316. done
  9317. for ac_func in getpagesize
  9318. do
  9319. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9320. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9321. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9322. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9323. echo $ECHO_N "(cached) $ECHO_C" >&6
  9324. else
  9325. cat >conftest.$ac_ext <<_ACEOF
  9326. /* confdefs.h. */
  9327. _ACEOF
  9328. cat confdefs.h >>conftest.$ac_ext
  9329. cat >>conftest.$ac_ext <<_ACEOF
  9330. /* end confdefs.h. */
  9331. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9332. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9333. #define $ac_func innocuous_$ac_func
  9334. /* System header to define __stub macros and hopefully few prototypes,
  9335. which can conflict with char $ac_func (); below.
  9336. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9337. <limits.h> exists even on freestanding compilers. */
  9338. #ifdef __STDC__
  9339. # include <limits.h>
  9340. #else
  9341. # include <assert.h>
  9342. #endif
  9343. #undef $ac_func
  9344. /* Override any GCC internal prototype to avoid an error.
  9345. Use char because int might match the return type of a GCC
  9346. builtin and then its argument prototype would still apply. */
  9347. #ifdef __cplusplus
  9348. extern "C"
  9349. #endif
  9350. char $ac_func ();
  9351. /* The GNU C library defines this for functions which it implements
  9352. to always fail with ENOSYS. Some functions are actually named
  9353. something starting with __ and the normal name is an alias. */
  9354. #if defined __stub_$ac_func || defined __stub___$ac_func
  9355. choke me
  9356. #endif
  9357. int
  9358. main ()
  9359. {
  9360. return $ac_func ();
  9361. ;
  9362. return 0;
  9363. }
  9364. _ACEOF
  9365. rm -f conftest.$ac_objext conftest$ac_exeext
  9366. if { (ac_try="$ac_link"
  9367. case "(($ac_try" in
  9368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9369. *) ac_try_echo=$ac_try;;
  9370. esac
  9371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9372. (eval "$ac_link") 2>conftest.er1
  9373. ac_status=$?
  9374. grep -v '^ *+' conftest.er1 >conftest.err
  9375. rm -f conftest.er1
  9376. cat conftest.err >&5
  9377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9378. (exit $ac_status); } && {
  9379. test -z "$ac_cxx_werror_flag" ||
  9380. test ! -s conftest.err
  9381. } && test -s conftest$ac_exeext &&
  9382. $as_test_x conftest$ac_exeext; then
  9383. eval "$as_ac_var=yes"
  9384. else
  9385. echo "$as_me: failed program was:" >&5
  9386. sed 's/^/| /' conftest.$ac_ext >&5
  9387. eval "$as_ac_var=no"
  9388. fi
  9389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9390. conftest$ac_exeext conftest.$ac_ext
  9391. fi
  9392. ac_res=`eval echo '${'$as_ac_var'}'`
  9393. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9394. echo "${ECHO_T}$ac_res" >&6; }
  9395. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9396. cat >>confdefs.h <<_ACEOF
  9397. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9398. _ACEOF
  9399. fi
  9400. done
  9401. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9402. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9403. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9404. echo $ECHO_N "(cached) $ECHO_C" >&6
  9405. else
  9406. if test "$cross_compiling" = yes; then
  9407. ac_cv_func_mmap_fixed_mapped=no
  9408. else
  9409. cat >conftest.$ac_ext <<_ACEOF
  9410. /* confdefs.h. */
  9411. _ACEOF
  9412. cat confdefs.h >>conftest.$ac_ext
  9413. cat >>conftest.$ac_ext <<_ACEOF
  9414. /* end confdefs.h. */
  9415. $ac_includes_default
  9416. /* malloc might have been renamed as rpl_malloc. */
  9417. #undef malloc
  9418. /* Thanks to Mike Haertel and Jim Avera for this test.
  9419. Here is a matrix of mmap possibilities:
  9420. mmap private not fixed
  9421. mmap private fixed at somewhere currently unmapped
  9422. mmap private fixed at somewhere already mapped
  9423. mmap shared not fixed
  9424. mmap shared fixed at somewhere currently unmapped
  9425. mmap shared fixed at somewhere already mapped
  9426. For private mappings, we should verify that changes cannot be read()
  9427. back from the file, nor mmap's back from the file at a different
  9428. address. (There have been systems where private was not correctly
  9429. implemented like the infamous i386 svr4.0, and systems where the
  9430. VM page cache was not coherent with the file system buffer cache
  9431. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9432. For shared mappings, we should conversely verify that changes get
  9433. propagated back to all the places they're supposed to be.
  9434. Grep wants private fixed already mapped.
  9435. The main things grep needs to know about mmap are:
  9436. * does it exist and is it safe to write into the mmap'd area
  9437. * how to use it (BSD variants) */
  9438. #include <fcntl.h>
  9439. #include <sys/mman.h>
  9440. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9441. char *malloc ();
  9442. #endif
  9443. /* This mess was copied from the GNU getpagesize.h. */
  9444. #ifndef HAVE_GETPAGESIZE
  9445. /* Assume that all systems that can run configure have sys/param.h. */
  9446. # ifndef HAVE_SYS_PARAM_H
  9447. # define HAVE_SYS_PARAM_H 1
  9448. # endif
  9449. # ifdef _SC_PAGESIZE
  9450. # define getpagesize() sysconf(_SC_PAGESIZE)
  9451. # else /* no _SC_PAGESIZE */
  9452. # ifdef HAVE_SYS_PARAM_H
  9453. # include <sys/param.h>
  9454. # ifdef EXEC_PAGESIZE
  9455. # define getpagesize() EXEC_PAGESIZE
  9456. # else /* no EXEC_PAGESIZE */
  9457. # ifdef NBPG
  9458. # define getpagesize() NBPG * CLSIZE
  9459. # ifndef CLSIZE
  9460. # define CLSIZE 1
  9461. # endif /* no CLSIZE */
  9462. # else /* no NBPG */
  9463. # ifdef NBPC
  9464. # define getpagesize() NBPC
  9465. # else /* no NBPC */
  9466. # ifdef PAGESIZE
  9467. # define getpagesize() PAGESIZE
  9468. # endif /* PAGESIZE */
  9469. # endif /* no NBPC */
  9470. # endif /* no NBPG */
  9471. # endif /* no EXEC_PAGESIZE */
  9472. # else /* no HAVE_SYS_PARAM_H */
  9473. # define getpagesize() 8192 /* punt totally */
  9474. # endif /* no HAVE_SYS_PARAM_H */
  9475. # endif /* no _SC_PAGESIZE */
  9476. #endif /* no HAVE_GETPAGESIZE */
  9477. int
  9478. main ()
  9479. {
  9480. char *data, *data2, *data3;
  9481. int i, pagesize;
  9482. int fd;
  9483. pagesize = getpagesize ();
  9484. /* First, make a file with some known garbage in it. */
  9485. data = (char *) malloc (pagesize);
  9486. if (!data)
  9487. return 1;
  9488. for (i = 0; i < pagesize; ++i)
  9489. *(data + i) = rand ();
  9490. umask (0);
  9491. fd = creat ("conftest.mmap", 0600);
  9492. if (fd < 0)
  9493. return 1;
  9494. if (write (fd, data, pagesize) != pagesize)
  9495. return 1;
  9496. close (fd);
  9497. /* Next, try to mmap the file at a fixed address which already has
  9498. something else allocated at it. If we can, also make sure that
  9499. we see the same garbage. */
  9500. fd = open ("conftest.mmap", O_RDWR);
  9501. if (fd < 0)
  9502. return 1;
  9503. data2 = (char *) malloc (2 * pagesize);
  9504. if (!data2)
  9505. return 1;
  9506. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9507. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9508. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9509. return 1;
  9510. for (i = 0; i < pagesize; ++i)
  9511. if (*(data + i) != *(data2 + i))
  9512. return 1;
  9513. /* Finally, make sure that changes to the mapped area do not
  9514. percolate back to the file as seen by read(). (This is a bug on
  9515. some variants of i386 svr4.0.) */
  9516. for (i = 0; i < pagesize; ++i)
  9517. *(data2 + i) = *(data2 + i) + 1;
  9518. data3 = (char *) malloc (pagesize);
  9519. if (!data3)
  9520. return 1;
  9521. if (read (fd, data3, pagesize) != pagesize)
  9522. return 1;
  9523. for (i = 0; i < pagesize; ++i)
  9524. if (*(data + i) != *(data3 + i))
  9525. return 1;
  9526. close (fd);
  9527. return 0;
  9528. }
  9529. _ACEOF
  9530. rm -f conftest$ac_exeext
  9531. if { (ac_try="$ac_link"
  9532. case "(($ac_try" in
  9533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9534. *) ac_try_echo=$ac_try;;
  9535. esac
  9536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9537. (eval "$ac_link") 2>&5
  9538. ac_status=$?
  9539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9540. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9541. { (case "(($ac_try" in
  9542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9543. *) ac_try_echo=$ac_try;;
  9544. esac
  9545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9546. (eval "$ac_try") 2>&5
  9547. ac_status=$?
  9548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9549. (exit $ac_status); }; }; then
  9550. ac_cv_func_mmap_fixed_mapped=yes
  9551. else
  9552. echo "$as_me: program exited with status $ac_status" >&5
  9553. echo "$as_me: failed program was:" >&5
  9554. sed 's/^/| /' conftest.$ac_ext >&5
  9555. ( exit $ac_status )
  9556. ac_cv_func_mmap_fixed_mapped=no
  9557. fi
  9558. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9559. fi
  9560. fi
  9561. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9562. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9563. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9564. cat >>confdefs.h <<\_ACEOF
  9565. #define HAVE_MMAP 1
  9566. _ACEOF
  9567. fi
  9568. rm -f conftest.mmap
  9569. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9570. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9571. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9572. echo $ECHO_N "(cached) $ECHO_C" >&6
  9573. else
  9574. gt_cv_int_divbyzero_sigfpe=
  9575. case "$host_os" in
  9576. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9577. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9578. # compiling. If we were to perform the real test, 1 Crash Report
  9579. # dialog window would pop up.
  9580. case "$host_cpu" in
  9581. i[34567]86 | x86_64)
  9582. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9583. esac
  9584. ;;
  9585. esac
  9586. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9587. if test "$cross_compiling" = yes; then
  9588. # Guess based on the CPU.
  9589. case "$host_cpu" in
  9590. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9591. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9592. *)
  9593. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9594. esac
  9595. else
  9596. cat >conftest.$ac_ext <<_ACEOF
  9597. /* confdefs.h. */
  9598. _ACEOF
  9599. cat confdefs.h >>conftest.$ac_ext
  9600. cat >>conftest.$ac_ext <<_ACEOF
  9601. /* end confdefs.h. */
  9602. #include <stdlib.h>
  9603. #include <signal.h>
  9604. static void
  9605. sigfpe_handler (int sig)
  9606. {
  9607. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9608. exit (sig != SIGFPE);
  9609. }
  9610. int x = 1;
  9611. int y = 0;
  9612. int z;
  9613. int nan;
  9614. int main ()
  9615. {
  9616. signal (SIGFPE, sigfpe_handler);
  9617. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9618. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  9619. signal (SIGTRAP, sigfpe_handler);
  9620. #endif
  9621. /* Linux/SPARC yields signal SIGILL. */
  9622. #if defined (__sparc__) && defined (__linux__)
  9623. signal (SIGILL, sigfpe_handler);
  9624. #endif
  9625. z = x / y;
  9626. nan = y / y;
  9627. exit (1);
  9628. }
  9629. _ACEOF
  9630. rm -f conftest$ac_exeext
  9631. if { (ac_try="$ac_link"
  9632. case "(($ac_try" in
  9633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9634. *) ac_try_echo=$ac_try;;
  9635. esac
  9636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9637. (eval "$ac_link") 2>&5
  9638. ac_status=$?
  9639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9640. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9641. { (case "(($ac_try" in
  9642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9643. *) ac_try_echo=$ac_try;;
  9644. esac
  9645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9646. (eval "$ac_try") 2>&5
  9647. ac_status=$?
  9648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9649. (exit $ac_status); }; }; then
  9650. gt_cv_int_divbyzero_sigfpe=yes
  9651. else
  9652. echo "$as_me: program exited with status $ac_status" >&5
  9653. echo "$as_me: failed program was:" >&5
  9654. sed 's/^/| /' conftest.$ac_ext >&5
  9655. ( exit $ac_status )
  9656. gt_cv_int_divbyzero_sigfpe=no
  9657. fi
  9658. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9659. fi
  9660. fi
  9661. fi
  9662. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  9663. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  9664. case "$gt_cv_int_divbyzero_sigfpe" in
  9665. *yes) value=1;;
  9666. *) value=0;;
  9667. esac
  9668. cat >>confdefs.h <<_ACEOF
  9669. #define INTDIV0_RAISES_SIGFPE $value
  9670. _ACEOF
  9671. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  9672. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  9673. if test "${gl_cv_header_inttypes_h+set}" = set; then
  9674. echo $ECHO_N "(cached) $ECHO_C" >&6
  9675. else
  9676. cat >conftest.$ac_ext <<_ACEOF
  9677. /* confdefs.h. */
  9678. _ACEOF
  9679. cat confdefs.h >>conftest.$ac_ext
  9680. cat >>conftest.$ac_ext <<_ACEOF
  9681. /* end confdefs.h. */
  9682. #include <sys/types.h>
  9683. #include <inttypes.h>
  9684. int
  9685. main ()
  9686. {
  9687. uintmax_t i = (uintmax_t) -1; return !i;
  9688. ;
  9689. return 0;
  9690. }
  9691. _ACEOF
  9692. rm -f conftest.$ac_objext
  9693. if { (ac_try="$ac_compile"
  9694. case "(($ac_try" in
  9695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9696. *) ac_try_echo=$ac_try;;
  9697. esac
  9698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9699. (eval "$ac_compile") 2>conftest.er1
  9700. ac_status=$?
  9701. grep -v '^ *+' conftest.er1 >conftest.err
  9702. rm -f conftest.er1
  9703. cat conftest.err >&5
  9704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9705. (exit $ac_status); } && {
  9706. test -z "$ac_cxx_werror_flag" ||
  9707. test ! -s conftest.err
  9708. } && test -s conftest.$ac_objext; then
  9709. gl_cv_header_inttypes_h=yes
  9710. else
  9711. echo "$as_me: failed program was:" >&5
  9712. sed 's/^/| /' conftest.$ac_ext >&5
  9713. gl_cv_header_inttypes_h=no
  9714. fi
  9715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9716. fi
  9717. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  9718. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  9719. if test $gl_cv_header_inttypes_h = yes; then
  9720. cat >>confdefs.h <<_ACEOF
  9721. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  9722. _ACEOF
  9723. fi
  9724. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  9725. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  9726. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  9727. echo $ECHO_N "(cached) $ECHO_C" >&6
  9728. else
  9729. cat >conftest.$ac_ext <<_ACEOF
  9730. /* confdefs.h. */
  9731. _ACEOF
  9732. cat confdefs.h >>conftest.$ac_ext
  9733. cat >>conftest.$ac_ext <<_ACEOF
  9734. /* end confdefs.h. */
  9735. /* Test preprocessor. */
  9736. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9737. error in preprocessor;
  9738. #endif
  9739. #if ! (18446744073709551615ULL <= -1ull)
  9740. error in preprocessor;
  9741. #endif
  9742. /* Test literals. */
  9743. long long int ll = 9223372036854775807ll;
  9744. long long int nll = -9223372036854775807LL;
  9745. unsigned long long int ull = 18446744073709551615ULL;
  9746. /* Test constant expressions. */
  9747. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9748. ? 1 : -1)];
  9749. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  9750. ? 1 : -1)];
  9751. int i = 63;
  9752. int
  9753. main ()
  9754. {
  9755. /* Test availability of runtime routines for shift and division. */
  9756. long long int llmax = 9223372036854775807ll;
  9757. unsigned long long int ullmax = 18446744073709551615ull;
  9758. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  9759. | (llmax / ll) | (llmax % ll)
  9760. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  9761. | (ullmax / ull) | (ullmax % ull));
  9762. ;
  9763. return 0;
  9764. }
  9765. _ACEOF
  9766. rm -f conftest.$ac_objext conftest$ac_exeext
  9767. if { (ac_try="$ac_link"
  9768. case "(($ac_try" in
  9769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9770. *) ac_try_echo=$ac_try;;
  9771. esac
  9772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9773. (eval "$ac_link") 2>conftest.er1
  9774. ac_status=$?
  9775. grep -v '^ *+' conftest.er1 >conftest.err
  9776. rm -f conftest.er1
  9777. cat conftest.err >&5
  9778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9779. (exit $ac_status); } && {
  9780. test -z "$ac_cxx_werror_flag" ||
  9781. test ! -s conftest.err
  9782. } && test -s conftest$ac_exeext &&
  9783. $as_test_x conftest$ac_exeext; then
  9784. ac_cv_type_unsigned_long_long_int=yes
  9785. else
  9786. echo "$as_me: failed program was:" >&5
  9787. sed 's/^/| /' conftest.$ac_ext >&5
  9788. ac_cv_type_unsigned_long_long_int=no
  9789. fi
  9790. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9791. conftest$ac_exeext conftest.$ac_ext
  9792. fi
  9793. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  9794. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  9795. if test $ac_cv_type_unsigned_long_long_int = yes; then
  9796. cat >>confdefs.h <<\_ACEOF
  9797. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  9798. _ACEOF
  9799. fi
  9800. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  9801. test $ac_cv_type_unsigned_long_long_int = yes \
  9802. && ac_type='unsigned long long' \
  9803. || ac_type='unsigned long'
  9804. cat >>confdefs.h <<_ACEOF
  9805. #define uintmax_t $ac_type
  9806. _ACEOF
  9807. else
  9808. cat >>confdefs.h <<\_ACEOF
  9809. #define HAVE_UINTMAX_T 1
  9810. _ACEOF
  9811. fi
  9812. for ac_header in inttypes.h
  9813. do
  9814. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9815. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9816. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9817. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9818. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9819. echo $ECHO_N "(cached) $ECHO_C" >&6
  9820. fi
  9821. ac_res=`eval echo '${'$as_ac_Header'}'`
  9822. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9823. echo "${ECHO_T}$ac_res" >&6; }
  9824. else
  9825. # Is the header compilable?
  9826. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9827. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9828. cat >conftest.$ac_ext <<_ACEOF
  9829. /* confdefs.h. */
  9830. _ACEOF
  9831. cat confdefs.h >>conftest.$ac_ext
  9832. cat >>conftest.$ac_ext <<_ACEOF
  9833. /* end confdefs.h. */
  9834. $ac_includes_default
  9835. #include <$ac_header>
  9836. _ACEOF
  9837. rm -f conftest.$ac_objext
  9838. if { (ac_try="$ac_compile"
  9839. case "(($ac_try" in
  9840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9841. *) ac_try_echo=$ac_try;;
  9842. esac
  9843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9844. (eval "$ac_compile") 2>conftest.er1
  9845. ac_status=$?
  9846. grep -v '^ *+' conftest.er1 >conftest.err
  9847. rm -f conftest.er1
  9848. cat conftest.err >&5
  9849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9850. (exit $ac_status); } && {
  9851. test -z "$ac_cxx_werror_flag" ||
  9852. test ! -s conftest.err
  9853. } && test -s conftest.$ac_objext; then
  9854. ac_header_compiler=yes
  9855. else
  9856. echo "$as_me: failed program was:" >&5
  9857. sed 's/^/| /' conftest.$ac_ext >&5
  9858. ac_header_compiler=no
  9859. fi
  9860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9861. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9862. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9863. # Is the header present?
  9864. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9865. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9866. cat >conftest.$ac_ext <<_ACEOF
  9867. /* confdefs.h. */
  9868. _ACEOF
  9869. cat confdefs.h >>conftest.$ac_ext
  9870. cat >>conftest.$ac_ext <<_ACEOF
  9871. /* end confdefs.h. */
  9872. #include <$ac_header>
  9873. _ACEOF
  9874. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9875. case "(($ac_try" in
  9876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9877. *) ac_try_echo=$ac_try;;
  9878. esac
  9879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9880. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9881. ac_status=$?
  9882. grep -v '^ *+' conftest.er1 >conftest.err
  9883. rm -f conftest.er1
  9884. cat conftest.err >&5
  9885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9886. (exit $ac_status); } >/dev/null && {
  9887. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9888. test ! -s conftest.err
  9889. }; then
  9890. ac_header_preproc=yes
  9891. else
  9892. echo "$as_me: failed program was:" >&5
  9893. sed 's/^/| /' conftest.$ac_ext >&5
  9894. ac_header_preproc=no
  9895. fi
  9896. rm -f conftest.err conftest.$ac_ext
  9897. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9898. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9899. # So? What about this header?
  9900. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9901. yes:no: )
  9902. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9903. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9904. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9905. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9906. ac_header_preproc=yes
  9907. ;;
  9908. no:yes:* )
  9909. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9910. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9911. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9912. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9913. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9914. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9915. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9916. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9917. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9918. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9919. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9920. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9921. ( cat <<\_ASBOX
  9922. ## ----------------------------------------------- ##
  9923. ## Report this to t-tujikawa@users.sourceforge.net ##
  9924. ## ----------------------------------------------- ##
  9925. _ASBOX
  9926. ) | sed "s/^/$as_me: WARNING: /" >&2
  9927. ;;
  9928. esac
  9929. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9930. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9931. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9932. echo $ECHO_N "(cached) $ECHO_C" >&6
  9933. else
  9934. eval "$as_ac_Header=\$ac_header_preproc"
  9935. fi
  9936. ac_res=`eval echo '${'$as_ac_Header'}'`
  9937. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9938. echo "${ECHO_T}$ac_res" >&6; }
  9939. fi
  9940. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9941. cat >>confdefs.h <<_ACEOF
  9942. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9943. _ACEOF
  9944. fi
  9945. done
  9946. if test $ac_cv_header_inttypes_h = yes; then
  9947. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  9948. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  9949. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  9950. echo $ECHO_N "(cached) $ECHO_C" >&6
  9951. else
  9952. cat >conftest.$ac_ext <<_ACEOF
  9953. /* confdefs.h. */
  9954. _ACEOF
  9955. cat confdefs.h >>conftest.$ac_ext
  9956. cat >>conftest.$ac_ext <<_ACEOF
  9957. /* end confdefs.h. */
  9958. #include <inttypes.h>
  9959. #ifdef PRId32
  9960. char *p = PRId32;
  9961. #endif
  9962. int
  9963. main ()
  9964. {
  9965. ;
  9966. return 0;
  9967. }
  9968. _ACEOF
  9969. rm -f conftest.$ac_objext
  9970. if { (ac_try="$ac_compile"
  9971. case "(($ac_try" in
  9972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9973. *) ac_try_echo=$ac_try;;
  9974. esac
  9975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9976. (eval "$ac_compile") 2>conftest.er1
  9977. ac_status=$?
  9978. grep -v '^ *+' conftest.er1 >conftest.err
  9979. rm -f conftest.er1
  9980. cat conftest.err >&5
  9981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9982. (exit $ac_status); } && {
  9983. test -z "$ac_cxx_werror_flag" ||
  9984. test ! -s conftest.err
  9985. } && test -s conftest.$ac_objext; then
  9986. gt_cv_inttypes_pri_broken=no
  9987. else
  9988. echo "$as_me: failed program was:" >&5
  9989. sed 's/^/| /' conftest.$ac_ext >&5
  9990. gt_cv_inttypes_pri_broken=yes
  9991. fi
  9992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9993. fi
  9994. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  9995. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  9996. fi
  9997. if test "$gt_cv_inttypes_pri_broken" = yes; then
  9998. cat >>confdefs.h <<_ACEOF
  9999. #define PRI_MACROS_BROKEN 1
  10000. _ACEOF
  10001. PRI_MACROS_BROKEN=1
  10002. else
  10003. PRI_MACROS_BROKEN=0
  10004. fi
  10005. # Check whether --enable-threads was given.
  10006. if test "${enable_threads+set}" = set; then
  10007. enableval=$enable_threads; gl_use_threads=$enableval
  10008. else
  10009. case "$host_os" in
  10010. osf*) gl_use_threads=no ;;
  10011. *) gl_use_threads=yes ;;
  10012. esac
  10013. fi
  10014. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10015. # For using <pthread.h>:
  10016. case "$host_os" in
  10017. osf*)
  10018. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10019. # groks <pthread.h>. cc also understands the flag -pthread, but
  10020. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10021. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10022. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10023. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10024. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10025. ;;
  10026. esac
  10027. # Some systems optimize for single-threaded programs by default, and
  10028. # need special flags to disable these optimizations. For example, the
  10029. # definition of 'errno' in <errno.h>.
  10030. case "$host_os" in
  10031. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10032. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10033. esac
  10034. fi
  10035. if test "X$prefix" = "XNONE"; then
  10036. acl_final_prefix="$ac_default_prefix"
  10037. else
  10038. acl_final_prefix="$prefix"
  10039. fi
  10040. if test "X$exec_prefix" = "XNONE"; then
  10041. acl_final_exec_prefix='${prefix}'
  10042. else
  10043. acl_final_exec_prefix="$exec_prefix"
  10044. fi
  10045. acl_save_prefix="$prefix"
  10046. prefix="$acl_final_prefix"
  10047. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10048. prefix="$acl_save_prefix"
  10049. # Check whether --with-gnu-ld was given.
  10050. if test "${with_gnu_ld+set}" = set; then
  10051. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10052. else
  10053. with_gnu_ld=no
  10054. fi
  10055. # Prepare PATH_SEPARATOR.
  10056. # The user is always right.
  10057. if test "${PATH_SEPARATOR+set}" != set; then
  10058. echo "#! /bin/sh" >conf$$.sh
  10059. echo "exit 0" >>conf$$.sh
  10060. chmod +x conf$$.sh
  10061. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10062. PATH_SEPARATOR=';'
  10063. else
  10064. PATH_SEPARATOR=:
  10065. fi
  10066. rm -f conf$$.sh
  10067. fi
  10068. ac_prog=ld
  10069. if test "$GCC" = yes; then
  10070. # Check if gcc -print-prog-name=ld gives a path.
  10071. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10072. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10073. case $host in
  10074. *-*-mingw*)
  10075. # gcc leaves a trailing carriage return which upsets mingw
  10076. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10077. *)
  10078. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10079. esac
  10080. case $ac_prog in
  10081. # Accept absolute paths.
  10082. [\\/]* | [A-Za-z]:[\\/]*)
  10083. re_direlt='/[^/][^/]*/\.\./'
  10084. # Canonicalize the path of ld
  10085. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10086. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10087. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10088. done
  10089. test -z "$LD" && LD="$ac_prog"
  10090. ;;
  10091. "")
  10092. # If it fails, then pretend we aren't using GCC.
  10093. ac_prog=ld
  10094. ;;
  10095. *)
  10096. # If it is relative, then search for the first ld in PATH.
  10097. with_gnu_ld=unknown
  10098. ;;
  10099. esac
  10100. elif test "$with_gnu_ld" = yes; then
  10101. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10102. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10103. else
  10104. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10105. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10106. fi
  10107. if test "${acl_cv_path_LD+set}" = set; then
  10108. echo $ECHO_N "(cached) $ECHO_C" >&6
  10109. else
  10110. if test -z "$LD"; then
  10111. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10112. for ac_dir in $PATH; do
  10113. test -z "$ac_dir" && ac_dir=.
  10114. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10115. acl_cv_path_LD="$ac_dir/$ac_prog"
  10116. # Check to see if the program is GNU ld. I'd rather use --version,
  10117. # but apparently some GNU ld's only accept -v.
  10118. # Break only if it was the GNU/non-GNU ld that we prefer.
  10119. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10120. *GNU* | *'with BFD'*)
  10121. test "$with_gnu_ld" != no && break ;;
  10122. *)
  10123. test "$with_gnu_ld" != yes && break ;;
  10124. esac
  10125. fi
  10126. done
  10127. IFS="$ac_save_ifs"
  10128. else
  10129. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10130. fi
  10131. fi
  10132. LD="$acl_cv_path_LD"
  10133. if test -n "$LD"; then
  10134. { echo "$as_me:$LINENO: result: $LD" >&5
  10135. echo "${ECHO_T}$LD" >&6; }
  10136. else
  10137. { echo "$as_me:$LINENO: result: no" >&5
  10138. echo "${ECHO_T}no" >&6; }
  10139. fi
  10140. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10141. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10142. { (exit 1); exit 1; }; }
  10143. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10144. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10145. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10146. echo $ECHO_N "(cached) $ECHO_C" >&6
  10147. else
  10148. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10149. case `$LD -v 2>&1 </dev/null` in
  10150. *GNU* | *'with BFD'*)
  10151. acl_cv_prog_gnu_ld=yes ;;
  10152. *)
  10153. acl_cv_prog_gnu_ld=no ;;
  10154. esac
  10155. fi
  10156. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10157. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10158. with_gnu_ld=$acl_cv_prog_gnu_ld
  10159. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10160. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10161. if test "${acl_cv_rpath+set}" = set; then
  10162. echo $ECHO_N "(cached) $ECHO_C" >&6
  10163. else
  10164. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10165. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10166. . ./conftest.sh
  10167. rm -f ./conftest.sh
  10168. acl_cv_rpath=done
  10169. fi
  10170. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10171. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10172. wl="$acl_cv_wl"
  10173. acl_libext="$acl_cv_libext"
  10174. acl_shlibext="$acl_cv_shlibext"
  10175. acl_libname_spec="$acl_cv_libname_spec"
  10176. acl_library_names_spec="$acl_cv_library_names_spec"
  10177. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10178. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10179. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10180. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10181. # Check whether --enable-rpath was given.
  10182. if test "${enable_rpath+set}" = set; then
  10183. enableval=$enable_rpath; :
  10184. else
  10185. enable_rpath=yes
  10186. fi
  10187. acl_libdirstem=lib
  10188. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10189. if test -n "$searchpath"; then
  10190. acl_save_IFS="${IFS= }"; IFS=":"
  10191. for searchdir in $searchpath; do
  10192. if test -d "$searchdir"; then
  10193. case "$searchdir" in
  10194. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10195. *) searchdir=`cd "$searchdir" && pwd`
  10196. case "$searchdir" in
  10197. */lib64 ) acl_libdirstem=lib64 ;;
  10198. esac ;;
  10199. esac
  10200. fi
  10201. done
  10202. IFS="$acl_save_IFS"
  10203. fi
  10204. gl_threads_api=none
  10205. LIBTHREAD=
  10206. LTLIBTHREAD=
  10207. LIBMULTITHREAD=
  10208. LTLIBMULTITHREAD=
  10209. if test "$gl_use_threads" != no; then
  10210. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10211. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10212. gl_have_weak=no
  10213. cat >conftest.$ac_ext <<_ACEOF
  10214. /* confdefs.h. */
  10215. _ACEOF
  10216. cat confdefs.h >>conftest.$ac_ext
  10217. cat >>conftest.$ac_ext <<_ACEOF
  10218. /* end confdefs.h. */
  10219. extern void xyzzy ();
  10220. #pragma weak xyzzy
  10221. int
  10222. main ()
  10223. {
  10224. xyzzy();
  10225. ;
  10226. return 0;
  10227. }
  10228. _ACEOF
  10229. rm -f conftest.$ac_objext conftest$ac_exeext
  10230. if { (ac_try="$ac_link"
  10231. case "(($ac_try" in
  10232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10233. *) ac_try_echo=$ac_try;;
  10234. esac
  10235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10236. (eval "$ac_link") 2>conftest.er1
  10237. ac_status=$?
  10238. grep -v '^ *+' conftest.er1 >conftest.err
  10239. rm -f conftest.er1
  10240. cat conftest.err >&5
  10241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10242. (exit $ac_status); } && {
  10243. test -z "$ac_cxx_werror_flag" ||
  10244. test ! -s conftest.err
  10245. } && test -s conftest$ac_exeext &&
  10246. $as_test_x conftest$ac_exeext; then
  10247. gl_have_weak=yes
  10248. else
  10249. echo "$as_me: failed program was:" >&5
  10250. sed 's/^/| /' conftest.$ac_ext >&5
  10251. fi
  10252. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10253. conftest$ac_exeext conftest.$ac_ext
  10254. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10255. echo "${ECHO_T}$gl_have_weak" >&6; }
  10256. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10257. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10258. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10259. if test "${ac_cv_header_pthread_h+set}" = set; then
  10260. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10261. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10262. if test "${ac_cv_header_pthread_h+set}" = set; then
  10263. echo $ECHO_N "(cached) $ECHO_C" >&6
  10264. fi
  10265. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10266. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10267. else
  10268. # Is the header compilable?
  10269. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10270. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10271. cat >conftest.$ac_ext <<_ACEOF
  10272. /* confdefs.h. */
  10273. _ACEOF
  10274. cat confdefs.h >>conftest.$ac_ext
  10275. cat >>conftest.$ac_ext <<_ACEOF
  10276. /* end confdefs.h. */
  10277. $ac_includes_default
  10278. #include <pthread.h>
  10279. _ACEOF
  10280. rm -f conftest.$ac_objext
  10281. if { (ac_try="$ac_compile"
  10282. case "(($ac_try" in
  10283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10284. *) ac_try_echo=$ac_try;;
  10285. esac
  10286. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10287. (eval "$ac_compile") 2>conftest.er1
  10288. ac_status=$?
  10289. grep -v '^ *+' conftest.er1 >conftest.err
  10290. rm -f conftest.er1
  10291. cat conftest.err >&5
  10292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10293. (exit $ac_status); } && {
  10294. test -z "$ac_cxx_werror_flag" ||
  10295. test ! -s conftest.err
  10296. } && test -s conftest.$ac_objext; then
  10297. ac_header_compiler=yes
  10298. else
  10299. echo "$as_me: failed program was:" >&5
  10300. sed 's/^/| /' conftest.$ac_ext >&5
  10301. ac_header_compiler=no
  10302. fi
  10303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10304. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10305. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10306. # Is the header present?
  10307. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10308. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10309. cat >conftest.$ac_ext <<_ACEOF
  10310. /* confdefs.h. */
  10311. _ACEOF
  10312. cat confdefs.h >>conftest.$ac_ext
  10313. cat >>conftest.$ac_ext <<_ACEOF
  10314. /* end confdefs.h. */
  10315. #include <pthread.h>
  10316. _ACEOF
  10317. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10318. case "(($ac_try" in
  10319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10320. *) ac_try_echo=$ac_try;;
  10321. esac
  10322. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10323. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10324. ac_status=$?
  10325. grep -v '^ *+' conftest.er1 >conftest.err
  10326. rm -f conftest.er1
  10327. cat conftest.err >&5
  10328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10329. (exit $ac_status); } >/dev/null && {
  10330. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10331. test ! -s conftest.err
  10332. }; then
  10333. ac_header_preproc=yes
  10334. else
  10335. echo "$as_me: failed program was:" >&5
  10336. sed 's/^/| /' conftest.$ac_ext >&5
  10337. ac_header_preproc=no
  10338. fi
  10339. rm -f conftest.err conftest.$ac_ext
  10340. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10341. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10342. # So? What about this header?
  10343. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10344. yes:no: )
  10345. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10346. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10347. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10348. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10349. ac_header_preproc=yes
  10350. ;;
  10351. no:yes:* )
  10352. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10353. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10354. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10355. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10356. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10357. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10358. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10359. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10360. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10361. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10362. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10363. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10364. ( cat <<\_ASBOX
  10365. ## ----------------------------------------------- ##
  10366. ## Report this to t-tujikawa@users.sourceforge.net ##
  10367. ## ----------------------------------------------- ##
  10368. _ASBOX
  10369. ) | sed "s/^/$as_me: WARNING: /" >&2
  10370. ;;
  10371. esac
  10372. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10373. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10374. if test "${ac_cv_header_pthread_h+set}" = set; then
  10375. echo $ECHO_N "(cached) $ECHO_C" >&6
  10376. else
  10377. ac_cv_header_pthread_h=$ac_header_preproc
  10378. fi
  10379. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10380. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10381. fi
  10382. if test $ac_cv_header_pthread_h = yes; then
  10383. gl_have_pthread_h=yes
  10384. else
  10385. gl_have_pthread_h=no
  10386. fi
  10387. if test "$gl_have_pthread_h" = yes; then
  10388. # Other possible tests:
  10389. # -lpthreads (FSU threads, PCthreads)
  10390. # -lgthreads
  10391. gl_have_pthread=
  10392. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10393. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10394. # the second one only in libpthread, and lock.c needs it.
  10395. cat >conftest.$ac_ext <<_ACEOF
  10396. /* confdefs.h. */
  10397. _ACEOF
  10398. cat confdefs.h >>conftest.$ac_ext
  10399. cat >>conftest.$ac_ext <<_ACEOF
  10400. /* end confdefs.h. */
  10401. #include <pthread.h>
  10402. int
  10403. main ()
  10404. {
  10405. pthread_mutex_lock((pthread_mutex_t*)0);
  10406. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10407. ;
  10408. return 0;
  10409. }
  10410. _ACEOF
  10411. rm -f conftest.$ac_objext conftest$ac_exeext
  10412. if { (ac_try="$ac_link"
  10413. case "(($ac_try" in
  10414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10415. *) ac_try_echo=$ac_try;;
  10416. esac
  10417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10418. (eval "$ac_link") 2>conftest.er1
  10419. ac_status=$?
  10420. grep -v '^ *+' conftest.er1 >conftest.err
  10421. rm -f conftest.er1
  10422. cat conftest.err >&5
  10423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10424. (exit $ac_status); } && {
  10425. test -z "$ac_cxx_werror_flag" ||
  10426. test ! -s conftest.err
  10427. } && test -s conftest$ac_exeext &&
  10428. $as_test_x conftest$ac_exeext; then
  10429. gl_have_pthread=yes
  10430. else
  10431. echo "$as_me: failed program was:" >&5
  10432. sed 's/^/| /' conftest.$ac_ext >&5
  10433. fi
  10434. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10435. conftest$ac_exeext conftest.$ac_ext
  10436. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10437. # since it is defined as a macro on OSF/1.)
  10438. if test -n "$gl_have_pthread"; then
  10439. # The program links fine without libpthread. But it may actually
  10440. # need to link with libpthread in order to create multiple threads.
  10441. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10442. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10443. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10444. echo $ECHO_N "(cached) $ECHO_C" >&6
  10445. else
  10446. ac_check_lib_save_LIBS=$LIBS
  10447. LIBS="-lpthread $LIBS"
  10448. cat >conftest.$ac_ext <<_ACEOF
  10449. /* confdefs.h. */
  10450. _ACEOF
  10451. cat confdefs.h >>conftest.$ac_ext
  10452. cat >>conftest.$ac_ext <<_ACEOF
  10453. /* end confdefs.h. */
  10454. /* Override any GCC internal prototype to avoid an error.
  10455. Use char because int might match the return type of a GCC
  10456. builtin and then its argument prototype would still apply. */
  10457. #ifdef __cplusplus
  10458. extern "C"
  10459. #endif
  10460. char pthread_kill ();
  10461. int
  10462. main ()
  10463. {
  10464. return pthread_kill ();
  10465. ;
  10466. return 0;
  10467. }
  10468. _ACEOF
  10469. rm -f conftest.$ac_objext conftest$ac_exeext
  10470. if { (ac_try="$ac_link"
  10471. case "(($ac_try" in
  10472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10473. *) ac_try_echo=$ac_try;;
  10474. esac
  10475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10476. (eval "$ac_link") 2>conftest.er1
  10477. ac_status=$?
  10478. grep -v '^ *+' conftest.er1 >conftest.err
  10479. rm -f conftest.er1
  10480. cat conftest.err >&5
  10481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10482. (exit $ac_status); } && {
  10483. test -z "$ac_cxx_werror_flag" ||
  10484. test ! -s conftest.err
  10485. } && test -s conftest$ac_exeext &&
  10486. $as_test_x conftest$ac_exeext; then
  10487. ac_cv_lib_pthread_pthread_kill=yes
  10488. else
  10489. echo "$as_me: failed program was:" >&5
  10490. sed 's/^/| /' conftest.$ac_ext >&5
  10491. ac_cv_lib_pthread_pthread_kill=no
  10492. fi
  10493. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10494. conftest$ac_exeext conftest.$ac_ext
  10495. LIBS=$ac_check_lib_save_LIBS
  10496. fi
  10497. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10498. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10499. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10500. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10501. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10502. # Therefore pthread_in_use() needs to actually try to create a
  10503. # thread: pthread_create from libc will fail, whereas
  10504. # pthread_create will actually create a thread.
  10505. case "$host_os" in
  10506. solaris* | hpux*)
  10507. cat >>confdefs.h <<\_ACEOF
  10508. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10509. _ACEOF
  10510. esac
  10511. fi
  10512. else
  10513. # Some library is needed. Try libpthread and libc_r.
  10514. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10515. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10516. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10517. echo $ECHO_N "(cached) $ECHO_C" >&6
  10518. else
  10519. ac_check_lib_save_LIBS=$LIBS
  10520. LIBS="-lpthread $LIBS"
  10521. cat >conftest.$ac_ext <<_ACEOF
  10522. /* confdefs.h. */
  10523. _ACEOF
  10524. cat confdefs.h >>conftest.$ac_ext
  10525. cat >>conftest.$ac_ext <<_ACEOF
  10526. /* end confdefs.h. */
  10527. /* Override any GCC internal prototype to avoid an error.
  10528. Use char because int might match the return type of a GCC
  10529. builtin and then its argument prototype would still apply. */
  10530. #ifdef __cplusplus
  10531. extern "C"
  10532. #endif
  10533. char pthread_kill ();
  10534. int
  10535. main ()
  10536. {
  10537. return pthread_kill ();
  10538. ;
  10539. return 0;
  10540. }
  10541. _ACEOF
  10542. rm -f conftest.$ac_objext conftest$ac_exeext
  10543. if { (ac_try="$ac_link"
  10544. case "(($ac_try" in
  10545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10546. *) ac_try_echo=$ac_try;;
  10547. esac
  10548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10549. (eval "$ac_link") 2>conftest.er1
  10550. ac_status=$?
  10551. grep -v '^ *+' conftest.er1 >conftest.err
  10552. rm -f conftest.er1
  10553. cat conftest.err >&5
  10554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10555. (exit $ac_status); } && {
  10556. test -z "$ac_cxx_werror_flag" ||
  10557. test ! -s conftest.err
  10558. } && test -s conftest$ac_exeext &&
  10559. $as_test_x conftest$ac_exeext; then
  10560. ac_cv_lib_pthread_pthread_kill=yes
  10561. else
  10562. echo "$as_me: failed program was:" >&5
  10563. sed 's/^/| /' conftest.$ac_ext >&5
  10564. ac_cv_lib_pthread_pthread_kill=no
  10565. fi
  10566. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10567. conftest$ac_exeext conftest.$ac_ext
  10568. LIBS=$ac_check_lib_save_LIBS
  10569. fi
  10570. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10571. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10572. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10573. gl_have_pthread=yes
  10574. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10575. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10576. fi
  10577. if test -z "$gl_have_pthread"; then
  10578. # For FreeBSD 4.
  10579. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10580. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10581. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10582. echo $ECHO_N "(cached) $ECHO_C" >&6
  10583. else
  10584. ac_check_lib_save_LIBS=$LIBS
  10585. LIBS="-lc_r $LIBS"
  10586. cat >conftest.$ac_ext <<_ACEOF
  10587. /* confdefs.h. */
  10588. _ACEOF
  10589. cat confdefs.h >>conftest.$ac_ext
  10590. cat >>conftest.$ac_ext <<_ACEOF
  10591. /* end confdefs.h. */
  10592. /* Override any GCC internal prototype to avoid an error.
  10593. Use char because int might match the return type of a GCC
  10594. builtin and then its argument prototype would still apply. */
  10595. #ifdef __cplusplus
  10596. extern "C"
  10597. #endif
  10598. char pthread_kill ();
  10599. int
  10600. main ()
  10601. {
  10602. return pthread_kill ();
  10603. ;
  10604. return 0;
  10605. }
  10606. _ACEOF
  10607. rm -f conftest.$ac_objext conftest$ac_exeext
  10608. if { (ac_try="$ac_link"
  10609. case "(($ac_try" in
  10610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10611. *) ac_try_echo=$ac_try;;
  10612. esac
  10613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10614. (eval "$ac_link") 2>conftest.er1
  10615. ac_status=$?
  10616. grep -v '^ *+' conftest.er1 >conftest.err
  10617. rm -f conftest.er1
  10618. cat conftest.err >&5
  10619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10620. (exit $ac_status); } && {
  10621. test -z "$ac_cxx_werror_flag" ||
  10622. test ! -s conftest.err
  10623. } && test -s conftest$ac_exeext &&
  10624. $as_test_x conftest$ac_exeext; then
  10625. ac_cv_lib_c_r_pthread_kill=yes
  10626. else
  10627. echo "$as_me: failed program was:" >&5
  10628. sed 's/^/| /' conftest.$ac_ext >&5
  10629. ac_cv_lib_c_r_pthread_kill=no
  10630. fi
  10631. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10632. conftest$ac_exeext conftest.$ac_ext
  10633. LIBS=$ac_check_lib_save_LIBS
  10634. fi
  10635. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  10636. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  10637. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  10638. gl_have_pthread=yes
  10639. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  10640. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  10641. fi
  10642. fi
  10643. fi
  10644. if test -n "$gl_have_pthread"; then
  10645. gl_threads_api=posix
  10646. cat >>confdefs.h <<\_ACEOF
  10647. #define USE_POSIX_THREADS 1
  10648. _ACEOF
  10649. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  10650. if test $gl_have_weak = yes; then
  10651. cat >>confdefs.h <<\_ACEOF
  10652. #define USE_POSIX_THREADS_WEAK 1
  10653. _ACEOF
  10654. LIBTHREAD=
  10655. LTLIBTHREAD=
  10656. fi
  10657. fi
  10658. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  10659. # pthread_rwlock_* functions.
  10660. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  10661. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  10662. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  10663. echo $ECHO_N "(cached) $ECHO_C" >&6
  10664. else
  10665. cat >conftest.$ac_ext <<_ACEOF
  10666. /* confdefs.h. */
  10667. _ACEOF
  10668. cat confdefs.h >>conftest.$ac_ext
  10669. cat >>conftest.$ac_ext <<_ACEOF
  10670. /* end confdefs.h. */
  10671. #include <pthread.h>
  10672. typedef pthread_rwlock_t ac__type_new_;
  10673. int
  10674. main ()
  10675. {
  10676. if ((ac__type_new_ *) 0)
  10677. return 0;
  10678. if (sizeof (ac__type_new_))
  10679. return 0;
  10680. ;
  10681. return 0;
  10682. }
  10683. _ACEOF
  10684. rm -f conftest.$ac_objext
  10685. if { (ac_try="$ac_compile"
  10686. case "(($ac_try" in
  10687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10688. *) ac_try_echo=$ac_try;;
  10689. esac
  10690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10691. (eval "$ac_compile") 2>conftest.er1
  10692. ac_status=$?
  10693. grep -v '^ *+' conftest.er1 >conftest.err
  10694. rm -f conftest.er1
  10695. cat conftest.err >&5
  10696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10697. (exit $ac_status); } && {
  10698. test -z "$ac_cxx_werror_flag" ||
  10699. test ! -s conftest.err
  10700. } && test -s conftest.$ac_objext; then
  10701. ac_cv_type_pthread_rwlock_t=yes
  10702. else
  10703. echo "$as_me: failed program was:" >&5
  10704. sed 's/^/| /' conftest.$ac_ext >&5
  10705. ac_cv_type_pthread_rwlock_t=no
  10706. fi
  10707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10708. fi
  10709. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  10710. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  10711. if test $ac_cv_type_pthread_rwlock_t = yes; then
  10712. cat >>confdefs.h <<\_ACEOF
  10713. #define HAVE_PTHREAD_RWLOCK 1
  10714. _ACEOF
  10715. fi
  10716. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  10717. cat >conftest.$ac_ext <<_ACEOF
  10718. /* confdefs.h. */
  10719. _ACEOF
  10720. cat confdefs.h >>conftest.$ac_ext
  10721. cat >>conftest.$ac_ext <<_ACEOF
  10722. /* end confdefs.h. */
  10723. #include <pthread.h>
  10724. int
  10725. main ()
  10726. {
  10727. #if __FreeBSD__ == 4
  10728. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  10729. #else
  10730. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  10731. return !x;
  10732. #endif
  10733. ;
  10734. return 0;
  10735. }
  10736. _ACEOF
  10737. rm -f conftest.$ac_objext
  10738. if { (ac_try="$ac_compile"
  10739. case "(($ac_try" in
  10740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10741. *) ac_try_echo=$ac_try;;
  10742. esac
  10743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10744. (eval "$ac_compile") 2>conftest.er1
  10745. ac_status=$?
  10746. grep -v '^ *+' conftest.er1 >conftest.err
  10747. rm -f conftest.er1
  10748. cat conftest.err >&5
  10749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10750. (exit $ac_status); } && {
  10751. test -z "$ac_cxx_werror_flag" ||
  10752. test ! -s conftest.err
  10753. } && test -s conftest.$ac_objext; then
  10754. cat >>confdefs.h <<\_ACEOF
  10755. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  10756. _ACEOF
  10757. else
  10758. echo "$as_me: failed program was:" >&5
  10759. sed 's/^/| /' conftest.$ac_ext >&5
  10760. fi
  10761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10762. fi
  10763. fi
  10764. fi
  10765. if test -z "$gl_have_pthread"; then
  10766. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  10767. gl_have_solaristhread=
  10768. gl_save_LIBS="$LIBS"
  10769. LIBS="$LIBS -lthread"
  10770. cat >conftest.$ac_ext <<_ACEOF
  10771. /* confdefs.h. */
  10772. _ACEOF
  10773. cat confdefs.h >>conftest.$ac_ext
  10774. cat >>conftest.$ac_ext <<_ACEOF
  10775. /* end confdefs.h. */
  10776. #include <thread.h>
  10777. #include <synch.h>
  10778. int
  10779. main ()
  10780. {
  10781. thr_self();
  10782. ;
  10783. return 0;
  10784. }
  10785. _ACEOF
  10786. rm -f conftest.$ac_objext conftest$ac_exeext
  10787. if { (ac_try="$ac_link"
  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_link") 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); } && {
  10800. test -z "$ac_cxx_werror_flag" ||
  10801. test ! -s conftest.err
  10802. } && test -s conftest$ac_exeext &&
  10803. $as_test_x conftest$ac_exeext; then
  10804. gl_have_solaristhread=yes
  10805. else
  10806. echo "$as_me: failed program was:" >&5
  10807. sed 's/^/| /' conftest.$ac_ext >&5
  10808. fi
  10809. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10810. conftest$ac_exeext conftest.$ac_ext
  10811. LIBS="$gl_save_LIBS"
  10812. if test -n "$gl_have_solaristhread"; then
  10813. gl_threads_api=solaris
  10814. LIBTHREAD=-lthread
  10815. LTLIBTHREAD=-lthread
  10816. LIBMULTITHREAD="$LIBTHREAD"
  10817. LTLIBMULTITHREAD="$LTLIBTHREAD"
  10818. cat >>confdefs.h <<\_ACEOF
  10819. #define USE_SOLARIS_THREADS 1
  10820. _ACEOF
  10821. if test $gl_have_weak = yes; then
  10822. cat >>confdefs.h <<\_ACEOF
  10823. #define USE_SOLARIS_THREADS_WEAK 1
  10824. _ACEOF
  10825. LIBTHREAD=
  10826. LTLIBTHREAD=
  10827. fi
  10828. fi
  10829. fi
  10830. fi
  10831. if test "$gl_use_threads" = pth; then
  10832. gl_save_CPPFLAGS="$CPPFLAGS"
  10833. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  10834. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  10835. if test "${ac_cv_libpth_libs+set}" = set; then
  10836. echo $ECHO_N "(cached) $ECHO_C" >&6
  10837. else
  10838. use_additional=yes
  10839. acl_save_prefix="$prefix"
  10840. prefix="$acl_final_prefix"
  10841. acl_save_exec_prefix="$exec_prefix"
  10842. exec_prefix="$acl_final_exec_prefix"
  10843. eval additional_includedir=\"$includedir\"
  10844. eval additional_libdir=\"$libdir\"
  10845. exec_prefix="$acl_save_exec_prefix"
  10846. prefix="$acl_save_prefix"
  10847. # Check whether --with-libpth-prefix was given.
  10848. if test "${with_libpth_prefix+set}" = set; then
  10849. withval=$with_libpth_prefix;
  10850. if test "X$withval" = "Xno"; then
  10851. use_additional=no
  10852. else
  10853. if test "X$withval" = "X"; then
  10854. acl_save_prefix="$prefix"
  10855. prefix="$acl_final_prefix"
  10856. acl_save_exec_prefix="$exec_prefix"
  10857. exec_prefix="$acl_final_exec_prefix"
  10858. eval additional_includedir=\"$includedir\"
  10859. eval additional_libdir=\"$libdir\"
  10860. exec_prefix="$acl_save_exec_prefix"
  10861. prefix="$acl_save_prefix"
  10862. else
  10863. additional_includedir="$withval/include"
  10864. additional_libdir="$withval/$acl_libdirstem"
  10865. fi
  10866. fi
  10867. fi
  10868. LIBPTH=
  10869. LTLIBPTH=
  10870. INCPTH=
  10871. LIBPTH_PREFIX=
  10872. rpathdirs=
  10873. ltrpathdirs=
  10874. names_already_handled=
  10875. names_next_round='pth '
  10876. while test -n "$names_next_round"; do
  10877. names_this_round="$names_next_round"
  10878. names_next_round=
  10879. for name in $names_this_round; do
  10880. already_handled=
  10881. for n in $names_already_handled; do
  10882. if test "$n" = "$name"; then
  10883. already_handled=yes
  10884. break
  10885. fi
  10886. done
  10887. if test -z "$already_handled"; then
  10888. names_already_handled="$names_already_handled $name"
  10889. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  10890. eval value=\"\$HAVE_LIB$uppername\"
  10891. if test -n "$value"; then
  10892. if test "$value" = yes; then
  10893. eval value=\"\$LIB$uppername\"
  10894. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  10895. eval value=\"\$LTLIB$uppername\"
  10896. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  10897. else
  10898. :
  10899. fi
  10900. else
  10901. found_dir=
  10902. found_la=
  10903. found_so=
  10904. found_a=
  10905. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  10906. if test -n "$acl_shlibext"; then
  10907. shrext=".$acl_shlibext" # typically: shrext=.so
  10908. else
  10909. shrext=
  10910. fi
  10911. if test $use_additional = yes; then
  10912. dir="$additional_libdir"
  10913. if test -n "$acl_shlibext"; then
  10914. if test -f "$dir/$libname$shrext"; then
  10915. found_dir="$dir"
  10916. found_so="$dir/$libname$shrext"
  10917. else
  10918. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10919. ver=`(cd "$dir" && \
  10920. for f in "$libname$shrext".*; do echo "$f"; done \
  10921. | sed -e "s,^$libname$shrext\\\\.,," \
  10922. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10923. | sed 1q ) 2>/dev/null`
  10924. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10925. found_dir="$dir"
  10926. found_so="$dir/$libname$shrext.$ver"
  10927. fi
  10928. else
  10929. eval library_names=\"$acl_library_names_spec\"
  10930. for f in $library_names; do
  10931. if test -f "$dir/$f"; then
  10932. found_dir="$dir"
  10933. found_so="$dir/$f"
  10934. break
  10935. fi
  10936. done
  10937. fi
  10938. fi
  10939. fi
  10940. if test "X$found_dir" = "X"; then
  10941. if test -f "$dir/$libname.$acl_libext"; then
  10942. found_dir="$dir"
  10943. found_a="$dir/$libname.$acl_libext"
  10944. fi
  10945. fi
  10946. if test "X$found_dir" != "X"; then
  10947. if test -f "$dir/$libname.la"; then
  10948. found_la="$dir/$libname.la"
  10949. fi
  10950. fi
  10951. fi
  10952. if test "X$found_dir" = "X"; then
  10953. for x in $LDFLAGS $LTLIBPTH; do
  10954. acl_save_prefix="$prefix"
  10955. prefix="$acl_final_prefix"
  10956. acl_save_exec_prefix="$exec_prefix"
  10957. exec_prefix="$acl_final_exec_prefix"
  10958. eval x=\"$x\"
  10959. exec_prefix="$acl_save_exec_prefix"
  10960. prefix="$acl_save_prefix"
  10961. case "$x" in
  10962. -L*)
  10963. dir=`echo "X$x" | sed -e 's/^X-L//'`
  10964. if test -n "$acl_shlibext"; then
  10965. if test -f "$dir/$libname$shrext"; then
  10966. found_dir="$dir"
  10967. found_so="$dir/$libname$shrext"
  10968. else
  10969. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10970. ver=`(cd "$dir" && \
  10971. for f in "$libname$shrext".*; do echo "$f"; done \
  10972. | sed -e "s,^$libname$shrext\\\\.,," \
  10973. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10974. | sed 1q ) 2>/dev/null`
  10975. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10976. found_dir="$dir"
  10977. found_so="$dir/$libname$shrext.$ver"
  10978. fi
  10979. else
  10980. eval library_names=\"$acl_library_names_spec\"
  10981. for f in $library_names; do
  10982. if test -f "$dir/$f"; then
  10983. found_dir="$dir"
  10984. found_so="$dir/$f"
  10985. break
  10986. fi
  10987. done
  10988. fi
  10989. fi
  10990. fi
  10991. if test "X$found_dir" = "X"; then
  10992. if test -f "$dir/$libname.$acl_libext"; then
  10993. found_dir="$dir"
  10994. found_a="$dir/$libname.$acl_libext"
  10995. fi
  10996. fi
  10997. if test "X$found_dir" != "X"; then
  10998. if test -f "$dir/$libname.la"; then
  10999. found_la="$dir/$libname.la"
  11000. fi
  11001. fi
  11002. ;;
  11003. esac
  11004. if test "X$found_dir" != "X"; then
  11005. break
  11006. fi
  11007. done
  11008. fi
  11009. if test "X$found_dir" != "X"; then
  11010. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11011. if test "X$found_so" != "X"; then
  11012. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11013. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11014. else
  11015. haveit=
  11016. for x in $ltrpathdirs; do
  11017. if test "X$x" = "X$found_dir"; then
  11018. haveit=yes
  11019. break
  11020. fi
  11021. done
  11022. if test -z "$haveit"; then
  11023. ltrpathdirs="$ltrpathdirs $found_dir"
  11024. fi
  11025. if test "$acl_hardcode_direct" = yes; then
  11026. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11027. else
  11028. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11029. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11030. haveit=
  11031. for x in $rpathdirs; do
  11032. if test "X$x" = "X$found_dir"; then
  11033. haveit=yes
  11034. break
  11035. fi
  11036. done
  11037. if test -z "$haveit"; then
  11038. rpathdirs="$rpathdirs $found_dir"
  11039. fi
  11040. else
  11041. haveit=
  11042. for x in $LDFLAGS $LIBPTH; do
  11043. acl_save_prefix="$prefix"
  11044. prefix="$acl_final_prefix"
  11045. acl_save_exec_prefix="$exec_prefix"
  11046. exec_prefix="$acl_final_exec_prefix"
  11047. eval x=\"$x\"
  11048. exec_prefix="$acl_save_exec_prefix"
  11049. prefix="$acl_save_prefix"
  11050. if test "X$x" = "X-L$found_dir"; then
  11051. haveit=yes
  11052. break
  11053. fi
  11054. done
  11055. if test -z "$haveit"; then
  11056. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11057. fi
  11058. if test "$acl_hardcode_minus_L" != no; then
  11059. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11060. else
  11061. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11062. fi
  11063. fi
  11064. fi
  11065. fi
  11066. else
  11067. if test "X$found_a" != "X"; then
  11068. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11069. else
  11070. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11071. fi
  11072. fi
  11073. additional_includedir=
  11074. case "$found_dir" in
  11075. */$acl_libdirstem | */$acl_libdirstem/)
  11076. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11077. LIBPTH_PREFIX="$basedir"
  11078. additional_includedir="$basedir/include"
  11079. ;;
  11080. esac
  11081. if test "X$additional_includedir" != "X"; then
  11082. if test "X$additional_includedir" != "X/usr/include"; then
  11083. haveit=
  11084. if test "X$additional_includedir" = "X/usr/local/include"; then
  11085. if test -n "$GCC"; then
  11086. case $host_os in
  11087. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11088. esac
  11089. fi
  11090. fi
  11091. if test -z "$haveit"; then
  11092. for x in $CPPFLAGS $INCPTH; do
  11093. acl_save_prefix="$prefix"
  11094. prefix="$acl_final_prefix"
  11095. acl_save_exec_prefix="$exec_prefix"
  11096. exec_prefix="$acl_final_exec_prefix"
  11097. eval x=\"$x\"
  11098. exec_prefix="$acl_save_exec_prefix"
  11099. prefix="$acl_save_prefix"
  11100. if test "X$x" = "X-I$additional_includedir"; then
  11101. haveit=yes
  11102. break
  11103. fi
  11104. done
  11105. if test -z "$haveit"; then
  11106. if test -d "$additional_includedir"; then
  11107. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11108. fi
  11109. fi
  11110. fi
  11111. fi
  11112. fi
  11113. if test -n "$found_la"; then
  11114. save_libdir="$libdir"
  11115. case "$found_la" in
  11116. */* | *\\*) . "$found_la" ;;
  11117. *) . "./$found_la" ;;
  11118. esac
  11119. libdir="$save_libdir"
  11120. for dep in $dependency_libs; do
  11121. case "$dep" in
  11122. -L*)
  11123. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11124. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11125. haveit=
  11126. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11127. if test -n "$GCC"; then
  11128. case $host_os in
  11129. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11130. esac
  11131. fi
  11132. fi
  11133. if test -z "$haveit"; then
  11134. haveit=
  11135. for x in $LDFLAGS $LIBPTH; do
  11136. acl_save_prefix="$prefix"
  11137. prefix="$acl_final_prefix"
  11138. acl_save_exec_prefix="$exec_prefix"
  11139. exec_prefix="$acl_final_exec_prefix"
  11140. eval x=\"$x\"
  11141. exec_prefix="$acl_save_exec_prefix"
  11142. prefix="$acl_save_prefix"
  11143. if test "X$x" = "X-L$additional_libdir"; then
  11144. haveit=yes
  11145. break
  11146. fi
  11147. done
  11148. if test -z "$haveit"; then
  11149. if test -d "$additional_libdir"; then
  11150. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11151. fi
  11152. fi
  11153. haveit=
  11154. for x in $LDFLAGS $LTLIBPTH; do
  11155. acl_save_prefix="$prefix"
  11156. prefix="$acl_final_prefix"
  11157. acl_save_exec_prefix="$exec_prefix"
  11158. exec_prefix="$acl_final_exec_prefix"
  11159. eval x=\"$x\"
  11160. exec_prefix="$acl_save_exec_prefix"
  11161. prefix="$acl_save_prefix"
  11162. if test "X$x" = "X-L$additional_libdir"; then
  11163. haveit=yes
  11164. break
  11165. fi
  11166. done
  11167. if test -z "$haveit"; then
  11168. if test -d "$additional_libdir"; then
  11169. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11170. fi
  11171. fi
  11172. fi
  11173. fi
  11174. ;;
  11175. -R*)
  11176. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11177. if test "$enable_rpath" != no; then
  11178. haveit=
  11179. for x in $rpathdirs; do
  11180. if test "X$x" = "X$dir"; then
  11181. haveit=yes
  11182. break
  11183. fi
  11184. done
  11185. if test -z "$haveit"; then
  11186. rpathdirs="$rpathdirs $dir"
  11187. fi
  11188. haveit=
  11189. for x in $ltrpathdirs; do
  11190. if test "X$x" = "X$dir"; then
  11191. haveit=yes
  11192. break
  11193. fi
  11194. done
  11195. if test -z "$haveit"; then
  11196. ltrpathdirs="$ltrpathdirs $dir"
  11197. fi
  11198. fi
  11199. ;;
  11200. -l*)
  11201. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11202. ;;
  11203. *.la)
  11204. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11205. ;;
  11206. *)
  11207. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11208. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11209. ;;
  11210. esac
  11211. done
  11212. fi
  11213. else
  11214. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11215. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11216. fi
  11217. fi
  11218. fi
  11219. done
  11220. done
  11221. if test "X$rpathdirs" != "X"; then
  11222. if test -n "$acl_hardcode_libdir_separator"; then
  11223. alldirs=
  11224. for found_dir in $rpathdirs; do
  11225. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11226. done
  11227. acl_save_libdir="$libdir"
  11228. libdir="$alldirs"
  11229. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11230. libdir="$acl_save_libdir"
  11231. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11232. else
  11233. for found_dir in $rpathdirs; do
  11234. acl_save_libdir="$libdir"
  11235. libdir="$found_dir"
  11236. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11237. libdir="$acl_save_libdir"
  11238. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11239. done
  11240. fi
  11241. fi
  11242. if test "X$ltrpathdirs" != "X"; then
  11243. for found_dir in $ltrpathdirs; do
  11244. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11245. done
  11246. fi
  11247. ac_cv_libpth_libs="$LIBPTH"
  11248. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11249. ac_cv_libpth_cppflags="$INCPTH"
  11250. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11251. fi
  11252. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11253. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11254. LIBPTH="$ac_cv_libpth_libs"
  11255. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11256. INCPTH="$ac_cv_libpth_cppflags"
  11257. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11258. for element in $INCPTH; do
  11259. haveit=
  11260. for x in $CPPFLAGS; do
  11261. acl_save_prefix="$prefix"
  11262. prefix="$acl_final_prefix"
  11263. acl_save_exec_prefix="$exec_prefix"
  11264. exec_prefix="$acl_final_exec_prefix"
  11265. eval x=\"$x\"
  11266. exec_prefix="$acl_save_exec_prefix"
  11267. prefix="$acl_save_prefix"
  11268. if test "X$x" = "X$element"; then
  11269. haveit=yes
  11270. break
  11271. fi
  11272. done
  11273. if test -z "$haveit"; then
  11274. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11275. fi
  11276. done
  11277. HAVE_LIBPTH=yes
  11278. gl_have_pth=
  11279. gl_save_LIBS="$LIBS"
  11280. LIBS="$LIBS -lpth"
  11281. cat >conftest.$ac_ext <<_ACEOF
  11282. /* confdefs.h. */
  11283. _ACEOF
  11284. cat confdefs.h >>conftest.$ac_ext
  11285. cat >>conftest.$ac_ext <<_ACEOF
  11286. /* end confdefs.h. */
  11287. #include <pth.h>
  11288. int
  11289. main ()
  11290. {
  11291. pth_self();
  11292. ;
  11293. return 0;
  11294. }
  11295. _ACEOF
  11296. rm -f conftest.$ac_objext conftest$ac_exeext
  11297. if { (ac_try="$ac_link"
  11298. case "(($ac_try" in
  11299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11300. *) ac_try_echo=$ac_try;;
  11301. esac
  11302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11303. (eval "$ac_link") 2>conftest.er1
  11304. ac_status=$?
  11305. grep -v '^ *+' conftest.er1 >conftest.err
  11306. rm -f conftest.er1
  11307. cat conftest.err >&5
  11308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11309. (exit $ac_status); } && {
  11310. test -z "$ac_cxx_werror_flag" ||
  11311. test ! -s conftest.err
  11312. } && test -s conftest$ac_exeext &&
  11313. $as_test_x conftest$ac_exeext; then
  11314. gl_have_pth=yes
  11315. else
  11316. echo "$as_me: failed program was:" >&5
  11317. sed 's/^/| /' conftest.$ac_ext >&5
  11318. fi
  11319. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11320. conftest$ac_exeext conftest.$ac_ext
  11321. LIBS="$gl_save_LIBS"
  11322. if test -n "$gl_have_pth"; then
  11323. gl_threads_api=pth
  11324. LIBTHREAD="$LIBPTH"
  11325. LTLIBTHREAD="$LTLIBPTH"
  11326. LIBMULTITHREAD="$LIBTHREAD"
  11327. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11328. cat >>confdefs.h <<\_ACEOF
  11329. #define USE_PTH_THREADS 1
  11330. _ACEOF
  11331. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11332. if test $gl_have_weak = yes; then
  11333. cat >>confdefs.h <<\_ACEOF
  11334. #define USE_PTH_THREADS_WEAK 1
  11335. _ACEOF
  11336. LIBTHREAD=
  11337. LTLIBTHREAD=
  11338. fi
  11339. fi
  11340. else
  11341. CPPFLAGS="$gl_save_CPPFLAGS"
  11342. fi
  11343. fi
  11344. if test -z "$gl_have_pthread"; then
  11345. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11346. if { case "$host_os" in
  11347. mingw*) true;;
  11348. *) false;;
  11349. esac
  11350. }; then
  11351. gl_threads_api=win32
  11352. cat >>confdefs.h <<\_ACEOF
  11353. #define USE_WIN32_THREADS 1
  11354. _ACEOF
  11355. fi
  11356. fi
  11357. fi
  11358. fi
  11359. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11360. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11361. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11362. echo "${ECHO_T}$gl_threads_api" >&6; }
  11363. use_additional=yes
  11364. acl_save_prefix="$prefix"
  11365. prefix="$acl_final_prefix"
  11366. acl_save_exec_prefix="$exec_prefix"
  11367. exec_prefix="$acl_final_exec_prefix"
  11368. eval additional_includedir=\"$includedir\"
  11369. eval additional_libdir=\"$libdir\"
  11370. exec_prefix="$acl_save_exec_prefix"
  11371. prefix="$acl_save_prefix"
  11372. # Check whether --with-libiconv-prefix was given.
  11373. if test "${with_libiconv_prefix+set}" = set; then
  11374. withval=$with_libiconv_prefix;
  11375. if test "X$withval" = "Xno"; then
  11376. use_additional=no
  11377. else
  11378. if test "X$withval" = "X"; then
  11379. acl_save_prefix="$prefix"
  11380. prefix="$acl_final_prefix"
  11381. acl_save_exec_prefix="$exec_prefix"
  11382. exec_prefix="$acl_final_exec_prefix"
  11383. eval additional_includedir=\"$includedir\"
  11384. eval additional_libdir=\"$libdir\"
  11385. exec_prefix="$acl_save_exec_prefix"
  11386. prefix="$acl_save_prefix"
  11387. else
  11388. additional_includedir="$withval/include"
  11389. additional_libdir="$withval/$acl_libdirstem"
  11390. fi
  11391. fi
  11392. fi
  11393. LIBICONV=
  11394. LTLIBICONV=
  11395. INCICONV=
  11396. LIBICONV_PREFIX=
  11397. rpathdirs=
  11398. ltrpathdirs=
  11399. names_already_handled=
  11400. names_next_round='iconv '
  11401. while test -n "$names_next_round"; do
  11402. names_this_round="$names_next_round"
  11403. names_next_round=
  11404. for name in $names_this_round; do
  11405. already_handled=
  11406. for n in $names_already_handled; do
  11407. if test "$n" = "$name"; then
  11408. already_handled=yes
  11409. break
  11410. fi
  11411. done
  11412. if test -z "$already_handled"; then
  11413. names_already_handled="$names_already_handled $name"
  11414. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11415. eval value=\"\$HAVE_LIB$uppername\"
  11416. if test -n "$value"; then
  11417. if test "$value" = yes; then
  11418. eval value=\"\$LIB$uppername\"
  11419. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11420. eval value=\"\$LTLIB$uppername\"
  11421. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11422. else
  11423. :
  11424. fi
  11425. else
  11426. found_dir=
  11427. found_la=
  11428. found_so=
  11429. found_a=
  11430. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11431. if test -n "$acl_shlibext"; then
  11432. shrext=".$acl_shlibext" # typically: shrext=.so
  11433. else
  11434. shrext=
  11435. fi
  11436. if test $use_additional = yes; then
  11437. dir="$additional_libdir"
  11438. if test -n "$acl_shlibext"; then
  11439. if test -f "$dir/$libname$shrext"; then
  11440. found_dir="$dir"
  11441. found_so="$dir/$libname$shrext"
  11442. else
  11443. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11444. ver=`(cd "$dir" && \
  11445. for f in "$libname$shrext".*; do echo "$f"; done \
  11446. | sed -e "s,^$libname$shrext\\\\.,," \
  11447. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11448. | sed 1q ) 2>/dev/null`
  11449. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11450. found_dir="$dir"
  11451. found_so="$dir/$libname$shrext.$ver"
  11452. fi
  11453. else
  11454. eval library_names=\"$acl_library_names_spec\"
  11455. for f in $library_names; do
  11456. if test -f "$dir/$f"; then
  11457. found_dir="$dir"
  11458. found_so="$dir/$f"
  11459. break
  11460. fi
  11461. done
  11462. fi
  11463. fi
  11464. fi
  11465. if test "X$found_dir" = "X"; then
  11466. if test -f "$dir/$libname.$acl_libext"; then
  11467. found_dir="$dir"
  11468. found_a="$dir/$libname.$acl_libext"
  11469. fi
  11470. fi
  11471. if test "X$found_dir" != "X"; then
  11472. if test -f "$dir/$libname.la"; then
  11473. found_la="$dir/$libname.la"
  11474. fi
  11475. fi
  11476. fi
  11477. if test "X$found_dir" = "X"; then
  11478. for x in $LDFLAGS $LTLIBICONV; do
  11479. acl_save_prefix="$prefix"
  11480. prefix="$acl_final_prefix"
  11481. acl_save_exec_prefix="$exec_prefix"
  11482. exec_prefix="$acl_final_exec_prefix"
  11483. eval x=\"$x\"
  11484. exec_prefix="$acl_save_exec_prefix"
  11485. prefix="$acl_save_prefix"
  11486. case "$x" in
  11487. -L*)
  11488. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11489. if test -n "$acl_shlibext"; then
  11490. if test -f "$dir/$libname$shrext"; then
  11491. found_dir="$dir"
  11492. found_so="$dir/$libname$shrext"
  11493. else
  11494. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11495. ver=`(cd "$dir" && \
  11496. for f in "$libname$shrext".*; do echo "$f"; done \
  11497. | sed -e "s,^$libname$shrext\\\\.,," \
  11498. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11499. | sed 1q ) 2>/dev/null`
  11500. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11501. found_dir="$dir"
  11502. found_so="$dir/$libname$shrext.$ver"
  11503. fi
  11504. else
  11505. eval library_names=\"$acl_library_names_spec\"
  11506. for f in $library_names; do
  11507. if test -f "$dir/$f"; then
  11508. found_dir="$dir"
  11509. found_so="$dir/$f"
  11510. break
  11511. fi
  11512. done
  11513. fi
  11514. fi
  11515. fi
  11516. if test "X$found_dir" = "X"; then
  11517. if test -f "$dir/$libname.$acl_libext"; then
  11518. found_dir="$dir"
  11519. found_a="$dir/$libname.$acl_libext"
  11520. fi
  11521. fi
  11522. if test "X$found_dir" != "X"; then
  11523. if test -f "$dir/$libname.la"; then
  11524. found_la="$dir/$libname.la"
  11525. fi
  11526. fi
  11527. ;;
  11528. esac
  11529. if test "X$found_dir" != "X"; then
  11530. break
  11531. fi
  11532. done
  11533. fi
  11534. if test "X$found_dir" != "X"; then
  11535. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11536. if test "X$found_so" != "X"; then
  11537. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11538. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11539. else
  11540. haveit=
  11541. for x in $ltrpathdirs; do
  11542. if test "X$x" = "X$found_dir"; then
  11543. haveit=yes
  11544. break
  11545. fi
  11546. done
  11547. if test -z "$haveit"; then
  11548. ltrpathdirs="$ltrpathdirs $found_dir"
  11549. fi
  11550. if test "$acl_hardcode_direct" = yes; then
  11551. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11552. else
  11553. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11554. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11555. haveit=
  11556. for x in $rpathdirs; do
  11557. if test "X$x" = "X$found_dir"; then
  11558. haveit=yes
  11559. break
  11560. fi
  11561. done
  11562. if test -z "$haveit"; then
  11563. rpathdirs="$rpathdirs $found_dir"
  11564. fi
  11565. else
  11566. haveit=
  11567. for x in $LDFLAGS $LIBICONV; do
  11568. acl_save_prefix="$prefix"
  11569. prefix="$acl_final_prefix"
  11570. acl_save_exec_prefix="$exec_prefix"
  11571. exec_prefix="$acl_final_exec_prefix"
  11572. eval x=\"$x\"
  11573. exec_prefix="$acl_save_exec_prefix"
  11574. prefix="$acl_save_prefix"
  11575. if test "X$x" = "X-L$found_dir"; then
  11576. haveit=yes
  11577. break
  11578. fi
  11579. done
  11580. if test -z "$haveit"; then
  11581. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11582. fi
  11583. if test "$acl_hardcode_minus_L" != no; then
  11584. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11585. else
  11586. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11587. fi
  11588. fi
  11589. fi
  11590. fi
  11591. else
  11592. if test "X$found_a" != "X"; then
  11593. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11594. else
  11595. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11596. fi
  11597. fi
  11598. additional_includedir=
  11599. case "$found_dir" in
  11600. */$acl_libdirstem | */$acl_libdirstem/)
  11601. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11602. LIBICONV_PREFIX="$basedir"
  11603. additional_includedir="$basedir/include"
  11604. ;;
  11605. esac
  11606. if test "X$additional_includedir" != "X"; then
  11607. if test "X$additional_includedir" != "X/usr/include"; then
  11608. haveit=
  11609. if test "X$additional_includedir" = "X/usr/local/include"; then
  11610. if test -n "$GCC"; then
  11611. case $host_os in
  11612. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11613. esac
  11614. fi
  11615. fi
  11616. if test -z "$haveit"; then
  11617. for x in $CPPFLAGS $INCICONV; do
  11618. acl_save_prefix="$prefix"
  11619. prefix="$acl_final_prefix"
  11620. acl_save_exec_prefix="$exec_prefix"
  11621. exec_prefix="$acl_final_exec_prefix"
  11622. eval x=\"$x\"
  11623. exec_prefix="$acl_save_exec_prefix"
  11624. prefix="$acl_save_prefix"
  11625. if test "X$x" = "X-I$additional_includedir"; then
  11626. haveit=yes
  11627. break
  11628. fi
  11629. done
  11630. if test -z "$haveit"; then
  11631. if test -d "$additional_includedir"; then
  11632. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11633. fi
  11634. fi
  11635. fi
  11636. fi
  11637. fi
  11638. if test -n "$found_la"; then
  11639. save_libdir="$libdir"
  11640. case "$found_la" in
  11641. */* | *\\*) . "$found_la" ;;
  11642. *) . "./$found_la" ;;
  11643. esac
  11644. libdir="$save_libdir"
  11645. for dep in $dependency_libs; do
  11646. case "$dep" in
  11647. -L*)
  11648. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11649. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11650. haveit=
  11651. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11652. if test -n "$GCC"; then
  11653. case $host_os in
  11654. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11655. esac
  11656. fi
  11657. fi
  11658. if test -z "$haveit"; then
  11659. haveit=
  11660. for x in $LDFLAGS $LIBICONV; do
  11661. acl_save_prefix="$prefix"
  11662. prefix="$acl_final_prefix"
  11663. acl_save_exec_prefix="$exec_prefix"
  11664. exec_prefix="$acl_final_exec_prefix"
  11665. eval x=\"$x\"
  11666. exec_prefix="$acl_save_exec_prefix"
  11667. prefix="$acl_save_prefix"
  11668. if test "X$x" = "X-L$additional_libdir"; then
  11669. haveit=yes
  11670. break
  11671. fi
  11672. done
  11673. if test -z "$haveit"; then
  11674. if test -d "$additional_libdir"; then
  11675. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11676. fi
  11677. fi
  11678. haveit=
  11679. for x in $LDFLAGS $LTLIBICONV; do
  11680. acl_save_prefix="$prefix"
  11681. prefix="$acl_final_prefix"
  11682. acl_save_exec_prefix="$exec_prefix"
  11683. exec_prefix="$acl_final_exec_prefix"
  11684. eval x=\"$x\"
  11685. exec_prefix="$acl_save_exec_prefix"
  11686. prefix="$acl_save_prefix"
  11687. if test "X$x" = "X-L$additional_libdir"; then
  11688. haveit=yes
  11689. break
  11690. fi
  11691. done
  11692. if test -z "$haveit"; then
  11693. if test -d "$additional_libdir"; then
  11694. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11695. fi
  11696. fi
  11697. fi
  11698. fi
  11699. ;;
  11700. -R*)
  11701. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11702. if test "$enable_rpath" != no; then
  11703. haveit=
  11704. for x in $rpathdirs; do
  11705. if test "X$x" = "X$dir"; then
  11706. haveit=yes
  11707. break
  11708. fi
  11709. done
  11710. if test -z "$haveit"; then
  11711. rpathdirs="$rpathdirs $dir"
  11712. fi
  11713. haveit=
  11714. for x in $ltrpathdirs; do
  11715. if test "X$x" = "X$dir"; then
  11716. haveit=yes
  11717. break
  11718. fi
  11719. done
  11720. if test -z "$haveit"; then
  11721. ltrpathdirs="$ltrpathdirs $dir"
  11722. fi
  11723. fi
  11724. ;;
  11725. -l*)
  11726. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11727. ;;
  11728. *.la)
  11729. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11730. ;;
  11731. *)
  11732. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11733. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11734. ;;
  11735. esac
  11736. done
  11737. fi
  11738. else
  11739. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11740. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  11741. fi
  11742. fi
  11743. fi
  11744. done
  11745. done
  11746. if test "X$rpathdirs" != "X"; then
  11747. if test -n "$acl_hardcode_libdir_separator"; then
  11748. alldirs=
  11749. for found_dir in $rpathdirs; do
  11750. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11751. done
  11752. acl_save_libdir="$libdir"
  11753. libdir="$alldirs"
  11754. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11755. libdir="$acl_save_libdir"
  11756. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11757. else
  11758. for found_dir in $rpathdirs; do
  11759. acl_save_libdir="$libdir"
  11760. libdir="$found_dir"
  11761. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11762. libdir="$acl_save_libdir"
  11763. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11764. done
  11765. fi
  11766. fi
  11767. if test "X$ltrpathdirs" != "X"; then
  11768. for found_dir in $ltrpathdirs; do
  11769. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  11770. done
  11771. fi
  11772. cat >conftest.$ac_ext <<_ACEOF
  11773. /* confdefs.h. */
  11774. _ACEOF
  11775. cat confdefs.h >>conftest.$ac_ext
  11776. cat >>conftest.$ac_ext <<_ACEOF
  11777. /* end confdefs.h. */
  11778. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  11779. int
  11780. main ()
  11781. {
  11782. ;
  11783. return 0;
  11784. }
  11785. _ACEOF
  11786. rm -f conftest.$ac_objext conftest$ac_exeext
  11787. if { (ac_try="$ac_link"
  11788. case "(($ac_try" in
  11789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11790. *) ac_try_echo=$ac_try;;
  11791. esac
  11792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11793. (eval "$ac_link") 2>conftest.er1
  11794. ac_status=$?
  11795. grep -v '^ *+' conftest.er1 >conftest.err
  11796. rm -f conftest.er1
  11797. cat conftest.err >&5
  11798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11799. (exit $ac_status); } && {
  11800. test -z "$ac_cxx_werror_flag" ||
  11801. test ! -s conftest.err
  11802. } && test -s conftest$ac_exeext &&
  11803. $as_test_x conftest$ac_exeext; then
  11804. cat >>confdefs.h <<\_ACEOF
  11805. #define HAVE_BUILTIN_EXPECT 1
  11806. _ACEOF
  11807. else
  11808. echo "$as_me: failed program was:" >&5
  11809. sed 's/^/| /' conftest.$ac_ext >&5
  11810. fi
  11811. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11812. conftest$ac_exeext conftest.$ac_ext
  11813. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  11814. do
  11815. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11816. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11817. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11818. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11819. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11820. echo $ECHO_N "(cached) $ECHO_C" >&6
  11821. fi
  11822. ac_res=`eval echo '${'$as_ac_Header'}'`
  11823. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11824. echo "${ECHO_T}$ac_res" >&6; }
  11825. else
  11826. # Is the header compilable?
  11827. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11828. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11829. cat >conftest.$ac_ext <<_ACEOF
  11830. /* confdefs.h. */
  11831. _ACEOF
  11832. cat confdefs.h >>conftest.$ac_ext
  11833. cat >>conftest.$ac_ext <<_ACEOF
  11834. /* end confdefs.h. */
  11835. $ac_includes_default
  11836. #include <$ac_header>
  11837. _ACEOF
  11838. rm -f conftest.$ac_objext
  11839. if { (ac_try="$ac_compile"
  11840. case "(($ac_try" in
  11841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11842. *) ac_try_echo=$ac_try;;
  11843. esac
  11844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11845. (eval "$ac_compile") 2>conftest.er1
  11846. ac_status=$?
  11847. grep -v '^ *+' conftest.er1 >conftest.err
  11848. rm -f conftest.er1
  11849. cat conftest.err >&5
  11850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11851. (exit $ac_status); } && {
  11852. test -z "$ac_cxx_werror_flag" ||
  11853. test ! -s conftest.err
  11854. } && test -s conftest.$ac_objext; then
  11855. ac_header_compiler=yes
  11856. else
  11857. echo "$as_me: failed program was:" >&5
  11858. sed 's/^/| /' conftest.$ac_ext >&5
  11859. ac_header_compiler=no
  11860. fi
  11861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11862. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11863. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11864. # Is the header present?
  11865. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11866. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11867. cat >conftest.$ac_ext <<_ACEOF
  11868. /* confdefs.h. */
  11869. _ACEOF
  11870. cat confdefs.h >>conftest.$ac_ext
  11871. cat >>conftest.$ac_ext <<_ACEOF
  11872. /* end confdefs.h. */
  11873. #include <$ac_header>
  11874. _ACEOF
  11875. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11876. case "(($ac_try" in
  11877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11878. *) ac_try_echo=$ac_try;;
  11879. esac
  11880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11881. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11882. ac_status=$?
  11883. grep -v '^ *+' conftest.er1 >conftest.err
  11884. rm -f conftest.er1
  11885. cat conftest.err >&5
  11886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11887. (exit $ac_status); } >/dev/null && {
  11888. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11889. test ! -s conftest.err
  11890. }; then
  11891. ac_header_preproc=yes
  11892. else
  11893. echo "$as_me: failed program was:" >&5
  11894. sed 's/^/| /' conftest.$ac_ext >&5
  11895. ac_header_preproc=no
  11896. fi
  11897. rm -f conftest.err conftest.$ac_ext
  11898. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11899. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11900. # So? What about this header?
  11901. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11902. yes:no: )
  11903. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11904. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11905. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11906. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11907. ac_header_preproc=yes
  11908. ;;
  11909. no:yes:* )
  11910. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11911. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11912. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11913. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11914. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11915. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11916. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11917. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11918. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11919. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11920. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11921. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11922. ( cat <<\_ASBOX
  11923. ## ----------------------------------------------- ##
  11924. ## Report this to t-tujikawa@users.sourceforge.net ##
  11925. ## ----------------------------------------------- ##
  11926. _ASBOX
  11927. ) | sed "s/^/$as_me: WARNING: /" >&2
  11928. ;;
  11929. esac
  11930. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11931. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11932. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11933. echo $ECHO_N "(cached) $ECHO_C" >&6
  11934. else
  11935. eval "$as_ac_Header=\$ac_header_preproc"
  11936. fi
  11937. ac_res=`eval echo '${'$as_ac_Header'}'`
  11938. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11939. echo "${ECHO_T}$ac_res" >&6; }
  11940. fi
  11941. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11942. cat >>confdefs.h <<_ACEOF
  11943. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11944. _ACEOF
  11945. fi
  11946. done
  11947. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  11948. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  11949. argz_next __fsetlocking
  11950. do
  11951. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11952. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11953. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11954. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11955. echo $ECHO_N "(cached) $ECHO_C" >&6
  11956. else
  11957. cat >conftest.$ac_ext <<_ACEOF
  11958. /* confdefs.h. */
  11959. _ACEOF
  11960. cat confdefs.h >>conftest.$ac_ext
  11961. cat >>conftest.$ac_ext <<_ACEOF
  11962. /* end confdefs.h. */
  11963. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11964. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11965. #define $ac_func innocuous_$ac_func
  11966. /* System header to define __stub macros and hopefully few prototypes,
  11967. which can conflict with char $ac_func (); below.
  11968. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11969. <limits.h> exists even on freestanding compilers. */
  11970. #ifdef __STDC__
  11971. # include <limits.h>
  11972. #else
  11973. # include <assert.h>
  11974. #endif
  11975. #undef $ac_func
  11976. /* Override any GCC internal prototype to avoid an error.
  11977. Use char because int might match the return type of a GCC
  11978. builtin and then its argument prototype would still apply. */
  11979. #ifdef __cplusplus
  11980. extern "C"
  11981. #endif
  11982. char $ac_func ();
  11983. /* The GNU C library defines this for functions which it implements
  11984. to always fail with ENOSYS. Some functions are actually named
  11985. something starting with __ and the normal name is an alias. */
  11986. #if defined __stub_$ac_func || defined __stub___$ac_func
  11987. choke me
  11988. #endif
  11989. int
  11990. main ()
  11991. {
  11992. return $ac_func ();
  11993. ;
  11994. return 0;
  11995. }
  11996. _ACEOF
  11997. rm -f conftest.$ac_objext conftest$ac_exeext
  11998. if { (ac_try="$ac_link"
  11999. case "(($ac_try" in
  12000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12001. *) ac_try_echo=$ac_try;;
  12002. esac
  12003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12004. (eval "$ac_link") 2>conftest.er1
  12005. ac_status=$?
  12006. grep -v '^ *+' conftest.er1 >conftest.err
  12007. rm -f conftest.er1
  12008. cat conftest.err >&5
  12009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12010. (exit $ac_status); } && {
  12011. test -z "$ac_cxx_werror_flag" ||
  12012. test ! -s conftest.err
  12013. } && test -s conftest$ac_exeext &&
  12014. $as_test_x conftest$ac_exeext; then
  12015. eval "$as_ac_var=yes"
  12016. else
  12017. echo "$as_me: failed program was:" >&5
  12018. sed 's/^/| /' conftest.$ac_ext >&5
  12019. eval "$as_ac_var=no"
  12020. fi
  12021. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12022. conftest$ac_exeext conftest.$ac_ext
  12023. fi
  12024. ac_res=`eval echo '${'$as_ac_var'}'`
  12025. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12026. echo "${ECHO_T}$ac_res" >&6; }
  12027. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12028. cat >>confdefs.h <<_ACEOF
  12029. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12030. _ACEOF
  12031. fi
  12032. done
  12033. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12034. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12035. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12036. echo $ECHO_N "(cached) $ECHO_C" >&6
  12037. else
  12038. cat >conftest.$ac_ext <<_ACEOF
  12039. /* confdefs.h. */
  12040. _ACEOF
  12041. cat confdefs.h >>conftest.$ac_ext
  12042. cat >>conftest.$ac_ext <<_ACEOF
  12043. /* end confdefs.h. */
  12044. #include <stdio.h>
  12045. int
  12046. main ()
  12047. {
  12048. #ifndef feof_unlocked
  12049. char *p = (char *) feof_unlocked;
  12050. #endif
  12051. ;
  12052. return 0;
  12053. }
  12054. _ACEOF
  12055. rm -f conftest.$ac_objext
  12056. if { (ac_try="$ac_compile"
  12057. case "(($ac_try" in
  12058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12059. *) ac_try_echo=$ac_try;;
  12060. esac
  12061. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12062. (eval "$ac_compile") 2>conftest.er1
  12063. ac_status=$?
  12064. grep -v '^ *+' conftest.er1 >conftest.err
  12065. rm -f conftest.er1
  12066. cat conftest.err >&5
  12067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12068. (exit $ac_status); } && {
  12069. test -z "$ac_cxx_werror_flag" ||
  12070. test ! -s conftest.err
  12071. } && test -s conftest.$ac_objext; then
  12072. ac_cv_have_decl_feof_unlocked=yes
  12073. else
  12074. echo "$as_me: failed program was:" >&5
  12075. sed 's/^/| /' conftest.$ac_ext >&5
  12076. ac_cv_have_decl_feof_unlocked=no
  12077. fi
  12078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12079. fi
  12080. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12081. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12082. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12083. gt_value=1
  12084. else
  12085. gt_value=0
  12086. fi
  12087. cat >>confdefs.h <<_ACEOF
  12088. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12089. _ACEOF
  12090. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12091. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12092. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12093. echo $ECHO_N "(cached) $ECHO_C" >&6
  12094. else
  12095. cat >conftest.$ac_ext <<_ACEOF
  12096. /* confdefs.h. */
  12097. _ACEOF
  12098. cat confdefs.h >>conftest.$ac_ext
  12099. cat >>conftest.$ac_ext <<_ACEOF
  12100. /* end confdefs.h. */
  12101. #include <stdio.h>
  12102. int
  12103. main ()
  12104. {
  12105. #ifndef fgets_unlocked
  12106. char *p = (char *) fgets_unlocked;
  12107. #endif
  12108. ;
  12109. return 0;
  12110. }
  12111. _ACEOF
  12112. rm -f conftest.$ac_objext
  12113. if { (ac_try="$ac_compile"
  12114. case "(($ac_try" in
  12115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12116. *) ac_try_echo=$ac_try;;
  12117. esac
  12118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12119. (eval "$ac_compile") 2>conftest.er1
  12120. ac_status=$?
  12121. grep -v '^ *+' conftest.er1 >conftest.err
  12122. rm -f conftest.er1
  12123. cat conftest.err >&5
  12124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12125. (exit $ac_status); } && {
  12126. test -z "$ac_cxx_werror_flag" ||
  12127. test ! -s conftest.err
  12128. } && test -s conftest.$ac_objext; then
  12129. ac_cv_have_decl_fgets_unlocked=yes
  12130. else
  12131. echo "$as_me: failed program was:" >&5
  12132. sed 's/^/| /' conftest.$ac_ext >&5
  12133. ac_cv_have_decl_fgets_unlocked=no
  12134. fi
  12135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12136. fi
  12137. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12138. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12139. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12140. gt_value=1
  12141. else
  12142. gt_value=0
  12143. fi
  12144. cat >>confdefs.h <<_ACEOF
  12145. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12146. _ACEOF
  12147. am_save_CPPFLAGS="$CPPFLAGS"
  12148. for element in $INCICONV; do
  12149. haveit=
  12150. for x in $CPPFLAGS; do
  12151. acl_save_prefix="$prefix"
  12152. prefix="$acl_final_prefix"
  12153. acl_save_exec_prefix="$exec_prefix"
  12154. exec_prefix="$acl_final_exec_prefix"
  12155. eval x=\"$x\"
  12156. exec_prefix="$acl_save_exec_prefix"
  12157. prefix="$acl_save_prefix"
  12158. if test "X$x" = "X$element"; then
  12159. haveit=yes
  12160. break
  12161. fi
  12162. done
  12163. if test -z "$haveit"; then
  12164. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12165. fi
  12166. done
  12167. { echo "$as_me:$LINENO: checking for iconv" >&5
  12168. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12169. if test "${am_cv_func_iconv+set}" = set; then
  12170. echo $ECHO_N "(cached) $ECHO_C" >&6
  12171. else
  12172. am_cv_func_iconv="no, consider installing GNU libiconv"
  12173. am_cv_lib_iconv=no
  12174. cat >conftest.$ac_ext <<_ACEOF
  12175. /* confdefs.h. */
  12176. _ACEOF
  12177. cat confdefs.h >>conftest.$ac_ext
  12178. cat >>conftest.$ac_ext <<_ACEOF
  12179. /* end confdefs.h. */
  12180. #include <stdlib.h>
  12181. #include <iconv.h>
  12182. int
  12183. main ()
  12184. {
  12185. iconv_t cd = iconv_open("","");
  12186. iconv(cd,NULL,NULL,NULL,NULL);
  12187. iconv_close(cd);
  12188. ;
  12189. return 0;
  12190. }
  12191. _ACEOF
  12192. rm -f conftest.$ac_objext conftest$ac_exeext
  12193. if { (ac_try="$ac_link"
  12194. case "(($ac_try" in
  12195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12196. *) ac_try_echo=$ac_try;;
  12197. esac
  12198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12199. (eval "$ac_link") 2>conftest.er1
  12200. ac_status=$?
  12201. grep -v '^ *+' conftest.er1 >conftest.err
  12202. rm -f conftest.er1
  12203. cat conftest.err >&5
  12204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12205. (exit $ac_status); } && {
  12206. test -z "$ac_cxx_werror_flag" ||
  12207. test ! -s conftest.err
  12208. } && test -s conftest$ac_exeext &&
  12209. $as_test_x conftest$ac_exeext; then
  12210. am_cv_func_iconv=yes
  12211. else
  12212. echo "$as_me: failed program was:" >&5
  12213. sed 's/^/| /' conftest.$ac_ext >&5
  12214. fi
  12215. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12216. conftest$ac_exeext conftest.$ac_ext
  12217. if test "$am_cv_func_iconv" != yes; then
  12218. am_save_LIBS="$LIBS"
  12219. LIBS="$LIBS $LIBICONV"
  12220. cat >conftest.$ac_ext <<_ACEOF
  12221. /* confdefs.h. */
  12222. _ACEOF
  12223. cat confdefs.h >>conftest.$ac_ext
  12224. cat >>conftest.$ac_ext <<_ACEOF
  12225. /* end confdefs.h. */
  12226. #include <stdlib.h>
  12227. #include <iconv.h>
  12228. int
  12229. main ()
  12230. {
  12231. iconv_t cd = iconv_open("","");
  12232. iconv(cd,NULL,NULL,NULL,NULL);
  12233. iconv_close(cd);
  12234. ;
  12235. return 0;
  12236. }
  12237. _ACEOF
  12238. rm -f conftest.$ac_objext conftest$ac_exeext
  12239. if { (ac_try="$ac_link"
  12240. case "(($ac_try" in
  12241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12242. *) ac_try_echo=$ac_try;;
  12243. esac
  12244. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12245. (eval "$ac_link") 2>conftest.er1
  12246. ac_status=$?
  12247. grep -v '^ *+' conftest.er1 >conftest.err
  12248. rm -f conftest.er1
  12249. cat conftest.err >&5
  12250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12251. (exit $ac_status); } && {
  12252. test -z "$ac_cxx_werror_flag" ||
  12253. test ! -s conftest.err
  12254. } && test -s conftest$ac_exeext &&
  12255. $as_test_x conftest$ac_exeext; then
  12256. am_cv_lib_iconv=yes
  12257. am_cv_func_iconv=yes
  12258. else
  12259. echo "$as_me: failed program was:" >&5
  12260. sed 's/^/| /' conftest.$ac_ext >&5
  12261. fi
  12262. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12263. conftest$ac_exeext conftest.$ac_ext
  12264. LIBS="$am_save_LIBS"
  12265. fi
  12266. fi
  12267. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12268. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12269. if test "$am_cv_func_iconv" = yes; then
  12270. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12271. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12272. if test "${am_cv_func_iconv_works+set}" = set; then
  12273. echo $ECHO_N "(cached) $ECHO_C" >&6
  12274. else
  12275. am_save_LIBS="$LIBS"
  12276. if test $am_cv_lib_iconv = yes; then
  12277. LIBS="$LIBS $LIBICONV"
  12278. fi
  12279. if test "$cross_compiling" = yes; then
  12280. case "$host_os" in
  12281. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12282. *) am_cv_func_iconv_works="guessing yes" ;;
  12283. esac
  12284. else
  12285. cat >conftest.$ac_ext <<_ACEOF
  12286. /* confdefs.h. */
  12287. _ACEOF
  12288. cat confdefs.h >>conftest.$ac_ext
  12289. cat >>conftest.$ac_ext <<_ACEOF
  12290. /* end confdefs.h. */
  12291. #include <iconv.h>
  12292. #include <string.h>
  12293. int main ()
  12294. {
  12295. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12296. returns. */
  12297. {
  12298. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12299. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12300. {
  12301. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12302. char buf[10];
  12303. const char *inptr = input;
  12304. size_t inbytesleft = strlen (input);
  12305. char *outptr = buf;
  12306. size_t outbytesleft = sizeof (buf);
  12307. size_t res = iconv (cd_utf8_to_88591,
  12308. (char **) &inptr, &inbytesleft,
  12309. &outptr, &outbytesleft);
  12310. if (res == 0)
  12311. return 1;
  12312. }
  12313. }
  12314. #if 0 /* This bug could be worked around by the caller. */
  12315. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12316. {
  12317. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12318. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12319. {
  12320. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12321. char buf[50];
  12322. const char *inptr = input;
  12323. size_t inbytesleft = strlen (input);
  12324. char *outptr = buf;
  12325. size_t outbytesleft = sizeof (buf);
  12326. size_t res = iconv (cd_88591_to_utf8,
  12327. (char **) &inptr, &inbytesleft,
  12328. &outptr, &outbytesleft);
  12329. if ((int)res > 0)
  12330. return 1;
  12331. }
  12332. }
  12333. #endif
  12334. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12335. provided. */
  12336. if (/* Try standardized names. */
  12337. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12338. /* Try IRIX, OSF/1 names. */
  12339. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12340. /* Try AIX names. */
  12341. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12342. /* Try HP-UX names. */
  12343. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12344. return 1;
  12345. return 0;
  12346. }
  12347. _ACEOF
  12348. rm -f conftest$ac_exeext
  12349. if { (ac_try="$ac_link"
  12350. case "(($ac_try" in
  12351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12352. *) ac_try_echo=$ac_try;;
  12353. esac
  12354. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12355. (eval "$ac_link") 2>&5
  12356. ac_status=$?
  12357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12358. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12359. { (case "(($ac_try" in
  12360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12361. *) ac_try_echo=$ac_try;;
  12362. esac
  12363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12364. (eval "$ac_try") 2>&5
  12365. ac_status=$?
  12366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12367. (exit $ac_status); }; }; then
  12368. am_cv_func_iconv_works=yes
  12369. else
  12370. echo "$as_me: program exited with status $ac_status" >&5
  12371. echo "$as_me: failed program was:" >&5
  12372. sed 's/^/| /' conftest.$ac_ext >&5
  12373. ( exit $ac_status )
  12374. am_cv_func_iconv_works=no
  12375. fi
  12376. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12377. fi
  12378. LIBS="$am_save_LIBS"
  12379. fi
  12380. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12381. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12382. case "$am_cv_func_iconv_works" in
  12383. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12384. *) am_func_iconv=yes ;;
  12385. esac
  12386. else
  12387. am_func_iconv=no am_cv_lib_iconv=no
  12388. fi
  12389. if test "$am_func_iconv" = yes; then
  12390. cat >>confdefs.h <<\_ACEOF
  12391. #define HAVE_ICONV 1
  12392. _ACEOF
  12393. fi
  12394. if test "$am_cv_lib_iconv" = yes; then
  12395. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12396. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12397. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12398. echo "${ECHO_T}$LIBICONV" >&6; }
  12399. else
  12400. CPPFLAGS="$am_save_CPPFLAGS"
  12401. LIBICONV=
  12402. LTLIBICONV=
  12403. fi
  12404. if test "$am_cv_func_iconv" = yes; then
  12405. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12406. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12407. if test "${am_cv_proto_iconv+set}" = set; then
  12408. echo $ECHO_N "(cached) $ECHO_C" >&6
  12409. else
  12410. cat >conftest.$ac_ext <<_ACEOF
  12411. /* confdefs.h. */
  12412. _ACEOF
  12413. cat confdefs.h >>conftest.$ac_ext
  12414. cat >>conftest.$ac_ext <<_ACEOF
  12415. /* end confdefs.h. */
  12416. #include <stdlib.h>
  12417. #include <iconv.h>
  12418. extern
  12419. #ifdef __cplusplus
  12420. "C"
  12421. #endif
  12422. #if defined(__STDC__) || defined(__cplusplus)
  12423. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12424. #else
  12425. size_t iconv();
  12426. #endif
  12427. int
  12428. main ()
  12429. {
  12430. ;
  12431. return 0;
  12432. }
  12433. _ACEOF
  12434. rm -f conftest.$ac_objext
  12435. if { (ac_try="$ac_compile"
  12436. case "(($ac_try" in
  12437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12438. *) ac_try_echo=$ac_try;;
  12439. esac
  12440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12441. (eval "$ac_compile") 2>conftest.er1
  12442. ac_status=$?
  12443. grep -v '^ *+' conftest.er1 >conftest.err
  12444. rm -f conftest.er1
  12445. cat conftest.err >&5
  12446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12447. (exit $ac_status); } && {
  12448. test -z "$ac_cxx_werror_flag" ||
  12449. test ! -s conftest.err
  12450. } && test -s conftest.$ac_objext; then
  12451. am_cv_proto_iconv_arg1=""
  12452. else
  12453. echo "$as_me: failed program was:" >&5
  12454. sed 's/^/| /' conftest.$ac_ext >&5
  12455. am_cv_proto_iconv_arg1="const"
  12456. fi
  12457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12458. 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);"
  12459. fi
  12460. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12461. { echo "$as_me:$LINENO: result: ${ac_t:-
  12462. }$am_cv_proto_iconv" >&5
  12463. echo "${ECHO_T}${ac_t:-
  12464. }$am_cv_proto_iconv" >&6; }
  12465. cat >>confdefs.h <<_ACEOF
  12466. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12467. _ACEOF
  12468. fi
  12469. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12470. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12471. if test "${gt_cv_nl_locale_name+set}" = set; then
  12472. echo $ECHO_N "(cached) $ECHO_C" >&6
  12473. else
  12474. cat >conftest.$ac_ext <<_ACEOF
  12475. /* confdefs.h. */
  12476. _ACEOF
  12477. cat confdefs.h >>conftest.$ac_ext
  12478. cat >>conftest.$ac_ext <<_ACEOF
  12479. /* end confdefs.h. */
  12480. #include <langinfo.h>
  12481. #include <locale.h>
  12482. int
  12483. main ()
  12484. {
  12485. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12486. return !cs;
  12487. ;
  12488. return 0;
  12489. }
  12490. _ACEOF
  12491. rm -f conftest.$ac_objext conftest$ac_exeext
  12492. if { (ac_try="$ac_link"
  12493. case "(($ac_try" in
  12494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12495. *) ac_try_echo=$ac_try;;
  12496. esac
  12497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12498. (eval "$ac_link") 2>conftest.er1
  12499. ac_status=$?
  12500. grep -v '^ *+' conftest.er1 >conftest.err
  12501. rm -f conftest.er1
  12502. cat conftest.err >&5
  12503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12504. (exit $ac_status); } && {
  12505. test -z "$ac_cxx_werror_flag" ||
  12506. test ! -s conftest.err
  12507. } && test -s conftest$ac_exeext &&
  12508. $as_test_x conftest$ac_exeext; then
  12509. gt_cv_nl_locale_name=yes
  12510. else
  12511. echo "$as_me: failed program was:" >&5
  12512. sed 's/^/| /' conftest.$ac_ext >&5
  12513. gt_cv_nl_locale_name=no
  12514. fi
  12515. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12516. conftest$ac_exeext conftest.$ac_ext
  12517. fi
  12518. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12519. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12520. if test $gt_cv_nl_locale_name = yes; then
  12521. cat >>confdefs.h <<\_ACEOF
  12522. #define HAVE_NL_LOCALE_NAME 1
  12523. _ACEOF
  12524. fi
  12525. for ac_prog in bison
  12526. do
  12527. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12528. set dummy $ac_prog; ac_word=$2
  12529. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12530. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12531. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12532. echo $ECHO_N "(cached) $ECHO_C" >&6
  12533. else
  12534. if test -n "$INTLBISON"; then
  12535. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12536. else
  12537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12538. for as_dir in $PATH
  12539. do
  12540. IFS=$as_save_IFS
  12541. test -z "$as_dir" && as_dir=.
  12542. for ac_exec_ext in '' $ac_executable_extensions; do
  12543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12544. ac_cv_prog_INTLBISON="$ac_prog"
  12545. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12546. break 2
  12547. fi
  12548. done
  12549. done
  12550. IFS=$as_save_IFS
  12551. fi
  12552. fi
  12553. INTLBISON=$ac_cv_prog_INTLBISON
  12554. if test -n "$INTLBISON"; then
  12555. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12556. echo "${ECHO_T}$INTLBISON" >&6; }
  12557. else
  12558. { echo "$as_me:$LINENO: result: no" >&5
  12559. echo "${ECHO_T}no" >&6; }
  12560. fi
  12561. test -n "$INTLBISON" && break
  12562. done
  12563. if test -z "$INTLBISON"; then
  12564. ac_verc_fail=yes
  12565. else
  12566. { echo "$as_me:$LINENO: checking version of bison" >&5
  12567. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12568. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12569. case $ac_prog_version in
  12570. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12571. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12572. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12573. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12574. esac
  12575. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12576. echo "${ECHO_T}$ac_prog_version" >&6; }
  12577. fi
  12578. if test $ac_verc_fail = yes; then
  12579. INTLBISON=:
  12580. fi
  12581. { echo "$as_me:$LINENO: checking for long long int" >&5
  12582. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12583. if test "${ac_cv_type_long_long_int+set}" = set; then
  12584. echo $ECHO_N "(cached) $ECHO_C" >&6
  12585. else
  12586. cat >conftest.$ac_ext <<_ACEOF
  12587. /* confdefs.h. */
  12588. _ACEOF
  12589. cat confdefs.h >>conftest.$ac_ext
  12590. cat >>conftest.$ac_ext <<_ACEOF
  12591. /* end confdefs.h. */
  12592. /* Test preprocessor. */
  12593. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12594. error in preprocessor;
  12595. #endif
  12596. #if ! (18446744073709551615ULL <= -1ull)
  12597. error in preprocessor;
  12598. #endif
  12599. /* Test literals. */
  12600. long long int ll = 9223372036854775807ll;
  12601. long long int nll = -9223372036854775807LL;
  12602. unsigned long long int ull = 18446744073709551615ULL;
  12603. /* Test constant expressions. */
  12604. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12605. ? 1 : -1)];
  12606. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12607. ? 1 : -1)];
  12608. int i = 63;
  12609. int
  12610. main ()
  12611. {
  12612. /* Test availability of runtime routines for shift and division. */
  12613. long long int llmax = 9223372036854775807ll;
  12614. unsigned long long int ullmax = 18446744073709551615ull;
  12615. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12616. | (llmax / ll) | (llmax % ll)
  12617. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12618. | (ullmax / ull) | (ullmax % ull));
  12619. ;
  12620. return 0;
  12621. }
  12622. _ACEOF
  12623. rm -f conftest.$ac_objext conftest$ac_exeext
  12624. if { (ac_try="$ac_link"
  12625. case "(($ac_try" in
  12626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12627. *) ac_try_echo=$ac_try;;
  12628. esac
  12629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12630. (eval "$ac_link") 2>conftest.er1
  12631. ac_status=$?
  12632. grep -v '^ *+' conftest.er1 >conftest.err
  12633. rm -f conftest.er1
  12634. cat conftest.err >&5
  12635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12636. (exit $ac_status); } && {
  12637. test -z "$ac_cxx_werror_flag" ||
  12638. test ! -s conftest.err
  12639. } && test -s conftest$ac_exeext &&
  12640. $as_test_x conftest$ac_exeext; then
  12641. if test "$cross_compiling" = yes; then
  12642. ac_cv_type_long_long_int=yes
  12643. else
  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 <limits.h>
  12651. #ifndef LLONG_MAX
  12652. # define HALF \
  12653. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  12654. # define LLONG_MAX (HALF - 1 + HALF)
  12655. #endif
  12656. int
  12657. main ()
  12658. {
  12659. long long int n = 1;
  12660. int i;
  12661. for (i = 0; ; i++)
  12662. {
  12663. long long int m = n << i;
  12664. if (m >> i != n)
  12665. return 1;
  12666. if (LLONG_MAX / 2 < m)
  12667. break;
  12668. }
  12669. return 0;
  12670. ;
  12671. return 0;
  12672. }
  12673. _ACEOF
  12674. rm -f conftest$ac_exeext
  12675. if { (ac_try="$ac_link"
  12676. case "(($ac_try" in
  12677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12678. *) ac_try_echo=$ac_try;;
  12679. esac
  12680. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12681. (eval "$ac_link") 2>&5
  12682. ac_status=$?
  12683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12684. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12685. { (case "(($ac_try" in
  12686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12687. *) ac_try_echo=$ac_try;;
  12688. esac
  12689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12690. (eval "$ac_try") 2>&5
  12691. ac_status=$?
  12692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12693. (exit $ac_status); }; }; then
  12694. ac_cv_type_long_long_int=yes
  12695. else
  12696. echo "$as_me: program exited with status $ac_status" >&5
  12697. echo "$as_me: failed program was:" >&5
  12698. sed 's/^/| /' conftest.$ac_ext >&5
  12699. ( exit $ac_status )
  12700. ac_cv_type_long_long_int=no
  12701. fi
  12702. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12703. fi
  12704. else
  12705. echo "$as_me: failed program was:" >&5
  12706. sed 's/^/| /' conftest.$ac_ext >&5
  12707. ac_cv_type_long_long_int=no
  12708. fi
  12709. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12710. conftest$ac_exeext conftest.$ac_ext
  12711. fi
  12712. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  12713. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  12714. if test $ac_cv_type_long_long_int = yes; then
  12715. cat >>confdefs.h <<\_ACEOF
  12716. #define HAVE_LONG_LONG_INT 1
  12717. _ACEOF
  12718. fi
  12719. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  12720. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  12721. if test "${gt_cv_c_wchar_t+set}" = set; then
  12722. echo $ECHO_N "(cached) $ECHO_C" >&6
  12723. else
  12724. cat >conftest.$ac_ext <<_ACEOF
  12725. /* confdefs.h. */
  12726. _ACEOF
  12727. cat confdefs.h >>conftest.$ac_ext
  12728. cat >>conftest.$ac_ext <<_ACEOF
  12729. /* end confdefs.h. */
  12730. #include <stddef.h>
  12731. wchar_t foo = (wchar_t)'\0';
  12732. int
  12733. main ()
  12734. {
  12735. ;
  12736. return 0;
  12737. }
  12738. _ACEOF
  12739. rm -f conftest.$ac_objext
  12740. if { (ac_try="$ac_compile"
  12741. case "(($ac_try" in
  12742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12743. *) ac_try_echo=$ac_try;;
  12744. esac
  12745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12746. (eval "$ac_compile") 2>conftest.er1
  12747. ac_status=$?
  12748. grep -v '^ *+' conftest.er1 >conftest.err
  12749. rm -f conftest.er1
  12750. cat conftest.err >&5
  12751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12752. (exit $ac_status); } && {
  12753. test -z "$ac_cxx_werror_flag" ||
  12754. test ! -s conftest.err
  12755. } && test -s conftest.$ac_objext; then
  12756. gt_cv_c_wchar_t=yes
  12757. else
  12758. echo "$as_me: failed program was:" >&5
  12759. sed 's/^/| /' conftest.$ac_ext >&5
  12760. gt_cv_c_wchar_t=no
  12761. fi
  12762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12763. fi
  12764. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  12765. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  12766. if test $gt_cv_c_wchar_t = yes; then
  12767. cat >>confdefs.h <<\_ACEOF
  12768. #define HAVE_WCHAR_T 1
  12769. _ACEOF
  12770. fi
  12771. { echo "$as_me:$LINENO: checking for wint_t" >&5
  12772. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  12773. if test "${gt_cv_c_wint_t+set}" = set; then
  12774. echo $ECHO_N "(cached) $ECHO_C" >&6
  12775. else
  12776. cat >conftest.$ac_ext <<_ACEOF
  12777. /* confdefs.h. */
  12778. _ACEOF
  12779. cat confdefs.h >>conftest.$ac_ext
  12780. cat >>conftest.$ac_ext <<_ACEOF
  12781. /* end confdefs.h. */
  12782. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12783. <wchar.h>.
  12784. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  12785. before <wchar.h>. */
  12786. #include <stddef.h>
  12787. #include <stdio.h>
  12788. #include <time.h>
  12789. #include <wchar.h>
  12790. wint_t foo = (wchar_t)'\0';
  12791. int
  12792. main ()
  12793. {
  12794. ;
  12795. return 0;
  12796. }
  12797. _ACEOF
  12798. rm -f conftest.$ac_objext
  12799. if { (ac_try="$ac_compile"
  12800. case "(($ac_try" in
  12801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12802. *) ac_try_echo=$ac_try;;
  12803. esac
  12804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12805. (eval "$ac_compile") 2>conftest.er1
  12806. ac_status=$?
  12807. grep -v '^ *+' conftest.er1 >conftest.err
  12808. rm -f conftest.er1
  12809. cat conftest.err >&5
  12810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12811. (exit $ac_status); } && {
  12812. test -z "$ac_cxx_werror_flag" ||
  12813. test ! -s conftest.err
  12814. } && test -s conftest.$ac_objext; then
  12815. gt_cv_c_wint_t=yes
  12816. else
  12817. echo "$as_me: failed program was:" >&5
  12818. sed 's/^/| /' conftest.$ac_ext >&5
  12819. gt_cv_c_wint_t=no
  12820. fi
  12821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12822. fi
  12823. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  12824. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  12825. if test $gt_cv_c_wint_t = yes; then
  12826. cat >>confdefs.h <<\_ACEOF
  12827. #define HAVE_WINT_T 1
  12828. _ACEOF
  12829. fi
  12830. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  12831. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  12832. if test "${gt_cv_c_intmax_t+set}" = set; then
  12833. echo $ECHO_N "(cached) $ECHO_C" >&6
  12834. else
  12835. cat >conftest.$ac_ext <<_ACEOF
  12836. /* confdefs.h. */
  12837. _ACEOF
  12838. cat confdefs.h >>conftest.$ac_ext
  12839. cat >>conftest.$ac_ext <<_ACEOF
  12840. /* end confdefs.h. */
  12841. #include <stddef.h>
  12842. #include <stdlib.h>
  12843. #if HAVE_STDINT_H_WITH_UINTMAX
  12844. #include <stdint.h>
  12845. #endif
  12846. #if HAVE_INTTYPES_H_WITH_UINTMAX
  12847. #include <inttypes.h>
  12848. #endif
  12849. int
  12850. main ()
  12851. {
  12852. intmax_t x = -1;
  12853. return !x;
  12854. ;
  12855. return 0;
  12856. }
  12857. _ACEOF
  12858. rm -f conftest.$ac_objext
  12859. if { (ac_try="$ac_compile"
  12860. case "(($ac_try" in
  12861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12862. *) ac_try_echo=$ac_try;;
  12863. esac
  12864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12865. (eval "$ac_compile") 2>conftest.er1
  12866. ac_status=$?
  12867. grep -v '^ *+' conftest.er1 >conftest.err
  12868. rm -f conftest.er1
  12869. cat conftest.err >&5
  12870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12871. (exit $ac_status); } && {
  12872. test -z "$ac_cxx_werror_flag" ||
  12873. test ! -s conftest.err
  12874. } && test -s conftest.$ac_objext; then
  12875. gt_cv_c_intmax_t=yes
  12876. else
  12877. echo "$as_me: failed program was:" >&5
  12878. sed 's/^/| /' conftest.$ac_ext >&5
  12879. gt_cv_c_intmax_t=no
  12880. fi
  12881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12882. fi
  12883. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  12884. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  12885. if test $gt_cv_c_intmax_t = yes; then
  12886. cat >>confdefs.h <<\_ACEOF
  12887. #define HAVE_INTMAX_T 1
  12888. _ACEOF
  12889. fi
  12890. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  12891. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  12892. if test "${gt_cv_func_printf_posix+set}" = set; then
  12893. echo $ECHO_N "(cached) $ECHO_C" >&6
  12894. else
  12895. if test "$cross_compiling" = yes; then
  12896. cat >conftest.$ac_ext <<_ACEOF
  12897. /* confdefs.h. */
  12898. _ACEOF
  12899. cat confdefs.h >>conftest.$ac_ext
  12900. cat >>conftest.$ac_ext <<_ACEOF
  12901. /* end confdefs.h. */
  12902. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  12903. notposix
  12904. #endif
  12905. _ACEOF
  12906. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12907. $EGREP "notposix" >/dev/null 2>&1; then
  12908. gt_cv_func_printf_posix="guessing no"
  12909. else
  12910. gt_cv_func_printf_posix="guessing yes"
  12911. fi
  12912. rm -f conftest*
  12913. else
  12914. cat >conftest.$ac_ext <<_ACEOF
  12915. /* confdefs.h. */
  12916. _ACEOF
  12917. cat confdefs.h >>conftest.$ac_ext
  12918. cat >>conftest.$ac_ext <<_ACEOF
  12919. /* end confdefs.h. */
  12920. #include <stdio.h>
  12921. #include <string.h>
  12922. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  12923. dollar expansion (possibly an autoconf bug). */
  12924. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  12925. static char buf[100];
  12926. int main ()
  12927. {
  12928. sprintf (buf, format, 33, 55);
  12929. return (strcmp (buf, "55 33") != 0);
  12930. }
  12931. _ACEOF
  12932. rm -f conftest$ac_exeext
  12933. if { (ac_try="$ac_link"
  12934. case "(($ac_try" in
  12935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12936. *) ac_try_echo=$ac_try;;
  12937. esac
  12938. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12939. (eval "$ac_link") 2>&5
  12940. ac_status=$?
  12941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12942. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12943. { (case "(($ac_try" in
  12944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12945. *) ac_try_echo=$ac_try;;
  12946. esac
  12947. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12948. (eval "$ac_try") 2>&5
  12949. ac_status=$?
  12950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12951. (exit $ac_status); }; }; then
  12952. gt_cv_func_printf_posix=yes
  12953. else
  12954. echo "$as_me: program exited with status $ac_status" >&5
  12955. echo "$as_me: failed program was:" >&5
  12956. sed 's/^/| /' conftest.$ac_ext >&5
  12957. ( exit $ac_status )
  12958. gt_cv_func_printf_posix=no
  12959. fi
  12960. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12961. fi
  12962. fi
  12963. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  12964. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  12965. case $gt_cv_func_printf_posix in
  12966. *yes)
  12967. cat >>confdefs.h <<\_ACEOF
  12968. #define HAVE_POSIX_PRINTF 1
  12969. _ACEOF
  12970. ;;
  12971. esac
  12972. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  12973. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  12974. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  12975. echo $ECHO_N "(cached) $ECHO_C" >&6
  12976. else
  12977. cat >conftest.$ac_ext <<_ACEOF
  12978. /* confdefs.h. */
  12979. _ACEOF
  12980. cat confdefs.h >>conftest.$ac_ext
  12981. cat >>conftest.$ac_ext <<_ACEOF
  12982. /* end confdefs.h. */
  12983. #include <features.h>
  12984. #ifdef __GNU_LIBRARY__
  12985. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  12986. Lucky GNU user
  12987. #endif
  12988. #endif
  12989. _ACEOF
  12990. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12991. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  12992. ac_cv_gnu_library_2_1=yes
  12993. else
  12994. ac_cv_gnu_library_2_1=no
  12995. fi
  12996. rm -f conftest*
  12997. fi
  12998. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  12999. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13000. GLIBC21="$ac_cv_gnu_library_2_1"
  13001. for ac_header in stdint.h
  13002. do
  13003. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13004. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13005. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13006. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13007. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13008. echo $ECHO_N "(cached) $ECHO_C" >&6
  13009. fi
  13010. ac_res=`eval echo '${'$as_ac_Header'}'`
  13011. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13012. echo "${ECHO_T}$ac_res" >&6; }
  13013. else
  13014. # Is the header compilable?
  13015. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13016. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13017. cat >conftest.$ac_ext <<_ACEOF
  13018. /* confdefs.h. */
  13019. _ACEOF
  13020. cat confdefs.h >>conftest.$ac_ext
  13021. cat >>conftest.$ac_ext <<_ACEOF
  13022. /* end confdefs.h. */
  13023. $ac_includes_default
  13024. #include <$ac_header>
  13025. _ACEOF
  13026. rm -f conftest.$ac_objext
  13027. if { (ac_try="$ac_compile"
  13028. case "(($ac_try" in
  13029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13030. *) ac_try_echo=$ac_try;;
  13031. esac
  13032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13033. (eval "$ac_compile") 2>conftest.er1
  13034. ac_status=$?
  13035. grep -v '^ *+' conftest.er1 >conftest.err
  13036. rm -f conftest.er1
  13037. cat conftest.err >&5
  13038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13039. (exit $ac_status); } && {
  13040. test -z "$ac_cxx_werror_flag" ||
  13041. test ! -s conftest.err
  13042. } && test -s conftest.$ac_objext; then
  13043. ac_header_compiler=yes
  13044. else
  13045. echo "$as_me: failed program was:" >&5
  13046. sed 's/^/| /' conftest.$ac_ext >&5
  13047. ac_header_compiler=no
  13048. fi
  13049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13050. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13051. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13052. # Is the header present?
  13053. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13054. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13055. cat >conftest.$ac_ext <<_ACEOF
  13056. /* confdefs.h. */
  13057. _ACEOF
  13058. cat confdefs.h >>conftest.$ac_ext
  13059. cat >>conftest.$ac_ext <<_ACEOF
  13060. /* end confdefs.h. */
  13061. #include <$ac_header>
  13062. _ACEOF
  13063. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13064. case "(($ac_try" in
  13065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13066. *) ac_try_echo=$ac_try;;
  13067. esac
  13068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13069. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13070. ac_status=$?
  13071. grep -v '^ *+' conftest.er1 >conftest.err
  13072. rm -f conftest.er1
  13073. cat conftest.err >&5
  13074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13075. (exit $ac_status); } >/dev/null && {
  13076. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13077. test ! -s conftest.err
  13078. }; then
  13079. ac_header_preproc=yes
  13080. else
  13081. echo "$as_me: failed program was:" >&5
  13082. sed 's/^/| /' conftest.$ac_ext >&5
  13083. ac_header_preproc=no
  13084. fi
  13085. rm -f conftest.err conftest.$ac_ext
  13086. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13087. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13088. # So? What about this header?
  13089. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13090. yes:no: )
  13091. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13092. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13093. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13094. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13095. ac_header_preproc=yes
  13096. ;;
  13097. no:yes:* )
  13098. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13099. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13100. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13101. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13102. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13103. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13104. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13105. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13106. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13107. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13108. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13109. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13110. ( cat <<\_ASBOX
  13111. ## ----------------------------------------------- ##
  13112. ## Report this to t-tujikawa@users.sourceforge.net ##
  13113. ## ----------------------------------------------- ##
  13114. _ASBOX
  13115. ) | sed "s/^/$as_me: WARNING: /" >&2
  13116. ;;
  13117. esac
  13118. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13119. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13120. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13121. echo $ECHO_N "(cached) $ECHO_C" >&6
  13122. else
  13123. eval "$as_ac_Header=\$ac_header_preproc"
  13124. fi
  13125. ac_res=`eval echo '${'$as_ac_Header'}'`
  13126. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13127. echo "${ECHO_T}$ac_res" >&6; }
  13128. fi
  13129. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13130. cat >>confdefs.h <<_ACEOF
  13131. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13132. _ACEOF
  13133. fi
  13134. done
  13135. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13136. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13137. if test "${gl_cv_size_max+set}" = set; then
  13138. echo $ECHO_N "(cached) $ECHO_C" >&6
  13139. else
  13140. gl_cv_size_max=
  13141. cat >conftest.$ac_ext <<_ACEOF
  13142. /* confdefs.h. */
  13143. _ACEOF
  13144. cat confdefs.h >>conftest.$ac_ext
  13145. cat >>conftest.$ac_ext <<_ACEOF
  13146. /* end confdefs.h. */
  13147. #include <limits.h>
  13148. #if HAVE_STDINT_H
  13149. #include <stdint.h>
  13150. #endif
  13151. #ifdef SIZE_MAX
  13152. Found it
  13153. #endif
  13154. _ACEOF
  13155. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13156. $EGREP "Found it" >/dev/null 2>&1; then
  13157. gl_cv_size_max=yes
  13158. fi
  13159. rm -f conftest*
  13160. if test -z "$gl_cv_size_max"; then
  13161. if test "$cross_compiling" = yes; then
  13162. # Depending upon the size, compute the lo and hi bounds.
  13163. cat >conftest.$ac_ext <<_ACEOF
  13164. /* confdefs.h. */
  13165. _ACEOF
  13166. cat confdefs.h >>conftest.$ac_ext
  13167. cat >>conftest.$ac_ext <<_ACEOF
  13168. /* end confdefs.h. */
  13169. #include <stddef.h>
  13170. #include <limits.h>
  13171. int
  13172. main ()
  13173. {
  13174. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13175. test_array [0] = 0
  13176. ;
  13177. return 0;
  13178. }
  13179. _ACEOF
  13180. rm -f conftest.$ac_objext
  13181. if { (ac_try="$ac_compile"
  13182. case "(($ac_try" in
  13183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13184. *) ac_try_echo=$ac_try;;
  13185. esac
  13186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13187. (eval "$ac_compile") 2>conftest.er1
  13188. ac_status=$?
  13189. grep -v '^ *+' conftest.er1 >conftest.err
  13190. rm -f conftest.er1
  13191. cat conftest.err >&5
  13192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13193. (exit $ac_status); } && {
  13194. test -z "$ac_cxx_werror_flag" ||
  13195. test ! -s conftest.err
  13196. } && test -s conftest.$ac_objext; then
  13197. ac_lo=0 ac_mid=0
  13198. while :; do
  13199. cat >conftest.$ac_ext <<_ACEOF
  13200. /* confdefs.h. */
  13201. _ACEOF
  13202. cat confdefs.h >>conftest.$ac_ext
  13203. cat >>conftest.$ac_ext <<_ACEOF
  13204. /* end confdefs.h. */
  13205. #include <stddef.h>
  13206. #include <limits.h>
  13207. int
  13208. main ()
  13209. {
  13210. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13211. test_array [0] = 0
  13212. ;
  13213. return 0;
  13214. }
  13215. _ACEOF
  13216. rm -f conftest.$ac_objext
  13217. if { (ac_try="$ac_compile"
  13218. case "(($ac_try" in
  13219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13220. *) ac_try_echo=$ac_try;;
  13221. esac
  13222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13223. (eval "$ac_compile") 2>conftest.er1
  13224. ac_status=$?
  13225. grep -v '^ *+' conftest.er1 >conftest.err
  13226. rm -f conftest.er1
  13227. cat conftest.err >&5
  13228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13229. (exit $ac_status); } && {
  13230. test -z "$ac_cxx_werror_flag" ||
  13231. test ! -s conftest.err
  13232. } && test -s conftest.$ac_objext; then
  13233. ac_hi=$ac_mid; break
  13234. else
  13235. echo "$as_me: failed program was:" >&5
  13236. sed 's/^/| /' conftest.$ac_ext >&5
  13237. ac_lo=`expr $ac_mid + 1`
  13238. if test $ac_lo -le $ac_mid; then
  13239. ac_lo= ac_hi=
  13240. break
  13241. fi
  13242. ac_mid=`expr 2 '*' $ac_mid + 1`
  13243. fi
  13244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13245. done
  13246. else
  13247. echo "$as_me: failed program was:" >&5
  13248. sed 's/^/| /' conftest.$ac_ext >&5
  13249. cat >conftest.$ac_ext <<_ACEOF
  13250. /* confdefs.h. */
  13251. _ACEOF
  13252. cat confdefs.h >>conftest.$ac_ext
  13253. cat >>conftest.$ac_ext <<_ACEOF
  13254. /* end confdefs.h. */
  13255. #include <stddef.h>
  13256. #include <limits.h>
  13257. int
  13258. main ()
  13259. {
  13260. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13261. test_array [0] = 0
  13262. ;
  13263. return 0;
  13264. }
  13265. _ACEOF
  13266. rm -f conftest.$ac_objext
  13267. if { (ac_try="$ac_compile"
  13268. case "(($ac_try" in
  13269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13270. *) ac_try_echo=$ac_try;;
  13271. esac
  13272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13273. (eval "$ac_compile") 2>conftest.er1
  13274. ac_status=$?
  13275. grep -v '^ *+' conftest.er1 >conftest.err
  13276. rm -f conftest.er1
  13277. cat conftest.err >&5
  13278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13279. (exit $ac_status); } && {
  13280. test -z "$ac_cxx_werror_flag" ||
  13281. test ! -s conftest.err
  13282. } && test -s conftest.$ac_objext; then
  13283. ac_hi=-1 ac_mid=-1
  13284. while :; do
  13285. cat >conftest.$ac_ext <<_ACEOF
  13286. /* confdefs.h. */
  13287. _ACEOF
  13288. cat confdefs.h >>conftest.$ac_ext
  13289. cat >>conftest.$ac_ext <<_ACEOF
  13290. /* end confdefs.h. */
  13291. #include <stddef.h>
  13292. #include <limits.h>
  13293. int
  13294. main ()
  13295. {
  13296. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13297. test_array [0] = 0
  13298. ;
  13299. return 0;
  13300. }
  13301. _ACEOF
  13302. rm -f conftest.$ac_objext
  13303. if { (ac_try="$ac_compile"
  13304. case "(($ac_try" in
  13305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13306. *) ac_try_echo=$ac_try;;
  13307. esac
  13308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13309. (eval "$ac_compile") 2>conftest.er1
  13310. ac_status=$?
  13311. grep -v '^ *+' conftest.er1 >conftest.err
  13312. rm -f conftest.er1
  13313. cat conftest.err >&5
  13314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13315. (exit $ac_status); } && {
  13316. test -z "$ac_cxx_werror_flag" ||
  13317. test ! -s conftest.err
  13318. } && test -s conftest.$ac_objext; then
  13319. ac_lo=$ac_mid; break
  13320. else
  13321. echo "$as_me: failed program was:" >&5
  13322. sed 's/^/| /' conftest.$ac_ext >&5
  13323. ac_hi=`expr '(' $ac_mid ')' - 1`
  13324. if test $ac_mid -le $ac_hi; then
  13325. ac_lo= ac_hi=
  13326. break
  13327. fi
  13328. ac_mid=`expr 2 '*' $ac_mid`
  13329. fi
  13330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13331. done
  13332. else
  13333. echo "$as_me: failed program was:" >&5
  13334. sed 's/^/| /' conftest.$ac_ext >&5
  13335. ac_lo= ac_hi=
  13336. fi
  13337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13338. fi
  13339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13340. # Binary search between lo and hi bounds.
  13341. while test "x$ac_lo" != "x$ac_hi"; do
  13342. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13343. cat >conftest.$ac_ext <<_ACEOF
  13344. /* confdefs.h. */
  13345. _ACEOF
  13346. cat confdefs.h >>conftest.$ac_ext
  13347. cat >>conftest.$ac_ext <<_ACEOF
  13348. /* end confdefs.h. */
  13349. #include <stddef.h>
  13350. #include <limits.h>
  13351. int
  13352. main ()
  13353. {
  13354. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13355. test_array [0] = 0
  13356. ;
  13357. return 0;
  13358. }
  13359. _ACEOF
  13360. rm -f conftest.$ac_objext
  13361. if { (ac_try="$ac_compile"
  13362. case "(($ac_try" in
  13363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13364. *) ac_try_echo=$ac_try;;
  13365. esac
  13366. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13367. (eval "$ac_compile") 2>conftest.er1
  13368. ac_status=$?
  13369. grep -v '^ *+' conftest.er1 >conftest.err
  13370. rm -f conftest.er1
  13371. cat conftest.err >&5
  13372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13373. (exit $ac_status); } && {
  13374. test -z "$ac_cxx_werror_flag" ||
  13375. test ! -s conftest.err
  13376. } && test -s conftest.$ac_objext; then
  13377. ac_hi=$ac_mid
  13378. else
  13379. echo "$as_me: failed program was:" >&5
  13380. sed 's/^/| /' conftest.$ac_ext >&5
  13381. ac_lo=`expr '(' $ac_mid ')' + 1`
  13382. fi
  13383. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13384. done
  13385. case $ac_lo in
  13386. ?*) size_t_bits_minus_1=$ac_lo;;
  13387. '') size_t_bits_minus_1= ;;
  13388. esac
  13389. else
  13390. cat >conftest.$ac_ext <<_ACEOF
  13391. /* confdefs.h. */
  13392. _ACEOF
  13393. cat confdefs.h >>conftest.$ac_ext
  13394. cat >>conftest.$ac_ext <<_ACEOF
  13395. /* end confdefs.h. */
  13396. #include <stddef.h>
  13397. #include <limits.h>
  13398. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13399. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13400. #include <stdio.h>
  13401. #include <stdlib.h>
  13402. int
  13403. main ()
  13404. {
  13405. FILE *f = fopen ("conftest.val", "w");
  13406. if (! f)
  13407. return 1;
  13408. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13409. {
  13410. long int i = longval ();
  13411. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13412. return 1;
  13413. fprintf (f, "%ld\n", i);
  13414. }
  13415. else
  13416. {
  13417. unsigned long int i = ulongval ();
  13418. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13419. return 1;
  13420. fprintf (f, "%lu\n", i);
  13421. }
  13422. return ferror (f) || fclose (f) != 0;
  13423. ;
  13424. return 0;
  13425. }
  13426. _ACEOF
  13427. rm -f conftest$ac_exeext
  13428. if { (ac_try="$ac_link"
  13429. case "(($ac_try" in
  13430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13431. *) ac_try_echo=$ac_try;;
  13432. esac
  13433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13434. (eval "$ac_link") 2>&5
  13435. ac_status=$?
  13436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13437. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13438. { (case "(($ac_try" in
  13439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13440. *) ac_try_echo=$ac_try;;
  13441. esac
  13442. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13443. (eval "$ac_try") 2>&5
  13444. ac_status=$?
  13445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13446. (exit $ac_status); }; }; then
  13447. size_t_bits_minus_1=`cat conftest.val`
  13448. else
  13449. echo "$as_me: program exited with status $ac_status" >&5
  13450. echo "$as_me: failed program was:" >&5
  13451. sed 's/^/| /' conftest.$ac_ext >&5
  13452. ( exit $ac_status )
  13453. size_t_bits_minus_1=
  13454. fi
  13455. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13456. fi
  13457. rm -f conftest.val
  13458. if test "$cross_compiling" = yes; then
  13459. # Depending upon the size, compute the lo and hi bounds.
  13460. cat >conftest.$ac_ext <<_ACEOF
  13461. /* confdefs.h. */
  13462. _ACEOF
  13463. cat confdefs.h >>conftest.$ac_ext
  13464. cat >>conftest.$ac_ext <<_ACEOF
  13465. /* end confdefs.h. */
  13466. #include <stddef.h>
  13467. int
  13468. main ()
  13469. {
  13470. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13471. test_array [0] = 0
  13472. ;
  13473. return 0;
  13474. }
  13475. _ACEOF
  13476. rm -f conftest.$ac_objext
  13477. if { (ac_try="$ac_compile"
  13478. case "(($ac_try" in
  13479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13480. *) ac_try_echo=$ac_try;;
  13481. esac
  13482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13483. (eval "$ac_compile") 2>conftest.er1
  13484. ac_status=$?
  13485. grep -v '^ *+' conftest.er1 >conftest.err
  13486. rm -f conftest.er1
  13487. cat conftest.err >&5
  13488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13489. (exit $ac_status); } && {
  13490. test -z "$ac_cxx_werror_flag" ||
  13491. test ! -s conftest.err
  13492. } && test -s conftest.$ac_objext; then
  13493. ac_lo=0 ac_mid=0
  13494. while :; do
  13495. cat >conftest.$ac_ext <<_ACEOF
  13496. /* confdefs.h. */
  13497. _ACEOF
  13498. cat confdefs.h >>conftest.$ac_ext
  13499. cat >>conftest.$ac_ext <<_ACEOF
  13500. /* end confdefs.h. */
  13501. #include <stddef.h>
  13502. int
  13503. main ()
  13504. {
  13505. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13506. test_array [0] = 0
  13507. ;
  13508. return 0;
  13509. }
  13510. _ACEOF
  13511. rm -f conftest.$ac_objext
  13512. if { (ac_try="$ac_compile"
  13513. case "(($ac_try" in
  13514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13515. *) ac_try_echo=$ac_try;;
  13516. esac
  13517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13518. (eval "$ac_compile") 2>conftest.er1
  13519. ac_status=$?
  13520. grep -v '^ *+' conftest.er1 >conftest.err
  13521. rm -f conftest.er1
  13522. cat conftest.err >&5
  13523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13524. (exit $ac_status); } && {
  13525. test -z "$ac_cxx_werror_flag" ||
  13526. test ! -s conftest.err
  13527. } && test -s conftest.$ac_objext; then
  13528. ac_hi=$ac_mid; break
  13529. else
  13530. echo "$as_me: failed program was:" >&5
  13531. sed 's/^/| /' conftest.$ac_ext >&5
  13532. ac_lo=`expr $ac_mid + 1`
  13533. if test $ac_lo -le $ac_mid; then
  13534. ac_lo= ac_hi=
  13535. break
  13536. fi
  13537. ac_mid=`expr 2 '*' $ac_mid + 1`
  13538. fi
  13539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13540. done
  13541. else
  13542. echo "$as_me: failed program was:" >&5
  13543. sed 's/^/| /' conftest.$ac_ext >&5
  13544. cat >conftest.$ac_ext <<_ACEOF
  13545. /* confdefs.h. */
  13546. _ACEOF
  13547. cat confdefs.h >>conftest.$ac_ext
  13548. cat >>conftest.$ac_ext <<_ACEOF
  13549. /* end confdefs.h. */
  13550. #include <stddef.h>
  13551. int
  13552. main ()
  13553. {
  13554. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13555. test_array [0] = 0
  13556. ;
  13557. return 0;
  13558. }
  13559. _ACEOF
  13560. rm -f conftest.$ac_objext
  13561. if { (ac_try="$ac_compile"
  13562. case "(($ac_try" in
  13563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13564. *) ac_try_echo=$ac_try;;
  13565. esac
  13566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13567. (eval "$ac_compile") 2>conftest.er1
  13568. ac_status=$?
  13569. grep -v '^ *+' conftest.er1 >conftest.err
  13570. rm -f conftest.er1
  13571. cat conftest.err >&5
  13572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13573. (exit $ac_status); } && {
  13574. test -z "$ac_cxx_werror_flag" ||
  13575. test ! -s conftest.err
  13576. } && test -s conftest.$ac_objext; then
  13577. ac_hi=-1 ac_mid=-1
  13578. while :; do
  13579. cat >conftest.$ac_ext <<_ACEOF
  13580. /* confdefs.h. */
  13581. _ACEOF
  13582. cat confdefs.h >>conftest.$ac_ext
  13583. cat >>conftest.$ac_ext <<_ACEOF
  13584. /* end confdefs.h. */
  13585. #include <stddef.h>
  13586. int
  13587. main ()
  13588. {
  13589. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13590. test_array [0] = 0
  13591. ;
  13592. return 0;
  13593. }
  13594. _ACEOF
  13595. rm -f conftest.$ac_objext
  13596. if { (ac_try="$ac_compile"
  13597. case "(($ac_try" in
  13598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13599. *) ac_try_echo=$ac_try;;
  13600. esac
  13601. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13602. (eval "$ac_compile") 2>conftest.er1
  13603. ac_status=$?
  13604. grep -v '^ *+' conftest.er1 >conftest.err
  13605. rm -f conftest.er1
  13606. cat conftest.err >&5
  13607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13608. (exit $ac_status); } && {
  13609. test -z "$ac_cxx_werror_flag" ||
  13610. test ! -s conftest.err
  13611. } && test -s conftest.$ac_objext; then
  13612. ac_lo=$ac_mid; break
  13613. else
  13614. echo "$as_me: failed program was:" >&5
  13615. sed 's/^/| /' conftest.$ac_ext >&5
  13616. ac_hi=`expr '(' $ac_mid ')' - 1`
  13617. if test $ac_mid -le $ac_hi; then
  13618. ac_lo= ac_hi=
  13619. break
  13620. fi
  13621. ac_mid=`expr 2 '*' $ac_mid`
  13622. fi
  13623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13624. done
  13625. else
  13626. echo "$as_me: failed program was:" >&5
  13627. sed 's/^/| /' conftest.$ac_ext >&5
  13628. ac_lo= ac_hi=
  13629. fi
  13630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13631. fi
  13632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13633. # Binary search between lo and hi bounds.
  13634. while test "x$ac_lo" != "x$ac_hi"; do
  13635. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13636. cat >conftest.$ac_ext <<_ACEOF
  13637. /* confdefs.h. */
  13638. _ACEOF
  13639. cat confdefs.h >>conftest.$ac_ext
  13640. cat >>conftest.$ac_ext <<_ACEOF
  13641. /* end confdefs.h. */
  13642. #include <stddef.h>
  13643. int
  13644. main ()
  13645. {
  13646. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13647. test_array [0] = 0
  13648. ;
  13649. return 0;
  13650. }
  13651. _ACEOF
  13652. rm -f conftest.$ac_objext
  13653. if { (ac_try="$ac_compile"
  13654. case "(($ac_try" in
  13655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13656. *) ac_try_echo=$ac_try;;
  13657. esac
  13658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13659. (eval "$ac_compile") 2>conftest.er1
  13660. ac_status=$?
  13661. grep -v '^ *+' conftest.er1 >conftest.err
  13662. rm -f conftest.er1
  13663. cat conftest.err >&5
  13664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13665. (exit $ac_status); } && {
  13666. test -z "$ac_cxx_werror_flag" ||
  13667. test ! -s conftest.err
  13668. } && test -s conftest.$ac_objext; then
  13669. ac_hi=$ac_mid
  13670. else
  13671. echo "$as_me: failed program was:" >&5
  13672. sed 's/^/| /' conftest.$ac_ext >&5
  13673. ac_lo=`expr '(' $ac_mid ')' + 1`
  13674. fi
  13675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13676. done
  13677. case $ac_lo in
  13678. ?*) fits_in_uint=$ac_lo;;
  13679. '') fits_in_uint= ;;
  13680. esac
  13681. else
  13682. cat >conftest.$ac_ext <<_ACEOF
  13683. /* confdefs.h. */
  13684. _ACEOF
  13685. cat confdefs.h >>conftest.$ac_ext
  13686. cat >>conftest.$ac_ext <<_ACEOF
  13687. /* end confdefs.h. */
  13688. #include <stddef.h>
  13689. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13690. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13691. #include <stdio.h>
  13692. #include <stdlib.h>
  13693. int
  13694. main ()
  13695. {
  13696. FILE *f = fopen ("conftest.val", "w");
  13697. if (! f)
  13698. return 1;
  13699. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  13700. {
  13701. long int i = longval ();
  13702. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13703. return 1;
  13704. fprintf (f, "%ld\n", i);
  13705. }
  13706. else
  13707. {
  13708. unsigned long int i = ulongval ();
  13709. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13710. return 1;
  13711. fprintf (f, "%lu\n", i);
  13712. }
  13713. return ferror (f) || fclose (f) != 0;
  13714. ;
  13715. return 0;
  13716. }
  13717. _ACEOF
  13718. rm -f conftest$ac_exeext
  13719. if { (ac_try="$ac_link"
  13720. case "(($ac_try" in
  13721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13722. *) ac_try_echo=$ac_try;;
  13723. esac
  13724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13725. (eval "$ac_link") 2>&5
  13726. ac_status=$?
  13727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13728. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13729. { (case "(($ac_try" in
  13730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13731. *) ac_try_echo=$ac_try;;
  13732. esac
  13733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13734. (eval "$ac_try") 2>&5
  13735. ac_status=$?
  13736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13737. (exit $ac_status); }; }; then
  13738. fits_in_uint=`cat conftest.val`
  13739. else
  13740. echo "$as_me: program exited with status $ac_status" >&5
  13741. echo "$as_me: failed program was:" >&5
  13742. sed 's/^/| /' conftest.$ac_ext >&5
  13743. ( exit $ac_status )
  13744. fits_in_uint=
  13745. fi
  13746. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13747. fi
  13748. rm -f conftest.val
  13749. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  13750. if test $fits_in_uint = 1; then
  13751. cat >conftest.$ac_ext <<_ACEOF
  13752. /* confdefs.h. */
  13753. _ACEOF
  13754. cat confdefs.h >>conftest.$ac_ext
  13755. cat >>conftest.$ac_ext <<_ACEOF
  13756. /* end confdefs.h. */
  13757. #include <stddef.h>
  13758. extern size_t foo;
  13759. extern unsigned long foo;
  13760. int
  13761. main ()
  13762. {
  13763. ;
  13764. return 0;
  13765. }
  13766. _ACEOF
  13767. rm -f conftest.$ac_objext
  13768. if { (ac_try="$ac_compile"
  13769. case "(($ac_try" in
  13770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13771. *) ac_try_echo=$ac_try;;
  13772. esac
  13773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13774. (eval "$ac_compile") 2>conftest.er1
  13775. ac_status=$?
  13776. grep -v '^ *+' conftest.er1 >conftest.err
  13777. rm -f conftest.er1
  13778. cat conftest.err >&5
  13779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13780. (exit $ac_status); } && {
  13781. test -z "$ac_cxx_werror_flag" ||
  13782. test ! -s conftest.err
  13783. } && test -s conftest.$ac_objext; then
  13784. fits_in_uint=0
  13785. else
  13786. echo "$as_me: failed program was:" >&5
  13787. sed 's/^/| /' conftest.$ac_ext >&5
  13788. fi
  13789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13790. fi
  13791. if test $fits_in_uint = 1; then
  13792. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13793. else
  13794. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13795. fi
  13796. else
  13797. gl_cv_size_max='((size_t)~(size_t)0)'
  13798. fi
  13799. fi
  13800. fi
  13801. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  13802. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  13803. if test "$gl_cv_size_max" != yes; then
  13804. cat >>confdefs.h <<_ACEOF
  13805. #define SIZE_MAX $gl_cv_size_max
  13806. _ACEOF
  13807. fi
  13808. for ac_header in stdint.h
  13809. do
  13810. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13811. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13812. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13813. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13814. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13815. echo $ECHO_N "(cached) $ECHO_C" >&6
  13816. fi
  13817. ac_res=`eval echo '${'$as_ac_Header'}'`
  13818. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13819. echo "${ECHO_T}$ac_res" >&6; }
  13820. else
  13821. # Is the header compilable?
  13822. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13823. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13824. cat >conftest.$ac_ext <<_ACEOF
  13825. /* confdefs.h. */
  13826. _ACEOF
  13827. cat confdefs.h >>conftest.$ac_ext
  13828. cat >>conftest.$ac_ext <<_ACEOF
  13829. /* end confdefs.h. */
  13830. $ac_includes_default
  13831. #include <$ac_header>
  13832. _ACEOF
  13833. rm -f conftest.$ac_objext
  13834. if { (ac_try="$ac_compile"
  13835. case "(($ac_try" in
  13836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13837. *) ac_try_echo=$ac_try;;
  13838. esac
  13839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13840. (eval "$ac_compile") 2>conftest.er1
  13841. ac_status=$?
  13842. grep -v '^ *+' conftest.er1 >conftest.err
  13843. rm -f conftest.er1
  13844. cat conftest.err >&5
  13845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13846. (exit $ac_status); } && {
  13847. test -z "$ac_cxx_werror_flag" ||
  13848. test ! -s conftest.err
  13849. } && test -s conftest.$ac_objext; then
  13850. ac_header_compiler=yes
  13851. else
  13852. echo "$as_me: failed program was:" >&5
  13853. sed 's/^/| /' conftest.$ac_ext >&5
  13854. ac_header_compiler=no
  13855. fi
  13856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13857. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13858. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13859. # Is the header present?
  13860. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13861. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13862. cat >conftest.$ac_ext <<_ACEOF
  13863. /* confdefs.h. */
  13864. _ACEOF
  13865. cat confdefs.h >>conftest.$ac_ext
  13866. cat >>conftest.$ac_ext <<_ACEOF
  13867. /* end confdefs.h. */
  13868. #include <$ac_header>
  13869. _ACEOF
  13870. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13871. case "(($ac_try" in
  13872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13873. *) ac_try_echo=$ac_try;;
  13874. esac
  13875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13876. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13877. ac_status=$?
  13878. grep -v '^ *+' conftest.er1 >conftest.err
  13879. rm -f conftest.er1
  13880. cat conftest.err >&5
  13881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13882. (exit $ac_status); } >/dev/null && {
  13883. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13884. test ! -s conftest.err
  13885. }; then
  13886. ac_header_preproc=yes
  13887. else
  13888. echo "$as_me: failed program was:" >&5
  13889. sed 's/^/| /' conftest.$ac_ext >&5
  13890. ac_header_preproc=no
  13891. fi
  13892. rm -f conftest.err conftest.$ac_ext
  13893. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13894. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13895. # So? What about this header?
  13896. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13897. yes:no: )
  13898. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13899. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13900. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13901. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13902. ac_header_preproc=yes
  13903. ;;
  13904. no:yes:* )
  13905. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13906. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13907. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13908. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13909. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13910. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13911. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13912. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13913. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13914. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13915. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13916. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13917. ( cat <<\_ASBOX
  13918. ## ----------------------------------------------- ##
  13919. ## Report this to t-tujikawa@users.sourceforge.net ##
  13920. ## ----------------------------------------------- ##
  13921. _ASBOX
  13922. ) | sed "s/^/$as_me: WARNING: /" >&2
  13923. ;;
  13924. esac
  13925. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13926. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13927. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13928. echo $ECHO_N "(cached) $ECHO_C" >&6
  13929. else
  13930. eval "$as_ac_Header=\$ac_header_preproc"
  13931. fi
  13932. ac_res=`eval echo '${'$as_ac_Header'}'`
  13933. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13934. echo "${ECHO_T}$ac_res" >&6; }
  13935. fi
  13936. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13937. cat >>confdefs.h <<_ACEOF
  13938. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13939. _ACEOF
  13940. fi
  13941. done
  13942. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  13943. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  13944. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  13945. echo $ECHO_N "(cached) $ECHO_C" >&6
  13946. else
  13947. gt_save_LIBS="$LIBS"
  13948. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13949. cat >conftest.$ac_ext <<_ACEOF
  13950. /* confdefs.h. */
  13951. _ACEOF
  13952. cat confdefs.h >>conftest.$ac_ext
  13953. cat >>conftest.$ac_ext <<_ACEOF
  13954. /* end confdefs.h. */
  13955. #include <CoreFoundation/CFPreferences.h>
  13956. int
  13957. main ()
  13958. {
  13959. CFPreferencesCopyAppValue(NULL, NULL)
  13960. ;
  13961. return 0;
  13962. }
  13963. _ACEOF
  13964. rm -f conftest.$ac_objext conftest$ac_exeext
  13965. if { (ac_try="$ac_link"
  13966. case "(($ac_try" in
  13967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13968. *) ac_try_echo=$ac_try;;
  13969. esac
  13970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13971. (eval "$ac_link") 2>conftest.er1
  13972. ac_status=$?
  13973. grep -v '^ *+' conftest.er1 >conftest.err
  13974. rm -f conftest.er1
  13975. cat conftest.err >&5
  13976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13977. (exit $ac_status); } && {
  13978. test -z "$ac_cxx_werror_flag" ||
  13979. test ! -s conftest.err
  13980. } && test -s conftest$ac_exeext &&
  13981. $as_test_x conftest$ac_exeext; then
  13982. gt_cv_func_CFPreferencesCopyAppValue=yes
  13983. else
  13984. echo "$as_me: failed program was:" >&5
  13985. sed 's/^/| /' conftest.$ac_ext >&5
  13986. gt_cv_func_CFPreferencesCopyAppValue=no
  13987. fi
  13988. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13989. conftest$ac_exeext conftest.$ac_ext
  13990. LIBS="$gt_save_LIBS"
  13991. fi
  13992. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  13993. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  13994. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  13995. cat >>confdefs.h <<\_ACEOF
  13996. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  13997. _ACEOF
  13998. fi
  13999. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14000. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14001. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14002. echo $ECHO_N "(cached) $ECHO_C" >&6
  14003. else
  14004. gt_save_LIBS="$LIBS"
  14005. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14006. cat >conftest.$ac_ext <<_ACEOF
  14007. /* confdefs.h. */
  14008. _ACEOF
  14009. cat confdefs.h >>conftest.$ac_ext
  14010. cat >>conftest.$ac_ext <<_ACEOF
  14011. /* end confdefs.h. */
  14012. #include <CoreFoundation/CFLocale.h>
  14013. int
  14014. main ()
  14015. {
  14016. CFLocaleCopyCurrent();
  14017. ;
  14018. return 0;
  14019. }
  14020. _ACEOF
  14021. rm -f conftest.$ac_objext conftest$ac_exeext
  14022. if { (ac_try="$ac_link"
  14023. case "(($ac_try" in
  14024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14025. *) ac_try_echo=$ac_try;;
  14026. esac
  14027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14028. (eval "$ac_link") 2>conftest.er1
  14029. ac_status=$?
  14030. grep -v '^ *+' conftest.er1 >conftest.err
  14031. rm -f conftest.er1
  14032. cat conftest.err >&5
  14033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14034. (exit $ac_status); } && {
  14035. test -z "$ac_cxx_werror_flag" ||
  14036. test ! -s conftest.err
  14037. } && test -s conftest$ac_exeext &&
  14038. $as_test_x conftest$ac_exeext; then
  14039. gt_cv_func_CFLocaleCopyCurrent=yes
  14040. else
  14041. echo "$as_me: failed program was:" >&5
  14042. sed 's/^/| /' conftest.$ac_ext >&5
  14043. gt_cv_func_CFLocaleCopyCurrent=no
  14044. fi
  14045. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14046. conftest$ac_exeext conftest.$ac_ext
  14047. LIBS="$gt_save_LIBS"
  14048. fi
  14049. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14050. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14051. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14052. cat >>confdefs.h <<\_ACEOF
  14053. #define HAVE_CFLOCALECOPYCURRENT 1
  14054. _ACEOF
  14055. fi
  14056. INTL_MACOSX_LIBS=
  14057. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14058. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14059. fi
  14060. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14061. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14062. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14063. echo $ECHO_N "(cached) $ECHO_C" >&6
  14064. else
  14065. cat >conftest.$ac_ext <<_ACEOF
  14066. /* confdefs.h. */
  14067. _ACEOF
  14068. cat confdefs.h >>conftest.$ac_ext
  14069. cat >>conftest.$ac_ext <<_ACEOF
  14070. /* end confdefs.h. */
  14071. $ac_includes_default
  14072. typedef ptrdiff_t ac__type_new_;
  14073. int
  14074. main ()
  14075. {
  14076. if ((ac__type_new_ *) 0)
  14077. return 0;
  14078. if (sizeof (ac__type_new_))
  14079. return 0;
  14080. ;
  14081. return 0;
  14082. }
  14083. _ACEOF
  14084. rm -f conftest.$ac_objext
  14085. if { (ac_try="$ac_compile"
  14086. case "(($ac_try" in
  14087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14088. *) ac_try_echo=$ac_try;;
  14089. esac
  14090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14091. (eval "$ac_compile") 2>conftest.er1
  14092. ac_status=$?
  14093. grep -v '^ *+' conftest.er1 >conftest.err
  14094. rm -f conftest.er1
  14095. cat conftest.err >&5
  14096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14097. (exit $ac_status); } && {
  14098. test -z "$ac_cxx_werror_flag" ||
  14099. test ! -s conftest.err
  14100. } && test -s conftest.$ac_objext; then
  14101. ac_cv_type_ptrdiff_t=yes
  14102. else
  14103. echo "$as_me: failed program was:" >&5
  14104. sed 's/^/| /' conftest.$ac_ext >&5
  14105. ac_cv_type_ptrdiff_t=no
  14106. fi
  14107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14108. fi
  14109. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14110. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14111. if test $ac_cv_type_ptrdiff_t = yes; then
  14112. :
  14113. else
  14114. cat >>confdefs.h <<\_ACEOF
  14115. #define ptrdiff_t long
  14116. _ACEOF
  14117. fi
  14118. for ac_header in stddef.h stdlib.h string.h
  14119. do
  14120. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14121. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14122. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14123. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14124. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14125. echo $ECHO_N "(cached) $ECHO_C" >&6
  14126. fi
  14127. ac_res=`eval echo '${'$as_ac_Header'}'`
  14128. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14129. echo "${ECHO_T}$ac_res" >&6; }
  14130. else
  14131. # Is the header compilable?
  14132. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14133. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14134. cat >conftest.$ac_ext <<_ACEOF
  14135. /* confdefs.h. */
  14136. _ACEOF
  14137. cat confdefs.h >>conftest.$ac_ext
  14138. cat >>conftest.$ac_ext <<_ACEOF
  14139. /* end confdefs.h. */
  14140. $ac_includes_default
  14141. #include <$ac_header>
  14142. _ACEOF
  14143. rm -f conftest.$ac_objext
  14144. if { (ac_try="$ac_compile"
  14145. case "(($ac_try" in
  14146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14147. *) ac_try_echo=$ac_try;;
  14148. esac
  14149. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14150. (eval "$ac_compile") 2>conftest.er1
  14151. ac_status=$?
  14152. grep -v '^ *+' conftest.er1 >conftest.err
  14153. rm -f conftest.er1
  14154. cat conftest.err >&5
  14155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14156. (exit $ac_status); } && {
  14157. test -z "$ac_cxx_werror_flag" ||
  14158. test ! -s conftest.err
  14159. } && test -s conftest.$ac_objext; then
  14160. ac_header_compiler=yes
  14161. else
  14162. echo "$as_me: failed program was:" >&5
  14163. sed 's/^/| /' conftest.$ac_ext >&5
  14164. ac_header_compiler=no
  14165. fi
  14166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14167. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14168. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14169. # Is the header present?
  14170. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14171. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14172. cat >conftest.$ac_ext <<_ACEOF
  14173. /* confdefs.h. */
  14174. _ACEOF
  14175. cat confdefs.h >>conftest.$ac_ext
  14176. cat >>conftest.$ac_ext <<_ACEOF
  14177. /* end confdefs.h. */
  14178. #include <$ac_header>
  14179. _ACEOF
  14180. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14181. case "(($ac_try" in
  14182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14183. *) ac_try_echo=$ac_try;;
  14184. esac
  14185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14186. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14187. ac_status=$?
  14188. grep -v '^ *+' conftest.er1 >conftest.err
  14189. rm -f conftest.er1
  14190. cat conftest.err >&5
  14191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14192. (exit $ac_status); } >/dev/null && {
  14193. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14194. test ! -s conftest.err
  14195. }; then
  14196. ac_header_preproc=yes
  14197. else
  14198. echo "$as_me: failed program was:" >&5
  14199. sed 's/^/| /' conftest.$ac_ext >&5
  14200. ac_header_preproc=no
  14201. fi
  14202. rm -f conftest.err conftest.$ac_ext
  14203. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14204. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14205. # So? What about this header?
  14206. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14207. yes:no: )
  14208. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14209. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14210. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14211. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14212. ac_header_preproc=yes
  14213. ;;
  14214. no:yes:* )
  14215. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14216. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14217. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14218. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14219. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14220. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14221. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14222. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14223. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14224. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14225. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14226. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14227. ( cat <<\_ASBOX
  14228. ## ----------------------------------------------- ##
  14229. ## Report this to t-tujikawa@users.sourceforge.net ##
  14230. ## ----------------------------------------------- ##
  14231. _ASBOX
  14232. ) | sed "s/^/$as_me: WARNING: /" >&2
  14233. ;;
  14234. esac
  14235. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14236. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14237. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14238. echo $ECHO_N "(cached) $ECHO_C" >&6
  14239. else
  14240. eval "$as_ac_Header=\$ac_header_preproc"
  14241. fi
  14242. ac_res=`eval echo '${'$as_ac_Header'}'`
  14243. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14244. echo "${ECHO_T}$ac_res" >&6; }
  14245. fi
  14246. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14247. cat >>confdefs.h <<_ACEOF
  14248. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14249. _ACEOF
  14250. fi
  14251. done
  14252. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14253. do
  14254. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14255. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14256. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14257. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14258. echo $ECHO_N "(cached) $ECHO_C" >&6
  14259. else
  14260. cat >conftest.$ac_ext <<_ACEOF
  14261. /* confdefs.h. */
  14262. _ACEOF
  14263. cat confdefs.h >>conftest.$ac_ext
  14264. cat >>conftest.$ac_ext <<_ACEOF
  14265. /* end confdefs.h. */
  14266. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14267. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14268. #define $ac_func innocuous_$ac_func
  14269. /* System header to define __stub macros and hopefully few prototypes,
  14270. which can conflict with char $ac_func (); below.
  14271. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14272. <limits.h> exists even on freestanding compilers. */
  14273. #ifdef __STDC__
  14274. # include <limits.h>
  14275. #else
  14276. # include <assert.h>
  14277. #endif
  14278. #undef $ac_func
  14279. /* Override any GCC internal prototype to avoid an error.
  14280. Use char because int might match the return type of a GCC
  14281. builtin and then its argument prototype would still apply. */
  14282. #ifdef __cplusplus
  14283. extern "C"
  14284. #endif
  14285. char $ac_func ();
  14286. /* The GNU C library defines this for functions which it implements
  14287. to always fail with ENOSYS. Some functions are actually named
  14288. something starting with __ and the normal name is an alias. */
  14289. #if defined __stub_$ac_func || defined __stub___$ac_func
  14290. choke me
  14291. #endif
  14292. int
  14293. main ()
  14294. {
  14295. return $ac_func ();
  14296. ;
  14297. return 0;
  14298. }
  14299. _ACEOF
  14300. rm -f conftest.$ac_objext conftest$ac_exeext
  14301. if { (ac_try="$ac_link"
  14302. case "(($ac_try" in
  14303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14304. *) ac_try_echo=$ac_try;;
  14305. esac
  14306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14307. (eval "$ac_link") 2>conftest.er1
  14308. ac_status=$?
  14309. grep -v '^ *+' conftest.er1 >conftest.err
  14310. rm -f conftest.er1
  14311. cat conftest.err >&5
  14312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14313. (exit $ac_status); } && {
  14314. test -z "$ac_cxx_werror_flag" ||
  14315. test ! -s conftest.err
  14316. } && test -s conftest$ac_exeext &&
  14317. $as_test_x conftest$ac_exeext; then
  14318. eval "$as_ac_var=yes"
  14319. else
  14320. echo "$as_me: failed program was:" >&5
  14321. sed 's/^/| /' conftest.$ac_ext >&5
  14322. eval "$as_ac_var=no"
  14323. fi
  14324. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14325. conftest$ac_exeext conftest.$ac_ext
  14326. fi
  14327. ac_res=`eval echo '${'$as_ac_var'}'`
  14328. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14329. echo "${ECHO_T}$ac_res" >&6; }
  14330. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14331. cat >>confdefs.h <<_ACEOF
  14332. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14333. _ACEOF
  14334. fi
  14335. done
  14336. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14337. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14338. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14339. echo $ECHO_N "(cached) $ECHO_C" >&6
  14340. else
  14341. cat >conftest.$ac_ext <<_ACEOF
  14342. /* confdefs.h. */
  14343. _ACEOF
  14344. cat confdefs.h >>conftest.$ac_ext
  14345. cat >>conftest.$ac_ext <<_ACEOF
  14346. /* end confdefs.h. */
  14347. #include <stdio.h>
  14348. int
  14349. main ()
  14350. {
  14351. #ifndef _snprintf
  14352. char *p = (char *) _snprintf;
  14353. #endif
  14354. ;
  14355. return 0;
  14356. }
  14357. _ACEOF
  14358. rm -f conftest.$ac_objext
  14359. if { (ac_try="$ac_compile"
  14360. case "(($ac_try" in
  14361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14362. *) ac_try_echo=$ac_try;;
  14363. esac
  14364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14365. (eval "$ac_compile") 2>conftest.er1
  14366. ac_status=$?
  14367. grep -v '^ *+' conftest.er1 >conftest.err
  14368. rm -f conftest.er1
  14369. cat conftest.err >&5
  14370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14371. (exit $ac_status); } && {
  14372. test -z "$ac_cxx_werror_flag" ||
  14373. test ! -s conftest.err
  14374. } && test -s conftest.$ac_objext; then
  14375. ac_cv_have_decl__snprintf=yes
  14376. else
  14377. echo "$as_me: failed program was:" >&5
  14378. sed 's/^/| /' conftest.$ac_ext >&5
  14379. ac_cv_have_decl__snprintf=no
  14380. fi
  14381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14382. fi
  14383. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14384. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14385. if test $ac_cv_have_decl__snprintf = yes; then
  14386. gt_value=1
  14387. else
  14388. gt_value=0
  14389. fi
  14390. cat >>confdefs.h <<_ACEOF
  14391. #define HAVE_DECL__SNPRINTF $gt_value
  14392. _ACEOF
  14393. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14394. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14395. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14396. echo $ECHO_N "(cached) $ECHO_C" >&6
  14397. else
  14398. cat >conftest.$ac_ext <<_ACEOF
  14399. /* confdefs.h. */
  14400. _ACEOF
  14401. cat confdefs.h >>conftest.$ac_ext
  14402. cat >>conftest.$ac_ext <<_ACEOF
  14403. /* end confdefs.h. */
  14404. #include <stdio.h>
  14405. int
  14406. main ()
  14407. {
  14408. #ifndef _snwprintf
  14409. char *p = (char *) _snwprintf;
  14410. #endif
  14411. ;
  14412. return 0;
  14413. }
  14414. _ACEOF
  14415. rm -f conftest.$ac_objext
  14416. if { (ac_try="$ac_compile"
  14417. case "(($ac_try" in
  14418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14419. *) ac_try_echo=$ac_try;;
  14420. esac
  14421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14422. (eval "$ac_compile") 2>conftest.er1
  14423. ac_status=$?
  14424. grep -v '^ *+' conftest.er1 >conftest.err
  14425. rm -f conftest.er1
  14426. cat conftest.err >&5
  14427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14428. (exit $ac_status); } && {
  14429. test -z "$ac_cxx_werror_flag" ||
  14430. test ! -s conftest.err
  14431. } && test -s conftest.$ac_objext; then
  14432. ac_cv_have_decl__snwprintf=yes
  14433. else
  14434. echo "$as_me: failed program was:" >&5
  14435. sed 's/^/| /' conftest.$ac_ext >&5
  14436. ac_cv_have_decl__snwprintf=no
  14437. fi
  14438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14439. fi
  14440. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14441. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14442. if test $ac_cv_have_decl__snwprintf = yes; then
  14443. gt_value=1
  14444. else
  14445. gt_value=0
  14446. fi
  14447. cat >>confdefs.h <<_ACEOF
  14448. #define HAVE_DECL__SNWPRINTF $gt_value
  14449. _ACEOF
  14450. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14451. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14452. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14453. echo $ECHO_N "(cached) $ECHO_C" >&6
  14454. else
  14455. cat >conftest.$ac_ext <<_ACEOF
  14456. /* confdefs.h. */
  14457. _ACEOF
  14458. cat confdefs.h >>conftest.$ac_ext
  14459. cat >>conftest.$ac_ext <<_ACEOF
  14460. /* end confdefs.h. */
  14461. #include <stdio.h>
  14462. int
  14463. main ()
  14464. {
  14465. #ifndef getc_unlocked
  14466. char *p = (char *) getc_unlocked;
  14467. #endif
  14468. ;
  14469. return 0;
  14470. }
  14471. _ACEOF
  14472. rm -f conftest.$ac_objext
  14473. if { (ac_try="$ac_compile"
  14474. case "(($ac_try" in
  14475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14476. *) ac_try_echo=$ac_try;;
  14477. esac
  14478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14479. (eval "$ac_compile") 2>conftest.er1
  14480. ac_status=$?
  14481. grep -v '^ *+' conftest.er1 >conftest.err
  14482. rm -f conftest.er1
  14483. cat conftest.err >&5
  14484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14485. (exit $ac_status); } && {
  14486. test -z "$ac_cxx_werror_flag" ||
  14487. test ! -s conftest.err
  14488. } && test -s conftest.$ac_objext; then
  14489. ac_cv_have_decl_getc_unlocked=yes
  14490. else
  14491. echo "$as_me: failed program was:" >&5
  14492. sed 's/^/| /' conftest.$ac_ext >&5
  14493. ac_cv_have_decl_getc_unlocked=no
  14494. fi
  14495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14496. fi
  14497. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14498. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14499. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14500. gt_value=1
  14501. else
  14502. gt_value=0
  14503. fi
  14504. cat >>confdefs.h <<_ACEOF
  14505. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14506. _ACEOF
  14507. case $gt_cv_func_printf_posix in
  14508. *yes) HAVE_POSIX_PRINTF=1 ;;
  14509. *) HAVE_POSIX_PRINTF=0 ;;
  14510. esac
  14511. if test "$ac_cv_func_asprintf" = yes; then
  14512. HAVE_ASPRINTF=1
  14513. else
  14514. HAVE_ASPRINTF=0
  14515. fi
  14516. if test "$ac_cv_func_snprintf" = yes; then
  14517. HAVE_SNPRINTF=1
  14518. else
  14519. HAVE_SNPRINTF=0
  14520. fi
  14521. if test "$ac_cv_func_wprintf" = yes; then
  14522. HAVE_WPRINTF=1
  14523. else
  14524. HAVE_WPRINTF=0
  14525. fi
  14526. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14527. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14528. if test "${am_cv_langinfo_codeset+set}" = set; then
  14529. echo $ECHO_N "(cached) $ECHO_C" >&6
  14530. else
  14531. cat >conftest.$ac_ext <<_ACEOF
  14532. /* confdefs.h. */
  14533. _ACEOF
  14534. cat confdefs.h >>conftest.$ac_ext
  14535. cat >>conftest.$ac_ext <<_ACEOF
  14536. /* end confdefs.h. */
  14537. #include <langinfo.h>
  14538. int
  14539. main ()
  14540. {
  14541. char* cs = nl_langinfo(CODESET); return !cs;
  14542. ;
  14543. return 0;
  14544. }
  14545. _ACEOF
  14546. rm -f conftest.$ac_objext conftest$ac_exeext
  14547. if { (ac_try="$ac_link"
  14548. case "(($ac_try" in
  14549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14550. *) ac_try_echo=$ac_try;;
  14551. esac
  14552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14553. (eval "$ac_link") 2>conftest.er1
  14554. ac_status=$?
  14555. grep -v '^ *+' conftest.er1 >conftest.err
  14556. rm -f conftest.er1
  14557. cat conftest.err >&5
  14558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14559. (exit $ac_status); } && {
  14560. test -z "$ac_cxx_werror_flag" ||
  14561. test ! -s conftest.err
  14562. } && test -s conftest$ac_exeext &&
  14563. $as_test_x conftest$ac_exeext; then
  14564. am_cv_langinfo_codeset=yes
  14565. else
  14566. echo "$as_me: failed program was:" >&5
  14567. sed 's/^/| /' conftest.$ac_ext >&5
  14568. am_cv_langinfo_codeset=no
  14569. fi
  14570. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14571. conftest$ac_exeext conftest.$ac_ext
  14572. fi
  14573. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14574. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14575. if test $am_cv_langinfo_codeset = yes; then
  14576. cat >>confdefs.h <<\_ACEOF
  14577. #define HAVE_LANGINFO_CODESET 1
  14578. _ACEOF
  14579. fi
  14580. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14581. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14582. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14583. echo $ECHO_N "(cached) $ECHO_C" >&6
  14584. else
  14585. cat >conftest.$ac_ext <<_ACEOF
  14586. /* confdefs.h. */
  14587. _ACEOF
  14588. cat confdefs.h >>conftest.$ac_ext
  14589. cat >>conftest.$ac_ext <<_ACEOF
  14590. /* end confdefs.h. */
  14591. #include <locale.h>
  14592. int
  14593. main ()
  14594. {
  14595. return LC_MESSAGES
  14596. ;
  14597. return 0;
  14598. }
  14599. _ACEOF
  14600. rm -f conftest.$ac_objext conftest$ac_exeext
  14601. if { (ac_try="$ac_link"
  14602. case "(($ac_try" in
  14603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14604. *) ac_try_echo=$ac_try;;
  14605. esac
  14606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14607. (eval "$ac_link") 2>conftest.er1
  14608. ac_status=$?
  14609. grep -v '^ *+' conftest.er1 >conftest.err
  14610. rm -f conftest.er1
  14611. cat conftest.err >&5
  14612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14613. (exit $ac_status); } && {
  14614. test -z "$ac_cxx_werror_flag" ||
  14615. test ! -s conftest.err
  14616. } && test -s conftest$ac_exeext &&
  14617. $as_test_x conftest$ac_exeext; then
  14618. gt_cv_val_LC_MESSAGES=yes
  14619. else
  14620. echo "$as_me: failed program was:" >&5
  14621. sed 's/^/| /' conftest.$ac_ext >&5
  14622. gt_cv_val_LC_MESSAGES=no
  14623. fi
  14624. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14625. conftest$ac_exeext conftest.$ac_ext
  14626. fi
  14627. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  14628. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  14629. if test $gt_cv_val_LC_MESSAGES = yes; then
  14630. cat >>confdefs.h <<\_ACEOF
  14631. #define HAVE_LC_MESSAGES 1
  14632. _ACEOF
  14633. fi
  14634. if test "$enable_shared" = yes; then
  14635. case "$host_os" in
  14636. mingw* | cygwin*) is_woe32dll=yes ;;
  14637. *) is_woe32dll=no ;;
  14638. esac
  14639. else
  14640. is_woe32dll=no
  14641. fi
  14642. WOE32DLL=$is_woe32dll
  14643. case "$host_os" in
  14644. mingw* | cygwin*) is_woe32=yes ;;
  14645. *) is_woe32=no ;;
  14646. esac
  14647. WOE32=$is_woe32
  14648. if test $WOE32 = yes; then
  14649. if test -n "$ac_tool_prefix"; then
  14650. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14651. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14652. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14653. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14654. if test "${ac_cv_prog_WINDRES+set}" = set; then
  14655. echo $ECHO_N "(cached) $ECHO_C" >&6
  14656. else
  14657. if test -n "$WINDRES"; then
  14658. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14659. else
  14660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14661. for as_dir in $PATH
  14662. do
  14663. IFS=$as_save_IFS
  14664. test -z "$as_dir" && as_dir=.
  14665. for ac_exec_ext in '' $ac_executable_extensions; do
  14666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14667. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14668. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14669. break 2
  14670. fi
  14671. done
  14672. done
  14673. IFS=$as_save_IFS
  14674. fi
  14675. fi
  14676. WINDRES=$ac_cv_prog_WINDRES
  14677. if test -n "$WINDRES"; then
  14678. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  14679. echo "${ECHO_T}$WINDRES" >&6; }
  14680. else
  14681. { echo "$as_me:$LINENO: result: no" >&5
  14682. echo "${ECHO_T}no" >&6; }
  14683. fi
  14684. fi
  14685. if test -z "$ac_cv_prog_WINDRES"; then
  14686. ac_ct_WINDRES=$WINDRES
  14687. # Extract the first word of "windres", so it can be a program name with args.
  14688. set dummy windres; ac_word=$2
  14689. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14690. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14691. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  14692. echo $ECHO_N "(cached) $ECHO_C" >&6
  14693. else
  14694. if test -n "$ac_ct_WINDRES"; then
  14695. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14696. else
  14697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14698. for as_dir in $PATH
  14699. do
  14700. IFS=$as_save_IFS
  14701. test -z "$as_dir" && as_dir=.
  14702. for ac_exec_ext in '' $ac_executable_extensions; do
  14703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14704. ac_cv_prog_ac_ct_WINDRES="windres"
  14705. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14706. break 2
  14707. fi
  14708. done
  14709. done
  14710. IFS=$as_save_IFS
  14711. fi
  14712. fi
  14713. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14714. if test -n "$ac_ct_WINDRES"; then
  14715. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  14716. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  14717. else
  14718. { echo "$as_me:$LINENO: result: no" >&5
  14719. echo "${ECHO_T}no" >&6; }
  14720. fi
  14721. if test "x$ac_ct_WINDRES" = x; then
  14722. WINDRES=""
  14723. else
  14724. case $cross_compiling:$ac_tool_warned in
  14725. yes:)
  14726. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14727. whose name does not start with the host triplet. If you think this
  14728. configuration is useful to you, please write to autoconf@gnu.org." >&5
  14729. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14730. whose name does not start with the host triplet. If you think this
  14731. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14732. ac_tool_warned=yes ;;
  14733. esac
  14734. WINDRES=$ac_ct_WINDRES
  14735. fi
  14736. else
  14737. WINDRES="$ac_cv_prog_WINDRES"
  14738. fi
  14739. fi
  14740. case "$host_os" in
  14741. hpux*) LTLIBC="" ;;
  14742. *) LTLIBC="-lc" ;;
  14743. esac
  14744. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14745. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14746. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14747. echo $ECHO_N "(cached) $ECHO_C" >&6
  14748. else
  14749. gt_save_LIBS="$LIBS"
  14750. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14751. cat >conftest.$ac_ext <<_ACEOF
  14752. /* confdefs.h. */
  14753. _ACEOF
  14754. cat confdefs.h >>conftest.$ac_ext
  14755. cat >>conftest.$ac_ext <<_ACEOF
  14756. /* end confdefs.h. */
  14757. #include <CoreFoundation/CFPreferences.h>
  14758. int
  14759. main ()
  14760. {
  14761. CFPreferencesCopyAppValue(NULL, NULL)
  14762. ;
  14763. return 0;
  14764. }
  14765. _ACEOF
  14766. rm -f conftest.$ac_objext conftest$ac_exeext
  14767. if { (ac_try="$ac_link"
  14768. case "(($ac_try" in
  14769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14770. *) ac_try_echo=$ac_try;;
  14771. esac
  14772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14773. (eval "$ac_link") 2>conftest.er1
  14774. ac_status=$?
  14775. grep -v '^ *+' conftest.er1 >conftest.err
  14776. rm -f conftest.er1
  14777. cat conftest.err >&5
  14778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14779. (exit $ac_status); } && {
  14780. test -z "$ac_cxx_werror_flag" ||
  14781. test ! -s conftest.err
  14782. } && test -s conftest$ac_exeext &&
  14783. $as_test_x conftest$ac_exeext; then
  14784. gt_cv_func_CFPreferencesCopyAppValue=yes
  14785. else
  14786. echo "$as_me: failed program was:" >&5
  14787. sed 's/^/| /' conftest.$ac_ext >&5
  14788. gt_cv_func_CFPreferencesCopyAppValue=no
  14789. fi
  14790. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14791. conftest$ac_exeext conftest.$ac_ext
  14792. LIBS="$gt_save_LIBS"
  14793. fi
  14794. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14795. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14796. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14797. cat >>confdefs.h <<\_ACEOF
  14798. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14799. _ACEOF
  14800. fi
  14801. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14802. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14803. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14804. echo $ECHO_N "(cached) $ECHO_C" >&6
  14805. else
  14806. gt_save_LIBS="$LIBS"
  14807. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14808. cat >conftest.$ac_ext <<_ACEOF
  14809. /* confdefs.h. */
  14810. _ACEOF
  14811. cat confdefs.h >>conftest.$ac_ext
  14812. cat >>conftest.$ac_ext <<_ACEOF
  14813. /* end confdefs.h. */
  14814. #include <CoreFoundation/CFLocale.h>
  14815. int
  14816. main ()
  14817. {
  14818. CFLocaleCopyCurrent();
  14819. ;
  14820. return 0;
  14821. }
  14822. _ACEOF
  14823. rm -f conftest.$ac_objext conftest$ac_exeext
  14824. if { (ac_try="$ac_link"
  14825. case "(($ac_try" in
  14826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14827. *) ac_try_echo=$ac_try;;
  14828. esac
  14829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14830. (eval "$ac_link") 2>conftest.er1
  14831. ac_status=$?
  14832. grep -v '^ *+' conftest.er1 >conftest.err
  14833. rm -f conftest.er1
  14834. cat conftest.err >&5
  14835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14836. (exit $ac_status); } && {
  14837. test -z "$ac_cxx_werror_flag" ||
  14838. test ! -s conftest.err
  14839. } && test -s conftest$ac_exeext &&
  14840. $as_test_x conftest$ac_exeext; then
  14841. gt_cv_func_CFLocaleCopyCurrent=yes
  14842. else
  14843. echo "$as_me: failed program was:" >&5
  14844. sed 's/^/| /' conftest.$ac_ext >&5
  14845. gt_cv_func_CFLocaleCopyCurrent=no
  14846. fi
  14847. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14848. conftest$ac_exeext conftest.$ac_ext
  14849. LIBS="$gt_save_LIBS"
  14850. fi
  14851. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14852. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14853. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14854. cat >>confdefs.h <<\_ACEOF
  14855. #define HAVE_CFLOCALECOPYCURRENT 1
  14856. _ACEOF
  14857. fi
  14858. INTL_MACOSX_LIBS=
  14859. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14860. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14861. fi
  14862. BUILD_INCLUDED_LIBINTL=no
  14863. USE_INCLUDED_LIBINTL=no
  14864. LIBINTL=
  14865. LTLIBINTL=
  14866. POSUB=
  14867. case " $gt_needs " in
  14868. *" need-formatstring-macros "*) gt_api_version=3 ;;
  14869. *" need-ngettext "*) gt_api_version=2 ;;
  14870. *) gt_api_version=1 ;;
  14871. esac
  14872. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  14873. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  14874. if test "$USE_NLS" = "yes"; then
  14875. gt_use_preinstalled_gnugettext=no
  14876. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  14877. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  14878. # Check whether --with-included-gettext was given.
  14879. if test "${with_included_gettext+set}" = set; then
  14880. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  14881. else
  14882. nls_cv_force_use_gnu_gettext=no
  14883. fi
  14884. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  14885. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  14886. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  14887. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  14888. if test $gt_api_version -ge 3; then
  14889. gt_revision_test_code='
  14890. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  14891. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  14892. #endif
  14893. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  14894. '
  14895. else
  14896. gt_revision_test_code=
  14897. fi
  14898. if test $gt_api_version -ge 2; then
  14899. gt_expression_test_code=' + * ngettext ("", "", 0)'
  14900. else
  14901. gt_expression_test_code=
  14902. fi
  14903. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  14904. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  14905. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  14906. echo $ECHO_N "(cached) $ECHO_C" >&6
  14907. else
  14908. cat >conftest.$ac_ext <<_ACEOF
  14909. /* confdefs.h. */
  14910. _ACEOF
  14911. cat confdefs.h >>conftest.$ac_ext
  14912. cat >>conftest.$ac_ext <<_ACEOF
  14913. /* end confdefs.h. */
  14914. #include <libintl.h>
  14915. $gt_revision_test_code
  14916. extern int _nl_msg_cat_cntr;
  14917. extern int *_nl_domain_bindings;
  14918. int
  14919. main ()
  14920. {
  14921. bindtextdomain ("", "");
  14922. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  14923. ;
  14924. return 0;
  14925. }
  14926. _ACEOF
  14927. rm -f conftest.$ac_objext conftest$ac_exeext
  14928. if { (ac_try="$ac_link"
  14929. case "(($ac_try" in
  14930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14931. *) ac_try_echo=$ac_try;;
  14932. esac
  14933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14934. (eval "$ac_link") 2>conftest.er1
  14935. ac_status=$?
  14936. grep -v '^ *+' conftest.er1 >conftest.err
  14937. rm -f conftest.er1
  14938. cat conftest.err >&5
  14939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14940. (exit $ac_status); } && {
  14941. test -z "$ac_cxx_werror_flag" ||
  14942. test ! -s conftest.err
  14943. } && test -s conftest$ac_exeext &&
  14944. $as_test_x conftest$ac_exeext; then
  14945. eval "$gt_func_gnugettext_libc=yes"
  14946. else
  14947. echo "$as_me: failed program was:" >&5
  14948. sed 's/^/| /' conftest.$ac_ext >&5
  14949. eval "$gt_func_gnugettext_libc=no"
  14950. fi
  14951. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14952. conftest$ac_exeext conftest.$ac_ext
  14953. fi
  14954. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  14955. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14956. echo "${ECHO_T}$ac_res" >&6; }
  14957. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  14958. use_additional=yes
  14959. acl_save_prefix="$prefix"
  14960. prefix="$acl_final_prefix"
  14961. acl_save_exec_prefix="$exec_prefix"
  14962. exec_prefix="$acl_final_exec_prefix"
  14963. eval additional_includedir=\"$includedir\"
  14964. eval additional_libdir=\"$libdir\"
  14965. exec_prefix="$acl_save_exec_prefix"
  14966. prefix="$acl_save_prefix"
  14967. # Check whether --with-libintl-prefix was given.
  14968. if test "${with_libintl_prefix+set}" = set; then
  14969. withval=$with_libintl_prefix;
  14970. if test "X$withval" = "Xno"; then
  14971. use_additional=no
  14972. else
  14973. if test "X$withval" = "X"; then
  14974. acl_save_prefix="$prefix"
  14975. prefix="$acl_final_prefix"
  14976. acl_save_exec_prefix="$exec_prefix"
  14977. exec_prefix="$acl_final_exec_prefix"
  14978. eval additional_includedir=\"$includedir\"
  14979. eval additional_libdir=\"$libdir\"
  14980. exec_prefix="$acl_save_exec_prefix"
  14981. prefix="$acl_save_prefix"
  14982. else
  14983. additional_includedir="$withval/include"
  14984. additional_libdir="$withval/$acl_libdirstem"
  14985. fi
  14986. fi
  14987. fi
  14988. LIBINTL=
  14989. LTLIBINTL=
  14990. INCINTL=
  14991. LIBINTL_PREFIX=
  14992. rpathdirs=
  14993. ltrpathdirs=
  14994. names_already_handled=
  14995. names_next_round='intl '
  14996. while test -n "$names_next_round"; do
  14997. names_this_round="$names_next_round"
  14998. names_next_round=
  14999. for name in $names_this_round; do
  15000. already_handled=
  15001. for n in $names_already_handled; do
  15002. if test "$n" = "$name"; then
  15003. already_handled=yes
  15004. break
  15005. fi
  15006. done
  15007. if test -z "$already_handled"; then
  15008. names_already_handled="$names_already_handled $name"
  15009. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15010. eval value=\"\$HAVE_LIB$uppername\"
  15011. if test -n "$value"; then
  15012. if test "$value" = yes; then
  15013. eval value=\"\$LIB$uppername\"
  15014. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15015. eval value=\"\$LTLIB$uppername\"
  15016. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15017. else
  15018. :
  15019. fi
  15020. else
  15021. found_dir=
  15022. found_la=
  15023. found_so=
  15024. found_a=
  15025. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15026. if test -n "$acl_shlibext"; then
  15027. shrext=".$acl_shlibext" # typically: shrext=.so
  15028. else
  15029. shrext=
  15030. fi
  15031. if test $use_additional = yes; then
  15032. dir="$additional_libdir"
  15033. if test -n "$acl_shlibext"; then
  15034. if test -f "$dir/$libname$shrext"; then
  15035. found_dir="$dir"
  15036. found_so="$dir/$libname$shrext"
  15037. else
  15038. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15039. ver=`(cd "$dir" && \
  15040. for f in "$libname$shrext".*; do echo "$f"; done \
  15041. | sed -e "s,^$libname$shrext\\\\.,," \
  15042. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15043. | sed 1q ) 2>/dev/null`
  15044. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15045. found_dir="$dir"
  15046. found_so="$dir/$libname$shrext.$ver"
  15047. fi
  15048. else
  15049. eval library_names=\"$acl_library_names_spec\"
  15050. for f in $library_names; do
  15051. if test -f "$dir/$f"; then
  15052. found_dir="$dir"
  15053. found_so="$dir/$f"
  15054. break
  15055. fi
  15056. done
  15057. fi
  15058. fi
  15059. fi
  15060. if test "X$found_dir" = "X"; then
  15061. if test -f "$dir/$libname.$acl_libext"; then
  15062. found_dir="$dir"
  15063. found_a="$dir/$libname.$acl_libext"
  15064. fi
  15065. fi
  15066. if test "X$found_dir" != "X"; then
  15067. if test -f "$dir/$libname.la"; then
  15068. found_la="$dir/$libname.la"
  15069. fi
  15070. fi
  15071. fi
  15072. if test "X$found_dir" = "X"; then
  15073. for x in $LDFLAGS $LTLIBINTL; do
  15074. acl_save_prefix="$prefix"
  15075. prefix="$acl_final_prefix"
  15076. acl_save_exec_prefix="$exec_prefix"
  15077. exec_prefix="$acl_final_exec_prefix"
  15078. eval x=\"$x\"
  15079. exec_prefix="$acl_save_exec_prefix"
  15080. prefix="$acl_save_prefix"
  15081. case "$x" in
  15082. -L*)
  15083. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15084. if test -n "$acl_shlibext"; then
  15085. if test -f "$dir/$libname$shrext"; then
  15086. found_dir="$dir"
  15087. found_so="$dir/$libname$shrext"
  15088. else
  15089. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15090. ver=`(cd "$dir" && \
  15091. for f in "$libname$shrext".*; do echo "$f"; done \
  15092. | sed -e "s,^$libname$shrext\\\\.,," \
  15093. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15094. | sed 1q ) 2>/dev/null`
  15095. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15096. found_dir="$dir"
  15097. found_so="$dir/$libname$shrext.$ver"
  15098. fi
  15099. else
  15100. eval library_names=\"$acl_library_names_spec\"
  15101. for f in $library_names; do
  15102. if test -f "$dir/$f"; then
  15103. found_dir="$dir"
  15104. found_so="$dir/$f"
  15105. break
  15106. fi
  15107. done
  15108. fi
  15109. fi
  15110. fi
  15111. if test "X$found_dir" = "X"; then
  15112. if test -f "$dir/$libname.$acl_libext"; then
  15113. found_dir="$dir"
  15114. found_a="$dir/$libname.$acl_libext"
  15115. fi
  15116. fi
  15117. if test "X$found_dir" != "X"; then
  15118. if test -f "$dir/$libname.la"; then
  15119. found_la="$dir/$libname.la"
  15120. fi
  15121. fi
  15122. ;;
  15123. esac
  15124. if test "X$found_dir" != "X"; then
  15125. break
  15126. fi
  15127. done
  15128. fi
  15129. if test "X$found_dir" != "X"; then
  15130. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15131. if test "X$found_so" != "X"; then
  15132. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15133. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15134. else
  15135. haveit=
  15136. for x in $ltrpathdirs; do
  15137. if test "X$x" = "X$found_dir"; then
  15138. haveit=yes
  15139. break
  15140. fi
  15141. done
  15142. if test -z "$haveit"; then
  15143. ltrpathdirs="$ltrpathdirs $found_dir"
  15144. fi
  15145. if test "$acl_hardcode_direct" = yes; then
  15146. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15147. else
  15148. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15149. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15150. haveit=
  15151. for x in $rpathdirs; do
  15152. if test "X$x" = "X$found_dir"; then
  15153. haveit=yes
  15154. break
  15155. fi
  15156. done
  15157. if test -z "$haveit"; then
  15158. rpathdirs="$rpathdirs $found_dir"
  15159. fi
  15160. else
  15161. haveit=
  15162. for x in $LDFLAGS $LIBINTL; do
  15163. acl_save_prefix="$prefix"
  15164. prefix="$acl_final_prefix"
  15165. acl_save_exec_prefix="$exec_prefix"
  15166. exec_prefix="$acl_final_exec_prefix"
  15167. eval x=\"$x\"
  15168. exec_prefix="$acl_save_exec_prefix"
  15169. prefix="$acl_save_prefix"
  15170. if test "X$x" = "X-L$found_dir"; then
  15171. haveit=yes
  15172. break
  15173. fi
  15174. done
  15175. if test -z "$haveit"; then
  15176. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15177. fi
  15178. if test "$acl_hardcode_minus_L" != no; then
  15179. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15180. else
  15181. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15182. fi
  15183. fi
  15184. fi
  15185. fi
  15186. else
  15187. if test "X$found_a" != "X"; then
  15188. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15189. else
  15190. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15191. fi
  15192. fi
  15193. additional_includedir=
  15194. case "$found_dir" in
  15195. */$acl_libdirstem | */$acl_libdirstem/)
  15196. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15197. LIBINTL_PREFIX="$basedir"
  15198. additional_includedir="$basedir/include"
  15199. ;;
  15200. esac
  15201. if test "X$additional_includedir" != "X"; then
  15202. if test "X$additional_includedir" != "X/usr/include"; then
  15203. haveit=
  15204. if test "X$additional_includedir" = "X/usr/local/include"; then
  15205. if test -n "$GCC"; then
  15206. case $host_os in
  15207. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15208. esac
  15209. fi
  15210. fi
  15211. if test -z "$haveit"; then
  15212. for x in $CPPFLAGS $INCINTL; do
  15213. acl_save_prefix="$prefix"
  15214. prefix="$acl_final_prefix"
  15215. acl_save_exec_prefix="$exec_prefix"
  15216. exec_prefix="$acl_final_exec_prefix"
  15217. eval x=\"$x\"
  15218. exec_prefix="$acl_save_exec_prefix"
  15219. prefix="$acl_save_prefix"
  15220. if test "X$x" = "X-I$additional_includedir"; then
  15221. haveit=yes
  15222. break
  15223. fi
  15224. done
  15225. if test -z "$haveit"; then
  15226. if test -d "$additional_includedir"; then
  15227. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15228. fi
  15229. fi
  15230. fi
  15231. fi
  15232. fi
  15233. if test -n "$found_la"; then
  15234. save_libdir="$libdir"
  15235. case "$found_la" in
  15236. */* | *\\*) . "$found_la" ;;
  15237. *) . "./$found_la" ;;
  15238. esac
  15239. libdir="$save_libdir"
  15240. for dep in $dependency_libs; do
  15241. case "$dep" in
  15242. -L*)
  15243. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15244. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15245. haveit=
  15246. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15247. if test -n "$GCC"; then
  15248. case $host_os in
  15249. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15250. esac
  15251. fi
  15252. fi
  15253. if test -z "$haveit"; then
  15254. haveit=
  15255. for x in $LDFLAGS $LIBINTL; do
  15256. acl_save_prefix="$prefix"
  15257. prefix="$acl_final_prefix"
  15258. acl_save_exec_prefix="$exec_prefix"
  15259. exec_prefix="$acl_final_exec_prefix"
  15260. eval x=\"$x\"
  15261. exec_prefix="$acl_save_exec_prefix"
  15262. prefix="$acl_save_prefix"
  15263. if test "X$x" = "X-L$additional_libdir"; then
  15264. haveit=yes
  15265. break
  15266. fi
  15267. done
  15268. if test -z "$haveit"; then
  15269. if test -d "$additional_libdir"; then
  15270. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15271. fi
  15272. fi
  15273. haveit=
  15274. for x in $LDFLAGS $LTLIBINTL; do
  15275. acl_save_prefix="$prefix"
  15276. prefix="$acl_final_prefix"
  15277. acl_save_exec_prefix="$exec_prefix"
  15278. exec_prefix="$acl_final_exec_prefix"
  15279. eval x=\"$x\"
  15280. exec_prefix="$acl_save_exec_prefix"
  15281. prefix="$acl_save_prefix"
  15282. if test "X$x" = "X-L$additional_libdir"; then
  15283. haveit=yes
  15284. break
  15285. fi
  15286. done
  15287. if test -z "$haveit"; then
  15288. if test -d "$additional_libdir"; then
  15289. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15290. fi
  15291. fi
  15292. fi
  15293. fi
  15294. ;;
  15295. -R*)
  15296. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15297. if test "$enable_rpath" != no; then
  15298. haveit=
  15299. for x in $rpathdirs; do
  15300. if test "X$x" = "X$dir"; then
  15301. haveit=yes
  15302. break
  15303. fi
  15304. done
  15305. if test -z "$haveit"; then
  15306. rpathdirs="$rpathdirs $dir"
  15307. fi
  15308. haveit=
  15309. for x in $ltrpathdirs; do
  15310. if test "X$x" = "X$dir"; then
  15311. haveit=yes
  15312. break
  15313. fi
  15314. done
  15315. if test -z "$haveit"; then
  15316. ltrpathdirs="$ltrpathdirs $dir"
  15317. fi
  15318. fi
  15319. ;;
  15320. -l*)
  15321. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15322. ;;
  15323. *.la)
  15324. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15325. ;;
  15326. *)
  15327. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15328. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15329. ;;
  15330. esac
  15331. done
  15332. fi
  15333. else
  15334. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15335. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15336. fi
  15337. fi
  15338. fi
  15339. done
  15340. done
  15341. if test "X$rpathdirs" != "X"; then
  15342. if test -n "$acl_hardcode_libdir_separator"; then
  15343. alldirs=
  15344. for found_dir in $rpathdirs; do
  15345. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15346. done
  15347. acl_save_libdir="$libdir"
  15348. libdir="$alldirs"
  15349. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15350. libdir="$acl_save_libdir"
  15351. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15352. else
  15353. for found_dir in $rpathdirs; do
  15354. acl_save_libdir="$libdir"
  15355. libdir="$found_dir"
  15356. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15357. libdir="$acl_save_libdir"
  15358. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15359. done
  15360. fi
  15361. fi
  15362. if test "X$ltrpathdirs" != "X"; then
  15363. for found_dir in $ltrpathdirs; do
  15364. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15365. done
  15366. fi
  15367. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15368. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15369. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15370. echo $ECHO_N "(cached) $ECHO_C" >&6
  15371. else
  15372. gt_save_CPPFLAGS="$CPPFLAGS"
  15373. CPPFLAGS="$CPPFLAGS $INCINTL"
  15374. gt_save_LIBS="$LIBS"
  15375. LIBS="$LIBS $LIBINTL"
  15376. cat >conftest.$ac_ext <<_ACEOF
  15377. /* confdefs.h. */
  15378. _ACEOF
  15379. cat confdefs.h >>conftest.$ac_ext
  15380. cat >>conftest.$ac_ext <<_ACEOF
  15381. /* end confdefs.h. */
  15382. #include <libintl.h>
  15383. $gt_revision_test_code
  15384. extern int _nl_msg_cat_cntr;
  15385. extern
  15386. #ifdef __cplusplus
  15387. "C"
  15388. #endif
  15389. const char *_nl_expand_alias (const char *);
  15390. int
  15391. main ()
  15392. {
  15393. bindtextdomain ("", "");
  15394. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15395. ;
  15396. return 0;
  15397. }
  15398. _ACEOF
  15399. rm -f conftest.$ac_objext conftest$ac_exeext
  15400. if { (ac_try="$ac_link"
  15401. case "(($ac_try" in
  15402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15403. *) ac_try_echo=$ac_try;;
  15404. esac
  15405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15406. (eval "$ac_link") 2>conftest.er1
  15407. ac_status=$?
  15408. grep -v '^ *+' conftest.er1 >conftest.err
  15409. rm -f conftest.er1
  15410. cat conftest.err >&5
  15411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15412. (exit $ac_status); } && {
  15413. test -z "$ac_cxx_werror_flag" ||
  15414. test ! -s conftest.err
  15415. } && test -s conftest$ac_exeext &&
  15416. $as_test_x conftest$ac_exeext; then
  15417. eval "$gt_func_gnugettext_libintl=yes"
  15418. else
  15419. echo "$as_me: failed program was:" >&5
  15420. sed 's/^/| /' conftest.$ac_ext >&5
  15421. eval "$gt_func_gnugettext_libintl=no"
  15422. fi
  15423. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15424. conftest$ac_exeext conftest.$ac_ext
  15425. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15426. LIBS="$LIBS $LIBICONV"
  15427. cat >conftest.$ac_ext <<_ACEOF
  15428. /* confdefs.h. */
  15429. _ACEOF
  15430. cat confdefs.h >>conftest.$ac_ext
  15431. cat >>conftest.$ac_ext <<_ACEOF
  15432. /* end confdefs.h. */
  15433. #include <libintl.h>
  15434. $gt_revision_test_code
  15435. extern int _nl_msg_cat_cntr;
  15436. extern
  15437. #ifdef __cplusplus
  15438. "C"
  15439. #endif
  15440. const char *_nl_expand_alias (const char *);
  15441. int
  15442. main ()
  15443. {
  15444. bindtextdomain ("", "");
  15445. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15446. ;
  15447. return 0;
  15448. }
  15449. _ACEOF
  15450. rm -f conftest.$ac_objext conftest$ac_exeext
  15451. if { (ac_try="$ac_link"
  15452. case "(($ac_try" in
  15453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15454. *) ac_try_echo=$ac_try;;
  15455. esac
  15456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15457. (eval "$ac_link") 2>conftest.er1
  15458. ac_status=$?
  15459. grep -v '^ *+' conftest.er1 >conftest.err
  15460. rm -f conftest.er1
  15461. cat conftest.err >&5
  15462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15463. (exit $ac_status); } && {
  15464. test -z "$ac_cxx_werror_flag" ||
  15465. test ! -s conftest.err
  15466. } && test -s conftest$ac_exeext &&
  15467. $as_test_x conftest$ac_exeext; then
  15468. LIBINTL="$LIBINTL $LIBICONV"
  15469. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15470. eval "$gt_func_gnugettext_libintl=yes"
  15471. else
  15472. echo "$as_me: failed program was:" >&5
  15473. sed 's/^/| /' conftest.$ac_ext >&5
  15474. fi
  15475. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15476. conftest$ac_exeext conftest.$ac_ext
  15477. fi
  15478. CPPFLAGS="$gt_save_CPPFLAGS"
  15479. LIBS="$gt_save_LIBS"
  15480. fi
  15481. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15482. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15483. echo "${ECHO_T}$ac_res" >&6; }
  15484. fi
  15485. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15486. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15487. && test "$PACKAGE" != gettext-runtime \
  15488. && test "$PACKAGE" != gettext-tools; }; then
  15489. gt_use_preinstalled_gnugettext=yes
  15490. else
  15491. LIBINTL=
  15492. LTLIBINTL=
  15493. INCINTL=
  15494. fi
  15495. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15496. nls_cv_use_gnu_gettext=yes
  15497. fi
  15498. fi
  15499. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15500. BUILD_INCLUDED_LIBINTL=yes
  15501. USE_INCLUDED_LIBINTL=yes
  15502. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15503. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15504. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15505. fi
  15506. CATOBJEXT=
  15507. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15508. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15509. CATOBJEXT=.gmo
  15510. fi
  15511. if test -n "$INTL_MACOSX_LIBS"; then
  15512. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15513. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15514. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15515. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15516. fi
  15517. fi
  15518. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15519. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15520. cat >>confdefs.h <<\_ACEOF
  15521. #define ENABLE_NLS 1
  15522. _ACEOF
  15523. else
  15524. USE_NLS=no
  15525. fi
  15526. fi
  15527. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15528. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15529. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15530. echo "${ECHO_T}$USE_NLS" >&6; }
  15531. if test "$USE_NLS" = "yes"; then
  15532. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15533. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15534. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15535. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15536. gt_source="external libintl"
  15537. else
  15538. gt_source="libc"
  15539. fi
  15540. else
  15541. gt_source="included intl directory"
  15542. fi
  15543. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15544. echo "${ECHO_T}$gt_source" >&6; }
  15545. fi
  15546. if test "$USE_NLS" = "yes"; then
  15547. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15548. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15549. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15550. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15551. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15552. echo "${ECHO_T}$LIBINTL" >&6; }
  15553. for element in $INCINTL; do
  15554. haveit=
  15555. for x in $CPPFLAGS; do
  15556. acl_save_prefix="$prefix"
  15557. prefix="$acl_final_prefix"
  15558. acl_save_exec_prefix="$exec_prefix"
  15559. exec_prefix="$acl_final_exec_prefix"
  15560. eval x=\"$x\"
  15561. exec_prefix="$acl_save_exec_prefix"
  15562. prefix="$acl_save_prefix"
  15563. if test "X$x" = "X$element"; then
  15564. haveit=yes
  15565. break
  15566. fi
  15567. done
  15568. if test -z "$haveit"; then
  15569. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15570. fi
  15571. done
  15572. fi
  15573. cat >>confdefs.h <<\_ACEOF
  15574. #define HAVE_GETTEXT 1
  15575. _ACEOF
  15576. cat >>confdefs.h <<\_ACEOF
  15577. #define HAVE_DCGETTEXT 1
  15578. _ACEOF
  15579. fi
  15580. POSUB=po
  15581. fi
  15582. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15583. BUILD_INCLUDED_LIBINTL=yes
  15584. fi
  15585. nls_cv_header_intl=
  15586. nls_cv_header_libgt=
  15587. DATADIRNAME=share
  15588. INSTOBJEXT=.mo
  15589. GENCAT=gencat
  15590. INTLOBJS=
  15591. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15592. INTLOBJS="\$(GETTOBJS)"
  15593. fi
  15594. INTL_LIBTOOL_SUFFIX_PREFIX=
  15595. INTLLIBS="$LIBINTL"
  15596. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15597. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15598. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15599. echo $ECHO_N "(cached) $ECHO_C" >&6
  15600. else
  15601. cat >conftest.$ac_ext <<_ACEOF
  15602. /* confdefs.h. */
  15603. _ACEOF
  15604. cat confdefs.h >>conftest.$ac_ext
  15605. cat >>conftest.$ac_ext <<_ACEOF
  15606. /* end confdefs.h. */
  15607. #include <error.h>
  15608. int
  15609. main ()
  15610. {
  15611. error_at_line (0, 0, "", 0, "an error occurred");
  15612. ;
  15613. return 0;
  15614. }
  15615. _ACEOF
  15616. rm -f conftest.$ac_objext conftest$ac_exeext
  15617. if { (ac_try="$ac_link"
  15618. case "(($ac_try" in
  15619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15620. *) ac_try_echo=$ac_try;;
  15621. esac
  15622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15623. (eval "$ac_link") 2>conftest.er1
  15624. ac_status=$?
  15625. grep -v '^ *+' conftest.er1 >conftest.err
  15626. rm -f conftest.er1
  15627. cat conftest.err >&5
  15628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15629. (exit $ac_status); } && {
  15630. test -z "$ac_cxx_werror_flag" ||
  15631. test ! -s conftest.err
  15632. } && test -s conftest$ac_exeext &&
  15633. $as_test_x conftest$ac_exeext; then
  15634. ac_cv_lib_error_at_line=yes
  15635. else
  15636. echo "$as_me: failed program was:" >&5
  15637. sed 's/^/| /' conftest.$ac_ext >&5
  15638. ac_cv_lib_error_at_line=no
  15639. fi
  15640. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15641. conftest$ac_exeext conftest.$ac_ext
  15642. fi
  15643. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15644. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  15645. if test $ac_cv_lib_error_at_line = no; then
  15646. case " $LIBOBJS " in
  15647. *" error.$ac_objext "* ) ;;
  15648. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15649. ;;
  15650. esac
  15651. fi
  15652. if test $ac_cv_c_compiler_gnu = yes; then
  15653. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  15654. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  15655. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  15656. echo $ECHO_N "(cached) $ECHO_C" >&6
  15657. else
  15658. ac_pattern="Autoconf.*'x'"
  15659. cat >conftest.$ac_ext <<_ACEOF
  15660. /* confdefs.h. */
  15661. _ACEOF
  15662. cat confdefs.h >>conftest.$ac_ext
  15663. cat >>conftest.$ac_ext <<_ACEOF
  15664. /* end confdefs.h. */
  15665. #include <sgtty.h>
  15666. Autoconf TIOCGETP
  15667. _ACEOF
  15668. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15669. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15670. ac_cv_prog_gcc_traditional=yes
  15671. else
  15672. ac_cv_prog_gcc_traditional=no
  15673. fi
  15674. rm -f conftest*
  15675. if test $ac_cv_prog_gcc_traditional = no; then
  15676. cat >conftest.$ac_ext <<_ACEOF
  15677. /* confdefs.h. */
  15678. _ACEOF
  15679. cat confdefs.h >>conftest.$ac_ext
  15680. cat >>conftest.$ac_ext <<_ACEOF
  15681. /* end confdefs.h. */
  15682. #include <termio.h>
  15683. Autoconf TCGETA
  15684. _ACEOF
  15685. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15686. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15687. ac_cv_prog_gcc_traditional=yes
  15688. fi
  15689. rm -f conftest*
  15690. fi
  15691. fi
  15692. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  15693. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  15694. if test $ac_cv_prog_gcc_traditional = yes; then
  15695. CC="$CC -traditional"
  15696. fi
  15697. fi
  15698. case "$target" in
  15699. *mingw*)
  15700. ;;
  15701. *)
  15702. for ac_header in stdlib.h
  15703. do
  15704. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15705. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15706. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15707. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15708. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15709. echo $ECHO_N "(cached) $ECHO_C" >&6
  15710. fi
  15711. ac_res=`eval echo '${'$as_ac_Header'}'`
  15712. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15713. echo "${ECHO_T}$ac_res" >&6; }
  15714. else
  15715. # Is the header compilable?
  15716. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15717. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15718. cat >conftest.$ac_ext <<_ACEOF
  15719. /* confdefs.h. */
  15720. _ACEOF
  15721. cat confdefs.h >>conftest.$ac_ext
  15722. cat >>conftest.$ac_ext <<_ACEOF
  15723. /* end confdefs.h. */
  15724. $ac_includes_default
  15725. #include <$ac_header>
  15726. _ACEOF
  15727. rm -f conftest.$ac_objext
  15728. if { (ac_try="$ac_compile"
  15729. case "(($ac_try" in
  15730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15731. *) ac_try_echo=$ac_try;;
  15732. esac
  15733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15734. (eval "$ac_compile") 2>conftest.er1
  15735. ac_status=$?
  15736. grep -v '^ *+' conftest.er1 >conftest.err
  15737. rm -f conftest.er1
  15738. cat conftest.err >&5
  15739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15740. (exit $ac_status); } && {
  15741. test -z "$ac_cxx_werror_flag" ||
  15742. test ! -s conftest.err
  15743. } && test -s conftest.$ac_objext; then
  15744. ac_header_compiler=yes
  15745. else
  15746. echo "$as_me: failed program was:" >&5
  15747. sed 's/^/| /' conftest.$ac_ext >&5
  15748. ac_header_compiler=no
  15749. fi
  15750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15751. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15752. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15753. # Is the header present?
  15754. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15755. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15756. cat >conftest.$ac_ext <<_ACEOF
  15757. /* confdefs.h. */
  15758. _ACEOF
  15759. cat confdefs.h >>conftest.$ac_ext
  15760. cat >>conftest.$ac_ext <<_ACEOF
  15761. /* end confdefs.h. */
  15762. #include <$ac_header>
  15763. _ACEOF
  15764. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15765. case "(($ac_try" in
  15766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15767. *) ac_try_echo=$ac_try;;
  15768. esac
  15769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15770. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15771. ac_status=$?
  15772. grep -v '^ *+' conftest.er1 >conftest.err
  15773. rm -f conftest.er1
  15774. cat conftest.err >&5
  15775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15776. (exit $ac_status); } >/dev/null && {
  15777. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15778. test ! -s conftest.err
  15779. }; then
  15780. ac_header_preproc=yes
  15781. else
  15782. echo "$as_me: failed program was:" >&5
  15783. sed 's/^/| /' conftest.$ac_ext >&5
  15784. ac_header_preproc=no
  15785. fi
  15786. rm -f conftest.err conftest.$ac_ext
  15787. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15788. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15789. # So? What about this header?
  15790. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15791. yes:no: )
  15792. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15793. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15794. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15795. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15796. ac_header_preproc=yes
  15797. ;;
  15798. no:yes:* )
  15799. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15800. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15801. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15802. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15803. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15804. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15805. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15806. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15807. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15808. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15809. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15810. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15811. ( cat <<\_ASBOX
  15812. ## ----------------------------------------------- ##
  15813. ## Report this to t-tujikawa@users.sourceforge.net ##
  15814. ## ----------------------------------------------- ##
  15815. _ASBOX
  15816. ) | sed "s/^/$as_me: WARNING: /" >&2
  15817. ;;
  15818. esac
  15819. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15820. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15821. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15822. echo $ECHO_N "(cached) $ECHO_C" >&6
  15823. else
  15824. eval "$as_ac_Header=\$ac_header_preproc"
  15825. fi
  15826. ac_res=`eval echo '${'$as_ac_Header'}'`
  15827. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15828. echo "${ECHO_T}$ac_res" >&6; }
  15829. fi
  15830. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15831. cat >>confdefs.h <<_ACEOF
  15832. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15833. _ACEOF
  15834. fi
  15835. done
  15836. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  15837. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  15838. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  15839. echo $ECHO_N "(cached) $ECHO_C" >&6
  15840. else
  15841. if test "$cross_compiling" = yes; then
  15842. ac_cv_func_malloc_0_nonnull=no
  15843. else
  15844. cat >conftest.$ac_ext <<_ACEOF
  15845. /* confdefs.h. */
  15846. _ACEOF
  15847. cat confdefs.h >>conftest.$ac_ext
  15848. cat >>conftest.$ac_ext <<_ACEOF
  15849. /* end confdefs.h. */
  15850. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15851. # include <stdlib.h>
  15852. #else
  15853. char *malloc ();
  15854. #endif
  15855. int
  15856. main ()
  15857. {
  15858. return ! malloc (0);
  15859. ;
  15860. return 0;
  15861. }
  15862. _ACEOF
  15863. rm -f conftest$ac_exeext
  15864. if { (ac_try="$ac_link"
  15865. case "(($ac_try" in
  15866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15867. *) ac_try_echo=$ac_try;;
  15868. esac
  15869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15870. (eval "$ac_link") 2>&5
  15871. ac_status=$?
  15872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15873. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15874. { (case "(($ac_try" in
  15875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15876. *) ac_try_echo=$ac_try;;
  15877. esac
  15878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15879. (eval "$ac_try") 2>&5
  15880. ac_status=$?
  15881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15882. (exit $ac_status); }; }; then
  15883. ac_cv_func_malloc_0_nonnull=yes
  15884. else
  15885. echo "$as_me: program exited with status $ac_status" >&5
  15886. echo "$as_me: failed program was:" >&5
  15887. sed 's/^/| /' conftest.$ac_ext >&5
  15888. ( exit $ac_status )
  15889. ac_cv_func_malloc_0_nonnull=no
  15890. fi
  15891. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15892. fi
  15893. fi
  15894. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  15895. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  15896. if test $ac_cv_func_malloc_0_nonnull = yes; then
  15897. cat >>confdefs.h <<\_ACEOF
  15898. #define HAVE_MALLOC 1
  15899. _ACEOF
  15900. else
  15901. cat >>confdefs.h <<\_ACEOF
  15902. #define HAVE_MALLOC 0
  15903. _ACEOF
  15904. case " $LIBOBJS " in
  15905. *" malloc.$ac_objext "* ) ;;
  15906. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  15907. ;;
  15908. esac
  15909. cat >>confdefs.h <<\_ACEOF
  15910. #define malloc rpl_malloc
  15911. _ACEOF
  15912. fi
  15913. for ac_header in stdlib.h
  15914. do
  15915. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15916. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15917. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15918. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15919. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15920. echo $ECHO_N "(cached) $ECHO_C" >&6
  15921. fi
  15922. ac_res=`eval echo '${'$as_ac_Header'}'`
  15923. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15924. echo "${ECHO_T}$ac_res" >&6; }
  15925. else
  15926. # Is the header compilable?
  15927. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15928. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15929. cat >conftest.$ac_ext <<_ACEOF
  15930. /* confdefs.h. */
  15931. _ACEOF
  15932. cat confdefs.h >>conftest.$ac_ext
  15933. cat >>conftest.$ac_ext <<_ACEOF
  15934. /* end confdefs.h. */
  15935. $ac_includes_default
  15936. #include <$ac_header>
  15937. _ACEOF
  15938. rm -f conftest.$ac_objext
  15939. if { (ac_try="$ac_compile"
  15940. case "(($ac_try" in
  15941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15942. *) ac_try_echo=$ac_try;;
  15943. esac
  15944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15945. (eval "$ac_compile") 2>conftest.er1
  15946. ac_status=$?
  15947. grep -v '^ *+' conftest.er1 >conftest.err
  15948. rm -f conftest.er1
  15949. cat conftest.err >&5
  15950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15951. (exit $ac_status); } && {
  15952. test -z "$ac_cxx_werror_flag" ||
  15953. test ! -s conftest.err
  15954. } && test -s conftest.$ac_objext; then
  15955. ac_header_compiler=yes
  15956. else
  15957. echo "$as_me: failed program was:" >&5
  15958. sed 's/^/| /' conftest.$ac_ext >&5
  15959. ac_header_compiler=no
  15960. fi
  15961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15962. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15963. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15964. # Is the header present?
  15965. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15966. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15967. cat >conftest.$ac_ext <<_ACEOF
  15968. /* confdefs.h. */
  15969. _ACEOF
  15970. cat confdefs.h >>conftest.$ac_ext
  15971. cat >>conftest.$ac_ext <<_ACEOF
  15972. /* end confdefs.h. */
  15973. #include <$ac_header>
  15974. _ACEOF
  15975. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15976. case "(($ac_try" in
  15977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15978. *) ac_try_echo=$ac_try;;
  15979. esac
  15980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15981. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15982. ac_status=$?
  15983. grep -v '^ *+' conftest.er1 >conftest.err
  15984. rm -f conftest.er1
  15985. cat conftest.err >&5
  15986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15987. (exit $ac_status); } >/dev/null && {
  15988. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15989. test ! -s conftest.err
  15990. }; then
  15991. ac_header_preproc=yes
  15992. else
  15993. echo "$as_me: failed program was:" >&5
  15994. sed 's/^/| /' conftest.$ac_ext >&5
  15995. ac_header_preproc=no
  15996. fi
  15997. rm -f conftest.err conftest.$ac_ext
  15998. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15999. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16000. # So? What about this header?
  16001. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16002. yes:no: )
  16003. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16004. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16005. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16006. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16007. ac_header_preproc=yes
  16008. ;;
  16009. no:yes:* )
  16010. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16011. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16012. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16013. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16014. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16015. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16016. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16017. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16018. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16019. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16020. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16021. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16022. ( cat <<\_ASBOX
  16023. ## ----------------------------------------------- ##
  16024. ## Report this to t-tujikawa@users.sourceforge.net ##
  16025. ## ----------------------------------------------- ##
  16026. _ASBOX
  16027. ) | sed "s/^/$as_me: WARNING: /" >&2
  16028. ;;
  16029. esac
  16030. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16031. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16032. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16033. echo $ECHO_N "(cached) $ECHO_C" >&6
  16034. else
  16035. eval "$as_ac_Header=\$ac_header_preproc"
  16036. fi
  16037. ac_res=`eval echo '${'$as_ac_Header'}'`
  16038. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16039. echo "${ECHO_T}$ac_res" >&6; }
  16040. fi
  16041. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16042. cat >>confdefs.h <<_ACEOF
  16043. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16044. _ACEOF
  16045. fi
  16046. done
  16047. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16048. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16049. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16050. echo $ECHO_N "(cached) $ECHO_C" >&6
  16051. else
  16052. if test "$cross_compiling" = yes; then
  16053. ac_cv_func_realloc_0_nonnull=no
  16054. else
  16055. cat >conftest.$ac_ext <<_ACEOF
  16056. /* confdefs.h. */
  16057. _ACEOF
  16058. cat confdefs.h >>conftest.$ac_ext
  16059. cat >>conftest.$ac_ext <<_ACEOF
  16060. /* end confdefs.h. */
  16061. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16062. # include <stdlib.h>
  16063. #else
  16064. char *realloc ();
  16065. #endif
  16066. int
  16067. main ()
  16068. {
  16069. return ! realloc (0, 0);
  16070. ;
  16071. return 0;
  16072. }
  16073. _ACEOF
  16074. rm -f conftest$ac_exeext
  16075. if { (ac_try="$ac_link"
  16076. case "(($ac_try" in
  16077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16078. *) ac_try_echo=$ac_try;;
  16079. esac
  16080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16081. (eval "$ac_link") 2>&5
  16082. ac_status=$?
  16083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16084. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16085. { (case "(($ac_try" in
  16086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16087. *) ac_try_echo=$ac_try;;
  16088. esac
  16089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16090. (eval "$ac_try") 2>&5
  16091. ac_status=$?
  16092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16093. (exit $ac_status); }; }; then
  16094. ac_cv_func_realloc_0_nonnull=yes
  16095. else
  16096. echo "$as_me: program exited with status $ac_status" >&5
  16097. echo "$as_me: failed program was:" >&5
  16098. sed 's/^/| /' conftest.$ac_ext >&5
  16099. ( exit $ac_status )
  16100. ac_cv_func_realloc_0_nonnull=no
  16101. fi
  16102. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16103. fi
  16104. fi
  16105. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16106. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16107. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16108. cat >>confdefs.h <<\_ACEOF
  16109. #define HAVE_REALLOC 1
  16110. _ACEOF
  16111. else
  16112. cat >>confdefs.h <<\_ACEOF
  16113. #define HAVE_REALLOC 0
  16114. _ACEOF
  16115. case " $LIBOBJS " in
  16116. *" realloc.$ac_objext "* ) ;;
  16117. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16118. ;;
  16119. esac
  16120. cat >>confdefs.h <<\_ACEOF
  16121. #define realloc rpl_realloc
  16122. _ACEOF
  16123. fi
  16124. ;;
  16125. esac
  16126. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16127. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16128. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16129. echo $ECHO_N "(cached) $ECHO_C" >&6
  16130. else
  16131. if test "$cross_compiling" = yes; then
  16132. ac_cv_func_memcmp_working=no
  16133. else
  16134. cat >conftest.$ac_ext <<_ACEOF
  16135. /* confdefs.h. */
  16136. _ACEOF
  16137. cat confdefs.h >>conftest.$ac_ext
  16138. cat >>conftest.$ac_ext <<_ACEOF
  16139. /* end confdefs.h. */
  16140. $ac_includes_default
  16141. int
  16142. main ()
  16143. {
  16144. /* Some versions of memcmp are not 8-bit clean. */
  16145. char c0 = '\100', c1 = '\200', c2 = '\201';
  16146. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16147. return 1;
  16148. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16149. or more and with at least one buffer not starting on a 4-byte boundary.
  16150. William Lewis provided this test program. */
  16151. {
  16152. char foo[21];
  16153. char bar[21];
  16154. int i;
  16155. for (i = 0; i < 4; i++)
  16156. {
  16157. char *a = foo + i;
  16158. char *b = bar + i;
  16159. strcpy (a, "--------01111111");
  16160. strcpy (b, "--------10000000");
  16161. if (memcmp (a, b, 16) >= 0)
  16162. return 1;
  16163. }
  16164. return 0;
  16165. }
  16166. ;
  16167. return 0;
  16168. }
  16169. _ACEOF
  16170. rm -f conftest$ac_exeext
  16171. if { (ac_try="$ac_link"
  16172. case "(($ac_try" in
  16173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16174. *) ac_try_echo=$ac_try;;
  16175. esac
  16176. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16177. (eval "$ac_link") 2>&5
  16178. ac_status=$?
  16179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16180. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16181. { (case "(($ac_try" in
  16182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16183. *) ac_try_echo=$ac_try;;
  16184. esac
  16185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16186. (eval "$ac_try") 2>&5
  16187. ac_status=$?
  16188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16189. (exit $ac_status); }; }; then
  16190. ac_cv_func_memcmp_working=yes
  16191. else
  16192. echo "$as_me: program exited with status $ac_status" >&5
  16193. echo "$as_me: failed program was:" >&5
  16194. sed 's/^/| /' conftest.$ac_ext >&5
  16195. ( exit $ac_status )
  16196. ac_cv_func_memcmp_working=no
  16197. fi
  16198. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16199. fi
  16200. fi
  16201. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16202. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16203. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16204. *" memcmp.$ac_objext "* ) ;;
  16205. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16206. ;;
  16207. esac
  16208. for ac_header in $ac_header_list
  16209. do
  16210. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16211. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16212. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16213. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16214. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16215. echo $ECHO_N "(cached) $ECHO_C" >&6
  16216. fi
  16217. ac_res=`eval echo '${'$as_ac_Header'}'`
  16218. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16219. echo "${ECHO_T}$ac_res" >&6; }
  16220. else
  16221. # Is the header compilable?
  16222. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16223. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16224. cat >conftest.$ac_ext <<_ACEOF
  16225. /* confdefs.h. */
  16226. _ACEOF
  16227. cat confdefs.h >>conftest.$ac_ext
  16228. cat >>conftest.$ac_ext <<_ACEOF
  16229. /* end confdefs.h. */
  16230. $ac_includes_default
  16231. #include <$ac_header>
  16232. _ACEOF
  16233. rm -f conftest.$ac_objext
  16234. if { (ac_try="$ac_compile"
  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_compile") 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); } && {
  16247. test -z "$ac_cxx_werror_flag" ||
  16248. test ! -s conftest.err
  16249. } && test -s conftest.$ac_objext; then
  16250. ac_header_compiler=yes
  16251. else
  16252. echo "$as_me: failed program was:" >&5
  16253. sed 's/^/| /' conftest.$ac_ext >&5
  16254. ac_header_compiler=no
  16255. fi
  16256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16257. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16258. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16259. # Is the header present?
  16260. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16261. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16262. cat >conftest.$ac_ext <<_ACEOF
  16263. /* confdefs.h. */
  16264. _ACEOF
  16265. cat confdefs.h >>conftest.$ac_ext
  16266. cat >>conftest.$ac_ext <<_ACEOF
  16267. /* end confdefs.h. */
  16268. #include <$ac_header>
  16269. _ACEOF
  16270. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16271. case "(($ac_try" in
  16272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16273. *) ac_try_echo=$ac_try;;
  16274. esac
  16275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16276. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16277. ac_status=$?
  16278. grep -v '^ *+' conftest.er1 >conftest.err
  16279. rm -f conftest.er1
  16280. cat conftest.err >&5
  16281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16282. (exit $ac_status); } >/dev/null && {
  16283. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16284. test ! -s conftest.err
  16285. }; then
  16286. ac_header_preproc=yes
  16287. else
  16288. echo "$as_me: failed program was:" >&5
  16289. sed 's/^/| /' conftest.$ac_ext >&5
  16290. ac_header_preproc=no
  16291. fi
  16292. rm -f conftest.err conftest.$ac_ext
  16293. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16294. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16295. # So? What about this header?
  16296. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16297. yes:no: )
  16298. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16299. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16300. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16301. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16302. ac_header_preproc=yes
  16303. ;;
  16304. no:yes:* )
  16305. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16306. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16307. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16308. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16309. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16310. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16311. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16312. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16313. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16314. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16315. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16316. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16317. ( cat <<\_ASBOX
  16318. ## ----------------------------------------------- ##
  16319. ## Report this to t-tujikawa@users.sourceforge.net ##
  16320. ## ----------------------------------------------- ##
  16321. _ASBOX
  16322. ) | sed "s/^/$as_me: WARNING: /" >&2
  16323. ;;
  16324. esac
  16325. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16326. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16327. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16328. echo $ECHO_N "(cached) $ECHO_C" >&6
  16329. else
  16330. eval "$as_ac_Header=\$ac_header_preproc"
  16331. fi
  16332. ac_res=`eval echo '${'$as_ac_Header'}'`
  16333. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16334. echo "${ECHO_T}$ac_res" >&6; }
  16335. fi
  16336. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16337. cat >>confdefs.h <<_ACEOF
  16338. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16339. _ACEOF
  16340. fi
  16341. done
  16342. for ac_func in $ac_func_list
  16343. do
  16344. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16345. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16346. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16347. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16348. echo $ECHO_N "(cached) $ECHO_C" >&6
  16349. else
  16350. cat >conftest.$ac_ext <<_ACEOF
  16351. /* confdefs.h. */
  16352. _ACEOF
  16353. cat confdefs.h >>conftest.$ac_ext
  16354. cat >>conftest.$ac_ext <<_ACEOF
  16355. /* end confdefs.h. */
  16356. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16357. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16358. #define $ac_func innocuous_$ac_func
  16359. /* System header to define __stub macros and hopefully few prototypes,
  16360. which can conflict with char $ac_func (); below.
  16361. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16362. <limits.h> exists even on freestanding compilers. */
  16363. #ifdef __STDC__
  16364. # include <limits.h>
  16365. #else
  16366. # include <assert.h>
  16367. #endif
  16368. #undef $ac_func
  16369. /* Override any GCC internal prototype to avoid an error.
  16370. Use char because int might match the return type of a GCC
  16371. builtin and then its argument prototype would still apply. */
  16372. #ifdef __cplusplus
  16373. extern "C"
  16374. #endif
  16375. char $ac_func ();
  16376. /* The GNU C library defines this for functions which it implements
  16377. to always fail with ENOSYS. Some functions are actually named
  16378. something starting with __ and the normal name is an alias. */
  16379. #if defined __stub_$ac_func || defined __stub___$ac_func
  16380. choke me
  16381. #endif
  16382. int
  16383. main ()
  16384. {
  16385. return $ac_func ();
  16386. ;
  16387. return 0;
  16388. }
  16389. _ACEOF
  16390. rm -f conftest.$ac_objext conftest$ac_exeext
  16391. if { (ac_try="$ac_link"
  16392. case "(($ac_try" in
  16393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16394. *) ac_try_echo=$ac_try;;
  16395. esac
  16396. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16397. (eval "$ac_link") 2>conftest.er1
  16398. ac_status=$?
  16399. grep -v '^ *+' conftest.er1 >conftest.err
  16400. rm -f conftest.er1
  16401. cat conftest.err >&5
  16402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16403. (exit $ac_status); } && {
  16404. test -z "$ac_cxx_werror_flag" ||
  16405. test ! -s conftest.err
  16406. } && test -s conftest$ac_exeext &&
  16407. $as_test_x conftest$ac_exeext; then
  16408. eval "$as_ac_var=yes"
  16409. else
  16410. echo "$as_me: failed program was:" >&5
  16411. sed 's/^/| /' conftest.$ac_ext >&5
  16412. eval "$as_ac_var=no"
  16413. fi
  16414. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16415. conftest$ac_exeext conftest.$ac_ext
  16416. fi
  16417. ac_res=`eval echo '${'$as_ac_var'}'`
  16418. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16419. echo "${ECHO_T}$ac_res" >&6; }
  16420. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16421. cat >>confdefs.h <<_ACEOF
  16422. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16423. _ACEOF
  16424. fi
  16425. done
  16426. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16427. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16428. if test "${ac_cv_func_working_mktime+set}" = set; then
  16429. echo $ECHO_N "(cached) $ECHO_C" >&6
  16430. else
  16431. if test "$cross_compiling" = yes; then
  16432. ac_cv_func_working_mktime=no
  16433. else
  16434. cat >conftest.$ac_ext <<_ACEOF
  16435. /* confdefs.h. */
  16436. _ACEOF
  16437. cat confdefs.h >>conftest.$ac_ext
  16438. cat >>conftest.$ac_ext <<_ACEOF
  16439. /* end confdefs.h. */
  16440. /* Test program from Paul Eggert and Tony Leneis. */
  16441. #ifdef TIME_WITH_SYS_TIME
  16442. # include <sys/time.h>
  16443. # include <time.h>
  16444. #else
  16445. # ifdef HAVE_SYS_TIME_H
  16446. # include <sys/time.h>
  16447. # else
  16448. # include <time.h>
  16449. # endif
  16450. #endif
  16451. #include <limits.h>
  16452. #include <stdlib.h>
  16453. #ifdef HAVE_UNISTD_H
  16454. # include <unistd.h>
  16455. #endif
  16456. #ifndef HAVE_ALARM
  16457. # define alarm(X) /* empty */
  16458. #endif
  16459. /* Work around redefinition to rpl_putenv by other config tests. */
  16460. #undef putenv
  16461. static time_t time_t_max;
  16462. static time_t time_t_min;
  16463. /* Values we'll use to set the TZ environment variable. */
  16464. static char *tz_strings[] = {
  16465. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16466. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16467. };
  16468. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16469. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16470. Based on a problem report from Andreas Jaeger. */
  16471. static int
  16472. spring_forward_gap ()
  16473. {
  16474. /* glibc (up to about 1998-10-07) failed this test. */
  16475. struct tm tm;
  16476. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16477. instead of "TZ=America/Vancouver" in order to detect the bug even
  16478. on systems that don't support the Olson extension, or don't have the
  16479. full zoneinfo tables installed. */
  16480. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16481. tm.tm_year = 98;
  16482. tm.tm_mon = 3;
  16483. tm.tm_mday = 5;
  16484. tm.tm_hour = 2;
  16485. tm.tm_min = 0;
  16486. tm.tm_sec = 0;
  16487. tm.tm_isdst = -1;
  16488. return mktime (&tm) != (time_t) -1;
  16489. }
  16490. static int
  16491. mktime_test1 (now)
  16492. time_t now;
  16493. {
  16494. struct tm *lt;
  16495. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16496. }
  16497. static int
  16498. mktime_test (now)
  16499. time_t now;
  16500. {
  16501. return (mktime_test1 (now)
  16502. && mktime_test1 ((time_t) (time_t_max - now))
  16503. && mktime_test1 ((time_t) (time_t_min + now)));
  16504. }
  16505. static int
  16506. irix_6_4_bug ()
  16507. {
  16508. /* Based on code from Ariel Faigon. */
  16509. struct tm tm;
  16510. tm.tm_year = 96;
  16511. tm.tm_mon = 3;
  16512. tm.tm_mday = 0;
  16513. tm.tm_hour = 0;
  16514. tm.tm_min = 0;
  16515. tm.tm_sec = 0;
  16516. tm.tm_isdst = -1;
  16517. mktime (&tm);
  16518. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16519. }
  16520. static int
  16521. bigtime_test (j)
  16522. int j;
  16523. {
  16524. struct tm tm;
  16525. time_t now;
  16526. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16527. now = mktime (&tm);
  16528. if (now != (time_t) -1)
  16529. {
  16530. struct tm *lt = localtime (&now);
  16531. if (! (lt
  16532. && lt->tm_year == tm.tm_year
  16533. && lt->tm_mon == tm.tm_mon
  16534. && lt->tm_mday == tm.tm_mday
  16535. && lt->tm_hour == tm.tm_hour
  16536. && lt->tm_min == tm.tm_min
  16537. && lt->tm_sec == tm.tm_sec
  16538. && lt->tm_yday == tm.tm_yday
  16539. && lt->tm_wday == tm.tm_wday
  16540. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16541. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16542. return 0;
  16543. }
  16544. return 1;
  16545. }
  16546. static int
  16547. year_2050_test ()
  16548. {
  16549. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16550. ignoring leap seconds. */
  16551. unsigned long int answer = 2527315200UL;
  16552. struct tm tm;
  16553. time_t t;
  16554. tm.tm_year = 2050 - 1900;
  16555. tm.tm_mon = 2 - 1;
  16556. tm.tm_mday = 1;
  16557. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16558. tm.tm_isdst = -1;
  16559. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16560. instead of "TZ=America/Vancouver" in order to detect the bug even
  16561. on systems that don't support the Olson extension, or don't have the
  16562. full zoneinfo tables installed. */
  16563. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16564. t = mktime (&tm);
  16565. /* Check that the result is either a failure, or close enough
  16566. to the correct answer that we can assume the discrepancy is
  16567. due to leap seconds. */
  16568. return (t == (time_t) -1
  16569. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16570. }
  16571. int
  16572. main ()
  16573. {
  16574. time_t t, delta;
  16575. int i, j;
  16576. /* This test makes some buggy mktime implementations loop.
  16577. Give up after 60 seconds; a mktime slower than that
  16578. isn't worth using anyway. */
  16579. alarm (60);
  16580. for (;;)
  16581. {
  16582. t = (time_t_max << 1) + 1;
  16583. if (t <= time_t_max)
  16584. break;
  16585. time_t_max = t;
  16586. }
  16587. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16588. delta = time_t_max / 997; /* a suitable prime number */
  16589. for (i = 0; i < N_STRINGS; i++)
  16590. {
  16591. if (tz_strings[i])
  16592. putenv (tz_strings[i]);
  16593. for (t = 0; t <= time_t_max - delta; t += delta)
  16594. if (! mktime_test (t))
  16595. return 1;
  16596. if (! (mktime_test ((time_t) 1)
  16597. && mktime_test ((time_t) (60 * 60))
  16598. && mktime_test ((time_t) (60 * 60 * 24))))
  16599. return 1;
  16600. for (j = 1; ; j <<= 1)
  16601. if (! bigtime_test (j))
  16602. return 1;
  16603. else if (INT_MAX / 2 < j)
  16604. break;
  16605. if (! bigtime_test (INT_MAX))
  16606. return 1;
  16607. }
  16608. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16609. }
  16610. _ACEOF
  16611. rm -f conftest$ac_exeext
  16612. if { (ac_try="$ac_link"
  16613. case "(($ac_try" in
  16614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16615. *) ac_try_echo=$ac_try;;
  16616. esac
  16617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16618. (eval "$ac_link") 2>&5
  16619. ac_status=$?
  16620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16621. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16622. { (case "(($ac_try" in
  16623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16624. *) ac_try_echo=$ac_try;;
  16625. esac
  16626. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16627. (eval "$ac_try") 2>&5
  16628. ac_status=$?
  16629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16630. (exit $ac_status); }; }; then
  16631. ac_cv_func_working_mktime=yes
  16632. else
  16633. echo "$as_me: program exited with status $ac_status" >&5
  16634. echo "$as_me: failed program was:" >&5
  16635. sed 's/^/| /' conftest.$ac_ext >&5
  16636. ( exit $ac_status )
  16637. ac_cv_func_working_mktime=no
  16638. fi
  16639. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16640. fi
  16641. fi
  16642. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16643. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  16644. if test $ac_cv_func_working_mktime = no; then
  16645. case " $LIBOBJS " in
  16646. *" mktime.$ac_objext "* ) ;;
  16647. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16648. ;;
  16649. esac
  16650. fi
  16651. for ac_header in stdlib.h unistd.h
  16652. do
  16653. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16654. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16655. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16656. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16657. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16658. echo $ECHO_N "(cached) $ECHO_C" >&6
  16659. fi
  16660. ac_res=`eval echo '${'$as_ac_Header'}'`
  16661. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16662. echo "${ECHO_T}$ac_res" >&6; }
  16663. else
  16664. # Is the header compilable?
  16665. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16666. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16667. cat >conftest.$ac_ext <<_ACEOF
  16668. /* confdefs.h. */
  16669. _ACEOF
  16670. cat confdefs.h >>conftest.$ac_ext
  16671. cat >>conftest.$ac_ext <<_ACEOF
  16672. /* end confdefs.h. */
  16673. $ac_includes_default
  16674. #include <$ac_header>
  16675. _ACEOF
  16676. rm -f conftest.$ac_objext
  16677. if { (ac_try="$ac_compile"
  16678. case "(($ac_try" in
  16679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16680. *) ac_try_echo=$ac_try;;
  16681. esac
  16682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16683. (eval "$ac_compile") 2>conftest.er1
  16684. ac_status=$?
  16685. grep -v '^ *+' conftest.er1 >conftest.err
  16686. rm -f conftest.er1
  16687. cat conftest.err >&5
  16688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16689. (exit $ac_status); } && {
  16690. test -z "$ac_cxx_werror_flag" ||
  16691. test ! -s conftest.err
  16692. } && test -s conftest.$ac_objext; then
  16693. ac_header_compiler=yes
  16694. else
  16695. echo "$as_me: failed program was:" >&5
  16696. sed 's/^/| /' conftest.$ac_ext >&5
  16697. ac_header_compiler=no
  16698. fi
  16699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16700. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16701. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16702. # Is the header present?
  16703. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16704. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16705. cat >conftest.$ac_ext <<_ACEOF
  16706. /* confdefs.h. */
  16707. _ACEOF
  16708. cat confdefs.h >>conftest.$ac_ext
  16709. cat >>conftest.$ac_ext <<_ACEOF
  16710. /* end confdefs.h. */
  16711. #include <$ac_header>
  16712. _ACEOF
  16713. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16714. case "(($ac_try" in
  16715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16716. *) ac_try_echo=$ac_try;;
  16717. esac
  16718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16719. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16720. ac_status=$?
  16721. grep -v '^ *+' conftest.er1 >conftest.err
  16722. rm -f conftest.er1
  16723. cat conftest.err >&5
  16724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16725. (exit $ac_status); } >/dev/null && {
  16726. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16727. test ! -s conftest.err
  16728. }; then
  16729. ac_header_preproc=yes
  16730. else
  16731. echo "$as_me: failed program was:" >&5
  16732. sed 's/^/| /' conftest.$ac_ext >&5
  16733. ac_header_preproc=no
  16734. fi
  16735. rm -f conftest.err conftest.$ac_ext
  16736. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16737. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16738. # So? What about this header?
  16739. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16740. yes:no: )
  16741. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16742. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16743. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16744. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16745. ac_header_preproc=yes
  16746. ;;
  16747. no:yes:* )
  16748. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16749. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16750. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16751. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16752. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16753. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16754. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16755. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16756. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16757. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16758. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16759. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16760. ( cat <<\_ASBOX
  16761. ## ----------------------------------------------- ##
  16762. ## Report this to t-tujikawa@users.sourceforge.net ##
  16763. ## ----------------------------------------------- ##
  16764. _ASBOX
  16765. ) | sed "s/^/$as_me: WARNING: /" >&2
  16766. ;;
  16767. esac
  16768. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16769. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16770. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16771. echo $ECHO_N "(cached) $ECHO_C" >&6
  16772. else
  16773. eval "$as_ac_Header=\$ac_header_preproc"
  16774. fi
  16775. ac_res=`eval echo '${'$as_ac_Header'}'`
  16776. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16777. echo "${ECHO_T}$ac_res" >&6; }
  16778. fi
  16779. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16780. cat >>confdefs.h <<_ACEOF
  16781. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16782. _ACEOF
  16783. fi
  16784. done
  16785. for ac_func in getpagesize
  16786. do
  16787. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16788. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16789. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16790. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16791. echo $ECHO_N "(cached) $ECHO_C" >&6
  16792. else
  16793. cat >conftest.$ac_ext <<_ACEOF
  16794. /* confdefs.h. */
  16795. _ACEOF
  16796. cat confdefs.h >>conftest.$ac_ext
  16797. cat >>conftest.$ac_ext <<_ACEOF
  16798. /* end confdefs.h. */
  16799. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16800. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16801. #define $ac_func innocuous_$ac_func
  16802. /* System header to define __stub macros and hopefully few prototypes,
  16803. which can conflict with char $ac_func (); below.
  16804. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16805. <limits.h> exists even on freestanding compilers. */
  16806. #ifdef __STDC__
  16807. # include <limits.h>
  16808. #else
  16809. # include <assert.h>
  16810. #endif
  16811. #undef $ac_func
  16812. /* Override any GCC internal prototype to avoid an error.
  16813. Use char because int might match the return type of a GCC
  16814. builtin and then its argument prototype would still apply. */
  16815. #ifdef __cplusplus
  16816. extern "C"
  16817. #endif
  16818. char $ac_func ();
  16819. /* The GNU C library defines this for functions which it implements
  16820. to always fail with ENOSYS. Some functions are actually named
  16821. something starting with __ and the normal name is an alias. */
  16822. #if defined __stub_$ac_func || defined __stub___$ac_func
  16823. choke me
  16824. #endif
  16825. int
  16826. main ()
  16827. {
  16828. return $ac_func ();
  16829. ;
  16830. return 0;
  16831. }
  16832. _ACEOF
  16833. rm -f conftest.$ac_objext conftest$ac_exeext
  16834. if { (ac_try="$ac_link"
  16835. case "(($ac_try" in
  16836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16837. *) ac_try_echo=$ac_try;;
  16838. esac
  16839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16840. (eval "$ac_link") 2>conftest.er1
  16841. ac_status=$?
  16842. grep -v '^ *+' conftest.er1 >conftest.err
  16843. rm -f conftest.er1
  16844. cat conftest.err >&5
  16845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16846. (exit $ac_status); } && {
  16847. test -z "$ac_cxx_werror_flag" ||
  16848. test ! -s conftest.err
  16849. } && test -s conftest$ac_exeext &&
  16850. $as_test_x conftest$ac_exeext; then
  16851. eval "$as_ac_var=yes"
  16852. else
  16853. echo "$as_me: failed program was:" >&5
  16854. sed 's/^/| /' conftest.$ac_ext >&5
  16855. eval "$as_ac_var=no"
  16856. fi
  16857. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16858. conftest$ac_exeext conftest.$ac_ext
  16859. fi
  16860. ac_res=`eval echo '${'$as_ac_var'}'`
  16861. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16862. echo "${ECHO_T}$ac_res" >&6; }
  16863. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16864. cat >>confdefs.h <<_ACEOF
  16865. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16866. _ACEOF
  16867. fi
  16868. done
  16869. { echo "$as_me:$LINENO: checking for working mmap" >&5
  16870. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  16871. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16872. echo $ECHO_N "(cached) $ECHO_C" >&6
  16873. else
  16874. if test "$cross_compiling" = yes; then
  16875. ac_cv_func_mmap_fixed_mapped=no
  16876. else
  16877. cat >conftest.$ac_ext <<_ACEOF
  16878. /* confdefs.h. */
  16879. _ACEOF
  16880. cat confdefs.h >>conftest.$ac_ext
  16881. cat >>conftest.$ac_ext <<_ACEOF
  16882. /* end confdefs.h. */
  16883. $ac_includes_default
  16884. /* malloc might have been renamed as rpl_malloc. */
  16885. #undef malloc
  16886. /* Thanks to Mike Haertel and Jim Avera for this test.
  16887. Here is a matrix of mmap possibilities:
  16888. mmap private not fixed
  16889. mmap private fixed at somewhere currently unmapped
  16890. mmap private fixed at somewhere already mapped
  16891. mmap shared not fixed
  16892. mmap shared fixed at somewhere currently unmapped
  16893. mmap shared fixed at somewhere already mapped
  16894. For private mappings, we should verify that changes cannot be read()
  16895. back from the file, nor mmap's back from the file at a different
  16896. address. (There have been systems where private was not correctly
  16897. implemented like the infamous i386 svr4.0, and systems where the
  16898. VM page cache was not coherent with the file system buffer cache
  16899. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16900. For shared mappings, we should conversely verify that changes get
  16901. propagated back to all the places they're supposed to be.
  16902. Grep wants private fixed already mapped.
  16903. The main things grep needs to know about mmap are:
  16904. * does it exist and is it safe to write into the mmap'd area
  16905. * how to use it (BSD variants) */
  16906. #include <fcntl.h>
  16907. #include <sys/mman.h>
  16908. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16909. char *malloc ();
  16910. #endif
  16911. /* This mess was copied from the GNU getpagesize.h. */
  16912. #ifndef HAVE_GETPAGESIZE
  16913. /* Assume that all systems that can run configure have sys/param.h. */
  16914. # ifndef HAVE_SYS_PARAM_H
  16915. # define HAVE_SYS_PARAM_H 1
  16916. # endif
  16917. # ifdef _SC_PAGESIZE
  16918. # define getpagesize() sysconf(_SC_PAGESIZE)
  16919. # else /* no _SC_PAGESIZE */
  16920. # ifdef HAVE_SYS_PARAM_H
  16921. # include <sys/param.h>
  16922. # ifdef EXEC_PAGESIZE
  16923. # define getpagesize() EXEC_PAGESIZE
  16924. # else /* no EXEC_PAGESIZE */
  16925. # ifdef NBPG
  16926. # define getpagesize() NBPG * CLSIZE
  16927. # ifndef CLSIZE
  16928. # define CLSIZE 1
  16929. # endif /* no CLSIZE */
  16930. # else /* no NBPG */
  16931. # ifdef NBPC
  16932. # define getpagesize() NBPC
  16933. # else /* no NBPC */
  16934. # ifdef PAGESIZE
  16935. # define getpagesize() PAGESIZE
  16936. # endif /* PAGESIZE */
  16937. # endif /* no NBPC */
  16938. # endif /* no NBPG */
  16939. # endif /* no EXEC_PAGESIZE */
  16940. # else /* no HAVE_SYS_PARAM_H */
  16941. # define getpagesize() 8192 /* punt totally */
  16942. # endif /* no HAVE_SYS_PARAM_H */
  16943. # endif /* no _SC_PAGESIZE */
  16944. #endif /* no HAVE_GETPAGESIZE */
  16945. int
  16946. main ()
  16947. {
  16948. char *data, *data2, *data3;
  16949. int i, pagesize;
  16950. int fd;
  16951. pagesize = getpagesize ();
  16952. /* First, make a file with some known garbage in it. */
  16953. data = (char *) malloc (pagesize);
  16954. if (!data)
  16955. return 1;
  16956. for (i = 0; i < pagesize; ++i)
  16957. *(data + i) = rand ();
  16958. umask (0);
  16959. fd = creat ("conftest.mmap", 0600);
  16960. if (fd < 0)
  16961. return 1;
  16962. if (write (fd, data, pagesize) != pagesize)
  16963. return 1;
  16964. close (fd);
  16965. /* Next, try to mmap the file at a fixed address which already has
  16966. something else allocated at it. If we can, also make sure that
  16967. we see the same garbage. */
  16968. fd = open ("conftest.mmap", O_RDWR);
  16969. if (fd < 0)
  16970. return 1;
  16971. data2 = (char *) malloc (2 * pagesize);
  16972. if (!data2)
  16973. return 1;
  16974. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16975. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16976. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16977. return 1;
  16978. for (i = 0; i < pagesize; ++i)
  16979. if (*(data + i) != *(data2 + i))
  16980. return 1;
  16981. /* Finally, make sure that changes to the mapped area do not
  16982. percolate back to the file as seen by read(). (This is a bug on
  16983. some variants of i386 svr4.0.) */
  16984. for (i = 0; i < pagesize; ++i)
  16985. *(data2 + i) = *(data2 + i) + 1;
  16986. data3 = (char *) malloc (pagesize);
  16987. if (!data3)
  16988. return 1;
  16989. if (read (fd, data3, pagesize) != pagesize)
  16990. return 1;
  16991. for (i = 0; i < pagesize; ++i)
  16992. if (*(data + i) != *(data3 + i))
  16993. return 1;
  16994. close (fd);
  16995. return 0;
  16996. }
  16997. _ACEOF
  16998. rm -f conftest$ac_exeext
  16999. if { (ac_try="$ac_link"
  17000. case "(($ac_try" in
  17001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17002. *) ac_try_echo=$ac_try;;
  17003. esac
  17004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17005. (eval "$ac_link") 2>&5
  17006. ac_status=$?
  17007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17008. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17009. { (case "(($ac_try" in
  17010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17011. *) ac_try_echo=$ac_try;;
  17012. esac
  17013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17014. (eval "$ac_try") 2>&5
  17015. ac_status=$?
  17016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17017. (exit $ac_status); }; }; then
  17018. ac_cv_func_mmap_fixed_mapped=yes
  17019. else
  17020. echo "$as_me: program exited with status $ac_status" >&5
  17021. echo "$as_me: failed program was:" >&5
  17022. sed 's/^/| /' conftest.$ac_ext >&5
  17023. ( exit $ac_status )
  17024. ac_cv_func_mmap_fixed_mapped=no
  17025. fi
  17026. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17027. fi
  17028. fi
  17029. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17030. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17031. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17032. cat >>confdefs.h <<\_ACEOF
  17033. #define HAVE_MMAP 1
  17034. _ACEOF
  17035. fi
  17036. rm -f conftest.mmap
  17037. for ac_header in sys/select.h sys/socket.h
  17038. do
  17039. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17040. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17041. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17042. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17043. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17044. echo $ECHO_N "(cached) $ECHO_C" >&6
  17045. fi
  17046. ac_res=`eval echo '${'$as_ac_Header'}'`
  17047. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17048. echo "${ECHO_T}$ac_res" >&6; }
  17049. else
  17050. # Is the header compilable?
  17051. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17052. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17053. cat >conftest.$ac_ext <<_ACEOF
  17054. /* confdefs.h. */
  17055. _ACEOF
  17056. cat confdefs.h >>conftest.$ac_ext
  17057. cat >>conftest.$ac_ext <<_ACEOF
  17058. /* end confdefs.h. */
  17059. $ac_includes_default
  17060. #include <$ac_header>
  17061. _ACEOF
  17062. rm -f conftest.$ac_objext
  17063. if { (ac_try="$ac_compile"
  17064. case "(($ac_try" in
  17065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17066. *) ac_try_echo=$ac_try;;
  17067. esac
  17068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17069. (eval "$ac_compile") 2>conftest.er1
  17070. ac_status=$?
  17071. grep -v '^ *+' conftest.er1 >conftest.err
  17072. rm -f conftest.er1
  17073. cat conftest.err >&5
  17074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17075. (exit $ac_status); } && {
  17076. test -z "$ac_cxx_werror_flag" ||
  17077. test ! -s conftest.err
  17078. } && test -s conftest.$ac_objext; then
  17079. ac_header_compiler=yes
  17080. else
  17081. echo "$as_me: failed program was:" >&5
  17082. sed 's/^/| /' conftest.$ac_ext >&5
  17083. ac_header_compiler=no
  17084. fi
  17085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17086. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17087. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17088. # Is the header present?
  17089. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17090. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17091. cat >conftest.$ac_ext <<_ACEOF
  17092. /* confdefs.h. */
  17093. _ACEOF
  17094. cat confdefs.h >>conftest.$ac_ext
  17095. cat >>conftest.$ac_ext <<_ACEOF
  17096. /* end confdefs.h. */
  17097. #include <$ac_header>
  17098. _ACEOF
  17099. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17100. case "(($ac_try" in
  17101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17102. *) ac_try_echo=$ac_try;;
  17103. esac
  17104. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17105. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17106. ac_status=$?
  17107. grep -v '^ *+' conftest.er1 >conftest.err
  17108. rm -f conftest.er1
  17109. cat conftest.err >&5
  17110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17111. (exit $ac_status); } >/dev/null && {
  17112. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17113. test ! -s conftest.err
  17114. }; then
  17115. ac_header_preproc=yes
  17116. else
  17117. echo "$as_me: failed program was:" >&5
  17118. sed 's/^/| /' conftest.$ac_ext >&5
  17119. ac_header_preproc=no
  17120. fi
  17121. rm -f conftest.err conftest.$ac_ext
  17122. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17123. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17124. # So? What about this header?
  17125. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17126. yes:no: )
  17127. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17128. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17129. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17130. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17131. ac_header_preproc=yes
  17132. ;;
  17133. no:yes:* )
  17134. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17135. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17136. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17137. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17138. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17139. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17140. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17141. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17142. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17143. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17144. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17145. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17146. ( cat <<\_ASBOX
  17147. ## ----------------------------------------------- ##
  17148. ## Report this to t-tujikawa@users.sourceforge.net ##
  17149. ## ----------------------------------------------- ##
  17150. _ASBOX
  17151. ) | sed "s/^/$as_me: WARNING: /" >&2
  17152. ;;
  17153. esac
  17154. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17155. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17156. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17157. echo $ECHO_N "(cached) $ECHO_C" >&6
  17158. else
  17159. eval "$as_ac_Header=\$ac_header_preproc"
  17160. fi
  17161. ac_res=`eval echo '${'$as_ac_Header'}'`
  17162. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17163. echo "${ECHO_T}$ac_res" >&6; }
  17164. fi
  17165. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17166. cat >>confdefs.h <<_ACEOF
  17167. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17168. _ACEOF
  17169. fi
  17170. done
  17171. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17172. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17173. if test "${ac_cv_func_select_args+set}" = set; then
  17174. echo $ECHO_N "(cached) $ECHO_C" >&6
  17175. else
  17176. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17177. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17178. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17179. cat >conftest.$ac_ext <<_ACEOF
  17180. /* confdefs.h. */
  17181. _ACEOF
  17182. cat confdefs.h >>conftest.$ac_ext
  17183. cat >>conftest.$ac_ext <<_ACEOF
  17184. /* end confdefs.h. */
  17185. $ac_includes_default
  17186. #ifdef HAVE_SYS_SELECT_H
  17187. # include <sys/select.h>
  17188. #endif
  17189. #ifdef HAVE_SYS_SOCKET_H
  17190. # include <sys/socket.h>
  17191. #endif
  17192. int
  17193. main ()
  17194. {
  17195. extern int select ($ac_arg1,
  17196. $ac_arg234, $ac_arg234, $ac_arg234,
  17197. $ac_arg5);
  17198. ;
  17199. return 0;
  17200. }
  17201. _ACEOF
  17202. rm -f conftest.$ac_objext
  17203. if { (ac_try="$ac_compile"
  17204. case "(($ac_try" in
  17205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17206. *) ac_try_echo=$ac_try;;
  17207. esac
  17208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17209. (eval "$ac_compile") 2>conftest.er1
  17210. ac_status=$?
  17211. grep -v '^ *+' conftest.er1 >conftest.err
  17212. rm -f conftest.er1
  17213. cat conftest.err >&5
  17214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17215. (exit $ac_status); } && {
  17216. test -z "$ac_cxx_werror_flag" ||
  17217. test ! -s conftest.err
  17218. } && test -s conftest.$ac_objext; then
  17219. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17220. else
  17221. echo "$as_me: failed program was:" >&5
  17222. sed 's/^/| /' conftest.$ac_ext >&5
  17223. fi
  17224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17225. done
  17226. done
  17227. done
  17228. # Provide a safe default value.
  17229. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17230. fi
  17231. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17232. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17233. ac_save_IFS=$IFS; IFS=','
  17234. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17235. IFS=$ac_save_IFS
  17236. shift
  17237. cat >>confdefs.h <<_ACEOF
  17238. #define SELECT_TYPE_ARG1 $1
  17239. _ACEOF
  17240. cat >>confdefs.h <<_ACEOF
  17241. #define SELECT_TYPE_ARG234 ($2)
  17242. _ACEOF
  17243. cat >>confdefs.h <<_ACEOF
  17244. #define SELECT_TYPE_ARG5 ($3)
  17245. _ACEOF
  17246. rm -f conftest*
  17247. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17248. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17249. if test "${ac_cv_type_signal+set}" = set; then
  17250. echo $ECHO_N "(cached) $ECHO_C" >&6
  17251. else
  17252. cat >conftest.$ac_ext <<_ACEOF
  17253. /* confdefs.h. */
  17254. _ACEOF
  17255. cat confdefs.h >>conftest.$ac_ext
  17256. cat >>conftest.$ac_ext <<_ACEOF
  17257. /* end confdefs.h. */
  17258. #include <sys/types.h>
  17259. #include <signal.h>
  17260. int
  17261. main ()
  17262. {
  17263. return *(signal (0, 0)) (0) == 1;
  17264. ;
  17265. return 0;
  17266. }
  17267. _ACEOF
  17268. rm -f conftest.$ac_objext
  17269. if { (ac_try="$ac_compile"
  17270. case "(($ac_try" in
  17271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17272. *) ac_try_echo=$ac_try;;
  17273. esac
  17274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17275. (eval "$ac_compile") 2>conftest.er1
  17276. ac_status=$?
  17277. grep -v '^ *+' conftest.er1 >conftest.err
  17278. rm -f conftest.er1
  17279. cat conftest.err >&5
  17280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17281. (exit $ac_status); } && {
  17282. test -z "$ac_cxx_werror_flag" ||
  17283. test ! -s conftest.err
  17284. } && test -s conftest.$ac_objext; then
  17285. ac_cv_type_signal=int
  17286. else
  17287. echo "$as_me: failed program was:" >&5
  17288. sed 's/^/| /' conftest.$ac_ext >&5
  17289. ac_cv_type_signal=void
  17290. fi
  17291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17292. fi
  17293. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17294. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17295. cat >>confdefs.h <<_ACEOF
  17296. #define RETSIGTYPE $ac_cv_type_signal
  17297. _ACEOF
  17298. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17299. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17300. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17301. echo $ECHO_N "(cached) $ECHO_C" >&6
  17302. else
  17303. rm -f conftest.sym conftest.file
  17304. echo >conftest.file
  17305. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17306. if test "$cross_compiling" = yes; then
  17307. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17308. else
  17309. cat >conftest.$ac_ext <<_ACEOF
  17310. /* confdefs.h. */
  17311. _ACEOF
  17312. cat confdefs.h >>conftest.$ac_ext
  17313. cat >>conftest.$ac_ext <<_ACEOF
  17314. /* end confdefs.h. */
  17315. $ac_includes_default
  17316. int
  17317. main ()
  17318. {
  17319. struct stat sbuf;
  17320. /* Linux will dereference the symlink and fail.
  17321. That is better in the sense that it means we will not
  17322. have to compile and use the lstat wrapper. */
  17323. return lstat ("conftest.sym/", &sbuf) == 0;
  17324. ;
  17325. return 0;
  17326. }
  17327. _ACEOF
  17328. rm -f conftest$ac_exeext
  17329. if { (ac_try="$ac_link"
  17330. case "(($ac_try" in
  17331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17332. *) ac_try_echo=$ac_try;;
  17333. esac
  17334. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17335. (eval "$ac_link") 2>&5
  17336. ac_status=$?
  17337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17338. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17339. { (case "(($ac_try" in
  17340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17341. *) ac_try_echo=$ac_try;;
  17342. esac
  17343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17344. (eval "$ac_try") 2>&5
  17345. ac_status=$?
  17346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17347. (exit $ac_status); }; }; then
  17348. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17349. else
  17350. echo "$as_me: program exited with status $ac_status" >&5
  17351. echo "$as_me: failed program was:" >&5
  17352. sed 's/^/| /' conftest.$ac_ext >&5
  17353. ( exit $ac_status )
  17354. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17355. fi
  17356. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17357. fi
  17358. else
  17359. # If the `ln -s' command failed, then we probably don't even
  17360. # have an lstat function.
  17361. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17362. fi
  17363. rm -f conftest.sym conftest.file
  17364. fi
  17365. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17366. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17367. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17368. cat >>confdefs.h <<_ACEOF
  17369. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17370. _ACEOF
  17371. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17372. case " $LIBOBJS " in
  17373. *" lstat.$ac_objext "* ) ;;
  17374. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17375. ;;
  17376. esac
  17377. fi
  17378. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17379. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17380. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17381. echo $ECHO_N "(cached) $ECHO_C" >&6
  17382. else
  17383. if test "$cross_compiling" = yes; then
  17384. ac_cv_func_stat_empty_string_bug=yes
  17385. else
  17386. cat >conftest.$ac_ext <<_ACEOF
  17387. /* confdefs.h. */
  17388. _ACEOF
  17389. cat confdefs.h >>conftest.$ac_ext
  17390. cat >>conftest.$ac_ext <<_ACEOF
  17391. /* end confdefs.h. */
  17392. $ac_includes_default
  17393. int
  17394. main ()
  17395. {
  17396. struct stat sbuf;
  17397. return stat ("", &sbuf) == 0;
  17398. ;
  17399. return 0;
  17400. }
  17401. _ACEOF
  17402. rm -f conftest$ac_exeext
  17403. if { (ac_try="$ac_link"
  17404. case "(($ac_try" in
  17405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17406. *) ac_try_echo=$ac_try;;
  17407. esac
  17408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17409. (eval "$ac_link") 2>&5
  17410. ac_status=$?
  17411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17412. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17413. { (case "(($ac_try" in
  17414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17415. *) ac_try_echo=$ac_try;;
  17416. esac
  17417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17418. (eval "$ac_try") 2>&5
  17419. ac_status=$?
  17420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17421. (exit $ac_status); }; }; then
  17422. ac_cv_func_stat_empty_string_bug=no
  17423. else
  17424. echo "$as_me: program exited with status $ac_status" >&5
  17425. echo "$as_me: failed program was:" >&5
  17426. sed 's/^/| /' conftest.$ac_ext >&5
  17427. ( exit $ac_status )
  17428. ac_cv_func_stat_empty_string_bug=yes
  17429. fi
  17430. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17431. fi
  17432. fi
  17433. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17434. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17435. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17436. case " $LIBOBJS " in
  17437. *" stat.$ac_objext "* ) ;;
  17438. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17439. ;;
  17440. esac
  17441. cat >>confdefs.h <<_ACEOF
  17442. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17443. _ACEOF
  17444. fi
  17445. for ac_func in strftime
  17446. do
  17447. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17448. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17449. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17450. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17451. echo $ECHO_N "(cached) $ECHO_C" >&6
  17452. else
  17453. cat >conftest.$ac_ext <<_ACEOF
  17454. /* confdefs.h. */
  17455. _ACEOF
  17456. cat confdefs.h >>conftest.$ac_ext
  17457. cat >>conftest.$ac_ext <<_ACEOF
  17458. /* end confdefs.h. */
  17459. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17460. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17461. #define $ac_func innocuous_$ac_func
  17462. /* System header to define __stub macros and hopefully few prototypes,
  17463. which can conflict with char $ac_func (); below.
  17464. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17465. <limits.h> exists even on freestanding compilers. */
  17466. #ifdef __STDC__
  17467. # include <limits.h>
  17468. #else
  17469. # include <assert.h>
  17470. #endif
  17471. #undef $ac_func
  17472. /* Override any GCC internal prototype to avoid an error.
  17473. Use char because int might match the return type of a GCC
  17474. builtin and then its argument prototype would still apply. */
  17475. #ifdef __cplusplus
  17476. extern "C"
  17477. #endif
  17478. char $ac_func ();
  17479. /* The GNU C library defines this for functions which it implements
  17480. to always fail with ENOSYS. Some functions are actually named
  17481. something starting with __ and the normal name is an alias. */
  17482. #if defined __stub_$ac_func || defined __stub___$ac_func
  17483. choke me
  17484. #endif
  17485. int
  17486. main ()
  17487. {
  17488. return $ac_func ();
  17489. ;
  17490. return 0;
  17491. }
  17492. _ACEOF
  17493. rm -f conftest.$ac_objext conftest$ac_exeext
  17494. if { (ac_try="$ac_link"
  17495. case "(($ac_try" in
  17496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17497. *) ac_try_echo=$ac_try;;
  17498. esac
  17499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17500. (eval "$ac_link") 2>conftest.er1
  17501. ac_status=$?
  17502. grep -v '^ *+' conftest.er1 >conftest.err
  17503. rm -f conftest.er1
  17504. cat conftest.err >&5
  17505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17506. (exit $ac_status); } && {
  17507. test -z "$ac_cxx_werror_flag" ||
  17508. test ! -s conftest.err
  17509. } && test -s conftest$ac_exeext &&
  17510. $as_test_x conftest$ac_exeext; then
  17511. eval "$as_ac_var=yes"
  17512. else
  17513. echo "$as_me: failed program was:" >&5
  17514. sed 's/^/| /' conftest.$ac_ext >&5
  17515. eval "$as_ac_var=no"
  17516. fi
  17517. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17518. conftest$ac_exeext conftest.$ac_ext
  17519. fi
  17520. ac_res=`eval echo '${'$as_ac_var'}'`
  17521. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17522. echo "${ECHO_T}$ac_res" >&6; }
  17523. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17524. cat >>confdefs.h <<_ACEOF
  17525. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17526. _ACEOF
  17527. else
  17528. # strftime is in -lintl on SCO UNIX.
  17529. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17530. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17531. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17532. echo $ECHO_N "(cached) $ECHO_C" >&6
  17533. else
  17534. ac_check_lib_save_LIBS=$LIBS
  17535. LIBS="-lintl $LIBS"
  17536. cat >conftest.$ac_ext <<_ACEOF
  17537. /* confdefs.h. */
  17538. _ACEOF
  17539. cat confdefs.h >>conftest.$ac_ext
  17540. cat >>conftest.$ac_ext <<_ACEOF
  17541. /* end confdefs.h. */
  17542. /* Override any GCC internal prototype to avoid an error.
  17543. Use char because int might match the return type of a GCC
  17544. builtin and then its argument prototype would still apply. */
  17545. #ifdef __cplusplus
  17546. extern "C"
  17547. #endif
  17548. char strftime ();
  17549. int
  17550. main ()
  17551. {
  17552. return strftime ();
  17553. ;
  17554. return 0;
  17555. }
  17556. _ACEOF
  17557. rm -f conftest.$ac_objext conftest$ac_exeext
  17558. if { (ac_try="$ac_link"
  17559. case "(($ac_try" in
  17560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17561. *) ac_try_echo=$ac_try;;
  17562. esac
  17563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17564. (eval "$ac_link") 2>conftest.er1
  17565. ac_status=$?
  17566. grep -v '^ *+' conftest.er1 >conftest.err
  17567. rm -f conftest.er1
  17568. cat conftest.err >&5
  17569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17570. (exit $ac_status); } && {
  17571. test -z "$ac_cxx_werror_flag" ||
  17572. test ! -s conftest.err
  17573. } && test -s conftest$ac_exeext &&
  17574. $as_test_x conftest$ac_exeext; then
  17575. ac_cv_lib_intl_strftime=yes
  17576. else
  17577. echo "$as_me: failed program was:" >&5
  17578. sed 's/^/| /' conftest.$ac_ext >&5
  17579. ac_cv_lib_intl_strftime=no
  17580. fi
  17581. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17582. conftest$ac_exeext conftest.$ac_ext
  17583. LIBS=$ac_check_lib_save_LIBS
  17584. fi
  17585. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17586. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17587. if test $ac_cv_lib_intl_strftime = yes; then
  17588. cat >>confdefs.h <<\_ACEOF
  17589. #define HAVE_STRFTIME 1
  17590. _ACEOF
  17591. LIBS="-lintl $LIBS"
  17592. fi
  17593. fi
  17594. done
  17595. for ac_func in vprintf
  17596. do
  17597. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17598. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17599. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17600. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17601. echo $ECHO_N "(cached) $ECHO_C" >&6
  17602. else
  17603. cat >conftest.$ac_ext <<_ACEOF
  17604. /* confdefs.h. */
  17605. _ACEOF
  17606. cat confdefs.h >>conftest.$ac_ext
  17607. cat >>conftest.$ac_ext <<_ACEOF
  17608. /* end confdefs.h. */
  17609. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17610. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17611. #define $ac_func innocuous_$ac_func
  17612. /* System header to define __stub macros and hopefully few prototypes,
  17613. which can conflict with char $ac_func (); below.
  17614. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17615. <limits.h> exists even on freestanding compilers. */
  17616. #ifdef __STDC__
  17617. # include <limits.h>
  17618. #else
  17619. # include <assert.h>
  17620. #endif
  17621. #undef $ac_func
  17622. /* Override any GCC internal prototype to avoid an error.
  17623. Use char because int might match the return type of a GCC
  17624. builtin and then its argument prototype would still apply. */
  17625. #ifdef __cplusplus
  17626. extern "C"
  17627. #endif
  17628. char $ac_func ();
  17629. /* The GNU C library defines this for functions which it implements
  17630. to always fail with ENOSYS. Some functions are actually named
  17631. something starting with __ and the normal name is an alias. */
  17632. #if defined __stub_$ac_func || defined __stub___$ac_func
  17633. choke me
  17634. #endif
  17635. int
  17636. main ()
  17637. {
  17638. return $ac_func ();
  17639. ;
  17640. return 0;
  17641. }
  17642. _ACEOF
  17643. rm -f conftest.$ac_objext conftest$ac_exeext
  17644. if { (ac_try="$ac_link"
  17645. case "(($ac_try" in
  17646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17647. *) ac_try_echo=$ac_try;;
  17648. esac
  17649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17650. (eval "$ac_link") 2>conftest.er1
  17651. ac_status=$?
  17652. grep -v '^ *+' conftest.er1 >conftest.err
  17653. rm -f conftest.er1
  17654. cat conftest.err >&5
  17655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17656. (exit $ac_status); } && {
  17657. test -z "$ac_cxx_werror_flag" ||
  17658. test ! -s conftest.err
  17659. } && test -s conftest$ac_exeext &&
  17660. $as_test_x conftest$ac_exeext; then
  17661. eval "$as_ac_var=yes"
  17662. else
  17663. echo "$as_me: failed program was:" >&5
  17664. sed 's/^/| /' conftest.$ac_ext >&5
  17665. eval "$as_ac_var=no"
  17666. fi
  17667. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17668. conftest$ac_exeext conftest.$ac_ext
  17669. fi
  17670. ac_res=`eval echo '${'$as_ac_var'}'`
  17671. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17672. echo "${ECHO_T}$ac_res" >&6; }
  17673. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17674. cat >>confdefs.h <<_ACEOF
  17675. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17676. _ACEOF
  17677. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17678. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17679. if test "${ac_cv_func__doprnt+set}" = set; then
  17680. echo $ECHO_N "(cached) $ECHO_C" >&6
  17681. else
  17682. cat >conftest.$ac_ext <<_ACEOF
  17683. /* confdefs.h. */
  17684. _ACEOF
  17685. cat confdefs.h >>conftest.$ac_ext
  17686. cat >>conftest.$ac_ext <<_ACEOF
  17687. /* end confdefs.h. */
  17688. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17689. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17690. #define _doprnt innocuous__doprnt
  17691. /* System header to define __stub macros and hopefully few prototypes,
  17692. which can conflict with char _doprnt (); below.
  17693. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17694. <limits.h> exists even on freestanding compilers. */
  17695. #ifdef __STDC__
  17696. # include <limits.h>
  17697. #else
  17698. # include <assert.h>
  17699. #endif
  17700. #undef _doprnt
  17701. /* Override any GCC internal prototype to avoid an error.
  17702. Use char because int might match the return type of a GCC
  17703. builtin and then its argument prototype would still apply. */
  17704. #ifdef __cplusplus
  17705. extern "C"
  17706. #endif
  17707. char _doprnt ();
  17708. /* The GNU C library defines this for functions which it implements
  17709. to always fail with ENOSYS. Some functions are actually named
  17710. something starting with __ and the normal name is an alias. */
  17711. #if defined __stub__doprnt || defined __stub____doprnt
  17712. choke me
  17713. #endif
  17714. int
  17715. main ()
  17716. {
  17717. return _doprnt ();
  17718. ;
  17719. return 0;
  17720. }
  17721. _ACEOF
  17722. rm -f conftest.$ac_objext conftest$ac_exeext
  17723. if { (ac_try="$ac_link"
  17724. case "(($ac_try" in
  17725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17726. *) ac_try_echo=$ac_try;;
  17727. esac
  17728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17729. (eval "$ac_link") 2>conftest.er1
  17730. ac_status=$?
  17731. grep -v '^ *+' conftest.er1 >conftest.err
  17732. rm -f conftest.er1
  17733. cat conftest.err >&5
  17734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17735. (exit $ac_status); } && {
  17736. test -z "$ac_cxx_werror_flag" ||
  17737. test ! -s conftest.err
  17738. } && test -s conftest$ac_exeext &&
  17739. $as_test_x conftest$ac_exeext; then
  17740. ac_cv_func__doprnt=yes
  17741. else
  17742. echo "$as_me: failed program was:" >&5
  17743. sed 's/^/| /' conftest.$ac_ext >&5
  17744. ac_cv_func__doprnt=no
  17745. fi
  17746. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17747. conftest$ac_exeext conftest.$ac_ext
  17748. fi
  17749. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17750. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  17751. if test $ac_cv_func__doprnt = yes; then
  17752. cat >>confdefs.h <<\_ACEOF
  17753. #define HAVE_DOPRNT 1
  17754. _ACEOF
  17755. fi
  17756. fi
  17757. done
  17758. for ac_func in __argz_count __argz_next __argz_stringify atexit daemon ftruncate getcwd gethostbyaddr gethostbyname getpagesize inet_ntoa memchr memmove mempcpy memset mkdir munmap nl_langinfo posix_memalign putenv rmdir select setlocale sleep socket stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtol strtoul strtoull tzset unsetenv usleep
  17759. do
  17760. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17761. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17762. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17763. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17764. echo $ECHO_N "(cached) $ECHO_C" >&6
  17765. else
  17766. cat >conftest.$ac_ext <<_ACEOF
  17767. /* confdefs.h. */
  17768. _ACEOF
  17769. cat confdefs.h >>conftest.$ac_ext
  17770. cat >>conftest.$ac_ext <<_ACEOF
  17771. /* end confdefs.h. */
  17772. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17773. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17774. #define $ac_func innocuous_$ac_func
  17775. /* System header to define __stub macros and hopefully few prototypes,
  17776. which can conflict with char $ac_func (); below.
  17777. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17778. <limits.h> exists even on freestanding compilers. */
  17779. #ifdef __STDC__
  17780. # include <limits.h>
  17781. #else
  17782. # include <assert.h>
  17783. #endif
  17784. #undef $ac_func
  17785. /* Override any GCC internal prototype to avoid an error.
  17786. Use char because int might match the return type of a GCC
  17787. builtin and then its argument prototype would still apply. */
  17788. #ifdef __cplusplus
  17789. extern "C"
  17790. #endif
  17791. char $ac_func ();
  17792. /* The GNU C library defines this for functions which it implements
  17793. to always fail with ENOSYS. Some functions are actually named
  17794. something starting with __ and the normal name is an alias. */
  17795. #if defined __stub_$ac_func || defined __stub___$ac_func
  17796. choke me
  17797. #endif
  17798. int
  17799. main ()
  17800. {
  17801. return $ac_func ();
  17802. ;
  17803. return 0;
  17804. }
  17805. _ACEOF
  17806. rm -f conftest.$ac_objext conftest$ac_exeext
  17807. if { (ac_try="$ac_link"
  17808. case "(($ac_try" in
  17809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17810. *) ac_try_echo=$ac_try;;
  17811. esac
  17812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17813. (eval "$ac_link") 2>conftest.er1
  17814. ac_status=$?
  17815. grep -v '^ *+' conftest.er1 >conftest.err
  17816. rm -f conftest.er1
  17817. cat conftest.err >&5
  17818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17819. (exit $ac_status); } && {
  17820. test -z "$ac_cxx_werror_flag" ||
  17821. test ! -s conftest.err
  17822. } && test -s conftest$ac_exeext &&
  17823. $as_test_x conftest$ac_exeext; then
  17824. eval "$as_ac_var=yes"
  17825. else
  17826. echo "$as_me: failed program was:" >&5
  17827. sed 's/^/| /' conftest.$ac_ext >&5
  17828. eval "$as_ac_var=no"
  17829. fi
  17830. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17831. conftest$ac_exeext conftest.$ac_ext
  17832. fi
  17833. ac_res=`eval echo '${'$as_ac_var'}'`
  17834. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17835. echo "${ECHO_T}$ac_res" >&6; }
  17836. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17837. cat >>confdefs.h <<_ACEOF
  17838. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17839. _ACEOF
  17840. fi
  17841. done
  17842. if test "x$enable_epoll" = "xyes"; then
  17843. for ac_func in epoll_create
  17844. do
  17845. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17846. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17847. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17848. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17849. echo $ECHO_N "(cached) $ECHO_C" >&6
  17850. else
  17851. cat >conftest.$ac_ext <<_ACEOF
  17852. /* confdefs.h. */
  17853. _ACEOF
  17854. cat confdefs.h >>conftest.$ac_ext
  17855. cat >>conftest.$ac_ext <<_ACEOF
  17856. /* end confdefs.h. */
  17857. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17859. #define $ac_func innocuous_$ac_func
  17860. /* System header to define __stub macros and hopefully few prototypes,
  17861. which can conflict with char $ac_func (); below.
  17862. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17863. <limits.h> exists even on freestanding compilers. */
  17864. #ifdef __STDC__
  17865. # include <limits.h>
  17866. #else
  17867. # include <assert.h>
  17868. #endif
  17869. #undef $ac_func
  17870. /* Override any GCC internal prototype to avoid an error.
  17871. Use char because int might match the return type of a GCC
  17872. builtin and then its argument prototype would still apply. */
  17873. #ifdef __cplusplus
  17874. extern "C"
  17875. #endif
  17876. char $ac_func ();
  17877. /* The GNU C library defines this for functions which it implements
  17878. to always fail with ENOSYS. Some functions are actually named
  17879. something starting with __ and the normal name is an alias. */
  17880. #if defined __stub_$ac_func || defined __stub___$ac_func
  17881. choke me
  17882. #endif
  17883. int
  17884. main ()
  17885. {
  17886. return $ac_func ();
  17887. ;
  17888. return 0;
  17889. }
  17890. _ACEOF
  17891. rm -f conftest.$ac_objext conftest$ac_exeext
  17892. if { (ac_try="$ac_link"
  17893. case "(($ac_try" in
  17894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17895. *) ac_try_echo=$ac_try;;
  17896. esac
  17897. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17898. (eval "$ac_link") 2>conftest.er1
  17899. ac_status=$?
  17900. grep -v '^ *+' conftest.er1 >conftest.err
  17901. rm -f conftest.er1
  17902. cat conftest.err >&5
  17903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17904. (exit $ac_status); } && {
  17905. test -z "$ac_cxx_werror_flag" ||
  17906. test ! -s conftest.err
  17907. } && test -s conftest$ac_exeext &&
  17908. $as_test_x conftest$ac_exeext; then
  17909. eval "$as_ac_var=yes"
  17910. else
  17911. echo "$as_me: failed program was:" >&5
  17912. sed 's/^/| /' conftest.$ac_ext >&5
  17913. eval "$as_ac_var=no"
  17914. fi
  17915. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17916. conftest$ac_exeext conftest.$ac_ext
  17917. fi
  17918. ac_res=`eval echo '${'$as_ac_var'}'`
  17919. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17920. echo "${ECHO_T}$ac_res" >&6; }
  17921. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17922. cat >>confdefs.h <<_ACEOF
  17923. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17924. _ACEOF
  17925. fi
  17926. done
  17927. fi
  17928. for ac_func in asctime_r
  17929. do
  17930. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17931. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17932. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17933. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17934. echo $ECHO_N "(cached) $ECHO_C" >&6
  17935. else
  17936. cat >conftest.$ac_ext <<_ACEOF
  17937. /* confdefs.h. */
  17938. _ACEOF
  17939. cat confdefs.h >>conftest.$ac_ext
  17940. cat >>conftest.$ac_ext <<_ACEOF
  17941. /* end confdefs.h. */
  17942. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17943. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17944. #define $ac_func innocuous_$ac_func
  17945. /* System header to define __stub macros and hopefully few prototypes,
  17946. which can conflict with char $ac_func (); below.
  17947. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17948. <limits.h> exists even on freestanding compilers. */
  17949. #ifdef __STDC__
  17950. # include <limits.h>
  17951. #else
  17952. # include <assert.h>
  17953. #endif
  17954. #undef $ac_func
  17955. /* Override any GCC internal prototype to avoid an error.
  17956. Use char because int might match the return type of a GCC
  17957. builtin and then its argument prototype would still apply. */
  17958. #ifdef __cplusplus
  17959. extern "C"
  17960. #endif
  17961. char $ac_func ();
  17962. /* The GNU C library defines this for functions which it implements
  17963. to always fail with ENOSYS. Some functions are actually named
  17964. something starting with __ and the normal name is an alias. */
  17965. #if defined __stub_$ac_func || defined __stub___$ac_func
  17966. choke me
  17967. #endif
  17968. int
  17969. main ()
  17970. {
  17971. return $ac_func ();
  17972. ;
  17973. return 0;
  17974. }
  17975. _ACEOF
  17976. rm -f conftest.$ac_objext conftest$ac_exeext
  17977. if { (ac_try="$ac_link"
  17978. case "(($ac_try" in
  17979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17980. *) ac_try_echo=$ac_try;;
  17981. esac
  17982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17983. (eval "$ac_link") 2>conftest.er1
  17984. ac_status=$?
  17985. grep -v '^ *+' conftest.er1 >conftest.err
  17986. rm -f conftest.er1
  17987. cat conftest.err >&5
  17988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17989. (exit $ac_status); } && {
  17990. test -z "$ac_cxx_werror_flag" ||
  17991. test ! -s conftest.err
  17992. } && test -s conftest$ac_exeext &&
  17993. $as_test_x conftest$ac_exeext; then
  17994. eval "$as_ac_var=yes"
  17995. else
  17996. echo "$as_me: failed program was:" >&5
  17997. sed 's/^/| /' conftest.$ac_ext >&5
  17998. eval "$as_ac_var=no"
  17999. fi
  18000. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18001. conftest$ac_exeext conftest.$ac_ext
  18002. fi
  18003. ac_res=`eval echo '${'$as_ac_var'}'`
  18004. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18005. echo "${ECHO_T}$ac_res" >&6; }
  18006. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18007. cat >>confdefs.h <<_ACEOF
  18008. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18009. _ACEOF
  18010. if true; then
  18011. HAVE_ASCTIME_R_TRUE=
  18012. HAVE_ASCTIME_R_FALSE='#'
  18013. else
  18014. HAVE_ASCTIME_R_TRUE='#'
  18015. HAVE_ASCTIME_R_FALSE=
  18016. fi
  18017. else
  18018. if false; then
  18019. HAVE_ASCTIME_R_TRUE=
  18020. HAVE_ASCTIME_R_FALSE='#'
  18021. else
  18022. HAVE_ASCTIME_R_TRUE='#'
  18023. HAVE_ASCTIME_R_FALSE=
  18024. fi
  18025. fi
  18026. done
  18027. for ac_func in basename
  18028. do
  18029. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18030. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18031. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18032. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18033. echo $ECHO_N "(cached) $ECHO_C" >&6
  18034. else
  18035. cat >conftest.$ac_ext <<_ACEOF
  18036. /* confdefs.h. */
  18037. _ACEOF
  18038. cat confdefs.h >>conftest.$ac_ext
  18039. cat >>conftest.$ac_ext <<_ACEOF
  18040. /* end confdefs.h. */
  18041. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18042. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18043. #define $ac_func innocuous_$ac_func
  18044. /* System header to define __stub macros and hopefully few prototypes,
  18045. which can conflict with char $ac_func (); below.
  18046. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18047. <limits.h> exists even on freestanding compilers. */
  18048. #ifdef __STDC__
  18049. # include <limits.h>
  18050. #else
  18051. # include <assert.h>
  18052. #endif
  18053. #undef $ac_func
  18054. /* Override any GCC internal prototype to avoid an error.
  18055. Use char because int might match the return type of a GCC
  18056. builtin and then its argument prototype would still apply. */
  18057. #ifdef __cplusplus
  18058. extern "C"
  18059. #endif
  18060. char $ac_func ();
  18061. /* The GNU C library defines this for functions which it implements
  18062. to always fail with ENOSYS. Some functions are actually named
  18063. something starting with __ and the normal name is an alias. */
  18064. #if defined __stub_$ac_func || defined __stub___$ac_func
  18065. choke me
  18066. #endif
  18067. int
  18068. main ()
  18069. {
  18070. return $ac_func ();
  18071. ;
  18072. return 0;
  18073. }
  18074. _ACEOF
  18075. rm -f conftest.$ac_objext conftest$ac_exeext
  18076. if { (ac_try="$ac_link"
  18077. case "(($ac_try" in
  18078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18079. *) ac_try_echo=$ac_try;;
  18080. esac
  18081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18082. (eval "$ac_link") 2>conftest.er1
  18083. ac_status=$?
  18084. grep -v '^ *+' conftest.er1 >conftest.err
  18085. rm -f conftest.er1
  18086. cat conftest.err >&5
  18087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18088. (exit $ac_status); } && {
  18089. test -z "$ac_cxx_werror_flag" ||
  18090. test ! -s conftest.err
  18091. } && test -s conftest$ac_exeext &&
  18092. $as_test_x conftest$ac_exeext; then
  18093. eval "$as_ac_var=yes"
  18094. else
  18095. echo "$as_me: failed program was:" >&5
  18096. sed 's/^/| /' conftest.$ac_ext >&5
  18097. eval "$as_ac_var=no"
  18098. fi
  18099. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18100. conftest$ac_exeext conftest.$ac_ext
  18101. fi
  18102. ac_res=`eval echo '${'$as_ac_var'}'`
  18103. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18104. echo "${ECHO_T}$ac_res" >&6; }
  18105. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18106. cat >>confdefs.h <<_ACEOF
  18107. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18108. _ACEOF
  18109. if true; then
  18110. HAVE_BASENAME_TRUE=
  18111. HAVE_BASENAME_FALSE='#'
  18112. else
  18113. HAVE_BASENAME_TRUE='#'
  18114. HAVE_BASENAME_FALSE=
  18115. fi
  18116. else
  18117. if false; then
  18118. HAVE_BASENAME_TRUE=
  18119. HAVE_BASENAME_FALSE='#'
  18120. else
  18121. HAVE_BASENAME_TRUE='#'
  18122. HAVE_BASENAME_FALSE=
  18123. fi
  18124. fi
  18125. done
  18126. for ac_func in gai_strerror
  18127. do
  18128. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18129. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18130. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18131. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18132. echo $ECHO_N "(cached) $ECHO_C" >&6
  18133. else
  18134. cat >conftest.$ac_ext <<_ACEOF
  18135. /* confdefs.h. */
  18136. _ACEOF
  18137. cat confdefs.h >>conftest.$ac_ext
  18138. cat >>conftest.$ac_ext <<_ACEOF
  18139. /* end confdefs.h. */
  18140. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18141. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18142. #define $ac_func innocuous_$ac_func
  18143. /* System header to define __stub macros and hopefully few prototypes,
  18144. which can conflict with char $ac_func (); below.
  18145. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18146. <limits.h> exists even on freestanding compilers. */
  18147. #ifdef __STDC__
  18148. # include <limits.h>
  18149. #else
  18150. # include <assert.h>
  18151. #endif
  18152. #undef $ac_func
  18153. /* Override any GCC internal prototype to avoid an error.
  18154. Use char because int might match the return type of a GCC
  18155. builtin and then its argument prototype would still apply. */
  18156. #ifdef __cplusplus
  18157. extern "C"
  18158. #endif
  18159. char $ac_func ();
  18160. /* The GNU C library defines this for functions which it implements
  18161. to always fail with ENOSYS. Some functions are actually named
  18162. something starting with __ and the normal name is an alias. */
  18163. #if defined __stub_$ac_func || defined __stub___$ac_func
  18164. choke me
  18165. #endif
  18166. int
  18167. main ()
  18168. {
  18169. return $ac_func ();
  18170. ;
  18171. return 0;
  18172. }
  18173. _ACEOF
  18174. rm -f conftest.$ac_objext conftest$ac_exeext
  18175. if { (ac_try="$ac_link"
  18176. case "(($ac_try" in
  18177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18178. *) ac_try_echo=$ac_try;;
  18179. esac
  18180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18181. (eval "$ac_link") 2>conftest.er1
  18182. ac_status=$?
  18183. grep -v '^ *+' conftest.er1 >conftest.err
  18184. rm -f conftest.er1
  18185. cat conftest.err >&5
  18186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18187. (exit $ac_status); } && {
  18188. test -z "$ac_cxx_werror_flag" ||
  18189. test ! -s conftest.err
  18190. } && test -s conftest$ac_exeext &&
  18191. $as_test_x conftest$ac_exeext; then
  18192. eval "$as_ac_var=yes"
  18193. else
  18194. echo "$as_me: failed program was:" >&5
  18195. sed 's/^/| /' conftest.$ac_ext >&5
  18196. eval "$as_ac_var=no"
  18197. fi
  18198. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18199. conftest$ac_exeext conftest.$ac_ext
  18200. fi
  18201. ac_res=`eval echo '${'$as_ac_var'}'`
  18202. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18203. echo "${ECHO_T}$ac_res" >&6; }
  18204. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18205. cat >>confdefs.h <<_ACEOF
  18206. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18207. _ACEOF
  18208. if true; then
  18209. HAVE_GAI_STRERROR_TRUE=
  18210. HAVE_GAI_STRERROR_FALSE='#'
  18211. else
  18212. HAVE_GAI_STRERROR_TRUE='#'
  18213. HAVE_GAI_STRERROR_FALSE=
  18214. fi
  18215. else
  18216. if false; then
  18217. HAVE_GAI_STRERROR_TRUE=
  18218. HAVE_GAI_STRERROR_FALSE='#'
  18219. else
  18220. HAVE_GAI_STRERROR_TRUE='#'
  18221. HAVE_GAI_STRERROR_FALSE=
  18222. fi
  18223. fi
  18224. done
  18225. for ac_func in getaddrinfo
  18226. do
  18227. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18228. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18229. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18230. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18231. echo $ECHO_N "(cached) $ECHO_C" >&6
  18232. else
  18233. cat >conftest.$ac_ext <<_ACEOF
  18234. /* confdefs.h. */
  18235. _ACEOF
  18236. cat confdefs.h >>conftest.$ac_ext
  18237. cat >>conftest.$ac_ext <<_ACEOF
  18238. /* end confdefs.h. */
  18239. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18240. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18241. #define $ac_func innocuous_$ac_func
  18242. /* System header to define __stub macros and hopefully few prototypes,
  18243. which can conflict with char $ac_func (); below.
  18244. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18245. <limits.h> exists even on freestanding compilers. */
  18246. #ifdef __STDC__
  18247. # include <limits.h>
  18248. #else
  18249. # include <assert.h>
  18250. #endif
  18251. #undef $ac_func
  18252. /* Override any GCC internal prototype to avoid an error.
  18253. Use char because int might match the return type of a GCC
  18254. builtin and then its argument prototype would still apply. */
  18255. #ifdef __cplusplus
  18256. extern "C"
  18257. #endif
  18258. char $ac_func ();
  18259. /* The GNU C library defines this for functions which it implements
  18260. to always fail with ENOSYS. Some functions are actually named
  18261. something starting with __ and the normal name is an alias. */
  18262. #if defined __stub_$ac_func || defined __stub___$ac_func
  18263. choke me
  18264. #endif
  18265. int
  18266. main ()
  18267. {
  18268. return $ac_func ();
  18269. ;
  18270. return 0;
  18271. }
  18272. _ACEOF
  18273. rm -f conftest.$ac_objext conftest$ac_exeext
  18274. if { (ac_try="$ac_link"
  18275. case "(($ac_try" in
  18276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18277. *) ac_try_echo=$ac_try;;
  18278. esac
  18279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18280. (eval "$ac_link") 2>conftest.er1
  18281. ac_status=$?
  18282. grep -v '^ *+' conftest.er1 >conftest.err
  18283. rm -f conftest.er1
  18284. cat conftest.err >&5
  18285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18286. (exit $ac_status); } && {
  18287. test -z "$ac_cxx_werror_flag" ||
  18288. test ! -s conftest.err
  18289. } && test -s conftest$ac_exeext &&
  18290. $as_test_x conftest$ac_exeext; then
  18291. eval "$as_ac_var=yes"
  18292. else
  18293. echo "$as_me: failed program was:" >&5
  18294. sed 's/^/| /' conftest.$ac_ext >&5
  18295. eval "$as_ac_var=no"
  18296. fi
  18297. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18298. conftest$ac_exeext conftest.$ac_ext
  18299. fi
  18300. ac_res=`eval echo '${'$as_ac_var'}'`
  18301. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18302. echo "${ECHO_T}$ac_res" >&6; }
  18303. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18304. cat >>confdefs.h <<_ACEOF
  18305. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18306. _ACEOF
  18307. if true; then
  18308. HAVE_GETADDRINFO_TRUE=
  18309. HAVE_GETADDRINFO_FALSE='#'
  18310. else
  18311. HAVE_GETADDRINFO_TRUE='#'
  18312. HAVE_GETADDRINFO_FALSE=
  18313. fi
  18314. else
  18315. if false; then
  18316. HAVE_GETADDRINFO_TRUE=
  18317. HAVE_GETADDRINFO_FALSE='#'
  18318. else
  18319. HAVE_GETADDRINFO_TRUE='#'
  18320. HAVE_GETADDRINFO_FALSE=
  18321. fi
  18322. fi
  18323. done
  18324. for ac_func in gettimeofday
  18325. do
  18326. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18327. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18328. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18329. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18330. echo $ECHO_N "(cached) $ECHO_C" >&6
  18331. else
  18332. cat >conftest.$ac_ext <<_ACEOF
  18333. /* confdefs.h. */
  18334. _ACEOF
  18335. cat confdefs.h >>conftest.$ac_ext
  18336. cat >>conftest.$ac_ext <<_ACEOF
  18337. /* end confdefs.h. */
  18338. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18339. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18340. #define $ac_func innocuous_$ac_func
  18341. /* System header to define __stub macros and hopefully few prototypes,
  18342. which can conflict with char $ac_func (); below.
  18343. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18344. <limits.h> exists even on freestanding compilers. */
  18345. #ifdef __STDC__
  18346. # include <limits.h>
  18347. #else
  18348. # include <assert.h>
  18349. #endif
  18350. #undef $ac_func
  18351. /* Override any GCC internal prototype to avoid an error.
  18352. Use char because int might match the return type of a GCC
  18353. builtin and then its argument prototype would still apply. */
  18354. #ifdef __cplusplus
  18355. extern "C"
  18356. #endif
  18357. char $ac_func ();
  18358. /* The GNU C library defines this for functions which it implements
  18359. to always fail with ENOSYS. Some functions are actually named
  18360. something starting with __ and the normal name is an alias. */
  18361. #if defined __stub_$ac_func || defined __stub___$ac_func
  18362. choke me
  18363. #endif
  18364. int
  18365. main ()
  18366. {
  18367. return $ac_func ();
  18368. ;
  18369. return 0;
  18370. }
  18371. _ACEOF
  18372. rm -f conftest.$ac_objext conftest$ac_exeext
  18373. if { (ac_try="$ac_link"
  18374. case "(($ac_try" in
  18375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18376. *) ac_try_echo=$ac_try;;
  18377. esac
  18378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18379. (eval "$ac_link") 2>conftest.er1
  18380. ac_status=$?
  18381. grep -v '^ *+' conftest.er1 >conftest.err
  18382. rm -f conftest.er1
  18383. cat conftest.err >&5
  18384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18385. (exit $ac_status); } && {
  18386. test -z "$ac_cxx_werror_flag" ||
  18387. test ! -s conftest.err
  18388. } && test -s conftest$ac_exeext &&
  18389. $as_test_x conftest$ac_exeext; then
  18390. eval "$as_ac_var=yes"
  18391. else
  18392. echo "$as_me: failed program was:" >&5
  18393. sed 's/^/| /' conftest.$ac_ext >&5
  18394. eval "$as_ac_var=no"
  18395. fi
  18396. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18397. conftest$ac_exeext conftest.$ac_ext
  18398. fi
  18399. ac_res=`eval echo '${'$as_ac_var'}'`
  18400. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18401. echo "${ECHO_T}$ac_res" >&6; }
  18402. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18403. cat >>confdefs.h <<_ACEOF
  18404. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18405. _ACEOF
  18406. if true; then
  18407. HAVE_GETTIMEOFDAY_TRUE=
  18408. HAVE_GETTIMEOFDAY_FALSE='#'
  18409. else
  18410. HAVE_GETTIMEOFDAY_TRUE='#'
  18411. HAVE_GETTIMEOFDAY_FALSE=
  18412. fi
  18413. else
  18414. if false; then
  18415. HAVE_GETTIMEOFDAY_TRUE=
  18416. HAVE_GETTIMEOFDAY_FALSE='#'
  18417. else
  18418. HAVE_GETTIMEOFDAY_TRUE='#'
  18419. HAVE_GETTIMEOFDAY_FALSE=
  18420. fi
  18421. fi
  18422. done
  18423. for ac_func in inet_aton
  18424. do
  18425. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18426. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18427. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18428. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18429. echo $ECHO_N "(cached) $ECHO_C" >&6
  18430. else
  18431. cat >conftest.$ac_ext <<_ACEOF
  18432. /* confdefs.h. */
  18433. _ACEOF
  18434. cat confdefs.h >>conftest.$ac_ext
  18435. cat >>conftest.$ac_ext <<_ACEOF
  18436. /* end confdefs.h. */
  18437. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18438. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18439. #define $ac_func innocuous_$ac_func
  18440. /* System header to define __stub macros and hopefully few prototypes,
  18441. which can conflict with char $ac_func (); below.
  18442. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18443. <limits.h> exists even on freestanding compilers. */
  18444. #ifdef __STDC__
  18445. # include <limits.h>
  18446. #else
  18447. # include <assert.h>
  18448. #endif
  18449. #undef $ac_func
  18450. /* Override any GCC internal prototype to avoid an error.
  18451. Use char because int might match the return type of a GCC
  18452. builtin and then its argument prototype would still apply. */
  18453. #ifdef __cplusplus
  18454. extern "C"
  18455. #endif
  18456. char $ac_func ();
  18457. /* The GNU C library defines this for functions which it implements
  18458. to always fail with ENOSYS. Some functions are actually named
  18459. something starting with __ and the normal name is an alias. */
  18460. #if defined __stub_$ac_func || defined __stub___$ac_func
  18461. choke me
  18462. #endif
  18463. int
  18464. main ()
  18465. {
  18466. return $ac_func ();
  18467. ;
  18468. return 0;
  18469. }
  18470. _ACEOF
  18471. rm -f conftest.$ac_objext conftest$ac_exeext
  18472. if { (ac_try="$ac_link"
  18473. case "(($ac_try" in
  18474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18475. *) ac_try_echo=$ac_try;;
  18476. esac
  18477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18478. (eval "$ac_link") 2>conftest.er1
  18479. ac_status=$?
  18480. grep -v '^ *+' conftest.er1 >conftest.err
  18481. rm -f conftest.er1
  18482. cat conftest.err >&5
  18483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18484. (exit $ac_status); } && {
  18485. test -z "$ac_cxx_werror_flag" ||
  18486. test ! -s conftest.err
  18487. } && test -s conftest$ac_exeext &&
  18488. $as_test_x conftest$ac_exeext; then
  18489. eval "$as_ac_var=yes"
  18490. else
  18491. echo "$as_me: failed program was:" >&5
  18492. sed 's/^/| /' conftest.$ac_ext >&5
  18493. eval "$as_ac_var=no"
  18494. fi
  18495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18496. conftest$ac_exeext conftest.$ac_ext
  18497. fi
  18498. ac_res=`eval echo '${'$as_ac_var'}'`
  18499. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18500. echo "${ECHO_T}$ac_res" >&6; }
  18501. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18502. cat >>confdefs.h <<_ACEOF
  18503. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18504. _ACEOF
  18505. if true; then
  18506. HAVE_INET_ATON_TRUE=
  18507. HAVE_INET_ATON_FALSE='#'
  18508. else
  18509. HAVE_INET_ATON_TRUE='#'
  18510. HAVE_INET_ATON_FALSE=
  18511. fi
  18512. else
  18513. if false; then
  18514. HAVE_INET_ATON_TRUE=
  18515. HAVE_INET_ATON_FALSE='#'
  18516. else
  18517. HAVE_INET_ATON_TRUE='#'
  18518. HAVE_INET_ATON_FALSE=
  18519. fi
  18520. fi
  18521. done
  18522. for ac_func in localtime_r
  18523. do
  18524. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18525. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18526. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18527. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18528. echo $ECHO_N "(cached) $ECHO_C" >&6
  18529. else
  18530. cat >conftest.$ac_ext <<_ACEOF
  18531. /* confdefs.h. */
  18532. _ACEOF
  18533. cat confdefs.h >>conftest.$ac_ext
  18534. cat >>conftest.$ac_ext <<_ACEOF
  18535. /* end confdefs.h. */
  18536. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18537. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18538. #define $ac_func innocuous_$ac_func
  18539. /* System header to define __stub macros and hopefully few prototypes,
  18540. which can conflict with char $ac_func (); below.
  18541. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18542. <limits.h> exists even on freestanding compilers. */
  18543. #ifdef __STDC__
  18544. # include <limits.h>
  18545. #else
  18546. # include <assert.h>
  18547. #endif
  18548. #undef $ac_func
  18549. /* Override any GCC internal prototype to avoid an error.
  18550. Use char because int might match the return type of a GCC
  18551. builtin and then its argument prototype would still apply. */
  18552. #ifdef __cplusplus
  18553. extern "C"
  18554. #endif
  18555. char $ac_func ();
  18556. /* The GNU C library defines this for functions which it implements
  18557. to always fail with ENOSYS. Some functions are actually named
  18558. something starting with __ and the normal name is an alias. */
  18559. #if defined __stub_$ac_func || defined __stub___$ac_func
  18560. choke me
  18561. #endif
  18562. int
  18563. main ()
  18564. {
  18565. return $ac_func ();
  18566. ;
  18567. return 0;
  18568. }
  18569. _ACEOF
  18570. rm -f conftest.$ac_objext conftest$ac_exeext
  18571. if { (ac_try="$ac_link"
  18572. case "(($ac_try" in
  18573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18574. *) ac_try_echo=$ac_try;;
  18575. esac
  18576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18577. (eval "$ac_link") 2>conftest.er1
  18578. ac_status=$?
  18579. grep -v '^ *+' conftest.er1 >conftest.err
  18580. rm -f conftest.er1
  18581. cat conftest.err >&5
  18582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18583. (exit $ac_status); } && {
  18584. test -z "$ac_cxx_werror_flag" ||
  18585. test ! -s conftest.err
  18586. } && test -s conftest$ac_exeext &&
  18587. $as_test_x conftest$ac_exeext; then
  18588. eval "$as_ac_var=yes"
  18589. else
  18590. echo "$as_me: failed program was:" >&5
  18591. sed 's/^/| /' conftest.$ac_ext >&5
  18592. eval "$as_ac_var=no"
  18593. fi
  18594. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18595. conftest$ac_exeext conftest.$ac_ext
  18596. fi
  18597. ac_res=`eval echo '${'$as_ac_var'}'`
  18598. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18599. echo "${ECHO_T}$ac_res" >&6; }
  18600. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18601. cat >>confdefs.h <<_ACEOF
  18602. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18603. _ACEOF
  18604. if true; then
  18605. HAVE_LOCALTIME_R_TRUE=
  18606. HAVE_LOCALTIME_R_FALSE='#'
  18607. else
  18608. HAVE_LOCALTIME_R_TRUE='#'
  18609. HAVE_LOCALTIME_R_FALSE=
  18610. fi
  18611. else
  18612. if false; then
  18613. HAVE_LOCALTIME_R_TRUE=
  18614. HAVE_LOCALTIME_R_FALSE='#'
  18615. else
  18616. HAVE_LOCALTIME_R_TRUE='#'
  18617. HAVE_LOCALTIME_R_FALSE=
  18618. fi
  18619. fi
  18620. done
  18621. for ac_func in strptime
  18622. do
  18623. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18624. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18625. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18626. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18627. echo $ECHO_N "(cached) $ECHO_C" >&6
  18628. else
  18629. cat >conftest.$ac_ext <<_ACEOF
  18630. /* confdefs.h. */
  18631. _ACEOF
  18632. cat confdefs.h >>conftest.$ac_ext
  18633. cat >>conftest.$ac_ext <<_ACEOF
  18634. /* end confdefs.h. */
  18635. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18636. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18637. #define $ac_func innocuous_$ac_func
  18638. /* System header to define __stub macros and hopefully few prototypes,
  18639. which can conflict with char $ac_func (); below.
  18640. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18641. <limits.h> exists even on freestanding compilers. */
  18642. #ifdef __STDC__
  18643. # include <limits.h>
  18644. #else
  18645. # include <assert.h>
  18646. #endif
  18647. #undef $ac_func
  18648. /* Override any GCC internal prototype to avoid an error.
  18649. Use char because int might match the return type of a GCC
  18650. builtin and then its argument prototype would still apply. */
  18651. #ifdef __cplusplus
  18652. extern "C"
  18653. #endif
  18654. char $ac_func ();
  18655. /* The GNU C library defines this for functions which it implements
  18656. to always fail with ENOSYS. Some functions are actually named
  18657. something starting with __ and the normal name is an alias. */
  18658. #if defined __stub_$ac_func || defined __stub___$ac_func
  18659. choke me
  18660. #endif
  18661. int
  18662. main ()
  18663. {
  18664. return $ac_func ();
  18665. ;
  18666. return 0;
  18667. }
  18668. _ACEOF
  18669. rm -f conftest.$ac_objext conftest$ac_exeext
  18670. if { (ac_try="$ac_link"
  18671. case "(($ac_try" in
  18672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18673. *) ac_try_echo=$ac_try;;
  18674. esac
  18675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18676. (eval "$ac_link") 2>conftest.er1
  18677. ac_status=$?
  18678. grep -v '^ *+' conftest.er1 >conftest.err
  18679. rm -f conftest.er1
  18680. cat conftest.err >&5
  18681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18682. (exit $ac_status); } && {
  18683. test -z "$ac_cxx_werror_flag" ||
  18684. test ! -s conftest.err
  18685. } && test -s conftest$ac_exeext &&
  18686. $as_test_x conftest$ac_exeext; then
  18687. eval "$as_ac_var=yes"
  18688. else
  18689. echo "$as_me: failed program was:" >&5
  18690. sed 's/^/| /' conftest.$ac_ext >&5
  18691. eval "$as_ac_var=no"
  18692. fi
  18693. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18694. conftest$ac_exeext conftest.$ac_ext
  18695. fi
  18696. ac_res=`eval echo '${'$as_ac_var'}'`
  18697. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18698. echo "${ECHO_T}$ac_res" >&6; }
  18699. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18700. cat >>confdefs.h <<_ACEOF
  18701. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18702. _ACEOF
  18703. if true; then
  18704. HAVE_STRPTIME_TRUE=
  18705. HAVE_STRPTIME_FALSE='#'
  18706. else
  18707. HAVE_STRPTIME_TRUE='#'
  18708. HAVE_STRPTIME_FALSE=
  18709. fi
  18710. else
  18711. if false; then
  18712. HAVE_STRPTIME_TRUE=
  18713. HAVE_STRPTIME_FALSE='#'
  18714. else
  18715. HAVE_STRPTIME_TRUE='#'
  18716. HAVE_STRPTIME_FALSE=
  18717. fi
  18718. fi
  18719. done
  18720. for ac_func in timegm
  18721. do
  18722. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18723. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18724. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18725. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18726. echo $ECHO_N "(cached) $ECHO_C" >&6
  18727. else
  18728. cat >conftest.$ac_ext <<_ACEOF
  18729. /* confdefs.h. */
  18730. _ACEOF
  18731. cat confdefs.h >>conftest.$ac_ext
  18732. cat >>conftest.$ac_ext <<_ACEOF
  18733. /* end confdefs.h. */
  18734. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18735. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18736. #define $ac_func innocuous_$ac_func
  18737. /* System header to define __stub macros and hopefully few prototypes,
  18738. which can conflict with char $ac_func (); below.
  18739. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18740. <limits.h> exists even on freestanding compilers. */
  18741. #ifdef __STDC__
  18742. # include <limits.h>
  18743. #else
  18744. # include <assert.h>
  18745. #endif
  18746. #undef $ac_func
  18747. /* Override any GCC internal prototype to avoid an error.
  18748. Use char because int might match the return type of a GCC
  18749. builtin and then its argument prototype would still apply. */
  18750. #ifdef __cplusplus
  18751. extern "C"
  18752. #endif
  18753. char $ac_func ();
  18754. /* The GNU C library defines this for functions which it implements
  18755. to always fail with ENOSYS. Some functions are actually named
  18756. something starting with __ and the normal name is an alias. */
  18757. #if defined __stub_$ac_func || defined __stub___$ac_func
  18758. choke me
  18759. #endif
  18760. int
  18761. main ()
  18762. {
  18763. return $ac_func ();
  18764. ;
  18765. return 0;
  18766. }
  18767. _ACEOF
  18768. rm -f conftest.$ac_objext conftest$ac_exeext
  18769. if { (ac_try="$ac_link"
  18770. case "(($ac_try" in
  18771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18772. *) ac_try_echo=$ac_try;;
  18773. esac
  18774. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18775. (eval "$ac_link") 2>conftest.er1
  18776. ac_status=$?
  18777. grep -v '^ *+' conftest.er1 >conftest.err
  18778. rm -f conftest.er1
  18779. cat conftest.err >&5
  18780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18781. (exit $ac_status); } && {
  18782. test -z "$ac_cxx_werror_flag" ||
  18783. test ! -s conftest.err
  18784. } && test -s conftest$ac_exeext &&
  18785. $as_test_x conftest$ac_exeext; then
  18786. eval "$as_ac_var=yes"
  18787. else
  18788. echo "$as_me: failed program was:" >&5
  18789. sed 's/^/| /' conftest.$ac_ext >&5
  18790. eval "$as_ac_var=no"
  18791. fi
  18792. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18793. conftest$ac_exeext conftest.$ac_ext
  18794. fi
  18795. ac_res=`eval echo '${'$as_ac_var'}'`
  18796. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18797. echo "${ECHO_T}$ac_res" >&6; }
  18798. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18799. cat >>confdefs.h <<_ACEOF
  18800. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18801. _ACEOF
  18802. if true; then
  18803. HAVE_TIMEGM_TRUE=
  18804. HAVE_TIMEGM_FALSE='#'
  18805. else
  18806. HAVE_TIMEGM_TRUE='#'
  18807. HAVE_TIMEGM_FALSE=
  18808. fi
  18809. else
  18810. if false; then
  18811. HAVE_TIMEGM_TRUE=
  18812. HAVE_TIMEGM_FALSE='#'
  18813. else
  18814. HAVE_TIMEGM_TRUE='#'
  18815. HAVE_TIMEGM_FALSE=
  18816. fi
  18817. fi
  18818. done
  18819. case "$target" in
  18820. *mingw*)
  18821. if true; then
  18822. HAVE_GETADDRINFO_TRUE=
  18823. HAVE_GETADDRINFO_FALSE='#'
  18824. else
  18825. HAVE_GETADDRINFO_TRUE='#'
  18826. HAVE_GETADDRINFO_FALSE=
  18827. fi
  18828. if false; then
  18829. HAVE_GAI_STRERROR_TRUE=
  18830. HAVE_GAI_STRERROR_FALSE='#'
  18831. else
  18832. HAVE_GAI_STRERROR_TRUE='#'
  18833. HAVE_GAI_STRERROR_FALSE=
  18834. fi
  18835. ;;
  18836. esac
  18837. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  18838. cat >confcache <<\_ACEOF
  18839. # This file is a shell script that caches the results of configure
  18840. # tests run on this system so they can be shared between configure
  18841. # scripts and configure runs, see configure's option --config-cache.
  18842. # It is not useful on other systems. If it contains results you don't
  18843. # want to keep, you may remove or edit it.
  18844. #
  18845. # config.status only pays attention to the cache file if you give it
  18846. # the --recheck option to rerun configure.
  18847. #
  18848. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18849. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18850. # following values.
  18851. _ACEOF
  18852. # The following way of writing the cache mishandles newlines in values,
  18853. # but we know of no workaround that is simple, portable, and efficient.
  18854. # So, we kill variables containing newlines.
  18855. # Ultrix sh set writes to stderr and can't be redirected directly,
  18856. # and sets the high bit in the cache file unless we assign to the vars.
  18857. (
  18858. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18859. eval ac_val=\$$ac_var
  18860. case $ac_val in #(
  18861. *${as_nl}*)
  18862. case $ac_var in #(
  18863. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  18864. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  18865. esac
  18866. case $ac_var in #(
  18867. _ | IFS | as_nl) ;; #(
  18868. *) $as_unset $ac_var ;;
  18869. esac ;;
  18870. esac
  18871. done
  18872. (set) 2>&1 |
  18873. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18874. *${as_nl}ac_space=\ *)
  18875. # `set' does not quote correctly, so add quotes (double-quote
  18876. # substitution turns \\\\ into \\, and sed turns \\ into \).
  18877. sed -n \
  18878. "s/'/'\\\\''/g;
  18879. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18880. ;; #(
  18881. *)
  18882. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18883. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18884. ;;
  18885. esac |
  18886. sort
  18887. ) |
  18888. sed '
  18889. /^ac_cv_env_/b end
  18890. t clear
  18891. :clear
  18892. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18893. t end
  18894. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18895. :end' >>confcache
  18896. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18897. if test -w "$cache_file"; then
  18898. test "x$cache_file" != "x/dev/null" &&
  18899. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  18900. echo "$as_me: updating cache $cache_file" >&6;}
  18901. cat confcache >$cache_file
  18902. else
  18903. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  18904. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18905. fi
  18906. fi
  18907. rm -f confcache
  18908. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18909. # Let make expand exec_prefix.
  18910. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18911. DEFS=-DHAVE_CONFIG_H
  18912. ac_libobjs=
  18913. ac_ltlibobjs=
  18914. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18915. # 1. Remove the extension, and $U if already installed.
  18916. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18917. ac_i=`echo "$ac_i" | sed "$ac_script"`
  18918. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18919. # will be set to the directory where LIBOBJS objects are built.
  18920. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18921. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  18922. done
  18923. LIBOBJS=$ac_libobjs
  18924. LTLIBOBJS=$ac_ltlibobjs
  18925. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18926. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  18927. Usually this means the macro was only invoked conditionally." >&5
  18928. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  18929. Usually this means the macro was only invoked conditionally." >&2;}
  18930. { (exit 1); exit 1; }; }
  18931. fi
  18932. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18933. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  18934. Usually this means the macro was only invoked conditionally." >&5
  18935. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  18936. Usually this means the macro was only invoked conditionally." >&2;}
  18937. { (exit 1); exit 1; }; }
  18938. fi
  18939. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18940. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  18941. Usually this means the macro was only invoked conditionally." >&5
  18942. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  18943. Usually this means the macro was only invoked conditionally." >&2;}
  18944. { (exit 1); exit 1; }; }
  18945. fi
  18946. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18947. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18948. Usually this means the macro was only invoked conditionally." >&5
  18949. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18950. Usually this means the macro was only invoked conditionally." >&2;}
  18951. { (exit 1); exit 1; }; }
  18952. fi
  18953. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18954. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18955. Usually this means the macro was only invoked conditionally." >&5
  18956. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18957. Usually this means the macro was only invoked conditionally." >&2;}
  18958. { (exit 1); exit 1; }; }
  18959. fi
  18960. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18961. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18962. Usually this means the macro was only invoked conditionally." >&5
  18963. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18964. Usually this means the macro was only invoked conditionally." >&2;}
  18965. { (exit 1); exit 1; }; }
  18966. fi
  18967. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18968. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18969. Usually this means the macro was only invoked conditionally." >&5
  18970. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18971. Usually this means the macro was only invoked conditionally." >&2;}
  18972. { (exit 1); exit 1; }; }
  18973. fi
  18974. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18975. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18976. Usually this means the macro was only invoked conditionally." >&5
  18977. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18978. Usually this means the macro was only invoked conditionally." >&2;}
  18979. { (exit 1); exit 1; }; }
  18980. fi
  18981. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18982. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18983. Usually this means the macro was only invoked conditionally." >&5
  18984. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18985. Usually this means the macro was only invoked conditionally." >&2;}
  18986. { (exit 1); exit 1; }; }
  18987. fi
  18988. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  18989. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18990. Usually this means the macro was only invoked conditionally." >&5
  18991. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18992. Usually this means the macro was only invoked conditionally." >&2;}
  18993. { (exit 1); exit 1; }; }
  18994. fi
  18995. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  18996. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18997. Usually this means the macro was only invoked conditionally." >&5
  18998. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18999. Usually this means the macro was only invoked conditionally." >&2;}
  19000. { (exit 1); exit 1; }; }
  19001. fi
  19002. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19003. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19004. Usually this means the macro was only invoked conditionally." >&5
  19005. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19006. Usually this means the macro was only invoked conditionally." >&2;}
  19007. { (exit 1); exit 1; }; }
  19008. fi
  19009. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19010. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19011. Usually this means the macro was only invoked conditionally." >&5
  19012. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19013. Usually this means the macro was only invoked conditionally." >&2;}
  19014. { (exit 1); exit 1; }; }
  19015. fi
  19016. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19017. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19018. Usually this means the macro was only invoked conditionally." >&5
  19019. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19020. Usually this means the macro was only invoked conditionally." >&2;}
  19021. { (exit 1); exit 1; }; }
  19022. fi
  19023. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19024. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19025. Usually this means the macro was only invoked conditionally." >&5
  19026. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19027. Usually this means the macro was only invoked conditionally." >&2;}
  19028. { (exit 1); exit 1; }; }
  19029. fi
  19030. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19031. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19032. Usually this means the macro was only invoked conditionally." >&5
  19033. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19034. Usually this means the macro was only invoked conditionally." >&2;}
  19035. { (exit 1); exit 1; }; }
  19036. fi
  19037. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19038. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19039. Usually this means the macro was only invoked conditionally." >&5
  19040. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19041. Usually this means the macro was only invoked conditionally." >&2;}
  19042. { (exit 1); exit 1; }; }
  19043. fi
  19044. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19045. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19046. Usually this means the macro was only invoked conditionally." >&5
  19047. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19048. Usually this means the macro was only invoked conditionally." >&2;}
  19049. { (exit 1); exit 1; }; }
  19050. fi
  19051. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19052. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19053. Usually this means the macro was only invoked conditionally." >&5
  19054. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19055. Usually this means the macro was only invoked conditionally." >&2;}
  19056. { (exit 1); exit 1; }; }
  19057. fi
  19058. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19059. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19060. Usually this means the macro was only invoked conditionally." >&5
  19061. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19062. Usually this means the macro was only invoked conditionally." >&2;}
  19063. { (exit 1); exit 1; }; }
  19064. fi
  19065. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19066. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19067. Usually this means the macro was only invoked conditionally." >&5
  19068. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19069. Usually this means the macro was only invoked conditionally." >&2;}
  19070. { (exit 1); exit 1; }; }
  19071. fi
  19072. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19073. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19074. Usually this means the macro was only invoked conditionally." >&5
  19075. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19076. Usually this means the macro was only invoked conditionally." >&2;}
  19077. { (exit 1); exit 1; }; }
  19078. fi
  19079. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19080. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19081. Usually this means the macro was only invoked conditionally." >&5
  19082. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19083. Usually this means the macro was only invoked conditionally." >&2;}
  19084. { (exit 1); exit 1; }; }
  19085. fi
  19086. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19087. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19088. Usually this means the macro was only invoked conditionally." >&5
  19089. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19090. Usually this means the macro was only invoked conditionally." >&2;}
  19091. { (exit 1); exit 1; }; }
  19092. fi
  19093. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19094. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19095. Usually this means the macro was only invoked conditionally." >&5
  19096. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19097. Usually this means the macro was only invoked conditionally." >&2;}
  19098. { (exit 1); exit 1; }; }
  19099. fi
  19100. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19101. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19102. Usually this means the macro was only invoked conditionally." >&5
  19103. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19104. Usually this means the macro was only invoked conditionally." >&2;}
  19105. { (exit 1); exit 1; }; }
  19106. fi
  19107. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19108. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19109. Usually this means the macro was only invoked conditionally." >&5
  19110. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19111. Usually this means the macro was only invoked conditionally." >&2;}
  19112. { (exit 1); exit 1; }; }
  19113. fi
  19114. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19115. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19116. Usually this means the macro was only invoked conditionally." >&5
  19117. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19118. Usually this means the macro was only invoked conditionally." >&2;}
  19119. { (exit 1); exit 1; }; }
  19120. fi
  19121. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19122. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19123. Usually this means the macro was only invoked conditionally." >&5
  19124. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19125. Usually this means the macro was only invoked conditionally." >&2;}
  19126. { (exit 1); exit 1; }; }
  19127. fi
  19128. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19129. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19130. Usually this means the macro was only invoked conditionally." >&5
  19131. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19132. Usually this means the macro was only invoked conditionally." >&2;}
  19133. { (exit 1); exit 1; }; }
  19134. fi
  19135. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19136. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19137. Usually this means the macro was only invoked conditionally." >&5
  19138. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19139. Usually this means the macro was only invoked conditionally." >&2;}
  19140. { (exit 1); exit 1; }; }
  19141. fi
  19142. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19143. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19144. Usually this means the macro was only invoked conditionally." >&5
  19145. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19146. Usually this means the macro was only invoked conditionally." >&2;}
  19147. { (exit 1); exit 1; }; }
  19148. fi
  19149. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19150. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19151. Usually this means the macro was only invoked conditionally." >&5
  19152. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19153. Usually this means the macro was only invoked conditionally." >&2;}
  19154. { (exit 1); exit 1; }; }
  19155. fi
  19156. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19157. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19158. Usually this means the macro was only invoked conditionally." >&5
  19159. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19160. Usually this means the macro was only invoked conditionally." >&2;}
  19161. { (exit 1); exit 1; }; }
  19162. fi
  19163. : ${CONFIG_STATUS=./config.status}
  19164. ac_clean_files_save=$ac_clean_files
  19165. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19166. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19167. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19168. cat >$CONFIG_STATUS <<_ACEOF
  19169. #! $SHELL
  19170. # Generated by $as_me.
  19171. # Run this file to recreate the current configuration.
  19172. # Compiler output produced by configure, useful for debugging
  19173. # configure, is in config.log if it exists.
  19174. debug=false
  19175. ac_cs_recheck=false
  19176. ac_cs_silent=false
  19177. SHELL=\${CONFIG_SHELL-$SHELL}
  19178. _ACEOF
  19179. cat >>$CONFIG_STATUS <<\_ACEOF
  19180. ## --------------------- ##
  19181. ## M4sh Initialization. ##
  19182. ## --------------------- ##
  19183. # Be more Bourne compatible
  19184. DUALCASE=1; export DUALCASE # for MKS sh
  19185. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19186. emulate sh
  19187. NULLCMD=:
  19188. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19189. # is contrary to our usage. Disable this feature.
  19190. alias -g '${1+"$@"}'='"$@"'
  19191. setopt NO_GLOB_SUBST
  19192. else
  19193. case `(set -o) 2>/dev/null` in
  19194. *posix*) set -o posix ;;
  19195. esac
  19196. fi
  19197. # PATH needs CR
  19198. # Avoid depending upon Character Ranges.
  19199. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19200. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19201. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19202. as_cr_digits='0123456789'
  19203. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19204. # The user is always right.
  19205. if test "${PATH_SEPARATOR+set}" != set; then
  19206. echo "#! /bin/sh" >conf$$.sh
  19207. echo "exit 0" >>conf$$.sh
  19208. chmod +x conf$$.sh
  19209. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19210. PATH_SEPARATOR=';'
  19211. else
  19212. PATH_SEPARATOR=:
  19213. fi
  19214. rm -f conf$$.sh
  19215. fi
  19216. # Support unset when possible.
  19217. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19218. as_unset=unset
  19219. else
  19220. as_unset=false
  19221. fi
  19222. # IFS
  19223. # We need space, tab and new line, in precisely that order. Quoting is
  19224. # there to prevent editors from complaining about space-tab.
  19225. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19226. # splitting by setting IFS to empty value.)
  19227. as_nl='
  19228. '
  19229. IFS=" "" $as_nl"
  19230. # Find who we are. Look in the path if we contain no directory separator.
  19231. case $0 in
  19232. *[\\/]* ) as_myself=$0 ;;
  19233. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19234. for as_dir in $PATH
  19235. do
  19236. IFS=$as_save_IFS
  19237. test -z "$as_dir" && as_dir=.
  19238. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19239. done
  19240. IFS=$as_save_IFS
  19241. ;;
  19242. esac
  19243. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19244. # in which case we are not to be found in the path.
  19245. if test "x$as_myself" = x; then
  19246. as_myself=$0
  19247. fi
  19248. if test ! -f "$as_myself"; then
  19249. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19250. { (exit 1); exit 1; }
  19251. fi
  19252. # Work around bugs in pre-3.0 UWIN ksh.
  19253. for as_var in ENV MAIL MAILPATH
  19254. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19255. done
  19256. PS1='$ '
  19257. PS2='> '
  19258. PS4='+ '
  19259. # NLS nuisances.
  19260. for as_var in \
  19261. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19262. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19263. LC_TELEPHONE LC_TIME
  19264. do
  19265. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19266. eval $as_var=C; export $as_var
  19267. else
  19268. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19269. fi
  19270. done
  19271. # Required to use basename.
  19272. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19273. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19274. as_expr=expr
  19275. else
  19276. as_expr=false
  19277. fi
  19278. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19279. as_basename=basename
  19280. else
  19281. as_basename=false
  19282. fi
  19283. # Name of the executable.
  19284. as_me=`$as_basename -- "$0" ||
  19285. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19286. X"$0" : 'X\(//\)$' \| \
  19287. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19288. echo X/"$0" |
  19289. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19290. s//\1/
  19291. q
  19292. }
  19293. /^X\/\(\/\/\)$/{
  19294. s//\1/
  19295. q
  19296. }
  19297. /^X\/\(\/\).*/{
  19298. s//\1/
  19299. q
  19300. }
  19301. s/.*/./; q'`
  19302. # CDPATH.
  19303. $as_unset CDPATH
  19304. as_lineno_1=$LINENO
  19305. as_lineno_2=$LINENO
  19306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19308. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19309. # uniformly replaced by the line number. The first 'sed' inserts a
  19310. # line-number line after each line using $LINENO; the second 'sed'
  19311. # does the real work. The second script uses 'N' to pair each
  19312. # line-number line with the line containing $LINENO, and appends
  19313. # trailing '-' during substitution so that $LINENO is not a special
  19314. # case at line end.
  19315. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19316. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19317. # E. McMahon (1931-1989) for sed's syntax. :-)
  19318. sed -n '
  19319. p
  19320. /[$]LINENO/=
  19321. ' <$as_myself |
  19322. sed '
  19323. s/[$]LINENO.*/&-/
  19324. t lineno
  19325. b
  19326. :lineno
  19327. N
  19328. :loop
  19329. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19330. t loop
  19331. s/-\n.*//
  19332. ' >$as_me.lineno &&
  19333. chmod +x "$as_me.lineno" ||
  19334. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19335. { (exit 1); exit 1; }; }
  19336. # Don't try to exec as it changes $[0], causing all sort of problems
  19337. # (the dirname of $[0] is not the place where we might find the
  19338. # original and so on. Autoconf is especially sensitive to this).
  19339. . "./$as_me.lineno"
  19340. # Exit status is that of the last command.
  19341. exit
  19342. }
  19343. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19344. as_dirname=dirname
  19345. else
  19346. as_dirname=false
  19347. fi
  19348. ECHO_C= ECHO_N= ECHO_T=
  19349. case `echo -n x` in
  19350. -n*)
  19351. case `echo 'x\c'` in
  19352. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19353. *) ECHO_C='\c';;
  19354. esac;;
  19355. *)
  19356. ECHO_N='-n';;
  19357. esac
  19358. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19359. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19360. as_expr=expr
  19361. else
  19362. as_expr=false
  19363. fi
  19364. rm -f conf$$ conf$$.exe conf$$.file
  19365. if test -d conf$$.dir; then
  19366. rm -f conf$$.dir/conf$$.file
  19367. else
  19368. rm -f conf$$.dir
  19369. mkdir conf$$.dir
  19370. fi
  19371. echo >conf$$.file
  19372. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19373. as_ln_s='ln -s'
  19374. # ... but there are two gotchas:
  19375. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19376. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19377. # In both cases, we have to default to `cp -p'.
  19378. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19379. as_ln_s='cp -p'
  19380. elif ln conf$$.file conf$$ 2>/dev/null; then
  19381. as_ln_s=ln
  19382. else
  19383. as_ln_s='cp -p'
  19384. fi
  19385. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19386. rmdir conf$$.dir 2>/dev/null
  19387. if mkdir -p . 2>/dev/null; then
  19388. as_mkdir_p=:
  19389. else
  19390. test -d ./-p && rmdir ./-p
  19391. as_mkdir_p=false
  19392. fi
  19393. if test -x / >/dev/null 2>&1; then
  19394. as_test_x='test -x'
  19395. else
  19396. if ls -dL / >/dev/null 2>&1; then
  19397. as_ls_L_option=L
  19398. else
  19399. as_ls_L_option=
  19400. fi
  19401. as_test_x='
  19402. eval sh -c '\''
  19403. if test -d "$1"; then
  19404. test -d "$1/.";
  19405. else
  19406. case $1 in
  19407. -*)set "./$1";;
  19408. esac;
  19409. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19410. ???[sx]*):;;*)false;;esac;fi
  19411. '\'' sh
  19412. '
  19413. fi
  19414. as_executable_p=$as_test_x
  19415. # Sed expression to map a string onto a valid CPP name.
  19416. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19417. # Sed expression to map a string onto a valid variable name.
  19418. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19419. exec 6>&1
  19420. # Save the log message, to keep $[0] and so on meaningful, and to
  19421. # report actual input values of CONFIG_FILES etc. instead of their
  19422. # values after options handling.
  19423. ac_log="
  19424. This file was extended by aria2c $as_me 0.15.0dev, which was
  19425. generated by GNU Autoconf 2.61. Invocation command line was
  19426. CONFIG_FILES = $CONFIG_FILES
  19427. CONFIG_HEADERS = $CONFIG_HEADERS
  19428. CONFIG_LINKS = $CONFIG_LINKS
  19429. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19430. $ $0 $@
  19431. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19432. "
  19433. _ACEOF
  19434. cat >>$CONFIG_STATUS <<_ACEOF
  19435. # Files that config.status was made for.
  19436. config_files="$ac_config_files"
  19437. config_headers="$ac_config_headers"
  19438. config_commands="$ac_config_commands"
  19439. _ACEOF
  19440. cat >>$CONFIG_STATUS <<\_ACEOF
  19441. ac_cs_usage="\
  19442. \`$as_me' instantiates files from templates according to the
  19443. current configuration.
  19444. Usage: $0 [OPTIONS] [FILE]...
  19445. -h, --help print this help, then exit
  19446. -V, --version print version number and configuration settings, then exit
  19447. -q, --quiet do not print progress messages
  19448. -d, --debug don't remove temporary files
  19449. --recheck update $as_me by reconfiguring in the same conditions
  19450. --file=FILE[:TEMPLATE]
  19451. instantiate the configuration file FILE
  19452. --header=FILE[:TEMPLATE]
  19453. instantiate the configuration header FILE
  19454. Configuration files:
  19455. $config_files
  19456. Configuration headers:
  19457. $config_headers
  19458. Configuration commands:
  19459. $config_commands
  19460. Report bugs to <bug-autoconf@gnu.org>."
  19461. _ACEOF
  19462. cat >>$CONFIG_STATUS <<_ACEOF
  19463. ac_cs_version="\\
  19464. aria2c config.status 0.15.0dev
  19465. configured by $0, generated by GNU Autoconf 2.61,
  19466. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19467. Copyright (C) 2006 Free Software Foundation, Inc.
  19468. This config.status script is free software; the Free Software Foundation
  19469. gives unlimited permission to copy, distribute and modify it."
  19470. ac_pwd='$ac_pwd'
  19471. srcdir='$srcdir'
  19472. INSTALL='$INSTALL'
  19473. MKDIR_P='$MKDIR_P'
  19474. _ACEOF
  19475. cat >>$CONFIG_STATUS <<\_ACEOF
  19476. # If no file are specified by the user, then we need to provide default
  19477. # value. By we need to know if files were specified by the user.
  19478. ac_need_defaults=:
  19479. while test $# != 0
  19480. do
  19481. case $1 in
  19482. --*=*)
  19483. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19484. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19485. ac_shift=:
  19486. ;;
  19487. *)
  19488. ac_option=$1
  19489. ac_optarg=$2
  19490. ac_shift=shift
  19491. ;;
  19492. esac
  19493. case $ac_option in
  19494. # Handling of the options.
  19495. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19496. ac_cs_recheck=: ;;
  19497. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19498. echo "$ac_cs_version"; exit ;;
  19499. --debug | --debu | --deb | --de | --d | -d )
  19500. debug=: ;;
  19501. --file | --fil | --fi | --f )
  19502. $ac_shift
  19503. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19504. ac_need_defaults=false;;
  19505. --header | --heade | --head | --hea )
  19506. $ac_shift
  19507. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19508. ac_need_defaults=false;;
  19509. --he | --h)
  19510. # Conflict between --help and --header
  19511. { echo "$as_me: error: ambiguous option: $1
  19512. Try \`$0 --help' for more information." >&2
  19513. { (exit 1); exit 1; }; };;
  19514. --help | --hel | -h )
  19515. echo "$ac_cs_usage"; exit ;;
  19516. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19517. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19518. ac_cs_silent=: ;;
  19519. # This is an error.
  19520. -*) { echo "$as_me: error: unrecognized option: $1
  19521. Try \`$0 --help' for more information." >&2
  19522. { (exit 1); exit 1; }; } ;;
  19523. *) ac_config_targets="$ac_config_targets $1"
  19524. ac_need_defaults=false ;;
  19525. esac
  19526. shift
  19527. done
  19528. ac_configure_extra_args=
  19529. if $ac_cs_silent; then
  19530. exec 6>/dev/null
  19531. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19532. fi
  19533. _ACEOF
  19534. cat >>$CONFIG_STATUS <<_ACEOF
  19535. if \$ac_cs_recheck; then
  19536. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19537. CONFIG_SHELL=$SHELL
  19538. export CONFIG_SHELL
  19539. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19540. fi
  19541. _ACEOF
  19542. cat >>$CONFIG_STATUS <<\_ACEOF
  19543. exec 5>>config.log
  19544. {
  19545. echo
  19546. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19547. ## Running $as_me. ##
  19548. _ASBOX
  19549. echo "$ac_log"
  19550. } >&5
  19551. _ACEOF
  19552. cat >>$CONFIG_STATUS <<_ACEOF
  19553. #
  19554. # INIT-COMMANDS
  19555. #
  19556. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19557. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19558. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19559. # from automake < 1.5.
  19560. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19561. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19562. LINGUAS="${LINGUAS-%UNSET%}"
  19563. _ACEOF
  19564. cat >>$CONFIG_STATUS <<\_ACEOF
  19565. # Handling of arguments.
  19566. for ac_config_target in $ac_config_targets
  19567. do
  19568. case $ac_config_target in
  19569. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19570. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19571. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19572. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19573. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19574. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19575. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19576. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19577. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  19578. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19579. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19580. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19581. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19582. { (exit 1); exit 1; }; };;
  19583. esac
  19584. done
  19585. # If the user did not use the arguments to specify the items to instantiate,
  19586. # then the envvar interface is used. Set only those that are not.
  19587. # We use the long form for the default assignment because of an extremely
  19588. # bizarre bug on SunOS 4.1.3.
  19589. if $ac_need_defaults; then
  19590. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19591. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19592. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19593. fi
  19594. # Have a temporary directory for convenience. Make it in the build tree
  19595. # simply because there is no reason against having it here, and in addition,
  19596. # creating and moving files from /tmp can sometimes cause problems.
  19597. # Hook for its removal unless debugging.
  19598. # Note that there is a small window in which the directory will not be cleaned:
  19599. # after its creation but before its name has been assigned to `$tmp'.
  19600. $debug ||
  19601. {
  19602. tmp=
  19603. trap 'exit_status=$?
  19604. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19605. ' 0
  19606. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19607. }
  19608. # Create a (secure) tmp directory for tmp files.
  19609. {
  19610. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19611. test -n "$tmp" && test -d "$tmp"
  19612. } ||
  19613. {
  19614. tmp=./conf$$-$RANDOM
  19615. (umask 077 && mkdir "$tmp")
  19616. } ||
  19617. {
  19618. echo "$me: cannot create a temporary directory in ." >&2
  19619. { (exit 1); exit 1; }
  19620. }
  19621. #
  19622. # Set up the sed scripts for CONFIG_FILES section.
  19623. #
  19624. # No need to generate the scripts if there are no CONFIG_FILES.
  19625. # This happens for instance when ./config.status config.h
  19626. if test -n "$CONFIG_FILES"; then
  19627. _ACEOF
  19628. ac_delim='%!_!# '
  19629. for ac_last_try in false false false false false :; do
  19630. cat >conf$$subs.sed <<_ACEOF
  19631. SHELL!$SHELL$ac_delim
  19632. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  19633. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  19634. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  19635. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  19636. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  19637. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  19638. exec_prefix!$exec_prefix$ac_delim
  19639. prefix!$prefix$ac_delim
  19640. program_transform_name!$program_transform_name$ac_delim
  19641. bindir!$bindir$ac_delim
  19642. sbindir!$sbindir$ac_delim
  19643. libexecdir!$libexecdir$ac_delim
  19644. datarootdir!$datarootdir$ac_delim
  19645. datadir!$datadir$ac_delim
  19646. sysconfdir!$sysconfdir$ac_delim
  19647. sharedstatedir!$sharedstatedir$ac_delim
  19648. localstatedir!$localstatedir$ac_delim
  19649. includedir!$includedir$ac_delim
  19650. oldincludedir!$oldincludedir$ac_delim
  19651. docdir!$docdir$ac_delim
  19652. infodir!$infodir$ac_delim
  19653. htmldir!$htmldir$ac_delim
  19654. dvidir!$dvidir$ac_delim
  19655. pdfdir!$pdfdir$ac_delim
  19656. psdir!$psdir$ac_delim
  19657. libdir!$libdir$ac_delim
  19658. localedir!$localedir$ac_delim
  19659. mandir!$mandir$ac_delim
  19660. DEFS!$DEFS$ac_delim
  19661. ECHO_C!$ECHO_C$ac_delim
  19662. ECHO_N!$ECHO_N$ac_delim
  19663. ECHO_T!$ECHO_T$ac_delim
  19664. LIBS!$LIBS$ac_delim
  19665. build_alias!$build_alias$ac_delim
  19666. host_alias!$host_alias$ac_delim
  19667. target_alias!$target_alias$ac_delim
  19668. build!$build$ac_delim
  19669. build_cpu!$build_cpu$ac_delim
  19670. build_vendor!$build_vendor$ac_delim
  19671. build_os!$build_os$ac_delim
  19672. host!$host$ac_delim
  19673. host_cpu!$host_cpu$ac_delim
  19674. host_vendor!$host_vendor$ac_delim
  19675. host_os!$host_os$ac_delim
  19676. target!$target$ac_delim
  19677. target_cpu!$target_cpu$ac_delim
  19678. target_vendor!$target_vendor$ac_delim
  19679. target_os!$target_os$ac_delim
  19680. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  19681. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  19682. INSTALL_DATA!$INSTALL_DATA$ac_delim
  19683. am__isrc!$am__isrc$ac_delim
  19684. CYGPATH_W!$CYGPATH_W$ac_delim
  19685. PACKAGE!$PACKAGE$ac_delim
  19686. VERSION!$VERSION$ac_delim
  19687. ACLOCAL!$ACLOCAL$ac_delim
  19688. AUTOCONF!$AUTOCONF$ac_delim
  19689. AUTOMAKE!$AUTOMAKE$ac_delim
  19690. AUTOHEADER!$AUTOHEADER$ac_delim
  19691. MAKEINFO!$MAKEINFO$ac_delim
  19692. install_sh!$install_sh$ac_delim
  19693. STRIP!$STRIP$ac_delim
  19694. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  19695. mkdir_p!$mkdir_p$ac_delim
  19696. AWK!$AWK$ac_delim
  19697. SET_MAKE!$SET_MAKE$ac_delim
  19698. am__leading_dot!$am__leading_dot$ac_delim
  19699. AMTAR!$AMTAR$ac_delim
  19700. am__tar!$am__tar$ac_delim
  19701. am__untar!$am__untar$ac_delim
  19702. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  19703. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  19704. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  19705. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  19706. CXX!$CXX$ac_delim
  19707. CXXFLAGS!$CXXFLAGS$ac_delim
  19708. LDFLAGS!$LDFLAGS$ac_delim
  19709. CPPFLAGS!$CPPFLAGS$ac_delim
  19710. ac_ct_CXX!$ac_ct_CXX$ac_delim
  19711. EXEEXT!$EXEEXT$ac_delim
  19712. OBJEXT!$OBJEXT$ac_delim
  19713. DEPDIR!$DEPDIR$ac_delim
  19714. am__include!$am__include$ac_delim
  19715. am__quote!$am__quote$ac_delim
  19716. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  19717. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  19718. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  19719. CXXDEPMODE!$CXXDEPMODE$ac_delim
  19720. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  19721. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  19722. CC!$CC$ac_delim
  19723. CFLAGS!$CFLAGS$ac_delim
  19724. ac_ct_CC!$ac_ct_CC$ac_delim
  19725. CCDEPMODE!$CCDEPMODE$ac_delim
  19726. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  19727. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  19728. _ACEOF
  19729. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19730. break
  19731. elif $ac_last_try; then
  19732. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19733. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19734. { (exit 1); exit 1; }; }
  19735. else
  19736. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19737. fi
  19738. done
  19739. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19740. if test -n "$ac_eof"; then
  19741. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19742. ac_eof=`expr $ac_eof + 1`
  19743. fi
  19744. cat >>$CONFIG_STATUS <<_ACEOF
  19745. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  19746. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19747. _ACEOF
  19748. sed '
  19749. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19750. s/^/s,@/; s/!/@,|#_!!_#|/
  19751. :n
  19752. t n
  19753. s/'"$ac_delim"'$/,g/; t
  19754. s/$/\\/; p
  19755. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19756. ' >>$CONFIG_STATUS <conf$$subs.sed
  19757. rm -f conf$$subs.sed
  19758. cat >>$CONFIG_STATUS <<_ACEOF
  19759. CEOF$ac_eof
  19760. _ACEOF
  19761. ac_delim='%!_!# '
  19762. for ac_last_try in false false false false false :; do
  19763. cat >conf$$subs.sed <<_ACEOF
  19764. RANLIB!$RANLIB$ac_delim
  19765. YACC!$YACC$ac_delim
  19766. YFLAGS!$YFLAGS$ac_delim
  19767. CXXCPP!$CXXCPP$ac_delim
  19768. GREP!$GREP$ac_delim
  19769. EGREP!$EGREP$ac_delim
  19770. XML2_CONFIG!$XML2_CONFIG$ac_delim
  19771. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  19772. XML_LIBS!$XML_LIBS$ac_delim
  19773. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  19774. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  19775. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  19776. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  19777. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  19778. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  19779. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  19780. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  19781. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  19782. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  19783. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  19784. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  19785. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  19786. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  19787. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  19788. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  19789. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  19790. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  19791. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  19792. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  19793. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  19794. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  19795. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  19796. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  19797. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  19798. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  19799. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  19800. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  19801. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  19802. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  19803. ALLOCA!$ALLOCA$ac_delim
  19804. USE_NLS!$USE_NLS$ac_delim
  19805. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  19806. MSGFMT!$MSGFMT$ac_delim
  19807. GMSGFMT!$GMSGFMT$ac_delim
  19808. MSGFMT_015!$MSGFMT_015$ac_delim
  19809. GMSGFMT_015!$GMSGFMT_015$ac_delim
  19810. XGETTEXT!$XGETTEXT$ac_delim
  19811. XGETTEXT_015!$XGETTEXT_015$ac_delim
  19812. MSGMERGE!$MSGMERGE$ac_delim
  19813. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  19814. GLIBC2!$GLIBC2$ac_delim
  19815. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  19816. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  19817. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  19818. LIBPTH!$LIBPTH$ac_delim
  19819. LTLIBPTH!$LTLIBPTH$ac_delim
  19820. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  19821. LIBTHREAD!$LIBTHREAD$ac_delim
  19822. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  19823. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  19824. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  19825. LIBICONV!$LIBICONV$ac_delim
  19826. LTLIBICONV!$LTLIBICONV$ac_delim
  19827. INTLBISON!$INTLBISON$ac_delim
  19828. GLIBC21!$GLIBC21$ac_delim
  19829. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  19830. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  19831. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  19832. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  19833. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  19834. WOE32DLL!$WOE32DLL$ac_delim
  19835. WOE32!$WOE32$ac_delim
  19836. WINDRES!$WINDRES$ac_delim
  19837. LTLIBC!$LTLIBC$ac_delim
  19838. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  19839. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  19840. CATOBJEXT!$CATOBJEXT$ac_delim
  19841. DATADIRNAME!$DATADIRNAME$ac_delim
  19842. INSTOBJEXT!$INSTOBJEXT$ac_delim
  19843. GENCAT!$GENCAT$ac_delim
  19844. INTLOBJS!$INTLOBJS$ac_delim
  19845. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  19846. INTLLIBS!$INTLLIBS$ac_delim
  19847. LIBINTL!$LIBINTL$ac_delim
  19848. LTLIBINTL!$LTLIBINTL$ac_delim
  19849. POSUB!$POSUB$ac_delim
  19850. LIBOBJS!$LIBOBJS$ac_delim
  19851. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  19852. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  19853. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  19854. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  19855. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  19856. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  19857. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  19858. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  19859. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  19860. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  19861. _ACEOF
  19862. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19863. break
  19864. elif $ac_last_try; then
  19865. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19866. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19867. { (exit 1); exit 1; }; }
  19868. else
  19869. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19870. fi
  19871. done
  19872. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19873. if test -n "$ac_eof"; then
  19874. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19875. ac_eof=`expr $ac_eof + 1`
  19876. fi
  19877. cat >>$CONFIG_STATUS <<_ACEOF
  19878. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  19879. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19880. _ACEOF
  19881. sed '
  19882. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19883. s/^/s,@/; s/!/@,|#_!!_#|/
  19884. :n
  19885. t n
  19886. s/'"$ac_delim"'$/,g/; t
  19887. s/$/\\/; p
  19888. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19889. ' >>$CONFIG_STATUS <conf$$subs.sed
  19890. rm -f conf$$subs.sed
  19891. cat >>$CONFIG_STATUS <<_ACEOF
  19892. CEOF$ac_eof
  19893. _ACEOF
  19894. ac_delim='%!_!# '
  19895. for ac_last_try in false false false false false :; do
  19896. cat >conf$$subs.sed <<_ACEOF
  19897. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  19898. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  19899. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  19900. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  19901. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  19902. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  19903. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  19904. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  19905. LTLIBOBJS!$LTLIBOBJS$ac_delim
  19906. _ACEOF
  19907. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
  19908. break
  19909. elif $ac_last_try; then
  19910. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19911. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19912. { (exit 1); exit 1; }; }
  19913. else
  19914. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19915. fi
  19916. done
  19917. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19918. if test -n "$ac_eof"; then
  19919. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19920. ac_eof=`expr $ac_eof + 1`
  19921. fi
  19922. cat >>$CONFIG_STATUS <<_ACEOF
  19923. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  19924. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  19925. _ACEOF
  19926. sed '
  19927. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19928. s/^/s,@/; s/!/@,|#_!!_#|/
  19929. :n
  19930. t n
  19931. s/'"$ac_delim"'$/,g/; t
  19932. s/$/\\/; p
  19933. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19934. ' >>$CONFIG_STATUS <conf$$subs.sed
  19935. rm -f conf$$subs.sed
  19936. cat >>$CONFIG_STATUS <<_ACEOF
  19937. :end
  19938. s/|#_!!_#|//g
  19939. CEOF$ac_eof
  19940. _ACEOF
  19941. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19942. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19943. # trailing colons and then remove the whole line if VPATH becomes empty
  19944. # (actually we leave an empty line to preserve line numbers).
  19945. if test "x$srcdir" = x.; then
  19946. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19947. s/:*\$(srcdir):*/:/
  19948. s/:*\${srcdir}:*/:/
  19949. s/:*@srcdir@:*/:/
  19950. s/^\([^=]*=[ ]*\):*/\1/
  19951. s/:*$//
  19952. s/^[^=]*=[ ]*$//
  19953. }'
  19954. fi
  19955. cat >>$CONFIG_STATUS <<\_ACEOF
  19956. fi # test -n "$CONFIG_FILES"
  19957. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  19958. do
  19959. case $ac_tag in
  19960. :[FHLC]) ac_mode=$ac_tag; continue;;
  19961. esac
  19962. case $ac_mode$ac_tag in
  19963. :[FHL]*:*);;
  19964. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  19965. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  19966. { (exit 1); exit 1; }; };;
  19967. :[FH]-) ac_tag=-:-;;
  19968. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19969. esac
  19970. ac_save_IFS=$IFS
  19971. IFS=:
  19972. set x $ac_tag
  19973. IFS=$ac_save_IFS
  19974. shift
  19975. ac_file=$1
  19976. shift
  19977. case $ac_mode in
  19978. :L) ac_source=$1;;
  19979. :[FH])
  19980. ac_file_inputs=
  19981. for ac_f
  19982. do
  19983. case $ac_f in
  19984. -) ac_f="$tmp/stdin";;
  19985. *) # Look for the file first in the build tree, then in the source tree
  19986. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19987. # because $ac_f cannot contain `:'.
  19988. test -f "$ac_f" ||
  19989. case $ac_f in
  19990. [\\/$]*) false;;
  19991. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19992. esac ||
  19993. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  19994. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  19995. { (exit 1); exit 1; }; };;
  19996. esac
  19997. ac_file_inputs="$ac_file_inputs $ac_f"
  19998. done
  19999. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20000. # use $as_me), people would be surprised to read:
  20001. # /* config.h. Generated by config.status. */
  20002. configure_input="Generated from "`IFS=:
  20003. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20004. if test x"$ac_file" != x-; then
  20005. configure_input="$ac_file. $configure_input"
  20006. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20007. echo "$as_me: creating $ac_file" >&6;}
  20008. fi
  20009. case $ac_tag in
  20010. *:-:* | *:-) cat >"$tmp/stdin";;
  20011. esac
  20012. ;;
  20013. esac
  20014. ac_dir=`$as_dirname -- "$ac_file" ||
  20015. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20016. X"$ac_file" : 'X\(//\)[^/]' \| \
  20017. X"$ac_file" : 'X\(//\)$' \| \
  20018. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20019. echo X"$ac_file" |
  20020. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20021. s//\1/
  20022. q
  20023. }
  20024. /^X\(\/\/\)[^/].*/{
  20025. s//\1/
  20026. q
  20027. }
  20028. /^X\(\/\/\)$/{
  20029. s//\1/
  20030. q
  20031. }
  20032. /^X\(\/\).*/{
  20033. s//\1/
  20034. q
  20035. }
  20036. s/.*/./; q'`
  20037. { as_dir="$ac_dir"
  20038. case $as_dir in #(
  20039. -*) as_dir=./$as_dir;;
  20040. esac
  20041. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20042. as_dirs=
  20043. while :; do
  20044. case $as_dir in #(
  20045. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20046. *) as_qdir=$as_dir;;
  20047. esac
  20048. as_dirs="'$as_qdir' $as_dirs"
  20049. as_dir=`$as_dirname -- "$as_dir" ||
  20050. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20051. X"$as_dir" : 'X\(//\)[^/]' \| \
  20052. X"$as_dir" : 'X\(//\)$' \| \
  20053. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20054. echo X"$as_dir" |
  20055. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20056. s//\1/
  20057. q
  20058. }
  20059. /^X\(\/\/\)[^/].*/{
  20060. s//\1/
  20061. q
  20062. }
  20063. /^X\(\/\/\)$/{
  20064. s//\1/
  20065. q
  20066. }
  20067. /^X\(\/\).*/{
  20068. s//\1/
  20069. q
  20070. }
  20071. s/.*/./; q'`
  20072. test -d "$as_dir" && break
  20073. done
  20074. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20075. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20076. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20077. { (exit 1); exit 1; }; }; }
  20078. ac_builddir=.
  20079. case "$ac_dir" in
  20080. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20081. *)
  20082. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20083. # A ".." for each directory in $ac_dir_suffix.
  20084. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20085. case $ac_top_builddir_sub in
  20086. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20087. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20088. esac ;;
  20089. esac
  20090. ac_abs_top_builddir=$ac_pwd
  20091. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20092. # for backward compatibility:
  20093. ac_top_builddir=$ac_top_build_prefix
  20094. case $srcdir in
  20095. .) # We are building in place.
  20096. ac_srcdir=.
  20097. ac_top_srcdir=$ac_top_builddir_sub
  20098. ac_abs_top_srcdir=$ac_pwd ;;
  20099. [\\/]* | ?:[\\/]* ) # Absolute name.
  20100. ac_srcdir=$srcdir$ac_dir_suffix;
  20101. ac_top_srcdir=$srcdir
  20102. ac_abs_top_srcdir=$srcdir ;;
  20103. *) # Relative name.
  20104. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20105. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20106. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20107. esac
  20108. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20109. case $ac_mode in
  20110. :F)
  20111. #
  20112. # CONFIG_FILE
  20113. #
  20114. case $INSTALL in
  20115. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20116. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20117. esac
  20118. ac_MKDIR_P=$MKDIR_P
  20119. case $MKDIR_P in
  20120. [\\/$]* | ?:[\\/]* ) ;;
  20121. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20122. esac
  20123. _ACEOF
  20124. cat >>$CONFIG_STATUS <<\_ACEOF
  20125. # If the template does not know about datarootdir, expand it.
  20126. # FIXME: This hack should be removed a few years after 2.60.
  20127. ac_datarootdir_hack=; ac_datarootdir_seen=
  20128. case `sed -n '/datarootdir/ {
  20129. p
  20130. q
  20131. }
  20132. /@datadir@/p
  20133. /@docdir@/p
  20134. /@infodir@/p
  20135. /@localedir@/p
  20136. /@mandir@/p
  20137. ' $ac_file_inputs` in
  20138. *datarootdir*) ac_datarootdir_seen=yes;;
  20139. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20140. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20141. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20142. _ACEOF
  20143. cat >>$CONFIG_STATUS <<_ACEOF
  20144. ac_datarootdir_hack='
  20145. s&@datadir@&$datadir&g
  20146. s&@docdir@&$docdir&g
  20147. s&@infodir@&$infodir&g
  20148. s&@localedir@&$localedir&g
  20149. s&@mandir@&$mandir&g
  20150. s&\\\${datarootdir}&$datarootdir&g' ;;
  20151. esac
  20152. _ACEOF
  20153. # Neutralize VPATH when `$srcdir' = `.'.
  20154. # Shell code in configure.ac might set extrasub.
  20155. # FIXME: do we really want to maintain this feature?
  20156. cat >>$CONFIG_STATUS <<_ACEOF
  20157. sed "$ac_vpsub
  20158. $extrasub
  20159. _ACEOF
  20160. cat >>$CONFIG_STATUS <<\_ACEOF
  20161. :t
  20162. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20163. s&@configure_input@&$configure_input&;t t
  20164. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20165. s&@srcdir@&$ac_srcdir&;t t
  20166. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20167. s&@top_srcdir@&$ac_top_srcdir&;t t
  20168. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20169. s&@builddir@&$ac_builddir&;t t
  20170. s&@abs_builddir@&$ac_abs_builddir&;t t
  20171. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20172. s&@INSTALL@&$ac_INSTALL&;t t
  20173. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20174. $ac_datarootdir_hack
  20175. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20176. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20177. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20178. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20179. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20180. which seems to be undefined. Please make sure it is defined." >&5
  20181. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20182. which seems to be undefined. Please make sure it is defined." >&2;}
  20183. rm -f "$tmp/stdin"
  20184. case $ac_file in
  20185. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20186. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20187. esac
  20188. ;;
  20189. :H)
  20190. #
  20191. # CONFIG_HEADER
  20192. #
  20193. _ACEOF
  20194. # Transform confdefs.h into a sed script `conftest.defines', that
  20195. # substitutes the proper values into config.h.in to produce config.h.
  20196. rm -f conftest.defines conftest.tail
  20197. # First, append a space to every undef/define line, to ease matching.
  20198. echo 's/$/ /' >conftest.defines
  20199. # Then, protect against being on the right side of a sed subst, or in
  20200. # an unquoted here document, in config.status. If some macros were
  20201. # called several times there might be several #defines for the same
  20202. # symbol, which is useless. But do not sort them, since the last
  20203. # AC_DEFINE must be honored.
  20204. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20205. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20206. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20207. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20208. # just an empty string.
  20209. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20210. ac_dB='\\)[ (].*,\\1define\\2'
  20211. ac_dC=' '
  20212. ac_dD=' ,'
  20213. uniq confdefs.h |
  20214. sed -n '
  20215. t rset
  20216. :rset
  20217. s/^[ ]*#[ ]*define[ ][ ]*//
  20218. t ok
  20219. d
  20220. :ok
  20221. s/[\\&,]/\\&/g
  20222. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20223. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20224. ' >>conftest.defines
  20225. # Remove the space that was appended to ease matching.
  20226. # Then replace #undef with comments. This is necessary, for
  20227. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20228. # on some systems where configure will not decide to define it.
  20229. # (The regexp can be short, since the line contains either #define or #undef.)
  20230. echo 's/ $//
  20231. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20232. # Break up conftest.defines:
  20233. ac_max_sed_lines=50
  20234. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20235. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20236. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20237. # et cetera.
  20238. ac_in='$ac_file_inputs'
  20239. ac_out='"$tmp/out1"'
  20240. ac_nxt='"$tmp/out2"'
  20241. while :
  20242. do
  20243. # Write a here document:
  20244. cat >>$CONFIG_STATUS <<_ACEOF
  20245. # First, check the format of the line:
  20246. cat >"\$tmp/defines.sed" <<\\CEOF
  20247. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20248. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20249. b
  20250. :def
  20251. _ACEOF
  20252. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20253. echo 'CEOF
  20254. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20255. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20256. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20257. grep . conftest.tail >/dev/null || break
  20258. rm -f conftest.defines
  20259. mv conftest.tail conftest.defines
  20260. done
  20261. rm -f conftest.defines conftest.tail
  20262. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20263. cat >>$CONFIG_STATUS <<\_ACEOF
  20264. if test x"$ac_file" != x-; then
  20265. echo "/* $configure_input */" >"$tmp/config.h"
  20266. cat "$ac_result" >>"$tmp/config.h"
  20267. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20268. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20269. echo "$as_me: $ac_file is unchanged" >&6;}
  20270. else
  20271. rm -f $ac_file
  20272. mv "$tmp/config.h" $ac_file
  20273. fi
  20274. else
  20275. echo "/* $configure_input */"
  20276. cat "$ac_result"
  20277. fi
  20278. rm -f "$tmp/out12"
  20279. # Compute $ac_file's index in $config_headers.
  20280. _am_arg=$ac_file
  20281. _am_stamp_count=1
  20282. for _am_header in $config_headers :; do
  20283. case $_am_header in
  20284. $_am_arg | $_am_arg:* )
  20285. break ;;
  20286. * )
  20287. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20288. esac
  20289. done
  20290. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20291. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20292. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20293. X"$_am_arg" : 'X\(//\)$' \| \
  20294. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20295. echo X"$_am_arg" |
  20296. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20297. s//\1/
  20298. q
  20299. }
  20300. /^X\(\/\/\)[^/].*/{
  20301. s//\1/
  20302. q
  20303. }
  20304. /^X\(\/\/\)$/{
  20305. s//\1/
  20306. q
  20307. }
  20308. /^X\(\/\).*/{
  20309. s//\1/
  20310. q
  20311. }
  20312. s/.*/./; q'`/stamp-h$_am_stamp_count
  20313. ;;
  20314. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20315. echo "$as_me: executing $ac_file commands" >&6;}
  20316. ;;
  20317. esac
  20318. case $ac_file$ac_mode in
  20319. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20320. # Strip MF so we end up with the name of the file.
  20321. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20322. # Check whether this is an Automake generated Makefile or not.
  20323. # We used to match only the files named `Makefile.in', but
  20324. # some people rename them; so instead we look at the file content.
  20325. # Grep'ing the first line is not enough: some people post-process
  20326. # each Makefile.in and add a new line on top of each file to say so.
  20327. # Grep'ing the whole file is not good either: AIX grep has a line
  20328. # limit of 2048, but all sed's we know have understand at least 4000.
  20329. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20330. dirpart=`$as_dirname -- "$mf" ||
  20331. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20332. X"$mf" : 'X\(//\)[^/]' \| \
  20333. X"$mf" : 'X\(//\)$' \| \
  20334. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20335. echo X"$mf" |
  20336. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20337. s//\1/
  20338. q
  20339. }
  20340. /^X\(\/\/\)[^/].*/{
  20341. s//\1/
  20342. q
  20343. }
  20344. /^X\(\/\/\)$/{
  20345. s//\1/
  20346. q
  20347. }
  20348. /^X\(\/\).*/{
  20349. s//\1/
  20350. q
  20351. }
  20352. s/.*/./; q'`
  20353. else
  20354. continue
  20355. fi
  20356. # Extract the definition of DEPDIR, am__include, and am__quote
  20357. # from the Makefile without running `make'.
  20358. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20359. test -z "$DEPDIR" && continue
  20360. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20361. test -z "am__include" && continue
  20362. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20363. # When using ansi2knr, U may be empty or an underscore; expand it
  20364. U=`sed -n 's/^U = //p' < "$mf"`
  20365. # Find all dependency output files, they are included files with
  20366. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20367. # simplest approach to changing $(DEPDIR) to its actual value in the
  20368. # expansion.
  20369. for file in `sed -n "
  20370. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20371. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20372. # Make sure the directory exists.
  20373. test -f "$dirpart/$file" && continue
  20374. fdir=`$as_dirname -- "$file" ||
  20375. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20376. X"$file" : 'X\(//\)[^/]' \| \
  20377. X"$file" : 'X\(//\)$' \| \
  20378. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20379. echo X"$file" |
  20380. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20381. s//\1/
  20382. q
  20383. }
  20384. /^X\(\/\/\)[^/].*/{
  20385. s//\1/
  20386. q
  20387. }
  20388. /^X\(\/\/\)$/{
  20389. s//\1/
  20390. q
  20391. }
  20392. /^X\(\/\).*/{
  20393. s//\1/
  20394. q
  20395. }
  20396. s/.*/./; q'`
  20397. { as_dir=$dirpart/$fdir
  20398. case $as_dir in #(
  20399. -*) as_dir=./$as_dir;;
  20400. esac
  20401. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20402. as_dirs=
  20403. while :; do
  20404. case $as_dir in #(
  20405. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20406. *) as_qdir=$as_dir;;
  20407. esac
  20408. as_dirs="'$as_qdir' $as_dirs"
  20409. as_dir=`$as_dirname -- "$as_dir" ||
  20410. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20411. X"$as_dir" : 'X\(//\)[^/]' \| \
  20412. X"$as_dir" : 'X\(//\)$' \| \
  20413. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20414. echo X"$as_dir" |
  20415. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20416. s//\1/
  20417. q
  20418. }
  20419. /^X\(\/\/\)[^/].*/{
  20420. s//\1/
  20421. q
  20422. }
  20423. /^X\(\/\/\)$/{
  20424. s//\1/
  20425. q
  20426. }
  20427. /^X\(\/\).*/{
  20428. s//\1/
  20429. q
  20430. }
  20431. s/.*/./; q'`
  20432. test -d "$as_dir" && break
  20433. done
  20434. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20435. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20436. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20437. { (exit 1); exit 1; }; }; }
  20438. # echo "creating $dirpart/$file"
  20439. echo '# dummy' > "$dirpart/$file"
  20440. done
  20441. done
  20442. ;;
  20443. "po-directories":C)
  20444. for ac_file in $CONFIG_FILES; do
  20445. # Support "outfile[:infile[:infile...]]"
  20446. case "$ac_file" in
  20447. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20448. esac
  20449. # PO directories have a Makefile.in generated from Makefile.in.in.
  20450. case "$ac_file" in */Makefile.in)
  20451. # Adjust a relative srcdir.
  20452. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20453. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20454. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20455. # In autoconf-2.13 it is called $ac_given_srcdir.
  20456. # In autoconf-2.50 it is called $srcdir.
  20457. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20458. case "$ac_given_srcdir" in
  20459. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20460. /*) top_srcdir="$ac_given_srcdir" ;;
  20461. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20462. esac
  20463. # Treat a directory as a PO directory if and only if it has a
  20464. # POTFILES.in file. This allows packages to have multiple PO
  20465. # directories under different names or in different locations.
  20466. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20467. rm -f "$ac_dir/POTFILES"
  20468. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20469. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20470. POMAKEFILEDEPS="POTFILES.in"
  20471. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20472. # on $ac_dir but don't depend on user-specified configuration
  20473. # parameters.
  20474. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20475. # The LINGUAS file contains the set of available languages.
  20476. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20477. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20478. fi
  20479. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20480. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20481. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20482. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20483. else
  20484. # The set of available languages was given in configure.in.
  20485. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20486. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20487. fi
  20488. # Compute POFILES
  20489. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20490. # Compute UPDATEPOFILES
  20491. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20492. # Compute DUMMYPOFILES
  20493. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20494. # Compute GMOFILES
  20495. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20496. case "$ac_given_srcdir" in
  20497. .) srcdirpre= ;;
  20498. *) srcdirpre='$(srcdir)/' ;;
  20499. esac
  20500. POFILES=
  20501. UPDATEPOFILES=
  20502. DUMMYPOFILES=
  20503. GMOFILES=
  20504. for lang in $ALL_LINGUAS; do
  20505. POFILES="$POFILES $srcdirpre$lang.po"
  20506. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20507. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20508. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20509. done
  20510. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20511. # environment variable.
  20512. INST_LINGUAS=
  20513. if test -n "$ALL_LINGUAS"; then
  20514. for presentlang in $ALL_LINGUAS; do
  20515. useit=no
  20516. if test "%UNSET%" != "$LINGUAS"; then
  20517. desiredlanguages="$LINGUAS"
  20518. else
  20519. desiredlanguages="$ALL_LINGUAS"
  20520. fi
  20521. for desiredlang in $desiredlanguages; do
  20522. # Use the presentlang catalog if desiredlang is
  20523. # a. equal to presentlang, or
  20524. # b. a variant of presentlang (because in this case,
  20525. # presentlang can be used as a fallback for messages
  20526. # which are not translated in the desiredlang catalog).
  20527. case "$desiredlang" in
  20528. "$presentlang"*) useit=yes;;
  20529. esac
  20530. done
  20531. if test $useit = yes; then
  20532. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20533. fi
  20534. done
  20535. fi
  20536. CATALOGS=
  20537. if test -n "$INST_LINGUAS"; then
  20538. for lang in $INST_LINGUAS; do
  20539. CATALOGS="$CATALOGS $lang.gmo"
  20540. done
  20541. fi
  20542. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20543. 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"
  20544. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20545. if test -f "$f"; then
  20546. case "$f" in
  20547. *.orig | *.bak | *~) ;;
  20548. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20549. esac
  20550. fi
  20551. done
  20552. fi
  20553. ;;
  20554. esac
  20555. done ;;
  20556. esac
  20557. done # for ac_tag
  20558. { (exit 0); exit 0; }
  20559. _ACEOF
  20560. chmod +x $CONFIG_STATUS
  20561. ac_clean_files=$ac_clean_files_save
  20562. # configure is writing to config.log, and then calls config.status.
  20563. # config.status does its own redirection, appending to config.log.
  20564. # Unfortunately, on DOS this fails, as config.log is still kept open
  20565. # by configure, so config.status won't be able to write to it; its
  20566. # output is simply discarded. So we exec the FD to /dev/null,
  20567. # effectively closing config.log, so it can be properly (re)opened and
  20568. # appended to by config.status. When coming back to configure, we
  20569. # need to make the FD available again.
  20570. if test "$no_create" != yes; then
  20571. ac_cs_success=:
  20572. ac_config_status_args=
  20573. test "$silent" = yes &&
  20574. ac_config_status_args="$ac_config_status_args --quiet"
  20575. exec 5>/dev/null
  20576. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20577. exec 5>>config.log
  20578. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20579. # would make configure fail if this is the last instruction.
  20580. $ac_cs_success || { (exit 1); exit 1; }
  20581. fi
  20582. echo " "
  20583. echo "Build: $build"
  20584. echo "Target: $target"
  20585. echo "Install prefix: $prefix"
  20586. echo "CFLAGS: $CFLAGS"
  20587. echo "CPPFLAGS: $CPPFLAGS"
  20588. echo "LDFLAGS: $LDFLAGS"
  20589. echo "LIBS: $LIBS"
  20590. echo "GnuTLS: $have_libgnutls"
  20591. echo "OpenSSL: $have_openssl"
  20592. echo "LibXML2: $have_libxml2"
  20593. echo "LibExpat: $have_libexpat"
  20594. echo "LibAres: $have_libares"
  20595. echo "LibCares: $have_libcares"
  20596. echo "Libz: $have_libz"
  20597. echo "Bittorrent: $enable_bittorrent"
  20598. echo "Metalink: $enable_metalink"