configure 664 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2 1.3.2.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2'
  494. PACKAGE_TARNAME='aria2'
  495. PACKAGE_VERSION='1.3.2'
  496. PACKAGE_STRING='aria2 1.3.2'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. SQLITE3_LIBS
  646. SQLITE3_CPPFLAGS
  647. LIBGNUTLS_CONFIG
  648. LIBGNUTLS_CFLAGS
  649. LIBGNUTLS_LIBS
  650. LIBGCRYPT_CONFIG
  651. LIBGCRYPT_CFLAGS
  652. LIBGCRYPT_LIBS
  653. OPENSSL_LIBS
  654. OPENSSL_CFLAGS
  655. LIBCARES_LIBS
  656. LIBCARES_CPPFLAGS
  657. LIBZ_LIBS
  658. LIBZ_CPPFLAGS
  659. ENABLE_SSL_TRUE
  660. ENABLE_SSL_FALSE
  661. ca_bundle
  662. HAVE_LIBGNUTLS_TRUE
  663. HAVE_LIBGNUTLS_FALSE
  664. HAVE_LIBSSL_TRUE
  665. HAVE_LIBSSL_FALSE
  666. ENABLE_MESSAGE_DIGEST_TRUE
  667. ENABLE_MESSAGE_DIGEST_FALSE
  668. ENABLE_BITTORRENT_TRUE
  669. ENABLE_BITTORRENT_FALSE
  670. ENABLE_METALINK_TRUE
  671. ENABLE_METALINK_FALSE
  672. ENABLE_LIBXML2_TRUE
  673. ENABLE_LIBXML2_FALSE
  674. ENABLE_LIBEXPAT_TRUE
  675. ENABLE_LIBEXPAT_FALSE
  676. ENABLE_ASYNC_DNS_TRUE
  677. ENABLE_ASYNC_DNS_FALSE
  678. HAVE_LIBZ_TRUE
  679. HAVE_LIBZ_FALSE
  680. HAVE_SQLITE3_TRUE
  681. HAVE_SQLITE3_FALSE
  682. ALLOCA
  683. USE_NLS
  684. GETTEXT_MACRO_VERSION
  685. MSGFMT
  686. GMSGFMT
  687. MSGFMT_015
  688. GMSGFMT_015
  689. XGETTEXT
  690. XGETTEXT_015
  691. MSGMERGE
  692. XGETTEXT_EXTRA_OPTIONS
  693. GLIBC2
  694. CFLAG_VISIBILITY
  695. HAVE_VISIBILITY
  696. PRI_MACROS_BROKEN
  697. LIBPTH
  698. LTLIBPTH
  699. LIBPTH_PREFIX
  700. LIBTHREAD
  701. LTLIBTHREAD
  702. LIBMULTITHREAD
  703. LTLIBMULTITHREAD
  704. LIBICONV
  705. LTLIBICONV
  706. INTLBISON
  707. GLIBC21
  708. INTL_MACOSX_LIBS
  709. HAVE_POSIX_PRINTF
  710. HAVE_ASPRINTF
  711. HAVE_SNPRINTF
  712. HAVE_WPRINTF
  713. WOE32DLL
  714. WOE32
  715. WINDRES
  716. LTLIBC
  717. BUILD_INCLUDED_LIBINTL
  718. USE_INCLUDED_LIBINTL
  719. CATOBJEXT
  720. DATADIRNAME
  721. INSTOBJEXT
  722. GENCAT
  723. INTLOBJS
  724. INTL_LIBTOOL_SUFFIX_PREFIX
  725. INTLLIBS
  726. LIBINTL
  727. LTLIBINTL
  728. POSUB
  729. LIBOBJS
  730. HAVE_EPOLL_TRUE
  731. HAVE_EPOLL_FALSE
  732. HAVE_POSIX_FALLOCATE_TRUE
  733. HAVE_POSIX_FALLOCATE_FALSE
  734. HAVE_ASCTIME_R_TRUE
  735. HAVE_ASCTIME_R_FALSE
  736. HAVE_BASENAME_TRUE
  737. HAVE_BASENAME_FALSE
  738. HAVE_GAI_STRERROR_TRUE
  739. HAVE_GAI_STRERROR_FALSE
  740. HAVE_GETADDRINFO_TRUE
  741. HAVE_GETADDRINFO_FALSE
  742. HAVE_GETTIMEOFDAY_TRUE
  743. HAVE_GETTIMEOFDAY_FALSE
  744. HAVE_INET_ATON_TRUE
  745. HAVE_INET_ATON_FALSE
  746. HAVE_LOCALTIME_R_TRUE
  747. HAVE_LOCALTIME_R_FALSE
  748. HAVE_STRPTIME_TRUE
  749. HAVE_STRPTIME_FALSE
  750. HAVE_TIMEGM_TRUE
  751. HAVE_TIMEGM_FALSE
  752. LTLIBOBJS'
  753. ac_subst_files=''
  754. ac_precious_vars='build_alias
  755. host_alias
  756. target_alias
  757. CXX
  758. CXXFLAGS
  759. LDFLAGS
  760. LIBS
  761. CPPFLAGS
  762. CCC
  763. CC
  764. CFLAGS
  765. YACC
  766. YFLAGS
  767. CXXCPP'
  768. # Initialize some variables set by options.
  769. ac_init_help=
  770. ac_init_version=false
  771. # The variables have the same names as the options, with
  772. # dashes changed to underlines.
  773. cache_file=/dev/null
  774. exec_prefix=NONE
  775. no_create=
  776. no_recursion=
  777. prefix=NONE
  778. program_prefix=NONE
  779. program_suffix=NONE
  780. program_transform_name=s,x,x,
  781. silent=
  782. site=
  783. srcdir=
  784. verbose=
  785. x_includes=NONE
  786. x_libraries=NONE
  787. # Installation directory options.
  788. # These are left unexpanded so users can "make install exec_prefix=/foo"
  789. # and all the variables that are supposed to be based on exec_prefix
  790. # by default will actually change.
  791. # Use braces instead of parens because sh, perl, etc. also accept them.
  792. # (The list follows the same order as the GNU Coding Standards.)
  793. bindir='${exec_prefix}/bin'
  794. sbindir='${exec_prefix}/sbin'
  795. libexecdir='${exec_prefix}/libexec'
  796. datarootdir='${prefix}/share'
  797. datadir='${datarootdir}'
  798. sysconfdir='${prefix}/etc'
  799. sharedstatedir='${prefix}/com'
  800. localstatedir='${prefix}/var'
  801. includedir='${prefix}/include'
  802. oldincludedir='/usr/include'
  803. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  804. infodir='${datarootdir}/info'
  805. htmldir='${docdir}'
  806. dvidir='${docdir}'
  807. pdfdir='${docdir}'
  808. psdir='${docdir}'
  809. libdir='${exec_prefix}/lib'
  810. localedir='${datarootdir}/locale'
  811. mandir='${datarootdir}/man'
  812. ac_prev=
  813. ac_dashdash=
  814. for ac_option
  815. do
  816. # If the previous option needs an argument, assign it.
  817. if test -n "$ac_prev"; then
  818. eval $ac_prev=\$ac_option
  819. ac_prev=
  820. continue
  821. fi
  822. case $ac_option in
  823. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  824. *) ac_optarg=yes ;;
  825. esac
  826. # Accept the important Cygnus configure options, so we can diagnose typos.
  827. case $ac_dashdash$ac_option in
  828. --)
  829. ac_dashdash=yes ;;
  830. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  831. ac_prev=bindir ;;
  832. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  833. bindir=$ac_optarg ;;
  834. -build | --build | --buil | --bui | --bu)
  835. ac_prev=build_alias ;;
  836. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  837. build_alias=$ac_optarg ;;
  838. -cache-file | --cache-file | --cache-fil | --cache-fi \
  839. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  840. ac_prev=cache_file ;;
  841. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  842. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  843. cache_file=$ac_optarg ;;
  844. --config-cache | -C)
  845. cache_file=config.cache ;;
  846. -datadir | --datadir | --datadi | --datad)
  847. ac_prev=datadir ;;
  848. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  849. datadir=$ac_optarg ;;
  850. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  851. | --dataroo | --dataro | --datar)
  852. ac_prev=datarootdir ;;
  853. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  854. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  855. datarootdir=$ac_optarg ;;
  856. -disable-* | --disable-*)
  857. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  858. # Reject names that are not valid shell variable names.
  859. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  860. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  861. { (exit 1); exit 1; }; }
  862. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  863. eval enable_$ac_feature=no ;;
  864. -docdir | --docdir | --docdi | --doc | --do)
  865. ac_prev=docdir ;;
  866. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  867. docdir=$ac_optarg ;;
  868. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  869. ac_prev=dvidir ;;
  870. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  871. dvidir=$ac_optarg ;;
  872. -enable-* | --enable-*)
  873. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  874. # Reject names that are not valid shell variable names.
  875. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  876. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  877. { (exit 1); exit 1; }; }
  878. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  879. eval enable_$ac_feature=\$ac_optarg ;;
  880. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  881. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  882. | --exec | --exe | --ex)
  883. ac_prev=exec_prefix ;;
  884. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  885. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  886. | --exec=* | --exe=* | --ex=*)
  887. exec_prefix=$ac_optarg ;;
  888. -gas | --gas | --ga | --g)
  889. # Obsolete; use --with-gas.
  890. with_gas=yes ;;
  891. -help | --help | --hel | --he | -h)
  892. ac_init_help=long ;;
  893. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  894. ac_init_help=recursive ;;
  895. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  896. ac_init_help=short ;;
  897. -host | --host | --hos | --ho)
  898. ac_prev=host_alias ;;
  899. -host=* | --host=* | --hos=* | --ho=*)
  900. host_alias=$ac_optarg ;;
  901. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  902. ac_prev=htmldir ;;
  903. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  904. | --ht=*)
  905. htmldir=$ac_optarg ;;
  906. -includedir | --includedir | --includedi | --included | --include \
  907. | --includ | --inclu | --incl | --inc)
  908. ac_prev=includedir ;;
  909. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  910. | --includ=* | --inclu=* | --incl=* | --inc=*)
  911. includedir=$ac_optarg ;;
  912. -infodir | --infodir | --infodi | --infod | --info | --inf)
  913. ac_prev=infodir ;;
  914. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  915. infodir=$ac_optarg ;;
  916. -libdir | --libdir | --libdi | --libd)
  917. ac_prev=libdir ;;
  918. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  919. libdir=$ac_optarg ;;
  920. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  921. | --libexe | --libex | --libe)
  922. ac_prev=libexecdir ;;
  923. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  924. | --libexe=* | --libex=* | --libe=*)
  925. libexecdir=$ac_optarg ;;
  926. -localedir | --localedir | --localedi | --localed | --locale)
  927. ac_prev=localedir ;;
  928. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  929. localedir=$ac_optarg ;;
  930. -localstatedir | --localstatedir | --localstatedi | --localstated \
  931. | --localstate | --localstat | --localsta | --localst | --locals)
  932. ac_prev=localstatedir ;;
  933. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  934. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  935. localstatedir=$ac_optarg ;;
  936. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  937. ac_prev=mandir ;;
  938. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  939. mandir=$ac_optarg ;;
  940. -nfp | --nfp | --nf)
  941. # Obsolete; use --without-fp.
  942. with_fp=no ;;
  943. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  944. | --no-cr | --no-c | -n)
  945. no_create=yes ;;
  946. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  947. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  948. no_recursion=yes ;;
  949. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  950. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  951. | --oldin | --oldi | --old | --ol | --o)
  952. ac_prev=oldincludedir ;;
  953. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  954. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  955. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  956. oldincludedir=$ac_optarg ;;
  957. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  958. ac_prev=prefix ;;
  959. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  960. prefix=$ac_optarg ;;
  961. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  962. | --program-pre | --program-pr | --program-p)
  963. ac_prev=program_prefix ;;
  964. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  965. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  966. program_prefix=$ac_optarg ;;
  967. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  968. | --program-suf | --program-su | --program-s)
  969. ac_prev=program_suffix ;;
  970. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  971. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  972. program_suffix=$ac_optarg ;;
  973. -program-transform-name | --program-transform-name \
  974. | --program-transform-nam | --program-transform-na \
  975. | --program-transform-n | --program-transform- \
  976. | --program-transform | --program-transfor \
  977. | --program-transfo | --program-transf \
  978. | --program-trans | --program-tran \
  979. | --progr-tra | --program-tr | --program-t)
  980. ac_prev=program_transform_name ;;
  981. -program-transform-name=* | --program-transform-name=* \
  982. | --program-transform-nam=* | --program-transform-na=* \
  983. | --program-transform-n=* | --program-transform-=* \
  984. | --program-transform=* | --program-transfor=* \
  985. | --program-transfo=* | --program-transf=* \
  986. | --program-trans=* | --program-tran=* \
  987. | --progr-tra=* | --program-tr=* | --program-t=*)
  988. program_transform_name=$ac_optarg ;;
  989. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  990. ac_prev=pdfdir ;;
  991. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  992. pdfdir=$ac_optarg ;;
  993. -psdir | --psdir | --psdi | --psd | --ps)
  994. ac_prev=psdir ;;
  995. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  996. psdir=$ac_optarg ;;
  997. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  998. | -silent | --silent | --silen | --sile | --sil)
  999. silent=yes ;;
  1000. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1001. ac_prev=sbindir ;;
  1002. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1003. | --sbi=* | --sb=*)
  1004. sbindir=$ac_optarg ;;
  1005. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1006. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1007. | --sharedst | --shareds | --shared | --share | --shar \
  1008. | --sha | --sh)
  1009. ac_prev=sharedstatedir ;;
  1010. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1011. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1012. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1013. | --sha=* | --sh=*)
  1014. sharedstatedir=$ac_optarg ;;
  1015. -site | --site | --sit)
  1016. ac_prev=site ;;
  1017. -site=* | --site=* | --sit=*)
  1018. site=$ac_optarg ;;
  1019. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1020. ac_prev=srcdir ;;
  1021. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1022. srcdir=$ac_optarg ;;
  1023. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1024. | --syscon | --sysco | --sysc | --sys | --sy)
  1025. ac_prev=sysconfdir ;;
  1026. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1027. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1028. sysconfdir=$ac_optarg ;;
  1029. -target | --target | --targe | --targ | --tar | --ta | --t)
  1030. ac_prev=target_alias ;;
  1031. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1032. target_alias=$ac_optarg ;;
  1033. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1034. verbose=yes ;;
  1035. -version | --version | --versio | --versi | --vers | -V)
  1036. ac_init_version=: ;;
  1037. -with-* | --with-*)
  1038. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1039. # Reject names that are not valid shell variable names.
  1040. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1041. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1042. { (exit 1); exit 1; }; }
  1043. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1044. eval with_$ac_package=\$ac_optarg ;;
  1045. -without-* | --without-*)
  1046. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1047. # Reject names that are not valid shell variable names.
  1048. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1049. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1050. { (exit 1); exit 1; }; }
  1051. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1052. eval with_$ac_package=no ;;
  1053. --x)
  1054. # Obsolete; use --with-x.
  1055. with_x=yes ;;
  1056. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1057. | --x-incl | --x-inc | --x-in | --x-i)
  1058. ac_prev=x_includes ;;
  1059. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1060. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1061. x_includes=$ac_optarg ;;
  1062. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1063. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1064. ac_prev=x_libraries ;;
  1065. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1066. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1067. x_libraries=$ac_optarg ;;
  1068. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1069. Try \`$0 --help' for more information." >&2
  1070. { (exit 1); exit 1; }; }
  1071. ;;
  1072. *=*)
  1073. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1074. # Reject names that are not valid shell variable names.
  1075. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1076. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1077. { (exit 1); exit 1; }; }
  1078. eval $ac_envvar=\$ac_optarg
  1079. export $ac_envvar ;;
  1080. *)
  1081. # FIXME: should be removed in autoconf 3.0.
  1082. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1083. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1084. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1085. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1086. ;;
  1087. esac
  1088. done
  1089. if test -n "$ac_prev"; then
  1090. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1091. { echo "$as_me: error: missing argument to $ac_option" >&2
  1092. { (exit 1); exit 1; }; }
  1093. fi
  1094. # Be sure to have absolute directory names.
  1095. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1096. datadir sysconfdir sharedstatedir localstatedir includedir \
  1097. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1098. libdir localedir mandir
  1099. do
  1100. eval ac_val=\$$ac_var
  1101. case $ac_val in
  1102. [\\/$]* | ?:[\\/]* ) continue;;
  1103. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1104. esac
  1105. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1106. { (exit 1); exit 1; }; }
  1107. done
  1108. # There might be people who depend on the old broken behavior: `$host'
  1109. # used to hold the argument of --host etc.
  1110. # FIXME: To remove some day.
  1111. build=$build_alias
  1112. host=$host_alias
  1113. target=$target_alias
  1114. # FIXME: To remove some day.
  1115. if test "x$host_alias" != x; then
  1116. if test "x$build_alias" = x; then
  1117. cross_compiling=maybe
  1118. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1119. If a cross compiler is detected then cross compile mode will be used." >&2
  1120. elif test "x$build_alias" != "x$host_alias"; then
  1121. cross_compiling=yes
  1122. fi
  1123. fi
  1124. ac_tool_prefix=
  1125. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1126. test "$silent" = yes && exec 6>/dev/null
  1127. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1128. ac_ls_di=`ls -di .` &&
  1129. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1130. { echo "$as_me: error: Working directory cannot be determined" >&2
  1131. { (exit 1); exit 1; }; }
  1132. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1133. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1134. { (exit 1); exit 1; }; }
  1135. # Find the source files, if location was not specified.
  1136. if test -z "$srcdir"; then
  1137. ac_srcdir_defaulted=yes
  1138. # Try the directory containing this script, then the parent directory.
  1139. ac_confdir=`$as_dirname -- "$0" ||
  1140. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1141. X"$0" : 'X\(//\)[^/]' \| \
  1142. X"$0" : 'X\(//\)$' \| \
  1143. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1144. echo X"$0" |
  1145. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\/\)[^/].*/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)$/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\).*/{
  1158. s//\1/
  1159. q
  1160. }
  1161. s/.*/./; q'`
  1162. srcdir=$ac_confdir
  1163. if test ! -r "$srcdir/$ac_unique_file"; then
  1164. srcdir=..
  1165. fi
  1166. else
  1167. ac_srcdir_defaulted=no
  1168. fi
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1171. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1172. { (exit 1); exit 1; }; }
  1173. fi
  1174. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1175. ac_abs_confdir=`(
  1176. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1177. { (exit 1); exit 1; }; }
  1178. pwd)`
  1179. # When building in place, set srcdir=.
  1180. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1181. srcdir=.
  1182. fi
  1183. # Remove unnecessary trailing slashes from srcdir.
  1184. # Double slashes in file names in object file debugging info
  1185. # mess up M-x gdb in Emacs.
  1186. case $srcdir in
  1187. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1188. esac
  1189. for ac_var in $ac_precious_vars; do
  1190. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1191. eval ac_env_${ac_var}_value=\$${ac_var}
  1192. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1194. done
  1195. #
  1196. # Report the --help message.
  1197. #
  1198. if test "$ac_init_help" = "long"; then
  1199. # Omit some internal or obsolete options to make the list less imposing.
  1200. # This message is too long to be a string in the A/UX 3.1 sh.
  1201. cat <<_ACEOF
  1202. \`configure' configures aria2 1.3.2 to adapt to many kinds of systems.
  1203. Usage: $0 [OPTION]... [VAR=VALUE]...
  1204. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1205. VAR=VALUE. See below for descriptions of some of the useful variables.
  1206. Defaults for the options are specified in brackets.
  1207. Configuration:
  1208. -h, --help display this help and exit
  1209. --help=short display options specific to this package
  1210. --help=recursive display the short help of all the included packages
  1211. -V, --version display version information and exit
  1212. -q, --quiet, --silent do not print \`checking...' messages
  1213. --cache-file=FILE cache test results in FILE [disabled]
  1214. -C, --config-cache alias for \`--cache-file=config.cache'
  1215. -n, --no-create do not create output files
  1216. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1217. Installation directories:
  1218. --prefix=PREFIX install architecture-independent files in PREFIX
  1219. [$ac_default_prefix]
  1220. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1221. [PREFIX]
  1222. By default, \`make install' will install all the files in
  1223. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1224. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1225. for instance \`--prefix=\$HOME'.
  1226. For better control, use the options below.
  1227. Fine tuning of the installation directories:
  1228. --bindir=DIR user executables [EPREFIX/bin]
  1229. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1230. --libexecdir=DIR program executables [EPREFIX/libexec]
  1231. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1232. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1233. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1234. --libdir=DIR object code libraries [EPREFIX/lib]
  1235. --includedir=DIR C header files [PREFIX/include]
  1236. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1237. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1238. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1239. --infodir=DIR info documentation [DATAROOTDIR/info]
  1240. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1241. --mandir=DIR man documentation [DATAROOTDIR/man]
  1242. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1243. --htmldir=DIR html documentation [DOCDIR]
  1244. --dvidir=DIR dvi documentation [DOCDIR]
  1245. --pdfdir=DIR pdf documentation [DOCDIR]
  1246. --psdir=DIR ps documentation [DOCDIR]
  1247. _ACEOF
  1248. cat <<\_ACEOF
  1249. Program names:
  1250. --program-prefix=PREFIX prepend PREFIX to installed program names
  1251. --program-suffix=SUFFIX append SUFFIX to installed program names
  1252. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1253. System types:
  1254. --build=BUILD configure for building on BUILD [guessed]
  1255. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1256. --target=TARGET configure for building compilers for TARGET [HOST]
  1257. _ACEOF
  1258. fi
  1259. if test -n "$ac_init_help"; then
  1260. case $ac_init_help in
  1261. short | recursive ) echo "Configuration of aria2 1.3.2:";;
  1262. esac
  1263. cat <<\_ACEOF
  1264. Optional Features:
  1265. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1266. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1267. --enable-bittorrent enable bittorrent support.
  1268. --enable-metalink enable metalink support.
  1269. --enable-epoll enable epoll support.
  1270. --disable-dependency-tracking speeds up one-time build
  1271. --enable-dependency-tracking do not reject slow dependency extractors
  1272. --disable-xmltest Do not try to compile and run a test LIBXML program
  1273. --disable-largefile omit support for large files
  1274. --disable-nls do not use Native Language Support
  1275. --enable-threads={posix|solaris|pth|win32}
  1276. specify multithreading API
  1277. --disable-threads build without multithread safety
  1278. --disable-rpath do not hardcode runtime library paths
  1279. Optional Packages:
  1280. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1281. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1282. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1283. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1284. --with-gnutls use gnutls if it is installed.
  1285. --with-openssl use openssl if it is installed.
  1286. --with-sqlite3 use sqlite3 if it is installed.
  1287. --with-libxml2 use libxml2 if it is installed.
  1288. --with-libexpat use libexpat if it is installed.
  1289. --with-libcares use libcares if it is installed.
  1290. --with-libz use libz if it is installed.
  1291. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1292. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1293. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1294. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1295. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1296. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1297. --with-libgcrypt-prefix=PFX
  1298. prefix where LIBGCRYPT is installed (optional)
  1299. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1300. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1301. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1302. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1303. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1304. --without-libpth-prefix don't search for libpth in includedir and libdir
  1305. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1306. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1307. --with-included-gettext use the GNU gettext library included here
  1308. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1309. --without-libintl-prefix don't search for libintl in includedir and libdir
  1310. Some influential environment variables:
  1311. CXX C++ compiler command
  1312. CXXFLAGS C++ compiler flags
  1313. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1314. nonstandard directory <lib dir>
  1315. LIBS libraries to pass to the linker, e.g. -l<library>
  1316. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1317. you have headers in a nonstandard directory <include dir>
  1318. CC C compiler command
  1319. CFLAGS C compiler flags
  1320. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1321. the first program found out of: `bison -y', `byacc', `yacc'.
  1322. YFLAGS The list of arguments that will be passed by default to $YACC.
  1323. This script will default YFLAGS to the empty string to avoid a
  1324. default value of `-d' given by some make applications.
  1325. CXXCPP C++ preprocessor
  1326. Use these variables to override the choices made by `configure' or to help
  1327. it to find libraries and programs with nonstandard names/locations.
  1328. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1329. _ACEOF
  1330. ac_status=$?
  1331. fi
  1332. if test "$ac_init_help" = "recursive"; then
  1333. # If there are subdirs, report their specific --help.
  1334. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1335. test -d "$ac_dir" || continue
  1336. ac_builddir=.
  1337. case "$ac_dir" in
  1338. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1339. *)
  1340. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1341. # A ".." for each directory in $ac_dir_suffix.
  1342. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1343. case $ac_top_builddir_sub in
  1344. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1345. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1346. esac ;;
  1347. esac
  1348. ac_abs_top_builddir=$ac_pwd
  1349. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1350. # for backward compatibility:
  1351. ac_top_builddir=$ac_top_build_prefix
  1352. case $srcdir in
  1353. .) # We are building in place.
  1354. ac_srcdir=.
  1355. ac_top_srcdir=$ac_top_builddir_sub
  1356. ac_abs_top_srcdir=$ac_pwd ;;
  1357. [\\/]* | ?:[\\/]* ) # Absolute name.
  1358. ac_srcdir=$srcdir$ac_dir_suffix;
  1359. ac_top_srcdir=$srcdir
  1360. ac_abs_top_srcdir=$srcdir ;;
  1361. *) # Relative name.
  1362. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1363. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1364. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1365. esac
  1366. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1367. cd "$ac_dir" || { ac_status=$?; continue; }
  1368. # Check for guested configure.
  1369. if test -f "$ac_srcdir/configure.gnu"; then
  1370. echo &&
  1371. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1372. elif test -f "$ac_srcdir/configure"; then
  1373. echo &&
  1374. $SHELL "$ac_srcdir/configure" --help=recursive
  1375. else
  1376. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1377. fi || ac_status=$?
  1378. cd "$ac_pwd" || { ac_status=$?; break; }
  1379. done
  1380. fi
  1381. test -n "$ac_init_help" && exit $ac_status
  1382. if $ac_init_version; then
  1383. cat <<\_ACEOF
  1384. aria2 configure 1.3.2
  1385. generated by GNU Autoconf 2.61
  1386. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1387. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1388. This configure script is free software; the Free Software Foundation
  1389. gives unlimited permission to copy, distribute and modify it.
  1390. _ACEOF
  1391. exit
  1392. fi
  1393. cat >config.log <<_ACEOF
  1394. This file contains any messages produced by compilers while
  1395. running configure, to aid debugging if configure makes a mistake.
  1396. It was created by aria2 $as_me 1.3.2, which was
  1397. generated by GNU Autoconf 2.61. Invocation command line was
  1398. $ $0 $@
  1399. _ACEOF
  1400. exec 5>>config.log
  1401. {
  1402. cat <<_ASUNAME
  1403. ## --------- ##
  1404. ## Platform. ##
  1405. ## --------- ##
  1406. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1407. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1408. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1409. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1410. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1411. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1412. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1413. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1414. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1415. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1416. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1417. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1418. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1419. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1420. _ASUNAME
  1421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1422. for as_dir in $PATH
  1423. do
  1424. IFS=$as_save_IFS
  1425. test -z "$as_dir" && as_dir=.
  1426. echo "PATH: $as_dir"
  1427. done
  1428. IFS=$as_save_IFS
  1429. } >&5
  1430. cat >&5 <<_ACEOF
  1431. ## ----------- ##
  1432. ## Core tests. ##
  1433. ## ----------- ##
  1434. _ACEOF
  1435. # Keep a trace of the command line.
  1436. # Strip out --no-create and --no-recursion so they do not pile up.
  1437. # Strip out --silent because we don't want to record it for future runs.
  1438. # Also quote any args containing shell meta-characters.
  1439. # Make two passes to allow for proper duplicate-argument suppression.
  1440. ac_configure_args=
  1441. ac_configure_args0=
  1442. ac_configure_args1=
  1443. ac_must_keep_next=false
  1444. for ac_pass in 1 2
  1445. do
  1446. for ac_arg
  1447. do
  1448. case $ac_arg in
  1449. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1450. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1451. | -silent | --silent | --silen | --sile | --sil)
  1452. continue ;;
  1453. *\'*)
  1454. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1455. esac
  1456. case $ac_pass in
  1457. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1458. 2)
  1459. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1460. if test $ac_must_keep_next = true; then
  1461. ac_must_keep_next=false # Got value, back to normal.
  1462. else
  1463. case $ac_arg in
  1464. *=* | --config-cache | -C | -disable-* | --disable-* \
  1465. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1466. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1467. | -with-* | --with-* | -without-* | --without-* | --x)
  1468. case "$ac_configure_args0 " in
  1469. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1470. esac
  1471. ;;
  1472. -* ) ac_must_keep_next=true ;;
  1473. esac
  1474. fi
  1475. ac_configure_args="$ac_configure_args '$ac_arg'"
  1476. ;;
  1477. esac
  1478. done
  1479. done
  1480. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1481. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1482. # When interrupted or exit'd, cleanup temporary files, and complete
  1483. # config.log. We remove comments because anyway the quotes in there
  1484. # would cause problems or look ugly.
  1485. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1486. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1487. trap 'exit_status=$?
  1488. # Save into config.log some information that might help in debugging.
  1489. {
  1490. echo
  1491. cat <<\_ASBOX
  1492. ## ---------------- ##
  1493. ## Cache variables. ##
  1494. ## ---------------- ##
  1495. _ASBOX
  1496. echo
  1497. # The following way of writing the cache mishandles newlines in values,
  1498. (
  1499. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1500. eval ac_val=\$$ac_var
  1501. case $ac_val in #(
  1502. *${as_nl}*)
  1503. case $ac_var in #(
  1504. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1505. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1506. esac
  1507. case $ac_var in #(
  1508. _ | IFS | as_nl) ;; #(
  1509. *) $as_unset $ac_var ;;
  1510. esac ;;
  1511. esac
  1512. done
  1513. (set) 2>&1 |
  1514. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1515. *${as_nl}ac_space=\ *)
  1516. sed -n \
  1517. "s/'\''/'\''\\\\'\'''\''/g;
  1518. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1519. ;; #(
  1520. *)
  1521. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1522. ;;
  1523. esac |
  1524. sort
  1525. )
  1526. echo
  1527. cat <<\_ASBOX
  1528. ## ----------------- ##
  1529. ## Output variables. ##
  1530. ## ----------------- ##
  1531. _ASBOX
  1532. echo
  1533. for ac_var in $ac_subst_vars
  1534. do
  1535. eval ac_val=\$$ac_var
  1536. case $ac_val in
  1537. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1538. esac
  1539. echo "$ac_var='\''$ac_val'\''"
  1540. done | sort
  1541. echo
  1542. if test -n "$ac_subst_files"; then
  1543. cat <<\_ASBOX
  1544. ## ------------------- ##
  1545. ## File substitutions. ##
  1546. ## ------------------- ##
  1547. _ASBOX
  1548. echo
  1549. for ac_var in $ac_subst_files
  1550. do
  1551. eval ac_val=\$$ac_var
  1552. case $ac_val in
  1553. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1554. esac
  1555. echo "$ac_var='\''$ac_val'\''"
  1556. done | sort
  1557. echo
  1558. fi
  1559. if test -s confdefs.h; then
  1560. cat <<\_ASBOX
  1561. ## ----------- ##
  1562. ## confdefs.h. ##
  1563. ## ----------- ##
  1564. _ASBOX
  1565. echo
  1566. cat confdefs.h
  1567. echo
  1568. fi
  1569. test "$ac_signal" != 0 &&
  1570. echo "$as_me: caught signal $ac_signal"
  1571. echo "$as_me: exit $exit_status"
  1572. } >&5
  1573. rm -f core *.core core.conftest.* &&
  1574. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1575. exit $exit_status
  1576. ' 0
  1577. for ac_signal in 1 2 13 15; do
  1578. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1579. done
  1580. ac_signal=0
  1581. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1582. rm -f -r conftest* confdefs.h
  1583. # Predefined preprocessor variables.
  1584. cat >>confdefs.h <<_ACEOF
  1585. #define PACKAGE_NAME "$PACKAGE_NAME"
  1586. _ACEOF
  1587. cat >>confdefs.h <<_ACEOF
  1588. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1589. _ACEOF
  1590. cat >>confdefs.h <<_ACEOF
  1591. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1592. _ACEOF
  1593. cat >>confdefs.h <<_ACEOF
  1594. #define PACKAGE_STRING "$PACKAGE_STRING"
  1595. _ACEOF
  1596. cat >>confdefs.h <<_ACEOF
  1597. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1598. _ACEOF
  1599. # Let the site file select an alternate cache file if it wants to.
  1600. # Prefer explicitly selected file to automatically selected ones.
  1601. if test -n "$CONFIG_SITE"; then
  1602. set x "$CONFIG_SITE"
  1603. elif test "x$prefix" != xNONE; then
  1604. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1605. else
  1606. set x "$ac_default_prefix/share/config.site" \
  1607. "$ac_default_prefix/etc/config.site"
  1608. fi
  1609. shift
  1610. for ac_site_file
  1611. do
  1612. if test -r "$ac_site_file"; then
  1613. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1614. echo "$as_me: loading site script $ac_site_file" >&6;}
  1615. sed 's/^/| /' "$ac_site_file" >&5
  1616. . "$ac_site_file"
  1617. fi
  1618. done
  1619. if test -r "$cache_file"; then
  1620. # Some versions of bash will fail to source /dev/null (special
  1621. # files actually), so we avoid doing that.
  1622. if test -f "$cache_file"; then
  1623. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1624. echo "$as_me: loading cache $cache_file" >&6;}
  1625. case $cache_file in
  1626. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1627. *) . "./$cache_file";;
  1628. esac
  1629. fi
  1630. else
  1631. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1632. echo "$as_me: creating cache $cache_file" >&6;}
  1633. >$cache_file
  1634. fi
  1635. gt_needs="$gt_needs "
  1636. ac_header_list="$ac_header_list sys/time.h"
  1637. ac_header_list="$ac_header_list unistd.h"
  1638. ac_func_list="$ac_func_list alarm"
  1639. # Check that the precious variables saved in the cache have kept the same
  1640. # value.
  1641. ac_cache_corrupted=false
  1642. for ac_var in $ac_precious_vars; do
  1643. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1644. eval ac_new_set=\$ac_env_${ac_var}_set
  1645. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1646. eval ac_new_val=\$ac_env_${ac_var}_value
  1647. case $ac_old_set,$ac_new_set in
  1648. set,)
  1649. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1650. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1651. ac_cache_corrupted=: ;;
  1652. ,set)
  1653. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1654. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1655. ac_cache_corrupted=: ;;
  1656. ,);;
  1657. *)
  1658. if test "x$ac_old_val" != "x$ac_new_val"; then
  1659. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1660. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1661. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1662. echo "$as_me: former value: $ac_old_val" >&2;}
  1663. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1664. echo "$as_me: current value: $ac_new_val" >&2;}
  1665. ac_cache_corrupted=:
  1666. fi;;
  1667. esac
  1668. # Pass precious variables to config.status.
  1669. if test "$ac_new_set" = set; then
  1670. case $ac_new_val in
  1671. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1672. *) ac_arg=$ac_var=$ac_new_val ;;
  1673. esac
  1674. case " $ac_configure_args " in
  1675. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1676. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1677. esac
  1678. fi
  1679. done
  1680. if $ac_cache_corrupted; then
  1681. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1682. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1683. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1684. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1685. { (exit 1); exit 1; }; }
  1686. fi
  1687. ac_ext=c
  1688. ac_cpp='$CPP $CPPFLAGS'
  1689. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1690. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1691. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1692. ac_aux_dir=
  1693. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1694. if test -f "$ac_dir/install-sh"; then
  1695. ac_aux_dir=$ac_dir
  1696. ac_install_sh="$ac_aux_dir/install-sh -c"
  1697. break
  1698. elif test -f "$ac_dir/install.sh"; then
  1699. ac_aux_dir=$ac_dir
  1700. ac_install_sh="$ac_aux_dir/install.sh -c"
  1701. break
  1702. elif test -f "$ac_dir/shtool"; then
  1703. ac_aux_dir=$ac_dir
  1704. ac_install_sh="$ac_aux_dir/shtool install -c"
  1705. break
  1706. fi
  1707. done
  1708. if test -z "$ac_aux_dir"; then
  1709. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1710. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1711. { (exit 1); exit 1; }; }
  1712. fi
  1713. # These three variables are undocumented and unsupported,
  1714. # and are intended to be withdrawn in a future Autoconf release.
  1715. # They can cause serious problems if a builder's source tree is in a directory
  1716. # whose full name contains unusual characters.
  1717. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1718. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1719. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1720. # Make sure we can run config.sub.
  1721. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1722. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1723. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1724. { (exit 1); exit 1; }; }
  1725. { echo "$as_me:$LINENO: checking build system type" >&5
  1726. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1727. if test "${ac_cv_build+set}" = set; then
  1728. echo $ECHO_N "(cached) $ECHO_C" >&6
  1729. else
  1730. ac_build_alias=$build_alias
  1731. test "x$ac_build_alias" = x &&
  1732. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1733. test "x$ac_build_alias" = x &&
  1734. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1735. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1736. { (exit 1); exit 1; }; }
  1737. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1738. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1739. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1740. { (exit 1); exit 1; }; }
  1741. fi
  1742. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1743. echo "${ECHO_T}$ac_cv_build" >&6; }
  1744. case $ac_cv_build in
  1745. *-*-*) ;;
  1746. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1747. echo "$as_me: error: invalid value of canonical build" >&2;}
  1748. { (exit 1); exit 1; }; };;
  1749. esac
  1750. build=$ac_cv_build
  1751. ac_save_IFS=$IFS; IFS='-'
  1752. set x $ac_cv_build
  1753. shift
  1754. build_cpu=$1
  1755. build_vendor=$2
  1756. shift; shift
  1757. # Remember, the first character of IFS is used to create $*,
  1758. # except with old shells:
  1759. build_os=$*
  1760. IFS=$ac_save_IFS
  1761. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1762. { echo "$as_me:$LINENO: checking host system type" >&5
  1763. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1764. if test "${ac_cv_host+set}" = set; then
  1765. echo $ECHO_N "(cached) $ECHO_C" >&6
  1766. else
  1767. if test "x$host_alias" = x; then
  1768. ac_cv_host=$ac_cv_build
  1769. else
  1770. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1771. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1772. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1773. { (exit 1); exit 1; }; }
  1774. fi
  1775. fi
  1776. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1777. echo "${ECHO_T}$ac_cv_host" >&6; }
  1778. case $ac_cv_host in
  1779. *-*-*) ;;
  1780. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1781. echo "$as_me: error: invalid value of canonical host" >&2;}
  1782. { (exit 1); exit 1; }; };;
  1783. esac
  1784. host=$ac_cv_host
  1785. ac_save_IFS=$IFS; IFS='-'
  1786. set x $ac_cv_host
  1787. shift
  1788. host_cpu=$1
  1789. host_vendor=$2
  1790. shift; shift
  1791. # Remember, the first character of IFS is used to create $*,
  1792. # except with old shells:
  1793. host_os=$*
  1794. IFS=$ac_save_IFS
  1795. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1796. { echo "$as_me:$LINENO: checking target system type" >&5
  1797. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1798. if test "${ac_cv_target+set}" = set; then
  1799. echo $ECHO_N "(cached) $ECHO_C" >&6
  1800. else
  1801. if test "x$target_alias" = x; then
  1802. ac_cv_target=$ac_cv_host
  1803. else
  1804. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1805. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1806. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1807. { (exit 1); exit 1; }; }
  1808. fi
  1809. fi
  1810. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1811. echo "${ECHO_T}$ac_cv_target" >&6; }
  1812. case $ac_cv_target in
  1813. *-*-*) ;;
  1814. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1815. echo "$as_me: error: invalid value of canonical target" >&2;}
  1816. { (exit 1); exit 1; }; };;
  1817. esac
  1818. target=$ac_cv_target
  1819. ac_save_IFS=$IFS; IFS='-'
  1820. set x $ac_cv_target
  1821. shift
  1822. target_cpu=$1
  1823. target_vendor=$2
  1824. shift; shift
  1825. # Remember, the first character of IFS is used to create $*,
  1826. # except with old shells:
  1827. target_os=$*
  1828. IFS=$ac_save_IFS
  1829. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1830. # The aliases save the names the user supplied, while $host etc.
  1831. # will get canonicalized.
  1832. test -n "$target_alias" &&
  1833. test "$program_prefix$program_suffix$program_transform_name" = \
  1834. NONENONEs,x,x, &&
  1835. program_prefix=${target_alias}-
  1836. am__api_version='1.10'
  1837. # Find a good install program. We prefer a C program (faster),
  1838. # so one script is as good as another. But avoid the broken or
  1839. # incompatible versions:
  1840. # SysV /etc/install, /usr/sbin/install
  1841. # SunOS /usr/etc/install
  1842. # IRIX /sbin/install
  1843. # AIX /bin/install
  1844. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1845. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1846. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1847. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1848. # OS/2's system install, which has a completely different semantic
  1849. # ./install, which can be erroneously created by make from ./install.sh.
  1850. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1851. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1852. if test -z "$INSTALL"; then
  1853. if test "${ac_cv_path_install+set}" = set; then
  1854. echo $ECHO_N "(cached) $ECHO_C" >&6
  1855. else
  1856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1857. for as_dir in $PATH
  1858. do
  1859. IFS=$as_save_IFS
  1860. test -z "$as_dir" && as_dir=.
  1861. # Account for people who put trailing slashes in PATH elements.
  1862. case $as_dir/ in
  1863. ./ | .// | /cC/* | \
  1864. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1865. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1866. /usr/ucb/* ) ;;
  1867. *)
  1868. # OSF1 and SCO ODT 3.0 have their own names for install.
  1869. # Don't use installbsd from OSF since it installs stuff as root
  1870. # by default.
  1871. for ac_prog in ginstall scoinst install; do
  1872. for ac_exec_ext in '' $ac_executable_extensions; do
  1873. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1874. if test $ac_prog = install &&
  1875. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1876. # AIX install. It has an incompatible calling convention.
  1877. :
  1878. elif test $ac_prog = install &&
  1879. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1880. # program-specific install script used by HP pwplus--don't use.
  1881. :
  1882. else
  1883. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1884. break 3
  1885. fi
  1886. fi
  1887. done
  1888. done
  1889. ;;
  1890. esac
  1891. done
  1892. IFS=$as_save_IFS
  1893. fi
  1894. if test "${ac_cv_path_install+set}" = set; then
  1895. INSTALL=$ac_cv_path_install
  1896. else
  1897. # As a last resort, use the slow shell script. Don't cache a
  1898. # value for INSTALL within a source directory, because that will
  1899. # break other packages using the cache if that directory is
  1900. # removed, or if the value is a relative name.
  1901. INSTALL=$ac_install_sh
  1902. fi
  1903. fi
  1904. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1905. echo "${ECHO_T}$INSTALL" >&6; }
  1906. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1907. # It thinks the first close brace ends the variable substitution.
  1908. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1909. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1910. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1911. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1912. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1913. # Just in case
  1914. sleep 1
  1915. echo timestamp > conftest.file
  1916. # Do `set' in a subshell so we don't clobber the current shell's
  1917. # arguments. Must try -L first in case configure is actually a
  1918. # symlink; some systems play weird games with the mod time of symlinks
  1919. # (eg FreeBSD returns the mod time of the symlink's containing
  1920. # directory).
  1921. if (
  1922. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1923. if test "$*" = "X"; then
  1924. # -L didn't work.
  1925. set X `ls -t $srcdir/configure conftest.file`
  1926. fi
  1927. rm -f conftest.file
  1928. if test "$*" != "X $srcdir/configure conftest.file" \
  1929. && test "$*" != "X conftest.file $srcdir/configure"; then
  1930. # If neither matched, then we have a broken ls. This can happen
  1931. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1932. # broken ls alias from the environment. This has actually
  1933. # happened. Such a system could not be considered "sane".
  1934. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1935. alias in your environment" >&5
  1936. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1937. alias in your environment" >&2;}
  1938. { (exit 1); exit 1; }; }
  1939. fi
  1940. test "$2" = conftest.file
  1941. )
  1942. then
  1943. # Ok.
  1944. :
  1945. else
  1946. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1947. Check your system clock" >&5
  1948. echo "$as_me: error: newly created file is older than distributed files!
  1949. Check your system clock" >&2;}
  1950. { (exit 1); exit 1; }; }
  1951. fi
  1952. { echo "$as_me:$LINENO: result: yes" >&5
  1953. echo "${ECHO_T}yes" >&6; }
  1954. test "$program_prefix" != NONE &&
  1955. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1956. # Use a double $ so make ignores it.
  1957. test "$program_suffix" != NONE &&
  1958. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1959. # Double any \ or $. echo might interpret backslashes.
  1960. # By default was `s,x,x', remove it if useless.
  1961. cat <<\_ACEOF >conftest.sed
  1962. s/[\\$]/&&/g;s/;s,x,x,$//
  1963. _ACEOF
  1964. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1965. rm -f conftest.sed
  1966. # expand $ac_aux_dir to an absolute path
  1967. am_aux_dir=`cd $ac_aux_dir && pwd`
  1968. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1969. # Use eval to expand $SHELL
  1970. if eval "$MISSING --run true"; then
  1971. am_missing_run="$MISSING --run "
  1972. else
  1973. am_missing_run=
  1974. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1975. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1976. fi
  1977. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1978. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1979. if test -z "$MKDIR_P"; then
  1980. if test "${ac_cv_path_mkdir+set}" = set; then
  1981. echo $ECHO_N "(cached) $ECHO_C" >&6
  1982. else
  1983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1984. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1985. do
  1986. IFS=$as_save_IFS
  1987. test -z "$as_dir" && as_dir=.
  1988. for ac_prog in mkdir gmkdir; do
  1989. for ac_exec_ext in '' $ac_executable_extensions; do
  1990. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1991. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1992. 'mkdir (GNU coreutils) '* | \
  1993. 'mkdir (coreutils) '* | \
  1994. 'mkdir (fileutils) '4.1*)
  1995. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1996. break 3;;
  1997. esac
  1998. done
  1999. done
  2000. done
  2001. IFS=$as_save_IFS
  2002. fi
  2003. if test "${ac_cv_path_mkdir+set}" = set; then
  2004. MKDIR_P="$ac_cv_path_mkdir -p"
  2005. else
  2006. # As a last resort, use the slow shell script. Don't cache a
  2007. # value for MKDIR_P within a source directory, because that will
  2008. # break other packages using the cache if that directory is
  2009. # removed, or if the value is a relative name.
  2010. test -d ./--version && rmdir ./--version
  2011. MKDIR_P="$ac_install_sh -d"
  2012. fi
  2013. fi
  2014. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2015. echo "${ECHO_T}$MKDIR_P" >&6; }
  2016. mkdir_p="$MKDIR_P"
  2017. case $mkdir_p in
  2018. [\\/$]* | ?:[\\/]*) ;;
  2019. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2020. esac
  2021. for ac_prog in gawk mawk nawk awk
  2022. do
  2023. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2024. set dummy $ac_prog; ac_word=$2
  2025. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2026. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2027. if test "${ac_cv_prog_AWK+set}" = set; then
  2028. echo $ECHO_N "(cached) $ECHO_C" >&6
  2029. else
  2030. if test -n "$AWK"; then
  2031. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2032. else
  2033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2034. for as_dir in $PATH
  2035. do
  2036. IFS=$as_save_IFS
  2037. test -z "$as_dir" && as_dir=.
  2038. for ac_exec_ext in '' $ac_executable_extensions; do
  2039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2040. ac_cv_prog_AWK="$ac_prog"
  2041. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2042. break 2
  2043. fi
  2044. done
  2045. done
  2046. IFS=$as_save_IFS
  2047. fi
  2048. fi
  2049. AWK=$ac_cv_prog_AWK
  2050. if test -n "$AWK"; then
  2051. { echo "$as_me:$LINENO: result: $AWK" >&5
  2052. echo "${ECHO_T}$AWK" >&6; }
  2053. else
  2054. { echo "$as_me:$LINENO: result: no" >&5
  2055. echo "${ECHO_T}no" >&6; }
  2056. fi
  2057. test -n "$AWK" && break
  2058. done
  2059. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2060. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2061. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2062. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2063. echo $ECHO_N "(cached) $ECHO_C" >&6
  2064. else
  2065. cat >conftest.make <<\_ACEOF
  2066. SHELL = /bin/sh
  2067. all:
  2068. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2069. _ACEOF
  2070. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2071. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2072. *@@@%%%=?*=@@@%%%*)
  2073. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2074. *)
  2075. eval ac_cv_prog_make_${ac_make}_set=no;;
  2076. esac
  2077. rm -f conftest.make
  2078. fi
  2079. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2080. { echo "$as_me:$LINENO: result: yes" >&5
  2081. echo "${ECHO_T}yes" >&6; }
  2082. SET_MAKE=
  2083. else
  2084. { echo "$as_me:$LINENO: result: no" >&5
  2085. echo "${ECHO_T}no" >&6; }
  2086. SET_MAKE="MAKE=${MAKE-make}"
  2087. fi
  2088. rm -rf .tst 2>/dev/null
  2089. mkdir .tst 2>/dev/null
  2090. if test -d .tst; then
  2091. am__leading_dot=.
  2092. else
  2093. am__leading_dot=_
  2094. fi
  2095. rmdir .tst 2>/dev/null
  2096. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2097. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2098. # is not polluted with repeated "-I."
  2099. am__isrc=' -I$(srcdir)'
  2100. # test to see if srcdir already configured
  2101. if test -f $srcdir/config.status; then
  2102. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2103. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2104. { (exit 1); exit 1; }; }
  2105. fi
  2106. fi
  2107. # test whether we have cygpath
  2108. if test -z "$CYGPATH_W"; then
  2109. if (cygpath --version) >/dev/null 2>/dev/null; then
  2110. CYGPATH_W='cygpath -w'
  2111. else
  2112. CYGPATH_W=echo
  2113. fi
  2114. fi
  2115. # Define the identity of the package.
  2116. PACKAGE='aria2'
  2117. VERSION='1.3.2'
  2118. cat >>confdefs.h <<_ACEOF
  2119. #define PACKAGE "$PACKAGE"
  2120. _ACEOF
  2121. cat >>confdefs.h <<_ACEOF
  2122. #define VERSION "$VERSION"
  2123. _ACEOF
  2124. # Some tools Automake needs.
  2125. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2126. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2127. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2128. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2129. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2130. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2131. # Installed binaries are usually stripped using `strip' when the user
  2132. # run `make install-strip'. However `strip' might not be the right
  2133. # tool to use in cross-compilation environments, therefore Automake
  2134. # will honor the `STRIP' environment variable to overrule this program.
  2135. if test "$cross_compiling" != no; then
  2136. if test -n "$ac_tool_prefix"; then
  2137. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2138. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2139. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2140. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2141. if test "${ac_cv_prog_STRIP+set}" = set; then
  2142. echo $ECHO_N "(cached) $ECHO_C" >&6
  2143. else
  2144. if test -n "$STRIP"; then
  2145. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2146. else
  2147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2148. for as_dir in $PATH
  2149. do
  2150. IFS=$as_save_IFS
  2151. test -z "$as_dir" && as_dir=.
  2152. for ac_exec_ext in '' $ac_executable_extensions; do
  2153. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2154. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2155. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2156. break 2
  2157. fi
  2158. done
  2159. done
  2160. IFS=$as_save_IFS
  2161. fi
  2162. fi
  2163. STRIP=$ac_cv_prog_STRIP
  2164. if test -n "$STRIP"; then
  2165. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2166. echo "${ECHO_T}$STRIP" >&6; }
  2167. else
  2168. { echo "$as_me:$LINENO: result: no" >&5
  2169. echo "${ECHO_T}no" >&6; }
  2170. fi
  2171. fi
  2172. if test -z "$ac_cv_prog_STRIP"; then
  2173. ac_ct_STRIP=$STRIP
  2174. # Extract the first word of "strip", so it can be a program name with args.
  2175. set dummy strip; ac_word=$2
  2176. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2177. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2178. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2179. echo $ECHO_N "(cached) $ECHO_C" >&6
  2180. else
  2181. if test -n "$ac_ct_STRIP"; then
  2182. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2183. else
  2184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2185. for as_dir in $PATH
  2186. do
  2187. IFS=$as_save_IFS
  2188. test -z "$as_dir" && as_dir=.
  2189. for ac_exec_ext in '' $ac_executable_extensions; do
  2190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2191. ac_cv_prog_ac_ct_STRIP="strip"
  2192. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2193. break 2
  2194. fi
  2195. done
  2196. done
  2197. IFS=$as_save_IFS
  2198. fi
  2199. fi
  2200. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2201. if test -n "$ac_ct_STRIP"; then
  2202. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2203. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2204. else
  2205. { echo "$as_me:$LINENO: result: no" >&5
  2206. echo "${ECHO_T}no" >&6; }
  2207. fi
  2208. if test "x$ac_ct_STRIP" = x; then
  2209. STRIP=":"
  2210. else
  2211. case $cross_compiling:$ac_tool_warned in
  2212. yes:)
  2213. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2214. whose name does not start with the host triplet. If you think this
  2215. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2216. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2217. whose name does not start with the host triplet. If you think this
  2218. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2219. ac_tool_warned=yes ;;
  2220. esac
  2221. STRIP=$ac_ct_STRIP
  2222. fi
  2223. else
  2224. STRIP="$ac_cv_prog_STRIP"
  2225. fi
  2226. fi
  2227. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2228. # We need awk for the "check" target. The system "awk" is bad on
  2229. # some platforms.
  2230. # Always define AMTAR for backward compatibility.
  2231. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2232. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2233. # Check whether --with-cppunit-prefix was given.
  2234. if test "${with_cppunit_prefix+set}" = set; then
  2235. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2236. else
  2237. cppunit_config_prefix=""
  2238. fi
  2239. # Check whether --with-cppunit-exec-prefix was given.
  2240. if test "${with_cppunit_exec_prefix+set}" = set; then
  2241. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2242. else
  2243. cppunit_config_exec_prefix=""
  2244. fi
  2245. if test x$cppunit_config_exec_prefix != x ; then
  2246. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2247. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2248. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2249. fi
  2250. fi
  2251. if test x$cppunit_config_prefix != x ; then
  2252. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2253. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2254. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2255. fi
  2256. fi
  2257. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2258. set dummy cppunit-config; ac_word=$2
  2259. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2260. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2261. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2262. echo $ECHO_N "(cached) $ECHO_C" >&6
  2263. else
  2264. case $CPPUNIT_CONFIG in
  2265. [\\/]* | ?:[\\/]*)
  2266. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2267. ;;
  2268. *)
  2269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2270. for as_dir in $PATH
  2271. do
  2272. IFS=$as_save_IFS
  2273. test -z "$as_dir" && as_dir=.
  2274. for ac_exec_ext in '' $ac_executable_extensions; do
  2275. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2276. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2277. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2278. break 2
  2279. fi
  2280. done
  2281. done
  2282. IFS=$as_save_IFS
  2283. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2284. ;;
  2285. esac
  2286. fi
  2287. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2288. if test -n "$CPPUNIT_CONFIG"; then
  2289. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2290. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2291. else
  2292. { echo "$as_me:$LINENO: result: no" >&5
  2293. echo "${ECHO_T}no" >&6; }
  2294. fi
  2295. cppunit_version_min=1.10.2
  2296. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2297. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2298. no_cppunit=""
  2299. if test "$CPPUNIT_CONFIG" = "no" ; then
  2300. { echo "$as_me:$LINENO: result: no" >&5
  2301. echo "${ECHO_T}no" >&6; }
  2302. no_cppunit=yes
  2303. else
  2304. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2305. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2306. cppunit_version=`$CPPUNIT_CONFIG --version`
  2307. cppunit_major_version=`echo $cppunit_version | \
  2308. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2309. cppunit_minor_version=`echo $cppunit_version | \
  2310. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2311. cppunit_micro_version=`echo $cppunit_version | \
  2312. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2313. cppunit_major_min=`echo $cppunit_version_min | \
  2314. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2315. if test "x${cppunit_major_min}" = "x" ; then
  2316. cppunit_major_min=0
  2317. fi
  2318. cppunit_minor_min=`echo $cppunit_version_min | \
  2319. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2320. if test "x${cppunit_minor_min}" = "x" ; then
  2321. cppunit_minor_min=0
  2322. fi
  2323. cppunit_micro_min=`echo $cppunit_version_min | \
  2324. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2325. if test "x${cppunit_micro_min}" = "x" ; then
  2326. cppunit_micro_min=0
  2327. fi
  2328. cppunit_version_proper=`expr \
  2329. $cppunit_major_version \> $cppunit_major_min \| \
  2330. $cppunit_major_version \= $cppunit_major_min \& \
  2331. $cppunit_minor_version \> $cppunit_minor_min \| \
  2332. $cppunit_major_version \= $cppunit_major_min \& \
  2333. $cppunit_minor_version \= $cppunit_minor_min \& \
  2334. $cppunit_micro_version \>= $cppunit_micro_min `
  2335. if test "$cppunit_version_proper" = "1" ; then
  2336. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2337. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2338. else
  2339. { echo "$as_me:$LINENO: result: no" >&5
  2340. echo "${ECHO_T}no" >&6; }
  2341. no_cppunit=yes
  2342. fi
  2343. fi
  2344. if test "x$no_cppunit" = x ; then
  2345. :
  2346. else
  2347. CPPUNIT_CFLAGS=""
  2348. CPPUNIT_LIBS=""
  2349. :
  2350. fi
  2351. ac_config_headers="$ac_config_headers config.h"
  2352. case "$target" in
  2353. *mingw*|*cygwin*)
  2354. WINSOCK_LIBS="-lws2_32 -lpthread"
  2355. ;;
  2356. esac
  2357. cat >>confdefs.h <<_ACEOF
  2358. #define TARGET "$target"
  2359. _ACEOF
  2360. # Set localedir
  2361. localedir=${datadir}/locale
  2362. # Checks for arguments.
  2363. # Check whether --with-gnutls was given.
  2364. if test "${with_gnutls+set}" = set; then
  2365. withval=$with_gnutls; with_gnutls=$withval
  2366. else
  2367. with_gnutls=yes
  2368. fi
  2369. # Check whether --with-openssl was given.
  2370. if test "${with_openssl+set}" = set; then
  2371. withval=$with_openssl; with_openssl=$withval
  2372. else
  2373. with_openssl=yes
  2374. fi
  2375. # Check whether --with-sqlite3 was given.
  2376. if test "${with_sqlite3+set}" = set; then
  2377. withval=$with_sqlite3; with_sqlite3=$withval
  2378. else
  2379. with_sqlite3=yes
  2380. fi
  2381. # Check whether --with-libxml2 was given.
  2382. if test "${with_libxml2+set}" = set; then
  2383. withval=$with_libxml2; with_libxml2=$withval
  2384. else
  2385. with_libxml2=yes
  2386. fi
  2387. # Check whether --with-libexpat was given.
  2388. if test "${with_libexpat+set}" = set; then
  2389. withval=$with_libexpat; with_libexpat=$withval
  2390. else
  2391. with_libexpat=yes
  2392. fi
  2393. # Check whether --with-libcares was given.
  2394. if test "${with_libcares+set}" = set; then
  2395. withval=$with_libcares; with_libcares=$withval
  2396. else
  2397. with_libcares=yes
  2398. fi
  2399. # Check whether --with-libz was given.
  2400. if test "${with_libz+set}" = set; then
  2401. withval=$with_libz; with_libz=$withval
  2402. else
  2403. with_libz=yes
  2404. fi
  2405. # Check whether --enable-bittorrent was given.
  2406. if test "${enable_bittorrent+set}" = set; then
  2407. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2408. else
  2409. enable_bittorrent=yes
  2410. fi
  2411. # Check whether --enable-metalink was given.
  2412. if test "${enable_metalink+set}" = set; then
  2413. enableval=$enable_metalink; enable_metalink=$enableval
  2414. else
  2415. enable_metalink=yes
  2416. fi
  2417. # Check whether --enable-epoll was given.
  2418. if test "${enable_epoll+set}" = set; then
  2419. enableval=$enable_epoll; enable_epoll=$enableval
  2420. else
  2421. enable_epoll=yes
  2422. fi
  2423. # Check whether --with-ca-bundle was given.
  2424. if test "${with_ca_bundle+set}" = set; then
  2425. withval=$with_ca_bundle; ca_bundle=$withval
  2426. else
  2427. ca_bundle=""
  2428. fi
  2429. # Checks for programs.
  2430. ac_ext=cpp
  2431. ac_cpp='$CXXCPP $CPPFLAGS'
  2432. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2433. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2434. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2435. if test -z "$CXX"; then
  2436. if test -n "$CCC"; then
  2437. CXX=$CCC
  2438. else
  2439. if test -n "$ac_tool_prefix"; then
  2440. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2441. do
  2442. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2443. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2444. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2445. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2446. if test "${ac_cv_prog_CXX+set}" = set; then
  2447. echo $ECHO_N "(cached) $ECHO_C" >&6
  2448. else
  2449. if test -n "$CXX"; then
  2450. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2451. else
  2452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2453. for as_dir in $PATH
  2454. do
  2455. IFS=$as_save_IFS
  2456. test -z "$as_dir" && as_dir=.
  2457. for ac_exec_ext in '' $ac_executable_extensions; do
  2458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2459. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2460. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2461. break 2
  2462. fi
  2463. done
  2464. done
  2465. IFS=$as_save_IFS
  2466. fi
  2467. fi
  2468. CXX=$ac_cv_prog_CXX
  2469. if test -n "$CXX"; then
  2470. { echo "$as_me:$LINENO: result: $CXX" >&5
  2471. echo "${ECHO_T}$CXX" >&6; }
  2472. else
  2473. { echo "$as_me:$LINENO: result: no" >&5
  2474. echo "${ECHO_T}no" >&6; }
  2475. fi
  2476. test -n "$CXX" && break
  2477. done
  2478. fi
  2479. if test -z "$CXX"; then
  2480. ac_ct_CXX=$CXX
  2481. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2482. do
  2483. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2484. set dummy $ac_prog; ac_word=$2
  2485. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2486. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2487. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2488. echo $ECHO_N "(cached) $ECHO_C" >&6
  2489. else
  2490. if test -n "$ac_ct_CXX"; then
  2491. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2492. else
  2493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2494. for as_dir in $PATH
  2495. do
  2496. IFS=$as_save_IFS
  2497. test -z "$as_dir" && as_dir=.
  2498. for ac_exec_ext in '' $ac_executable_extensions; do
  2499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2500. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2501. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2502. break 2
  2503. fi
  2504. done
  2505. done
  2506. IFS=$as_save_IFS
  2507. fi
  2508. fi
  2509. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2510. if test -n "$ac_ct_CXX"; then
  2511. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2512. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2513. else
  2514. { echo "$as_me:$LINENO: result: no" >&5
  2515. echo "${ECHO_T}no" >&6; }
  2516. fi
  2517. test -n "$ac_ct_CXX" && break
  2518. done
  2519. if test "x$ac_ct_CXX" = x; then
  2520. CXX="g++"
  2521. else
  2522. case $cross_compiling:$ac_tool_warned in
  2523. yes:)
  2524. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2525. whose name does not start with the host triplet. If you think this
  2526. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2527. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2528. whose name does not start with the host triplet. If you think this
  2529. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2530. ac_tool_warned=yes ;;
  2531. esac
  2532. CXX=$ac_ct_CXX
  2533. fi
  2534. fi
  2535. fi
  2536. fi
  2537. # Provide some information about the compiler.
  2538. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2539. ac_compiler=`set X $ac_compile; echo $2`
  2540. { (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
  2547. ac_status=$?
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); }
  2550. { (ac_try="$ac_compiler -v >&5"
  2551. case "(($ac_try" in
  2552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2553. *) ac_try_echo=$ac_try;;
  2554. esac
  2555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2556. (eval "$ac_compiler -v >&5") 2>&5
  2557. ac_status=$?
  2558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2559. (exit $ac_status); }
  2560. { (ac_try="$ac_compiler -V >&5"
  2561. case "(($ac_try" in
  2562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2563. *) ac_try_echo=$ac_try;;
  2564. esac
  2565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2566. (eval "$ac_compiler -V >&5") 2>&5
  2567. ac_status=$?
  2568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2569. (exit $ac_status); }
  2570. cat >conftest.$ac_ext <<_ACEOF
  2571. /* confdefs.h. */
  2572. _ACEOF
  2573. cat confdefs.h >>conftest.$ac_ext
  2574. cat >>conftest.$ac_ext <<_ACEOF
  2575. /* end confdefs.h. */
  2576. int
  2577. main ()
  2578. {
  2579. ;
  2580. return 0;
  2581. }
  2582. _ACEOF
  2583. ac_clean_files_save=$ac_clean_files
  2584. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2585. # Try to create an executable without -o first, disregard a.out.
  2586. # It will help us diagnose broken compilers, and finding out an intuition
  2587. # of exeext.
  2588. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2589. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2590. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2591. #
  2592. # List of possible output files, starting from the most likely.
  2593. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2594. # only as a last resort. b.out is created by i960 compilers.
  2595. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2596. #
  2597. # The IRIX 6 linker writes into existing files which may not be
  2598. # executable, retaining their permissions. Remove them first so a
  2599. # subsequent execution test works.
  2600. ac_rmfiles=
  2601. for ac_file in $ac_files
  2602. do
  2603. case $ac_file in
  2604. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2605. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2606. esac
  2607. done
  2608. rm -f $ac_rmfiles
  2609. if { (ac_try="$ac_link_default"
  2610. case "(($ac_try" in
  2611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2612. *) ac_try_echo=$ac_try;;
  2613. esac
  2614. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2615. (eval "$ac_link_default") 2>&5
  2616. ac_status=$?
  2617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2618. (exit $ac_status); }; then
  2619. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2620. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2621. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2622. # so that the user can short-circuit this test for compilers unknown to
  2623. # Autoconf.
  2624. for ac_file in $ac_files ''
  2625. do
  2626. test -f "$ac_file" || continue
  2627. case $ac_file in
  2628. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2629. ;;
  2630. [ab].out )
  2631. # We found the default executable, but exeext='' is most
  2632. # certainly right.
  2633. break;;
  2634. *.* )
  2635. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2636. then :; else
  2637. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2638. fi
  2639. # We set ac_cv_exeext here because the later test for it is not
  2640. # safe: cross compilers may not add the suffix if given an `-o'
  2641. # argument, so we may need to know it at that point already.
  2642. # Even if this section looks crufty: it has the advantage of
  2643. # actually working.
  2644. break;;
  2645. * )
  2646. break;;
  2647. esac
  2648. done
  2649. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2650. else
  2651. ac_file=''
  2652. fi
  2653. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2654. echo "${ECHO_T}$ac_file" >&6; }
  2655. if test -z "$ac_file"; then
  2656. echo "$as_me: failed program was:" >&5
  2657. sed 's/^/| /' conftest.$ac_ext >&5
  2658. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2659. See \`config.log' for more details." >&5
  2660. echo "$as_me: error: C++ compiler cannot create executables
  2661. See \`config.log' for more details." >&2;}
  2662. { (exit 77); exit 77; }; }
  2663. fi
  2664. ac_exeext=$ac_cv_exeext
  2665. # Check that the compiler produces executables we can run. If not, either
  2666. # the compiler is broken, or we cross compile.
  2667. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2668. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2669. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2670. # If not cross compiling, check that we can run a simple program.
  2671. if test "$cross_compiling" != yes; then
  2672. if { ac_try='./$ac_file'
  2673. { (case "(($ac_try" in
  2674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2675. *) ac_try_echo=$ac_try;;
  2676. esac
  2677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2678. (eval "$ac_try") 2>&5
  2679. ac_status=$?
  2680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2681. (exit $ac_status); }; }; then
  2682. cross_compiling=no
  2683. else
  2684. if test "$cross_compiling" = maybe; then
  2685. cross_compiling=yes
  2686. else
  2687. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2688. If you meant to cross compile, use \`--host'.
  2689. See \`config.log' for more details." >&5
  2690. echo "$as_me: error: cannot run C++ compiled programs.
  2691. If you meant to cross compile, use \`--host'.
  2692. See \`config.log' for more details." >&2;}
  2693. { (exit 1); exit 1; }; }
  2694. fi
  2695. fi
  2696. fi
  2697. { echo "$as_me:$LINENO: result: yes" >&5
  2698. echo "${ECHO_T}yes" >&6; }
  2699. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2700. ac_clean_files=$ac_clean_files_save
  2701. # Check that the compiler produces executables we can run. If not, either
  2702. # the compiler is broken, or we cross compile.
  2703. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2704. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2705. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2706. echo "${ECHO_T}$cross_compiling" >&6; }
  2707. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2708. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2709. if { (ac_try="$ac_link"
  2710. case "(($ac_try" in
  2711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2712. *) ac_try_echo=$ac_try;;
  2713. esac
  2714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2715. (eval "$ac_link") 2>&5
  2716. ac_status=$?
  2717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2718. (exit $ac_status); }; then
  2719. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2720. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2721. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2722. # `rm'.
  2723. for ac_file in conftest.exe conftest conftest.*; do
  2724. test -f "$ac_file" || continue
  2725. case $ac_file in
  2726. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2727. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2728. break;;
  2729. * ) break;;
  2730. esac
  2731. done
  2732. else
  2733. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2734. See \`config.log' for more details." >&5
  2735. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2736. See \`config.log' for more details." >&2;}
  2737. { (exit 1); exit 1; }; }
  2738. fi
  2739. rm -f conftest$ac_cv_exeext
  2740. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2741. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2742. rm -f conftest.$ac_ext
  2743. EXEEXT=$ac_cv_exeext
  2744. ac_exeext=$EXEEXT
  2745. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2746. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2747. if test "${ac_cv_objext+set}" = set; then
  2748. echo $ECHO_N "(cached) $ECHO_C" >&6
  2749. else
  2750. cat >conftest.$ac_ext <<_ACEOF
  2751. /* confdefs.h. */
  2752. _ACEOF
  2753. cat confdefs.h >>conftest.$ac_ext
  2754. cat >>conftest.$ac_ext <<_ACEOF
  2755. /* end confdefs.h. */
  2756. int
  2757. main ()
  2758. {
  2759. ;
  2760. return 0;
  2761. }
  2762. _ACEOF
  2763. rm -f conftest.o conftest.obj
  2764. if { (ac_try="$ac_compile"
  2765. case "(($ac_try" in
  2766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2767. *) ac_try_echo=$ac_try;;
  2768. esac
  2769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2770. (eval "$ac_compile") 2>&5
  2771. ac_status=$?
  2772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2773. (exit $ac_status); }; then
  2774. for ac_file in conftest.o conftest.obj conftest.*; do
  2775. test -f "$ac_file" || continue;
  2776. case $ac_file in
  2777. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2778. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2779. break;;
  2780. esac
  2781. done
  2782. else
  2783. echo "$as_me: failed program was:" >&5
  2784. sed 's/^/| /' conftest.$ac_ext >&5
  2785. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2786. See \`config.log' for more details." >&5
  2787. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2788. See \`config.log' for more details." >&2;}
  2789. { (exit 1); exit 1; }; }
  2790. fi
  2791. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2792. fi
  2793. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2794. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2795. OBJEXT=$ac_cv_objext
  2796. ac_objext=$OBJEXT
  2797. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2798. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2799. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2800. echo $ECHO_N "(cached) $ECHO_C" >&6
  2801. else
  2802. cat >conftest.$ac_ext <<_ACEOF
  2803. /* confdefs.h. */
  2804. _ACEOF
  2805. cat confdefs.h >>conftest.$ac_ext
  2806. cat >>conftest.$ac_ext <<_ACEOF
  2807. /* end confdefs.h. */
  2808. int
  2809. main ()
  2810. {
  2811. #ifndef __GNUC__
  2812. choke me
  2813. #endif
  2814. ;
  2815. return 0;
  2816. }
  2817. _ACEOF
  2818. rm -f conftest.$ac_objext
  2819. if { (ac_try="$ac_compile"
  2820. case "(($ac_try" in
  2821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2822. *) ac_try_echo=$ac_try;;
  2823. esac
  2824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2825. (eval "$ac_compile") 2>conftest.er1
  2826. ac_status=$?
  2827. grep -v '^ *+' conftest.er1 >conftest.err
  2828. rm -f conftest.er1
  2829. cat conftest.err >&5
  2830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2831. (exit $ac_status); } && {
  2832. test -z "$ac_cxx_werror_flag" ||
  2833. test ! -s conftest.err
  2834. } && test -s conftest.$ac_objext; then
  2835. ac_compiler_gnu=yes
  2836. else
  2837. echo "$as_me: failed program was:" >&5
  2838. sed 's/^/| /' conftest.$ac_ext >&5
  2839. ac_compiler_gnu=no
  2840. fi
  2841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2842. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2843. fi
  2844. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2845. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2846. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2847. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2848. ac_save_CXXFLAGS=$CXXFLAGS
  2849. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2850. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2851. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2852. echo $ECHO_N "(cached) $ECHO_C" >&6
  2853. else
  2854. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2855. ac_cxx_werror_flag=yes
  2856. ac_cv_prog_cxx_g=no
  2857. CXXFLAGS="-g"
  2858. cat >conftest.$ac_ext <<_ACEOF
  2859. /* confdefs.h. */
  2860. _ACEOF
  2861. cat confdefs.h >>conftest.$ac_ext
  2862. cat >>conftest.$ac_ext <<_ACEOF
  2863. /* end confdefs.h. */
  2864. int
  2865. main ()
  2866. {
  2867. ;
  2868. return 0;
  2869. }
  2870. _ACEOF
  2871. rm -f conftest.$ac_objext
  2872. if { (ac_try="$ac_compile"
  2873. case "(($ac_try" in
  2874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2875. *) ac_try_echo=$ac_try;;
  2876. esac
  2877. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2878. (eval "$ac_compile") 2>conftest.er1
  2879. ac_status=$?
  2880. grep -v '^ *+' conftest.er1 >conftest.err
  2881. rm -f conftest.er1
  2882. cat conftest.err >&5
  2883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2884. (exit $ac_status); } && {
  2885. test -z "$ac_cxx_werror_flag" ||
  2886. test ! -s conftest.err
  2887. } && test -s conftest.$ac_objext; then
  2888. ac_cv_prog_cxx_g=yes
  2889. else
  2890. echo "$as_me: failed program was:" >&5
  2891. sed 's/^/| /' conftest.$ac_ext >&5
  2892. CXXFLAGS=""
  2893. cat >conftest.$ac_ext <<_ACEOF
  2894. /* confdefs.h. */
  2895. _ACEOF
  2896. cat confdefs.h >>conftest.$ac_ext
  2897. cat >>conftest.$ac_ext <<_ACEOF
  2898. /* end confdefs.h. */
  2899. int
  2900. main ()
  2901. {
  2902. ;
  2903. return 0;
  2904. }
  2905. _ACEOF
  2906. rm -f conftest.$ac_objext
  2907. if { (ac_try="$ac_compile"
  2908. case "(($ac_try" in
  2909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2910. *) ac_try_echo=$ac_try;;
  2911. esac
  2912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2913. (eval "$ac_compile") 2>conftest.er1
  2914. ac_status=$?
  2915. grep -v '^ *+' conftest.er1 >conftest.err
  2916. rm -f conftest.er1
  2917. cat conftest.err >&5
  2918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2919. (exit $ac_status); } && {
  2920. test -z "$ac_cxx_werror_flag" ||
  2921. test ! -s conftest.err
  2922. } && test -s conftest.$ac_objext; then
  2923. :
  2924. else
  2925. echo "$as_me: failed program was:" >&5
  2926. sed 's/^/| /' conftest.$ac_ext >&5
  2927. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2928. CXXFLAGS="-g"
  2929. cat >conftest.$ac_ext <<_ACEOF
  2930. /* confdefs.h. */
  2931. _ACEOF
  2932. cat confdefs.h >>conftest.$ac_ext
  2933. cat >>conftest.$ac_ext <<_ACEOF
  2934. /* end confdefs.h. */
  2935. int
  2936. main ()
  2937. {
  2938. ;
  2939. return 0;
  2940. }
  2941. _ACEOF
  2942. rm -f conftest.$ac_objext
  2943. if { (ac_try="$ac_compile"
  2944. case "(($ac_try" in
  2945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2946. *) ac_try_echo=$ac_try;;
  2947. esac
  2948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2949. (eval "$ac_compile") 2>conftest.er1
  2950. ac_status=$?
  2951. grep -v '^ *+' conftest.er1 >conftest.err
  2952. rm -f conftest.er1
  2953. cat conftest.err >&5
  2954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2955. (exit $ac_status); } && {
  2956. test -z "$ac_cxx_werror_flag" ||
  2957. test ! -s conftest.err
  2958. } && test -s conftest.$ac_objext; then
  2959. ac_cv_prog_cxx_g=yes
  2960. else
  2961. echo "$as_me: failed program was:" >&5
  2962. sed 's/^/| /' conftest.$ac_ext >&5
  2963. fi
  2964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2965. fi
  2966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2967. fi
  2968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2969. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2970. fi
  2971. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2972. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2973. if test "$ac_test_CXXFLAGS" = set; then
  2974. CXXFLAGS=$ac_save_CXXFLAGS
  2975. elif test $ac_cv_prog_cxx_g = yes; then
  2976. if test "$GXX" = yes; then
  2977. CXXFLAGS="-g -O2"
  2978. else
  2979. CXXFLAGS="-g"
  2980. fi
  2981. else
  2982. if test "$GXX" = yes; then
  2983. CXXFLAGS="-O2"
  2984. else
  2985. CXXFLAGS=
  2986. fi
  2987. fi
  2988. ac_ext=c
  2989. ac_cpp='$CPP $CPPFLAGS'
  2990. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2991. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2992. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2993. DEPDIR="${am__leading_dot}deps"
  2994. ac_config_commands="$ac_config_commands depfiles"
  2995. am_make=${MAKE-make}
  2996. cat > confinc << 'END'
  2997. am__doit:
  2998. @echo done
  2999. .PHONY: am__doit
  3000. END
  3001. # If we don't find an include directive, just comment out the code.
  3002. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3003. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3004. am__include="#"
  3005. am__quote=
  3006. _am_result=none
  3007. # First try GNU make style include.
  3008. echo "include confinc" > confmf
  3009. # We grep out `Entering directory' and `Leaving directory'
  3010. # messages which can occur if `w' ends up in MAKEFLAGS.
  3011. # In particular we don't look at `^make:' because GNU make might
  3012. # be invoked under some other name (usually "gmake"), in which
  3013. # case it prints its new name instead of `make'.
  3014. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3015. am__include=include
  3016. am__quote=
  3017. _am_result=GNU
  3018. fi
  3019. # Now try BSD make style include.
  3020. if test "$am__include" = "#"; then
  3021. echo '.include "confinc"' > confmf
  3022. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3023. am__include=.include
  3024. am__quote="\""
  3025. _am_result=BSD
  3026. fi
  3027. fi
  3028. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3029. echo "${ECHO_T}$_am_result" >&6; }
  3030. rm -f confinc confmf
  3031. # Check whether --enable-dependency-tracking was given.
  3032. if test "${enable_dependency_tracking+set}" = set; then
  3033. enableval=$enable_dependency_tracking;
  3034. fi
  3035. if test "x$enable_dependency_tracking" != xno; then
  3036. am_depcomp="$ac_aux_dir/depcomp"
  3037. AMDEPBACKSLASH='\'
  3038. fi
  3039. if test "x$enable_dependency_tracking" != xno; then
  3040. AMDEP_TRUE=
  3041. AMDEP_FALSE='#'
  3042. else
  3043. AMDEP_TRUE='#'
  3044. AMDEP_FALSE=
  3045. fi
  3046. depcc="$CXX" am_compiler_list=
  3047. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3048. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3049. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3050. echo $ECHO_N "(cached) $ECHO_C" >&6
  3051. else
  3052. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3053. # We make a subdir and do the tests there. Otherwise we can end up
  3054. # making bogus files that we don't know about and never remove. For
  3055. # instance it was reported that on HP-UX the gcc test will end up
  3056. # making a dummy file named `D' -- because `-MD' means `put the output
  3057. # in D'.
  3058. mkdir conftest.dir
  3059. # Copy depcomp to subdir because otherwise we won't find it if we're
  3060. # using a relative directory.
  3061. cp "$am_depcomp" conftest.dir
  3062. cd conftest.dir
  3063. # We will build objects and dependencies in a subdirectory because
  3064. # it helps to detect inapplicable dependency modes. For instance
  3065. # both Tru64's cc and ICC support -MD to output dependencies as a
  3066. # side effect of compilation, but ICC will put the dependencies in
  3067. # the current directory while Tru64 will put them in the object
  3068. # directory.
  3069. mkdir sub
  3070. am_cv_CXX_dependencies_compiler_type=none
  3071. if test "$am_compiler_list" = ""; then
  3072. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3073. fi
  3074. for depmode in $am_compiler_list; do
  3075. # Setup a source with many dependencies, because some compilers
  3076. # like to wrap large dependency lists on column 80 (with \), and
  3077. # we should not choose a depcomp mode which is confused by this.
  3078. #
  3079. # We need to recreate these files for each test, as the compiler may
  3080. # overwrite some of them when testing with obscure command lines.
  3081. # This happens at least with the AIX C compiler.
  3082. : > sub/conftest.c
  3083. for i in 1 2 3 4 5 6; do
  3084. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3085. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3086. # Solaris 8's {/usr,}/bin/sh.
  3087. touch sub/conftst$i.h
  3088. done
  3089. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3090. case $depmode in
  3091. nosideeffect)
  3092. # after this tag, mechanisms are not by side-effect, so they'll
  3093. # only be used when explicitly requested
  3094. if test "x$enable_dependency_tracking" = xyes; then
  3095. continue
  3096. else
  3097. break
  3098. fi
  3099. ;;
  3100. none) break ;;
  3101. esac
  3102. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3103. # mode. It turns out that the SunPro C++ compiler does not properly
  3104. # handle `-M -o', and we need to detect this.
  3105. if depmode=$depmode \
  3106. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3107. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3108. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3109. >/dev/null 2>conftest.err &&
  3110. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3111. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3112. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3113. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3114. # icc doesn't choke on unknown options, it will just issue warnings
  3115. # or remarks (even with -Werror). So we grep stderr for any message
  3116. # that says an option was ignored or not supported.
  3117. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3118. # icc: Command line warning: ignoring option '-M'; no argument required
  3119. # The diagnosis changed in icc 8.0:
  3120. # icc: Command line remark: option '-MP' not supported
  3121. if (grep 'ignoring option' conftest.err ||
  3122. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3123. am_cv_CXX_dependencies_compiler_type=$depmode
  3124. break
  3125. fi
  3126. fi
  3127. done
  3128. cd ..
  3129. rm -rf conftest.dir
  3130. else
  3131. am_cv_CXX_dependencies_compiler_type=none
  3132. fi
  3133. fi
  3134. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3135. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3136. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3137. if
  3138. test "x$enable_dependency_tracking" != xno \
  3139. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3140. am__fastdepCXX_TRUE=
  3141. am__fastdepCXX_FALSE='#'
  3142. else
  3143. am__fastdepCXX_TRUE='#'
  3144. am__fastdepCXX_FALSE=
  3145. fi
  3146. ac_ext=c
  3147. ac_cpp='$CPP $CPPFLAGS'
  3148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3151. if test -n "$ac_tool_prefix"; then
  3152. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3153. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3154. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3155. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3156. if test "${ac_cv_prog_CC+set}" = set; then
  3157. echo $ECHO_N "(cached) $ECHO_C" >&6
  3158. else
  3159. if test -n "$CC"; then
  3160. ac_cv_prog_CC="$CC" # Let the user override the test.
  3161. else
  3162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3163. for as_dir in $PATH
  3164. do
  3165. IFS=$as_save_IFS
  3166. test -z "$as_dir" && as_dir=.
  3167. for ac_exec_ext in '' $ac_executable_extensions; do
  3168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3169. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3170. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3171. break 2
  3172. fi
  3173. done
  3174. done
  3175. IFS=$as_save_IFS
  3176. fi
  3177. fi
  3178. CC=$ac_cv_prog_CC
  3179. if test -n "$CC"; then
  3180. { echo "$as_me:$LINENO: result: $CC" >&5
  3181. echo "${ECHO_T}$CC" >&6; }
  3182. else
  3183. { echo "$as_me:$LINENO: result: no" >&5
  3184. echo "${ECHO_T}no" >&6; }
  3185. fi
  3186. fi
  3187. if test -z "$ac_cv_prog_CC"; then
  3188. ac_ct_CC=$CC
  3189. # Extract the first word of "gcc", so it can be a program name with args.
  3190. set dummy gcc; ac_word=$2
  3191. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3192. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3193. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3194. echo $ECHO_N "(cached) $ECHO_C" >&6
  3195. else
  3196. if test -n "$ac_ct_CC"; then
  3197. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3198. else
  3199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3200. for as_dir in $PATH
  3201. do
  3202. IFS=$as_save_IFS
  3203. test -z "$as_dir" && as_dir=.
  3204. for ac_exec_ext in '' $ac_executable_extensions; do
  3205. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3206. ac_cv_prog_ac_ct_CC="gcc"
  3207. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3208. break 2
  3209. fi
  3210. done
  3211. done
  3212. IFS=$as_save_IFS
  3213. fi
  3214. fi
  3215. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3216. if test -n "$ac_ct_CC"; then
  3217. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3218. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3219. else
  3220. { echo "$as_me:$LINENO: result: no" >&5
  3221. echo "${ECHO_T}no" >&6; }
  3222. fi
  3223. if test "x$ac_ct_CC" = x; then
  3224. CC=""
  3225. else
  3226. case $cross_compiling:$ac_tool_warned in
  3227. yes:)
  3228. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3229. whose name does not start with the host triplet. If you think this
  3230. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3231. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3232. whose name does not start with the host triplet. If you think this
  3233. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3234. ac_tool_warned=yes ;;
  3235. esac
  3236. CC=$ac_ct_CC
  3237. fi
  3238. else
  3239. CC="$ac_cv_prog_CC"
  3240. fi
  3241. if test -z "$CC"; then
  3242. if test -n "$ac_tool_prefix"; then
  3243. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3244. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3245. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3246. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3247. if test "${ac_cv_prog_CC+set}" = set; then
  3248. echo $ECHO_N "(cached) $ECHO_C" >&6
  3249. else
  3250. if test -n "$CC"; then
  3251. ac_cv_prog_CC="$CC" # Let the user override the test.
  3252. else
  3253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3254. for as_dir in $PATH
  3255. do
  3256. IFS=$as_save_IFS
  3257. test -z "$as_dir" && as_dir=.
  3258. for ac_exec_ext in '' $ac_executable_extensions; do
  3259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3260. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3261. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3262. break 2
  3263. fi
  3264. done
  3265. done
  3266. IFS=$as_save_IFS
  3267. fi
  3268. fi
  3269. CC=$ac_cv_prog_CC
  3270. if test -n "$CC"; then
  3271. { echo "$as_me:$LINENO: result: $CC" >&5
  3272. echo "${ECHO_T}$CC" >&6; }
  3273. else
  3274. { echo "$as_me:$LINENO: result: no" >&5
  3275. echo "${ECHO_T}no" >&6; }
  3276. fi
  3277. fi
  3278. fi
  3279. if test -z "$CC"; then
  3280. # Extract the first word of "cc", so it can be a program name with args.
  3281. set dummy cc; ac_word=$2
  3282. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3283. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3284. if test "${ac_cv_prog_CC+set}" = set; then
  3285. echo $ECHO_N "(cached) $ECHO_C" >&6
  3286. else
  3287. if test -n "$CC"; then
  3288. ac_cv_prog_CC="$CC" # Let the user override the test.
  3289. else
  3290. ac_prog_rejected=no
  3291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3292. for as_dir in $PATH
  3293. do
  3294. IFS=$as_save_IFS
  3295. test -z "$as_dir" && as_dir=.
  3296. for ac_exec_ext in '' $ac_executable_extensions; do
  3297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3298. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3299. ac_prog_rejected=yes
  3300. continue
  3301. fi
  3302. ac_cv_prog_CC="cc"
  3303. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3304. break 2
  3305. fi
  3306. done
  3307. done
  3308. IFS=$as_save_IFS
  3309. if test $ac_prog_rejected = yes; then
  3310. # We found a bogon in the path, so make sure we never use it.
  3311. set dummy $ac_cv_prog_CC
  3312. shift
  3313. if test $# != 0; then
  3314. # We chose a different compiler from the bogus one.
  3315. # However, it has the same basename, so the bogon will be chosen
  3316. # first if we set CC to just the basename; use the full file name.
  3317. shift
  3318. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3319. fi
  3320. fi
  3321. fi
  3322. fi
  3323. CC=$ac_cv_prog_CC
  3324. if test -n "$CC"; then
  3325. { echo "$as_me:$LINENO: result: $CC" >&5
  3326. echo "${ECHO_T}$CC" >&6; }
  3327. else
  3328. { echo "$as_me:$LINENO: result: no" >&5
  3329. echo "${ECHO_T}no" >&6; }
  3330. fi
  3331. fi
  3332. if test -z "$CC"; then
  3333. if test -n "$ac_tool_prefix"; then
  3334. for ac_prog in cl.exe
  3335. do
  3336. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3337. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3338. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3339. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3340. if test "${ac_cv_prog_CC+set}" = set; then
  3341. echo $ECHO_N "(cached) $ECHO_C" >&6
  3342. else
  3343. if test -n "$CC"; then
  3344. ac_cv_prog_CC="$CC" # Let the user override the test.
  3345. else
  3346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3347. for as_dir in $PATH
  3348. do
  3349. IFS=$as_save_IFS
  3350. test -z "$as_dir" && as_dir=.
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3353. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3354. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3355. break 2
  3356. fi
  3357. done
  3358. done
  3359. IFS=$as_save_IFS
  3360. fi
  3361. fi
  3362. CC=$ac_cv_prog_CC
  3363. if test -n "$CC"; then
  3364. { echo "$as_me:$LINENO: result: $CC" >&5
  3365. echo "${ECHO_T}$CC" >&6; }
  3366. else
  3367. { echo "$as_me:$LINENO: result: no" >&5
  3368. echo "${ECHO_T}no" >&6; }
  3369. fi
  3370. test -n "$CC" && break
  3371. done
  3372. fi
  3373. if test -z "$CC"; then
  3374. ac_ct_CC=$CC
  3375. for ac_prog in cl.exe
  3376. do
  3377. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3378. set dummy $ac_prog; ac_word=$2
  3379. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3380. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3381. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3382. echo $ECHO_N "(cached) $ECHO_C" >&6
  3383. else
  3384. if test -n "$ac_ct_CC"; then
  3385. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3386. else
  3387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3388. for as_dir in $PATH
  3389. do
  3390. IFS=$as_save_IFS
  3391. test -z "$as_dir" && as_dir=.
  3392. for ac_exec_ext in '' $ac_executable_extensions; do
  3393. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3394. ac_cv_prog_ac_ct_CC="$ac_prog"
  3395. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3396. break 2
  3397. fi
  3398. done
  3399. done
  3400. IFS=$as_save_IFS
  3401. fi
  3402. fi
  3403. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3404. if test -n "$ac_ct_CC"; then
  3405. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3406. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3407. else
  3408. { echo "$as_me:$LINENO: result: no" >&5
  3409. echo "${ECHO_T}no" >&6; }
  3410. fi
  3411. test -n "$ac_ct_CC" && break
  3412. done
  3413. if test "x$ac_ct_CC" = x; then
  3414. CC=""
  3415. else
  3416. case $cross_compiling:$ac_tool_warned in
  3417. yes:)
  3418. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3419. whose name does not start with the host triplet. If you think this
  3420. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3421. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3422. whose name does not start with the host triplet. If you think this
  3423. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3424. ac_tool_warned=yes ;;
  3425. esac
  3426. CC=$ac_ct_CC
  3427. fi
  3428. fi
  3429. fi
  3430. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3431. See \`config.log' for more details." >&5
  3432. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3433. See \`config.log' for more details." >&2;}
  3434. { (exit 1); exit 1; }; }
  3435. # Provide some information about the compiler.
  3436. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3437. ac_compiler=`set X $ac_compile; echo $2`
  3438. { (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
  3445. ac_status=$?
  3446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3447. (exit $ac_status); }
  3448. { (ac_try="$ac_compiler -v >&5"
  3449. case "(($ac_try" in
  3450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3451. *) ac_try_echo=$ac_try;;
  3452. esac
  3453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3454. (eval "$ac_compiler -v >&5") 2>&5
  3455. ac_status=$?
  3456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3457. (exit $ac_status); }
  3458. { (ac_try="$ac_compiler -V >&5"
  3459. case "(($ac_try" in
  3460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3461. *) ac_try_echo=$ac_try;;
  3462. esac
  3463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3464. (eval "$ac_compiler -V >&5") 2>&5
  3465. ac_status=$?
  3466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); }
  3468. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3469. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3470. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3471. echo $ECHO_N "(cached) $ECHO_C" >&6
  3472. else
  3473. cat >conftest.$ac_ext <<_ACEOF
  3474. /* confdefs.h. */
  3475. _ACEOF
  3476. cat confdefs.h >>conftest.$ac_ext
  3477. cat >>conftest.$ac_ext <<_ACEOF
  3478. /* end confdefs.h. */
  3479. int
  3480. main ()
  3481. {
  3482. #ifndef __GNUC__
  3483. choke me
  3484. #endif
  3485. ;
  3486. return 0;
  3487. }
  3488. _ACEOF
  3489. rm -f conftest.$ac_objext
  3490. if { (ac_try="$ac_compile"
  3491. case "(($ac_try" in
  3492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3493. *) ac_try_echo=$ac_try;;
  3494. esac
  3495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3496. (eval "$ac_compile") 2>conftest.er1
  3497. ac_status=$?
  3498. grep -v '^ *+' conftest.er1 >conftest.err
  3499. rm -f conftest.er1
  3500. cat conftest.err >&5
  3501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3502. (exit $ac_status); } && {
  3503. test -z "$ac_c_werror_flag" ||
  3504. test ! -s conftest.err
  3505. } && test -s conftest.$ac_objext; then
  3506. ac_compiler_gnu=yes
  3507. else
  3508. echo "$as_me: failed program was:" >&5
  3509. sed 's/^/| /' conftest.$ac_ext >&5
  3510. ac_compiler_gnu=no
  3511. fi
  3512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3513. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3514. fi
  3515. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3516. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3517. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3518. ac_test_CFLAGS=${CFLAGS+set}
  3519. ac_save_CFLAGS=$CFLAGS
  3520. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3521. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3522. if test "${ac_cv_prog_cc_g+set}" = set; then
  3523. echo $ECHO_N "(cached) $ECHO_C" >&6
  3524. else
  3525. ac_save_c_werror_flag=$ac_c_werror_flag
  3526. ac_c_werror_flag=yes
  3527. ac_cv_prog_cc_g=no
  3528. CFLAGS="-g"
  3529. cat >conftest.$ac_ext <<_ACEOF
  3530. /* confdefs.h. */
  3531. _ACEOF
  3532. cat confdefs.h >>conftest.$ac_ext
  3533. cat >>conftest.$ac_ext <<_ACEOF
  3534. /* end confdefs.h. */
  3535. int
  3536. main ()
  3537. {
  3538. ;
  3539. return 0;
  3540. }
  3541. _ACEOF
  3542. rm -f conftest.$ac_objext
  3543. if { (ac_try="$ac_compile"
  3544. case "(($ac_try" in
  3545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3546. *) ac_try_echo=$ac_try;;
  3547. esac
  3548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3549. (eval "$ac_compile") 2>conftest.er1
  3550. ac_status=$?
  3551. grep -v '^ *+' conftest.er1 >conftest.err
  3552. rm -f conftest.er1
  3553. cat conftest.err >&5
  3554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3555. (exit $ac_status); } && {
  3556. test -z "$ac_c_werror_flag" ||
  3557. test ! -s conftest.err
  3558. } && test -s conftest.$ac_objext; then
  3559. ac_cv_prog_cc_g=yes
  3560. else
  3561. echo "$as_me: failed program was:" >&5
  3562. sed 's/^/| /' conftest.$ac_ext >&5
  3563. CFLAGS=""
  3564. cat >conftest.$ac_ext <<_ACEOF
  3565. /* confdefs.h. */
  3566. _ACEOF
  3567. cat confdefs.h >>conftest.$ac_ext
  3568. cat >>conftest.$ac_ext <<_ACEOF
  3569. /* end confdefs.h. */
  3570. int
  3571. main ()
  3572. {
  3573. ;
  3574. return 0;
  3575. }
  3576. _ACEOF
  3577. rm -f conftest.$ac_objext
  3578. if { (ac_try="$ac_compile"
  3579. case "(($ac_try" in
  3580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3581. *) ac_try_echo=$ac_try;;
  3582. esac
  3583. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3584. (eval "$ac_compile") 2>conftest.er1
  3585. ac_status=$?
  3586. grep -v '^ *+' conftest.er1 >conftest.err
  3587. rm -f conftest.er1
  3588. cat conftest.err >&5
  3589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3590. (exit $ac_status); } && {
  3591. test -z "$ac_c_werror_flag" ||
  3592. test ! -s conftest.err
  3593. } && test -s conftest.$ac_objext; then
  3594. :
  3595. else
  3596. echo "$as_me: failed program was:" >&5
  3597. sed 's/^/| /' conftest.$ac_ext >&5
  3598. ac_c_werror_flag=$ac_save_c_werror_flag
  3599. CFLAGS="-g"
  3600. cat >conftest.$ac_ext <<_ACEOF
  3601. /* confdefs.h. */
  3602. _ACEOF
  3603. cat confdefs.h >>conftest.$ac_ext
  3604. cat >>conftest.$ac_ext <<_ACEOF
  3605. /* end confdefs.h. */
  3606. int
  3607. main ()
  3608. {
  3609. ;
  3610. return 0;
  3611. }
  3612. _ACEOF
  3613. rm -f conftest.$ac_objext
  3614. if { (ac_try="$ac_compile"
  3615. case "(($ac_try" in
  3616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3617. *) ac_try_echo=$ac_try;;
  3618. esac
  3619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3620. (eval "$ac_compile") 2>conftest.er1
  3621. ac_status=$?
  3622. grep -v '^ *+' conftest.er1 >conftest.err
  3623. rm -f conftest.er1
  3624. cat conftest.err >&5
  3625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3626. (exit $ac_status); } && {
  3627. test -z "$ac_c_werror_flag" ||
  3628. test ! -s conftest.err
  3629. } && test -s conftest.$ac_objext; then
  3630. ac_cv_prog_cc_g=yes
  3631. else
  3632. echo "$as_me: failed program was:" >&5
  3633. sed 's/^/| /' conftest.$ac_ext >&5
  3634. fi
  3635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3636. fi
  3637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3638. fi
  3639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3640. ac_c_werror_flag=$ac_save_c_werror_flag
  3641. fi
  3642. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3643. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3644. if test "$ac_test_CFLAGS" = set; then
  3645. CFLAGS=$ac_save_CFLAGS
  3646. elif test $ac_cv_prog_cc_g = yes; then
  3647. if test "$GCC" = yes; then
  3648. CFLAGS="-g -O2"
  3649. else
  3650. CFLAGS="-g"
  3651. fi
  3652. else
  3653. if test "$GCC" = yes; then
  3654. CFLAGS="-O2"
  3655. else
  3656. CFLAGS=
  3657. fi
  3658. fi
  3659. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3660. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3661. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3662. echo $ECHO_N "(cached) $ECHO_C" >&6
  3663. else
  3664. ac_cv_prog_cc_c89=no
  3665. ac_save_CC=$CC
  3666. cat >conftest.$ac_ext <<_ACEOF
  3667. /* confdefs.h. */
  3668. _ACEOF
  3669. cat confdefs.h >>conftest.$ac_ext
  3670. cat >>conftest.$ac_ext <<_ACEOF
  3671. /* end confdefs.h. */
  3672. #include <stdarg.h>
  3673. #include <stdio.h>
  3674. #include <sys/types.h>
  3675. #include <sys/stat.h>
  3676. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3677. struct buf { int x; };
  3678. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3679. static char *e (p, i)
  3680. char **p;
  3681. int i;
  3682. {
  3683. return p[i];
  3684. }
  3685. static char *f (char * (*g) (char **, int), char **p, ...)
  3686. {
  3687. char *s;
  3688. va_list v;
  3689. va_start (v,p);
  3690. s = g (p, va_arg (v,int));
  3691. va_end (v);
  3692. return s;
  3693. }
  3694. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3695. function prototypes and stuff, but not '\xHH' hex character constants.
  3696. These don't provoke an error unfortunately, instead are silently treated
  3697. as 'x'. The following induces an error, until -std is added to get
  3698. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3699. array size at least. It's necessary to write '\x00'==0 to get something
  3700. that's true only with -std. */
  3701. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3702. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3703. inside strings and character constants. */
  3704. #define FOO(x) 'x'
  3705. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3706. int test (int i, double x);
  3707. struct s1 {int (*f) (int a);};
  3708. struct s2 {int (*f) (double a);};
  3709. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3710. int argc;
  3711. char **argv;
  3712. int
  3713. main ()
  3714. {
  3715. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3716. ;
  3717. return 0;
  3718. }
  3719. _ACEOF
  3720. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3721. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3722. do
  3723. CC="$ac_save_CC $ac_arg"
  3724. rm -f conftest.$ac_objext
  3725. if { (ac_try="$ac_compile"
  3726. case "(($ac_try" in
  3727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3728. *) ac_try_echo=$ac_try;;
  3729. esac
  3730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3731. (eval "$ac_compile") 2>conftest.er1
  3732. ac_status=$?
  3733. grep -v '^ *+' conftest.er1 >conftest.err
  3734. rm -f conftest.er1
  3735. cat conftest.err >&5
  3736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3737. (exit $ac_status); } && {
  3738. test -z "$ac_c_werror_flag" ||
  3739. test ! -s conftest.err
  3740. } && test -s conftest.$ac_objext; then
  3741. ac_cv_prog_cc_c89=$ac_arg
  3742. else
  3743. echo "$as_me: failed program was:" >&5
  3744. sed 's/^/| /' conftest.$ac_ext >&5
  3745. fi
  3746. rm -f core conftest.err conftest.$ac_objext
  3747. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3748. done
  3749. rm -f conftest.$ac_ext
  3750. CC=$ac_save_CC
  3751. fi
  3752. # AC_CACHE_VAL
  3753. case "x$ac_cv_prog_cc_c89" in
  3754. x)
  3755. { echo "$as_me:$LINENO: result: none needed" >&5
  3756. echo "${ECHO_T}none needed" >&6; } ;;
  3757. xno)
  3758. { echo "$as_me:$LINENO: result: unsupported" >&5
  3759. echo "${ECHO_T}unsupported" >&6; } ;;
  3760. *)
  3761. CC="$CC $ac_cv_prog_cc_c89"
  3762. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3763. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3764. esac
  3765. ac_ext=c
  3766. ac_cpp='$CPP $CPPFLAGS'
  3767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3770. depcc="$CC" am_compiler_list=
  3771. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3772. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3773. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3774. echo $ECHO_N "(cached) $ECHO_C" >&6
  3775. else
  3776. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3777. # We make a subdir and do the tests there. Otherwise we can end up
  3778. # making bogus files that we don't know about and never remove. For
  3779. # instance it was reported that on HP-UX the gcc test will end up
  3780. # making a dummy file named `D' -- because `-MD' means `put the output
  3781. # in D'.
  3782. mkdir conftest.dir
  3783. # Copy depcomp to subdir because otherwise we won't find it if we're
  3784. # using a relative directory.
  3785. cp "$am_depcomp" conftest.dir
  3786. cd conftest.dir
  3787. # We will build objects and dependencies in a subdirectory because
  3788. # it helps to detect inapplicable dependency modes. For instance
  3789. # both Tru64's cc and ICC support -MD to output dependencies as a
  3790. # side effect of compilation, but ICC will put the dependencies in
  3791. # the current directory while Tru64 will put them in the object
  3792. # directory.
  3793. mkdir sub
  3794. am_cv_CC_dependencies_compiler_type=none
  3795. if test "$am_compiler_list" = ""; then
  3796. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3797. fi
  3798. for depmode in $am_compiler_list; do
  3799. # Setup a source with many dependencies, because some compilers
  3800. # like to wrap large dependency lists on column 80 (with \), and
  3801. # we should not choose a depcomp mode which is confused by this.
  3802. #
  3803. # We need to recreate these files for each test, as the compiler may
  3804. # overwrite some of them when testing with obscure command lines.
  3805. # This happens at least with the AIX C compiler.
  3806. : > sub/conftest.c
  3807. for i in 1 2 3 4 5 6; do
  3808. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3809. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3810. # Solaris 8's {/usr,}/bin/sh.
  3811. touch sub/conftst$i.h
  3812. done
  3813. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3814. case $depmode in
  3815. nosideeffect)
  3816. # after this tag, mechanisms are not by side-effect, so they'll
  3817. # only be used when explicitly requested
  3818. if test "x$enable_dependency_tracking" = xyes; then
  3819. continue
  3820. else
  3821. break
  3822. fi
  3823. ;;
  3824. none) break ;;
  3825. esac
  3826. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3827. # mode. It turns out that the SunPro C++ compiler does not properly
  3828. # handle `-M -o', and we need to detect this.
  3829. if depmode=$depmode \
  3830. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3831. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3832. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3833. >/dev/null 2>conftest.err &&
  3834. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3835. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3836. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3837. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3838. # icc doesn't choke on unknown options, it will just issue warnings
  3839. # or remarks (even with -Werror). So we grep stderr for any message
  3840. # that says an option was ignored or not supported.
  3841. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3842. # icc: Command line warning: ignoring option '-M'; no argument required
  3843. # The diagnosis changed in icc 8.0:
  3844. # icc: Command line remark: option '-MP' not supported
  3845. if (grep 'ignoring option' conftest.err ||
  3846. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3847. am_cv_CC_dependencies_compiler_type=$depmode
  3848. break
  3849. fi
  3850. fi
  3851. done
  3852. cd ..
  3853. rm -rf conftest.dir
  3854. else
  3855. am_cv_CC_dependencies_compiler_type=none
  3856. fi
  3857. fi
  3858. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3859. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3860. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3861. if
  3862. test "x$enable_dependency_tracking" != xno \
  3863. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3864. am__fastdepCC_TRUE=
  3865. am__fastdepCC_FALSE='#'
  3866. else
  3867. am__fastdepCC_TRUE='#'
  3868. am__fastdepCC_FALSE=
  3869. fi
  3870. # Find a good install program. We prefer a C program (faster),
  3871. # so one script is as good as another. But avoid the broken or
  3872. # incompatible versions:
  3873. # SysV /etc/install, /usr/sbin/install
  3874. # SunOS /usr/etc/install
  3875. # IRIX /sbin/install
  3876. # AIX /bin/install
  3877. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3878. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3879. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3880. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3881. # OS/2's system install, which has a completely different semantic
  3882. # ./install, which can be erroneously created by make from ./install.sh.
  3883. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3884. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3885. if test -z "$INSTALL"; then
  3886. if test "${ac_cv_path_install+set}" = set; then
  3887. echo $ECHO_N "(cached) $ECHO_C" >&6
  3888. else
  3889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3890. for as_dir in $PATH
  3891. do
  3892. IFS=$as_save_IFS
  3893. test -z "$as_dir" && as_dir=.
  3894. # Account for people who put trailing slashes in PATH elements.
  3895. case $as_dir/ in
  3896. ./ | .// | /cC/* | \
  3897. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3898. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3899. /usr/ucb/* ) ;;
  3900. *)
  3901. # OSF1 and SCO ODT 3.0 have their own names for install.
  3902. # Don't use installbsd from OSF since it installs stuff as root
  3903. # by default.
  3904. for ac_prog in ginstall scoinst install; do
  3905. for ac_exec_ext in '' $ac_executable_extensions; do
  3906. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3907. if test $ac_prog = install &&
  3908. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3909. # AIX install. It has an incompatible calling convention.
  3910. :
  3911. elif test $ac_prog = install &&
  3912. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3913. # program-specific install script used by HP pwplus--don't use.
  3914. :
  3915. else
  3916. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3917. break 3
  3918. fi
  3919. fi
  3920. done
  3921. done
  3922. ;;
  3923. esac
  3924. done
  3925. IFS=$as_save_IFS
  3926. fi
  3927. if test "${ac_cv_path_install+set}" = set; then
  3928. INSTALL=$ac_cv_path_install
  3929. else
  3930. # As a last resort, use the slow shell script. Don't cache a
  3931. # value for INSTALL within a source directory, because that will
  3932. # break other packages using the cache if that directory is
  3933. # removed, or if the value is a relative name.
  3934. INSTALL=$ac_install_sh
  3935. fi
  3936. fi
  3937. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3938. echo "${ECHO_T}$INSTALL" >&6; }
  3939. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3940. # It thinks the first close brace ends the variable substitution.
  3941. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3942. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3943. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3944. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3945. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3946. if test -z "$MKDIR_P"; then
  3947. if test "${ac_cv_path_mkdir+set}" = set; then
  3948. echo $ECHO_N "(cached) $ECHO_C" >&6
  3949. else
  3950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3951. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3952. do
  3953. IFS=$as_save_IFS
  3954. test -z "$as_dir" && as_dir=.
  3955. for ac_prog in mkdir gmkdir; do
  3956. for ac_exec_ext in '' $ac_executable_extensions; do
  3957. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3958. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3959. 'mkdir (GNU coreutils) '* | \
  3960. 'mkdir (coreutils) '* | \
  3961. 'mkdir (fileutils) '4.1*)
  3962. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3963. break 3;;
  3964. esac
  3965. done
  3966. done
  3967. done
  3968. IFS=$as_save_IFS
  3969. fi
  3970. if test "${ac_cv_path_mkdir+set}" = set; then
  3971. MKDIR_P="$ac_cv_path_mkdir -p"
  3972. else
  3973. # As a last resort, use the slow shell script. Don't cache a
  3974. # value for MKDIR_P within a source directory, because that will
  3975. # break other packages using the cache if that directory is
  3976. # removed, or if the value is a relative name.
  3977. test -d ./--version && rmdir ./--version
  3978. MKDIR_P="$ac_install_sh -d"
  3979. fi
  3980. fi
  3981. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3982. echo "${ECHO_T}$MKDIR_P" >&6; }
  3983. if test -n "$ac_tool_prefix"; then
  3984. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3985. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3986. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3987. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3988. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3989. echo $ECHO_N "(cached) $ECHO_C" >&6
  3990. else
  3991. if test -n "$RANLIB"; then
  3992. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3993. else
  3994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3995. for as_dir in $PATH
  3996. do
  3997. IFS=$as_save_IFS
  3998. test -z "$as_dir" && as_dir=.
  3999. for ac_exec_ext in '' $ac_executable_extensions; do
  4000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4001. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4002. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4003. break 2
  4004. fi
  4005. done
  4006. done
  4007. IFS=$as_save_IFS
  4008. fi
  4009. fi
  4010. RANLIB=$ac_cv_prog_RANLIB
  4011. if test -n "$RANLIB"; then
  4012. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4013. echo "${ECHO_T}$RANLIB" >&6; }
  4014. else
  4015. { echo "$as_me:$LINENO: result: no" >&5
  4016. echo "${ECHO_T}no" >&6; }
  4017. fi
  4018. fi
  4019. if test -z "$ac_cv_prog_RANLIB"; then
  4020. ac_ct_RANLIB=$RANLIB
  4021. # Extract the first word of "ranlib", so it can be a program name with args.
  4022. set dummy ranlib; ac_word=$2
  4023. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4024. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4025. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4026. echo $ECHO_N "(cached) $ECHO_C" >&6
  4027. else
  4028. if test -n "$ac_ct_RANLIB"; then
  4029. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4030. else
  4031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4032. for as_dir in $PATH
  4033. do
  4034. IFS=$as_save_IFS
  4035. test -z "$as_dir" && as_dir=.
  4036. for ac_exec_ext in '' $ac_executable_extensions; do
  4037. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4038. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4039. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4040. break 2
  4041. fi
  4042. done
  4043. done
  4044. IFS=$as_save_IFS
  4045. fi
  4046. fi
  4047. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4048. if test -n "$ac_ct_RANLIB"; then
  4049. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4050. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4051. else
  4052. { echo "$as_me:$LINENO: result: no" >&5
  4053. echo "${ECHO_T}no" >&6; }
  4054. fi
  4055. if test "x$ac_ct_RANLIB" = x; then
  4056. RANLIB=":"
  4057. else
  4058. case $cross_compiling:$ac_tool_warned in
  4059. yes:)
  4060. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4061. whose name does not start with the host triplet. If you think this
  4062. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4063. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4064. whose name does not start with the host triplet. If you think this
  4065. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4066. ac_tool_warned=yes ;;
  4067. esac
  4068. RANLIB=$ac_ct_RANLIB
  4069. fi
  4070. else
  4071. RANLIB="$ac_cv_prog_RANLIB"
  4072. fi
  4073. for ac_prog in 'bison -y' byacc
  4074. do
  4075. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4076. set dummy $ac_prog; ac_word=$2
  4077. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4078. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4079. if test "${ac_cv_prog_YACC+set}" = set; then
  4080. echo $ECHO_N "(cached) $ECHO_C" >&6
  4081. else
  4082. if test -n "$YACC"; then
  4083. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4084. else
  4085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4086. for as_dir in $PATH
  4087. do
  4088. IFS=$as_save_IFS
  4089. test -z "$as_dir" && as_dir=.
  4090. for ac_exec_ext in '' $ac_executable_extensions; do
  4091. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4092. ac_cv_prog_YACC="$ac_prog"
  4093. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4094. break 2
  4095. fi
  4096. done
  4097. done
  4098. IFS=$as_save_IFS
  4099. fi
  4100. fi
  4101. YACC=$ac_cv_prog_YACC
  4102. if test -n "$YACC"; then
  4103. { echo "$as_me:$LINENO: result: $YACC" >&5
  4104. echo "${ECHO_T}$YACC" >&6; }
  4105. else
  4106. { echo "$as_me:$LINENO: result: no" >&5
  4107. echo "${ECHO_T}no" >&6; }
  4108. fi
  4109. test -n "$YACC" && break
  4110. done
  4111. test -n "$YACC" || YACC="yacc"
  4112. # Setting language choice
  4113. ac_ext=cpp
  4114. ac_cpp='$CXXCPP $CPPFLAGS'
  4115. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4116. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4117. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4118. # Check for GNU library
  4119. cat >>confdefs.h <<\_ACEOF
  4120. #define _GNU_SOURCE 1
  4121. _ACEOF
  4122. # Enable system extensions
  4123. ac_ext=cpp
  4124. ac_cpp='$CXXCPP $CPPFLAGS'
  4125. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4126. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4127. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4128. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4129. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4130. if test -z "$CXXCPP"; then
  4131. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4132. echo $ECHO_N "(cached) $ECHO_C" >&6
  4133. else
  4134. # Double quotes because CXXCPP needs to be expanded
  4135. for CXXCPP in "$CXX -E" "/lib/cpp"
  4136. do
  4137. ac_preproc_ok=false
  4138. for ac_cxx_preproc_warn_flag in '' yes
  4139. do
  4140. # Use a header file that comes with gcc, so configuring glibc
  4141. # with a fresh cross-compiler works.
  4142. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4143. # <limits.h> exists even on freestanding compilers.
  4144. # On the NeXT, cc -E runs the code through the compiler's parser,
  4145. # not just through cpp. "Syntax error" is here to catch this case.
  4146. cat >conftest.$ac_ext <<_ACEOF
  4147. /* confdefs.h. */
  4148. _ACEOF
  4149. cat confdefs.h >>conftest.$ac_ext
  4150. cat >>conftest.$ac_ext <<_ACEOF
  4151. /* end confdefs.h. */
  4152. #ifdef __STDC__
  4153. # include <limits.h>
  4154. #else
  4155. # include <assert.h>
  4156. #endif
  4157. Syntax error
  4158. _ACEOF
  4159. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4160. case "(($ac_try" in
  4161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4162. *) ac_try_echo=$ac_try;;
  4163. esac
  4164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4165. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4166. ac_status=$?
  4167. grep -v '^ *+' conftest.er1 >conftest.err
  4168. rm -f conftest.er1
  4169. cat conftest.err >&5
  4170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4171. (exit $ac_status); } >/dev/null && {
  4172. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4173. test ! -s conftest.err
  4174. }; then
  4175. :
  4176. else
  4177. echo "$as_me: failed program was:" >&5
  4178. sed 's/^/| /' conftest.$ac_ext >&5
  4179. # Broken: fails on valid input.
  4180. continue
  4181. fi
  4182. rm -f conftest.err conftest.$ac_ext
  4183. # OK, works on sane cases. Now check whether nonexistent headers
  4184. # can be detected and how.
  4185. cat >conftest.$ac_ext <<_ACEOF
  4186. /* confdefs.h. */
  4187. _ACEOF
  4188. cat confdefs.h >>conftest.$ac_ext
  4189. cat >>conftest.$ac_ext <<_ACEOF
  4190. /* end confdefs.h. */
  4191. #include <ac_nonexistent.h>
  4192. _ACEOF
  4193. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4194. case "(($ac_try" in
  4195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4196. *) ac_try_echo=$ac_try;;
  4197. esac
  4198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4199. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4200. ac_status=$?
  4201. grep -v '^ *+' conftest.er1 >conftest.err
  4202. rm -f conftest.er1
  4203. cat conftest.err >&5
  4204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4205. (exit $ac_status); } >/dev/null && {
  4206. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4207. test ! -s conftest.err
  4208. }; then
  4209. # Broken: success on invalid input.
  4210. continue
  4211. else
  4212. echo "$as_me: failed program was:" >&5
  4213. sed 's/^/| /' conftest.$ac_ext >&5
  4214. # Passes both tests.
  4215. ac_preproc_ok=:
  4216. break
  4217. fi
  4218. rm -f conftest.err conftest.$ac_ext
  4219. done
  4220. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4221. rm -f conftest.err conftest.$ac_ext
  4222. if $ac_preproc_ok; then
  4223. break
  4224. fi
  4225. done
  4226. ac_cv_prog_CXXCPP=$CXXCPP
  4227. fi
  4228. CXXCPP=$ac_cv_prog_CXXCPP
  4229. else
  4230. ac_cv_prog_CXXCPP=$CXXCPP
  4231. fi
  4232. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4233. echo "${ECHO_T}$CXXCPP" >&6; }
  4234. ac_preproc_ok=false
  4235. for ac_cxx_preproc_warn_flag in '' yes
  4236. do
  4237. # Use a header file that comes with gcc, so configuring glibc
  4238. # with a fresh cross-compiler works.
  4239. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4240. # <limits.h> exists even on freestanding compilers.
  4241. # On the NeXT, cc -E runs the code through the compiler's parser,
  4242. # not just through cpp. "Syntax error" is here to catch this case.
  4243. cat >conftest.$ac_ext <<_ACEOF
  4244. /* confdefs.h. */
  4245. _ACEOF
  4246. cat confdefs.h >>conftest.$ac_ext
  4247. cat >>conftest.$ac_ext <<_ACEOF
  4248. /* end confdefs.h. */
  4249. #ifdef __STDC__
  4250. # include <limits.h>
  4251. #else
  4252. # include <assert.h>
  4253. #endif
  4254. Syntax error
  4255. _ACEOF
  4256. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4257. case "(($ac_try" in
  4258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4259. *) ac_try_echo=$ac_try;;
  4260. esac
  4261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4262. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4263. ac_status=$?
  4264. grep -v '^ *+' conftest.er1 >conftest.err
  4265. rm -f conftest.er1
  4266. cat conftest.err >&5
  4267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4268. (exit $ac_status); } >/dev/null && {
  4269. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4270. test ! -s conftest.err
  4271. }; then
  4272. :
  4273. else
  4274. echo "$as_me: failed program was:" >&5
  4275. sed 's/^/| /' conftest.$ac_ext >&5
  4276. # Broken: fails on valid input.
  4277. continue
  4278. fi
  4279. rm -f conftest.err conftest.$ac_ext
  4280. # OK, works on sane cases. Now check whether nonexistent headers
  4281. # can be detected and how.
  4282. cat >conftest.$ac_ext <<_ACEOF
  4283. /* confdefs.h. */
  4284. _ACEOF
  4285. cat confdefs.h >>conftest.$ac_ext
  4286. cat >>conftest.$ac_ext <<_ACEOF
  4287. /* end confdefs.h. */
  4288. #include <ac_nonexistent.h>
  4289. _ACEOF
  4290. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4291. case "(($ac_try" in
  4292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4293. *) ac_try_echo=$ac_try;;
  4294. esac
  4295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4296. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4297. ac_status=$?
  4298. grep -v '^ *+' conftest.er1 >conftest.err
  4299. rm -f conftest.er1
  4300. cat conftest.err >&5
  4301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4302. (exit $ac_status); } >/dev/null && {
  4303. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4304. test ! -s conftest.err
  4305. }; then
  4306. # Broken: success on invalid input.
  4307. continue
  4308. else
  4309. echo "$as_me: failed program was:" >&5
  4310. sed 's/^/| /' conftest.$ac_ext >&5
  4311. # Passes both tests.
  4312. ac_preproc_ok=:
  4313. break
  4314. fi
  4315. rm -f conftest.err conftest.$ac_ext
  4316. done
  4317. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4318. rm -f conftest.err conftest.$ac_ext
  4319. if $ac_preproc_ok; then
  4320. :
  4321. else
  4322. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4323. See \`config.log' for more details." >&5
  4324. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4325. See \`config.log' for more details." >&2;}
  4326. { (exit 1); exit 1; }; }
  4327. fi
  4328. ac_ext=cpp
  4329. ac_cpp='$CXXCPP $CPPFLAGS'
  4330. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4331. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4332. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4333. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4334. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4335. if test "${ac_cv_path_GREP+set}" = set; then
  4336. echo $ECHO_N "(cached) $ECHO_C" >&6
  4337. else
  4338. # Extract the first word of "grep ggrep" to use in msg output
  4339. if test -z "$GREP"; then
  4340. set dummy grep ggrep; ac_prog_name=$2
  4341. if test "${ac_cv_path_GREP+set}" = set; then
  4342. echo $ECHO_N "(cached) $ECHO_C" >&6
  4343. else
  4344. ac_path_GREP_found=false
  4345. # Loop through the user's path and test for each of PROGNAME-LIST
  4346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4347. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4348. do
  4349. IFS=$as_save_IFS
  4350. test -z "$as_dir" && as_dir=.
  4351. for ac_prog in grep ggrep; do
  4352. for ac_exec_ext in '' $ac_executable_extensions; do
  4353. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4354. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4355. # Check for GNU ac_path_GREP and select it if it is found.
  4356. # Check for GNU $ac_path_GREP
  4357. case `"$ac_path_GREP" --version 2>&1` in
  4358. *GNU*)
  4359. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4360. *)
  4361. ac_count=0
  4362. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4363. while :
  4364. do
  4365. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4366. mv "conftest.tmp" "conftest.in"
  4367. cp "conftest.in" "conftest.nl"
  4368. echo 'GREP' >> "conftest.nl"
  4369. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4370. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4371. ac_count=`expr $ac_count + 1`
  4372. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4373. # Best one so far, save it but keep looking for a better one
  4374. ac_cv_path_GREP="$ac_path_GREP"
  4375. ac_path_GREP_max=$ac_count
  4376. fi
  4377. # 10*(2^10) chars as input seems more than enough
  4378. test $ac_count -gt 10 && break
  4379. done
  4380. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4381. esac
  4382. $ac_path_GREP_found && break 3
  4383. done
  4384. done
  4385. done
  4386. IFS=$as_save_IFS
  4387. fi
  4388. GREP="$ac_cv_path_GREP"
  4389. if test -z "$GREP"; then
  4390. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4391. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4392. { (exit 1); exit 1; }; }
  4393. fi
  4394. else
  4395. ac_cv_path_GREP=$GREP
  4396. fi
  4397. fi
  4398. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4399. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4400. GREP="$ac_cv_path_GREP"
  4401. { echo "$as_me:$LINENO: checking for egrep" >&5
  4402. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4403. if test "${ac_cv_path_EGREP+set}" = set; then
  4404. echo $ECHO_N "(cached) $ECHO_C" >&6
  4405. else
  4406. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4407. then ac_cv_path_EGREP="$GREP -E"
  4408. else
  4409. # Extract the first word of "egrep" to use in msg output
  4410. if test -z "$EGREP"; then
  4411. set dummy egrep; ac_prog_name=$2
  4412. if test "${ac_cv_path_EGREP+set}" = set; then
  4413. echo $ECHO_N "(cached) $ECHO_C" >&6
  4414. else
  4415. ac_path_EGREP_found=false
  4416. # Loop through the user's path and test for each of PROGNAME-LIST
  4417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4418. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4419. do
  4420. IFS=$as_save_IFS
  4421. test -z "$as_dir" && as_dir=.
  4422. for ac_prog in egrep; do
  4423. for ac_exec_ext in '' $ac_executable_extensions; do
  4424. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4425. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4426. # Check for GNU ac_path_EGREP and select it if it is found.
  4427. # Check for GNU $ac_path_EGREP
  4428. case `"$ac_path_EGREP" --version 2>&1` in
  4429. *GNU*)
  4430. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4431. *)
  4432. ac_count=0
  4433. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4434. while :
  4435. do
  4436. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4437. mv "conftest.tmp" "conftest.in"
  4438. cp "conftest.in" "conftest.nl"
  4439. echo 'EGREP' >> "conftest.nl"
  4440. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4441. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4442. ac_count=`expr $ac_count + 1`
  4443. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4444. # Best one so far, save it but keep looking for a better one
  4445. ac_cv_path_EGREP="$ac_path_EGREP"
  4446. ac_path_EGREP_max=$ac_count
  4447. fi
  4448. # 10*(2^10) chars as input seems more than enough
  4449. test $ac_count -gt 10 && break
  4450. done
  4451. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4452. esac
  4453. $ac_path_EGREP_found && break 3
  4454. done
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. fi
  4459. EGREP="$ac_cv_path_EGREP"
  4460. if test -z "$EGREP"; then
  4461. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4462. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4463. { (exit 1); exit 1; }; }
  4464. fi
  4465. else
  4466. ac_cv_path_EGREP=$EGREP
  4467. fi
  4468. fi
  4469. fi
  4470. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4471. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4472. EGREP="$ac_cv_path_EGREP"
  4473. { echo "$as_me:$LINENO: checking for AIX" >&5
  4474. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4475. cat >conftest.$ac_ext <<_ACEOF
  4476. /* confdefs.h. */
  4477. _ACEOF
  4478. cat confdefs.h >>conftest.$ac_ext
  4479. cat >>conftest.$ac_ext <<_ACEOF
  4480. /* end confdefs.h. */
  4481. #ifdef _AIX
  4482. yes
  4483. #endif
  4484. _ACEOF
  4485. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4486. $EGREP "yes" >/dev/null 2>&1; then
  4487. { echo "$as_me:$LINENO: result: yes" >&5
  4488. echo "${ECHO_T}yes" >&6; }
  4489. cat >>confdefs.h <<\_ACEOF
  4490. #define _ALL_SOURCE 1
  4491. _ACEOF
  4492. else
  4493. { echo "$as_me:$LINENO: result: no" >&5
  4494. echo "${ECHO_T}no" >&6; }
  4495. fi
  4496. rm -f conftest*
  4497. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4498. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4499. if test "${ac_cv_header_stdc+set}" = set; then
  4500. echo $ECHO_N "(cached) $ECHO_C" >&6
  4501. else
  4502. cat >conftest.$ac_ext <<_ACEOF
  4503. /* confdefs.h. */
  4504. _ACEOF
  4505. cat confdefs.h >>conftest.$ac_ext
  4506. cat >>conftest.$ac_ext <<_ACEOF
  4507. /* end confdefs.h. */
  4508. #include <stdlib.h>
  4509. #include <stdarg.h>
  4510. #include <string.h>
  4511. #include <float.h>
  4512. int
  4513. main ()
  4514. {
  4515. ;
  4516. return 0;
  4517. }
  4518. _ACEOF
  4519. rm -f conftest.$ac_objext
  4520. if { (ac_try="$ac_compile"
  4521. case "(($ac_try" in
  4522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4523. *) ac_try_echo=$ac_try;;
  4524. esac
  4525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4526. (eval "$ac_compile") 2>conftest.er1
  4527. ac_status=$?
  4528. grep -v '^ *+' conftest.er1 >conftest.err
  4529. rm -f conftest.er1
  4530. cat conftest.err >&5
  4531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4532. (exit $ac_status); } && {
  4533. test -z "$ac_cxx_werror_flag" ||
  4534. test ! -s conftest.err
  4535. } && test -s conftest.$ac_objext; then
  4536. ac_cv_header_stdc=yes
  4537. else
  4538. echo "$as_me: failed program was:" >&5
  4539. sed 's/^/| /' conftest.$ac_ext >&5
  4540. ac_cv_header_stdc=no
  4541. fi
  4542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4543. if test $ac_cv_header_stdc = yes; then
  4544. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4545. cat >conftest.$ac_ext <<_ACEOF
  4546. /* confdefs.h. */
  4547. _ACEOF
  4548. cat confdefs.h >>conftest.$ac_ext
  4549. cat >>conftest.$ac_ext <<_ACEOF
  4550. /* end confdefs.h. */
  4551. #include <string.h>
  4552. _ACEOF
  4553. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4554. $EGREP "memchr" >/dev/null 2>&1; then
  4555. :
  4556. else
  4557. ac_cv_header_stdc=no
  4558. fi
  4559. rm -f conftest*
  4560. fi
  4561. if test $ac_cv_header_stdc = yes; then
  4562. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4563. cat >conftest.$ac_ext <<_ACEOF
  4564. /* confdefs.h. */
  4565. _ACEOF
  4566. cat confdefs.h >>conftest.$ac_ext
  4567. cat >>conftest.$ac_ext <<_ACEOF
  4568. /* end confdefs.h. */
  4569. #include <stdlib.h>
  4570. _ACEOF
  4571. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4572. $EGREP "free" >/dev/null 2>&1; then
  4573. :
  4574. else
  4575. ac_cv_header_stdc=no
  4576. fi
  4577. rm -f conftest*
  4578. fi
  4579. if test $ac_cv_header_stdc = yes; then
  4580. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4581. if test "$cross_compiling" = yes; then
  4582. :
  4583. else
  4584. cat >conftest.$ac_ext <<_ACEOF
  4585. /* confdefs.h. */
  4586. _ACEOF
  4587. cat confdefs.h >>conftest.$ac_ext
  4588. cat >>conftest.$ac_ext <<_ACEOF
  4589. /* end confdefs.h. */
  4590. #include <ctype.h>
  4591. #include <stdlib.h>
  4592. #if ((' ' & 0x0FF) == 0x020)
  4593. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4594. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4595. #else
  4596. # define ISLOWER(c) \
  4597. (('a' <= (c) && (c) <= 'i') \
  4598. || ('j' <= (c) && (c) <= 'r') \
  4599. || ('s' <= (c) && (c) <= 'z'))
  4600. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4601. #endif
  4602. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4603. int
  4604. main ()
  4605. {
  4606. int i;
  4607. for (i = 0; i < 256; i++)
  4608. if (XOR (islower (i), ISLOWER (i))
  4609. || toupper (i) != TOUPPER (i))
  4610. return 2;
  4611. return 0;
  4612. }
  4613. _ACEOF
  4614. rm -f conftest$ac_exeext
  4615. if { (ac_try="$ac_link"
  4616. case "(($ac_try" in
  4617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4618. *) ac_try_echo=$ac_try;;
  4619. esac
  4620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4621. (eval "$ac_link") 2>&5
  4622. ac_status=$?
  4623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4624. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4625. { (case "(($ac_try" in
  4626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4627. *) ac_try_echo=$ac_try;;
  4628. esac
  4629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4630. (eval "$ac_try") 2>&5
  4631. ac_status=$?
  4632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4633. (exit $ac_status); }; }; then
  4634. :
  4635. else
  4636. echo "$as_me: program exited with status $ac_status" >&5
  4637. echo "$as_me: failed program was:" >&5
  4638. sed 's/^/| /' conftest.$ac_ext >&5
  4639. ( exit $ac_status )
  4640. ac_cv_header_stdc=no
  4641. fi
  4642. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4643. fi
  4644. fi
  4645. fi
  4646. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4647. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4648. if test $ac_cv_header_stdc = yes; then
  4649. cat >>confdefs.h <<\_ACEOF
  4650. #define STDC_HEADERS 1
  4651. _ACEOF
  4652. fi
  4653. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4654. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4655. inttypes.h stdint.h unistd.h
  4656. do
  4657. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4658. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4659. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4660. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4661. echo $ECHO_N "(cached) $ECHO_C" >&6
  4662. else
  4663. cat >conftest.$ac_ext <<_ACEOF
  4664. /* confdefs.h. */
  4665. _ACEOF
  4666. cat confdefs.h >>conftest.$ac_ext
  4667. cat >>conftest.$ac_ext <<_ACEOF
  4668. /* end confdefs.h. */
  4669. $ac_includes_default
  4670. #include <$ac_header>
  4671. _ACEOF
  4672. rm -f conftest.$ac_objext
  4673. if { (ac_try="$ac_compile"
  4674. case "(($ac_try" in
  4675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4676. *) ac_try_echo=$ac_try;;
  4677. esac
  4678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4679. (eval "$ac_compile") 2>conftest.er1
  4680. ac_status=$?
  4681. grep -v '^ *+' conftest.er1 >conftest.err
  4682. rm -f conftest.er1
  4683. cat conftest.err >&5
  4684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4685. (exit $ac_status); } && {
  4686. test -z "$ac_cxx_werror_flag" ||
  4687. test ! -s conftest.err
  4688. } && test -s conftest.$ac_objext; then
  4689. eval "$as_ac_Header=yes"
  4690. else
  4691. echo "$as_me: failed program was:" >&5
  4692. sed 's/^/| /' conftest.$ac_ext >&5
  4693. eval "$as_ac_Header=no"
  4694. fi
  4695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4696. fi
  4697. ac_res=`eval echo '${'$as_ac_Header'}'`
  4698. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4699. echo "${ECHO_T}$ac_res" >&6; }
  4700. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4701. cat >>confdefs.h <<_ACEOF
  4702. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4703. _ACEOF
  4704. fi
  4705. done
  4706. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4707. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4708. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4709. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4710. echo $ECHO_N "(cached) $ECHO_C" >&6
  4711. fi
  4712. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4713. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4714. else
  4715. # Is the header compilable?
  4716. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4717. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4718. cat >conftest.$ac_ext <<_ACEOF
  4719. /* confdefs.h. */
  4720. _ACEOF
  4721. cat confdefs.h >>conftest.$ac_ext
  4722. cat >>conftest.$ac_ext <<_ACEOF
  4723. /* end confdefs.h. */
  4724. $ac_includes_default
  4725. #include <minix/config.h>
  4726. _ACEOF
  4727. rm -f conftest.$ac_objext
  4728. if { (ac_try="$ac_compile"
  4729. case "(($ac_try" in
  4730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4731. *) ac_try_echo=$ac_try;;
  4732. esac
  4733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4734. (eval "$ac_compile") 2>conftest.er1
  4735. ac_status=$?
  4736. grep -v '^ *+' conftest.er1 >conftest.err
  4737. rm -f conftest.er1
  4738. cat conftest.err >&5
  4739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4740. (exit $ac_status); } && {
  4741. test -z "$ac_cxx_werror_flag" ||
  4742. test ! -s conftest.err
  4743. } && test -s conftest.$ac_objext; then
  4744. ac_header_compiler=yes
  4745. else
  4746. echo "$as_me: failed program was:" >&5
  4747. sed 's/^/| /' conftest.$ac_ext >&5
  4748. ac_header_compiler=no
  4749. fi
  4750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4751. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4752. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4753. # Is the header present?
  4754. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4755. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4756. cat >conftest.$ac_ext <<_ACEOF
  4757. /* confdefs.h. */
  4758. _ACEOF
  4759. cat confdefs.h >>conftest.$ac_ext
  4760. cat >>conftest.$ac_ext <<_ACEOF
  4761. /* end confdefs.h. */
  4762. #include <minix/config.h>
  4763. _ACEOF
  4764. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4765. case "(($ac_try" in
  4766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4767. *) ac_try_echo=$ac_try;;
  4768. esac
  4769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4770. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4771. ac_status=$?
  4772. grep -v '^ *+' conftest.er1 >conftest.err
  4773. rm -f conftest.er1
  4774. cat conftest.err >&5
  4775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4776. (exit $ac_status); } >/dev/null && {
  4777. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4778. test ! -s conftest.err
  4779. }; then
  4780. ac_header_preproc=yes
  4781. else
  4782. echo "$as_me: failed program was:" >&5
  4783. sed 's/^/| /' conftest.$ac_ext >&5
  4784. ac_header_preproc=no
  4785. fi
  4786. rm -f conftest.err conftest.$ac_ext
  4787. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4788. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4789. # So? What about this header?
  4790. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4791. yes:no: )
  4792. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4793. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4794. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4795. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4796. ac_header_preproc=yes
  4797. ;;
  4798. no:yes:* )
  4799. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4800. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4801. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4802. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4803. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4804. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4805. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4806. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4807. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4808. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4809. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4810. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4811. ( cat <<\_ASBOX
  4812. ## ----------------------------------------------- ##
  4813. ## Report this to t-tujikawa@users.sourceforge.net ##
  4814. ## ----------------------------------------------- ##
  4815. _ASBOX
  4816. ) | sed "s/^/$as_me: WARNING: /" >&2
  4817. ;;
  4818. esac
  4819. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4820. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4821. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4822. echo $ECHO_N "(cached) $ECHO_C" >&6
  4823. else
  4824. ac_cv_header_minix_config_h=$ac_header_preproc
  4825. fi
  4826. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4827. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4828. fi
  4829. if test $ac_cv_header_minix_config_h = yes; then
  4830. MINIX=yes
  4831. else
  4832. MINIX=
  4833. fi
  4834. if test "$MINIX" = yes; then
  4835. cat >>confdefs.h <<\_ACEOF
  4836. #define _POSIX_SOURCE 1
  4837. _ACEOF
  4838. cat >>confdefs.h <<\_ACEOF
  4839. #define _POSIX_1_SOURCE 2
  4840. _ACEOF
  4841. cat >>confdefs.h <<\_ACEOF
  4842. #define _MINIX 1
  4843. _ACEOF
  4844. fi
  4845. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4846. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4847. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4848. echo $ECHO_N "(cached) $ECHO_C" >&6
  4849. else
  4850. cat >conftest.$ac_ext <<_ACEOF
  4851. /* confdefs.h. */
  4852. _ACEOF
  4853. cat confdefs.h >>conftest.$ac_ext
  4854. cat >>conftest.$ac_ext <<_ACEOF
  4855. /* end confdefs.h. */
  4856. # define __EXTENSIONS__ 1
  4857. $ac_includes_default
  4858. int
  4859. main ()
  4860. {
  4861. ;
  4862. return 0;
  4863. }
  4864. _ACEOF
  4865. rm -f conftest.$ac_objext
  4866. if { (ac_try="$ac_compile"
  4867. case "(($ac_try" in
  4868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4869. *) ac_try_echo=$ac_try;;
  4870. esac
  4871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4872. (eval "$ac_compile") 2>conftest.er1
  4873. ac_status=$?
  4874. grep -v '^ *+' conftest.er1 >conftest.err
  4875. rm -f conftest.er1
  4876. cat conftest.err >&5
  4877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4878. (exit $ac_status); } && {
  4879. test -z "$ac_cxx_werror_flag" ||
  4880. test ! -s conftest.err
  4881. } && test -s conftest.$ac_objext; then
  4882. ac_cv_safe_to_define___extensions__=yes
  4883. else
  4884. echo "$as_me: failed program was:" >&5
  4885. sed 's/^/| /' conftest.$ac_ext >&5
  4886. ac_cv_safe_to_define___extensions__=no
  4887. fi
  4888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4889. fi
  4890. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4891. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4892. test $ac_cv_safe_to_define___extensions__ = yes &&
  4893. cat >>confdefs.h <<\_ACEOF
  4894. #define __EXTENSIONS__ 1
  4895. _ACEOF
  4896. cat >>confdefs.h <<\_ACEOF
  4897. #define _POSIX_PTHREAD_SEMANTICS 1
  4898. _ACEOF
  4899. cat >>confdefs.h <<\_ACEOF
  4900. #define _TANDEM_SOURCE 1
  4901. _ACEOF
  4902. # Checks for libraries.
  4903. if test "x$with_libxml2" = "xyes"; then
  4904. # Check whether --with-xml-prefix was given.
  4905. if test "${with_xml_prefix+set}" = set; then
  4906. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4907. else
  4908. xml_config_prefix=""
  4909. fi
  4910. # Check whether --with-xml-exec-prefix was given.
  4911. if test "${with_xml_exec_prefix+set}" = set; then
  4912. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4913. else
  4914. xml_config_exec_prefix=""
  4915. fi
  4916. # Check whether --enable-xmltest was given.
  4917. if test "${enable_xmltest+set}" = set; then
  4918. enableval=$enable_xmltest;
  4919. else
  4920. enable_xmltest=yes
  4921. fi
  4922. if test x$xml_config_exec_prefix != x ; then
  4923. xml_config_args="$xml_config_args"
  4924. if test x${XML2_CONFIG+set} != xset ; then
  4925. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4926. fi
  4927. fi
  4928. if test x$xml_config_prefix != x ; then
  4929. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4930. if test x${XML2_CONFIG+set} != xset ; then
  4931. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4932. fi
  4933. fi
  4934. # Extract the first word of "xml2-config", so it can be a program name with args.
  4935. set dummy xml2-config; ac_word=$2
  4936. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4937. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4938. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4939. echo $ECHO_N "(cached) $ECHO_C" >&6
  4940. else
  4941. case $XML2_CONFIG in
  4942. [\\/]* | ?:[\\/]*)
  4943. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4944. ;;
  4945. *)
  4946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4947. for as_dir in $PATH
  4948. do
  4949. IFS=$as_save_IFS
  4950. test -z "$as_dir" && as_dir=.
  4951. for ac_exec_ext in '' $ac_executable_extensions; do
  4952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4953. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4954. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4955. break 2
  4956. fi
  4957. done
  4958. done
  4959. IFS=$as_save_IFS
  4960. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4961. ;;
  4962. esac
  4963. fi
  4964. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4965. if test -n "$XML2_CONFIG"; then
  4966. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4967. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4968. else
  4969. { echo "$as_me:$LINENO: result: no" >&5
  4970. echo "${ECHO_T}no" >&6; }
  4971. fi
  4972. min_xml_version=2.6.24
  4973. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4974. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4975. no_xml=""
  4976. if test "$XML2_CONFIG" = "no" ; then
  4977. no_xml=yes
  4978. else
  4979. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4980. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4981. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4982. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4983. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4984. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4985. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4986. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4987. if test "x$enable_xmltest" = "xyes" ; then
  4988. ac_save_CPPFLAGS="$CPPFLAGS"
  4989. ac_save_LIBS="$LIBS"
  4990. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4991. LIBS="$XML_LIBS $LIBS"
  4992. rm -f conf.xmltest
  4993. if test "$cross_compiling" = yes; then
  4994. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4995. else
  4996. cat >conftest.$ac_ext <<_ACEOF
  4997. /* confdefs.h. */
  4998. _ACEOF
  4999. cat confdefs.h >>conftest.$ac_ext
  5000. cat >>conftest.$ac_ext <<_ACEOF
  5001. /* end confdefs.h. */
  5002. #include <stdlib.h>
  5003. #include <stdio.h>
  5004. #include <string.h>
  5005. #include <libxml/xmlversion.h>
  5006. int
  5007. main()
  5008. {
  5009. int xml_major_version, xml_minor_version, xml_micro_version;
  5010. int major, minor, micro;
  5011. char *tmp_version;
  5012. system("touch conf.xmltest");
  5013. /* Capture xml2-config output via autoconf/configure variables */
  5014. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5015. tmp_version = (char *)strdup("$min_xml_version");
  5016. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5017. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5018. exit(1);
  5019. }
  5020. free(tmp_version);
  5021. /* Capture the version information from the header files */
  5022. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5023. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5024. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5025. exit(1);
  5026. }
  5027. free(tmp_version);
  5028. /* Compare xml2-config output to the libxml headers */
  5029. if ((xml_major_version != $xml_config_major_version) ||
  5030. (xml_minor_version != $xml_config_minor_version) ||
  5031. (xml_micro_version != $xml_config_micro_version))
  5032. {
  5033. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5034. xml_major_version, xml_minor_version, xml_micro_version);
  5035. printf("*** xml2-config (version %d.%d.%d)\n",
  5036. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5037. return 1;
  5038. }
  5039. /* Compare the headers to the library to make sure we match */
  5040. /* Less than ideal -- doesn't provide us with return value feedback,
  5041. * only exits if there's a serious mismatch between header and library.
  5042. */
  5043. LIBXML_TEST_VERSION;
  5044. /* Test that the library is greater than our minimum version */
  5045. if ((xml_major_version > major) ||
  5046. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5047. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5048. (xml_micro_version >= micro)))
  5049. {
  5050. return 0;
  5051. }
  5052. else
  5053. {
  5054. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5055. xml_major_version, xml_minor_version, xml_micro_version);
  5056. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5057. major, minor, micro);
  5058. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5059. printf("***\n");
  5060. printf("*** If you have already installed a sufficiently new version, this error\n");
  5061. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5062. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5063. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5064. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5065. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5066. printf("*** so that the correct libraries are found at run-time))\n");
  5067. }
  5068. return 1;
  5069. }
  5070. _ACEOF
  5071. rm -f conftest$ac_exeext
  5072. if { (ac_try="$ac_link"
  5073. case "(($ac_try" in
  5074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5075. *) ac_try_echo=$ac_try;;
  5076. esac
  5077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5078. (eval "$ac_link") 2>&5
  5079. ac_status=$?
  5080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5081. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5082. { (case "(($ac_try" in
  5083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5084. *) ac_try_echo=$ac_try;;
  5085. esac
  5086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5087. (eval "$ac_try") 2>&5
  5088. ac_status=$?
  5089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5090. (exit $ac_status); }; }; then
  5091. :
  5092. else
  5093. echo "$as_me: program exited with status $ac_status" >&5
  5094. echo "$as_me: failed program was:" >&5
  5095. sed 's/^/| /' conftest.$ac_ext >&5
  5096. ( exit $ac_status )
  5097. no_xml=yes
  5098. fi
  5099. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5100. fi
  5101. CPPFLAGS="$ac_save_CPPFLAGS"
  5102. LIBS="$ac_save_LIBS"
  5103. fi
  5104. fi
  5105. if test "x$no_xml" = x ; then
  5106. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5107. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5108. have_libxml2=yes
  5109. else
  5110. { echo "$as_me:$LINENO: result: no" >&5
  5111. echo "${ECHO_T}no" >&6; }
  5112. if test "$XML2_CONFIG" = "no" ; then
  5113. echo "*** The xml2-config script installed by LIBXML could not be found"
  5114. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5115. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5116. echo "*** full path to xml2-config."
  5117. else
  5118. if test -f conf.xmltest ; then
  5119. :
  5120. else
  5121. echo "*** Could not run libxml test program, checking why..."
  5122. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5123. LIBS="$LIBS $XML_LIBS"
  5124. cat >conftest.$ac_ext <<_ACEOF
  5125. /* confdefs.h. */
  5126. _ACEOF
  5127. cat confdefs.h >>conftest.$ac_ext
  5128. cat >>conftest.$ac_ext <<_ACEOF
  5129. /* end confdefs.h. */
  5130. #include <libxml/xmlversion.h>
  5131. #include <stdio.h>
  5132. int
  5133. main ()
  5134. {
  5135. LIBXML_TEST_VERSION; return 0;
  5136. ;
  5137. return 0;
  5138. }
  5139. _ACEOF
  5140. rm -f conftest.$ac_objext conftest$ac_exeext
  5141. if { (ac_try="$ac_link"
  5142. case "(($ac_try" in
  5143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5144. *) ac_try_echo=$ac_try;;
  5145. esac
  5146. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5147. (eval "$ac_link") 2>conftest.er1
  5148. ac_status=$?
  5149. grep -v '^ *+' conftest.er1 >conftest.err
  5150. rm -f conftest.er1
  5151. cat conftest.err >&5
  5152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5153. (exit $ac_status); } && {
  5154. test -z "$ac_cxx_werror_flag" ||
  5155. test ! -s conftest.err
  5156. } && test -s conftest$ac_exeext &&
  5157. $as_test_x conftest$ac_exeext; then
  5158. echo "*** The test program compiled, but did not run. This usually means"
  5159. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5160. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5161. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5162. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5163. echo "*** is required on your system"
  5164. echo "***"
  5165. echo "*** If you have an old version installed, it is best to remove it, although"
  5166. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5167. else
  5168. echo "$as_me: failed program was:" >&5
  5169. sed 's/^/| /' conftest.$ac_ext >&5
  5170. echo "*** The test program failed to compile or link. See the file config.log for the"
  5171. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5172. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5173. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5174. fi
  5175. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5176. conftest$ac_exeext conftest.$ac_ext
  5177. CPPFLAGS="$ac_save_CPPFLAGS"
  5178. LIBS="$ac_save_LIBS"
  5179. fi
  5180. fi
  5181. XML_CPPFLAGS=""
  5182. XML_LIBS=""
  5183. :
  5184. fi
  5185. rm -f conf.xmltest
  5186. if test "x$have_libxml2" = "xyes"; then
  5187. cat >>confdefs.h <<\_ACEOF
  5188. #define HAVE_LIBXML2 1
  5189. _ACEOF
  5190. fi
  5191. fi
  5192. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5193. # Check whether --with-libexpat-prefix was given.
  5194. if test "${with_libexpat_prefix+set}" = set; then
  5195. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5196. else
  5197. libexpat_prefix=""
  5198. fi
  5199. if test "x$libexpat_prefix" = "x"; then
  5200. libexpat_prefix="/usr"
  5201. fi
  5202. libexpat_prefix_lib=$libexpat_prefix/lib
  5203. libexpat_prefix_include=$libexpat_prefix/include
  5204. LIBS_save=$LIBS
  5205. CPPFLAGS_save=$CPPFLAGS
  5206. LIBS="-L$libexpat_prefix_lib $LIBS"
  5207. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5208. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5209. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5210. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5211. echo $ECHO_N "(cached) $ECHO_C" >&6
  5212. else
  5213. ac_check_lib_save_LIBS=$LIBS
  5214. LIBS="-lexpat $LIBS"
  5215. cat >conftest.$ac_ext <<_ACEOF
  5216. /* confdefs.h. */
  5217. _ACEOF
  5218. cat confdefs.h >>conftest.$ac_ext
  5219. cat >>conftest.$ac_ext <<_ACEOF
  5220. /* end confdefs.h. */
  5221. /* Override any GCC internal prototype to avoid an error.
  5222. Use char because int might match the return type of a GCC
  5223. builtin and then its argument prototype would still apply. */
  5224. #ifdef __cplusplus
  5225. extern "C"
  5226. #endif
  5227. char XML_ParserCreate ();
  5228. int
  5229. main ()
  5230. {
  5231. return XML_ParserCreate ();
  5232. ;
  5233. return 0;
  5234. }
  5235. _ACEOF
  5236. rm -f conftest.$ac_objext conftest$ac_exeext
  5237. if { (ac_try="$ac_link"
  5238. case "(($ac_try" in
  5239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5240. *) ac_try_echo=$ac_try;;
  5241. esac
  5242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5243. (eval "$ac_link") 2>conftest.er1
  5244. ac_status=$?
  5245. grep -v '^ *+' conftest.er1 >conftest.err
  5246. rm -f conftest.er1
  5247. cat conftest.err >&5
  5248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5249. (exit $ac_status); } && {
  5250. test -z "$ac_cxx_werror_flag" ||
  5251. test ! -s conftest.err
  5252. } && test -s conftest$ac_exeext &&
  5253. $as_test_x conftest$ac_exeext; then
  5254. ac_cv_lib_expat_XML_ParserCreate=yes
  5255. else
  5256. echo "$as_me: failed program was:" >&5
  5257. sed 's/^/| /' conftest.$ac_ext >&5
  5258. ac_cv_lib_expat_XML_ParserCreate=no
  5259. fi
  5260. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5261. conftest$ac_exeext conftest.$ac_ext
  5262. LIBS=$ac_check_lib_save_LIBS
  5263. fi
  5264. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5265. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5266. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5267. have_libexpat=yes
  5268. fi
  5269. if test "x$have_libexpat" = "xyes"; then
  5270. cat >>confdefs.h <<\_ACEOF
  5271. #define HAVE_LIBEXPAT 1
  5272. _ACEOF
  5273. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5274. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5275. fi
  5276. LIBS=$LIBS_save
  5277. CPPFLAGS=$CPPFLAGS_save
  5278. fi
  5279. if test "x$with_sqlite3" = "xyes"; then
  5280. # Check whether --with-sqlite3-prefix was given.
  5281. if test "${with_sqlite3_prefix+set}" = set; then
  5282. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5283. else
  5284. sqlite3_prefix=""
  5285. fi
  5286. if test "x$sqlite3_prefix" = "x"; then
  5287. sqlite3_prefix="/usr"
  5288. fi
  5289. LIBS_save=$LIBS
  5290. CPPFLAGS_save=$CPPFLAGS
  5291. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5292. if test -x $PKG_CONFIG; then
  5293. { echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5294. echo $ECHO_N "checking checking availability of sqlite3 using pkg-config... $ECHO_C" >&6; }
  5295. $PKG_CONFIG --exists sqlite3
  5296. if test "$?" = "0"; then
  5297. # Use pkg-config to detect LIBS and CFLAGS
  5298. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5299. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5300. LIBS="$SQLITE3_LIBS $LIBS"
  5301. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5302. have_sqlite3=yes
  5303. { echo "$as_me:$LINENO: result: yes" >&5
  5304. echo "${ECHO_T}yes" >&6; }
  5305. else
  5306. { echo "$as_me:$LINENO: result: no" >&5
  5307. echo "${ECHO_T}no" >&6; }
  5308. fi
  5309. fi
  5310. if test "x$have_sqlite3" != "xyes"; then
  5311. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5312. sqlite3_prefix_include=$sqlite3_prefix/include
  5313. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5314. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5315. { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5316. echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
  5317. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5318. echo $ECHO_N "(cached) $ECHO_C" >&6
  5319. else
  5320. ac_check_lib_save_LIBS=$LIBS
  5321. LIBS="-lsqlite3 $LIBS"
  5322. cat >conftest.$ac_ext <<_ACEOF
  5323. /* confdefs.h. */
  5324. _ACEOF
  5325. cat confdefs.h >>conftest.$ac_ext
  5326. cat >>conftest.$ac_ext <<_ACEOF
  5327. /* end confdefs.h. */
  5328. /* Override any GCC internal prototype to avoid an error.
  5329. Use char because int might match the return type of a GCC
  5330. builtin and then its argument prototype would still apply. */
  5331. #ifdef __cplusplus
  5332. extern "C"
  5333. #endif
  5334. char sqlite3_open ();
  5335. int
  5336. main ()
  5337. {
  5338. return sqlite3_open ();
  5339. ;
  5340. return 0;
  5341. }
  5342. _ACEOF
  5343. rm -f conftest.$ac_objext conftest$ac_exeext
  5344. if { (ac_try="$ac_link"
  5345. case "(($ac_try" in
  5346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5347. *) ac_try_echo=$ac_try;;
  5348. esac
  5349. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5350. (eval "$ac_link") 2>conftest.er1
  5351. ac_status=$?
  5352. grep -v '^ *+' conftest.er1 >conftest.err
  5353. rm -f conftest.er1
  5354. cat conftest.err >&5
  5355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5356. (exit $ac_status); } && {
  5357. test -z "$ac_cxx_werror_flag" ||
  5358. test ! -s conftest.err
  5359. } && test -s conftest$ac_exeext &&
  5360. $as_test_x conftest$ac_exeext; then
  5361. ac_cv_lib_sqlite3_sqlite3_open=yes
  5362. else
  5363. echo "$as_me: failed program was:" >&5
  5364. sed 's/^/| /' conftest.$ac_ext >&5
  5365. ac_cv_lib_sqlite3_sqlite3_open=no
  5366. fi
  5367. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5368. conftest$ac_exeext conftest.$ac_ext
  5369. LIBS=$ac_check_lib_save_LIBS
  5370. fi
  5371. { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5372. echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5373. if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
  5374. have_sqlite3=yes
  5375. fi
  5376. if test "x$have_sqlite3" = "xyes"; then
  5377. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5378. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5379. fi
  5380. fi
  5381. if test "x$have_sqlite3" = "xyes"; then
  5382. for ac_func in sqlite3_open_v2
  5383. do
  5384. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5385. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5386. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5387. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5388. echo $ECHO_N "(cached) $ECHO_C" >&6
  5389. else
  5390. cat >conftest.$ac_ext <<_ACEOF
  5391. /* confdefs.h. */
  5392. _ACEOF
  5393. cat confdefs.h >>conftest.$ac_ext
  5394. cat >>conftest.$ac_ext <<_ACEOF
  5395. /* end confdefs.h. */
  5396. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5397. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5398. #define $ac_func innocuous_$ac_func
  5399. /* System header to define __stub macros and hopefully few prototypes,
  5400. which can conflict with char $ac_func (); below.
  5401. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5402. <limits.h> exists even on freestanding compilers. */
  5403. #ifdef __STDC__
  5404. # include <limits.h>
  5405. #else
  5406. # include <assert.h>
  5407. #endif
  5408. #undef $ac_func
  5409. /* Override any GCC internal prototype to avoid an error.
  5410. Use char because int might match the return type of a GCC
  5411. builtin and then its argument prototype would still apply. */
  5412. #ifdef __cplusplus
  5413. extern "C"
  5414. #endif
  5415. char $ac_func ();
  5416. /* The GNU C library defines this for functions which it implements
  5417. to always fail with ENOSYS. Some functions are actually named
  5418. something starting with __ and the normal name is an alias. */
  5419. #if defined __stub_$ac_func || defined __stub___$ac_func
  5420. choke me
  5421. #endif
  5422. int
  5423. main ()
  5424. {
  5425. return $ac_func ();
  5426. ;
  5427. return 0;
  5428. }
  5429. _ACEOF
  5430. rm -f conftest.$ac_objext conftest$ac_exeext
  5431. if { (ac_try="$ac_link"
  5432. case "(($ac_try" in
  5433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5434. *) ac_try_echo=$ac_try;;
  5435. esac
  5436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5437. (eval "$ac_link") 2>conftest.er1
  5438. ac_status=$?
  5439. grep -v '^ *+' conftest.er1 >conftest.err
  5440. rm -f conftest.er1
  5441. cat conftest.err >&5
  5442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5443. (exit $ac_status); } && {
  5444. test -z "$ac_cxx_werror_flag" ||
  5445. test ! -s conftest.err
  5446. } && test -s conftest$ac_exeext &&
  5447. $as_test_x conftest$ac_exeext; then
  5448. eval "$as_ac_var=yes"
  5449. else
  5450. echo "$as_me: failed program was:" >&5
  5451. sed 's/^/| /' conftest.$ac_ext >&5
  5452. eval "$as_ac_var=no"
  5453. fi
  5454. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5455. conftest$ac_exeext conftest.$ac_ext
  5456. fi
  5457. ac_res=`eval echo '${'$as_ac_var'}'`
  5458. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5459. echo "${ECHO_T}$ac_res" >&6; }
  5460. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5461. cat >>confdefs.h <<_ACEOF
  5462. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5463. _ACEOF
  5464. fi
  5465. done
  5466. cat >>confdefs.h <<\_ACEOF
  5467. #define HAVE_SQLITE3 1
  5468. _ACEOF
  5469. fi
  5470. LIBS=$LIBS_save
  5471. CPPFLAGS=$CPPFLAGS_save
  5472. fi
  5473. if test "x$with_gnutls" = "xyes"; then
  5474. # Check whether --with-libgnutls-prefix was given.
  5475. if test "${with_libgnutls_prefix+set}" = set; then
  5476. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5477. else
  5478. libgnutls_config_prefix=""
  5479. fi
  5480. if test x$libgnutls_config_prefix != x ; then
  5481. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5482. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5483. fi
  5484. fi
  5485. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5486. set dummy libgnutls-config; ac_word=$2
  5487. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5488. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5489. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5490. echo $ECHO_N "(cached) $ECHO_C" >&6
  5491. else
  5492. case $LIBGNUTLS_CONFIG in
  5493. [\\/]* | ?:[\\/]*)
  5494. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5495. ;;
  5496. *)
  5497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. for as_dir in $PATH
  5499. do
  5500. IFS=$as_save_IFS
  5501. test -z "$as_dir" && as_dir=.
  5502. for ac_exec_ext in '' $ac_executable_extensions; do
  5503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5504. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5505. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. break 2
  5507. fi
  5508. done
  5509. done
  5510. IFS=$as_save_IFS
  5511. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5512. ;;
  5513. esac
  5514. fi
  5515. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5516. if test -n "$LIBGNUTLS_CONFIG"; then
  5517. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5518. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5519. else
  5520. { echo "$as_me:$LINENO: result: no" >&5
  5521. echo "${ECHO_T}no" >&6; }
  5522. fi
  5523. min_libgnutls_version=1.2.9
  5524. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5525. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5526. no_libgnutls=""
  5527. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5528. no_libgnutls=yes
  5529. else
  5530. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5531. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5532. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5533. ac_save_CFLAGS="$CFLAGS"
  5534. ac_save_LIBS="$LIBS"
  5535. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5536. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5537. rm -f conf.libgnutlstest
  5538. if test "$cross_compiling" = yes; then
  5539. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5540. else
  5541. cat >conftest.$ac_ext <<_ACEOF
  5542. /* confdefs.h. */
  5543. _ACEOF
  5544. cat confdefs.h >>conftest.$ac_ext
  5545. cat >>conftest.$ac_ext <<_ACEOF
  5546. /* end confdefs.h. */
  5547. #include <stdio.h>
  5548. #include <stdlib.h>
  5549. #include <string.h>
  5550. #include <gnutls/gnutls.h>
  5551. int
  5552. main ()
  5553. {
  5554. system ("touch conf.libgnutlstest");
  5555. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5556. {
  5557. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5558. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5559. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5560. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5561. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5562. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5563. printf("*** required on your system.\n");
  5564. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5565. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5566. printf("*** before re-running configure\n");
  5567. }
  5568. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5569. {
  5570. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5571. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5572. }
  5573. else
  5574. {
  5575. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5576. {
  5577. return 0;
  5578. }
  5579. else
  5580. {
  5581. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5582. gnutls_check_version(NULL) );
  5583. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5584. "$min_libgnutls_version" );
  5585. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5586. printf("*** \n");
  5587. printf("*** If you have already installed a sufficiently new version, this error\n");
  5588. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5589. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5590. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5591. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5592. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5593. printf("*** so that the correct libraries are found at run-time))\n");
  5594. }
  5595. }
  5596. return 1;
  5597. }
  5598. _ACEOF
  5599. rm -f conftest$ac_exeext
  5600. if { (ac_try="$ac_link"
  5601. case "(($ac_try" in
  5602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5603. *) ac_try_echo=$ac_try;;
  5604. esac
  5605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5606. (eval "$ac_link") 2>&5
  5607. ac_status=$?
  5608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5609. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5610. { (case "(($ac_try" in
  5611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5612. *) ac_try_echo=$ac_try;;
  5613. esac
  5614. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5615. (eval "$ac_try") 2>&5
  5616. ac_status=$?
  5617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5618. (exit $ac_status); }; }; then
  5619. :
  5620. else
  5621. echo "$as_me: program exited with status $ac_status" >&5
  5622. echo "$as_me: failed program was:" >&5
  5623. sed 's/^/| /' conftest.$ac_ext >&5
  5624. ( exit $ac_status )
  5625. no_libgnutls=yes
  5626. fi
  5627. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5628. fi
  5629. CFLAGS="$ac_save_CFLAGS"
  5630. LIBS="$ac_save_LIBS"
  5631. fi
  5632. if test "x$no_libgnutls" = x ; then
  5633. { echo "$as_me:$LINENO: result: yes" >&5
  5634. echo "${ECHO_T}yes" >&6; }
  5635. have_libgnutls=yes
  5636. else
  5637. if test -f conf.libgnutlstest ; then
  5638. :
  5639. else
  5640. { echo "$as_me:$LINENO: result: no" >&5
  5641. echo "${ECHO_T}no" >&6; }
  5642. fi
  5643. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5644. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5645. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5646. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5647. echo "*** full path to libgnutls-config."
  5648. else
  5649. if test -f conf.libgnutlstest ; then
  5650. :
  5651. else
  5652. echo "*** Could not run libgnutls test program, checking why..."
  5653. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5654. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5655. cat >conftest.$ac_ext <<_ACEOF
  5656. /* confdefs.h. */
  5657. _ACEOF
  5658. cat confdefs.h >>conftest.$ac_ext
  5659. cat >>conftest.$ac_ext <<_ACEOF
  5660. /* end confdefs.h. */
  5661. #include <stdio.h>
  5662. #include <stdlib.h>
  5663. #include <string.h>
  5664. #include <gnutls/gnutls.h>
  5665. int
  5666. main ()
  5667. {
  5668. return !!gnutls_check_version(NULL);
  5669. ;
  5670. return 0;
  5671. }
  5672. _ACEOF
  5673. rm -f conftest.$ac_objext conftest$ac_exeext
  5674. if { (ac_try="$ac_link"
  5675. case "(($ac_try" in
  5676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5677. *) ac_try_echo=$ac_try;;
  5678. esac
  5679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5680. (eval "$ac_link") 2>conftest.er1
  5681. ac_status=$?
  5682. grep -v '^ *+' conftest.er1 >conftest.err
  5683. rm -f conftest.er1
  5684. cat conftest.err >&5
  5685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5686. (exit $ac_status); } && {
  5687. test -z "$ac_cxx_werror_flag" ||
  5688. test ! -s conftest.err
  5689. } && test -s conftest$ac_exeext &&
  5690. $as_test_x conftest$ac_exeext; then
  5691. echo "*** The test program compiled, but did not run. This usually means"
  5692. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5693. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5694. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5695. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5696. echo "*** is required on your system"
  5697. echo "***"
  5698. echo "*** If you have an old version installed, it is best to remove it, although"
  5699. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5700. echo "***"
  5701. else
  5702. echo "$as_me: failed program was:" >&5
  5703. sed 's/^/| /' conftest.$ac_ext >&5
  5704. echo "*** The test program failed to compile or link. See the file config.log for the"
  5705. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5706. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5707. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5708. fi
  5709. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5710. conftest$ac_exeext conftest.$ac_ext
  5711. CFLAGS="$ac_save_CFLAGS"
  5712. LIBS="$ac_save_LIBS"
  5713. fi
  5714. fi
  5715. LIBGNUTLS_CFLAGS=""
  5716. LIBGNUTLS_LIBS=""
  5717. :
  5718. fi
  5719. rm -f conf.libgnutlstest
  5720. if test "x$have_libgnutls" = "xyes"; then
  5721. cat >>confdefs.h <<\_ACEOF
  5722. #define HAVE_LIBGNUTLS 1
  5723. _ACEOF
  5724. fi
  5725. fi
  5726. if test "x$have_libgnutls" = "xyes"; then
  5727. # Check whether --with-libgcrypt-prefix was given.
  5728. if test "${with_libgcrypt_prefix+set}" = set; then
  5729. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5730. else
  5731. libgcrypt_config_prefix=""
  5732. fi
  5733. if test x$libgcrypt_config_prefix != x ; then
  5734. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5735. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5736. fi
  5737. fi
  5738. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5739. set dummy libgcrypt-config; ac_word=$2
  5740. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5741. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5742. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5743. echo $ECHO_N "(cached) $ECHO_C" >&6
  5744. else
  5745. case $LIBGCRYPT_CONFIG in
  5746. [\\/]* | ?:[\\/]*)
  5747. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5748. ;;
  5749. *)
  5750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5751. for as_dir in $PATH
  5752. do
  5753. IFS=$as_save_IFS
  5754. test -z "$as_dir" && as_dir=.
  5755. for ac_exec_ext in '' $ac_executable_extensions; do
  5756. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5757. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5758. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5759. break 2
  5760. fi
  5761. done
  5762. done
  5763. IFS=$as_save_IFS
  5764. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5765. ;;
  5766. esac
  5767. fi
  5768. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5769. if test -n "$LIBGCRYPT_CONFIG"; then
  5770. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5771. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5772. else
  5773. { echo "$as_me:$LINENO: result: no" >&5
  5774. echo "${ECHO_T}no" >&6; }
  5775. fi
  5776. tmp=1.2.2
  5777. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5778. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5779. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5780. else
  5781. req_libgcrypt_api=0
  5782. min_libgcrypt_version="$tmp"
  5783. fi
  5784. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5785. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5786. ok=no
  5787. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5788. req_major=`echo $min_libgcrypt_version | \
  5789. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5790. req_minor=`echo $min_libgcrypt_version | \
  5791. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5792. req_micro=`echo $min_libgcrypt_version | \
  5793. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5794. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5795. major=`echo $libgcrypt_config_version | \
  5796. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5797. minor=`echo $libgcrypt_config_version | \
  5798. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5799. micro=`echo $libgcrypt_config_version | \
  5800. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5801. if test "$major" -gt "$req_major"; then
  5802. ok=yes
  5803. else
  5804. if test "$major" -eq "$req_major"; then
  5805. if test "$minor" -gt "$req_minor"; then
  5806. ok=yes
  5807. else
  5808. if test "$minor" -eq "$req_minor"; then
  5809. if test "$micro" -ge "$req_micro"; then
  5810. ok=yes
  5811. fi
  5812. fi
  5813. fi
  5814. fi
  5815. fi
  5816. fi
  5817. if test $ok = yes; then
  5818. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5819. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5820. else
  5821. { echo "$as_me:$LINENO: result: no" >&5
  5822. echo "${ECHO_T}no" >&6; }
  5823. fi
  5824. if test $ok = yes; then
  5825. # If we have a recent libgcrypt, we should also check that the
  5826. # API is compatible
  5827. if test "$req_libgcrypt_api" -gt 0 ; then
  5828. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5829. if test "$tmp" -gt 0 ; then
  5830. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5831. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5832. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5833. { echo "$as_me:$LINENO: result: okay" >&5
  5834. echo "${ECHO_T}okay" >&6; }
  5835. else
  5836. ok=no
  5837. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5838. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5839. fi
  5840. fi
  5841. fi
  5842. fi
  5843. if test $ok = yes; then
  5844. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5845. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5846. have_libgcrypt=yes
  5847. else
  5848. LIBGCRYPT_CFLAGS=""
  5849. LIBGCRYPT_LIBS=""
  5850. :
  5851. fi
  5852. if test "x$have_libgcrypt" = "xyes"; then
  5853. cat >>confdefs.h <<\_ACEOF
  5854. #define HAVE_LIBGCRYPT 1
  5855. _ACEOF
  5856. fi
  5857. fi
  5858. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5859. # Check whether --with-openssl-prefix was given.
  5860. if test "${with_openssl_prefix+set}" = set; then
  5861. withval=$with_openssl_prefix; openssl_prefix=$withval
  5862. else
  5863. openssl_prefix=""
  5864. fi
  5865. if test "x$openssl_prefix" = "x"; then
  5866. openssl_prefix="/usr/local"
  5867. fi
  5868. LIBS_save=$LIBS
  5869. CPPFLAGS_save=$CPPFLAGS
  5870. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  5871. if test -x $PKG_CONFIG; then
  5872. { echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  5873. echo $ECHO_N "checking checking availability of openssl using pkg-config... $ECHO_C" >&6; }
  5874. $PKG_CONFIG --exists openssl
  5875. if test "$?" = "0"; then
  5876. # Use pkg-config to detect LIBS and CFLAGS
  5877. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  5878. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  5879. LIBS="$OPENSSL_LIBS $LIBS"
  5880. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  5881. have_openssl=yes
  5882. { echo "$as_me:$LINENO: result: yes" >&5
  5883. echo "${ECHO_T}yes" >&6; }
  5884. else
  5885. { echo "$as_me:$LINENO: result: no" >&5
  5886. echo "${ECHO_T}no" >&6; }
  5887. fi
  5888. fi
  5889. if test "x$have_openssl" != "xyes"; then
  5890. openssl_prefix_lib=$openssl_prefix/lib
  5891. openssl_prefix_include=$openssl_prefix/include
  5892. LIBS="-L$openssl_prefix_lib $LIBS"
  5893. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5894. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5895. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5896. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5897. echo $ECHO_N "(cached) $ECHO_C" >&6
  5898. else
  5899. ac_check_lib_save_LIBS=$LIBS
  5900. LIBS="-lssl $LIBS"
  5901. cat >conftest.$ac_ext <<_ACEOF
  5902. /* confdefs.h. */
  5903. _ACEOF
  5904. cat confdefs.h >>conftest.$ac_ext
  5905. cat >>conftest.$ac_ext <<_ACEOF
  5906. /* end confdefs.h. */
  5907. /* Override any GCC internal prototype to avoid an error.
  5908. Use char because int might match the return type of a GCC
  5909. builtin and then its argument prototype would still apply. */
  5910. #ifdef __cplusplus
  5911. extern "C"
  5912. #endif
  5913. char SSL_library_init ();
  5914. int
  5915. main ()
  5916. {
  5917. return SSL_library_init ();
  5918. ;
  5919. return 0;
  5920. }
  5921. _ACEOF
  5922. rm -f conftest.$ac_objext conftest$ac_exeext
  5923. if { (ac_try="$ac_link"
  5924. case "(($ac_try" in
  5925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5926. *) ac_try_echo=$ac_try;;
  5927. esac
  5928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5929. (eval "$ac_link") 2>conftest.er1
  5930. ac_status=$?
  5931. grep -v '^ *+' conftest.er1 >conftest.err
  5932. rm -f conftest.er1
  5933. cat conftest.err >&5
  5934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5935. (exit $ac_status); } && {
  5936. test -z "$ac_cxx_werror_flag" ||
  5937. test ! -s conftest.err
  5938. } && test -s conftest$ac_exeext &&
  5939. $as_test_x conftest$ac_exeext; then
  5940. ac_cv_lib_ssl_SSL_library_init=yes
  5941. else
  5942. echo "$as_me: failed program was:" >&5
  5943. sed 's/^/| /' conftest.$ac_ext >&5
  5944. ac_cv_lib_ssl_SSL_library_init=no
  5945. fi
  5946. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5947. conftest$ac_exeext conftest.$ac_ext
  5948. LIBS=$ac_check_lib_save_LIBS
  5949. fi
  5950. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5951. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5952. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5953. have_openssl=yes LIBS="-lssl $LIBS"
  5954. fi
  5955. if test "x$have_openssl" = "xyes"; then
  5956. have_openssl=no
  5957. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5958. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5959. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5960. echo $ECHO_N "(cached) $ECHO_C" >&6
  5961. else
  5962. ac_check_lib_save_LIBS=$LIBS
  5963. LIBS="-lcrypto $LIBS"
  5964. cat >conftest.$ac_ext <<_ACEOF
  5965. /* confdefs.h. */
  5966. _ACEOF
  5967. cat confdefs.h >>conftest.$ac_ext
  5968. cat >>conftest.$ac_ext <<_ACEOF
  5969. /* end confdefs.h. */
  5970. int
  5971. main ()
  5972. {
  5973. return main ();
  5974. ;
  5975. return 0;
  5976. }
  5977. _ACEOF
  5978. rm -f conftest.$ac_objext conftest$ac_exeext
  5979. if { (ac_try="$ac_link"
  5980. case "(($ac_try" in
  5981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5982. *) ac_try_echo=$ac_try;;
  5983. esac
  5984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5985. (eval "$ac_link") 2>conftest.er1
  5986. ac_status=$?
  5987. grep -v '^ *+' conftest.er1 >conftest.err
  5988. rm -f conftest.er1
  5989. cat conftest.err >&5
  5990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5991. (exit $ac_status); } && {
  5992. test -z "$ac_cxx_werror_flag" ||
  5993. test ! -s conftest.err
  5994. } && test -s conftest$ac_exeext &&
  5995. $as_test_x conftest$ac_exeext; then
  5996. ac_cv_lib_crypto_main=yes
  5997. else
  5998. echo "$as_me: failed program was:" >&5
  5999. sed 's/^/| /' conftest.$ac_ext >&5
  6000. ac_cv_lib_crypto_main=no
  6001. fi
  6002. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6003. conftest$ac_exeext conftest.$ac_ext
  6004. LIBS=$ac_check_lib_save_LIBS
  6005. fi
  6006. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6007. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  6008. if test $ac_cv_lib_crypto_main = yes; then
  6009. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6010. fi
  6011. if test "x$have_openssl" = "xyes"; then
  6012. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6013. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6014. fi
  6015. fi
  6016. fi
  6017. if test "x$have_openssl" = "xyes"; then
  6018. cat >>confdefs.h <<\_ACEOF
  6019. #define HAVE_LIBSSL 1
  6020. _ACEOF
  6021. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6022. for ac_func in EVP_DigestInit_ex
  6023. do
  6024. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6025. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6026. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6027. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6028. echo $ECHO_N "(cached) $ECHO_C" >&6
  6029. else
  6030. cat >conftest.$ac_ext <<_ACEOF
  6031. /* confdefs.h. */
  6032. _ACEOF
  6033. cat confdefs.h >>conftest.$ac_ext
  6034. cat >>conftest.$ac_ext <<_ACEOF
  6035. /* end confdefs.h. */
  6036. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6037. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6038. #define $ac_func innocuous_$ac_func
  6039. /* System header to define __stub macros and hopefully few prototypes,
  6040. which can conflict with char $ac_func (); below.
  6041. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6042. <limits.h> exists even on freestanding compilers. */
  6043. #ifdef __STDC__
  6044. # include <limits.h>
  6045. #else
  6046. # include <assert.h>
  6047. #endif
  6048. #undef $ac_func
  6049. /* Override any GCC internal prototype to avoid an error.
  6050. Use char because int might match the return type of a GCC
  6051. builtin and then its argument prototype would still apply. */
  6052. #ifdef __cplusplus
  6053. extern "C"
  6054. #endif
  6055. char $ac_func ();
  6056. /* The GNU C library defines this for functions which it implements
  6057. to always fail with ENOSYS. Some functions are actually named
  6058. something starting with __ and the normal name is an alias. */
  6059. #if defined __stub_$ac_func || defined __stub___$ac_func
  6060. choke me
  6061. #endif
  6062. int
  6063. main ()
  6064. {
  6065. return $ac_func ();
  6066. ;
  6067. return 0;
  6068. }
  6069. _ACEOF
  6070. rm -f conftest.$ac_objext conftest$ac_exeext
  6071. if { (ac_try="$ac_link"
  6072. case "(($ac_try" in
  6073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6074. *) ac_try_echo=$ac_try;;
  6075. esac
  6076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6077. (eval "$ac_link") 2>conftest.er1
  6078. ac_status=$?
  6079. grep -v '^ *+' conftest.er1 >conftest.err
  6080. rm -f conftest.er1
  6081. cat conftest.err >&5
  6082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6083. (exit $ac_status); } && {
  6084. test -z "$ac_cxx_werror_flag" ||
  6085. test ! -s conftest.err
  6086. } && test -s conftest$ac_exeext &&
  6087. $as_test_x conftest$ac_exeext; then
  6088. eval "$as_ac_var=yes"
  6089. else
  6090. echo "$as_me: failed program was:" >&5
  6091. sed 's/^/| /' conftest.$ac_ext >&5
  6092. eval "$as_ac_var=no"
  6093. fi
  6094. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6095. conftest$ac_exeext conftest.$ac_ext
  6096. fi
  6097. ac_res=`eval echo '${'$as_ac_var'}'`
  6098. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6099. echo "${ECHO_T}$ac_res" >&6; }
  6100. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6101. cat >>confdefs.h <<_ACEOF
  6102. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6103. _ACEOF
  6104. have_digestinit_ex=yes
  6105. fi
  6106. done
  6107. if test "x$have_digestinit_ex" = "x"; then
  6108. cat >>confdefs.h <<\_ACEOF
  6109. #define HAVE_OLD_LIBSSL 1
  6110. _ACEOF
  6111. fi
  6112. # search for sha256 support
  6113. for ac_func in EVP_sha256
  6114. do
  6115. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6116. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6117. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6118. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6119. echo $ECHO_N "(cached) $ECHO_C" >&6
  6120. else
  6121. cat >conftest.$ac_ext <<_ACEOF
  6122. /* confdefs.h. */
  6123. _ACEOF
  6124. cat confdefs.h >>conftest.$ac_ext
  6125. cat >>conftest.$ac_ext <<_ACEOF
  6126. /* end confdefs.h. */
  6127. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6128. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6129. #define $ac_func innocuous_$ac_func
  6130. /* System header to define __stub macros and hopefully few prototypes,
  6131. which can conflict with char $ac_func (); below.
  6132. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6133. <limits.h> exists even on freestanding compilers. */
  6134. #ifdef __STDC__
  6135. # include <limits.h>
  6136. #else
  6137. # include <assert.h>
  6138. #endif
  6139. #undef $ac_func
  6140. /* Override any GCC internal prototype to avoid an error.
  6141. Use char because int might match the return type of a GCC
  6142. builtin and then its argument prototype would still apply. */
  6143. #ifdef __cplusplus
  6144. extern "C"
  6145. #endif
  6146. char $ac_func ();
  6147. /* The GNU C library defines this for functions which it implements
  6148. to always fail with ENOSYS. Some functions are actually named
  6149. something starting with __ and the normal name is an alias. */
  6150. #if defined __stub_$ac_func || defined __stub___$ac_func
  6151. choke me
  6152. #endif
  6153. int
  6154. main ()
  6155. {
  6156. return $ac_func ();
  6157. ;
  6158. return 0;
  6159. }
  6160. _ACEOF
  6161. rm -f conftest.$ac_objext conftest$ac_exeext
  6162. if { (ac_try="$ac_link"
  6163. case "(($ac_try" in
  6164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6165. *) ac_try_echo=$ac_try;;
  6166. esac
  6167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6168. (eval "$ac_link") 2>conftest.er1
  6169. ac_status=$?
  6170. grep -v '^ *+' conftest.er1 >conftest.err
  6171. rm -f conftest.er1
  6172. cat conftest.err >&5
  6173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6174. (exit $ac_status); } && {
  6175. test -z "$ac_cxx_werror_flag" ||
  6176. test ! -s conftest.err
  6177. } && test -s conftest$ac_exeext &&
  6178. $as_test_x conftest$ac_exeext; then
  6179. eval "$as_ac_var=yes"
  6180. else
  6181. echo "$as_me: failed program was:" >&5
  6182. sed 's/^/| /' conftest.$ac_ext >&5
  6183. eval "$as_ac_var=no"
  6184. fi
  6185. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6186. conftest$ac_exeext conftest.$ac_ext
  6187. fi
  6188. ac_res=`eval echo '${'$as_ac_var'}'`
  6189. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6190. echo "${ECHO_T}$ac_res" >&6; }
  6191. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6192. cat >>confdefs.h <<_ACEOF
  6193. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6194. _ACEOF
  6195. fi
  6196. done
  6197. fi
  6198. LIBS=$LIBS_save
  6199. CPPFLAGS=$CPPFLAGS_save
  6200. fi
  6201. if test "x$with_libcares" = "xyes"; then
  6202. # Check whether --with-libcares-prefix was given.
  6203. if test "${with_libcares_prefix+set}" = set; then
  6204. withval=$with_libcares_prefix; libcares_prefix=$withval
  6205. else
  6206. libcares_prefix=""
  6207. fi
  6208. if test "x$libcares_prefix" = "x"; then
  6209. libcares_prefix="/usr"
  6210. fi
  6211. libcares_prefix_lib=$libcares_prefix/lib
  6212. libcares_prefix_include=$libcares_prefix/include
  6213. LIBS_save=$LIBS
  6214. CPPFLAGS_save=$CPPFLAGS
  6215. LIBS="-L$libcares_prefix_lib $LIBS"
  6216. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6217. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6218. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6219. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6220. echo $ECHO_N "(cached) $ECHO_C" >&6
  6221. else
  6222. ac_check_lib_save_LIBS=$LIBS
  6223. LIBS="-lcares $LIBS"
  6224. cat >conftest.$ac_ext <<_ACEOF
  6225. /* confdefs.h. */
  6226. _ACEOF
  6227. cat confdefs.h >>conftest.$ac_ext
  6228. cat >>conftest.$ac_ext <<_ACEOF
  6229. /* end confdefs.h. */
  6230. /* Override any GCC internal prototype to avoid an error.
  6231. Use char because int might match the return type of a GCC
  6232. builtin and then its argument prototype would still apply. */
  6233. #ifdef __cplusplus
  6234. extern "C"
  6235. #endif
  6236. char ares_init ();
  6237. int
  6238. main ()
  6239. {
  6240. return ares_init ();
  6241. ;
  6242. return 0;
  6243. }
  6244. _ACEOF
  6245. rm -f conftest.$ac_objext conftest$ac_exeext
  6246. if { (ac_try="$ac_link"
  6247. case "(($ac_try" in
  6248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6249. *) ac_try_echo=$ac_try;;
  6250. esac
  6251. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6252. (eval "$ac_link") 2>conftest.er1
  6253. ac_status=$?
  6254. grep -v '^ *+' conftest.er1 >conftest.err
  6255. rm -f conftest.er1
  6256. cat conftest.err >&5
  6257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6258. (exit $ac_status); } && {
  6259. test -z "$ac_cxx_werror_flag" ||
  6260. test ! -s conftest.err
  6261. } && test -s conftest$ac_exeext &&
  6262. $as_test_x conftest$ac_exeext; then
  6263. ac_cv_lib_cares_ares_init=yes
  6264. else
  6265. echo "$as_me: failed program was:" >&5
  6266. sed 's/^/| /' conftest.$ac_ext >&5
  6267. ac_cv_lib_cares_ares_init=no
  6268. fi
  6269. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6270. conftest$ac_exeext conftest.$ac_ext
  6271. LIBS=$ac_check_lib_save_LIBS
  6272. fi
  6273. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6274. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6275. if test $ac_cv_lib_cares_ares_init = yes; then
  6276. have_libcares=yes
  6277. fi
  6278. if test "x$have_libcares" != "xyes"; then
  6279. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6280. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6281. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6282. echo $ECHO_N "(cached) $ECHO_C" >&6
  6283. else
  6284. ac_check_lib_save_LIBS=$LIBS
  6285. LIBS="-lcares -lrt $LIBS"
  6286. cat >conftest.$ac_ext <<_ACEOF
  6287. /* confdefs.h. */
  6288. _ACEOF
  6289. cat confdefs.h >>conftest.$ac_ext
  6290. cat >>conftest.$ac_ext <<_ACEOF
  6291. /* end confdefs.h. */
  6292. /* Override any GCC internal prototype to avoid an error.
  6293. Use char because int might match the return type of a GCC
  6294. builtin and then its argument prototype would still apply. */
  6295. #ifdef __cplusplus
  6296. extern "C"
  6297. #endif
  6298. char ares_init ();
  6299. int
  6300. main ()
  6301. {
  6302. return ares_init ();
  6303. ;
  6304. return 0;
  6305. }
  6306. _ACEOF
  6307. rm -f conftest.$ac_objext conftest$ac_exeext
  6308. if { (ac_try="$ac_link"
  6309. case "(($ac_try" in
  6310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6311. *) ac_try_echo=$ac_try;;
  6312. esac
  6313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6314. (eval "$ac_link") 2>conftest.er1
  6315. ac_status=$?
  6316. grep -v '^ *+' conftest.er1 >conftest.err
  6317. rm -f conftest.er1
  6318. cat conftest.err >&5
  6319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6320. (exit $ac_status); } && {
  6321. test -z "$ac_cxx_werror_flag" ||
  6322. test ! -s conftest.err
  6323. } && test -s conftest$ac_exeext &&
  6324. $as_test_x conftest$ac_exeext; then
  6325. ac_cv_lib_cares_ares_init=yes
  6326. else
  6327. echo "$as_me: failed program was:" >&5
  6328. sed 's/^/| /' conftest.$ac_ext >&5
  6329. ac_cv_lib_cares_ares_init=no
  6330. fi
  6331. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6332. conftest$ac_exeext conftest.$ac_ext
  6333. LIBS=$ac_check_lib_save_LIBS
  6334. fi
  6335. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6336. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6337. if test $ac_cv_lib_cares_ares_init = yes; then
  6338. have_libcares=yes need_librt=yes
  6339. fi
  6340. fi
  6341. if test "x$have_libcares" = "xyes"; then
  6342. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6343. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6344. cat >conftest.$ac_ext <<_ACEOF
  6345. /* confdefs.h. */
  6346. _ACEOF
  6347. cat confdefs.h >>conftest.$ac_ext
  6348. cat >>conftest.$ac_ext <<_ACEOF
  6349. /* end confdefs.h. */
  6350. #include <ares.h>
  6351. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6352. int
  6353. main ()
  6354. {
  6355. ares_channel channel;
  6356. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6357. ;
  6358. return 0;
  6359. }
  6360. _ACEOF
  6361. rm -f conftest.$ac_objext
  6362. if { (ac_try="$ac_compile"
  6363. case "(($ac_try" in
  6364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6365. *) ac_try_echo=$ac_try;;
  6366. esac
  6367. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6368. (eval "$ac_compile") 2>conftest.er1
  6369. ac_status=$?
  6370. grep -v '^ *+' conftest.er1 >conftest.err
  6371. rm -f conftest.er1
  6372. cat conftest.err >&5
  6373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6374. (exit $ac_status); } && {
  6375. test -z "$ac_cxx_werror_flag" ||
  6376. test ! -s conftest.err
  6377. } && test -s conftest.$ac_objext; then
  6378. have_libcares1_5=yes
  6379. else
  6380. echo "$as_me: failed program was:" >&5
  6381. sed 's/^/| /' conftest.$ac_ext >&5
  6382. have_libcares1_5=no
  6383. fi
  6384. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6385. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6386. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6387. if test "x$have_libcares1_5" = "xyes"; then
  6388. cat >>confdefs.h <<\_ACEOF
  6389. #define HAVE_LIBCARES1_5 1
  6390. _ACEOF
  6391. fi
  6392. cat >>confdefs.h <<\_ACEOF
  6393. #define HAVE_LIBCARES 1
  6394. _ACEOF
  6395. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6396. if test "x$need_librt" = "xyes"; then
  6397. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6398. fi
  6399. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6400. fi
  6401. LIBS=$LIBS_save
  6402. CPPFLAGS=$CPPFLAGS_save
  6403. fi
  6404. # Check availability of libz
  6405. if test "x$with_libz" = "xyes"; then
  6406. # Check whether --with-libz-prefix was given.
  6407. if test "${with_libz_prefix+set}" = set; then
  6408. withval=$with_libz_prefix; libz_prefix=$withval
  6409. else
  6410. libz_prefix=""
  6411. fi
  6412. if test "x$libz_prefix" = "x"; then
  6413. libz_prefix="/usr"
  6414. fi
  6415. libz_prefix_lib=$libz_prefix/lib
  6416. libz_prefix_include=$libz_prefix/include
  6417. LIBS_save=$LIBS
  6418. CPPFLAGS_save=$CPPFLAGS
  6419. LIBS="-L$libz_prefix_lib $LIBS"
  6420. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6421. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6422. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6423. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6424. echo $ECHO_N "(cached) $ECHO_C" >&6
  6425. else
  6426. ac_check_lib_save_LIBS=$LIBS
  6427. LIBS="-lz $LIBS"
  6428. cat >conftest.$ac_ext <<_ACEOF
  6429. /* confdefs.h. */
  6430. _ACEOF
  6431. cat confdefs.h >>conftest.$ac_ext
  6432. cat >>conftest.$ac_ext <<_ACEOF
  6433. /* end confdefs.h. */
  6434. /* Override any GCC internal prototype to avoid an error.
  6435. Use char because int might match the return type of a GCC
  6436. builtin and then its argument prototype would still apply. */
  6437. #ifdef __cplusplus
  6438. extern "C"
  6439. #endif
  6440. char zlibVersion ();
  6441. int
  6442. main ()
  6443. {
  6444. return zlibVersion ();
  6445. ;
  6446. return 0;
  6447. }
  6448. _ACEOF
  6449. rm -f conftest.$ac_objext conftest$ac_exeext
  6450. if { (ac_try="$ac_link"
  6451. case "(($ac_try" in
  6452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6453. *) ac_try_echo=$ac_try;;
  6454. esac
  6455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6456. (eval "$ac_link") 2>conftest.er1
  6457. ac_status=$?
  6458. grep -v '^ *+' conftest.er1 >conftest.err
  6459. rm -f conftest.er1
  6460. cat conftest.err >&5
  6461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6462. (exit $ac_status); } && {
  6463. test -z "$ac_cxx_werror_flag" ||
  6464. test ! -s conftest.err
  6465. } && test -s conftest$ac_exeext &&
  6466. $as_test_x conftest$ac_exeext; then
  6467. ac_cv_lib_z_zlibVersion=yes
  6468. else
  6469. echo "$as_me: failed program was:" >&5
  6470. sed 's/^/| /' conftest.$ac_ext >&5
  6471. ac_cv_lib_z_zlibVersion=no
  6472. fi
  6473. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6474. conftest$ac_exeext conftest.$ac_ext
  6475. LIBS=$ac_check_lib_save_LIBS
  6476. fi
  6477. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6478. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6479. if test $ac_cv_lib_z_zlibVersion = yes; then
  6480. have_libz=yes
  6481. fi
  6482. if test "x$have_libz" = "xyes"; then
  6483. cat >>confdefs.h <<\_ACEOF
  6484. #define HAVE_LIBZ 1
  6485. _ACEOF
  6486. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6487. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6488. fi
  6489. LIBS=$LIBS_save
  6490. CPPFLAGS=$CPPFLAGS_save
  6491. fi
  6492. # Define variables based on the result of the checks for libraries.
  6493. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6494. cat >>confdefs.h <<\_ACEOF
  6495. #define ENABLE_SSL 1
  6496. _ACEOF
  6497. if true; then
  6498. ENABLE_SSL_TRUE=
  6499. ENABLE_SSL_FALSE='#'
  6500. else
  6501. ENABLE_SSL_TRUE='#'
  6502. ENABLE_SSL_FALSE=
  6503. fi
  6504. else
  6505. if false; then
  6506. ENABLE_SSL_TRUE=
  6507. ENABLE_SSL_FALSE='#'
  6508. else
  6509. ENABLE_SSL_TRUE='#'
  6510. ENABLE_SSL_FALSE=
  6511. fi
  6512. fi
  6513. if test "x$have_libgnutls" = "xyes" ; then
  6514. HAVE_LIBGNUTLS_TRUE=
  6515. HAVE_LIBGNUTLS_FALSE='#'
  6516. else
  6517. HAVE_LIBGNUTLS_TRUE='#'
  6518. HAVE_LIBGNUTLS_FALSE=
  6519. fi
  6520. if test "x$have_openssl" = "xyes" ; then
  6521. HAVE_LIBSSL_TRUE=
  6522. HAVE_LIBSSL_FALSE='#'
  6523. else
  6524. HAVE_LIBSSL_TRUE='#'
  6525. HAVE_LIBSSL_FALSE=
  6526. fi
  6527. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6528. cat >>confdefs.h <<\_ACEOF
  6529. #define ENABLE_MESSAGE_DIGEST 1
  6530. _ACEOF
  6531. if true; then
  6532. ENABLE_MESSAGE_DIGEST_TRUE=
  6533. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6534. else
  6535. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6536. ENABLE_MESSAGE_DIGEST_FALSE=
  6537. fi
  6538. enable_message_digest=yes
  6539. else
  6540. if false; then
  6541. ENABLE_MESSAGE_DIGEST_TRUE=
  6542. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6543. else
  6544. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6545. ENABLE_MESSAGE_DIGEST_FALSE=
  6546. fi
  6547. fi
  6548. if test "x$enable_bittorrent" = "xyes" &&
  6549. test "x$enable_message_digest" = "xyes"; then
  6550. cat >>confdefs.h <<\_ACEOF
  6551. #define ENABLE_BITTORRENT 1
  6552. _ACEOF
  6553. if true; then
  6554. ENABLE_BITTORRENT_TRUE=
  6555. ENABLE_BITTORRENT_FALSE='#'
  6556. else
  6557. ENABLE_BITTORRENT_TRUE='#'
  6558. ENABLE_BITTORRENT_FALSE=
  6559. fi
  6560. else
  6561. enable_bittorrent=no
  6562. if false; then
  6563. ENABLE_BITTORRENT_TRUE=
  6564. ENABLE_BITTORRENT_FALSE='#'
  6565. else
  6566. ENABLE_BITTORRENT_TRUE='#'
  6567. ENABLE_BITTORRENT_FALSE=
  6568. fi
  6569. fi
  6570. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6571. test "x$enable_metalink" = "xyes"; then
  6572. cat >>confdefs.h <<\_ACEOF
  6573. #define ENABLE_METALINK 1
  6574. _ACEOF
  6575. if true; then
  6576. ENABLE_METALINK_TRUE=
  6577. ENABLE_METALINK_FALSE='#'
  6578. else
  6579. ENABLE_METALINK_TRUE='#'
  6580. ENABLE_METALINK_FALSE=
  6581. fi
  6582. else
  6583. enable_metalink=no
  6584. if false; then
  6585. ENABLE_METALINK_TRUE=
  6586. ENABLE_METALINK_FALSE='#'
  6587. else
  6588. ENABLE_METALINK_TRUE='#'
  6589. ENABLE_METALINK_FALSE=
  6590. fi
  6591. fi
  6592. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6593. ENABLE_LIBXML2_TRUE=
  6594. ENABLE_LIBXML2_FALSE='#'
  6595. else
  6596. ENABLE_LIBXML2_TRUE='#'
  6597. ENABLE_LIBXML2_FALSE=
  6598. fi
  6599. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6600. ENABLE_LIBEXPAT_TRUE=
  6601. ENABLE_LIBEXPAT_FALSE='#'
  6602. else
  6603. ENABLE_LIBEXPAT_TRUE='#'
  6604. ENABLE_LIBEXPAT_FALSE=
  6605. fi
  6606. if test "x$have_libcares" = "xyes"; then
  6607. cat >>confdefs.h <<\_ACEOF
  6608. #define ENABLE_ASYNC_DNS 1
  6609. _ACEOF
  6610. if true; then
  6611. ENABLE_ASYNC_DNS_TRUE=
  6612. ENABLE_ASYNC_DNS_FALSE='#'
  6613. else
  6614. ENABLE_ASYNC_DNS_TRUE='#'
  6615. ENABLE_ASYNC_DNS_FALSE=
  6616. fi
  6617. else
  6618. if false; then
  6619. ENABLE_ASYNC_DNS_TRUE=
  6620. ENABLE_ASYNC_DNS_FALSE='#'
  6621. else
  6622. ENABLE_ASYNC_DNS_TRUE='#'
  6623. ENABLE_ASYNC_DNS_FALSE=
  6624. fi
  6625. fi
  6626. # Set conditional for libz
  6627. if test "x$have_libz" = "xyes"; then
  6628. HAVE_LIBZ_TRUE=
  6629. HAVE_LIBZ_FALSE='#'
  6630. else
  6631. HAVE_LIBZ_TRUE='#'
  6632. HAVE_LIBZ_FALSE=
  6633. fi
  6634. # Set conditional for sqlite3
  6635. if test "x$have_sqlite3" = "xyes"; then
  6636. HAVE_SQLITE3_TRUE=
  6637. HAVE_SQLITE3_FALSE='#'
  6638. else
  6639. HAVE_SQLITE3_TRUE='#'
  6640. HAVE_SQLITE3_FALSE=
  6641. fi
  6642. # Checks for header files.
  6643. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6644. # for constant arguments. Useless!
  6645. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6646. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6647. if test "${ac_cv_working_alloca_h+set}" = set; then
  6648. echo $ECHO_N "(cached) $ECHO_C" >&6
  6649. else
  6650. cat >conftest.$ac_ext <<_ACEOF
  6651. /* confdefs.h. */
  6652. _ACEOF
  6653. cat confdefs.h >>conftest.$ac_ext
  6654. cat >>conftest.$ac_ext <<_ACEOF
  6655. /* end confdefs.h. */
  6656. #include <alloca.h>
  6657. int
  6658. main ()
  6659. {
  6660. char *p = (char *) alloca (2 * sizeof (int));
  6661. if (p) return 0;
  6662. ;
  6663. return 0;
  6664. }
  6665. _ACEOF
  6666. rm -f conftest.$ac_objext conftest$ac_exeext
  6667. if { (ac_try="$ac_link"
  6668. case "(($ac_try" in
  6669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6670. *) ac_try_echo=$ac_try;;
  6671. esac
  6672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6673. (eval "$ac_link") 2>conftest.er1
  6674. ac_status=$?
  6675. grep -v '^ *+' conftest.er1 >conftest.err
  6676. rm -f conftest.er1
  6677. cat conftest.err >&5
  6678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6679. (exit $ac_status); } && {
  6680. test -z "$ac_cxx_werror_flag" ||
  6681. test ! -s conftest.err
  6682. } && test -s conftest$ac_exeext &&
  6683. $as_test_x conftest$ac_exeext; then
  6684. ac_cv_working_alloca_h=yes
  6685. else
  6686. echo "$as_me: failed program was:" >&5
  6687. sed 's/^/| /' conftest.$ac_ext >&5
  6688. ac_cv_working_alloca_h=no
  6689. fi
  6690. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6691. conftest$ac_exeext conftest.$ac_ext
  6692. fi
  6693. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6694. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6695. if test $ac_cv_working_alloca_h = yes; then
  6696. cat >>confdefs.h <<\_ACEOF
  6697. #define HAVE_ALLOCA_H 1
  6698. _ACEOF
  6699. fi
  6700. { echo "$as_me:$LINENO: checking for alloca" >&5
  6701. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6702. if test "${ac_cv_func_alloca_works+set}" = set; then
  6703. echo $ECHO_N "(cached) $ECHO_C" >&6
  6704. else
  6705. cat >conftest.$ac_ext <<_ACEOF
  6706. /* confdefs.h. */
  6707. _ACEOF
  6708. cat confdefs.h >>conftest.$ac_ext
  6709. cat >>conftest.$ac_ext <<_ACEOF
  6710. /* end confdefs.h. */
  6711. #ifdef __GNUC__
  6712. # define alloca __builtin_alloca
  6713. #else
  6714. # ifdef _MSC_VER
  6715. # include <malloc.h>
  6716. # define alloca _alloca
  6717. # else
  6718. # ifdef HAVE_ALLOCA_H
  6719. # include <alloca.h>
  6720. # else
  6721. # ifdef _AIX
  6722. #pragma alloca
  6723. # else
  6724. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6725. char *alloca ();
  6726. # endif
  6727. # endif
  6728. # endif
  6729. # endif
  6730. #endif
  6731. int
  6732. main ()
  6733. {
  6734. char *p = (char *) alloca (1);
  6735. if (p) return 0;
  6736. ;
  6737. return 0;
  6738. }
  6739. _ACEOF
  6740. rm -f conftest.$ac_objext conftest$ac_exeext
  6741. if { (ac_try="$ac_link"
  6742. case "(($ac_try" in
  6743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6744. *) ac_try_echo=$ac_try;;
  6745. esac
  6746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6747. (eval "$ac_link") 2>conftest.er1
  6748. ac_status=$?
  6749. grep -v '^ *+' conftest.er1 >conftest.err
  6750. rm -f conftest.er1
  6751. cat conftest.err >&5
  6752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6753. (exit $ac_status); } && {
  6754. test -z "$ac_cxx_werror_flag" ||
  6755. test ! -s conftest.err
  6756. } && test -s conftest$ac_exeext &&
  6757. $as_test_x conftest$ac_exeext; then
  6758. ac_cv_func_alloca_works=yes
  6759. else
  6760. echo "$as_me: failed program was:" >&5
  6761. sed 's/^/| /' conftest.$ac_ext >&5
  6762. ac_cv_func_alloca_works=no
  6763. fi
  6764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6765. conftest$ac_exeext conftest.$ac_ext
  6766. fi
  6767. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6768. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6769. if test $ac_cv_func_alloca_works = yes; then
  6770. cat >>confdefs.h <<\_ACEOF
  6771. #define HAVE_ALLOCA 1
  6772. _ACEOF
  6773. else
  6774. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6775. # that cause trouble. Some versions do not even contain alloca or
  6776. # contain a buggy version. If you still want to use their alloca,
  6777. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6778. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6779. cat >>confdefs.h <<\_ACEOF
  6780. #define C_ALLOCA 1
  6781. _ACEOF
  6782. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6783. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6784. if test "${ac_cv_os_cray+set}" = set; then
  6785. echo $ECHO_N "(cached) $ECHO_C" >&6
  6786. else
  6787. cat >conftest.$ac_ext <<_ACEOF
  6788. /* confdefs.h. */
  6789. _ACEOF
  6790. cat confdefs.h >>conftest.$ac_ext
  6791. cat >>conftest.$ac_ext <<_ACEOF
  6792. /* end confdefs.h. */
  6793. #if defined CRAY && ! defined CRAY2
  6794. webecray
  6795. #else
  6796. wenotbecray
  6797. #endif
  6798. _ACEOF
  6799. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6800. $EGREP "webecray" >/dev/null 2>&1; then
  6801. ac_cv_os_cray=yes
  6802. else
  6803. ac_cv_os_cray=no
  6804. fi
  6805. rm -f conftest*
  6806. fi
  6807. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6808. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6809. if test $ac_cv_os_cray = yes; then
  6810. for ac_func in _getb67 GETB67 getb67; do
  6811. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6812. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6813. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6814. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6815. echo $ECHO_N "(cached) $ECHO_C" >&6
  6816. else
  6817. cat >conftest.$ac_ext <<_ACEOF
  6818. /* confdefs.h. */
  6819. _ACEOF
  6820. cat confdefs.h >>conftest.$ac_ext
  6821. cat >>conftest.$ac_ext <<_ACEOF
  6822. /* end confdefs.h. */
  6823. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6824. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6825. #define $ac_func innocuous_$ac_func
  6826. /* System header to define __stub macros and hopefully few prototypes,
  6827. which can conflict with char $ac_func (); below.
  6828. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6829. <limits.h> exists even on freestanding compilers. */
  6830. #ifdef __STDC__
  6831. # include <limits.h>
  6832. #else
  6833. # include <assert.h>
  6834. #endif
  6835. #undef $ac_func
  6836. /* Override any GCC internal prototype to avoid an error.
  6837. Use char because int might match the return type of a GCC
  6838. builtin and then its argument prototype would still apply. */
  6839. #ifdef __cplusplus
  6840. extern "C"
  6841. #endif
  6842. char $ac_func ();
  6843. /* The GNU C library defines this for functions which it implements
  6844. to always fail with ENOSYS. Some functions are actually named
  6845. something starting with __ and the normal name is an alias. */
  6846. #if defined __stub_$ac_func || defined __stub___$ac_func
  6847. choke me
  6848. #endif
  6849. int
  6850. main ()
  6851. {
  6852. return $ac_func ();
  6853. ;
  6854. return 0;
  6855. }
  6856. _ACEOF
  6857. rm -f conftest.$ac_objext conftest$ac_exeext
  6858. if { (ac_try="$ac_link"
  6859. case "(($ac_try" in
  6860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6861. *) ac_try_echo=$ac_try;;
  6862. esac
  6863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6864. (eval "$ac_link") 2>conftest.er1
  6865. ac_status=$?
  6866. grep -v '^ *+' conftest.er1 >conftest.err
  6867. rm -f conftest.er1
  6868. cat conftest.err >&5
  6869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6870. (exit $ac_status); } && {
  6871. test -z "$ac_cxx_werror_flag" ||
  6872. test ! -s conftest.err
  6873. } && test -s conftest$ac_exeext &&
  6874. $as_test_x conftest$ac_exeext; then
  6875. eval "$as_ac_var=yes"
  6876. else
  6877. echo "$as_me: failed program was:" >&5
  6878. sed 's/^/| /' conftest.$ac_ext >&5
  6879. eval "$as_ac_var=no"
  6880. fi
  6881. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6882. conftest$ac_exeext conftest.$ac_ext
  6883. fi
  6884. ac_res=`eval echo '${'$as_ac_var'}'`
  6885. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6886. echo "${ECHO_T}$ac_res" >&6; }
  6887. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6888. cat >>confdefs.h <<_ACEOF
  6889. #define CRAY_STACKSEG_END $ac_func
  6890. _ACEOF
  6891. break
  6892. fi
  6893. done
  6894. fi
  6895. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6896. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6897. if test "${ac_cv_c_stack_direction+set}" = set; then
  6898. echo $ECHO_N "(cached) $ECHO_C" >&6
  6899. else
  6900. if test "$cross_compiling" = yes; then
  6901. ac_cv_c_stack_direction=0
  6902. else
  6903. cat >conftest.$ac_ext <<_ACEOF
  6904. /* confdefs.h. */
  6905. _ACEOF
  6906. cat confdefs.h >>conftest.$ac_ext
  6907. cat >>conftest.$ac_ext <<_ACEOF
  6908. /* end confdefs.h. */
  6909. $ac_includes_default
  6910. int
  6911. find_stack_direction ()
  6912. {
  6913. static char *addr = 0;
  6914. auto char dummy;
  6915. if (addr == 0)
  6916. {
  6917. addr = &dummy;
  6918. return find_stack_direction ();
  6919. }
  6920. else
  6921. return (&dummy > addr) ? 1 : -1;
  6922. }
  6923. int
  6924. main ()
  6925. {
  6926. return find_stack_direction () < 0;
  6927. }
  6928. _ACEOF
  6929. rm -f conftest$ac_exeext
  6930. if { (ac_try="$ac_link"
  6931. case "(($ac_try" in
  6932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6933. *) ac_try_echo=$ac_try;;
  6934. esac
  6935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6936. (eval "$ac_link") 2>&5
  6937. ac_status=$?
  6938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6939. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6940. { (case "(($ac_try" in
  6941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6942. *) ac_try_echo=$ac_try;;
  6943. esac
  6944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6945. (eval "$ac_try") 2>&5
  6946. ac_status=$?
  6947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6948. (exit $ac_status); }; }; then
  6949. ac_cv_c_stack_direction=1
  6950. else
  6951. echo "$as_me: program exited with status $ac_status" >&5
  6952. echo "$as_me: failed program was:" >&5
  6953. sed 's/^/| /' conftest.$ac_ext >&5
  6954. ( exit $ac_status )
  6955. ac_cv_c_stack_direction=-1
  6956. fi
  6957. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6958. fi
  6959. fi
  6960. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6961. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6962. cat >>confdefs.h <<_ACEOF
  6963. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6964. _ACEOF
  6965. fi
  6966. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6967. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6968. if test "${ac_cv_header_stdc+set}" = set; then
  6969. echo $ECHO_N "(cached) $ECHO_C" >&6
  6970. else
  6971. cat >conftest.$ac_ext <<_ACEOF
  6972. /* confdefs.h. */
  6973. _ACEOF
  6974. cat confdefs.h >>conftest.$ac_ext
  6975. cat >>conftest.$ac_ext <<_ACEOF
  6976. /* end confdefs.h. */
  6977. #include <stdlib.h>
  6978. #include <stdarg.h>
  6979. #include <string.h>
  6980. #include <float.h>
  6981. int
  6982. main ()
  6983. {
  6984. ;
  6985. return 0;
  6986. }
  6987. _ACEOF
  6988. rm -f conftest.$ac_objext
  6989. if { (ac_try="$ac_compile"
  6990. case "(($ac_try" in
  6991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6992. *) ac_try_echo=$ac_try;;
  6993. esac
  6994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6995. (eval "$ac_compile") 2>conftest.er1
  6996. ac_status=$?
  6997. grep -v '^ *+' conftest.er1 >conftest.err
  6998. rm -f conftest.er1
  6999. cat conftest.err >&5
  7000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7001. (exit $ac_status); } && {
  7002. test -z "$ac_cxx_werror_flag" ||
  7003. test ! -s conftest.err
  7004. } && test -s conftest.$ac_objext; then
  7005. ac_cv_header_stdc=yes
  7006. else
  7007. echo "$as_me: failed program was:" >&5
  7008. sed 's/^/| /' conftest.$ac_ext >&5
  7009. ac_cv_header_stdc=no
  7010. fi
  7011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7012. if test $ac_cv_header_stdc = yes; then
  7013. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7014. cat >conftest.$ac_ext <<_ACEOF
  7015. /* confdefs.h. */
  7016. _ACEOF
  7017. cat confdefs.h >>conftest.$ac_ext
  7018. cat >>conftest.$ac_ext <<_ACEOF
  7019. /* end confdefs.h. */
  7020. #include <string.h>
  7021. _ACEOF
  7022. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7023. $EGREP "memchr" >/dev/null 2>&1; then
  7024. :
  7025. else
  7026. ac_cv_header_stdc=no
  7027. fi
  7028. rm -f conftest*
  7029. fi
  7030. if test $ac_cv_header_stdc = yes; then
  7031. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7032. cat >conftest.$ac_ext <<_ACEOF
  7033. /* confdefs.h. */
  7034. _ACEOF
  7035. cat confdefs.h >>conftest.$ac_ext
  7036. cat >>conftest.$ac_ext <<_ACEOF
  7037. /* end confdefs.h. */
  7038. #include <stdlib.h>
  7039. _ACEOF
  7040. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7041. $EGREP "free" >/dev/null 2>&1; then
  7042. :
  7043. else
  7044. ac_cv_header_stdc=no
  7045. fi
  7046. rm -f conftest*
  7047. fi
  7048. if test $ac_cv_header_stdc = yes; then
  7049. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7050. if test "$cross_compiling" = yes; then
  7051. :
  7052. else
  7053. cat >conftest.$ac_ext <<_ACEOF
  7054. /* confdefs.h. */
  7055. _ACEOF
  7056. cat confdefs.h >>conftest.$ac_ext
  7057. cat >>conftest.$ac_ext <<_ACEOF
  7058. /* end confdefs.h. */
  7059. #include <ctype.h>
  7060. #include <stdlib.h>
  7061. #if ((' ' & 0x0FF) == 0x020)
  7062. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7063. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7064. #else
  7065. # define ISLOWER(c) \
  7066. (('a' <= (c) && (c) <= 'i') \
  7067. || ('j' <= (c) && (c) <= 'r') \
  7068. || ('s' <= (c) && (c) <= 'z'))
  7069. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7070. #endif
  7071. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7072. int
  7073. main ()
  7074. {
  7075. int i;
  7076. for (i = 0; i < 256; i++)
  7077. if (XOR (islower (i), ISLOWER (i))
  7078. || toupper (i) != TOUPPER (i))
  7079. return 2;
  7080. return 0;
  7081. }
  7082. _ACEOF
  7083. rm -f conftest$ac_exeext
  7084. if { (ac_try="$ac_link"
  7085. case "(($ac_try" in
  7086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7087. *) ac_try_echo=$ac_try;;
  7088. esac
  7089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7090. (eval "$ac_link") 2>&5
  7091. ac_status=$?
  7092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7093. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7094. { (case "(($ac_try" in
  7095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7096. *) ac_try_echo=$ac_try;;
  7097. esac
  7098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7099. (eval "$ac_try") 2>&5
  7100. ac_status=$?
  7101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7102. (exit $ac_status); }; }; then
  7103. :
  7104. else
  7105. echo "$as_me: program exited with status $ac_status" >&5
  7106. echo "$as_me: failed program was:" >&5
  7107. sed 's/^/| /' conftest.$ac_ext >&5
  7108. ( exit $ac_status )
  7109. ac_cv_header_stdc=no
  7110. fi
  7111. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7112. fi
  7113. fi
  7114. fi
  7115. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7116. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  7117. if test $ac_cv_header_stdc = yes; then
  7118. cat >>confdefs.h <<\_ACEOF
  7119. #define STDC_HEADERS 1
  7120. _ACEOF
  7121. fi
  7122. case "$target" in
  7123. *mingw*)
  7124. for ac_header in winsock2.h \
  7125. ws2tcpip.h
  7126. do
  7127. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7128. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7129. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7130. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7131. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7132. echo $ECHO_N "(cached) $ECHO_C" >&6
  7133. fi
  7134. ac_res=`eval echo '${'$as_ac_Header'}'`
  7135. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7136. echo "${ECHO_T}$ac_res" >&6; }
  7137. else
  7138. # Is the header compilable?
  7139. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7140. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7141. cat >conftest.$ac_ext <<_ACEOF
  7142. /* confdefs.h. */
  7143. _ACEOF
  7144. cat confdefs.h >>conftest.$ac_ext
  7145. cat >>conftest.$ac_ext <<_ACEOF
  7146. /* end confdefs.h. */
  7147. $ac_includes_default
  7148. #include <$ac_header>
  7149. _ACEOF
  7150. rm -f conftest.$ac_objext
  7151. if { (ac_try="$ac_compile"
  7152. case "(($ac_try" in
  7153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7154. *) ac_try_echo=$ac_try;;
  7155. esac
  7156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7157. (eval "$ac_compile") 2>conftest.er1
  7158. ac_status=$?
  7159. grep -v '^ *+' conftest.er1 >conftest.err
  7160. rm -f conftest.er1
  7161. cat conftest.err >&5
  7162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7163. (exit $ac_status); } && {
  7164. test -z "$ac_cxx_werror_flag" ||
  7165. test ! -s conftest.err
  7166. } && test -s conftest.$ac_objext; then
  7167. ac_header_compiler=yes
  7168. else
  7169. echo "$as_me: failed program was:" >&5
  7170. sed 's/^/| /' conftest.$ac_ext >&5
  7171. ac_header_compiler=no
  7172. fi
  7173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7174. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7175. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7176. # Is the header present?
  7177. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7178. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7179. cat >conftest.$ac_ext <<_ACEOF
  7180. /* confdefs.h. */
  7181. _ACEOF
  7182. cat confdefs.h >>conftest.$ac_ext
  7183. cat >>conftest.$ac_ext <<_ACEOF
  7184. /* end confdefs.h. */
  7185. #include <$ac_header>
  7186. _ACEOF
  7187. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7188. case "(($ac_try" in
  7189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7190. *) ac_try_echo=$ac_try;;
  7191. esac
  7192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7193. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7194. ac_status=$?
  7195. grep -v '^ *+' conftest.er1 >conftest.err
  7196. rm -f conftest.er1
  7197. cat conftest.err >&5
  7198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. (exit $ac_status); } >/dev/null && {
  7200. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7201. test ! -s conftest.err
  7202. }; then
  7203. ac_header_preproc=yes
  7204. else
  7205. echo "$as_me: failed program was:" >&5
  7206. sed 's/^/| /' conftest.$ac_ext >&5
  7207. ac_header_preproc=no
  7208. fi
  7209. rm -f conftest.err conftest.$ac_ext
  7210. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7211. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7212. # So? What about this header?
  7213. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7214. yes:no: )
  7215. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7216. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7217. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7218. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7219. ac_header_preproc=yes
  7220. ;;
  7221. no:yes:* )
  7222. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7223. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7224. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7225. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7226. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7227. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7228. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7229. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7230. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7231. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7232. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7233. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7234. ( cat <<\_ASBOX
  7235. ## ----------------------------------------------- ##
  7236. ## Report this to t-tujikawa@users.sourceforge.net ##
  7237. ## ----------------------------------------------- ##
  7238. _ASBOX
  7239. ) | sed "s/^/$as_me: WARNING: /" >&2
  7240. ;;
  7241. esac
  7242. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7243. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7244. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7245. echo $ECHO_N "(cached) $ECHO_C" >&6
  7246. else
  7247. eval "$as_ac_Header=\$ac_header_preproc"
  7248. fi
  7249. ac_res=`eval echo '${'$as_ac_Header'}'`
  7250. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7251. echo "${ECHO_T}$ac_res" >&6; }
  7252. fi
  7253. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7254. cat >>confdefs.h <<_ACEOF
  7255. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7256. _ACEOF
  7257. fi
  7258. done
  7259. ;;
  7260. esac
  7261. for ac_header in argz.h \
  7262. arpa/inet.h \
  7263. fcntl.h \
  7264. float.h \
  7265. inttypes.h \
  7266. io.h \
  7267. langinfo.h \
  7268. libintl.h \
  7269. limits.h \
  7270. locale.h \
  7271. malloc.h \
  7272. netdb.h \
  7273. netinet/in.h \
  7274. stddef.h \
  7275. stdint.h \
  7276. stdio_ext.h \
  7277. stdlib.h \
  7278. string.h \
  7279. strings.h \
  7280. sys/ioctl.h \
  7281. sys/param.h \
  7282. sys/socket.h \
  7283. sys/time.h \
  7284. termios.h \
  7285. unistd.h \
  7286. wchar.h
  7287. do
  7288. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7289. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7290. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7291. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7292. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7293. echo $ECHO_N "(cached) $ECHO_C" >&6
  7294. fi
  7295. ac_res=`eval echo '${'$as_ac_Header'}'`
  7296. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7297. echo "${ECHO_T}$ac_res" >&6; }
  7298. else
  7299. # Is the header compilable?
  7300. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7301. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7302. cat >conftest.$ac_ext <<_ACEOF
  7303. /* confdefs.h. */
  7304. _ACEOF
  7305. cat confdefs.h >>conftest.$ac_ext
  7306. cat >>conftest.$ac_ext <<_ACEOF
  7307. /* end confdefs.h. */
  7308. $ac_includes_default
  7309. #include <$ac_header>
  7310. _ACEOF
  7311. rm -f conftest.$ac_objext
  7312. if { (ac_try="$ac_compile"
  7313. case "(($ac_try" in
  7314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7315. *) ac_try_echo=$ac_try;;
  7316. esac
  7317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7318. (eval "$ac_compile") 2>conftest.er1
  7319. ac_status=$?
  7320. grep -v '^ *+' conftest.er1 >conftest.err
  7321. rm -f conftest.er1
  7322. cat conftest.err >&5
  7323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7324. (exit $ac_status); } && {
  7325. test -z "$ac_cxx_werror_flag" ||
  7326. test ! -s conftest.err
  7327. } && test -s conftest.$ac_objext; then
  7328. ac_header_compiler=yes
  7329. else
  7330. echo "$as_me: failed program was:" >&5
  7331. sed 's/^/| /' conftest.$ac_ext >&5
  7332. ac_header_compiler=no
  7333. fi
  7334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7335. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7336. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7337. # Is the header present?
  7338. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7339. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7340. cat >conftest.$ac_ext <<_ACEOF
  7341. /* confdefs.h. */
  7342. _ACEOF
  7343. cat confdefs.h >>conftest.$ac_ext
  7344. cat >>conftest.$ac_ext <<_ACEOF
  7345. /* end confdefs.h. */
  7346. #include <$ac_header>
  7347. _ACEOF
  7348. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7349. case "(($ac_try" in
  7350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7351. *) ac_try_echo=$ac_try;;
  7352. esac
  7353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7354. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7355. ac_status=$?
  7356. grep -v '^ *+' conftest.er1 >conftest.err
  7357. rm -f conftest.er1
  7358. cat conftest.err >&5
  7359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7360. (exit $ac_status); } >/dev/null && {
  7361. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7362. test ! -s conftest.err
  7363. }; then
  7364. ac_header_preproc=yes
  7365. else
  7366. echo "$as_me: failed program was:" >&5
  7367. sed 's/^/| /' conftest.$ac_ext >&5
  7368. ac_header_preproc=no
  7369. fi
  7370. rm -f conftest.err conftest.$ac_ext
  7371. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7372. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7373. # So? What about this header?
  7374. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7375. yes:no: )
  7376. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7377. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7378. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7379. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7380. ac_header_preproc=yes
  7381. ;;
  7382. no:yes:* )
  7383. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7384. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7385. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7386. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7387. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7388. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7389. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7390. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7391. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7392. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7393. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7394. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7395. ( cat <<\_ASBOX
  7396. ## ----------------------------------------------- ##
  7397. ## Report this to t-tujikawa@users.sourceforge.net ##
  7398. ## ----------------------------------------------- ##
  7399. _ASBOX
  7400. ) | sed "s/^/$as_me: WARNING: /" >&2
  7401. ;;
  7402. esac
  7403. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7404. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7405. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7406. echo $ECHO_N "(cached) $ECHO_C" >&6
  7407. else
  7408. eval "$as_ac_Header=\$ac_header_preproc"
  7409. fi
  7410. ac_res=`eval echo '${'$as_ac_Header'}'`
  7411. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7412. echo "${ECHO_T}$ac_res" >&6; }
  7413. fi
  7414. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7415. cat >>confdefs.h <<_ACEOF
  7416. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7417. _ACEOF
  7418. fi
  7419. done
  7420. # Checks for typedefs, structures, and compiler characteristics.
  7421. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7422. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7423. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7424. echo $ECHO_N "(cached) $ECHO_C" >&6
  7425. else
  7426. cat >conftest.$ac_ext <<_ACEOF
  7427. /* confdefs.h. */
  7428. _ACEOF
  7429. cat confdefs.h >>conftest.$ac_ext
  7430. cat >>conftest.$ac_ext <<_ACEOF
  7431. /* end confdefs.h. */
  7432. #include <stdbool.h>
  7433. #ifndef bool
  7434. "error: bool is not defined"
  7435. #endif
  7436. #ifndef false
  7437. "error: false is not defined"
  7438. #endif
  7439. #if false
  7440. "error: false is not 0"
  7441. #endif
  7442. #ifndef true
  7443. "error: true is not defined"
  7444. #endif
  7445. #if true != 1
  7446. "error: true is not 1"
  7447. #endif
  7448. #ifndef __bool_true_false_are_defined
  7449. "error: __bool_true_false_are_defined is not defined"
  7450. #endif
  7451. struct s { _Bool s: 1; _Bool t; } s;
  7452. char a[true == 1 ? 1 : -1];
  7453. char b[false == 0 ? 1 : -1];
  7454. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7455. char d[(bool) 0.5 == true ? 1 : -1];
  7456. bool e = &s;
  7457. char f[(_Bool) 0.0 == false ? 1 : -1];
  7458. char g[true];
  7459. char h[sizeof (_Bool)];
  7460. char i[sizeof s.t];
  7461. enum { j = false, k = true, l = false * true, m = true * 256 };
  7462. _Bool n[m];
  7463. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7464. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7465. # if defined __xlc__ || defined __GNUC__
  7466. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7467. reported by James Lemley on 2005-10-05; see
  7468. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7469. This test is not quite right, since xlc is allowed to
  7470. reject this program, as the initializer for xlcbug is
  7471. not one of the forms that C requires support for.
  7472. However, doing the test right would require a runtime
  7473. test, and that would make cross-compilation harder.
  7474. Let us hope that IBM fixes the xlc bug, and also adds
  7475. support for this kind of constant expression. In the
  7476. meantime, this test will reject xlc, which is OK, since
  7477. our stdbool.h substitute should suffice. We also test
  7478. this with GCC, where it should work, to detect more
  7479. quickly whether someone messes up the test in the
  7480. future. */
  7481. char digs[] = "0123456789";
  7482. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7483. # endif
  7484. /* Catch a bug in an HP-UX C compiler. See
  7485. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7486. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7487. */
  7488. _Bool q = true;
  7489. _Bool *pq = &q;
  7490. int
  7491. main ()
  7492. {
  7493. *pq |= q;
  7494. *pq |= ! q;
  7495. /* Refer to every declared value, to avoid compiler optimizations. */
  7496. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7497. + !m + !n + !o + !p + !q + !pq);
  7498. ;
  7499. return 0;
  7500. }
  7501. _ACEOF
  7502. rm -f conftest.$ac_objext
  7503. if { (ac_try="$ac_compile"
  7504. case "(($ac_try" in
  7505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7506. *) ac_try_echo=$ac_try;;
  7507. esac
  7508. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7509. (eval "$ac_compile") 2>conftest.er1
  7510. ac_status=$?
  7511. grep -v '^ *+' conftest.er1 >conftest.err
  7512. rm -f conftest.er1
  7513. cat conftest.err >&5
  7514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7515. (exit $ac_status); } && {
  7516. test -z "$ac_cxx_werror_flag" ||
  7517. test ! -s conftest.err
  7518. } && test -s conftest.$ac_objext; then
  7519. ac_cv_header_stdbool_h=yes
  7520. else
  7521. echo "$as_me: failed program was:" >&5
  7522. sed 's/^/| /' conftest.$ac_ext >&5
  7523. ac_cv_header_stdbool_h=no
  7524. fi
  7525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7526. fi
  7527. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7528. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7529. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7530. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7531. if test "${ac_cv_type__Bool+set}" = set; then
  7532. echo $ECHO_N "(cached) $ECHO_C" >&6
  7533. else
  7534. cat >conftest.$ac_ext <<_ACEOF
  7535. /* confdefs.h. */
  7536. _ACEOF
  7537. cat confdefs.h >>conftest.$ac_ext
  7538. cat >>conftest.$ac_ext <<_ACEOF
  7539. /* end confdefs.h. */
  7540. $ac_includes_default
  7541. typedef _Bool ac__type_new_;
  7542. int
  7543. main ()
  7544. {
  7545. if ((ac__type_new_ *) 0)
  7546. return 0;
  7547. if (sizeof (ac__type_new_))
  7548. return 0;
  7549. ;
  7550. return 0;
  7551. }
  7552. _ACEOF
  7553. rm -f conftest.$ac_objext
  7554. if { (ac_try="$ac_compile"
  7555. case "(($ac_try" in
  7556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7557. *) ac_try_echo=$ac_try;;
  7558. esac
  7559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7560. (eval "$ac_compile") 2>conftest.er1
  7561. ac_status=$?
  7562. grep -v '^ *+' conftest.er1 >conftest.err
  7563. rm -f conftest.er1
  7564. cat conftest.err >&5
  7565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7566. (exit $ac_status); } && {
  7567. test -z "$ac_cxx_werror_flag" ||
  7568. test ! -s conftest.err
  7569. } && test -s conftest.$ac_objext; then
  7570. ac_cv_type__Bool=yes
  7571. else
  7572. echo "$as_me: failed program was:" >&5
  7573. sed 's/^/| /' conftest.$ac_ext >&5
  7574. ac_cv_type__Bool=no
  7575. fi
  7576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7577. fi
  7578. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7579. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7580. if test $ac_cv_type__Bool = yes; then
  7581. cat >>confdefs.h <<_ACEOF
  7582. #define HAVE__BOOL 1
  7583. _ACEOF
  7584. fi
  7585. if test $ac_cv_header_stdbool_h = yes; then
  7586. cat >>confdefs.h <<\_ACEOF
  7587. #define HAVE_STDBOOL_H 1
  7588. _ACEOF
  7589. fi
  7590. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7591. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7592. if test "${ac_cv_c_const+set}" = set; then
  7593. echo $ECHO_N "(cached) $ECHO_C" >&6
  7594. else
  7595. cat >conftest.$ac_ext <<_ACEOF
  7596. /* confdefs.h. */
  7597. _ACEOF
  7598. cat confdefs.h >>conftest.$ac_ext
  7599. cat >>conftest.$ac_ext <<_ACEOF
  7600. /* end confdefs.h. */
  7601. int
  7602. main ()
  7603. {
  7604. /* FIXME: Include the comments suggested by Paul. */
  7605. #ifndef __cplusplus
  7606. /* Ultrix mips cc rejects this. */
  7607. typedef int charset[2];
  7608. const charset cs;
  7609. /* SunOS 4.1.1 cc rejects this. */
  7610. char const *const *pcpcc;
  7611. char **ppc;
  7612. /* NEC SVR4.0.2 mips cc rejects this. */
  7613. struct point {int x, y;};
  7614. static struct point const zero = {0,0};
  7615. /* AIX XL C 1.02.0.0 rejects this.
  7616. It does not let you subtract one const X* pointer from another in
  7617. an arm of an if-expression whose if-part is not a constant
  7618. expression */
  7619. const char *g = "string";
  7620. pcpcc = &g + (g ? g-g : 0);
  7621. /* HPUX 7.0 cc rejects these. */
  7622. ++pcpcc;
  7623. ppc = (char**) pcpcc;
  7624. pcpcc = (char const *const *) ppc;
  7625. { /* SCO 3.2v4 cc rejects this. */
  7626. char *t;
  7627. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7628. *t++ = 0;
  7629. if (s) return 0;
  7630. }
  7631. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7632. int x[] = {25, 17};
  7633. const int *foo = &x[0];
  7634. ++foo;
  7635. }
  7636. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7637. typedef const int *iptr;
  7638. iptr p = 0;
  7639. ++p;
  7640. }
  7641. { /* AIX XL C 1.02.0.0 rejects this saying
  7642. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7643. struct s { int j; const int *ap[3]; };
  7644. struct s *b; b->j = 5;
  7645. }
  7646. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7647. const int foo = 10;
  7648. if (!foo) return 0;
  7649. }
  7650. return !cs[0] && !zero.x;
  7651. #endif
  7652. ;
  7653. return 0;
  7654. }
  7655. _ACEOF
  7656. rm -f conftest.$ac_objext
  7657. if { (ac_try="$ac_compile"
  7658. case "(($ac_try" in
  7659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7660. *) ac_try_echo=$ac_try;;
  7661. esac
  7662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7663. (eval "$ac_compile") 2>conftest.er1
  7664. ac_status=$?
  7665. grep -v '^ *+' conftest.er1 >conftest.err
  7666. rm -f conftest.er1
  7667. cat conftest.err >&5
  7668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7669. (exit $ac_status); } && {
  7670. test -z "$ac_cxx_werror_flag" ||
  7671. test ! -s conftest.err
  7672. } && test -s conftest.$ac_objext; then
  7673. ac_cv_c_const=yes
  7674. else
  7675. echo "$as_me: failed program was:" >&5
  7676. sed 's/^/| /' conftest.$ac_ext >&5
  7677. ac_cv_c_const=no
  7678. fi
  7679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7680. fi
  7681. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7682. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7683. if test $ac_cv_c_const = no; then
  7684. cat >>confdefs.h <<\_ACEOF
  7685. #define const
  7686. _ACEOF
  7687. fi
  7688. { echo "$as_me:$LINENO: checking for inline" >&5
  7689. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7690. if test "${ac_cv_c_inline+set}" = set; then
  7691. echo $ECHO_N "(cached) $ECHO_C" >&6
  7692. else
  7693. ac_cv_c_inline=no
  7694. for ac_kw in inline __inline__ __inline; do
  7695. cat >conftest.$ac_ext <<_ACEOF
  7696. /* confdefs.h. */
  7697. _ACEOF
  7698. cat confdefs.h >>conftest.$ac_ext
  7699. cat >>conftest.$ac_ext <<_ACEOF
  7700. /* end confdefs.h. */
  7701. #ifndef __cplusplus
  7702. typedef int foo_t;
  7703. static $ac_kw foo_t static_foo () {return 0; }
  7704. $ac_kw foo_t foo () {return 0; }
  7705. #endif
  7706. _ACEOF
  7707. rm -f conftest.$ac_objext
  7708. if { (ac_try="$ac_compile"
  7709. case "(($ac_try" in
  7710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7711. *) ac_try_echo=$ac_try;;
  7712. esac
  7713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7714. (eval "$ac_compile") 2>conftest.er1
  7715. ac_status=$?
  7716. grep -v '^ *+' conftest.er1 >conftest.err
  7717. rm -f conftest.er1
  7718. cat conftest.err >&5
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); } && {
  7721. test -z "$ac_cxx_werror_flag" ||
  7722. test ! -s conftest.err
  7723. } && test -s conftest.$ac_objext; then
  7724. ac_cv_c_inline=$ac_kw
  7725. else
  7726. echo "$as_me: failed program was:" >&5
  7727. sed 's/^/| /' conftest.$ac_ext >&5
  7728. fi
  7729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7730. test "$ac_cv_c_inline" != no && break
  7731. done
  7732. fi
  7733. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7734. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7735. case $ac_cv_c_inline in
  7736. inline | yes) ;;
  7737. *)
  7738. case $ac_cv_c_inline in
  7739. no) ac_val=;;
  7740. *) ac_val=$ac_cv_c_inline;;
  7741. esac
  7742. cat >>confdefs.h <<_ACEOF
  7743. #ifndef __cplusplus
  7744. #define inline $ac_val
  7745. #endif
  7746. _ACEOF
  7747. ;;
  7748. esac
  7749. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7750. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7751. if test "${ac_cv_c_int16_t+set}" = set; then
  7752. echo $ECHO_N "(cached) $ECHO_C" >&6
  7753. else
  7754. ac_cv_c_int16_t=no
  7755. for ac_type in 'int16_t' 'int' 'long int' \
  7756. 'long long int' 'short int' 'signed char'; do
  7757. cat >conftest.$ac_ext <<_ACEOF
  7758. /* confdefs.h. */
  7759. _ACEOF
  7760. cat confdefs.h >>conftest.$ac_ext
  7761. cat >>conftest.$ac_ext <<_ACEOF
  7762. /* end confdefs.h. */
  7763. $ac_includes_default
  7764. int
  7765. main ()
  7766. {
  7767. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7768. test_array [0] = 0
  7769. ;
  7770. return 0;
  7771. }
  7772. _ACEOF
  7773. rm -f conftest.$ac_objext
  7774. if { (ac_try="$ac_compile"
  7775. case "(($ac_try" in
  7776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7777. *) ac_try_echo=$ac_try;;
  7778. esac
  7779. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7780. (eval "$ac_compile") 2>conftest.er1
  7781. ac_status=$?
  7782. grep -v '^ *+' conftest.er1 >conftest.err
  7783. rm -f conftest.er1
  7784. cat conftest.err >&5
  7785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7786. (exit $ac_status); } && {
  7787. test -z "$ac_cxx_werror_flag" ||
  7788. test ! -s conftest.err
  7789. } && test -s conftest.$ac_objext; then
  7790. cat >conftest.$ac_ext <<_ACEOF
  7791. /* confdefs.h. */
  7792. _ACEOF
  7793. cat confdefs.h >>conftest.$ac_ext
  7794. cat >>conftest.$ac_ext <<_ACEOF
  7795. /* end confdefs.h. */
  7796. $ac_includes_default
  7797. int
  7798. main ()
  7799. {
  7800. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7801. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7802. test_array [0] = 0
  7803. ;
  7804. return 0;
  7805. }
  7806. _ACEOF
  7807. rm -f conftest.$ac_objext
  7808. if { (ac_try="$ac_compile"
  7809. case "(($ac_try" in
  7810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7811. *) ac_try_echo=$ac_try;;
  7812. esac
  7813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7814. (eval "$ac_compile") 2>conftest.er1
  7815. ac_status=$?
  7816. grep -v '^ *+' conftest.er1 >conftest.err
  7817. rm -f conftest.er1
  7818. cat conftest.err >&5
  7819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7820. (exit $ac_status); } && {
  7821. test -z "$ac_cxx_werror_flag" ||
  7822. test ! -s conftest.err
  7823. } && test -s conftest.$ac_objext; then
  7824. :
  7825. else
  7826. echo "$as_me: failed program was:" >&5
  7827. sed 's/^/| /' conftest.$ac_ext >&5
  7828. case $ac_type in
  7829. int16_t) ac_cv_c_int16_t=yes ;;
  7830. *) ac_cv_c_int16_t=$ac_type ;;
  7831. esac
  7832. fi
  7833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7834. else
  7835. echo "$as_me: failed program was:" >&5
  7836. sed 's/^/| /' conftest.$ac_ext >&5
  7837. fi
  7838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7839. test "$ac_cv_c_int16_t" != no && break
  7840. done
  7841. fi
  7842. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7843. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7844. case $ac_cv_c_int16_t in #(
  7845. no|yes) ;; #(
  7846. *)
  7847. cat >>confdefs.h <<_ACEOF
  7848. #define int16_t $ac_cv_c_int16_t
  7849. _ACEOF
  7850. ;;
  7851. esac
  7852. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7853. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7854. if test "${ac_cv_c_int32_t+set}" = set; then
  7855. echo $ECHO_N "(cached) $ECHO_C" >&6
  7856. else
  7857. ac_cv_c_int32_t=no
  7858. for ac_type in 'int32_t' 'int' 'long int' \
  7859. 'long long int' 'short int' 'signed char'; do
  7860. cat >conftest.$ac_ext <<_ACEOF
  7861. /* confdefs.h. */
  7862. _ACEOF
  7863. cat confdefs.h >>conftest.$ac_ext
  7864. cat >>conftest.$ac_ext <<_ACEOF
  7865. /* end confdefs.h. */
  7866. $ac_includes_default
  7867. int
  7868. main ()
  7869. {
  7870. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7871. test_array [0] = 0
  7872. ;
  7873. return 0;
  7874. }
  7875. _ACEOF
  7876. rm -f conftest.$ac_objext
  7877. if { (ac_try="$ac_compile"
  7878. case "(($ac_try" in
  7879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7880. *) ac_try_echo=$ac_try;;
  7881. esac
  7882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7883. (eval "$ac_compile") 2>conftest.er1
  7884. ac_status=$?
  7885. grep -v '^ *+' conftest.er1 >conftest.err
  7886. rm -f conftest.er1
  7887. cat conftest.err >&5
  7888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7889. (exit $ac_status); } && {
  7890. test -z "$ac_cxx_werror_flag" ||
  7891. test ! -s conftest.err
  7892. } && test -s conftest.$ac_objext; then
  7893. cat >conftest.$ac_ext <<_ACEOF
  7894. /* confdefs.h. */
  7895. _ACEOF
  7896. cat confdefs.h >>conftest.$ac_ext
  7897. cat >>conftest.$ac_ext <<_ACEOF
  7898. /* end confdefs.h. */
  7899. $ac_includes_default
  7900. int
  7901. main ()
  7902. {
  7903. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7904. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7905. test_array [0] = 0
  7906. ;
  7907. return 0;
  7908. }
  7909. _ACEOF
  7910. rm -f conftest.$ac_objext
  7911. if { (ac_try="$ac_compile"
  7912. case "(($ac_try" in
  7913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7914. *) ac_try_echo=$ac_try;;
  7915. esac
  7916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7917. (eval "$ac_compile") 2>conftest.er1
  7918. ac_status=$?
  7919. grep -v '^ *+' conftest.er1 >conftest.err
  7920. rm -f conftest.er1
  7921. cat conftest.err >&5
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. (exit $ac_status); } && {
  7924. test -z "$ac_cxx_werror_flag" ||
  7925. test ! -s conftest.err
  7926. } && test -s conftest.$ac_objext; then
  7927. :
  7928. else
  7929. echo "$as_me: failed program was:" >&5
  7930. sed 's/^/| /' conftest.$ac_ext >&5
  7931. case $ac_type in
  7932. int32_t) ac_cv_c_int32_t=yes ;;
  7933. *) ac_cv_c_int32_t=$ac_type ;;
  7934. esac
  7935. fi
  7936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7937. else
  7938. echo "$as_me: failed program was:" >&5
  7939. sed 's/^/| /' conftest.$ac_ext >&5
  7940. fi
  7941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7942. test "$ac_cv_c_int32_t" != no && break
  7943. done
  7944. fi
  7945. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7946. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7947. case $ac_cv_c_int32_t in #(
  7948. no|yes) ;; #(
  7949. *)
  7950. cat >>confdefs.h <<_ACEOF
  7951. #define int32_t $ac_cv_c_int32_t
  7952. _ACEOF
  7953. ;;
  7954. esac
  7955. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7956. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7957. if test "${ac_cv_c_int64_t+set}" = set; then
  7958. echo $ECHO_N "(cached) $ECHO_C" >&6
  7959. else
  7960. ac_cv_c_int64_t=no
  7961. for ac_type in 'int64_t' 'int' 'long int' \
  7962. 'long long int' 'short int' 'signed char'; do
  7963. cat >conftest.$ac_ext <<_ACEOF
  7964. /* confdefs.h. */
  7965. _ACEOF
  7966. cat confdefs.h >>conftest.$ac_ext
  7967. cat >>conftest.$ac_ext <<_ACEOF
  7968. /* end confdefs.h. */
  7969. $ac_includes_default
  7970. int
  7971. main ()
  7972. {
  7973. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7974. test_array [0] = 0
  7975. ;
  7976. return 0;
  7977. }
  7978. _ACEOF
  7979. rm -f conftest.$ac_objext
  7980. if { (ac_try="$ac_compile"
  7981. case "(($ac_try" in
  7982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7983. *) ac_try_echo=$ac_try;;
  7984. esac
  7985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7986. (eval "$ac_compile") 2>conftest.er1
  7987. ac_status=$?
  7988. grep -v '^ *+' conftest.er1 >conftest.err
  7989. rm -f conftest.er1
  7990. cat conftest.err >&5
  7991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7992. (exit $ac_status); } && {
  7993. test -z "$ac_cxx_werror_flag" ||
  7994. test ! -s conftest.err
  7995. } && test -s conftest.$ac_objext; then
  7996. cat >conftest.$ac_ext <<_ACEOF
  7997. /* confdefs.h. */
  7998. _ACEOF
  7999. cat confdefs.h >>conftest.$ac_ext
  8000. cat >>conftest.$ac_ext <<_ACEOF
  8001. /* end confdefs.h. */
  8002. $ac_includes_default
  8003. int
  8004. main ()
  8005. {
  8006. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8007. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8008. test_array [0] = 0
  8009. ;
  8010. return 0;
  8011. }
  8012. _ACEOF
  8013. rm -f conftest.$ac_objext
  8014. if { (ac_try="$ac_compile"
  8015. case "(($ac_try" in
  8016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8017. *) ac_try_echo=$ac_try;;
  8018. esac
  8019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8020. (eval "$ac_compile") 2>conftest.er1
  8021. ac_status=$?
  8022. grep -v '^ *+' conftest.er1 >conftest.err
  8023. rm -f conftest.er1
  8024. cat conftest.err >&5
  8025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8026. (exit $ac_status); } && {
  8027. test -z "$ac_cxx_werror_flag" ||
  8028. test ! -s conftest.err
  8029. } && test -s conftest.$ac_objext; then
  8030. :
  8031. else
  8032. echo "$as_me: failed program was:" >&5
  8033. sed 's/^/| /' conftest.$ac_ext >&5
  8034. case $ac_type in
  8035. int64_t) ac_cv_c_int64_t=yes ;;
  8036. *) ac_cv_c_int64_t=$ac_type ;;
  8037. esac
  8038. fi
  8039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8040. else
  8041. echo "$as_me: failed program was:" >&5
  8042. sed 's/^/| /' conftest.$ac_ext >&5
  8043. fi
  8044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8045. test "$ac_cv_c_int64_t" != no && break
  8046. done
  8047. fi
  8048. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8049. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  8050. case $ac_cv_c_int64_t in #(
  8051. no|yes) ;; #(
  8052. *)
  8053. cat >>confdefs.h <<_ACEOF
  8054. #define int64_t $ac_cv_c_int64_t
  8055. _ACEOF
  8056. ;;
  8057. esac
  8058. { echo "$as_me:$LINENO: checking for int8_t" >&5
  8059. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  8060. if test "${ac_cv_c_int8_t+set}" = set; then
  8061. echo $ECHO_N "(cached) $ECHO_C" >&6
  8062. else
  8063. ac_cv_c_int8_t=no
  8064. for ac_type in 'int8_t' 'int' 'long int' \
  8065. 'long long int' 'short int' 'signed char'; do
  8066. cat >conftest.$ac_ext <<_ACEOF
  8067. /* confdefs.h. */
  8068. _ACEOF
  8069. cat confdefs.h >>conftest.$ac_ext
  8070. cat >>conftest.$ac_ext <<_ACEOF
  8071. /* end confdefs.h. */
  8072. $ac_includes_default
  8073. int
  8074. main ()
  8075. {
  8076. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8077. test_array [0] = 0
  8078. ;
  8079. return 0;
  8080. }
  8081. _ACEOF
  8082. rm -f conftest.$ac_objext
  8083. if { (ac_try="$ac_compile"
  8084. case "(($ac_try" in
  8085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8086. *) ac_try_echo=$ac_try;;
  8087. esac
  8088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8089. (eval "$ac_compile") 2>conftest.er1
  8090. ac_status=$?
  8091. grep -v '^ *+' conftest.er1 >conftest.err
  8092. rm -f conftest.er1
  8093. cat conftest.err >&5
  8094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8095. (exit $ac_status); } && {
  8096. test -z "$ac_cxx_werror_flag" ||
  8097. test ! -s conftest.err
  8098. } && test -s conftest.$ac_objext; then
  8099. cat >conftest.$ac_ext <<_ACEOF
  8100. /* confdefs.h. */
  8101. _ACEOF
  8102. cat confdefs.h >>conftest.$ac_ext
  8103. cat >>conftest.$ac_ext <<_ACEOF
  8104. /* end confdefs.h. */
  8105. $ac_includes_default
  8106. int
  8107. main ()
  8108. {
  8109. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8110. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8111. test_array [0] = 0
  8112. ;
  8113. return 0;
  8114. }
  8115. _ACEOF
  8116. rm -f conftest.$ac_objext
  8117. if { (ac_try="$ac_compile"
  8118. case "(($ac_try" in
  8119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8120. *) ac_try_echo=$ac_try;;
  8121. esac
  8122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8123. (eval "$ac_compile") 2>conftest.er1
  8124. ac_status=$?
  8125. grep -v '^ *+' conftest.er1 >conftest.err
  8126. rm -f conftest.er1
  8127. cat conftest.err >&5
  8128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8129. (exit $ac_status); } && {
  8130. test -z "$ac_cxx_werror_flag" ||
  8131. test ! -s conftest.err
  8132. } && test -s conftest.$ac_objext; then
  8133. :
  8134. else
  8135. echo "$as_me: failed program was:" >&5
  8136. sed 's/^/| /' conftest.$ac_ext >&5
  8137. case $ac_type in
  8138. int8_t) ac_cv_c_int8_t=yes ;;
  8139. *) ac_cv_c_int8_t=$ac_type ;;
  8140. esac
  8141. fi
  8142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8143. else
  8144. echo "$as_me: failed program was:" >&5
  8145. sed 's/^/| /' conftest.$ac_ext >&5
  8146. fi
  8147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8148. test "$ac_cv_c_int8_t" != no && break
  8149. done
  8150. fi
  8151. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8152. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  8153. case $ac_cv_c_int8_t in #(
  8154. no|yes) ;; #(
  8155. *)
  8156. cat >>confdefs.h <<_ACEOF
  8157. #define int8_t $ac_cv_c_int8_t
  8158. _ACEOF
  8159. ;;
  8160. esac
  8161. { echo "$as_me:$LINENO: checking for mode_t" >&5
  8162. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  8163. if test "${ac_cv_type_mode_t+set}" = set; then
  8164. echo $ECHO_N "(cached) $ECHO_C" >&6
  8165. else
  8166. cat >conftest.$ac_ext <<_ACEOF
  8167. /* confdefs.h. */
  8168. _ACEOF
  8169. cat confdefs.h >>conftest.$ac_ext
  8170. cat >>conftest.$ac_ext <<_ACEOF
  8171. /* end confdefs.h. */
  8172. $ac_includes_default
  8173. typedef mode_t ac__type_new_;
  8174. int
  8175. main ()
  8176. {
  8177. if ((ac__type_new_ *) 0)
  8178. return 0;
  8179. if (sizeof (ac__type_new_))
  8180. return 0;
  8181. ;
  8182. return 0;
  8183. }
  8184. _ACEOF
  8185. rm -f conftest.$ac_objext
  8186. if { (ac_try="$ac_compile"
  8187. case "(($ac_try" in
  8188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8189. *) ac_try_echo=$ac_try;;
  8190. esac
  8191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8192. (eval "$ac_compile") 2>conftest.er1
  8193. ac_status=$?
  8194. grep -v '^ *+' conftest.er1 >conftest.err
  8195. rm -f conftest.er1
  8196. cat conftest.err >&5
  8197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8198. (exit $ac_status); } && {
  8199. test -z "$ac_cxx_werror_flag" ||
  8200. test ! -s conftest.err
  8201. } && test -s conftest.$ac_objext; then
  8202. ac_cv_type_mode_t=yes
  8203. else
  8204. echo "$as_me: failed program was:" >&5
  8205. sed 's/^/| /' conftest.$ac_ext >&5
  8206. ac_cv_type_mode_t=no
  8207. fi
  8208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8209. fi
  8210. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8211. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  8212. if test $ac_cv_type_mode_t = yes; then
  8213. :
  8214. else
  8215. cat >>confdefs.h <<_ACEOF
  8216. #define mode_t int
  8217. _ACEOF
  8218. fi
  8219. { echo "$as_me:$LINENO: checking for off_t" >&5
  8220. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  8221. if test "${ac_cv_type_off_t+set}" = set; then
  8222. echo $ECHO_N "(cached) $ECHO_C" >&6
  8223. else
  8224. cat >conftest.$ac_ext <<_ACEOF
  8225. /* confdefs.h. */
  8226. _ACEOF
  8227. cat confdefs.h >>conftest.$ac_ext
  8228. cat >>conftest.$ac_ext <<_ACEOF
  8229. /* end confdefs.h. */
  8230. $ac_includes_default
  8231. typedef off_t ac__type_new_;
  8232. int
  8233. main ()
  8234. {
  8235. if ((ac__type_new_ *) 0)
  8236. return 0;
  8237. if (sizeof (ac__type_new_))
  8238. return 0;
  8239. ;
  8240. return 0;
  8241. }
  8242. _ACEOF
  8243. rm -f conftest.$ac_objext
  8244. if { (ac_try="$ac_compile"
  8245. case "(($ac_try" in
  8246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8247. *) ac_try_echo=$ac_try;;
  8248. esac
  8249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8250. (eval "$ac_compile") 2>conftest.er1
  8251. ac_status=$?
  8252. grep -v '^ *+' conftest.er1 >conftest.err
  8253. rm -f conftest.er1
  8254. cat conftest.err >&5
  8255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8256. (exit $ac_status); } && {
  8257. test -z "$ac_cxx_werror_flag" ||
  8258. test ! -s conftest.err
  8259. } && test -s conftest.$ac_objext; then
  8260. ac_cv_type_off_t=yes
  8261. else
  8262. echo "$as_me: failed program was:" >&5
  8263. sed 's/^/| /' conftest.$ac_ext >&5
  8264. ac_cv_type_off_t=no
  8265. fi
  8266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8267. fi
  8268. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8269. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  8270. if test $ac_cv_type_off_t = yes; then
  8271. :
  8272. else
  8273. cat >>confdefs.h <<_ACEOF
  8274. #define off_t long int
  8275. _ACEOF
  8276. fi
  8277. { echo "$as_me:$LINENO: checking for size_t" >&5
  8278. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  8279. if test "${ac_cv_type_size_t+set}" = set; then
  8280. echo $ECHO_N "(cached) $ECHO_C" >&6
  8281. else
  8282. cat >conftest.$ac_ext <<_ACEOF
  8283. /* confdefs.h. */
  8284. _ACEOF
  8285. cat confdefs.h >>conftest.$ac_ext
  8286. cat >>conftest.$ac_ext <<_ACEOF
  8287. /* end confdefs.h. */
  8288. $ac_includes_default
  8289. typedef size_t ac__type_new_;
  8290. int
  8291. main ()
  8292. {
  8293. if ((ac__type_new_ *) 0)
  8294. return 0;
  8295. if (sizeof (ac__type_new_))
  8296. return 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. ac_cv_type_size_t=yes
  8319. else
  8320. echo "$as_me: failed program was:" >&5
  8321. sed 's/^/| /' conftest.$ac_ext >&5
  8322. ac_cv_type_size_t=no
  8323. fi
  8324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8325. fi
  8326. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8327. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8328. if test $ac_cv_type_size_t = yes; then
  8329. :
  8330. else
  8331. cat >>confdefs.h <<_ACEOF
  8332. #define size_t unsigned int
  8333. _ACEOF
  8334. fi
  8335. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8336. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8337. if test "${ac_cv_type_ssize_t+set}" = set; then
  8338. echo $ECHO_N "(cached) $ECHO_C" >&6
  8339. else
  8340. cat >conftest.$ac_ext <<_ACEOF
  8341. /* confdefs.h. */
  8342. _ACEOF
  8343. cat confdefs.h >>conftest.$ac_ext
  8344. cat >>conftest.$ac_ext <<_ACEOF
  8345. /* end confdefs.h. */
  8346. $ac_includes_default
  8347. typedef ssize_t ac__type_new_;
  8348. int
  8349. main ()
  8350. {
  8351. if ((ac__type_new_ *) 0)
  8352. return 0;
  8353. if (sizeof (ac__type_new_))
  8354. return 0;
  8355. ;
  8356. return 0;
  8357. }
  8358. _ACEOF
  8359. rm -f conftest.$ac_objext
  8360. if { (ac_try="$ac_compile"
  8361. case "(($ac_try" in
  8362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8363. *) ac_try_echo=$ac_try;;
  8364. esac
  8365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8366. (eval "$ac_compile") 2>conftest.er1
  8367. ac_status=$?
  8368. grep -v '^ *+' conftest.er1 >conftest.err
  8369. rm -f conftest.er1
  8370. cat conftest.err >&5
  8371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8372. (exit $ac_status); } && {
  8373. test -z "$ac_cxx_werror_flag" ||
  8374. test ! -s conftest.err
  8375. } && test -s conftest.$ac_objext; then
  8376. ac_cv_type_ssize_t=yes
  8377. else
  8378. echo "$as_me: failed program was:" >&5
  8379. sed 's/^/| /' conftest.$ac_ext >&5
  8380. ac_cv_type_ssize_t=no
  8381. fi
  8382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8383. fi
  8384. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8385. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8386. if test $ac_cv_type_ssize_t = yes; then
  8387. :
  8388. else
  8389. cat >>confdefs.h <<_ACEOF
  8390. #define ssize_t int
  8391. _ACEOF
  8392. fi
  8393. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8394. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8395. if test "${ac_cv_header_time+set}" = set; then
  8396. echo $ECHO_N "(cached) $ECHO_C" >&6
  8397. else
  8398. cat >conftest.$ac_ext <<_ACEOF
  8399. /* confdefs.h. */
  8400. _ACEOF
  8401. cat confdefs.h >>conftest.$ac_ext
  8402. cat >>conftest.$ac_ext <<_ACEOF
  8403. /* end confdefs.h. */
  8404. #include <sys/types.h>
  8405. #include <sys/time.h>
  8406. #include <time.h>
  8407. int
  8408. main ()
  8409. {
  8410. if ((struct tm *) 0)
  8411. return 0;
  8412. ;
  8413. return 0;
  8414. }
  8415. _ACEOF
  8416. rm -f conftest.$ac_objext
  8417. if { (ac_try="$ac_compile"
  8418. case "(($ac_try" in
  8419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8420. *) ac_try_echo=$ac_try;;
  8421. esac
  8422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8423. (eval "$ac_compile") 2>conftest.er1
  8424. ac_status=$?
  8425. grep -v '^ *+' conftest.er1 >conftest.err
  8426. rm -f conftest.er1
  8427. cat conftest.err >&5
  8428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8429. (exit $ac_status); } && {
  8430. test -z "$ac_cxx_werror_flag" ||
  8431. test ! -s conftest.err
  8432. } && test -s conftest.$ac_objext; then
  8433. ac_cv_header_time=yes
  8434. else
  8435. echo "$as_me: failed program was:" >&5
  8436. sed 's/^/| /' conftest.$ac_ext >&5
  8437. ac_cv_header_time=no
  8438. fi
  8439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8440. fi
  8441. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8442. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8443. if test $ac_cv_header_time = yes; then
  8444. cat >>confdefs.h <<\_ACEOF
  8445. #define TIME_WITH_SYS_TIME 1
  8446. _ACEOF
  8447. fi
  8448. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8449. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8450. if test "${ac_cv_struct_tm+set}" = set; then
  8451. echo $ECHO_N "(cached) $ECHO_C" >&6
  8452. else
  8453. cat >conftest.$ac_ext <<_ACEOF
  8454. /* confdefs.h. */
  8455. _ACEOF
  8456. cat confdefs.h >>conftest.$ac_ext
  8457. cat >>conftest.$ac_ext <<_ACEOF
  8458. /* end confdefs.h. */
  8459. #include <sys/types.h>
  8460. #include <time.h>
  8461. int
  8462. main ()
  8463. {
  8464. struct tm tm;
  8465. int *p = &tm.tm_sec;
  8466. return !p;
  8467. ;
  8468. return 0;
  8469. }
  8470. _ACEOF
  8471. rm -f conftest.$ac_objext
  8472. if { (ac_try="$ac_compile"
  8473. case "(($ac_try" in
  8474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8475. *) ac_try_echo=$ac_try;;
  8476. esac
  8477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8478. (eval "$ac_compile") 2>conftest.er1
  8479. ac_status=$?
  8480. grep -v '^ *+' conftest.er1 >conftest.err
  8481. rm -f conftest.er1
  8482. cat conftest.err >&5
  8483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8484. (exit $ac_status); } && {
  8485. test -z "$ac_cxx_werror_flag" ||
  8486. test ! -s conftest.err
  8487. } && test -s conftest.$ac_objext; then
  8488. ac_cv_struct_tm=time.h
  8489. else
  8490. echo "$as_me: failed program was:" >&5
  8491. sed 's/^/| /' conftest.$ac_ext >&5
  8492. ac_cv_struct_tm=sys/time.h
  8493. fi
  8494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8495. fi
  8496. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8497. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8498. if test $ac_cv_struct_tm = sys/time.h; then
  8499. cat >>confdefs.h <<\_ACEOF
  8500. #define TM_IN_SYS_TIME 1
  8501. _ACEOF
  8502. fi
  8503. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8504. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8505. if test "${ac_cv_c_uint16_t+set}" = set; then
  8506. echo $ECHO_N "(cached) $ECHO_C" >&6
  8507. else
  8508. ac_cv_c_uint16_t=no
  8509. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8510. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8511. cat >conftest.$ac_ext <<_ACEOF
  8512. /* confdefs.h. */
  8513. _ACEOF
  8514. cat confdefs.h >>conftest.$ac_ext
  8515. cat >>conftest.$ac_ext <<_ACEOF
  8516. /* end confdefs.h. */
  8517. $ac_includes_default
  8518. int
  8519. main ()
  8520. {
  8521. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8522. test_array [0] = 0
  8523. ;
  8524. return 0;
  8525. }
  8526. _ACEOF
  8527. rm -f conftest.$ac_objext
  8528. if { (ac_try="$ac_compile"
  8529. case "(($ac_try" in
  8530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8531. *) ac_try_echo=$ac_try;;
  8532. esac
  8533. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8534. (eval "$ac_compile") 2>conftest.er1
  8535. ac_status=$?
  8536. grep -v '^ *+' conftest.er1 >conftest.err
  8537. rm -f conftest.er1
  8538. cat conftest.err >&5
  8539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8540. (exit $ac_status); } && {
  8541. test -z "$ac_cxx_werror_flag" ||
  8542. test ! -s conftest.err
  8543. } && test -s conftest.$ac_objext; then
  8544. case $ac_type in
  8545. uint16_t) ac_cv_c_uint16_t=yes ;;
  8546. *) ac_cv_c_uint16_t=$ac_type ;;
  8547. esac
  8548. else
  8549. echo "$as_me: failed program was:" >&5
  8550. sed 's/^/| /' conftest.$ac_ext >&5
  8551. fi
  8552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8553. test "$ac_cv_c_uint16_t" != no && break
  8554. done
  8555. fi
  8556. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8557. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8558. case $ac_cv_c_uint16_t in #(
  8559. no|yes) ;; #(
  8560. *)
  8561. cat >>confdefs.h <<_ACEOF
  8562. #define uint16_t $ac_cv_c_uint16_t
  8563. _ACEOF
  8564. ;;
  8565. esac
  8566. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8567. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8568. if test "${ac_cv_c_uint32_t+set}" = set; then
  8569. echo $ECHO_N "(cached) $ECHO_C" >&6
  8570. else
  8571. ac_cv_c_uint32_t=no
  8572. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8573. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8574. cat >conftest.$ac_ext <<_ACEOF
  8575. /* confdefs.h. */
  8576. _ACEOF
  8577. cat confdefs.h >>conftest.$ac_ext
  8578. cat >>conftest.$ac_ext <<_ACEOF
  8579. /* end confdefs.h. */
  8580. $ac_includes_default
  8581. int
  8582. main ()
  8583. {
  8584. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8585. test_array [0] = 0
  8586. ;
  8587. return 0;
  8588. }
  8589. _ACEOF
  8590. rm -f conftest.$ac_objext
  8591. if { (ac_try="$ac_compile"
  8592. case "(($ac_try" in
  8593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8594. *) ac_try_echo=$ac_try;;
  8595. esac
  8596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8597. (eval "$ac_compile") 2>conftest.er1
  8598. ac_status=$?
  8599. grep -v '^ *+' conftest.er1 >conftest.err
  8600. rm -f conftest.er1
  8601. cat conftest.err >&5
  8602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8603. (exit $ac_status); } && {
  8604. test -z "$ac_cxx_werror_flag" ||
  8605. test ! -s conftest.err
  8606. } && test -s conftest.$ac_objext; then
  8607. case $ac_type in
  8608. uint32_t) ac_cv_c_uint32_t=yes ;;
  8609. *) ac_cv_c_uint32_t=$ac_type ;;
  8610. esac
  8611. else
  8612. echo "$as_me: failed program was:" >&5
  8613. sed 's/^/| /' conftest.$ac_ext >&5
  8614. fi
  8615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8616. test "$ac_cv_c_uint32_t" != no && break
  8617. done
  8618. fi
  8619. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8620. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8621. case $ac_cv_c_uint32_t in #(
  8622. no|yes) ;; #(
  8623. *)
  8624. cat >>confdefs.h <<\_ACEOF
  8625. #define _UINT32_T 1
  8626. _ACEOF
  8627. cat >>confdefs.h <<_ACEOF
  8628. #define uint32_t $ac_cv_c_uint32_t
  8629. _ACEOF
  8630. ;;
  8631. esac
  8632. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8633. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8634. if test "${ac_cv_c_uint64_t+set}" = set; then
  8635. echo $ECHO_N "(cached) $ECHO_C" >&6
  8636. else
  8637. ac_cv_c_uint64_t=no
  8638. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8639. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8640. cat >conftest.$ac_ext <<_ACEOF
  8641. /* confdefs.h. */
  8642. _ACEOF
  8643. cat confdefs.h >>conftest.$ac_ext
  8644. cat >>conftest.$ac_ext <<_ACEOF
  8645. /* end confdefs.h. */
  8646. $ac_includes_default
  8647. int
  8648. main ()
  8649. {
  8650. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8651. test_array [0] = 0
  8652. ;
  8653. return 0;
  8654. }
  8655. _ACEOF
  8656. rm -f conftest.$ac_objext
  8657. if { (ac_try="$ac_compile"
  8658. case "(($ac_try" in
  8659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8660. *) ac_try_echo=$ac_try;;
  8661. esac
  8662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8663. (eval "$ac_compile") 2>conftest.er1
  8664. ac_status=$?
  8665. grep -v '^ *+' conftest.er1 >conftest.err
  8666. rm -f conftest.er1
  8667. cat conftest.err >&5
  8668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8669. (exit $ac_status); } && {
  8670. test -z "$ac_cxx_werror_flag" ||
  8671. test ! -s conftest.err
  8672. } && test -s conftest.$ac_objext; then
  8673. case $ac_type in
  8674. uint64_t) ac_cv_c_uint64_t=yes ;;
  8675. *) ac_cv_c_uint64_t=$ac_type ;;
  8676. esac
  8677. else
  8678. echo "$as_me: failed program was:" >&5
  8679. sed 's/^/| /' conftest.$ac_ext >&5
  8680. fi
  8681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8682. test "$ac_cv_c_uint64_t" != no && break
  8683. done
  8684. fi
  8685. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8686. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8687. case $ac_cv_c_uint64_t in #(
  8688. no|yes) ;; #(
  8689. *)
  8690. cat >>confdefs.h <<\_ACEOF
  8691. #define _UINT64_T 1
  8692. _ACEOF
  8693. cat >>confdefs.h <<_ACEOF
  8694. #define uint64_t $ac_cv_c_uint64_t
  8695. _ACEOF
  8696. ;;
  8697. esac
  8698. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8699. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8700. if test "${ac_cv_c_uint8_t+set}" = set; then
  8701. echo $ECHO_N "(cached) $ECHO_C" >&6
  8702. else
  8703. ac_cv_c_uint8_t=no
  8704. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8705. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8706. cat >conftest.$ac_ext <<_ACEOF
  8707. /* confdefs.h. */
  8708. _ACEOF
  8709. cat confdefs.h >>conftest.$ac_ext
  8710. cat >>conftest.$ac_ext <<_ACEOF
  8711. /* end confdefs.h. */
  8712. $ac_includes_default
  8713. int
  8714. main ()
  8715. {
  8716. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8717. test_array [0] = 0
  8718. ;
  8719. return 0;
  8720. }
  8721. _ACEOF
  8722. rm -f conftest.$ac_objext
  8723. if { (ac_try="$ac_compile"
  8724. case "(($ac_try" in
  8725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8726. *) ac_try_echo=$ac_try;;
  8727. esac
  8728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8729. (eval "$ac_compile") 2>conftest.er1
  8730. ac_status=$?
  8731. grep -v '^ *+' conftest.er1 >conftest.err
  8732. rm -f conftest.er1
  8733. cat conftest.err >&5
  8734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8735. (exit $ac_status); } && {
  8736. test -z "$ac_cxx_werror_flag" ||
  8737. test ! -s conftest.err
  8738. } && test -s conftest.$ac_objext; then
  8739. case $ac_type in
  8740. uint8_t) ac_cv_c_uint8_t=yes ;;
  8741. *) ac_cv_c_uint8_t=$ac_type ;;
  8742. esac
  8743. else
  8744. echo "$as_me: failed program was:" >&5
  8745. sed 's/^/| /' conftest.$ac_ext >&5
  8746. fi
  8747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8748. test "$ac_cv_c_uint8_t" != no && break
  8749. done
  8750. fi
  8751. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8752. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8753. case $ac_cv_c_uint8_t in #(
  8754. no|yes) ;; #(
  8755. *)
  8756. cat >>confdefs.h <<\_ACEOF
  8757. #define _UINT8_T 1
  8758. _ACEOF
  8759. cat >>confdefs.h <<_ACEOF
  8760. #define uint8_t $ac_cv_c_uint8_t
  8761. _ACEOF
  8762. ;;
  8763. esac
  8764. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8765. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8766. if test "${ac_cv_c_volatile+set}" = set; then
  8767. echo $ECHO_N "(cached) $ECHO_C" >&6
  8768. else
  8769. cat >conftest.$ac_ext <<_ACEOF
  8770. /* confdefs.h. */
  8771. _ACEOF
  8772. cat confdefs.h >>conftest.$ac_ext
  8773. cat >>conftest.$ac_ext <<_ACEOF
  8774. /* end confdefs.h. */
  8775. int
  8776. main ()
  8777. {
  8778. volatile int x;
  8779. int * volatile y = (int *) 0;
  8780. return !x && !y;
  8781. ;
  8782. return 0;
  8783. }
  8784. _ACEOF
  8785. rm -f conftest.$ac_objext
  8786. if { (ac_try="$ac_compile"
  8787. case "(($ac_try" in
  8788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8789. *) ac_try_echo=$ac_try;;
  8790. esac
  8791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8792. (eval "$ac_compile") 2>conftest.er1
  8793. ac_status=$?
  8794. grep -v '^ *+' conftest.er1 >conftest.err
  8795. rm -f conftest.er1
  8796. cat conftest.err >&5
  8797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8798. (exit $ac_status); } && {
  8799. test -z "$ac_cxx_werror_flag" ||
  8800. test ! -s conftest.err
  8801. } && test -s conftest.$ac_objext; then
  8802. ac_cv_c_volatile=yes
  8803. else
  8804. echo "$as_me: failed program was:" >&5
  8805. sed 's/^/| /' conftest.$ac_ext >&5
  8806. ac_cv_c_volatile=no
  8807. fi
  8808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8809. fi
  8810. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8811. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8812. if test $ac_cv_c_volatile = no; then
  8813. cat >>confdefs.h <<\_ACEOF
  8814. #define volatile
  8815. _ACEOF
  8816. fi
  8817. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8818. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8819. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8820. echo $ECHO_N "(cached) $ECHO_C" >&6
  8821. else
  8822. cat >conftest.$ac_ext <<_ACEOF
  8823. /* confdefs.h. */
  8824. _ACEOF
  8825. cat confdefs.h >>conftest.$ac_ext
  8826. cat >>conftest.$ac_ext <<_ACEOF
  8827. /* end confdefs.h. */
  8828. $ac_includes_default
  8829. typedef ptrdiff_t ac__type_new_;
  8830. int
  8831. main ()
  8832. {
  8833. if ((ac__type_new_ *) 0)
  8834. return 0;
  8835. if (sizeof (ac__type_new_))
  8836. return 0;
  8837. ;
  8838. return 0;
  8839. }
  8840. _ACEOF
  8841. rm -f conftest.$ac_objext
  8842. if { (ac_try="$ac_compile"
  8843. case "(($ac_try" in
  8844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8845. *) ac_try_echo=$ac_try;;
  8846. esac
  8847. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8848. (eval "$ac_compile") 2>conftest.er1
  8849. ac_status=$?
  8850. grep -v '^ *+' conftest.er1 >conftest.err
  8851. rm -f conftest.er1
  8852. cat conftest.err >&5
  8853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8854. (exit $ac_status); } && {
  8855. test -z "$ac_cxx_werror_flag" ||
  8856. test ! -s conftest.err
  8857. } && test -s conftest.$ac_objext; then
  8858. ac_cv_type_ptrdiff_t=yes
  8859. else
  8860. echo "$as_me: failed program was:" >&5
  8861. sed 's/^/| /' conftest.$ac_ext >&5
  8862. ac_cv_type_ptrdiff_t=no
  8863. fi
  8864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8865. fi
  8866. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8867. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8868. if test $ac_cv_type_ptrdiff_t = yes; then
  8869. cat >>confdefs.h <<_ACEOF
  8870. #define HAVE_PTRDIFF_T 1
  8871. _ACEOF
  8872. fi
  8873. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8874. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8875. if test "${ac_cv_c_bigendian+set}" = set; then
  8876. echo $ECHO_N "(cached) $ECHO_C" >&6
  8877. else
  8878. # See if sys/param.h defines the BYTE_ORDER macro.
  8879. cat >conftest.$ac_ext <<_ACEOF
  8880. /* confdefs.h. */
  8881. _ACEOF
  8882. cat confdefs.h >>conftest.$ac_ext
  8883. cat >>conftest.$ac_ext <<_ACEOF
  8884. /* end confdefs.h. */
  8885. #include <sys/types.h>
  8886. #include <sys/param.h>
  8887. int
  8888. main ()
  8889. {
  8890. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8891. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8892. bogus endian macros
  8893. #endif
  8894. ;
  8895. return 0;
  8896. }
  8897. _ACEOF
  8898. rm -f conftest.$ac_objext
  8899. if { (ac_try="$ac_compile"
  8900. case "(($ac_try" in
  8901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8902. *) ac_try_echo=$ac_try;;
  8903. esac
  8904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8905. (eval "$ac_compile") 2>conftest.er1
  8906. ac_status=$?
  8907. grep -v '^ *+' conftest.er1 >conftest.err
  8908. rm -f conftest.er1
  8909. cat conftest.err >&5
  8910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8911. (exit $ac_status); } && {
  8912. test -z "$ac_cxx_werror_flag" ||
  8913. test ! -s conftest.err
  8914. } && test -s conftest.$ac_objext; then
  8915. # It does; now see whether it defined to BIG_ENDIAN or not.
  8916. cat >conftest.$ac_ext <<_ACEOF
  8917. /* confdefs.h. */
  8918. _ACEOF
  8919. cat confdefs.h >>conftest.$ac_ext
  8920. cat >>conftest.$ac_ext <<_ACEOF
  8921. /* end confdefs.h. */
  8922. #include <sys/types.h>
  8923. #include <sys/param.h>
  8924. int
  8925. main ()
  8926. {
  8927. #if BYTE_ORDER != BIG_ENDIAN
  8928. not big endian
  8929. #endif
  8930. ;
  8931. return 0;
  8932. }
  8933. _ACEOF
  8934. rm -f conftest.$ac_objext
  8935. if { (ac_try="$ac_compile"
  8936. case "(($ac_try" in
  8937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8938. *) ac_try_echo=$ac_try;;
  8939. esac
  8940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8941. (eval "$ac_compile") 2>conftest.er1
  8942. ac_status=$?
  8943. grep -v '^ *+' conftest.er1 >conftest.err
  8944. rm -f conftest.er1
  8945. cat conftest.err >&5
  8946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8947. (exit $ac_status); } && {
  8948. test -z "$ac_cxx_werror_flag" ||
  8949. test ! -s conftest.err
  8950. } && test -s conftest.$ac_objext; then
  8951. ac_cv_c_bigendian=yes
  8952. else
  8953. echo "$as_me: failed program was:" >&5
  8954. sed 's/^/| /' conftest.$ac_ext >&5
  8955. ac_cv_c_bigendian=no
  8956. fi
  8957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8958. else
  8959. echo "$as_me: failed program was:" >&5
  8960. sed 's/^/| /' conftest.$ac_ext >&5
  8961. # It does not; compile a test program.
  8962. if test "$cross_compiling" = yes; then
  8963. # try to guess the endianness by grepping values into an object file
  8964. ac_cv_c_bigendian=unknown
  8965. cat >conftest.$ac_ext <<_ACEOF
  8966. /* confdefs.h. */
  8967. _ACEOF
  8968. cat confdefs.h >>conftest.$ac_ext
  8969. cat >>conftest.$ac_ext <<_ACEOF
  8970. /* end confdefs.h. */
  8971. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8972. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8973. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  8974. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8975. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8976. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  8977. int
  8978. main ()
  8979. {
  8980. _ascii (); _ebcdic ();
  8981. ;
  8982. return 0;
  8983. }
  8984. _ACEOF
  8985. rm -f conftest.$ac_objext
  8986. if { (ac_try="$ac_compile"
  8987. case "(($ac_try" in
  8988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8989. *) ac_try_echo=$ac_try;;
  8990. esac
  8991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8992. (eval "$ac_compile") 2>conftest.er1
  8993. ac_status=$?
  8994. grep -v '^ *+' conftest.er1 >conftest.err
  8995. rm -f conftest.er1
  8996. cat conftest.err >&5
  8997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8998. (exit $ac_status); } && {
  8999. test -z "$ac_cxx_werror_flag" ||
  9000. test ! -s conftest.err
  9001. } && test -s conftest.$ac_objext; then
  9002. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  9003. ac_cv_c_bigendian=yes
  9004. fi
  9005. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9006. if test "$ac_cv_c_bigendian" = unknown; then
  9007. ac_cv_c_bigendian=no
  9008. else
  9009. # finding both strings is unlikely to happen, but who knows?
  9010. ac_cv_c_bigendian=unknown
  9011. fi
  9012. fi
  9013. else
  9014. echo "$as_me: failed program was:" >&5
  9015. sed 's/^/| /' conftest.$ac_ext >&5
  9016. fi
  9017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9018. else
  9019. cat >conftest.$ac_ext <<_ACEOF
  9020. /* confdefs.h. */
  9021. _ACEOF
  9022. cat confdefs.h >>conftest.$ac_ext
  9023. cat >>conftest.$ac_ext <<_ACEOF
  9024. /* end confdefs.h. */
  9025. $ac_includes_default
  9026. int
  9027. main ()
  9028. {
  9029. /* Are we little or big endian? From Harbison&Steele. */
  9030. union
  9031. {
  9032. long int l;
  9033. char c[sizeof (long int)];
  9034. } u;
  9035. u.l = 1;
  9036. return u.c[sizeof (long int) - 1] == 1;
  9037. ;
  9038. return 0;
  9039. }
  9040. _ACEOF
  9041. rm -f conftest$ac_exeext
  9042. if { (ac_try="$ac_link"
  9043. case "(($ac_try" in
  9044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9045. *) ac_try_echo=$ac_try;;
  9046. esac
  9047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9048. (eval "$ac_link") 2>&5
  9049. ac_status=$?
  9050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9051. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9052. { (case "(($ac_try" in
  9053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9054. *) ac_try_echo=$ac_try;;
  9055. esac
  9056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9057. (eval "$ac_try") 2>&5
  9058. ac_status=$?
  9059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9060. (exit $ac_status); }; }; then
  9061. ac_cv_c_bigendian=no
  9062. else
  9063. echo "$as_me: program exited with status $ac_status" >&5
  9064. echo "$as_me: failed program was:" >&5
  9065. sed 's/^/| /' conftest.$ac_ext >&5
  9066. ( exit $ac_status )
  9067. ac_cv_c_bigendian=yes
  9068. fi
  9069. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9070. fi
  9071. fi
  9072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9073. fi
  9074. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9075. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  9076. case $ac_cv_c_bigendian in
  9077. yes)
  9078. cat >>confdefs.h <<\_ACEOF
  9079. #define WORDS_BIGENDIAN 1
  9080. _ACEOF
  9081. ;;
  9082. no)
  9083. ;;
  9084. *)
  9085. { { echo "$as_me:$LINENO: error: unknown endianness
  9086. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9087. echo "$as_me: error: unknown endianness
  9088. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9089. { (exit 1); exit 1; }; } ;;
  9090. esac
  9091. # Check whether --enable-largefile was given.
  9092. if test "${enable_largefile+set}" = set; then
  9093. enableval=$enable_largefile;
  9094. fi
  9095. if test "$enable_largefile" != no; then
  9096. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9097. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  9098. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9099. echo $ECHO_N "(cached) $ECHO_C" >&6
  9100. else
  9101. ac_cv_sys_largefile_CC=no
  9102. if test "$GCC" != yes; then
  9103. ac_save_CC=$CC
  9104. while :; do
  9105. # IRIX 6.2 and later do not support large files by default,
  9106. # so use the C compiler's -n32 option if that helps.
  9107. cat >conftest.$ac_ext <<_ACEOF
  9108. /* confdefs.h. */
  9109. _ACEOF
  9110. cat confdefs.h >>conftest.$ac_ext
  9111. cat >>conftest.$ac_ext <<_ACEOF
  9112. /* end confdefs.h. */
  9113. #include <sys/types.h>
  9114. /* Check that off_t can represent 2**63 - 1 correctly.
  9115. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9116. since some C++ compilers masquerading as C compilers
  9117. incorrectly reject 9223372036854775807. */
  9118. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9119. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9120. && LARGE_OFF_T % 2147483647 == 1)
  9121. ? 1 : -1];
  9122. int
  9123. main ()
  9124. {
  9125. ;
  9126. return 0;
  9127. }
  9128. _ACEOF
  9129. rm -f conftest.$ac_objext
  9130. if { (ac_try="$ac_compile"
  9131. case "(($ac_try" in
  9132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9133. *) ac_try_echo=$ac_try;;
  9134. esac
  9135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9136. (eval "$ac_compile") 2>conftest.er1
  9137. ac_status=$?
  9138. grep -v '^ *+' conftest.er1 >conftest.err
  9139. rm -f conftest.er1
  9140. cat conftest.err >&5
  9141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9142. (exit $ac_status); } && {
  9143. test -z "$ac_cxx_werror_flag" ||
  9144. test ! -s conftest.err
  9145. } && test -s conftest.$ac_objext; then
  9146. break
  9147. else
  9148. echo "$as_me: failed program was:" >&5
  9149. sed 's/^/| /' conftest.$ac_ext >&5
  9150. fi
  9151. rm -f core conftest.err conftest.$ac_objext
  9152. CC="$CC -n32"
  9153. rm -f conftest.$ac_objext
  9154. if { (ac_try="$ac_compile"
  9155. case "(($ac_try" in
  9156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9157. *) ac_try_echo=$ac_try;;
  9158. esac
  9159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9160. (eval "$ac_compile") 2>conftest.er1
  9161. ac_status=$?
  9162. grep -v '^ *+' conftest.er1 >conftest.err
  9163. rm -f conftest.er1
  9164. cat conftest.err >&5
  9165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9166. (exit $ac_status); } && {
  9167. test -z "$ac_cxx_werror_flag" ||
  9168. test ! -s conftest.err
  9169. } && test -s conftest.$ac_objext; then
  9170. ac_cv_sys_largefile_CC=' -n32'; break
  9171. else
  9172. echo "$as_me: failed program was:" >&5
  9173. sed 's/^/| /' conftest.$ac_ext >&5
  9174. fi
  9175. rm -f core conftest.err conftest.$ac_objext
  9176. break
  9177. done
  9178. CC=$ac_save_CC
  9179. rm -f conftest.$ac_ext
  9180. fi
  9181. fi
  9182. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9183. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  9184. if test "$ac_cv_sys_largefile_CC" != no; then
  9185. CC=$CC$ac_cv_sys_largefile_CC
  9186. fi
  9187. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9188. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  9189. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9190. echo $ECHO_N "(cached) $ECHO_C" >&6
  9191. else
  9192. while :; do
  9193. cat >conftest.$ac_ext <<_ACEOF
  9194. /* confdefs.h. */
  9195. _ACEOF
  9196. cat confdefs.h >>conftest.$ac_ext
  9197. cat >>conftest.$ac_ext <<_ACEOF
  9198. /* end confdefs.h. */
  9199. #include <sys/types.h>
  9200. /* Check that off_t can represent 2**63 - 1 correctly.
  9201. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9202. since some C++ compilers masquerading as C compilers
  9203. incorrectly reject 9223372036854775807. */
  9204. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9205. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9206. && LARGE_OFF_T % 2147483647 == 1)
  9207. ? 1 : -1];
  9208. int
  9209. main ()
  9210. {
  9211. ;
  9212. return 0;
  9213. }
  9214. _ACEOF
  9215. rm -f conftest.$ac_objext
  9216. if { (ac_try="$ac_compile"
  9217. case "(($ac_try" in
  9218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9219. *) ac_try_echo=$ac_try;;
  9220. esac
  9221. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9222. (eval "$ac_compile") 2>conftest.er1
  9223. ac_status=$?
  9224. grep -v '^ *+' conftest.er1 >conftest.err
  9225. rm -f conftest.er1
  9226. cat conftest.err >&5
  9227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9228. (exit $ac_status); } && {
  9229. test -z "$ac_cxx_werror_flag" ||
  9230. test ! -s conftest.err
  9231. } && test -s conftest.$ac_objext; then
  9232. ac_cv_sys_file_offset_bits=no; break
  9233. else
  9234. echo "$as_me: failed program was:" >&5
  9235. sed 's/^/| /' conftest.$ac_ext >&5
  9236. fi
  9237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9238. cat >conftest.$ac_ext <<_ACEOF
  9239. /* confdefs.h. */
  9240. _ACEOF
  9241. cat confdefs.h >>conftest.$ac_ext
  9242. cat >>conftest.$ac_ext <<_ACEOF
  9243. /* end confdefs.h. */
  9244. #define _FILE_OFFSET_BITS 64
  9245. #include <sys/types.h>
  9246. /* Check that off_t can represent 2**63 - 1 correctly.
  9247. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9248. since some C++ compilers masquerading as C compilers
  9249. incorrectly reject 9223372036854775807. */
  9250. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9251. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9252. && LARGE_OFF_T % 2147483647 == 1)
  9253. ? 1 : -1];
  9254. int
  9255. main ()
  9256. {
  9257. ;
  9258. return 0;
  9259. }
  9260. _ACEOF
  9261. rm -f conftest.$ac_objext
  9262. if { (ac_try="$ac_compile"
  9263. case "(($ac_try" in
  9264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9265. *) ac_try_echo=$ac_try;;
  9266. esac
  9267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9268. (eval "$ac_compile") 2>conftest.er1
  9269. ac_status=$?
  9270. grep -v '^ *+' conftest.er1 >conftest.err
  9271. rm -f conftest.er1
  9272. cat conftest.err >&5
  9273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9274. (exit $ac_status); } && {
  9275. test -z "$ac_cxx_werror_flag" ||
  9276. test ! -s conftest.err
  9277. } && test -s conftest.$ac_objext; then
  9278. ac_cv_sys_file_offset_bits=64; break
  9279. else
  9280. echo "$as_me: failed program was:" >&5
  9281. sed 's/^/| /' conftest.$ac_ext >&5
  9282. fi
  9283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9284. ac_cv_sys_file_offset_bits=unknown
  9285. break
  9286. done
  9287. fi
  9288. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9289. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9290. case $ac_cv_sys_file_offset_bits in #(
  9291. no | unknown) ;;
  9292. *)
  9293. cat >>confdefs.h <<_ACEOF
  9294. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9295. _ACEOF
  9296. ;;
  9297. esac
  9298. rm -f conftest*
  9299. if test $ac_cv_sys_file_offset_bits = unknown; then
  9300. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9301. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9302. if test "${ac_cv_sys_large_files+set}" = set; then
  9303. echo $ECHO_N "(cached) $ECHO_C" >&6
  9304. else
  9305. while :; do
  9306. cat >conftest.$ac_ext <<_ACEOF
  9307. /* confdefs.h. */
  9308. _ACEOF
  9309. cat confdefs.h >>conftest.$ac_ext
  9310. cat >>conftest.$ac_ext <<_ACEOF
  9311. /* end confdefs.h. */
  9312. #include <sys/types.h>
  9313. /* Check that off_t can represent 2**63 - 1 correctly.
  9314. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9315. since some C++ compilers masquerading as C compilers
  9316. incorrectly reject 9223372036854775807. */
  9317. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9318. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9319. && LARGE_OFF_T % 2147483647 == 1)
  9320. ? 1 : -1];
  9321. int
  9322. main ()
  9323. {
  9324. ;
  9325. return 0;
  9326. }
  9327. _ACEOF
  9328. rm -f conftest.$ac_objext
  9329. if { (ac_try="$ac_compile"
  9330. case "(($ac_try" in
  9331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9332. *) ac_try_echo=$ac_try;;
  9333. esac
  9334. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9335. (eval "$ac_compile") 2>conftest.er1
  9336. ac_status=$?
  9337. grep -v '^ *+' conftest.er1 >conftest.err
  9338. rm -f conftest.er1
  9339. cat conftest.err >&5
  9340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9341. (exit $ac_status); } && {
  9342. test -z "$ac_cxx_werror_flag" ||
  9343. test ! -s conftest.err
  9344. } && test -s conftest.$ac_objext; then
  9345. ac_cv_sys_large_files=no; break
  9346. else
  9347. echo "$as_me: failed program was:" >&5
  9348. sed 's/^/| /' conftest.$ac_ext >&5
  9349. fi
  9350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9351. cat >conftest.$ac_ext <<_ACEOF
  9352. /* confdefs.h. */
  9353. _ACEOF
  9354. cat confdefs.h >>conftest.$ac_ext
  9355. cat >>conftest.$ac_ext <<_ACEOF
  9356. /* end confdefs.h. */
  9357. #define _LARGE_FILES 1
  9358. #include <sys/types.h>
  9359. /* Check that off_t can represent 2**63 - 1 correctly.
  9360. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9361. since some C++ compilers masquerading as C compilers
  9362. incorrectly reject 9223372036854775807. */
  9363. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9364. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9365. && LARGE_OFF_T % 2147483647 == 1)
  9366. ? 1 : -1];
  9367. int
  9368. main ()
  9369. {
  9370. ;
  9371. return 0;
  9372. }
  9373. _ACEOF
  9374. rm -f conftest.$ac_objext
  9375. if { (ac_try="$ac_compile"
  9376. case "(($ac_try" in
  9377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9378. *) ac_try_echo=$ac_try;;
  9379. esac
  9380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9381. (eval "$ac_compile") 2>conftest.er1
  9382. ac_status=$?
  9383. grep -v '^ *+' conftest.er1 >conftest.err
  9384. rm -f conftest.er1
  9385. cat conftest.err >&5
  9386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9387. (exit $ac_status); } && {
  9388. test -z "$ac_cxx_werror_flag" ||
  9389. test ! -s conftest.err
  9390. } && test -s conftest.$ac_objext; then
  9391. ac_cv_sys_large_files=1; break
  9392. else
  9393. echo "$as_me: failed program was:" >&5
  9394. sed 's/^/| /' conftest.$ac_ext >&5
  9395. fi
  9396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9397. ac_cv_sys_large_files=unknown
  9398. break
  9399. done
  9400. fi
  9401. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9402. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9403. case $ac_cv_sys_large_files in #(
  9404. no | unknown) ;;
  9405. *)
  9406. cat >>confdefs.h <<_ACEOF
  9407. #define _LARGE_FILES $ac_cv_sys_large_files
  9408. _ACEOF
  9409. ;;
  9410. esac
  9411. rm -f conftest*
  9412. fi
  9413. fi
  9414. # Checks for library functions.
  9415. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9416. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9417. # Check whether --enable-nls was given.
  9418. if test "${enable_nls+set}" = set; then
  9419. enableval=$enable_nls; USE_NLS=$enableval
  9420. else
  9421. USE_NLS=yes
  9422. fi
  9423. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9424. echo "${ECHO_T}$USE_NLS" >&6; }
  9425. GETTEXT_MACRO_VERSION=0.17
  9426. # Prepare PATH_SEPARATOR.
  9427. # The user is always right.
  9428. if test "${PATH_SEPARATOR+set}" != set; then
  9429. echo "#! /bin/sh" >conf$$.sh
  9430. echo "exit 0" >>conf$$.sh
  9431. chmod +x conf$$.sh
  9432. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9433. PATH_SEPARATOR=';'
  9434. else
  9435. PATH_SEPARATOR=:
  9436. fi
  9437. rm -f conf$$.sh
  9438. fi
  9439. # Find out how to test for executable files. Don't use a zero-byte file,
  9440. # as systems may use methods other than mode bits to determine executability.
  9441. cat >conf$$.file <<_ASEOF
  9442. #! /bin/sh
  9443. exit 0
  9444. _ASEOF
  9445. chmod +x conf$$.file
  9446. if test -x conf$$.file >/dev/null 2>&1; then
  9447. ac_executable_p="test -x"
  9448. else
  9449. ac_executable_p="test -f"
  9450. fi
  9451. rm -f conf$$.file
  9452. # Extract the first word of "msgfmt", so it can be a program name with args.
  9453. set dummy msgfmt; ac_word=$2
  9454. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9455. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9456. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9457. echo $ECHO_N "(cached) $ECHO_C" >&6
  9458. else
  9459. case "$MSGFMT" in
  9460. [\\/]* | ?:[\\/]*)
  9461. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9462. ;;
  9463. *)
  9464. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9465. for ac_dir in $PATH; do
  9466. IFS="$ac_save_IFS"
  9467. test -z "$ac_dir" && ac_dir=.
  9468. for ac_exec_ext in '' $ac_executable_extensions; do
  9469. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9470. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9471. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9472. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9473. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9474. break 2
  9475. fi
  9476. fi
  9477. done
  9478. done
  9479. IFS="$ac_save_IFS"
  9480. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9481. ;;
  9482. esac
  9483. fi
  9484. MSGFMT="$ac_cv_path_MSGFMT"
  9485. if test "$MSGFMT" != ":"; then
  9486. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9487. echo "${ECHO_T}$MSGFMT" >&6; }
  9488. else
  9489. { echo "$as_me:$LINENO: result: no" >&5
  9490. echo "${ECHO_T}no" >&6; }
  9491. fi
  9492. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9493. set dummy gmsgfmt; ac_word=$2
  9494. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9495. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9496. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9497. echo $ECHO_N "(cached) $ECHO_C" >&6
  9498. else
  9499. case $GMSGFMT in
  9500. [\\/]* | ?:[\\/]*)
  9501. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9502. ;;
  9503. *)
  9504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9505. for as_dir in $PATH
  9506. do
  9507. IFS=$as_save_IFS
  9508. test -z "$as_dir" && as_dir=.
  9509. for ac_exec_ext in '' $ac_executable_extensions; do
  9510. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9511. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9512. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9513. break 2
  9514. fi
  9515. done
  9516. done
  9517. IFS=$as_save_IFS
  9518. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9519. ;;
  9520. esac
  9521. fi
  9522. GMSGFMT=$ac_cv_path_GMSGFMT
  9523. if test -n "$GMSGFMT"; then
  9524. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9525. echo "${ECHO_T}$GMSGFMT" >&6; }
  9526. else
  9527. { echo "$as_me:$LINENO: result: no" >&5
  9528. echo "${ECHO_T}no" >&6; }
  9529. fi
  9530. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9531. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9532. *) MSGFMT_015=$MSGFMT ;;
  9533. esac
  9534. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9535. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9536. *) GMSGFMT_015=$GMSGFMT ;;
  9537. esac
  9538. # Prepare PATH_SEPARATOR.
  9539. # The user is always right.
  9540. if test "${PATH_SEPARATOR+set}" != set; then
  9541. echo "#! /bin/sh" >conf$$.sh
  9542. echo "exit 0" >>conf$$.sh
  9543. chmod +x conf$$.sh
  9544. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9545. PATH_SEPARATOR=';'
  9546. else
  9547. PATH_SEPARATOR=:
  9548. fi
  9549. rm -f conf$$.sh
  9550. fi
  9551. # Find out how to test for executable files. Don't use a zero-byte file,
  9552. # as systems may use methods other than mode bits to determine executability.
  9553. cat >conf$$.file <<_ASEOF
  9554. #! /bin/sh
  9555. exit 0
  9556. _ASEOF
  9557. chmod +x conf$$.file
  9558. if test -x conf$$.file >/dev/null 2>&1; then
  9559. ac_executable_p="test -x"
  9560. else
  9561. ac_executable_p="test -f"
  9562. fi
  9563. rm -f conf$$.file
  9564. # Extract the first word of "xgettext", so it can be a program name with args.
  9565. set dummy xgettext; ac_word=$2
  9566. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9567. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9568. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9569. echo $ECHO_N "(cached) $ECHO_C" >&6
  9570. else
  9571. case "$XGETTEXT" in
  9572. [\\/]* | ?:[\\/]*)
  9573. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9574. ;;
  9575. *)
  9576. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9577. for ac_dir in $PATH; do
  9578. IFS="$ac_save_IFS"
  9579. test -z "$ac_dir" && ac_dir=.
  9580. for ac_exec_ext in '' $ac_executable_extensions; do
  9581. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9582. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9583. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9584. (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
  9585. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9586. break 2
  9587. fi
  9588. fi
  9589. done
  9590. done
  9591. IFS="$ac_save_IFS"
  9592. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9593. ;;
  9594. esac
  9595. fi
  9596. XGETTEXT="$ac_cv_path_XGETTEXT"
  9597. if test "$XGETTEXT" != ":"; then
  9598. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9599. echo "${ECHO_T}$XGETTEXT" >&6; }
  9600. else
  9601. { echo "$as_me:$LINENO: result: no" >&5
  9602. echo "${ECHO_T}no" >&6; }
  9603. fi
  9604. rm -f messages.po
  9605. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9606. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9607. *) XGETTEXT_015=$XGETTEXT ;;
  9608. esac
  9609. # Prepare PATH_SEPARATOR.
  9610. # The user is always right.
  9611. if test "${PATH_SEPARATOR+set}" != set; then
  9612. echo "#! /bin/sh" >conf$$.sh
  9613. echo "exit 0" >>conf$$.sh
  9614. chmod +x conf$$.sh
  9615. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9616. PATH_SEPARATOR=';'
  9617. else
  9618. PATH_SEPARATOR=:
  9619. fi
  9620. rm -f conf$$.sh
  9621. fi
  9622. # Find out how to test for executable files. Don't use a zero-byte file,
  9623. # as systems may use methods other than mode bits to determine executability.
  9624. cat >conf$$.file <<_ASEOF
  9625. #! /bin/sh
  9626. exit 0
  9627. _ASEOF
  9628. chmod +x conf$$.file
  9629. if test -x conf$$.file >/dev/null 2>&1; then
  9630. ac_executable_p="test -x"
  9631. else
  9632. ac_executable_p="test -f"
  9633. fi
  9634. rm -f conf$$.file
  9635. # Extract the first word of "msgmerge", so it can be a program name with args.
  9636. set dummy msgmerge; ac_word=$2
  9637. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9638. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9639. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9640. echo $ECHO_N "(cached) $ECHO_C" >&6
  9641. else
  9642. case "$MSGMERGE" in
  9643. [\\/]* | ?:[\\/]*)
  9644. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9645. ;;
  9646. *)
  9647. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9648. for ac_dir in $PATH; do
  9649. IFS="$ac_save_IFS"
  9650. test -z "$ac_dir" && ac_dir=.
  9651. for ac_exec_ext in '' $ac_executable_extensions; do
  9652. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9653. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9654. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9655. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9656. break 2
  9657. fi
  9658. fi
  9659. done
  9660. done
  9661. IFS="$ac_save_IFS"
  9662. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9663. ;;
  9664. esac
  9665. fi
  9666. MSGMERGE="$ac_cv_path_MSGMERGE"
  9667. if test "$MSGMERGE" != ":"; then
  9668. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9669. echo "${ECHO_T}$MSGMERGE" >&6; }
  9670. else
  9671. { echo "$as_me:$LINENO: result: no" >&5
  9672. echo "${ECHO_T}no" >&6; }
  9673. fi
  9674. test -n "$localedir" || localedir='${datadir}/locale'
  9675. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9676. ac_config_commands="$ac_config_commands po-directories"
  9677. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9678. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9679. if test "${ac_cv_gnu_library_2+set}" = set; then
  9680. echo $ECHO_N "(cached) $ECHO_C" >&6
  9681. else
  9682. cat >conftest.$ac_ext <<_ACEOF
  9683. /* confdefs.h. */
  9684. _ACEOF
  9685. cat confdefs.h >>conftest.$ac_ext
  9686. cat >>conftest.$ac_ext <<_ACEOF
  9687. /* end confdefs.h. */
  9688. #include <features.h>
  9689. #ifdef __GNU_LIBRARY__
  9690. #if (__GLIBC__ >= 2)
  9691. Lucky GNU user
  9692. #endif
  9693. #endif
  9694. _ACEOF
  9695. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9696. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9697. ac_cv_gnu_library_2=yes
  9698. else
  9699. ac_cv_gnu_library_2=no
  9700. fi
  9701. rm -f conftest*
  9702. fi
  9703. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9704. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9705. GLIBC2="$ac_cv_gnu_library_2"
  9706. CFLAG_VISIBILITY=
  9707. HAVE_VISIBILITY=0
  9708. if test -n "$GCC"; then
  9709. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9710. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9711. if test "${gl_cv_cc_visibility+set}" = set; then
  9712. echo $ECHO_N "(cached) $ECHO_C" >&6
  9713. else
  9714. gl_save_CFLAGS="$CFLAGS"
  9715. CFLAGS="$CFLAGS -fvisibility=hidden"
  9716. cat >conftest.$ac_ext <<_ACEOF
  9717. /* confdefs.h. */
  9718. _ACEOF
  9719. cat confdefs.h >>conftest.$ac_ext
  9720. cat >>conftest.$ac_ext <<_ACEOF
  9721. /* end confdefs.h. */
  9722. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9723. extern __attribute__((__visibility__("default"))) int exportedvar;
  9724. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9725. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9726. int
  9727. main ()
  9728. {
  9729. ;
  9730. return 0;
  9731. }
  9732. _ACEOF
  9733. rm -f conftest.$ac_objext
  9734. if { (ac_try="$ac_compile"
  9735. case "(($ac_try" in
  9736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9737. *) ac_try_echo=$ac_try;;
  9738. esac
  9739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9740. (eval "$ac_compile") 2>conftest.er1
  9741. ac_status=$?
  9742. grep -v '^ *+' conftest.er1 >conftest.err
  9743. rm -f conftest.er1
  9744. cat conftest.err >&5
  9745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9746. (exit $ac_status); } && {
  9747. test -z "$ac_cxx_werror_flag" ||
  9748. test ! -s conftest.err
  9749. } && test -s conftest.$ac_objext; then
  9750. gl_cv_cc_visibility=yes
  9751. else
  9752. echo "$as_me: failed program was:" >&5
  9753. sed 's/^/| /' conftest.$ac_ext >&5
  9754. gl_cv_cc_visibility=no
  9755. fi
  9756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9757. CFLAGS="$gl_save_CFLAGS"
  9758. fi
  9759. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9760. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9761. if test $gl_cv_cc_visibility = yes; then
  9762. CFLAG_VISIBILITY="-fvisibility=hidden"
  9763. HAVE_VISIBILITY=1
  9764. fi
  9765. fi
  9766. cat >>confdefs.h <<_ACEOF
  9767. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9768. _ACEOF
  9769. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9770. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9771. if test "${gl_cv_header_stdint_h+set}" = set; then
  9772. echo $ECHO_N "(cached) $ECHO_C" >&6
  9773. else
  9774. cat >conftest.$ac_ext <<_ACEOF
  9775. /* confdefs.h. */
  9776. _ACEOF
  9777. cat confdefs.h >>conftest.$ac_ext
  9778. cat >>conftest.$ac_ext <<_ACEOF
  9779. /* end confdefs.h. */
  9780. #include <sys/types.h>
  9781. #include <stdint.h>
  9782. int
  9783. main ()
  9784. {
  9785. uintmax_t i = (uintmax_t) -1; return !i;
  9786. ;
  9787. return 0;
  9788. }
  9789. _ACEOF
  9790. rm -f conftest.$ac_objext
  9791. if { (ac_try="$ac_compile"
  9792. case "(($ac_try" in
  9793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9794. *) ac_try_echo=$ac_try;;
  9795. esac
  9796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9797. (eval "$ac_compile") 2>conftest.er1
  9798. ac_status=$?
  9799. grep -v '^ *+' conftest.er1 >conftest.err
  9800. rm -f conftest.er1
  9801. cat conftest.err >&5
  9802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9803. (exit $ac_status); } && {
  9804. test -z "$ac_cxx_werror_flag" ||
  9805. test ! -s conftest.err
  9806. } && test -s conftest.$ac_objext; then
  9807. gl_cv_header_stdint_h=yes
  9808. else
  9809. echo "$as_me: failed program was:" >&5
  9810. sed 's/^/| /' conftest.$ac_ext >&5
  9811. gl_cv_header_stdint_h=no
  9812. fi
  9813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9814. fi
  9815. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9816. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9817. if test $gl_cv_header_stdint_h = yes; then
  9818. cat >>confdefs.h <<_ACEOF
  9819. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9820. _ACEOF
  9821. fi
  9822. for ac_header in stdlib.h unistd.h
  9823. do
  9824. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9825. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9826. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9827. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9828. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9829. echo $ECHO_N "(cached) $ECHO_C" >&6
  9830. fi
  9831. ac_res=`eval echo '${'$as_ac_Header'}'`
  9832. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9833. echo "${ECHO_T}$ac_res" >&6; }
  9834. else
  9835. # Is the header compilable?
  9836. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9837. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9838. cat >conftest.$ac_ext <<_ACEOF
  9839. /* confdefs.h. */
  9840. _ACEOF
  9841. cat confdefs.h >>conftest.$ac_ext
  9842. cat >>conftest.$ac_ext <<_ACEOF
  9843. /* end confdefs.h. */
  9844. $ac_includes_default
  9845. #include <$ac_header>
  9846. _ACEOF
  9847. rm -f conftest.$ac_objext
  9848. if { (ac_try="$ac_compile"
  9849. case "(($ac_try" in
  9850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9851. *) ac_try_echo=$ac_try;;
  9852. esac
  9853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9854. (eval "$ac_compile") 2>conftest.er1
  9855. ac_status=$?
  9856. grep -v '^ *+' conftest.er1 >conftest.err
  9857. rm -f conftest.er1
  9858. cat conftest.err >&5
  9859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9860. (exit $ac_status); } && {
  9861. test -z "$ac_cxx_werror_flag" ||
  9862. test ! -s conftest.err
  9863. } && test -s conftest.$ac_objext; then
  9864. ac_header_compiler=yes
  9865. else
  9866. echo "$as_me: failed program was:" >&5
  9867. sed 's/^/| /' conftest.$ac_ext >&5
  9868. ac_header_compiler=no
  9869. fi
  9870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9871. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9872. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9873. # Is the header present?
  9874. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9875. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9876. cat >conftest.$ac_ext <<_ACEOF
  9877. /* confdefs.h. */
  9878. _ACEOF
  9879. cat confdefs.h >>conftest.$ac_ext
  9880. cat >>conftest.$ac_ext <<_ACEOF
  9881. /* end confdefs.h. */
  9882. #include <$ac_header>
  9883. _ACEOF
  9884. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9885. case "(($ac_try" in
  9886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9887. *) ac_try_echo=$ac_try;;
  9888. esac
  9889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9890. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9891. ac_status=$?
  9892. grep -v '^ *+' conftest.er1 >conftest.err
  9893. rm -f conftest.er1
  9894. cat conftest.err >&5
  9895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9896. (exit $ac_status); } >/dev/null && {
  9897. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9898. test ! -s conftest.err
  9899. }; then
  9900. ac_header_preproc=yes
  9901. else
  9902. echo "$as_me: failed program was:" >&5
  9903. sed 's/^/| /' conftest.$ac_ext >&5
  9904. ac_header_preproc=no
  9905. fi
  9906. rm -f conftest.err conftest.$ac_ext
  9907. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9908. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9909. # So? What about this header?
  9910. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9911. yes:no: )
  9912. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9913. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9914. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9915. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9916. ac_header_preproc=yes
  9917. ;;
  9918. no:yes:* )
  9919. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9920. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9921. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9922. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9923. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9924. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9925. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9926. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9927. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9928. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9929. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9930. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9931. ( cat <<\_ASBOX
  9932. ## ----------------------------------------------- ##
  9933. ## Report this to t-tujikawa@users.sourceforge.net ##
  9934. ## ----------------------------------------------- ##
  9935. _ASBOX
  9936. ) | sed "s/^/$as_me: WARNING: /" >&2
  9937. ;;
  9938. esac
  9939. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9940. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9941. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9942. echo $ECHO_N "(cached) $ECHO_C" >&6
  9943. else
  9944. eval "$as_ac_Header=\$ac_header_preproc"
  9945. fi
  9946. ac_res=`eval echo '${'$as_ac_Header'}'`
  9947. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9948. echo "${ECHO_T}$ac_res" >&6; }
  9949. fi
  9950. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9951. cat >>confdefs.h <<_ACEOF
  9952. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9953. _ACEOF
  9954. fi
  9955. done
  9956. for ac_func in getpagesize
  9957. do
  9958. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9959. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9960. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9961. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9962. echo $ECHO_N "(cached) $ECHO_C" >&6
  9963. else
  9964. cat >conftest.$ac_ext <<_ACEOF
  9965. /* confdefs.h. */
  9966. _ACEOF
  9967. cat confdefs.h >>conftest.$ac_ext
  9968. cat >>conftest.$ac_ext <<_ACEOF
  9969. /* end confdefs.h. */
  9970. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9971. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9972. #define $ac_func innocuous_$ac_func
  9973. /* System header to define __stub macros and hopefully few prototypes,
  9974. which can conflict with char $ac_func (); below.
  9975. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9976. <limits.h> exists even on freestanding compilers. */
  9977. #ifdef __STDC__
  9978. # include <limits.h>
  9979. #else
  9980. # include <assert.h>
  9981. #endif
  9982. #undef $ac_func
  9983. /* Override any GCC internal prototype to avoid an error.
  9984. Use char because int might match the return type of a GCC
  9985. builtin and then its argument prototype would still apply. */
  9986. #ifdef __cplusplus
  9987. extern "C"
  9988. #endif
  9989. char $ac_func ();
  9990. /* The GNU C library defines this for functions which it implements
  9991. to always fail with ENOSYS. Some functions are actually named
  9992. something starting with __ and the normal name is an alias. */
  9993. #if defined __stub_$ac_func || defined __stub___$ac_func
  9994. choke me
  9995. #endif
  9996. int
  9997. main ()
  9998. {
  9999. return $ac_func ();
  10000. ;
  10001. return 0;
  10002. }
  10003. _ACEOF
  10004. rm -f conftest.$ac_objext conftest$ac_exeext
  10005. if { (ac_try="$ac_link"
  10006. case "(($ac_try" in
  10007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10008. *) ac_try_echo=$ac_try;;
  10009. esac
  10010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10011. (eval "$ac_link") 2>conftest.er1
  10012. ac_status=$?
  10013. grep -v '^ *+' conftest.er1 >conftest.err
  10014. rm -f conftest.er1
  10015. cat conftest.err >&5
  10016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10017. (exit $ac_status); } && {
  10018. test -z "$ac_cxx_werror_flag" ||
  10019. test ! -s conftest.err
  10020. } && test -s conftest$ac_exeext &&
  10021. $as_test_x conftest$ac_exeext; then
  10022. eval "$as_ac_var=yes"
  10023. else
  10024. echo "$as_me: failed program was:" >&5
  10025. sed 's/^/| /' conftest.$ac_ext >&5
  10026. eval "$as_ac_var=no"
  10027. fi
  10028. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10029. conftest$ac_exeext conftest.$ac_ext
  10030. fi
  10031. ac_res=`eval echo '${'$as_ac_var'}'`
  10032. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10033. echo "${ECHO_T}$ac_res" >&6; }
  10034. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10035. cat >>confdefs.h <<_ACEOF
  10036. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10037. _ACEOF
  10038. fi
  10039. done
  10040. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10041. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10042. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10043. echo $ECHO_N "(cached) $ECHO_C" >&6
  10044. else
  10045. if test "$cross_compiling" = yes; then
  10046. ac_cv_func_mmap_fixed_mapped=no
  10047. else
  10048. cat >conftest.$ac_ext <<_ACEOF
  10049. /* confdefs.h. */
  10050. _ACEOF
  10051. cat confdefs.h >>conftest.$ac_ext
  10052. cat >>conftest.$ac_ext <<_ACEOF
  10053. /* end confdefs.h. */
  10054. $ac_includes_default
  10055. /* malloc might have been renamed as rpl_malloc. */
  10056. #undef malloc
  10057. /* Thanks to Mike Haertel and Jim Avera for this test.
  10058. Here is a matrix of mmap possibilities:
  10059. mmap private not fixed
  10060. mmap private fixed at somewhere currently unmapped
  10061. mmap private fixed at somewhere already mapped
  10062. mmap shared not fixed
  10063. mmap shared fixed at somewhere currently unmapped
  10064. mmap shared fixed at somewhere already mapped
  10065. For private mappings, we should verify that changes cannot be read()
  10066. back from the file, nor mmap's back from the file at a different
  10067. address. (There have been systems where private was not correctly
  10068. implemented like the infamous i386 svr4.0, and systems where the
  10069. VM page cache was not coherent with the file system buffer cache
  10070. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10071. For shared mappings, we should conversely verify that changes get
  10072. propagated back to all the places they're supposed to be.
  10073. Grep wants private fixed already mapped.
  10074. The main things grep needs to know about mmap are:
  10075. * does it exist and is it safe to write into the mmap'd area
  10076. * how to use it (BSD variants) */
  10077. #include <fcntl.h>
  10078. #include <sys/mman.h>
  10079. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10080. char *malloc ();
  10081. #endif
  10082. /* This mess was copied from the GNU getpagesize.h. */
  10083. #ifndef HAVE_GETPAGESIZE
  10084. /* Assume that all systems that can run configure have sys/param.h. */
  10085. # ifndef HAVE_SYS_PARAM_H
  10086. # define HAVE_SYS_PARAM_H 1
  10087. # endif
  10088. # ifdef _SC_PAGESIZE
  10089. # define getpagesize() sysconf(_SC_PAGESIZE)
  10090. # else /* no _SC_PAGESIZE */
  10091. # ifdef HAVE_SYS_PARAM_H
  10092. # include <sys/param.h>
  10093. # ifdef EXEC_PAGESIZE
  10094. # define getpagesize() EXEC_PAGESIZE
  10095. # else /* no EXEC_PAGESIZE */
  10096. # ifdef NBPG
  10097. # define getpagesize() NBPG * CLSIZE
  10098. # ifndef CLSIZE
  10099. # define CLSIZE 1
  10100. # endif /* no CLSIZE */
  10101. # else /* no NBPG */
  10102. # ifdef NBPC
  10103. # define getpagesize() NBPC
  10104. # else /* no NBPC */
  10105. # ifdef PAGESIZE
  10106. # define getpagesize() PAGESIZE
  10107. # endif /* PAGESIZE */
  10108. # endif /* no NBPC */
  10109. # endif /* no NBPG */
  10110. # endif /* no EXEC_PAGESIZE */
  10111. # else /* no HAVE_SYS_PARAM_H */
  10112. # define getpagesize() 8192 /* punt totally */
  10113. # endif /* no HAVE_SYS_PARAM_H */
  10114. # endif /* no _SC_PAGESIZE */
  10115. #endif /* no HAVE_GETPAGESIZE */
  10116. int
  10117. main ()
  10118. {
  10119. char *data, *data2, *data3;
  10120. int i, pagesize;
  10121. int fd;
  10122. pagesize = getpagesize ();
  10123. /* First, make a file with some known garbage in it. */
  10124. data = (char *) malloc (pagesize);
  10125. if (!data)
  10126. return 1;
  10127. for (i = 0; i < pagesize; ++i)
  10128. *(data + i) = rand ();
  10129. umask (0);
  10130. fd = creat ("conftest.mmap", 0600);
  10131. if (fd < 0)
  10132. return 1;
  10133. if (write (fd, data, pagesize) != pagesize)
  10134. return 1;
  10135. close (fd);
  10136. /* Next, try to mmap the file at a fixed address which already has
  10137. something else allocated at it. If we can, also make sure that
  10138. we see the same garbage. */
  10139. fd = open ("conftest.mmap", O_RDWR);
  10140. if (fd < 0)
  10141. return 1;
  10142. data2 = (char *) malloc (2 * pagesize);
  10143. if (!data2)
  10144. return 1;
  10145. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10146. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10147. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10148. return 1;
  10149. for (i = 0; i < pagesize; ++i)
  10150. if (*(data + i) != *(data2 + i))
  10151. return 1;
  10152. /* Finally, make sure that changes to the mapped area do not
  10153. percolate back to the file as seen by read(). (This is a bug on
  10154. some variants of i386 svr4.0.) */
  10155. for (i = 0; i < pagesize; ++i)
  10156. *(data2 + i) = *(data2 + i) + 1;
  10157. data3 = (char *) malloc (pagesize);
  10158. if (!data3)
  10159. return 1;
  10160. if (read (fd, data3, pagesize) != pagesize)
  10161. return 1;
  10162. for (i = 0; i < pagesize; ++i)
  10163. if (*(data + i) != *(data3 + i))
  10164. return 1;
  10165. close (fd);
  10166. return 0;
  10167. }
  10168. _ACEOF
  10169. rm -f conftest$ac_exeext
  10170. if { (ac_try="$ac_link"
  10171. case "(($ac_try" in
  10172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10173. *) ac_try_echo=$ac_try;;
  10174. esac
  10175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10176. (eval "$ac_link") 2>&5
  10177. ac_status=$?
  10178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10179. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10180. { (case "(($ac_try" in
  10181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10182. *) ac_try_echo=$ac_try;;
  10183. esac
  10184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10185. (eval "$ac_try") 2>&5
  10186. ac_status=$?
  10187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10188. (exit $ac_status); }; }; then
  10189. ac_cv_func_mmap_fixed_mapped=yes
  10190. else
  10191. echo "$as_me: program exited with status $ac_status" >&5
  10192. echo "$as_me: failed program was:" >&5
  10193. sed 's/^/| /' conftest.$ac_ext >&5
  10194. ( exit $ac_status )
  10195. ac_cv_func_mmap_fixed_mapped=no
  10196. fi
  10197. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10198. fi
  10199. fi
  10200. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10201. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10202. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10203. cat >>confdefs.h <<\_ACEOF
  10204. #define HAVE_MMAP 1
  10205. _ACEOF
  10206. fi
  10207. rm -f conftest.mmap
  10208. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10209. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  10210. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10211. echo $ECHO_N "(cached) $ECHO_C" >&6
  10212. else
  10213. gt_cv_int_divbyzero_sigfpe=
  10214. case "$host_os" in
  10215. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10216. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10217. # compiling. If we were to perform the real test, 1 Crash Report
  10218. # dialog window would pop up.
  10219. case "$host_cpu" in
  10220. i[34567]86 | x86_64)
  10221. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10222. esac
  10223. ;;
  10224. esac
  10225. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10226. if test "$cross_compiling" = yes; then
  10227. # Guess based on the CPU.
  10228. case "$host_cpu" in
  10229. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10230. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10231. *)
  10232. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10233. esac
  10234. else
  10235. cat >conftest.$ac_ext <<_ACEOF
  10236. /* confdefs.h. */
  10237. _ACEOF
  10238. cat confdefs.h >>conftest.$ac_ext
  10239. cat >>conftest.$ac_ext <<_ACEOF
  10240. /* end confdefs.h. */
  10241. #include <stdlib.h>
  10242. #include <signal.h>
  10243. static void
  10244. sigfpe_handler (int sig)
  10245. {
  10246. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10247. exit (sig != SIGFPE);
  10248. }
  10249. int x = 1;
  10250. int y = 0;
  10251. int z;
  10252. int nan;
  10253. int main ()
  10254. {
  10255. signal (SIGFPE, sigfpe_handler);
  10256. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10257. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10258. signal (SIGTRAP, sigfpe_handler);
  10259. #endif
  10260. /* Linux/SPARC yields signal SIGILL. */
  10261. #if defined (__sparc__) && defined (__linux__)
  10262. signal (SIGILL, sigfpe_handler);
  10263. #endif
  10264. z = x / y;
  10265. nan = y / y;
  10266. exit (1);
  10267. }
  10268. _ACEOF
  10269. rm -f conftest$ac_exeext
  10270. if { (ac_try="$ac_link"
  10271. case "(($ac_try" in
  10272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10273. *) ac_try_echo=$ac_try;;
  10274. esac
  10275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10276. (eval "$ac_link") 2>&5
  10277. ac_status=$?
  10278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10279. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10280. { (case "(($ac_try" in
  10281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10282. *) ac_try_echo=$ac_try;;
  10283. esac
  10284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10285. (eval "$ac_try") 2>&5
  10286. ac_status=$?
  10287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10288. (exit $ac_status); }; }; then
  10289. gt_cv_int_divbyzero_sigfpe=yes
  10290. else
  10291. echo "$as_me: program exited with status $ac_status" >&5
  10292. echo "$as_me: failed program was:" >&5
  10293. sed 's/^/| /' conftest.$ac_ext >&5
  10294. ( exit $ac_status )
  10295. gt_cv_int_divbyzero_sigfpe=no
  10296. fi
  10297. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10298. fi
  10299. fi
  10300. fi
  10301. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10302. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10303. case "$gt_cv_int_divbyzero_sigfpe" in
  10304. *yes) value=1;;
  10305. *) value=0;;
  10306. esac
  10307. cat >>confdefs.h <<_ACEOF
  10308. #define INTDIV0_RAISES_SIGFPE $value
  10309. _ACEOF
  10310. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10311. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10312. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10313. echo $ECHO_N "(cached) $ECHO_C" >&6
  10314. else
  10315. cat >conftest.$ac_ext <<_ACEOF
  10316. /* confdefs.h. */
  10317. _ACEOF
  10318. cat confdefs.h >>conftest.$ac_ext
  10319. cat >>conftest.$ac_ext <<_ACEOF
  10320. /* end confdefs.h. */
  10321. #include <sys/types.h>
  10322. #include <inttypes.h>
  10323. int
  10324. main ()
  10325. {
  10326. uintmax_t i = (uintmax_t) -1; return !i;
  10327. ;
  10328. return 0;
  10329. }
  10330. _ACEOF
  10331. rm -f conftest.$ac_objext
  10332. if { (ac_try="$ac_compile"
  10333. case "(($ac_try" in
  10334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10335. *) ac_try_echo=$ac_try;;
  10336. esac
  10337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10338. (eval "$ac_compile") 2>conftest.er1
  10339. ac_status=$?
  10340. grep -v '^ *+' conftest.er1 >conftest.err
  10341. rm -f conftest.er1
  10342. cat conftest.err >&5
  10343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10344. (exit $ac_status); } && {
  10345. test -z "$ac_cxx_werror_flag" ||
  10346. test ! -s conftest.err
  10347. } && test -s conftest.$ac_objext; then
  10348. gl_cv_header_inttypes_h=yes
  10349. else
  10350. echo "$as_me: failed program was:" >&5
  10351. sed 's/^/| /' conftest.$ac_ext >&5
  10352. gl_cv_header_inttypes_h=no
  10353. fi
  10354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10355. fi
  10356. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10357. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10358. if test $gl_cv_header_inttypes_h = yes; then
  10359. cat >>confdefs.h <<_ACEOF
  10360. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10361. _ACEOF
  10362. fi
  10363. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10364. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10365. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10366. echo $ECHO_N "(cached) $ECHO_C" >&6
  10367. else
  10368. cat >conftest.$ac_ext <<_ACEOF
  10369. /* confdefs.h. */
  10370. _ACEOF
  10371. cat confdefs.h >>conftest.$ac_ext
  10372. cat >>conftest.$ac_ext <<_ACEOF
  10373. /* end confdefs.h. */
  10374. /* Test preprocessor. */
  10375. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10376. error in preprocessor;
  10377. #endif
  10378. #if ! (18446744073709551615ULL <= -1ull)
  10379. error in preprocessor;
  10380. #endif
  10381. /* Test literals. */
  10382. long long int ll = 9223372036854775807ll;
  10383. long long int nll = -9223372036854775807LL;
  10384. unsigned long long int ull = 18446744073709551615ULL;
  10385. /* Test constant expressions. */
  10386. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10387. ? 1 : -1)];
  10388. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10389. ? 1 : -1)];
  10390. int i = 63;
  10391. int
  10392. main ()
  10393. {
  10394. /* Test availability of runtime routines for shift and division. */
  10395. long long int llmax = 9223372036854775807ll;
  10396. unsigned long long int ullmax = 18446744073709551615ull;
  10397. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10398. | (llmax / ll) | (llmax % ll)
  10399. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10400. | (ullmax / ull) | (ullmax % ull));
  10401. ;
  10402. return 0;
  10403. }
  10404. _ACEOF
  10405. rm -f conftest.$ac_objext conftest$ac_exeext
  10406. if { (ac_try="$ac_link"
  10407. case "(($ac_try" in
  10408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10409. *) ac_try_echo=$ac_try;;
  10410. esac
  10411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10412. (eval "$ac_link") 2>conftest.er1
  10413. ac_status=$?
  10414. grep -v '^ *+' conftest.er1 >conftest.err
  10415. rm -f conftest.er1
  10416. cat conftest.err >&5
  10417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10418. (exit $ac_status); } && {
  10419. test -z "$ac_cxx_werror_flag" ||
  10420. test ! -s conftest.err
  10421. } && test -s conftest$ac_exeext &&
  10422. $as_test_x conftest$ac_exeext; then
  10423. ac_cv_type_unsigned_long_long_int=yes
  10424. else
  10425. echo "$as_me: failed program was:" >&5
  10426. sed 's/^/| /' conftest.$ac_ext >&5
  10427. ac_cv_type_unsigned_long_long_int=no
  10428. fi
  10429. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10430. conftest$ac_exeext conftest.$ac_ext
  10431. fi
  10432. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10433. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10434. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10435. cat >>confdefs.h <<\_ACEOF
  10436. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10437. _ACEOF
  10438. fi
  10439. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10440. test $ac_cv_type_unsigned_long_long_int = yes \
  10441. && ac_type='unsigned long long' \
  10442. || ac_type='unsigned long'
  10443. cat >>confdefs.h <<_ACEOF
  10444. #define uintmax_t $ac_type
  10445. _ACEOF
  10446. else
  10447. cat >>confdefs.h <<\_ACEOF
  10448. #define HAVE_UINTMAX_T 1
  10449. _ACEOF
  10450. fi
  10451. for ac_header in inttypes.h
  10452. do
  10453. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10454. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10455. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10456. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10457. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10458. echo $ECHO_N "(cached) $ECHO_C" >&6
  10459. fi
  10460. ac_res=`eval echo '${'$as_ac_Header'}'`
  10461. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10462. echo "${ECHO_T}$ac_res" >&6; }
  10463. else
  10464. # Is the header compilable?
  10465. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10466. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10467. cat >conftest.$ac_ext <<_ACEOF
  10468. /* confdefs.h. */
  10469. _ACEOF
  10470. cat confdefs.h >>conftest.$ac_ext
  10471. cat >>conftest.$ac_ext <<_ACEOF
  10472. /* end confdefs.h. */
  10473. $ac_includes_default
  10474. #include <$ac_header>
  10475. _ACEOF
  10476. rm -f conftest.$ac_objext
  10477. if { (ac_try="$ac_compile"
  10478. case "(($ac_try" in
  10479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10480. *) ac_try_echo=$ac_try;;
  10481. esac
  10482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10483. (eval "$ac_compile") 2>conftest.er1
  10484. ac_status=$?
  10485. grep -v '^ *+' conftest.er1 >conftest.err
  10486. rm -f conftest.er1
  10487. cat conftest.err >&5
  10488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10489. (exit $ac_status); } && {
  10490. test -z "$ac_cxx_werror_flag" ||
  10491. test ! -s conftest.err
  10492. } && test -s conftest.$ac_objext; then
  10493. ac_header_compiler=yes
  10494. else
  10495. echo "$as_me: failed program was:" >&5
  10496. sed 's/^/| /' conftest.$ac_ext >&5
  10497. ac_header_compiler=no
  10498. fi
  10499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10500. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10501. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10502. # Is the header present?
  10503. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10504. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10505. cat >conftest.$ac_ext <<_ACEOF
  10506. /* confdefs.h. */
  10507. _ACEOF
  10508. cat confdefs.h >>conftest.$ac_ext
  10509. cat >>conftest.$ac_ext <<_ACEOF
  10510. /* end confdefs.h. */
  10511. #include <$ac_header>
  10512. _ACEOF
  10513. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10514. case "(($ac_try" in
  10515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10516. *) ac_try_echo=$ac_try;;
  10517. esac
  10518. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10519. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10520. ac_status=$?
  10521. grep -v '^ *+' conftest.er1 >conftest.err
  10522. rm -f conftest.er1
  10523. cat conftest.err >&5
  10524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10525. (exit $ac_status); } >/dev/null && {
  10526. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10527. test ! -s conftest.err
  10528. }; then
  10529. ac_header_preproc=yes
  10530. else
  10531. echo "$as_me: failed program was:" >&5
  10532. sed 's/^/| /' conftest.$ac_ext >&5
  10533. ac_header_preproc=no
  10534. fi
  10535. rm -f conftest.err conftest.$ac_ext
  10536. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10537. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10538. # So? What about this header?
  10539. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10540. yes:no: )
  10541. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10542. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10543. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10544. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10545. ac_header_preproc=yes
  10546. ;;
  10547. no:yes:* )
  10548. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10549. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10550. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10551. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10552. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10553. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10554. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10555. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10556. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10557. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10558. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10559. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10560. ( cat <<\_ASBOX
  10561. ## ----------------------------------------------- ##
  10562. ## Report this to t-tujikawa@users.sourceforge.net ##
  10563. ## ----------------------------------------------- ##
  10564. _ASBOX
  10565. ) | sed "s/^/$as_me: WARNING: /" >&2
  10566. ;;
  10567. esac
  10568. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10569. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10570. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10571. echo $ECHO_N "(cached) $ECHO_C" >&6
  10572. else
  10573. eval "$as_ac_Header=\$ac_header_preproc"
  10574. fi
  10575. ac_res=`eval echo '${'$as_ac_Header'}'`
  10576. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10577. echo "${ECHO_T}$ac_res" >&6; }
  10578. fi
  10579. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10580. cat >>confdefs.h <<_ACEOF
  10581. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10582. _ACEOF
  10583. fi
  10584. done
  10585. if test $ac_cv_header_inttypes_h = yes; then
  10586. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10587. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10588. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10589. echo $ECHO_N "(cached) $ECHO_C" >&6
  10590. else
  10591. cat >conftest.$ac_ext <<_ACEOF
  10592. /* confdefs.h. */
  10593. _ACEOF
  10594. cat confdefs.h >>conftest.$ac_ext
  10595. cat >>conftest.$ac_ext <<_ACEOF
  10596. /* end confdefs.h. */
  10597. #include <inttypes.h>
  10598. #ifdef PRId32
  10599. char *p = PRId32;
  10600. #endif
  10601. int
  10602. main ()
  10603. {
  10604. ;
  10605. return 0;
  10606. }
  10607. _ACEOF
  10608. rm -f conftest.$ac_objext
  10609. if { (ac_try="$ac_compile"
  10610. case "(($ac_try" in
  10611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10612. *) ac_try_echo=$ac_try;;
  10613. esac
  10614. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10615. (eval "$ac_compile") 2>conftest.er1
  10616. ac_status=$?
  10617. grep -v '^ *+' conftest.er1 >conftest.err
  10618. rm -f conftest.er1
  10619. cat conftest.err >&5
  10620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10621. (exit $ac_status); } && {
  10622. test -z "$ac_cxx_werror_flag" ||
  10623. test ! -s conftest.err
  10624. } && test -s conftest.$ac_objext; then
  10625. gt_cv_inttypes_pri_broken=no
  10626. else
  10627. echo "$as_me: failed program was:" >&5
  10628. sed 's/^/| /' conftest.$ac_ext >&5
  10629. gt_cv_inttypes_pri_broken=yes
  10630. fi
  10631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10632. fi
  10633. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10634. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10635. fi
  10636. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10637. cat >>confdefs.h <<_ACEOF
  10638. #define PRI_MACROS_BROKEN 1
  10639. _ACEOF
  10640. PRI_MACROS_BROKEN=1
  10641. else
  10642. PRI_MACROS_BROKEN=0
  10643. fi
  10644. # Check whether --enable-threads was given.
  10645. if test "${enable_threads+set}" = set; then
  10646. enableval=$enable_threads; gl_use_threads=$enableval
  10647. else
  10648. case "$host_os" in
  10649. osf*) gl_use_threads=no ;;
  10650. *) gl_use_threads=yes ;;
  10651. esac
  10652. fi
  10653. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10654. # For using <pthread.h>:
  10655. case "$host_os" in
  10656. osf*)
  10657. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10658. # groks <pthread.h>. cc also understands the flag -pthread, but
  10659. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10660. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10661. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10662. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10663. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10664. ;;
  10665. esac
  10666. # Some systems optimize for single-threaded programs by default, and
  10667. # need special flags to disable these optimizations. For example, the
  10668. # definition of 'errno' in <errno.h>.
  10669. case "$host_os" in
  10670. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10671. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10672. esac
  10673. fi
  10674. if test "X$prefix" = "XNONE"; then
  10675. acl_final_prefix="$ac_default_prefix"
  10676. else
  10677. acl_final_prefix="$prefix"
  10678. fi
  10679. if test "X$exec_prefix" = "XNONE"; then
  10680. acl_final_exec_prefix='${prefix}'
  10681. else
  10682. acl_final_exec_prefix="$exec_prefix"
  10683. fi
  10684. acl_save_prefix="$prefix"
  10685. prefix="$acl_final_prefix"
  10686. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10687. prefix="$acl_save_prefix"
  10688. # Check whether --with-gnu-ld was given.
  10689. if test "${with_gnu_ld+set}" = set; then
  10690. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10691. else
  10692. with_gnu_ld=no
  10693. fi
  10694. # Prepare PATH_SEPARATOR.
  10695. # The user is always right.
  10696. if test "${PATH_SEPARATOR+set}" != set; then
  10697. echo "#! /bin/sh" >conf$$.sh
  10698. echo "exit 0" >>conf$$.sh
  10699. chmod +x conf$$.sh
  10700. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10701. PATH_SEPARATOR=';'
  10702. else
  10703. PATH_SEPARATOR=:
  10704. fi
  10705. rm -f conf$$.sh
  10706. fi
  10707. ac_prog=ld
  10708. if test "$GCC" = yes; then
  10709. # Check if gcc -print-prog-name=ld gives a path.
  10710. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10711. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10712. case $host in
  10713. *-*-mingw*)
  10714. # gcc leaves a trailing carriage return which upsets mingw
  10715. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10716. *)
  10717. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10718. esac
  10719. case $ac_prog in
  10720. # Accept absolute paths.
  10721. [\\/]* | [A-Za-z]:[\\/]*)
  10722. re_direlt='/[^/][^/]*/\.\./'
  10723. # Canonicalize the path of ld
  10724. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10725. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10726. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10727. done
  10728. test -z "$LD" && LD="$ac_prog"
  10729. ;;
  10730. "")
  10731. # If it fails, then pretend we aren't using GCC.
  10732. ac_prog=ld
  10733. ;;
  10734. *)
  10735. # If it is relative, then search for the first ld in PATH.
  10736. with_gnu_ld=unknown
  10737. ;;
  10738. esac
  10739. elif test "$with_gnu_ld" = yes; then
  10740. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10741. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10742. else
  10743. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10744. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10745. fi
  10746. if test "${acl_cv_path_LD+set}" = set; then
  10747. echo $ECHO_N "(cached) $ECHO_C" >&6
  10748. else
  10749. if test -z "$LD"; then
  10750. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10751. for ac_dir in $PATH; do
  10752. test -z "$ac_dir" && ac_dir=.
  10753. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10754. acl_cv_path_LD="$ac_dir/$ac_prog"
  10755. # Check to see if the program is GNU ld. I'd rather use --version,
  10756. # but apparently some GNU ld's only accept -v.
  10757. # Break only if it was the GNU/non-GNU ld that we prefer.
  10758. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10759. *GNU* | *'with BFD'*)
  10760. test "$with_gnu_ld" != no && break ;;
  10761. *)
  10762. test "$with_gnu_ld" != yes && break ;;
  10763. esac
  10764. fi
  10765. done
  10766. IFS="$ac_save_ifs"
  10767. else
  10768. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10769. fi
  10770. fi
  10771. LD="$acl_cv_path_LD"
  10772. if test -n "$LD"; then
  10773. { echo "$as_me:$LINENO: result: $LD" >&5
  10774. echo "${ECHO_T}$LD" >&6; }
  10775. else
  10776. { echo "$as_me:$LINENO: result: no" >&5
  10777. echo "${ECHO_T}no" >&6; }
  10778. fi
  10779. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10780. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10781. { (exit 1); exit 1; }; }
  10782. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10783. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10784. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10785. echo $ECHO_N "(cached) $ECHO_C" >&6
  10786. else
  10787. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10788. case `$LD -v 2>&1 </dev/null` in
  10789. *GNU* | *'with BFD'*)
  10790. acl_cv_prog_gnu_ld=yes ;;
  10791. *)
  10792. acl_cv_prog_gnu_ld=no ;;
  10793. esac
  10794. fi
  10795. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10796. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10797. with_gnu_ld=$acl_cv_prog_gnu_ld
  10798. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10799. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10800. if test "${acl_cv_rpath+set}" = set; then
  10801. echo $ECHO_N "(cached) $ECHO_C" >&6
  10802. else
  10803. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10804. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10805. . ./conftest.sh
  10806. rm -f ./conftest.sh
  10807. acl_cv_rpath=done
  10808. fi
  10809. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10810. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10811. wl="$acl_cv_wl"
  10812. acl_libext="$acl_cv_libext"
  10813. acl_shlibext="$acl_cv_shlibext"
  10814. acl_libname_spec="$acl_cv_libname_spec"
  10815. acl_library_names_spec="$acl_cv_library_names_spec"
  10816. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10817. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10818. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10819. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10820. # Check whether --enable-rpath was given.
  10821. if test "${enable_rpath+set}" = set; then
  10822. enableval=$enable_rpath; :
  10823. else
  10824. enable_rpath=yes
  10825. fi
  10826. acl_libdirstem=lib
  10827. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10828. if test -n "$searchpath"; then
  10829. acl_save_IFS="${IFS= }"; IFS=":"
  10830. for searchdir in $searchpath; do
  10831. if test -d "$searchdir"; then
  10832. case "$searchdir" in
  10833. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10834. *) searchdir=`cd "$searchdir" && pwd`
  10835. case "$searchdir" in
  10836. */lib64 ) acl_libdirstem=lib64 ;;
  10837. esac ;;
  10838. esac
  10839. fi
  10840. done
  10841. IFS="$acl_save_IFS"
  10842. fi
  10843. gl_threads_api=none
  10844. LIBTHREAD=
  10845. LTLIBTHREAD=
  10846. LIBMULTITHREAD=
  10847. LTLIBMULTITHREAD=
  10848. if test "$gl_use_threads" != no; then
  10849. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10850. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10851. gl_have_weak=no
  10852. cat >conftest.$ac_ext <<_ACEOF
  10853. /* confdefs.h. */
  10854. _ACEOF
  10855. cat confdefs.h >>conftest.$ac_ext
  10856. cat >>conftest.$ac_ext <<_ACEOF
  10857. /* end confdefs.h. */
  10858. extern void xyzzy ();
  10859. #pragma weak xyzzy
  10860. int
  10861. main ()
  10862. {
  10863. xyzzy();
  10864. ;
  10865. return 0;
  10866. }
  10867. _ACEOF
  10868. rm -f conftest.$ac_objext conftest$ac_exeext
  10869. if { (ac_try="$ac_link"
  10870. case "(($ac_try" in
  10871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10872. *) ac_try_echo=$ac_try;;
  10873. esac
  10874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10875. (eval "$ac_link") 2>conftest.er1
  10876. ac_status=$?
  10877. grep -v '^ *+' conftest.er1 >conftest.err
  10878. rm -f conftest.er1
  10879. cat conftest.err >&5
  10880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10881. (exit $ac_status); } && {
  10882. test -z "$ac_cxx_werror_flag" ||
  10883. test ! -s conftest.err
  10884. } && test -s conftest$ac_exeext &&
  10885. $as_test_x conftest$ac_exeext; then
  10886. gl_have_weak=yes
  10887. else
  10888. echo "$as_me: failed program was:" >&5
  10889. sed 's/^/| /' conftest.$ac_ext >&5
  10890. fi
  10891. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10892. conftest$ac_exeext conftest.$ac_ext
  10893. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10894. echo "${ECHO_T}$gl_have_weak" >&6; }
  10895. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10896. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10897. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10898. if test "${ac_cv_header_pthread_h+set}" = set; then
  10899. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10900. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10901. if test "${ac_cv_header_pthread_h+set}" = set; then
  10902. echo $ECHO_N "(cached) $ECHO_C" >&6
  10903. fi
  10904. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10905. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10906. else
  10907. # Is the header compilable?
  10908. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10909. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10910. cat >conftest.$ac_ext <<_ACEOF
  10911. /* confdefs.h. */
  10912. _ACEOF
  10913. cat confdefs.h >>conftest.$ac_ext
  10914. cat >>conftest.$ac_ext <<_ACEOF
  10915. /* end confdefs.h. */
  10916. $ac_includes_default
  10917. #include <pthread.h>
  10918. _ACEOF
  10919. rm -f conftest.$ac_objext
  10920. if { (ac_try="$ac_compile"
  10921. case "(($ac_try" in
  10922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10923. *) ac_try_echo=$ac_try;;
  10924. esac
  10925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10926. (eval "$ac_compile") 2>conftest.er1
  10927. ac_status=$?
  10928. grep -v '^ *+' conftest.er1 >conftest.err
  10929. rm -f conftest.er1
  10930. cat conftest.err >&5
  10931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10932. (exit $ac_status); } && {
  10933. test -z "$ac_cxx_werror_flag" ||
  10934. test ! -s conftest.err
  10935. } && test -s conftest.$ac_objext; then
  10936. ac_header_compiler=yes
  10937. else
  10938. echo "$as_me: failed program was:" >&5
  10939. sed 's/^/| /' conftest.$ac_ext >&5
  10940. ac_header_compiler=no
  10941. fi
  10942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10943. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10944. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10945. # Is the header present?
  10946. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10947. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10948. cat >conftest.$ac_ext <<_ACEOF
  10949. /* confdefs.h. */
  10950. _ACEOF
  10951. cat confdefs.h >>conftest.$ac_ext
  10952. cat >>conftest.$ac_ext <<_ACEOF
  10953. /* end confdefs.h. */
  10954. #include <pthread.h>
  10955. _ACEOF
  10956. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10957. case "(($ac_try" in
  10958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10959. *) ac_try_echo=$ac_try;;
  10960. esac
  10961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10962. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10963. ac_status=$?
  10964. grep -v '^ *+' conftest.er1 >conftest.err
  10965. rm -f conftest.er1
  10966. cat conftest.err >&5
  10967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10968. (exit $ac_status); } >/dev/null && {
  10969. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10970. test ! -s conftest.err
  10971. }; then
  10972. ac_header_preproc=yes
  10973. else
  10974. echo "$as_me: failed program was:" >&5
  10975. sed 's/^/| /' conftest.$ac_ext >&5
  10976. ac_header_preproc=no
  10977. fi
  10978. rm -f conftest.err conftest.$ac_ext
  10979. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10980. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10981. # So? What about this header?
  10982. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10983. yes:no: )
  10984. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10985. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10986. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10987. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10988. ac_header_preproc=yes
  10989. ;;
  10990. no:yes:* )
  10991. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10992. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10993. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10994. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10995. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10996. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10997. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10998. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10999. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11000. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11001. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11002. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11003. ( cat <<\_ASBOX
  11004. ## ----------------------------------------------- ##
  11005. ## Report this to t-tujikawa@users.sourceforge.net ##
  11006. ## ----------------------------------------------- ##
  11007. _ASBOX
  11008. ) | sed "s/^/$as_me: WARNING: /" >&2
  11009. ;;
  11010. esac
  11011. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  11012. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  11013. if test "${ac_cv_header_pthread_h+set}" = set; then
  11014. echo $ECHO_N "(cached) $ECHO_C" >&6
  11015. else
  11016. ac_cv_header_pthread_h=$ac_header_preproc
  11017. fi
  11018. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11019. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  11020. fi
  11021. if test $ac_cv_header_pthread_h = yes; then
  11022. gl_have_pthread_h=yes
  11023. else
  11024. gl_have_pthread_h=no
  11025. fi
  11026. if test "$gl_have_pthread_h" = yes; then
  11027. # Other possible tests:
  11028. # -lpthreads (FSU threads, PCthreads)
  11029. # -lgthreads
  11030. gl_have_pthread=
  11031. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11032. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11033. # the second one only in libpthread, and lock.c needs it.
  11034. cat >conftest.$ac_ext <<_ACEOF
  11035. /* confdefs.h. */
  11036. _ACEOF
  11037. cat confdefs.h >>conftest.$ac_ext
  11038. cat >>conftest.$ac_ext <<_ACEOF
  11039. /* end confdefs.h. */
  11040. #include <pthread.h>
  11041. int
  11042. main ()
  11043. {
  11044. pthread_mutex_lock((pthread_mutex_t*)0);
  11045. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11046. ;
  11047. return 0;
  11048. }
  11049. _ACEOF
  11050. rm -f conftest.$ac_objext conftest$ac_exeext
  11051. if { (ac_try="$ac_link"
  11052. case "(($ac_try" in
  11053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11054. *) ac_try_echo=$ac_try;;
  11055. esac
  11056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11057. (eval "$ac_link") 2>conftest.er1
  11058. ac_status=$?
  11059. grep -v '^ *+' conftest.er1 >conftest.err
  11060. rm -f conftest.er1
  11061. cat conftest.err >&5
  11062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11063. (exit $ac_status); } && {
  11064. test -z "$ac_cxx_werror_flag" ||
  11065. test ! -s conftest.err
  11066. } && test -s conftest$ac_exeext &&
  11067. $as_test_x conftest$ac_exeext; then
  11068. gl_have_pthread=yes
  11069. else
  11070. echo "$as_me: failed program was:" >&5
  11071. sed 's/^/| /' conftest.$ac_ext >&5
  11072. fi
  11073. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11074. conftest$ac_exeext conftest.$ac_ext
  11075. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11076. # since it is defined as a macro on OSF/1.)
  11077. if test -n "$gl_have_pthread"; then
  11078. # The program links fine without libpthread. But it may actually
  11079. # need to link with libpthread in order to create multiple threads.
  11080. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11081. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11082. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11083. echo $ECHO_N "(cached) $ECHO_C" >&6
  11084. else
  11085. ac_check_lib_save_LIBS=$LIBS
  11086. LIBS="-lpthread $LIBS"
  11087. cat >conftest.$ac_ext <<_ACEOF
  11088. /* confdefs.h. */
  11089. _ACEOF
  11090. cat confdefs.h >>conftest.$ac_ext
  11091. cat >>conftest.$ac_ext <<_ACEOF
  11092. /* end confdefs.h. */
  11093. /* Override any GCC internal prototype to avoid an error.
  11094. Use char because int might match the return type of a GCC
  11095. builtin and then its argument prototype would still apply. */
  11096. #ifdef __cplusplus
  11097. extern "C"
  11098. #endif
  11099. char pthread_kill ();
  11100. int
  11101. main ()
  11102. {
  11103. return pthread_kill ();
  11104. ;
  11105. return 0;
  11106. }
  11107. _ACEOF
  11108. rm -f conftest.$ac_objext conftest$ac_exeext
  11109. if { (ac_try="$ac_link"
  11110. case "(($ac_try" in
  11111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11112. *) ac_try_echo=$ac_try;;
  11113. esac
  11114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11115. (eval "$ac_link") 2>conftest.er1
  11116. ac_status=$?
  11117. grep -v '^ *+' conftest.er1 >conftest.err
  11118. rm -f conftest.er1
  11119. cat conftest.err >&5
  11120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11121. (exit $ac_status); } && {
  11122. test -z "$ac_cxx_werror_flag" ||
  11123. test ! -s conftest.err
  11124. } && test -s conftest$ac_exeext &&
  11125. $as_test_x conftest$ac_exeext; then
  11126. ac_cv_lib_pthread_pthread_kill=yes
  11127. else
  11128. echo "$as_me: failed program was:" >&5
  11129. sed 's/^/| /' conftest.$ac_ext >&5
  11130. ac_cv_lib_pthread_pthread_kill=no
  11131. fi
  11132. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11133. conftest$ac_exeext conftest.$ac_ext
  11134. LIBS=$ac_check_lib_save_LIBS
  11135. fi
  11136. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11137. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11138. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11139. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11140. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11141. # Therefore pthread_in_use() needs to actually try to create a
  11142. # thread: pthread_create from libc will fail, whereas
  11143. # pthread_create will actually create a thread.
  11144. case "$host_os" in
  11145. solaris* | hpux*)
  11146. cat >>confdefs.h <<\_ACEOF
  11147. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11148. _ACEOF
  11149. esac
  11150. fi
  11151. else
  11152. # Some library is needed. Try libpthread and libc_r.
  11153. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11154. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  11155. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11156. echo $ECHO_N "(cached) $ECHO_C" >&6
  11157. else
  11158. ac_check_lib_save_LIBS=$LIBS
  11159. LIBS="-lpthread $LIBS"
  11160. cat >conftest.$ac_ext <<_ACEOF
  11161. /* confdefs.h. */
  11162. _ACEOF
  11163. cat confdefs.h >>conftest.$ac_ext
  11164. cat >>conftest.$ac_ext <<_ACEOF
  11165. /* end confdefs.h. */
  11166. /* Override any GCC internal prototype to avoid an error.
  11167. Use char because int might match the return type of a GCC
  11168. builtin and then its argument prototype would still apply. */
  11169. #ifdef __cplusplus
  11170. extern "C"
  11171. #endif
  11172. char pthread_kill ();
  11173. int
  11174. main ()
  11175. {
  11176. return pthread_kill ();
  11177. ;
  11178. return 0;
  11179. }
  11180. _ACEOF
  11181. rm -f conftest.$ac_objext conftest$ac_exeext
  11182. if { (ac_try="$ac_link"
  11183. case "(($ac_try" in
  11184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11185. *) ac_try_echo=$ac_try;;
  11186. esac
  11187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11188. (eval "$ac_link") 2>conftest.er1
  11189. ac_status=$?
  11190. grep -v '^ *+' conftest.er1 >conftest.err
  11191. rm -f conftest.er1
  11192. cat conftest.err >&5
  11193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11194. (exit $ac_status); } && {
  11195. test -z "$ac_cxx_werror_flag" ||
  11196. test ! -s conftest.err
  11197. } && test -s conftest$ac_exeext &&
  11198. $as_test_x conftest$ac_exeext; then
  11199. ac_cv_lib_pthread_pthread_kill=yes
  11200. else
  11201. echo "$as_me: failed program was:" >&5
  11202. sed 's/^/| /' conftest.$ac_ext >&5
  11203. ac_cv_lib_pthread_pthread_kill=no
  11204. fi
  11205. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11206. conftest$ac_exeext conftest.$ac_ext
  11207. LIBS=$ac_check_lib_save_LIBS
  11208. fi
  11209. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11210. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  11211. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  11212. gl_have_pthread=yes
  11213. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11214. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11215. fi
  11216. if test -z "$gl_have_pthread"; then
  11217. # For FreeBSD 4.
  11218. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11219. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  11220. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11221. echo $ECHO_N "(cached) $ECHO_C" >&6
  11222. else
  11223. ac_check_lib_save_LIBS=$LIBS
  11224. LIBS="-lc_r $LIBS"
  11225. cat >conftest.$ac_ext <<_ACEOF
  11226. /* confdefs.h. */
  11227. _ACEOF
  11228. cat confdefs.h >>conftest.$ac_ext
  11229. cat >>conftest.$ac_ext <<_ACEOF
  11230. /* end confdefs.h. */
  11231. /* Override any GCC internal prototype to avoid an error.
  11232. Use char because int might match the return type of a GCC
  11233. builtin and then its argument prototype would still apply. */
  11234. #ifdef __cplusplus
  11235. extern "C"
  11236. #endif
  11237. char pthread_kill ();
  11238. int
  11239. main ()
  11240. {
  11241. return pthread_kill ();
  11242. ;
  11243. return 0;
  11244. }
  11245. _ACEOF
  11246. rm -f conftest.$ac_objext conftest$ac_exeext
  11247. if { (ac_try="$ac_link"
  11248. case "(($ac_try" in
  11249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11250. *) ac_try_echo=$ac_try;;
  11251. esac
  11252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11253. (eval "$ac_link") 2>conftest.er1
  11254. ac_status=$?
  11255. grep -v '^ *+' conftest.er1 >conftest.err
  11256. rm -f conftest.er1
  11257. cat conftest.err >&5
  11258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11259. (exit $ac_status); } && {
  11260. test -z "$ac_cxx_werror_flag" ||
  11261. test ! -s conftest.err
  11262. } && test -s conftest$ac_exeext &&
  11263. $as_test_x conftest$ac_exeext; then
  11264. ac_cv_lib_c_r_pthread_kill=yes
  11265. else
  11266. echo "$as_me: failed program was:" >&5
  11267. sed 's/^/| /' conftest.$ac_ext >&5
  11268. ac_cv_lib_c_r_pthread_kill=no
  11269. fi
  11270. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11271. conftest$ac_exeext conftest.$ac_ext
  11272. LIBS=$ac_check_lib_save_LIBS
  11273. fi
  11274. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11275. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  11276. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  11277. gl_have_pthread=yes
  11278. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11279. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11280. fi
  11281. fi
  11282. fi
  11283. if test -n "$gl_have_pthread"; then
  11284. gl_threads_api=posix
  11285. cat >>confdefs.h <<\_ACEOF
  11286. #define USE_POSIX_THREADS 1
  11287. _ACEOF
  11288. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11289. if test $gl_have_weak = yes; then
  11290. cat >>confdefs.h <<\_ACEOF
  11291. #define USE_POSIX_THREADS_WEAK 1
  11292. _ACEOF
  11293. LIBTHREAD=
  11294. LTLIBTHREAD=
  11295. fi
  11296. fi
  11297. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11298. # pthread_rwlock_* functions.
  11299. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11300. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11301. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11302. echo $ECHO_N "(cached) $ECHO_C" >&6
  11303. else
  11304. cat >conftest.$ac_ext <<_ACEOF
  11305. /* confdefs.h. */
  11306. _ACEOF
  11307. cat confdefs.h >>conftest.$ac_ext
  11308. cat >>conftest.$ac_ext <<_ACEOF
  11309. /* end confdefs.h. */
  11310. #include <pthread.h>
  11311. typedef pthread_rwlock_t ac__type_new_;
  11312. int
  11313. main ()
  11314. {
  11315. if ((ac__type_new_ *) 0)
  11316. return 0;
  11317. if (sizeof (ac__type_new_))
  11318. return 0;
  11319. ;
  11320. return 0;
  11321. }
  11322. _ACEOF
  11323. rm -f conftest.$ac_objext
  11324. if { (ac_try="$ac_compile"
  11325. case "(($ac_try" in
  11326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11327. *) ac_try_echo=$ac_try;;
  11328. esac
  11329. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11330. (eval "$ac_compile") 2>conftest.er1
  11331. ac_status=$?
  11332. grep -v '^ *+' conftest.er1 >conftest.err
  11333. rm -f conftest.er1
  11334. cat conftest.err >&5
  11335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11336. (exit $ac_status); } && {
  11337. test -z "$ac_cxx_werror_flag" ||
  11338. test ! -s conftest.err
  11339. } && test -s conftest.$ac_objext; then
  11340. ac_cv_type_pthread_rwlock_t=yes
  11341. else
  11342. echo "$as_me: failed program was:" >&5
  11343. sed 's/^/| /' conftest.$ac_ext >&5
  11344. ac_cv_type_pthread_rwlock_t=no
  11345. fi
  11346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11347. fi
  11348. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11349. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11350. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11351. cat >>confdefs.h <<\_ACEOF
  11352. #define HAVE_PTHREAD_RWLOCK 1
  11353. _ACEOF
  11354. fi
  11355. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11356. cat >conftest.$ac_ext <<_ACEOF
  11357. /* confdefs.h. */
  11358. _ACEOF
  11359. cat confdefs.h >>conftest.$ac_ext
  11360. cat >>conftest.$ac_ext <<_ACEOF
  11361. /* end confdefs.h. */
  11362. #include <pthread.h>
  11363. int
  11364. main ()
  11365. {
  11366. #if __FreeBSD__ == 4
  11367. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11368. #else
  11369. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11370. return !x;
  11371. #endif
  11372. ;
  11373. return 0;
  11374. }
  11375. _ACEOF
  11376. rm -f conftest.$ac_objext
  11377. if { (ac_try="$ac_compile"
  11378. case "(($ac_try" in
  11379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11380. *) ac_try_echo=$ac_try;;
  11381. esac
  11382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11383. (eval "$ac_compile") 2>conftest.er1
  11384. ac_status=$?
  11385. grep -v '^ *+' conftest.er1 >conftest.err
  11386. rm -f conftest.er1
  11387. cat conftest.err >&5
  11388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11389. (exit $ac_status); } && {
  11390. test -z "$ac_cxx_werror_flag" ||
  11391. test ! -s conftest.err
  11392. } && test -s conftest.$ac_objext; then
  11393. cat >>confdefs.h <<\_ACEOF
  11394. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11395. _ACEOF
  11396. else
  11397. echo "$as_me: failed program was:" >&5
  11398. sed 's/^/| /' conftest.$ac_ext >&5
  11399. fi
  11400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11401. fi
  11402. fi
  11403. fi
  11404. if test -z "$gl_have_pthread"; then
  11405. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11406. gl_have_solaristhread=
  11407. gl_save_LIBS="$LIBS"
  11408. LIBS="$LIBS -lthread"
  11409. cat >conftest.$ac_ext <<_ACEOF
  11410. /* confdefs.h. */
  11411. _ACEOF
  11412. cat confdefs.h >>conftest.$ac_ext
  11413. cat >>conftest.$ac_ext <<_ACEOF
  11414. /* end confdefs.h. */
  11415. #include <thread.h>
  11416. #include <synch.h>
  11417. int
  11418. main ()
  11419. {
  11420. thr_self();
  11421. ;
  11422. return 0;
  11423. }
  11424. _ACEOF
  11425. rm -f conftest.$ac_objext conftest$ac_exeext
  11426. if { (ac_try="$ac_link"
  11427. case "(($ac_try" in
  11428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11429. *) ac_try_echo=$ac_try;;
  11430. esac
  11431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11432. (eval "$ac_link") 2>conftest.er1
  11433. ac_status=$?
  11434. grep -v '^ *+' conftest.er1 >conftest.err
  11435. rm -f conftest.er1
  11436. cat conftest.err >&5
  11437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11438. (exit $ac_status); } && {
  11439. test -z "$ac_cxx_werror_flag" ||
  11440. test ! -s conftest.err
  11441. } && test -s conftest$ac_exeext &&
  11442. $as_test_x conftest$ac_exeext; then
  11443. gl_have_solaristhread=yes
  11444. else
  11445. echo "$as_me: failed program was:" >&5
  11446. sed 's/^/| /' conftest.$ac_ext >&5
  11447. fi
  11448. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11449. conftest$ac_exeext conftest.$ac_ext
  11450. LIBS="$gl_save_LIBS"
  11451. if test -n "$gl_have_solaristhread"; then
  11452. gl_threads_api=solaris
  11453. LIBTHREAD=-lthread
  11454. LTLIBTHREAD=-lthread
  11455. LIBMULTITHREAD="$LIBTHREAD"
  11456. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11457. cat >>confdefs.h <<\_ACEOF
  11458. #define USE_SOLARIS_THREADS 1
  11459. _ACEOF
  11460. if test $gl_have_weak = yes; then
  11461. cat >>confdefs.h <<\_ACEOF
  11462. #define USE_SOLARIS_THREADS_WEAK 1
  11463. _ACEOF
  11464. LIBTHREAD=
  11465. LTLIBTHREAD=
  11466. fi
  11467. fi
  11468. fi
  11469. fi
  11470. if test "$gl_use_threads" = pth; then
  11471. gl_save_CPPFLAGS="$CPPFLAGS"
  11472. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11473. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11474. if test "${ac_cv_libpth_libs+set}" = set; then
  11475. echo $ECHO_N "(cached) $ECHO_C" >&6
  11476. else
  11477. use_additional=yes
  11478. acl_save_prefix="$prefix"
  11479. prefix="$acl_final_prefix"
  11480. acl_save_exec_prefix="$exec_prefix"
  11481. exec_prefix="$acl_final_exec_prefix"
  11482. eval additional_includedir=\"$includedir\"
  11483. eval additional_libdir=\"$libdir\"
  11484. exec_prefix="$acl_save_exec_prefix"
  11485. prefix="$acl_save_prefix"
  11486. # Check whether --with-libpth-prefix was given.
  11487. if test "${with_libpth_prefix+set}" = set; then
  11488. withval=$with_libpth_prefix;
  11489. if test "X$withval" = "Xno"; then
  11490. use_additional=no
  11491. else
  11492. if test "X$withval" = "X"; then
  11493. acl_save_prefix="$prefix"
  11494. prefix="$acl_final_prefix"
  11495. acl_save_exec_prefix="$exec_prefix"
  11496. exec_prefix="$acl_final_exec_prefix"
  11497. eval additional_includedir=\"$includedir\"
  11498. eval additional_libdir=\"$libdir\"
  11499. exec_prefix="$acl_save_exec_prefix"
  11500. prefix="$acl_save_prefix"
  11501. else
  11502. additional_includedir="$withval/include"
  11503. additional_libdir="$withval/$acl_libdirstem"
  11504. fi
  11505. fi
  11506. fi
  11507. LIBPTH=
  11508. LTLIBPTH=
  11509. INCPTH=
  11510. LIBPTH_PREFIX=
  11511. rpathdirs=
  11512. ltrpathdirs=
  11513. names_already_handled=
  11514. names_next_round='pth '
  11515. while test -n "$names_next_round"; do
  11516. names_this_round="$names_next_round"
  11517. names_next_round=
  11518. for name in $names_this_round; do
  11519. already_handled=
  11520. for n in $names_already_handled; do
  11521. if test "$n" = "$name"; then
  11522. already_handled=yes
  11523. break
  11524. fi
  11525. done
  11526. if test -z "$already_handled"; then
  11527. names_already_handled="$names_already_handled $name"
  11528. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11529. eval value=\"\$HAVE_LIB$uppername\"
  11530. if test -n "$value"; then
  11531. if test "$value" = yes; then
  11532. eval value=\"\$LIB$uppername\"
  11533. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11534. eval value=\"\$LTLIB$uppername\"
  11535. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11536. else
  11537. :
  11538. fi
  11539. else
  11540. found_dir=
  11541. found_la=
  11542. found_so=
  11543. found_a=
  11544. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11545. if test -n "$acl_shlibext"; then
  11546. shrext=".$acl_shlibext" # typically: shrext=.so
  11547. else
  11548. shrext=
  11549. fi
  11550. if test $use_additional = yes; then
  11551. dir="$additional_libdir"
  11552. if test -n "$acl_shlibext"; then
  11553. if test -f "$dir/$libname$shrext"; then
  11554. found_dir="$dir"
  11555. found_so="$dir/$libname$shrext"
  11556. else
  11557. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11558. ver=`(cd "$dir" && \
  11559. for f in "$libname$shrext".*; do echo "$f"; done \
  11560. | sed -e "s,^$libname$shrext\\\\.,," \
  11561. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11562. | sed 1q ) 2>/dev/null`
  11563. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11564. found_dir="$dir"
  11565. found_so="$dir/$libname$shrext.$ver"
  11566. fi
  11567. else
  11568. eval library_names=\"$acl_library_names_spec\"
  11569. for f in $library_names; do
  11570. if test -f "$dir/$f"; then
  11571. found_dir="$dir"
  11572. found_so="$dir/$f"
  11573. break
  11574. fi
  11575. done
  11576. fi
  11577. fi
  11578. fi
  11579. if test "X$found_dir" = "X"; then
  11580. if test -f "$dir/$libname.$acl_libext"; then
  11581. found_dir="$dir"
  11582. found_a="$dir/$libname.$acl_libext"
  11583. fi
  11584. fi
  11585. if test "X$found_dir" != "X"; then
  11586. if test -f "$dir/$libname.la"; then
  11587. found_la="$dir/$libname.la"
  11588. fi
  11589. fi
  11590. fi
  11591. if test "X$found_dir" = "X"; then
  11592. for x in $LDFLAGS $LTLIBPTH; do
  11593. acl_save_prefix="$prefix"
  11594. prefix="$acl_final_prefix"
  11595. acl_save_exec_prefix="$exec_prefix"
  11596. exec_prefix="$acl_final_exec_prefix"
  11597. eval x=\"$x\"
  11598. exec_prefix="$acl_save_exec_prefix"
  11599. prefix="$acl_save_prefix"
  11600. case "$x" in
  11601. -L*)
  11602. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11603. if test -n "$acl_shlibext"; then
  11604. if test -f "$dir/$libname$shrext"; then
  11605. found_dir="$dir"
  11606. found_so="$dir/$libname$shrext"
  11607. else
  11608. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11609. ver=`(cd "$dir" && \
  11610. for f in "$libname$shrext".*; do echo "$f"; done \
  11611. | sed -e "s,^$libname$shrext\\\\.,," \
  11612. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11613. | sed 1q ) 2>/dev/null`
  11614. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11615. found_dir="$dir"
  11616. found_so="$dir/$libname$shrext.$ver"
  11617. fi
  11618. else
  11619. eval library_names=\"$acl_library_names_spec\"
  11620. for f in $library_names; do
  11621. if test -f "$dir/$f"; then
  11622. found_dir="$dir"
  11623. found_so="$dir/$f"
  11624. break
  11625. fi
  11626. done
  11627. fi
  11628. fi
  11629. fi
  11630. if test "X$found_dir" = "X"; then
  11631. if test -f "$dir/$libname.$acl_libext"; then
  11632. found_dir="$dir"
  11633. found_a="$dir/$libname.$acl_libext"
  11634. fi
  11635. fi
  11636. if test "X$found_dir" != "X"; then
  11637. if test -f "$dir/$libname.la"; then
  11638. found_la="$dir/$libname.la"
  11639. fi
  11640. fi
  11641. ;;
  11642. esac
  11643. if test "X$found_dir" != "X"; then
  11644. break
  11645. fi
  11646. done
  11647. fi
  11648. if test "X$found_dir" != "X"; then
  11649. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11650. if test "X$found_so" != "X"; then
  11651. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11652. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11653. else
  11654. haveit=
  11655. for x in $ltrpathdirs; do
  11656. if test "X$x" = "X$found_dir"; then
  11657. haveit=yes
  11658. break
  11659. fi
  11660. done
  11661. if test -z "$haveit"; then
  11662. ltrpathdirs="$ltrpathdirs $found_dir"
  11663. fi
  11664. if test "$acl_hardcode_direct" = yes; then
  11665. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11666. else
  11667. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11668. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11669. haveit=
  11670. for x in $rpathdirs; do
  11671. if test "X$x" = "X$found_dir"; then
  11672. haveit=yes
  11673. break
  11674. fi
  11675. done
  11676. if test -z "$haveit"; then
  11677. rpathdirs="$rpathdirs $found_dir"
  11678. fi
  11679. else
  11680. haveit=
  11681. for x in $LDFLAGS $LIBPTH; do
  11682. acl_save_prefix="$prefix"
  11683. prefix="$acl_final_prefix"
  11684. acl_save_exec_prefix="$exec_prefix"
  11685. exec_prefix="$acl_final_exec_prefix"
  11686. eval x=\"$x\"
  11687. exec_prefix="$acl_save_exec_prefix"
  11688. prefix="$acl_save_prefix"
  11689. if test "X$x" = "X-L$found_dir"; then
  11690. haveit=yes
  11691. break
  11692. fi
  11693. done
  11694. if test -z "$haveit"; then
  11695. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11696. fi
  11697. if test "$acl_hardcode_minus_L" != no; then
  11698. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11699. else
  11700. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11701. fi
  11702. fi
  11703. fi
  11704. fi
  11705. else
  11706. if test "X$found_a" != "X"; then
  11707. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11708. else
  11709. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11710. fi
  11711. fi
  11712. additional_includedir=
  11713. case "$found_dir" in
  11714. */$acl_libdirstem | */$acl_libdirstem/)
  11715. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11716. LIBPTH_PREFIX="$basedir"
  11717. additional_includedir="$basedir/include"
  11718. ;;
  11719. esac
  11720. if test "X$additional_includedir" != "X"; then
  11721. if test "X$additional_includedir" != "X/usr/include"; then
  11722. haveit=
  11723. if test "X$additional_includedir" = "X/usr/local/include"; then
  11724. if test -n "$GCC"; then
  11725. case $host_os in
  11726. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11727. esac
  11728. fi
  11729. fi
  11730. if test -z "$haveit"; then
  11731. for x in $CPPFLAGS $INCPTH; do
  11732. acl_save_prefix="$prefix"
  11733. prefix="$acl_final_prefix"
  11734. acl_save_exec_prefix="$exec_prefix"
  11735. exec_prefix="$acl_final_exec_prefix"
  11736. eval x=\"$x\"
  11737. exec_prefix="$acl_save_exec_prefix"
  11738. prefix="$acl_save_prefix"
  11739. if test "X$x" = "X-I$additional_includedir"; then
  11740. haveit=yes
  11741. break
  11742. fi
  11743. done
  11744. if test -z "$haveit"; then
  11745. if test -d "$additional_includedir"; then
  11746. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11747. fi
  11748. fi
  11749. fi
  11750. fi
  11751. fi
  11752. if test -n "$found_la"; then
  11753. save_libdir="$libdir"
  11754. case "$found_la" in
  11755. */* | *\\*) . "$found_la" ;;
  11756. *) . "./$found_la" ;;
  11757. esac
  11758. libdir="$save_libdir"
  11759. for dep in $dependency_libs; do
  11760. case "$dep" in
  11761. -L*)
  11762. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11763. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11764. haveit=
  11765. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11766. if test -n "$GCC"; then
  11767. case $host_os in
  11768. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11769. esac
  11770. fi
  11771. fi
  11772. if test -z "$haveit"; then
  11773. haveit=
  11774. for x in $LDFLAGS $LIBPTH; do
  11775. acl_save_prefix="$prefix"
  11776. prefix="$acl_final_prefix"
  11777. acl_save_exec_prefix="$exec_prefix"
  11778. exec_prefix="$acl_final_exec_prefix"
  11779. eval x=\"$x\"
  11780. exec_prefix="$acl_save_exec_prefix"
  11781. prefix="$acl_save_prefix"
  11782. if test "X$x" = "X-L$additional_libdir"; then
  11783. haveit=yes
  11784. break
  11785. fi
  11786. done
  11787. if test -z "$haveit"; then
  11788. if test -d "$additional_libdir"; then
  11789. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11790. fi
  11791. fi
  11792. haveit=
  11793. for x in $LDFLAGS $LTLIBPTH; do
  11794. acl_save_prefix="$prefix"
  11795. prefix="$acl_final_prefix"
  11796. acl_save_exec_prefix="$exec_prefix"
  11797. exec_prefix="$acl_final_exec_prefix"
  11798. eval x=\"$x\"
  11799. exec_prefix="$acl_save_exec_prefix"
  11800. prefix="$acl_save_prefix"
  11801. if test "X$x" = "X-L$additional_libdir"; then
  11802. haveit=yes
  11803. break
  11804. fi
  11805. done
  11806. if test -z "$haveit"; then
  11807. if test -d "$additional_libdir"; then
  11808. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11809. fi
  11810. fi
  11811. fi
  11812. fi
  11813. ;;
  11814. -R*)
  11815. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11816. if test "$enable_rpath" != no; then
  11817. haveit=
  11818. for x in $rpathdirs; do
  11819. if test "X$x" = "X$dir"; then
  11820. haveit=yes
  11821. break
  11822. fi
  11823. done
  11824. if test -z "$haveit"; then
  11825. rpathdirs="$rpathdirs $dir"
  11826. fi
  11827. haveit=
  11828. for x in $ltrpathdirs; do
  11829. if test "X$x" = "X$dir"; then
  11830. haveit=yes
  11831. break
  11832. fi
  11833. done
  11834. if test -z "$haveit"; then
  11835. ltrpathdirs="$ltrpathdirs $dir"
  11836. fi
  11837. fi
  11838. ;;
  11839. -l*)
  11840. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11841. ;;
  11842. *.la)
  11843. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11844. ;;
  11845. *)
  11846. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11847. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11848. ;;
  11849. esac
  11850. done
  11851. fi
  11852. else
  11853. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11854. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11855. fi
  11856. fi
  11857. fi
  11858. done
  11859. done
  11860. if test "X$rpathdirs" != "X"; then
  11861. if test -n "$acl_hardcode_libdir_separator"; then
  11862. alldirs=
  11863. for found_dir in $rpathdirs; do
  11864. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11865. done
  11866. acl_save_libdir="$libdir"
  11867. libdir="$alldirs"
  11868. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11869. libdir="$acl_save_libdir"
  11870. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11871. else
  11872. for found_dir in $rpathdirs; do
  11873. acl_save_libdir="$libdir"
  11874. libdir="$found_dir"
  11875. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11876. libdir="$acl_save_libdir"
  11877. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11878. done
  11879. fi
  11880. fi
  11881. if test "X$ltrpathdirs" != "X"; then
  11882. for found_dir in $ltrpathdirs; do
  11883. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11884. done
  11885. fi
  11886. ac_cv_libpth_libs="$LIBPTH"
  11887. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11888. ac_cv_libpth_cppflags="$INCPTH"
  11889. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11890. fi
  11891. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11892. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11893. LIBPTH="$ac_cv_libpth_libs"
  11894. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11895. INCPTH="$ac_cv_libpth_cppflags"
  11896. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11897. for element in $INCPTH; do
  11898. haveit=
  11899. for x in $CPPFLAGS; do
  11900. acl_save_prefix="$prefix"
  11901. prefix="$acl_final_prefix"
  11902. acl_save_exec_prefix="$exec_prefix"
  11903. exec_prefix="$acl_final_exec_prefix"
  11904. eval x=\"$x\"
  11905. exec_prefix="$acl_save_exec_prefix"
  11906. prefix="$acl_save_prefix"
  11907. if test "X$x" = "X$element"; then
  11908. haveit=yes
  11909. break
  11910. fi
  11911. done
  11912. if test -z "$haveit"; then
  11913. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11914. fi
  11915. done
  11916. HAVE_LIBPTH=yes
  11917. gl_have_pth=
  11918. gl_save_LIBS="$LIBS"
  11919. LIBS="$LIBS -lpth"
  11920. cat >conftest.$ac_ext <<_ACEOF
  11921. /* confdefs.h. */
  11922. _ACEOF
  11923. cat confdefs.h >>conftest.$ac_ext
  11924. cat >>conftest.$ac_ext <<_ACEOF
  11925. /* end confdefs.h. */
  11926. #include <pth.h>
  11927. int
  11928. main ()
  11929. {
  11930. pth_self();
  11931. ;
  11932. return 0;
  11933. }
  11934. _ACEOF
  11935. rm -f conftest.$ac_objext conftest$ac_exeext
  11936. if { (ac_try="$ac_link"
  11937. case "(($ac_try" in
  11938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11939. *) ac_try_echo=$ac_try;;
  11940. esac
  11941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11942. (eval "$ac_link") 2>conftest.er1
  11943. ac_status=$?
  11944. grep -v '^ *+' conftest.er1 >conftest.err
  11945. rm -f conftest.er1
  11946. cat conftest.err >&5
  11947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11948. (exit $ac_status); } && {
  11949. test -z "$ac_cxx_werror_flag" ||
  11950. test ! -s conftest.err
  11951. } && test -s conftest$ac_exeext &&
  11952. $as_test_x conftest$ac_exeext; then
  11953. gl_have_pth=yes
  11954. else
  11955. echo "$as_me: failed program was:" >&5
  11956. sed 's/^/| /' conftest.$ac_ext >&5
  11957. fi
  11958. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11959. conftest$ac_exeext conftest.$ac_ext
  11960. LIBS="$gl_save_LIBS"
  11961. if test -n "$gl_have_pth"; then
  11962. gl_threads_api=pth
  11963. LIBTHREAD="$LIBPTH"
  11964. LTLIBTHREAD="$LTLIBPTH"
  11965. LIBMULTITHREAD="$LIBTHREAD"
  11966. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11967. cat >>confdefs.h <<\_ACEOF
  11968. #define USE_PTH_THREADS 1
  11969. _ACEOF
  11970. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11971. if test $gl_have_weak = yes; then
  11972. cat >>confdefs.h <<\_ACEOF
  11973. #define USE_PTH_THREADS_WEAK 1
  11974. _ACEOF
  11975. LIBTHREAD=
  11976. LTLIBTHREAD=
  11977. fi
  11978. fi
  11979. else
  11980. CPPFLAGS="$gl_save_CPPFLAGS"
  11981. fi
  11982. fi
  11983. if test -z "$gl_have_pthread"; then
  11984. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11985. if { case "$host_os" in
  11986. mingw*) true;;
  11987. *) false;;
  11988. esac
  11989. }; then
  11990. gl_threads_api=win32
  11991. cat >>confdefs.h <<\_ACEOF
  11992. #define USE_WIN32_THREADS 1
  11993. _ACEOF
  11994. fi
  11995. fi
  11996. fi
  11997. fi
  11998. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11999. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  12000. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  12001. echo "${ECHO_T}$gl_threads_api" >&6; }
  12002. use_additional=yes
  12003. acl_save_prefix="$prefix"
  12004. prefix="$acl_final_prefix"
  12005. acl_save_exec_prefix="$exec_prefix"
  12006. exec_prefix="$acl_final_exec_prefix"
  12007. eval additional_includedir=\"$includedir\"
  12008. eval additional_libdir=\"$libdir\"
  12009. exec_prefix="$acl_save_exec_prefix"
  12010. prefix="$acl_save_prefix"
  12011. # Check whether --with-libiconv-prefix was given.
  12012. if test "${with_libiconv_prefix+set}" = set; then
  12013. withval=$with_libiconv_prefix;
  12014. if test "X$withval" = "Xno"; then
  12015. use_additional=no
  12016. else
  12017. if test "X$withval" = "X"; then
  12018. acl_save_prefix="$prefix"
  12019. prefix="$acl_final_prefix"
  12020. acl_save_exec_prefix="$exec_prefix"
  12021. exec_prefix="$acl_final_exec_prefix"
  12022. eval additional_includedir=\"$includedir\"
  12023. eval additional_libdir=\"$libdir\"
  12024. exec_prefix="$acl_save_exec_prefix"
  12025. prefix="$acl_save_prefix"
  12026. else
  12027. additional_includedir="$withval/include"
  12028. additional_libdir="$withval/$acl_libdirstem"
  12029. fi
  12030. fi
  12031. fi
  12032. LIBICONV=
  12033. LTLIBICONV=
  12034. INCICONV=
  12035. LIBICONV_PREFIX=
  12036. rpathdirs=
  12037. ltrpathdirs=
  12038. names_already_handled=
  12039. names_next_round='iconv '
  12040. while test -n "$names_next_round"; do
  12041. names_this_round="$names_next_round"
  12042. names_next_round=
  12043. for name in $names_this_round; do
  12044. already_handled=
  12045. for n in $names_already_handled; do
  12046. if test "$n" = "$name"; then
  12047. already_handled=yes
  12048. break
  12049. fi
  12050. done
  12051. if test -z "$already_handled"; then
  12052. names_already_handled="$names_already_handled $name"
  12053. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12054. eval value=\"\$HAVE_LIB$uppername\"
  12055. if test -n "$value"; then
  12056. if test "$value" = yes; then
  12057. eval value=\"\$LIB$uppername\"
  12058. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12059. eval value=\"\$LTLIB$uppername\"
  12060. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12061. else
  12062. :
  12063. fi
  12064. else
  12065. found_dir=
  12066. found_la=
  12067. found_so=
  12068. found_a=
  12069. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12070. if test -n "$acl_shlibext"; then
  12071. shrext=".$acl_shlibext" # typically: shrext=.so
  12072. else
  12073. shrext=
  12074. fi
  12075. if test $use_additional = yes; then
  12076. dir="$additional_libdir"
  12077. if test -n "$acl_shlibext"; then
  12078. if test -f "$dir/$libname$shrext"; then
  12079. found_dir="$dir"
  12080. found_so="$dir/$libname$shrext"
  12081. else
  12082. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12083. ver=`(cd "$dir" && \
  12084. for f in "$libname$shrext".*; do echo "$f"; done \
  12085. | sed -e "s,^$libname$shrext\\\\.,," \
  12086. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12087. | sed 1q ) 2>/dev/null`
  12088. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12089. found_dir="$dir"
  12090. found_so="$dir/$libname$shrext.$ver"
  12091. fi
  12092. else
  12093. eval library_names=\"$acl_library_names_spec\"
  12094. for f in $library_names; do
  12095. if test -f "$dir/$f"; then
  12096. found_dir="$dir"
  12097. found_so="$dir/$f"
  12098. break
  12099. fi
  12100. done
  12101. fi
  12102. fi
  12103. fi
  12104. if test "X$found_dir" = "X"; then
  12105. if test -f "$dir/$libname.$acl_libext"; then
  12106. found_dir="$dir"
  12107. found_a="$dir/$libname.$acl_libext"
  12108. fi
  12109. fi
  12110. if test "X$found_dir" != "X"; then
  12111. if test -f "$dir/$libname.la"; then
  12112. found_la="$dir/$libname.la"
  12113. fi
  12114. fi
  12115. fi
  12116. if test "X$found_dir" = "X"; then
  12117. for x in $LDFLAGS $LTLIBICONV; do
  12118. acl_save_prefix="$prefix"
  12119. prefix="$acl_final_prefix"
  12120. acl_save_exec_prefix="$exec_prefix"
  12121. exec_prefix="$acl_final_exec_prefix"
  12122. eval x=\"$x\"
  12123. exec_prefix="$acl_save_exec_prefix"
  12124. prefix="$acl_save_prefix"
  12125. case "$x" in
  12126. -L*)
  12127. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12128. if test -n "$acl_shlibext"; then
  12129. if test -f "$dir/$libname$shrext"; then
  12130. found_dir="$dir"
  12131. found_so="$dir/$libname$shrext"
  12132. else
  12133. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12134. ver=`(cd "$dir" && \
  12135. for f in "$libname$shrext".*; do echo "$f"; done \
  12136. | sed -e "s,^$libname$shrext\\\\.,," \
  12137. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12138. | sed 1q ) 2>/dev/null`
  12139. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12140. found_dir="$dir"
  12141. found_so="$dir/$libname$shrext.$ver"
  12142. fi
  12143. else
  12144. eval library_names=\"$acl_library_names_spec\"
  12145. for f in $library_names; do
  12146. if test -f "$dir/$f"; then
  12147. found_dir="$dir"
  12148. found_so="$dir/$f"
  12149. break
  12150. fi
  12151. done
  12152. fi
  12153. fi
  12154. fi
  12155. if test "X$found_dir" = "X"; then
  12156. if test -f "$dir/$libname.$acl_libext"; then
  12157. found_dir="$dir"
  12158. found_a="$dir/$libname.$acl_libext"
  12159. fi
  12160. fi
  12161. if test "X$found_dir" != "X"; then
  12162. if test -f "$dir/$libname.la"; then
  12163. found_la="$dir/$libname.la"
  12164. fi
  12165. fi
  12166. ;;
  12167. esac
  12168. if test "X$found_dir" != "X"; then
  12169. break
  12170. fi
  12171. done
  12172. fi
  12173. if test "X$found_dir" != "X"; then
  12174. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12175. if test "X$found_so" != "X"; then
  12176. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12177. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12178. else
  12179. haveit=
  12180. for x in $ltrpathdirs; do
  12181. if test "X$x" = "X$found_dir"; then
  12182. haveit=yes
  12183. break
  12184. fi
  12185. done
  12186. if test -z "$haveit"; then
  12187. ltrpathdirs="$ltrpathdirs $found_dir"
  12188. fi
  12189. if test "$acl_hardcode_direct" = yes; then
  12190. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12191. else
  12192. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12193. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12194. haveit=
  12195. for x in $rpathdirs; do
  12196. if test "X$x" = "X$found_dir"; then
  12197. haveit=yes
  12198. break
  12199. fi
  12200. done
  12201. if test -z "$haveit"; then
  12202. rpathdirs="$rpathdirs $found_dir"
  12203. fi
  12204. else
  12205. haveit=
  12206. for x in $LDFLAGS $LIBICONV; do
  12207. acl_save_prefix="$prefix"
  12208. prefix="$acl_final_prefix"
  12209. acl_save_exec_prefix="$exec_prefix"
  12210. exec_prefix="$acl_final_exec_prefix"
  12211. eval x=\"$x\"
  12212. exec_prefix="$acl_save_exec_prefix"
  12213. prefix="$acl_save_prefix"
  12214. if test "X$x" = "X-L$found_dir"; then
  12215. haveit=yes
  12216. break
  12217. fi
  12218. done
  12219. if test -z "$haveit"; then
  12220. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12221. fi
  12222. if test "$acl_hardcode_minus_L" != no; then
  12223. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12224. else
  12225. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12226. fi
  12227. fi
  12228. fi
  12229. fi
  12230. else
  12231. if test "X$found_a" != "X"; then
  12232. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12233. else
  12234. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12235. fi
  12236. fi
  12237. additional_includedir=
  12238. case "$found_dir" in
  12239. */$acl_libdirstem | */$acl_libdirstem/)
  12240. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12241. LIBICONV_PREFIX="$basedir"
  12242. additional_includedir="$basedir/include"
  12243. ;;
  12244. esac
  12245. if test "X$additional_includedir" != "X"; then
  12246. if test "X$additional_includedir" != "X/usr/include"; then
  12247. haveit=
  12248. if test "X$additional_includedir" = "X/usr/local/include"; then
  12249. if test -n "$GCC"; then
  12250. case $host_os in
  12251. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12252. esac
  12253. fi
  12254. fi
  12255. if test -z "$haveit"; then
  12256. for x in $CPPFLAGS $INCICONV; do
  12257. acl_save_prefix="$prefix"
  12258. prefix="$acl_final_prefix"
  12259. acl_save_exec_prefix="$exec_prefix"
  12260. exec_prefix="$acl_final_exec_prefix"
  12261. eval x=\"$x\"
  12262. exec_prefix="$acl_save_exec_prefix"
  12263. prefix="$acl_save_prefix"
  12264. if test "X$x" = "X-I$additional_includedir"; then
  12265. haveit=yes
  12266. break
  12267. fi
  12268. done
  12269. if test -z "$haveit"; then
  12270. if test -d "$additional_includedir"; then
  12271. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12272. fi
  12273. fi
  12274. fi
  12275. fi
  12276. fi
  12277. if test -n "$found_la"; then
  12278. save_libdir="$libdir"
  12279. case "$found_la" in
  12280. */* | *\\*) . "$found_la" ;;
  12281. *) . "./$found_la" ;;
  12282. esac
  12283. libdir="$save_libdir"
  12284. for dep in $dependency_libs; do
  12285. case "$dep" in
  12286. -L*)
  12287. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12288. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12289. haveit=
  12290. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12291. if test -n "$GCC"; then
  12292. case $host_os in
  12293. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12294. esac
  12295. fi
  12296. fi
  12297. if test -z "$haveit"; then
  12298. haveit=
  12299. for x in $LDFLAGS $LIBICONV; do
  12300. acl_save_prefix="$prefix"
  12301. prefix="$acl_final_prefix"
  12302. acl_save_exec_prefix="$exec_prefix"
  12303. exec_prefix="$acl_final_exec_prefix"
  12304. eval x=\"$x\"
  12305. exec_prefix="$acl_save_exec_prefix"
  12306. prefix="$acl_save_prefix"
  12307. if test "X$x" = "X-L$additional_libdir"; then
  12308. haveit=yes
  12309. break
  12310. fi
  12311. done
  12312. if test -z "$haveit"; then
  12313. if test -d "$additional_libdir"; then
  12314. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12315. fi
  12316. fi
  12317. haveit=
  12318. for x in $LDFLAGS $LTLIBICONV; do
  12319. acl_save_prefix="$prefix"
  12320. prefix="$acl_final_prefix"
  12321. acl_save_exec_prefix="$exec_prefix"
  12322. exec_prefix="$acl_final_exec_prefix"
  12323. eval x=\"$x\"
  12324. exec_prefix="$acl_save_exec_prefix"
  12325. prefix="$acl_save_prefix"
  12326. if test "X$x" = "X-L$additional_libdir"; then
  12327. haveit=yes
  12328. break
  12329. fi
  12330. done
  12331. if test -z "$haveit"; then
  12332. if test -d "$additional_libdir"; then
  12333. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12334. fi
  12335. fi
  12336. fi
  12337. fi
  12338. ;;
  12339. -R*)
  12340. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12341. if test "$enable_rpath" != no; then
  12342. haveit=
  12343. for x in $rpathdirs; do
  12344. if test "X$x" = "X$dir"; then
  12345. haveit=yes
  12346. break
  12347. fi
  12348. done
  12349. if test -z "$haveit"; then
  12350. rpathdirs="$rpathdirs $dir"
  12351. fi
  12352. haveit=
  12353. for x in $ltrpathdirs; do
  12354. if test "X$x" = "X$dir"; then
  12355. haveit=yes
  12356. break
  12357. fi
  12358. done
  12359. if test -z "$haveit"; then
  12360. ltrpathdirs="$ltrpathdirs $dir"
  12361. fi
  12362. fi
  12363. ;;
  12364. -l*)
  12365. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12366. ;;
  12367. *.la)
  12368. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12369. ;;
  12370. *)
  12371. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12372. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12373. ;;
  12374. esac
  12375. done
  12376. fi
  12377. else
  12378. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12379. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12380. fi
  12381. fi
  12382. fi
  12383. done
  12384. done
  12385. if test "X$rpathdirs" != "X"; then
  12386. if test -n "$acl_hardcode_libdir_separator"; then
  12387. alldirs=
  12388. for found_dir in $rpathdirs; do
  12389. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12390. done
  12391. acl_save_libdir="$libdir"
  12392. libdir="$alldirs"
  12393. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12394. libdir="$acl_save_libdir"
  12395. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12396. else
  12397. for found_dir in $rpathdirs; do
  12398. acl_save_libdir="$libdir"
  12399. libdir="$found_dir"
  12400. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12401. libdir="$acl_save_libdir"
  12402. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12403. done
  12404. fi
  12405. fi
  12406. if test "X$ltrpathdirs" != "X"; then
  12407. for found_dir in $ltrpathdirs; do
  12408. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12409. done
  12410. fi
  12411. cat >conftest.$ac_ext <<_ACEOF
  12412. /* confdefs.h. */
  12413. _ACEOF
  12414. cat confdefs.h >>conftest.$ac_ext
  12415. cat >>conftest.$ac_ext <<_ACEOF
  12416. /* end confdefs.h. */
  12417. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12418. int
  12419. main ()
  12420. {
  12421. ;
  12422. return 0;
  12423. }
  12424. _ACEOF
  12425. rm -f conftest.$ac_objext conftest$ac_exeext
  12426. if { (ac_try="$ac_link"
  12427. case "(($ac_try" in
  12428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12429. *) ac_try_echo=$ac_try;;
  12430. esac
  12431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12432. (eval "$ac_link") 2>conftest.er1
  12433. ac_status=$?
  12434. grep -v '^ *+' conftest.er1 >conftest.err
  12435. rm -f conftest.er1
  12436. cat conftest.err >&5
  12437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12438. (exit $ac_status); } && {
  12439. test -z "$ac_cxx_werror_flag" ||
  12440. test ! -s conftest.err
  12441. } && test -s conftest$ac_exeext &&
  12442. $as_test_x conftest$ac_exeext; then
  12443. cat >>confdefs.h <<\_ACEOF
  12444. #define HAVE_BUILTIN_EXPECT 1
  12445. _ACEOF
  12446. else
  12447. echo "$as_me: failed program was:" >&5
  12448. sed 's/^/| /' conftest.$ac_ext >&5
  12449. fi
  12450. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12451. conftest$ac_exeext conftest.$ac_ext
  12452. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12453. do
  12454. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12455. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12456. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12457. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12458. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12459. echo $ECHO_N "(cached) $ECHO_C" >&6
  12460. fi
  12461. ac_res=`eval echo '${'$as_ac_Header'}'`
  12462. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12463. echo "${ECHO_T}$ac_res" >&6; }
  12464. else
  12465. # Is the header compilable?
  12466. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12467. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12468. cat >conftest.$ac_ext <<_ACEOF
  12469. /* confdefs.h. */
  12470. _ACEOF
  12471. cat confdefs.h >>conftest.$ac_ext
  12472. cat >>conftest.$ac_ext <<_ACEOF
  12473. /* end confdefs.h. */
  12474. $ac_includes_default
  12475. #include <$ac_header>
  12476. _ACEOF
  12477. rm -f conftest.$ac_objext
  12478. if { (ac_try="$ac_compile"
  12479. case "(($ac_try" in
  12480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12481. *) ac_try_echo=$ac_try;;
  12482. esac
  12483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12484. (eval "$ac_compile") 2>conftest.er1
  12485. ac_status=$?
  12486. grep -v '^ *+' conftest.er1 >conftest.err
  12487. rm -f conftest.er1
  12488. cat conftest.err >&5
  12489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12490. (exit $ac_status); } && {
  12491. test -z "$ac_cxx_werror_flag" ||
  12492. test ! -s conftest.err
  12493. } && test -s conftest.$ac_objext; then
  12494. ac_header_compiler=yes
  12495. else
  12496. echo "$as_me: failed program was:" >&5
  12497. sed 's/^/| /' conftest.$ac_ext >&5
  12498. ac_header_compiler=no
  12499. fi
  12500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12501. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12502. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12503. # Is the header present?
  12504. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12505. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12506. cat >conftest.$ac_ext <<_ACEOF
  12507. /* confdefs.h. */
  12508. _ACEOF
  12509. cat confdefs.h >>conftest.$ac_ext
  12510. cat >>conftest.$ac_ext <<_ACEOF
  12511. /* end confdefs.h. */
  12512. #include <$ac_header>
  12513. _ACEOF
  12514. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12515. case "(($ac_try" in
  12516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12517. *) ac_try_echo=$ac_try;;
  12518. esac
  12519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12520. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12521. ac_status=$?
  12522. grep -v '^ *+' conftest.er1 >conftest.err
  12523. rm -f conftest.er1
  12524. cat conftest.err >&5
  12525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12526. (exit $ac_status); } >/dev/null && {
  12527. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12528. test ! -s conftest.err
  12529. }; then
  12530. ac_header_preproc=yes
  12531. else
  12532. echo "$as_me: failed program was:" >&5
  12533. sed 's/^/| /' conftest.$ac_ext >&5
  12534. ac_header_preproc=no
  12535. fi
  12536. rm -f conftest.err conftest.$ac_ext
  12537. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12538. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12539. # So? What about this header?
  12540. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12541. yes:no: )
  12542. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12543. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12544. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12545. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12546. ac_header_preproc=yes
  12547. ;;
  12548. no:yes:* )
  12549. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12550. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12551. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12552. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12553. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12554. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12555. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12556. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12557. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12558. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12559. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12560. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12561. ( cat <<\_ASBOX
  12562. ## ----------------------------------------------- ##
  12563. ## Report this to t-tujikawa@users.sourceforge.net ##
  12564. ## ----------------------------------------------- ##
  12565. _ASBOX
  12566. ) | sed "s/^/$as_me: WARNING: /" >&2
  12567. ;;
  12568. esac
  12569. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12570. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12571. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12572. echo $ECHO_N "(cached) $ECHO_C" >&6
  12573. else
  12574. eval "$as_ac_Header=\$ac_header_preproc"
  12575. fi
  12576. ac_res=`eval echo '${'$as_ac_Header'}'`
  12577. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12578. echo "${ECHO_T}$ac_res" >&6; }
  12579. fi
  12580. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12581. cat >>confdefs.h <<_ACEOF
  12582. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12583. _ACEOF
  12584. fi
  12585. done
  12586. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12587. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12588. argz_next __fsetlocking
  12589. do
  12590. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12591. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12592. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12593. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12594. echo $ECHO_N "(cached) $ECHO_C" >&6
  12595. else
  12596. cat >conftest.$ac_ext <<_ACEOF
  12597. /* confdefs.h. */
  12598. _ACEOF
  12599. cat confdefs.h >>conftest.$ac_ext
  12600. cat >>conftest.$ac_ext <<_ACEOF
  12601. /* end confdefs.h. */
  12602. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12603. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12604. #define $ac_func innocuous_$ac_func
  12605. /* System header to define __stub macros and hopefully few prototypes,
  12606. which can conflict with char $ac_func (); below.
  12607. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12608. <limits.h> exists even on freestanding compilers. */
  12609. #ifdef __STDC__
  12610. # include <limits.h>
  12611. #else
  12612. # include <assert.h>
  12613. #endif
  12614. #undef $ac_func
  12615. /* Override any GCC internal prototype to avoid an error.
  12616. Use char because int might match the return type of a GCC
  12617. builtin and then its argument prototype would still apply. */
  12618. #ifdef __cplusplus
  12619. extern "C"
  12620. #endif
  12621. char $ac_func ();
  12622. /* The GNU C library defines this for functions which it implements
  12623. to always fail with ENOSYS. Some functions are actually named
  12624. something starting with __ and the normal name is an alias. */
  12625. #if defined __stub_$ac_func || defined __stub___$ac_func
  12626. choke me
  12627. #endif
  12628. int
  12629. main ()
  12630. {
  12631. return $ac_func ();
  12632. ;
  12633. return 0;
  12634. }
  12635. _ACEOF
  12636. rm -f conftest.$ac_objext conftest$ac_exeext
  12637. if { (ac_try="$ac_link"
  12638. case "(($ac_try" in
  12639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12640. *) ac_try_echo=$ac_try;;
  12641. esac
  12642. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12643. (eval "$ac_link") 2>conftest.er1
  12644. ac_status=$?
  12645. grep -v '^ *+' conftest.er1 >conftest.err
  12646. rm -f conftest.er1
  12647. cat conftest.err >&5
  12648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12649. (exit $ac_status); } && {
  12650. test -z "$ac_cxx_werror_flag" ||
  12651. test ! -s conftest.err
  12652. } && test -s conftest$ac_exeext &&
  12653. $as_test_x conftest$ac_exeext; then
  12654. eval "$as_ac_var=yes"
  12655. else
  12656. echo "$as_me: failed program was:" >&5
  12657. sed 's/^/| /' conftest.$ac_ext >&5
  12658. eval "$as_ac_var=no"
  12659. fi
  12660. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12661. conftest$ac_exeext conftest.$ac_ext
  12662. fi
  12663. ac_res=`eval echo '${'$as_ac_var'}'`
  12664. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12665. echo "${ECHO_T}$ac_res" >&6; }
  12666. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12667. cat >>confdefs.h <<_ACEOF
  12668. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12669. _ACEOF
  12670. fi
  12671. done
  12672. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12673. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12674. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12675. echo $ECHO_N "(cached) $ECHO_C" >&6
  12676. else
  12677. cat >conftest.$ac_ext <<_ACEOF
  12678. /* confdefs.h. */
  12679. _ACEOF
  12680. cat confdefs.h >>conftest.$ac_ext
  12681. cat >>conftest.$ac_ext <<_ACEOF
  12682. /* end confdefs.h. */
  12683. #include <stdio.h>
  12684. int
  12685. main ()
  12686. {
  12687. #ifndef feof_unlocked
  12688. char *p = (char *) feof_unlocked;
  12689. #endif
  12690. ;
  12691. return 0;
  12692. }
  12693. _ACEOF
  12694. rm -f conftest.$ac_objext
  12695. if { (ac_try="$ac_compile"
  12696. case "(($ac_try" in
  12697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12698. *) ac_try_echo=$ac_try;;
  12699. esac
  12700. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12701. (eval "$ac_compile") 2>conftest.er1
  12702. ac_status=$?
  12703. grep -v '^ *+' conftest.er1 >conftest.err
  12704. rm -f conftest.er1
  12705. cat conftest.err >&5
  12706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12707. (exit $ac_status); } && {
  12708. test -z "$ac_cxx_werror_flag" ||
  12709. test ! -s conftest.err
  12710. } && test -s conftest.$ac_objext; then
  12711. ac_cv_have_decl_feof_unlocked=yes
  12712. else
  12713. echo "$as_me: failed program was:" >&5
  12714. sed 's/^/| /' conftest.$ac_ext >&5
  12715. ac_cv_have_decl_feof_unlocked=no
  12716. fi
  12717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12718. fi
  12719. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12720. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12721. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12722. gt_value=1
  12723. else
  12724. gt_value=0
  12725. fi
  12726. cat >>confdefs.h <<_ACEOF
  12727. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12728. _ACEOF
  12729. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12730. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12731. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12732. echo $ECHO_N "(cached) $ECHO_C" >&6
  12733. else
  12734. cat >conftest.$ac_ext <<_ACEOF
  12735. /* confdefs.h. */
  12736. _ACEOF
  12737. cat confdefs.h >>conftest.$ac_ext
  12738. cat >>conftest.$ac_ext <<_ACEOF
  12739. /* end confdefs.h. */
  12740. #include <stdio.h>
  12741. int
  12742. main ()
  12743. {
  12744. #ifndef fgets_unlocked
  12745. char *p = (char *) fgets_unlocked;
  12746. #endif
  12747. ;
  12748. return 0;
  12749. }
  12750. _ACEOF
  12751. rm -f conftest.$ac_objext
  12752. if { (ac_try="$ac_compile"
  12753. case "(($ac_try" in
  12754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12755. *) ac_try_echo=$ac_try;;
  12756. esac
  12757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12758. (eval "$ac_compile") 2>conftest.er1
  12759. ac_status=$?
  12760. grep -v '^ *+' conftest.er1 >conftest.err
  12761. rm -f conftest.er1
  12762. cat conftest.err >&5
  12763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12764. (exit $ac_status); } && {
  12765. test -z "$ac_cxx_werror_flag" ||
  12766. test ! -s conftest.err
  12767. } && test -s conftest.$ac_objext; then
  12768. ac_cv_have_decl_fgets_unlocked=yes
  12769. else
  12770. echo "$as_me: failed program was:" >&5
  12771. sed 's/^/| /' conftest.$ac_ext >&5
  12772. ac_cv_have_decl_fgets_unlocked=no
  12773. fi
  12774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12775. fi
  12776. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12777. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12778. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12779. gt_value=1
  12780. else
  12781. gt_value=0
  12782. fi
  12783. cat >>confdefs.h <<_ACEOF
  12784. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12785. _ACEOF
  12786. am_save_CPPFLAGS="$CPPFLAGS"
  12787. for element in $INCICONV; do
  12788. haveit=
  12789. for x in $CPPFLAGS; do
  12790. acl_save_prefix="$prefix"
  12791. prefix="$acl_final_prefix"
  12792. acl_save_exec_prefix="$exec_prefix"
  12793. exec_prefix="$acl_final_exec_prefix"
  12794. eval x=\"$x\"
  12795. exec_prefix="$acl_save_exec_prefix"
  12796. prefix="$acl_save_prefix"
  12797. if test "X$x" = "X$element"; then
  12798. haveit=yes
  12799. break
  12800. fi
  12801. done
  12802. if test -z "$haveit"; then
  12803. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12804. fi
  12805. done
  12806. { echo "$as_me:$LINENO: checking for iconv" >&5
  12807. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12808. if test "${am_cv_func_iconv+set}" = set; then
  12809. echo $ECHO_N "(cached) $ECHO_C" >&6
  12810. else
  12811. am_cv_func_iconv="no, consider installing GNU libiconv"
  12812. am_cv_lib_iconv=no
  12813. cat >conftest.$ac_ext <<_ACEOF
  12814. /* confdefs.h. */
  12815. _ACEOF
  12816. cat confdefs.h >>conftest.$ac_ext
  12817. cat >>conftest.$ac_ext <<_ACEOF
  12818. /* end confdefs.h. */
  12819. #include <stdlib.h>
  12820. #include <iconv.h>
  12821. int
  12822. main ()
  12823. {
  12824. iconv_t cd = iconv_open("","");
  12825. iconv(cd,NULL,NULL,NULL,NULL);
  12826. iconv_close(cd);
  12827. ;
  12828. return 0;
  12829. }
  12830. _ACEOF
  12831. rm -f conftest.$ac_objext conftest$ac_exeext
  12832. if { (ac_try="$ac_link"
  12833. case "(($ac_try" in
  12834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12835. *) ac_try_echo=$ac_try;;
  12836. esac
  12837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12838. (eval "$ac_link") 2>conftest.er1
  12839. ac_status=$?
  12840. grep -v '^ *+' conftest.er1 >conftest.err
  12841. rm -f conftest.er1
  12842. cat conftest.err >&5
  12843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12844. (exit $ac_status); } && {
  12845. test -z "$ac_cxx_werror_flag" ||
  12846. test ! -s conftest.err
  12847. } && test -s conftest$ac_exeext &&
  12848. $as_test_x conftest$ac_exeext; then
  12849. am_cv_func_iconv=yes
  12850. else
  12851. echo "$as_me: failed program was:" >&5
  12852. sed 's/^/| /' conftest.$ac_ext >&5
  12853. fi
  12854. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12855. conftest$ac_exeext conftest.$ac_ext
  12856. if test "$am_cv_func_iconv" != yes; then
  12857. am_save_LIBS="$LIBS"
  12858. LIBS="$LIBS $LIBICONV"
  12859. cat >conftest.$ac_ext <<_ACEOF
  12860. /* confdefs.h. */
  12861. _ACEOF
  12862. cat confdefs.h >>conftest.$ac_ext
  12863. cat >>conftest.$ac_ext <<_ACEOF
  12864. /* end confdefs.h. */
  12865. #include <stdlib.h>
  12866. #include <iconv.h>
  12867. int
  12868. main ()
  12869. {
  12870. iconv_t cd = iconv_open("","");
  12871. iconv(cd,NULL,NULL,NULL,NULL);
  12872. iconv_close(cd);
  12873. ;
  12874. return 0;
  12875. }
  12876. _ACEOF
  12877. rm -f conftest.$ac_objext conftest$ac_exeext
  12878. if { (ac_try="$ac_link"
  12879. case "(($ac_try" in
  12880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12881. *) ac_try_echo=$ac_try;;
  12882. esac
  12883. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12884. (eval "$ac_link") 2>conftest.er1
  12885. ac_status=$?
  12886. grep -v '^ *+' conftest.er1 >conftest.err
  12887. rm -f conftest.er1
  12888. cat conftest.err >&5
  12889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12890. (exit $ac_status); } && {
  12891. test -z "$ac_cxx_werror_flag" ||
  12892. test ! -s conftest.err
  12893. } && test -s conftest$ac_exeext &&
  12894. $as_test_x conftest$ac_exeext; then
  12895. am_cv_lib_iconv=yes
  12896. am_cv_func_iconv=yes
  12897. else
  12898. echo "$as_me: failed program was:" >&5
  12899. sed 's/^/| /' conftest.$ac_ext >&5
  12900. fi
  12901. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12902. conftest$ac_exeext conftest.$ac_ext
  12903. LIBS="$am_save_LIBS"
  12904. fi
  12905. fi
  12906. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12907. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12908. if test "$am_cv_func_iconv" = yes; then
  12909. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12910. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12911. if test "${am_cv_func_iconv_works+set}" = set; then
  12912. echo $ECHO_N "(cached) $ECHO_C" >&6
  12913. else
  12914. am_save_LIBS="$LIBS"
  12915. if test $am_cv_lib_iconv = yes; then
  12916. LIBS="$LIBS $LIBICONV"
  12917. fi
  12918. if test "$cross_compiling" = yes; then
  12919. case "$host_os" in
  12920. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12921. *) am_cv_func_iconv_works="guessing yes" ;;
  12922. esac
  12923. else
  12924. cat >conftest.$ac_ext <<_ACEOF
  12925. /* confdefs.h. */
  12926. _ACEOF
  12927. cat confdefs.h >>conftest.$ac_ext
  12928. cat >>conftest.$ac_ext <<_ACEOF
  12929. /* end confdefs.h. */
  12930. #include <iconv.h>
  12931. #include <string.h>
  12932. int main ()
  12933. {
  12934. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12935. returns. */
  12936. {
  12937. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12938. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12939. {
  12940. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12941. char buf[10];
  12942. const char *inptr = input;
  12943. size_t inbytesleft = strlen (input);
  12944. char *outptr = buf;
  12945. size_t outbytesleft = sizeof (buf);
  12946. size_t res = iconv (cd_utf8_to_88591,
  12947. (char **) &inptr, &inbytesleft,
  12948. &outptr, &outbytesleft);
  12949. if (res == 0)
  12950. return 1;
  12951. }
  12952. }
  12953. #if 0 /* This bug could be worked around by the caller. */
  12954. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12955. {
  12956. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12957. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12958. {
  12959. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12960. char buf[50];
  12961. const char *inptr = input;
  12962. size_t inbytesleft = strlen (input);
  12963. char *outptr = buf;
  12964. size_t outbytesleft = sizeof (buf);
  12965. size_t res = iconv (cd_88591_to_utf8,
  12966. (char **) &inptr, &inbytesleft,
  12967. &outptr, &outbytesleft);
  12968. if ((int)res > 0)
  12969. return 1;
  12970. }
  12971. }
  12972. #endif
  12973. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12974. provided. */
  12975. if (/* Try standardized names. */
  12976. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12977. /* Try IRIX, OSF/1 names. */
  12978. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12979. /* Try AIX names. */
  12980. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12981. /* Try HP-UX names. */
  12982. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12983. return 1;
  12984. return 0;
  12985. }
  12986. _ACEOF
  12987. rm -f conftest$ac_exeext
  12988. if { (ac_try="$ac_link"
  12989. case "(($ac_try" in
  12990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12991. *) ac_try_echo=$ac_try;;
  12992. esac
  12993. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12994. (eval "$ac_link") 2>&5
  12995. ac_status=$?
  12996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12997. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12998. { (case "(($ac_try" in
  12999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13000. *) ac_try_echo=$ac_try;;
  13001. esac
  13002. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13003. (eval "$ac_try") 2>&5
  13004. ac_status=$?
  13005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13006. (exit $ac_status); }; }; then
  13007. am_cv_func_iconv_works=yes
  13008. else
  13009. echo "$as_me: program exited with status $ac_status" >&5
  13010. echo "$as_me: failed program was:" >&5
  13011. sed 's/^/| /' conftest.$ac_ext >&5
  13012. ( exit $ac_status )
  13013. am_cv_func_iconv_works=no
  13014. fi
  13015. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13016. fi
  13017. LIBS="$am_save_LIBS"
  13018. fi
  13019. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13020. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  13021. case "$am_cv_func_iconv_works" in
  13022. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13023. *) am_func_iconv=yes ;;
  13024. esac
  13025. else
  13026. am_func_iconv=no am_cv_lib_iconv=no
  13027. fi
  13028. if test "$am_func_iconv" = yes; then
  13029. cat >>confdefs.h <<\_ACEOF
  13030. #define HAVE_ICONV 1
  13031. _ACEOF
  13032. fi
  13033. if test "$am_cv_lib_iconv" = yes; then
  13034. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13035. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  13036. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13037. echo "${ECHO_T}$LIBICONV" >&6; }
  13038. else
  13039. CPPFLAGS="$am_save_CPPFLAGS"
  13040. LIBICONV=
  13041. LTLIBICONV=
  13042. fi
  13043. if test "$am_cv_func_iconv" = yes; then
  13044. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13045. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  13046. if test "${am_cv_proto_iconv+set}" = set; then
  13047. echo $ECHO_N "(cached) $ECHO_C" >&6
  13048. else
  13049. cat >conftest.$ac_ext <<_ACEOF
  13050. /* confdefs.h. */
  13051. _ACEOF
  13052. cat confdefs.h >>conftest.$ac_ext
  13053. cat >>conftest.$ac_ext <<_ACEOF
  13054. /* end confdefs.h. */
  13055. #include <stdlib.h>
  13056. #include <iconv.h>
  13057. extern
  13058. #ifdef __cplusplus
  13059. "C"
  13060. #endif
  13061. #if defined(__STDC__) || defined(__cplusplus)
  13062. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13063. #else
  13064. size_t iconv();
  13065. #endif
  13066. int
  13067. main ()
  13068. {
  13069. ;
  13070. return 0;
  13071. }
  13072. _ACEOF
  13073. rm -f conftest.$ac_objext
  13074. if { (ac_try="$ac_compile"
  13075. case "(($ac_try" in
  13076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13077. *) ac_try_echo=$ac_try;;
  13078. esac
  13079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13080. (eval "$ac_compile") 2>conftest.er1
  13081. ac_status=$?
  13082. grep -v '^ *+' conftest.er1 >conftest.err
  13083. rm -f conftest.er1
  13084. cat conftest.err >&5
  13085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13086. (exit $ac_status); } && {
  13087. test -z "$ac_cxx_werror_flag" ||
  13088. test ! -s conftest.err
  13089. } && test -s conftest.$ac_objext; then
  13090. am_cv_proto_iconv_arg1=""
  13091. else
  13092. echo "$as_me: failed program was:" >&5
  13093. sed 's/^/| /' conftest.$ac_ext >&5
  13094. am_cv_proto_iconv_arg1="const"
  13095. fi
  13096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13097. 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);"
  13098. fi
  13099. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13100. { echo "$as_me:$LINENO: result: ${ac_t:-
  13101. }$am_cv_proto_iconv" >&5
  13102. echo "${ECHO_T}${ac_t:-
  13103. }$am_cv_proto_iconv" >&6; }
  13104. cat >>confdefs.h <<_ACEOF
  13105. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13106. _ACEOF
  13107. fi
  13108. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13109. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  13110. if test "${gt_cv_nl_locale_name+set}" = set; then
  13111. echo $ECHO_N "(cached) $ECHO_C" >&6
  13112. else
  13113. cat >conftest.$ac_ext <<_ACEOF
  13114. /* confdefs.h. */
  13115. _ACEOF
  13116. cat confdefs.h >>conftest.$ac_ext
  13117. cat >>conftest.$ac_ext <<_ACEOF
  13118. /* end confdefs.h. */
  13119. #include <langinfo.h>
  13120. #include <locale.h>
  13121. int
  13122. main ()
  13123. {
  13124. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13125. return !cs;
  13126. ;
  13127. return 0;
  13128. }
  13129. _ACEOF
  13130. rm -f conftest.$ac_objext conftest$ac_exeext
  13131. if { (ac_try="$ac_link"
  13132. case "(($ac_try" in
  13133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13134. *) ac_try_echo=$ac_try;;
  13135. esac
  13136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13137. (eval "$ac_link") 2>conftest.er1
  13138. ac_status=$?
  13139. grep -v '^ *+' conftest.er1 >conftest.err
  13140. rm -f conftest.er1
  13141. cat conftest.err >&5
  13142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13143. (exit $ac_status); } && {
  13144. test -z "$ac_cxx_werror_flag" ||
  13145. test ! -s conftest.err
  13146. } && test -s conftest$ac_exeext &&
  13147. $as_test_x conftest$ac_exeext; then
  13148. gt_cv_nl_locale_name=yes
  13149. else
  13150. echo "$as_me: failed program was:" >&5
  13151. sed 's/^/| /' conftest.$ac_ext >&5
  13152. gt_cv_nl_locale_name=no
  13153. fi
  13154. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13155. conftest$ac_exeext conftest.$ac_ext
  13156. fi
  13157. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13158. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  13159. if test $gt_cv_nl_locale_name = yes; then
  13160. cat >>confdefs.h <<\_ACEOF
  13161. #define HAVE_NL_LOCALE_NAME 1
  13162. _ACEOF
  13163. fi
  13164. for ac_prog in bison
  13165. do
  13166. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13167. set dummy $ac_prog; ac_word=$2
  13168. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13170. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13171. echo $ECHO_N "(cached) $ECHO_C" >&6
  13172. else
  13173. if test -n "$INTLBISON"; then
  13174. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13175. else
  13176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13177. for as_dir in $PATH
  13178. do
  13179. IFS=$as_save_IFS
  13180. test -z "$as_dir" && as_dir=.
  13181. for ac_exec_ext in '' $ac_executable_extensions; do
  13182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13183. ac_cv_prog_INTLBISON="$ac_prog"
  13184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13185. break 2
  13186. fi
  13187. done
  13188. done
  13189. IFS=$as_save_IFS
  13190. fi
  13191. fi
  13192. INTLBISON=$ac_cv_prog_INTLBISON
  13193. if test -n "$INTLBISON"; then
  13194. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13195. echo "${ECHO_T}$INTLBISON" >&6; }
  13196. else
  13197. { echo "$as_me:$LINENO: result: no" >&5
  13198. echo "${ECHO_T}no" >&6; }
  13199. fi
  13200. test -n "$INTLBISON" && break
  13201. done
  13202. if test -z "$INTLBISON"; then
  13203. ac_verc_fail=yes
  13204. else
  13205. { echo "$as_me:$LINENO: checking version of bison" >&5
  13206. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  13207. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13208. case $ac_prog_version in
  13209. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13210. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13211. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13212. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13213. esac
  13214. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13215. echo "${ECHO_T}$ac_prog_version" >&6; }
  13216. fi
  13217. if test $ac_verc_fail = yes; then
  13218. INTLBISON=:
  13219. fi
  13220. { echo "$as_me:$LINENO: checking for long long int" >&5
  13221. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  13222. if test "${ac_cv_type_long_long_int+set}" = set; then
  13223. echo $ECHO_N "(cached) $ECHO_C" >&6
  13224. else
  13225. cat >conftest.$ac_ext <<_ACEOF
  13226. /* confdefs.h. */
  13227. _ACEOF
  13228. cat confdefs.h >>conftest.$ac_ext
  13229. cat >>conftest.$ac_ext <<_ACEOF
  13230. /* end confdefs.h. */
  13231. /* Test preprocessor. */
  13232. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13233. error in preprocessor;
  13234. #endif
  13235. #if ! (18446744073709551615ULL <= -1ull)
  13236. error in preprocessor;
  13237. #endif
  13238. /* Test literals. */
  13239. long long int ll = 9223372036854775807ll;
  13240. long long int nll = -9223372036854775807LL;
  13241. unsigned long long int ull = 18446744073709551615ULL;
  13242. /* Test constant expressions. */
  13243. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  13244. ? 1 : -1)];
  13245. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  13246. ? 1 : -1)];
  13247. int i = 63;
  13248. int
  13249. main ()
  13250. {
  13251. /* Test availability of runtime routines for shift and division. */
  13252. long long int llmax = 9223372036854775807ll;
  13253. unsigned long long int ullmax = 18446744073709551615ull;
  13254. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  13255. | (llmax / ll) | (llmax % ll)
  13256. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  13257. | (ullmax / ull) | (ullmax % ull));
  13258. ;
  13259. return 0;
  13260. }
  13261. _ACEOF
  13262. rm -f conftest.$ac_objext conftest$ac_exeext
  13263. if { (ac_try="$ac_link"
  13264. case "(($ac_try" in
  13265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13266. *) ac_try_echo=$ac_try;;
  13267. esac
  13268. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13269. (eval "$ac_link") 2>conftest.er1
  13270. ac_status=$?
  13271. grep -v '^ *+' conftest.er1 >conftest.err
  13272. rm -f conftest.er1
  13273. cat conftest.err >&5
  13274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13275. (exit $ac_status); } && {
  13276. test -z "$ac_cxx_werror_flag" ||
  13277. test ! -s conftest.err
  13278. } && test -s conftest$ac_exeext &&
  13279. $as_test_x conftest$ac_exeext; then
  13280. if test "$cross_compiling" = yes; then
  13281. ac_cv_type_long_long_int=yes
  13282. else
  13283. cat >conftest.$ac_ext <<_ACEOF
  13284. /* confdefs.h. */
  13285. _ACEOF
  13286. cat confdefs.h >>conftest.$ac_ext
  13287. cat >>conftest.$ac_ext <<_ACEOF
  13288. /* end confdefs.h. */
  13289. #include <limits.h>
  13290. #ifndef LLONG_MAX
  13291. # define HALF \
  13292. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13293. # define LLONG_MAX (HALF - 1 + HALF)
  13294. #endif
  13295. int
  13296. main ()
  13297. {
  13298. long long int n = 1;
  13299. int i;
  13300. for (i = 0; ; i++)
  13301. {
  13302. long long int m = n << i;
  13303. if (m >> i != n)
  13304. return 1;
  13305. if (LLONG_MAX / 2 < m)
  13306. break;
  13307. }
  13308. return 0;
  13309. ;
  13310. return 0;
  13311. }
  13312. _ACEOF
  13313. rm -f conftest$ac_exeext
  13314. if { (ac_try="$ac_link"
  13315. case "(($ac_try" in
  13316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13317. *) ac_try_echo=$ac_try;;
  13318. esac
  13319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13320. (eval "$ac_link") 2>&5
  13321. ac_status=$?
  13322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13323. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13324. { (case "(($ac_try" in
  13325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13326. *) ac_try_echo=$ac_try;;
  13327. esac
  13328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13329. (eval "$ac_try") 2>&5
  13330. ac_status=$?
  13331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13332. (exit $ac_status); }; }; then
  13333. ac_cv_type_long_long_int=yes
  13334. else
  13335. echo "$as_me: program exited with status $ac_status" >&5
  13336. echo "$as_me: failed program was:" >&5
  13337. sed 's/^/| /' conftest.$ac_ext >&5
  13338. ( exit $ac_status )
  13339. ac_cv_type_long_long_int=no
  13340. fi
  13341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13342. fi
  13343. else
  13344. echo "$as_me: failed program was:" >&5
  13345. sed 's/^/| /' conftest.$ac_ext >&5
  13346. ac_cv_type_long_long_int=no
  13347. fi
  13348. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13349. conftest$ac_exeext conftest.$ac_ext
  13350. fi
  13351. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13352. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13353. if test $ac_cv_type_long_long_int = yes; then
  13354. cat >>confdefs.h <<\_ACEOF
  13355. #define HAVE_LONG_LONG_INT 1
  13356. _ACEOF
  13357. fi
  13358. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13359. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13360. if test "${gt_cv_c_wchar_t+set}" = set; then
  13361. echo $ECHO_N "(cached) $ECHO_C" >&6
  13362. else
  13363. cat >conftest.$ac_ext <<_ACEOF
  13364. /* confdefs.h. */
  13365. _ACEOF
  13366. cat confdefs.h >>conftest.$ac_ext
  13367. cat >>conftest.$ac_ext <<_ACEOF
  13368. /* end confdefs.h. */
  13369. #include <stddef.h>
  13370. wchar_t foo = (wchar_t)'\0';
  13371. int
  13372. main ()
  13373. {
  13374. ;
  13375. return 0;
  13376. }
  13377. _ACEOF
  13378. rm -f conftest.$ac_objext
  13379. if { (ac_try="$ac_compile"
  13380. case "(($ac_try" in
  13381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13382. *) ac_try_echo=$ac_try;;
  13383. esac
  13384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13385. (eval "$ac_compile") 2>conftest.er1
  13386. ac_status=$?
  13387. grep -v '^ *+' conftest.er1 >conftest.err
  13388. rm -f conftest.er1
  13389. cat conftest.err >&5
  13390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13391. (exit $ac_status); } && {
  13392. test -z "$ac_cxx_werror_flag" ||
  13393. test ! -s conftest.err
  13394. } && test -s conftest.$ac_objext; then
  13395. gt_cv_c_wchar_t=yes
  13396. else
  13397. echo "$as_me: failed program was:" >&5
  13398. sed 's/^/| /' conftest.$ac_ext >&5
  13399. gt_cv_c_wchar_t=no
  13400. fi
  13401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13402. fi
  13403. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13404. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13405. if test $gt_cv_c_wchar_t = yes; then
  13406. cat >>confdefs.h <<\_ACEOF
  13407. #define HAVE_WCHAR_T 1
  13408. _ACEOF
  13409. fi
  13410. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13411. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13412. if test "${gt_cv_c_wint_t+set}" = set; then
  13413. echo $ECHO_N "(cached) $ECHO_C" >&6
  13414. else
  13415. cat >conftest.$ac_ext <<_ACEOF
  13416. /* confdefs.h. */
  13417. _ACEOF
  13418. cat confdefs.h >>conftest.$ac_ext
  13419. cat >>conftest.$ac_ext <<_ACEOF
  13420. /* end confdefs.h. */
  13421. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13422. <wchar.h>.
  13423. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13424. before <wchar.h>. */
  13425. #include <stddef.h>
  13426. #include <stdio.h>
  13427. #include <time.h>
  13428. #include <wchar.h>
  13429. wint_t foo = (wchar_t)'\0';
  13430. int
  13431. main ()
  13432. {
  13433. ;
  13434. return 0;
  13435. }
  13436. _ACEOF
  13437. rm -f conftest.$ac_objext
  13438. if { (ac_try="$ac_compile"
  13439. case "(($ac_try" in
  13440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13441. *) ac_try_echo=$ac_try;;
  13442. esac
  13443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13444. (eval "$ac_compile") 2>conftest.er1
  13445. ac_status=$?
  13446. grep -v '^ *+' conftest.er1 >conftest.err
  13447. rm -f conftest.er1
  13448. cat conftest.err >&5
  13449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13450. (exit $ac_status); } && {
  13451. test -z "$ac_cxx_werror_flag" ||
  13452. test ! -s conftest.err
  13453. } && test -s conftest.$ac_objext; then
  13454. gt_cv_c_wint_t=yes
  13455. else
  13456. echo "$as_me: failed program was:" >&5
  13457. sed 's/^/| /' conftest.$ac_ext >&5
  13458. gt_cv_c_wint_t=no
  13459. fi
  13460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13461. fi
  13462. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13463. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13464. if test $gt_cv_c_wint_t = yes; then
  13465. cat >>confdefs.h <<\_ACEOF
  13466. #define HAVE_WINT_T 1
  13467. _ACEOF
  13468. fi
  13469. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13470. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13471. if test "${gt_cv_c_intmax_t+set}" = set; then
  13472. echo $ECHO_N "(cached) $ECHO_C" >&6
  13473. else
  13474. cat >conftest.$ac_ext <<_ACEOF
  13475. /* confdefs.h. */
  13476. _ACEOF
  13477. cat confdefs.h >>conftest.$ac_ext
  13478. cat >>conftest.$ac_ext <<_ACEOF
  13479. /* end confdefs.h. */
  13480. #include <stddef.h>
  13481. #include <stdlib.h>
  13482. #if HAVE_STDINT_H_WITH_UINTMAX
  13483. #include <stdint.h>
  13484. #endif
  13485. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13486. #include <inttypes.h>
  13487. #endif
  13488. int
  13489. main ()
  13490. {
  13491. intmax_t x = -1;
  13492. return !x;
  13493. ;
  13494. return 0;
  13495. }
  13496. _ACEOF
  13497. rm -f conftest.$ac_objext
  13498. if { (ac_try="$ac_compile"
  13499. case "(($ac_try" in
  13500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13501. *) ac_try_echo=$ac_try;;
  13502. esac
  13503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13504. (eval "$ac_compile") 2>conftest.er1
  13505. ac_status=$?
  13506. grep -v '^ *+' conftest.er1 >conftest.err
  13507. rm -f conftest.er1
  13508. cat conftest.err >&5
  13509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13510. (exit $ac_status); } && {
  13511. test -z "$ac_cxx_werror_flag" ||
  13512. test ! -s conftest.err
  13513. } && test -s conftest.$ac_objext; then
  13514. gt_cv_c_intmax_t=yes
  13515. else
  13516. echo "$as_me: failed program was:" >&5
  13517. sed 's/^/| /' conftest.$ac_ext >&5
  13518. gt_cv_c_intmax_t=no
  13519. fi
  13520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13521. fi
  13522. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13523. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13524. if test $gt_cv_c_intmax_t = yes; then
  13525. cat >>confdefs.h <<\_ACEOF
  13526. #define HAVE_INTMAX_T 1
  13527. _ACEOF
  13528. fi
  13529. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13530. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13531. if test "${gt_cv_func_printf_posix+set}" = set; then
  13532. echo $ECHO_N "(cached) $ECHO_C" >&6
  13533. else
  13534. if test "$cross_compiling" = yes; then
  13535. cat >conftest.$ac_ext <<_ACEOF
  13536. /* confdefs.h. */
  13537. _ACEOF
  13538. cat confdefs.h >>conftest.$ac_ext
  13539. cat >>conftest.$ac_ext <<_ACEOF
  13540. /* end confdefs.h. */
  13541. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13542. notposix
  13543. #endif
  13544. _ACEOF
  13545. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13546. $EGREP "notposix" >/dev/null 2>&1; then
  13547. gt_cv_func_printf_posix="guessing no"
  13548. else
  13549. gt_cv_func_printf_posix="guessing yes"
  13550. fi
  13551. rm -f conftest*
  13552. else
  13553. cat >conftest.$ac_ext <<_ACEOF
  13554. /* confdefs.h. */
  13555. _ACEOF
  13556. cat confdefs.h >>conftest.$ac_ext
  13557. cat >>conftest.$ac_ext <<_ACEOF
  13558. /* end confdefs.h. */
  13559. #include <stdio.h>
  13560. #include <string.h>
  13561. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13562. dollar expansion (possibly an autoconf bug). */
  13563. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13564. static char buf[100];
  13565. int main ()
  13566. {
  13567. sprintf (buf, format, 33, 55);
  13568. return (strcmp (buf, "55 33") != 0);
  13569. }
  13570. _ACEOF
  13571. rm -f conftest$ac_exeext
  13572. if { (ac_try="$ac_link"
  13573. case "(($ac_try" in
  13574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13575. *) ac_try_echo=$ac_try;;
  13576. esac
  13577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13578. (eval "$ac_link") 2>&5
  13579. ac_status=$?
  13580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13581. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13582. { (case "(($ac_try" in
  13583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13584. *) ac_try_echo=$ac_try;;
  13585. esac
  13586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13587. (eval "$ac_try") 2>&5
  13588. ac_status=$?
  13589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13590. (exit $ac_status); }; }; then
  13591. gt_cv_func_printf_posix=yes
  13592. else
  13593. echo "$as_me: program exited with status $ac_status" >&5
  13594. echo "$as_me: failed program was:" >&5
  13595. sed 's/^/| /' conftest.$ac_ext >&5
  13596. ( exit $ac_status )
  13597. gt_cv_func_printf_posix=no
  13598. fi
  13599. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13600. fi
  13601. fi
  13602. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13603. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13604. case $gt_cv_func_printf_posix in
  13605. *yes)
  13606. cat >>confdefs.h <<\_ACEOF
  13607. #define HAVE_POSIX_PRINTF 1
  13608. _ACEOF
  13609. ;;
  13610. esac
  13611. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13612. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13613. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13614. echo $ECHO_N "(cached) $ECHO_C" >&6
  13615. else
  13616. cat >conftest.$ac_ext <<_ACEOF
  13617. /* confdefs.h. */
  13618. _ACEOF
  13619. cat confdefs.h >>conftest.$ac_ext
  13620. cat >>conftest.$ac_ext <<_ACEOF
  13621. /* end confdefs.h. */
  13622. #include <features.h>
  13623. #ifdef __GNU_LIBRARY__
  13624. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13625. Lucky GNU user
  13626. #endif
  13627. #endif
  13628. _ACEOF
  13629. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13630. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13631. ac_cv_gnu_library_2_1=yes
  13632. else
  13633. ac_cv_gnu_library_2_1=no
  13634. fi
  13635. rm -f conftest*
  13636. fi
  13637. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13638. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13639. GLIBC21="$ac_cv_gnu_library_2_1"
  13640. for ac_header in stdint.h
  13641. do
  13642. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13643. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13644. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13645. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13646. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13647. echo $ECHO_N "(cached) $ECHO_C" >&6
  13648. fi
  13649. ac_res=`eval echo '${'$as_ac_Header'}'`
  13650. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13651. echo "${ECHO_T}$ac_res" >&6; }
  13652. else
  13653. # Is the header compilable?
  13654. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13655. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13656. cat >conftest.$ac_ext <<_ACEOF
  13657. /* confdefs.h. */
  13658. _ACEOF
  13659. cat confdefs.h >>conftest.$ac_ext
  13660. cat >>conftest.$ac_ext <<_ACEOF
  13661. /* end confdefs.h. */
  13662. $ac_includes_default
  13663. #include <$ac_header>
  13664. _ACEOF
  13665. rm -f conftest.$ac_objext
  13666. if { (ac_try="$ac_compile"
  13667. case "(($ac_try" in
  13668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13669. *) ac_try_echo=$ac_try;;
  13670. esac
  13671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13672. (eval "$ac_compile") 2>conftest.er1
  13673. ac_status=$?
  13674. grep -v '^ *+' conftest.er1 >conftest.err
  13675. rm -f conftest.er1
  13676. cat conftest.err >&5
  13677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13678. (exit $ac_status); } && {
  13679. test -z "$ac_cxx_werror_flag" ||
  13680. test ! -s conftest.err
  13681. } && test -s conftest.$ac_objext; then
  13682. ac_header_compiler=yes
  13683. else
  13684. echo "$as_me: failed program was:" >&5
  13685. sed 's/^/| /' conftest.$ac_ext >&5
  13686. ac_header_compiler=no
  13687. fi
  13688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13689. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13690. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13691. # Is the header present?
  13692. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13693. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13694. cat >conftest.$ac_ext <<_ACEOF
  13695. /* confdefs.h. */
  13696. _ACEOF
  13697. cat confdefs.h >>conftest.$ac_ext
  13698. cat >>conftest.$ac_ext <<_ACEOF
  13699. /* end confdefs.h. */
  13700. #include <$ac_header>
  13701. _ACEOF
  13702. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13703. case "(($ac_try" in
  13704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13705. *) ac_try_echo=$ac_try;;
  13706. esac
  13707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13708. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13709. ac_status=$?
  13710. grep -v '^ *+' conftest.er1 >conftest.err
  13711. rm -f conftest.er1
  13712. cat conftest.err >&5
  13713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13714. (exit $ac_status); } >/dev/null && {
  13715. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13716. test ! -s conftest.err
  13717. }; then
  13718. ac_header_preproc=yes
  13719. else
  13720. echo "$as_me: failed program was:" >&5
  13721. sed 's/^/| /' conftest.$ac_ext >&5
  13722. ac_header_preproc=no
  13723. fi
  13724. rm -f conftest.err conftest.$ac_ext
  13725. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13726. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13727. # So? What about this header?
  13728. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13729. yes:no: )
  13730. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13731. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13732. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13733. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13734. ac_header_preproc=yes
  13735. ;;
  13736. no:yes:* )
  13737. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13738. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13739. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13740. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13741. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13742. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13743. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13744. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13745. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13746. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13747. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13748. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13749. ( cat <<\_ASBOX
  13750. ## ----------------------------------------------- ##
  13751. ## Report this to t-tujikawa@users.sourceforge.net ##
  13752. ## ----------------------------------------------- ##
  13753. _ASBOX
  13754. ) | sed "s/^/$as_me: WARNING: /" >&2
  13755. ;;
  13756. esac
  13757. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13758. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13759. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13760. echo $ECHO_N "(cached) $ECHO_C" >&6
  13761. else
  13762. eval "$as_ac_Header=\$ac_header_preproc"
  13763. fi
  13764. ac_res=`eval echo '${'$as_ac_Header'}'`
  13765. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13766. echo "${ECHO_T}$ac_res" >&6; }
  13767. fi
  13768. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13769. cat >>confdefs.h <<_ACEOF
  13770. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13771. _ACEOF
  13772. fi
  13773. done
  13774. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13775. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13776. if test "${gl_cv_size_max+set}" = set; then
  13777. echo $ECHO_N "(cached) $ECHO_C" >&6
  13778. else
  13779. gl_cv_size_max=
  13780. cat >conftest.$ac_ext <<_ACEOF
  13781. /* confdefs.h. */
  13782. _ACEOF
  13783. cat confdefs.h >>conftest.$ac_ext
  13784. cat >>conftest.$ac_ext <<_ACEOF
  13785. /* end confdefs.h. */
  13786. #include <limits.h>
  13787. #if HAVE_STDINT_H
  13788. #include <stdint.h>
  13789. #endif
  13790. #ifdef SIZE_MAX
  13791. Found it
  13792. #endif
  13793. _ACEOF
  13794. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13795. $EGREP "Found it" >/dev/null 2>&1; then
  13796. gl_cv_size_max=yes
  13797. fi
  13798. rm -f conftest*
  13799. if test -z "$gl_cv_size_max"; then
  13800. if test "$cross_compiling" = yes; then
  13801. # Depending upon the size, compute the lo and hi bounds.
  13802. cat >conftest.$ac_ext <<_ACEOF
  13803. /* confdefs.h. */
  13804. _ACEOF
  13805. cat confdefs.h >>conftest.$ac_ext
  13806. cat >>conftest.$ac_ext <<_ACEOF
  13807. /* end confdefs.h. */
  13808. #include <stddef.h>
  13809. #include <limits.h>
  13810. int
  13811. main ()
  13812. {
  13813. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13814. test_array [0] = 0
  13815. ;
  13816. return 0;
  13817. }
  13818. _ACEOF
  13819. rm -f conftest.$ac_objext
  13820. if { (ac_try="$ac_compile"
  13821. case "(($ac_try" in
  13822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13823. *) ac_try_echo=$ac_try;;
  13824. esac
  13825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13826. (eval "$ac_compile") 2>conftest.er1
  13827. ac_status=$?
  13828. grep -v '^ *+' conftest.er1 >conftest.err
  13829. rm -f conftest.er1
  13830. cat conftest.err >&5
  13831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13832. (exit $ac_status); } && {
  13833. test -z "$ac_cxx_werror_flag" ||
  13834. test ! -s conftest.err
  13835. } && test -s conftest.$ac_objext; then
  13836. ac_lo=0 ac_mid=0
  13837. while :; do
  13838. cat >conftest.$ac_ext <<_ACEOF
  13839. /* confdefs.h. */
  13840. _ACEOF
  13841. cat confdefs.h >>conftest.$ac_ext
  13842. cat >>conftest.$ac_ext <<_ACEOF
  13843. /* end confdefs.h. */
  13844. #include <stddef.h>
  13845. #include <limits.h>
  13846. int
  13847. main ()
  13848. {
  13849. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13850. test_array [0] = 0
  13851. ;
  13852. return 0;
  13853. }
  13854. _ACEOF
  13855. rm -f conftest.$ac_objext
  13856. if { (ac_try="$ac_compile"
  13857. case "(($ac_try" in
  13858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13859. *) ac_try_echo=$ac_try;;
  13860. esac
  13861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13862. (eval "$ac_compile") 2>conftest.er1
  13863. ac_status=$?
  13864. grep -v '^ *+' conftest.er1 >conftest.err
  13865. rm -f conftest.er1
  13866. cat conftest.err >&5
  13867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13868. (exit $ac_status); } && {
  13869. test -z "$ac_cxx_werror_flag" ||
  13870. test ! -s conftest.err
  13871. } && test -s conftest.$ac_objext; then
  13872. ac_hi=$ac_mid; break
  13873. else
  13874. echo "$as_me: failed program was:" >&5
  13875. sed 's/^/| /' conftest.$ac_ext >&5
  13876. ac_lo=`expr $ac_mid + 1`
  13877. if test $ac_lo -le $ac_mid; then
  13878. ac_lo= ac_hi=
  13879. break
  13880. fi
  13881. ac_mid=`expr 2 '*' $ac_mid + 1`
  13882. fi
  13883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13884. done
  13885. else
  13886. echo "$as_me: failed program was:" >&5
  13887. sed 's/^/| /' conftest.$ac_ext >&5
  13888. cat >conftest.$ac_ext <<_ACEOF
  13889. /* confdefs.h. */
  13890. _ACEOF
  13891. cat confdefs.h >>conftest.$ac_ext
  13892. cat >>conftest.$ac_ext <<_ACEOF
  13893. /* end confdefs.h. */
  13894. #include <stddef.h>
  13895. #include <limits.h>
  13896. int
  13897. main ()
  13898. {
  13899. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13900. test_array [0] = 0
  13901. ;
  13902. return 0;
  13903. }
  13904. _ACEOF
  13905. rm -f conftest.$ac_objext
  13906. if { (ac_try="$ac_compile"
  13907. case "(($ac_try" in
  13908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13909. *) ac_try_echo=$ac_try;;
  13910. esac
  13911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13912. (eval "$ac_compile") 2>conftest.er1
  13913. ac_status=$?
  13914. grep -v '^ *+' conftest.er1 >conftest.err
  13915. rm -f conftest.er1
  13916. cat conftest.err >&5
  13917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13918. (exit $ac_status); } && {
  13919. test -z "$ac_cxx_werror_flag" ||
  13920. test ! -s conftest.err
  13921. } && test -s conftest.$ac_objext; then
  13922. ac_hi=-1 ac_mid=-1
  13923. while :; do
  13924. cat >conftest.$ac_ext <<_ACEOF
  13925. /* confdefs.h. */
  13926. _ACEOF
  13927. cat confdefs.h >>conftest.$ac_ext
  13928. cat >>conftest.$ac_ext <<_ACEOF
  13929. /* end confdefs.h. */
  13930. #include <stddef.h>
  13931. #include <limits.h>
  13932. int
  13933. main ()
  13934. {
  13935. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13936. test_array [0] = 0
  13937. ;
  13938. return 0;
  13939. }
  13940. _ACEOF
  13941. rm -f conftest.$ac_objext
  13942. if { (ac_try="$ac_compile"
  13943. case "(($ac_try" in
  13944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13945. *) ac_try_echo=$ac_try;;
  13946. esac
  13947. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13948. (eval "$ac_compile") 2>conftest.er1
  13949. ac_status=$?
  13950. grep -v '^ *+' conftest.er1 >conftest.err
  13951. rm -f conftest.er1
  13952. cat conftest.err >&5
  13953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13954. (exit $ac_status); } && {
  13955. test -z "$ac_cxx_werror_flag" ||
  13956. test ! -s conftest.err
  13957. } && test -s conftest.$ac_objext; then
  13958. ac_lo=$ac_mid; break
  13959. else
  13960. echo "$as_me: failed program was:" >&5
  13961. sed 's/^/| /' conftest.$ac_ext >&5
  13962. ac_hi=`expr '(' $ac_mid ')' - 1`
  13963. if test $ac_mid -le $ac_hi; then
  13964. ac_lo= ac_hi=
  13965. break
  13966. fi
  13967. ac_mid=`expr 2 '*' $ac_mid`
  13968. fi
  13969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13970. done
  13971. else
  13972. echo "$as_me: failed program was:" >&5
  13973. sed 's/^/| /' conftest.$ac_ext >&5
  13974. ac_lo= ac_hi=
  13975. fi
  13976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13977. fi
  13978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13979. # Binary search between lo and hi bounds.
  13980. while test "x$ac_lo" != "x$ac_hi"; do
  13981. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13982. cat >conftest.$ac_ext <<_ACEOF
  13983. /* confdefs.h. */
  13984. _ACEOF
  13985. cat confdefs.h >>conftest.$ac_ext
  13986. cat >>conftest.$ac_ext <<_ACEOF
  13987. /* end confdefs.h. */
  13988. #include <stddef.h>
  13989. #include <limits.h>
  13990. int
  13991. main ()
  13992. {
  13993. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13994. test_array [0] = 0
  13995. ;
  13996. return 0;
  13997. }
  13998. _ACEOF
  13999. rm -f conftest.$ac_objext
  14000. if { (ac_try="$ac_compile"
  14001. case "(($ac_try" in
  14002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14003. *) ac_try_echo=$ac_try;;
  14004. esac
  14005. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14006. (eval "$ac_compile") 2>conftest.er1
  14007. ac_status=$?
  14008. grep -v '^ *+' conftest.er1 >conftest.err
  14009. rm -f conftest.er1
  14010. cat conftest.err >&5
  14011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14012. (exit $ac_status); } && {
  14013. test -z "$ac_cxx_werror_flag" ||
  14014. test ! -s conftest.err
  14015. } && test -s conftest.$ac_objext; then
  14016. ac_hi=$ac_mid
  14017. else
  14018. echo "$as_me: failed program was:" >&5
  14019. sed 's/^/| /' conftest.$ac_ext >&5
  14020. ac_lo=`expr '(' $ac_mid ')' + 1`
  14021. fi
  14022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14023. done
  14024. case $ac_lo in
  14025. ?*) size_t_bits_minus_1=$ac_lo;;
  14026. '') size_t_bits_minus_1= ;;
  14027. esac
  14028. else
  14029. cat >conftest.$ac_ext <<_ACEOF
  14030. /* confdefs.h. */
  14031. _ACEOF
  14032. cat confdefs.h >>conftest.$ac_ext
  14033. cat >>conftest.$ac_ext <<_ACEOF
  14034. /* end confdefs.h. */
  14035. #include <stddef.h>
  14036. #include <limits.h>
  14037. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14038. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14039. #include <stdio.h>
  14040. #include <stdlib.h>
  14041. int
  14042. main ()
  14043. {
  14044. FILE *f = fopen ("conftest.val", "w");
  14045. if (! f)
  14046. return 1;
  14047. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14048. {
  14049. long int i = longval ();
  14050. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14051. return 1;
  14052. fprintf (f, "%ld\n", i);
  14053. }
  14054. else
  14055. {
  14056. unsigned long int i = ulongval ();
  14057. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14058. return 1;
  14059. fprintf (f, "%lu\n", i);
  14060. }
  14061. return ferror (f) || fclose (f) != 0;
  14062. ;
  14063. return 0;
  14064. }
  14065. _ACEOF
  14066. rm -f conftest$ac_exeext
  14067. if { (ac_try="$ac_link"
  14068. case "(($ac_try" in
  14069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14070. *) ac_try_echo=$ac_try;;
  14071. esac
  14072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14073. (eval "$ac_link") 2>&5
  14074. ac_status=$?
  14075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14076. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14077. { (case "(($ac_try" in
  14078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14079. *) ac_try_echo=$ac_try;;
  14080. esac
  14081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14082. (eval "$ac_try") 2>&5
  14083. ac_status=$?
  14084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14085. (exit $ac_status); }; }; then
  14086. size_t_bits_minus_1=`cat conftest.val`
  14087. else
  14088. echo "$as_me: program exited with status $ac_status" >&5
  14089. echo "$as_me: failed program was:" >&5
  14090. sed 's/^/| /' conftest.$ac_ext >&5
  14091. ( exit $ac_status )
  14092. size_t_bits_minus_1=
  14093. fi
  14094. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14095. fi
  14096. rm -f conftest.val
  14097. if test "$cross_compiling" = yes; then
  14098. # Depending upon the size, compute the lo and hi bounds.
  14099. cat >conftest.$ac_ext <<_ACEOF
  14100. /* confdefs.h. */
  14101. _ACEOF
  14102. cat confdefs.h >>conftest.$ac_ext
  14103. cat >>conftest.$ac_ext <<_ACEOF
  14104. /* end confdefs.h. */
  14105. #include <stddef.h>
  14106. int
  14107. main ()
  14108. {
  14109. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14110. test_array [0] = 0
  14111. ;
  14112. return 0;
  14113. }
  14114. _ACEOF
  14115. rm -f conftest.$ac_objext
  14116. if { (ac_try="$ac_compile"
  14117. case "(($ac_try" in
  14118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14119. *) ac_try_echo=$ac_try;;
  14120. esac
  14121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14122. (eval "$ac_compile") 2>conftest.er1
  14123. ac_status=$?
  14124. grep -v '^ *+' conftest.er1 >conftest.err
  14125. rm -f conftest.er1
  14126. cat conftest.err >&5
  14127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14128. (exit $ac_status); } && {
  14129. test -z "$ac_cxx_werror_flag" ||
  14130. test ! -s conftest.err
  14131. } && test -s conftest.$ac_objext; then
  14132. ac_lo=0 ac_mid=0
  14133. while :; do
  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. #include <stddef.h>
  14141. int
  14142. main ()
  14143. {
  14144. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14145. test_array [0] = 0
  14146. ;
  14147. return 0;
  14148. }
  14149. _ACEOF
  14150. rm -f conftest.$ac_objext
  14151. if { (ac_try="$ac_compile"
  14152. case "(($ac_try" in
  14153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14154. *) ac_try_echo=$ac_try;;
  14155. esac
  14156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14157. (eval "$ac_compile") 2>conftest.er1
  14158. ac_status=$?
  14159. grep -v '^ *+' conftest.er1 >conftest.err
  14160. rm -f conftest.er1
  14161. cat conftest.err >&5
  14162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14163. (exit $ac_status); } && {
  14164. test -z "$ac_cxx_werror_flag" ||
  14165. test ! -s conftest.err
  14166. } && test -s conftest.$ac_objext; then
  14167. ac_hi=$ac_mid; break
  14168. else
  14169. echo "$as_me: failed program was:" >&5
  14170. sed 's/^/| /' conftest.$ac_ext >&5
  14171. ac_lo=`expr $ac_mid + 1`
  14172. if test $ac_lo -le $ac_mid; then
  14173. ac_lo= ac_hi=
  14174. break
  14175. fi
  14176. ac_mid=`expr 2 '*' $ac_mid + 1`
  14177. fi
  14178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14179. done
  14180. else
  14181. echo "$as_me: failed program was:" >&5
  14182. sed 's/^/| /' conftest.$ac_ext >&5
  14183. cat >conftest.$ac_ext <<_ACEOF
  14184. /* confdefs.h. */
  14185. _ACEOF
  14186. cat confdefs.h >>conftest.$ac_ext
  14187. cat >>conftest.$ac_ext <<_ACEOF
  14188. /* end confdefs.h. */
  14189. #include <stddef.h>
  14190. int
  14191. main ()
  14192. {
  14193. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  14194. test_array [0] = 0
  14195. ;
  14196. return 0;
  14197. }
  14198. _ACEOF
  14199. rm -f conftest.$ac_objext
  14200. if { (ac_try="$ac_compile"
  14201. case "(($ac_try" in
  14202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14203. *) ac_try_echo=$ac_try;;
  14204. esac
  14205. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14206. (eval "$ac_compile") 2>conftest.er1
  14207. ac_status=$?
  14208. grep -v '^ *+' conftest.er1 >conftest.err
  14209. rm -f conftest.er1
  14210. cat conftest.err >&5
  14211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14212. (exit $ac_status); } && {
  14213. test -z "$ac_cxx_werror_flag" ||
  14214. test ! -s conftest.err
  14215. } && test -s conftest.$ac_objext; then
  14216. ac_hi=-1 ac_mid=-1
  14217. while :; do
  14218. cat >conftest.$ac_ext <<_ACEOF
  14219. /* confdefs.h. */
  14220. _ACEOF
  14221. cat confdefs.h >>conftest.$ac_ext
  14222. cat >>conftest.$ac_ext <<_ACEOF
  14223. /* end confdefs.h. */
  14224. #include <stddef.h>
  14225. int
  14226. main ()
  14227. {
  14228. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  14229. test_array [0] = 0
  14230. ;
  14231. return 0;
  14232. }
  14233. _ACEOF
  14234. rm -f conftest.$ac_objext
  14235. if { (ac_try="$ac_compile"
  14236. case "(($ac_try" in
  14237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14238. *) ac_try_echo=$ac_try;;
  14239. esac
  14240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14241. (eval "$ac_compile") 2>conftest.er1
  14242. ac_status=$?
  14243. grep -v '^ *+' conftest.er1 >conftest.err
  14244. rm -f conftest.er1
  14245. cat conftest.err >&5
  14246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14247. (exit $ac_status); } && {
  14248. test -z "$ac_cxx_werror_flag" ||
  14249. test ! -s conftest.err
  14250. } && test -s conftest.$ac_objext; then
  14251. ac_lo=$ac_mid; break
  14252. else
  14253. echo "$as_me: failed program was:" >&5
  14254. sed 's/^/| /' conftest.$ac_ext >&5
  14255. ac_hi=`expr '(' $ac_mid ')' - 1`
  14256. if test $ac_mid -le $ac_hi; then
  14257. ac_lo= ac_hi=
  14258. break
  14259. fi
  14260. ac_mid=`expr 2 '*' $ac_mid`
  14261. fi
  14262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14263. done
  14264. else
  14265. echo "$as_me: failed program was:" >&5
  14266. sed 's/^/| /' conftest.$ac_ext >&5
  14267. ac_lo= ac_hi=
  14268. fi
  14269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14270. fi
  14271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14272. # Binary search between lo and hi bounds.
  14273. while test "x$ac_lo" != "x$ac_hi"; do
  14274. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14275. cat >conftest.$ac_ext <<_ACEOF
  14276. /* confdefs.h. */
  14277. _ACEOF
  14278. cat confdefs.h >>conftest.$ac_ext
  14279. cat >>conftest.$ac_ext <<_ACEOF
  14280. /* end confdefs.h. */
  14281. #include <stddef.h>
  14282. int
  14283. main ()
  14284. {
  14285. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14286. test_array [0] = 0
  14287. ;
  14288. return 0;
  14289. }
  14290. _ACEOF
  14291. rm -f conftest.$ac_objext
  14292. if { (ac_try="$ac_compile"
  14293. case "(($ac_try" in
  14294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14295. *) ac_try_echo=$ac_try;;
  14296. esac
  14297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14298. (eval "$ac_compile") 2>conftest.er1
  14299. ac_status=$?
  14300. grep -v '^ *+' conftest.er1 >conftest.err
  14301. rm -f conftest.er1
  14302. cat conftest.err >&5
  14303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14304. (exit $ac_status); } && {
  14305. test -z "$ac_cxx_werror_flag" ||
  14306. test ! -s conftest.err
  14307. } && test -s conftest.$ac_objext; then
  14308. ac_hi=$ac_mid
  14309. else
  14310. echo "$as_me: failed program was:" >&5
  14311. sed 's/^/| /' conftest.$ac_ext >&5
  14312. ac_lo=`expr '(' $ac_mid ')' + 1`
  14313. fi
  14314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14315. done
  14316. case $ac_lo in
  14317. ?*) fits_in_uint=$ac_lo;;
  14318. '') fits_in_uint= ;;
  14319. esac
  14320. else
  14321. cat >conftest.$ac_ext <<_ACEOF
  14322. /* confdefs.h. */
  14323. _ACEOF
  14324. cat confdefs.h >>conftest.$ac_ext
  14325. cat >>conftest.$ac_ext <<_ACEOF
  14326. /* end confdefs.h. */
  14327. #include <stddef.h>
  14328. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14329. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14330. #include <stdio.h>
  14331. #include <stdlib.h>
  14332. int
  14333. main ()
  14334. {
  14335. FILE *f = fopen ("conftest.val", "w");
  14336. if (! f)
  14337. return 1;
  14338. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14339. {
  14340. long int i = longval ();
  14341. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14342. return 1;
  14343. fprintf (f, "%ld\n", i);
  14344. }
  14345. else
  14346. {
  14347. unsigned long int i = ulongval ();
  14348. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14349. return 1;
  14350. fprintf (f, "%lu\n", i);
  14351. }
  14352. return ferror (f) || fclose (f) != 0;
  14353. ;
  14354. return 0;
  14355. }
  14356. _ACEOF
  14357. rm -f conftest$ac_exeext
  14358. if { (ac_try="$ac_link"
  14359. case "(($ac_try" in
  14360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14361. *) ac_try_echo=$ac_try;;
  14362. esac
  14363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14364. (eval "$ac_link") 2>&5
  14365. ac_status=$?
  14366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14367. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14368. { (case "(($ac_try" in
  14369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14370. *) ac_try_echo=$ac_try;;
  14371. esac
  14372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14373. (eval "$ac_try") 2>&5
  14374. ac_status=$?
  14375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14376. (exit $ac_status); }; }; then
  14377. fits_in_uint=`cat conftest.val`
  14378. else
  14379. echo "$as_me: program exited with status $ac_status" >&5
  14380. echo "$as_me: failed program was:" >&5
  14381. sed 's/^/| /' conftest.$ac_ext >&5
  14382. ( exit $ac_status )
  14383. fits_in_uint=
  14384. fi
  14385. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14386. fi
  14387. rm -f conftest.val
  14388. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14389. if test $fits_in_uint = 1; then
  14390. cat >conftest.$ac_ext <<_ACEOF
  14391. /* confdefs.h. */
  14392. _ACEOF
  14393. cat confdefs.h >>conftest.$ac_ext
  14394. cat >>conftest.$ac_ext <<_ACEOF
  14395. /* end confdefs.h. */
  14396. #include <stddef.h>
  14397. extern size_t foo;
  14398. extern unsigned long foo;
  14399. int
  14400. main ()
  14401. {
  14402. ;
  14403. return 0;
  14404. }
  14405. _ACEOF
  14406. rm -f conftest.$ac_objext
  14407. if { (ac_try="$ac_compile"
  14408. case "(($ac_try" in
  14409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14410. *) ac_try_echo=$ac_try;;
  14411. esac
  14412. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14413. (eval "$ac_compile") 2>conftest.er1
  14414. ac_status=$?
  14415. grep -v '^ *+' conftest.er1 >conftest.err
  14416. rm -f conftest.er1
  14417. cat conftest.err >&5
  14418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14419. (exit $ac_status); } && {
  14420. test -z "$ac_cxx_werror_flag" ||
  14421. test ! -s conftest.err
  14422. } && test -s conftest.$ac_objext; then
  14423. fits_in_uint=0
  14424. else
  14425. echo "$as_me: failed program was:" >&5
  14426. sed 's/^/| /' conftest.$ac_ext >&5
  14427. fi
  14428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14429. fi
  14430. if test $fits_in_uint = 1; then
  14431. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14432. else
  14433. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14434. fi
  14435. else
  14436. gl_cv_size_max='((size_t)~(size_t)0)'
  14437. fi
  14438. fi
  14439. fi
  14440. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14441. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14442. if test "$gl_cv_size_max" != yes; then
  14443. cat >>confdefs.h <<_ACEOF
  14444. #define SIZE_MAX $gl_cv_size_max
  14445. _ACEOF
  14446. fi
  14447. for ac_header in stdint.h
  14448. do
  14449. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14450. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14451. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14452. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14453. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14454. echo $ECHO_N "(cached) $ECHO_C" >&6
  14455. fi
  14456. ac_res=`eval echo '${'$as_ac_Header'}'`
  14457. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14458. echo "${ECHO_T}$ac_res" >&6; }
  14459. else
  14460. # Is the header compilable?
  14461. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14462. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14463. cat >conftest.$ac_ext <<_ACEOF
  14464. /* confdefs.h. */
  14465. _ACEOF
  14466. cat confdefs.h >>conftest.$ac_ext
  14467. cat >>conftest.$ac_ext <<_ACEOF
  14468. /* end confdefs.h. */
  14469. $ac_includes_default
  14470. #include <$ac_header>
  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_header_compiler=yes
  14490. else
  14491. echo "$as_me: failed program was:" >&5
  14492. sed 's/^/| /' conftest.$ac_ext >&5
  14493. ac_header_compiler=no
  14494. fi
  14495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14496. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14497. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14498. # Is the header present?
  14499. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14500. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14501. cat >conftest.$ac_ext <<_ACEOF
  14502. /* confdefs.h. */
  14503. _ACEOF
  14504. cat confdefs.h >>conftest.$ac_ext
  14505. cat >>conftest.$ac_ext <<_ACEOF
  14506. /* end confdefs.h. */
  14507. #include <$ac_header>
  14508. _ACEOF
  14509. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14510. case "(($ac_try" in
  14511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14512. *) ac_try_echo=$ac_try;;
  14513. esac
  14514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14515. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14516. ac_status=$?
  14517. grep -v '^ *+' conftest.er1 >conftest.err
  14518. rm -f conftest.er1
  14519. cat conftest.err >&5
  14520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14521. (exit $ac_status); } >/dev/null && {
  14522. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14523. test ! -s conftest.err
  14524. }; then
  14525. ac_header_preproc=yes
  14526. else
  14527. echo "$as_me: failed program was:" >&5
  14528. sed 's/^/| /' conftest.$ac_ext >&5
  14529. ac_header_preproc=no
  14530. fi
  14531. rm -f conftest.err conftest.$ac_ext
  14532. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14533. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14534. # So? What about this header?
  14535. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14536. yes:no: )
  14537. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14538. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14539. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14540. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14541. ac_header_preproc=yes
  14542. ;;
  14543. no:yes:* )
  14544. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14545. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14546. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14547. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14548. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14549. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14550. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14551. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14552. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14553. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14554. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14555. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14556. ( cat <<\_ASBOX
  14557. ## ----------------------------------------------- ##
  14558. ## Report this to t-tujikawa@users.sourceforge.net ##
  14559. ## ----------------------------------------------- ##
  14560. _ASBOX
  14561. ) | sed "s/^/$as_me: WARNING: /" >&2
  14562. ;;
  14563. esac
  14564. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14565. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14566. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14567. echo $ECHO_N "(cached) $ECHO_C" >&6
  14568. else
  14569. eval "$as_ac_Header=\$ac_header_preproc"
  14570. fi
  14571. ac_res=`eval echo '${'$as_ac_Header'}'`
  14572. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14573. echo "${ECHO_T}$ac_res" >&6; }
  14574. fi
  14575. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14576. cat >>confdefs.h <<_ACEOF
  14577. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14578. _ACEOF
  14579. fi
  14580. done
  14581. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14582. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14583. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14584. echo $ECHO_N "(cached) $ECHO_C" >&6
  14585. else
  14586. gt_save_LIBS="$LIBS"
  14587. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14588. cat >conftest.$ac_ext <<_ACEOF
  14589. /* confdefs.h. */
  14590. _ACEOF
  14591. cat confdefs.h >>conftest.$ac_ext
  14592. cat >>conftest.$ac_ext <<_ACEOF
  14593. /* end confdefs.h. */
  14594. #include <CoreFoundation/CFPreferences.h>
  14595. int
  14596. main ()
  14597. {
  14598. CFPreferencesCopyAppValue(NULL, NULL)
  14599. ;
  14600. return 0;
  14601. }
  14602. _ACEOF
  14603. rm -f conftest.$ac_objext conftest$ac_exeext
  14604. if { (ac_try="$ac_link"
  14605. case "(($ac_try" in
  14606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14607. *) ac_try_echo=$ac_try;;
  14608. esac
  14609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14610. (eval "$ac_link") 2>conftest.er1
  14611. ac_status=$?
  14612. grep -v '^ *+' conftest.er1 >conftest.err
  14613. rm -f conftest.er1
  14614. cat conftest.err >&5
  14615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14616. (exit $ac_status); } && {
  14617. test -z "$ac_cxx_werror_flag" ||
  14618. test ! -s conftest.err
  14619. } && test -s conftest$ac_exeext &&
  14620. $as_test_x conftest$ac_exeext; then
  14621. gt_cv_func_CFPreferencesCopyAppValue=yes
  14622. else
  14623. echo "$as_me: failed program was:" >&5
  14624. sed 's/^/| /' conftest.$ac_ext >&5
  14625. gt_cv_func_CFPreferencesCopyAppValue=no
  14626. fi
  14627. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14628. conftest$ac_exeext conftest.$ac_ext
  14629. LIBS="$gt_save_LIBS"
  14630. fi
  14631. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14632. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14633. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14634. cat >>confdefs.h <<\_ACEOF
  14635. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14636. _ACEOF
  14637. fi
  14638. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14639. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14640. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14641. echo $ECHO_N "(cached) $ECHO_C" >&6
  14642. else
  14643. gt_save_LIBS="$LIBS"
  14644. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14645. cat >conftest.$ac_ext <<_ACEOF
  14646. /* confdefs.h. */
  14647. _ACEOF
  14648. cat confdefs.h >>conftest.$ac_ext
  14649. cat >>conftest.$ac_ext <<_ACEOF
  14650. /* end confdefs.h. */
  14651. #include <CoreFoundation/CFLocale.h>
  14652. int
  14653. main ()
  14654. {
  14655. CFLocaleCopyCurrent();
  14656. ;
  14657. return 0;
  14658. }
  14659. _ACEOF
  14660. rm -f conftest.$ac_objext conftest$ac_exeext
  14661. if { (ac_try="$ac_link"
  14662. case "(($ac_try" in
  14663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14664. *) ac_try_echo=$ac_try;;
  14665. esac
  14666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14667. (eval "$ac_link") 2>conftest.er1
  14668. ac_status=$?
  14669. grep -v '^ *+' conftest.er1 >conftest.err
  14670. rm -f conftest.er1
  14671. cat conftest.err >&5
  14672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14673. (exit $ac_status); } && {
  14674. test -z "$ac_cxx_werror_flag" ||
  14675. test ! -s conftest.err
  14676. } && test -s conftest$ac_exeext &&
  14677. $as_test_x conftest$ac_exeext; then
  14678. gt_cv_func_CFLocaleCopyCurrent=yes
  14679. else
  14680. echo "$as_me: failed program was:" >&5
  14681. sed 's/^/| /' conftest.$ac_ext >&5
  14682. gt_cv_func_CFLocaleCopyCurrent=no
  14683. fi
  14684. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14685. conftest$ac_exeext conftest.$ac_ext
  14686. LIBS="$gt_save_LIBS"
  14687. fi
  14688. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14689. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14690. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14691. cat >>confdefs.h <<\_ACEOF
  14692. #define HAVE_CFLOCALECOPYCURRENT 1
  14693. _ACEOF
  14694. fi
  14695. INTL_MACOSX_LIBS=
  14696. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14697. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14698. fi
  14699. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14700. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14701. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14702. echo $ECHO_N "(cached) $ECHO_C" >&6
  14703. else
  14704. cat >conftest.$ac_ext <<_ACEOF
  14705. /* confdefs.h. */
  14706. _ACEOF
  14707. cat confdefs.h >>conftest.$ac_ext
  14708. cat >>conftest.$ac_ext <<_ACEOF
  14709. /* end confdefs.h. */
  14710. $ac_includes_default
  14711. typedef ptrdiff_t ac__type_new_;
  14712. int
  14713. main ()
  14714. {
  14715. if ((ac__type_new_ *) 0)
  14716. return 0;
  14717. if (sizeof (ac__type_new_))
  14718. return 0;
  14719. ;
  14720. return 0;
  14721. }
  14722. _ACEOF
  14723. rm -f conftest.$ac_objext
  14724. if { (ac_try="$ac_compile"
  14725. case "(($ac_try" in
  14726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14727. *) ac_try_echo=$ac_try;;
  14728. esac
  14729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14730. (eval "$ac_compile") 2>conftest.er1
  14731. ac_status=$?
  14732. grep -v '^ *+' conftest.er1 >conftest.err
  14733. rm -f conftest.er1
  14734. cat conftest.err >&5
  14735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14736. (exit $ac_status); } && {
  14737. test -z "$ac_cxx_werror_flag" ||
  14738. test ! -s conftest.err
  14739. } && test -s conftest.$ac_objext; then
  14740. ac_cv_type_ptrdiff_t=yes
  14741. else
  14742. echo "$as_me: failed program was:" >&5
  14743. sed 's/^/| /' conftest.$ac_ext >&5
  14744. ac_cv_type_ptrdiff_t=no
  14745. fi
  14746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14747. fi
  14748. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14749. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14750. if test $ac_cv_type_ptrdiff_t = yes; then
  14751. :
  14752. else
  14753. cat >>confdefs.h <<\_ACEOF
  14754. #define ptrdiff_t long
  14755. _ACEOF
  14756. fi
  14757. for ac_header in stddef.h stdlib.h string.h
  14758. do
  14759. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14760. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14761. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14762. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14763. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14764. echo $ECHO_N "(cached) $ECHO_C" >&6
  14765. fi
  14766. ac_res=`eval echo '${'$as_ac_Header'}'`
  14767. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14768. echo "${ECHO_T}$ac_res" >&6; }
  14769. else
  14770. # Is the header compilable?
  14771. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14772. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14773. cat >conftest.$ac_ext <<_ACEOF
  14774. /* confdefs.h. */
  14775. _ACEOF
  14776. cat confdefs.h >>conftest.$ac_ext
  14777. cat >>conftest.$ac_ext <<_ACEOF
  14778. /* end confdefs.h. */
  14779. $ac_includes_default
  14780. #include <$ac_header>
  14781. _ACEOF
  14782. rm -f conftest.$ac_objext
  14783. if { (ac_try="$ac_compile"
  14784. case "(($ac_try" in
  14785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14786. *) ac_try_echo=$ac_try;;
  14787. esac
  14788. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14789. (eval "$ac_compile") 2>conftest.er1
  14790. ac_status=$?
  14791. grep -v '^ *+' conftest.er1 >conftest.err
  14792. rm -f conftest.er1
  14793. cat conftest.err >&5
  14794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14795. (exit $ac_status); } && {
  14796. test -z "$ac_cxx_werror_flag" ||
  14797. test ! -s conftest.err
  14798. } && test -s conftest.$ac_objext; then
  14799. ac_header_compiler=yes
  14800. else
  14801. echo "$as_me: failed program was:" >&5
  14802. sed 's/^/| /' conftest.$ac_ext >&5
  14803. ac_header_compiler=no
  14804. fi
  14805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14806. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14807. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14808. # Is the header present?
  14809. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14810. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14811. cat >conftest.$ac_ext <<_ACEOF
  14812. /* confdefs.h. */
  14813. _ACEOF
  14814. cat confdefs.h >>conftest.$ac_ext
  14815. cat >>conftest.$ac_ext <<_ACEOF
  14816. /* end confdefs.h. */
  14817. #include <$ac_header>
  14818. _ACEOF
  14819. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14820. case "(($ac_try" in
  14821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14822. *) ac_try_echo=$ac_try;;
  14823. esac
  14824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14825. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14826. ac_status=$?
  14827. grep -v '^ *+' conftest.er1 >conftest.err
  14828. rm -f conftest.er1
  14829. cat conftest.err >&5
  14830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14831. (exit $ac_status); } >/dev/null && {
  14832. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14833. test ! -s conftest.err
  14834. }; then
  14835. ac_header_preproc=yes
  14836. else
  14837. echo "$as_me: failed program was:" >&5
  14838. sed 's/^/| /' conftest.$ac_ext >&5
  14839. ac_header_preproc=no
  14840. fi
  14841. rm -f conftest.err conftest.$ac_ext
  14842. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14843. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14844. # So? What about this header?
  14845. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14846. yes:no: )
  14847. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14848. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14849. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14850. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14851. ac_header_preproc=yes
  14852. ;;
  14853. no:yes:* )
  14854. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14855. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14856. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14857. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14858. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14859. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14860. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14861. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14862. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14863. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14864. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14865. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14866. ( cat <<\_ASBOX
  14867. ## ----------------------------------------------- ##
  14868. ## Report this to t-tujikawa@users.sourceforge.net ##
  14869. ## ----------------------------------------------- ##
  14870. _ASBOX
  14871. ) | sed "s/^/$as_me: WARNING: /" >&2
  14872. ;;
  14873. esac
  14874. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14875. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14876. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14877. echo $ECHO_N "(cached) $ECHO_C" >&6
  14878. else
  14879. eval "$as_ac_Header=\$ac_header_preproc"
  14880. fi
  14881. ac_res=`eval echo '${'$as_ac_Header'}'`
  14882. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14883. echo "${ECHO_T}$ac_res" >&6; }
  14884. fi
  14885. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14886. cat >>confdefs.h <<_ACEOF
  14887. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14888. _ACEOF
  14889. fi
  14890. done
  14891. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14892. do
  14893. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14894. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14895. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14896. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14897. echo $ECHO_N "(cached) $ECHO_C" >&6
  14898. else
  14899. cat >conftest.$ac_ext <<_ACEOF
  14900. /* confdefs.h. */
  14901. _ACEOF
  14902. cat confdefs.h >>conftest.$ac_ext
  14903. cat >>conftest.$ac_ext <<_ACEOF
  14904. /* end confdefs.h. */
  14905. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14906. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14907. #define $ac_func innocuous_$ac_func
  14908. /* System header to define __stub macros and hopefully few prototypes,
  14909. which can conflict with char $ac_func (); below.
  14910. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14911. <limits.h> exists even on freestanding compilers. */
  14912. #ifdef __STDC__
  14913. # include <limits.h>
  14914. #else
  14915. # include <assert.h>
  14916. #endif
  14917. #undef $ac_func
  14918. /* Override any GCC internal prototype to avoid an error.
  14919. Use char because int might match the return type of a GCC
  14920. builtin and then its argument prototype would still apply. */
  14921. #ifdef __cplusplus
  14922. extern "C"
  14923. #endif
  14924. char $ac_func ();
  14925. /* The GNU C library defines this for functions which it implements
  14926. to always fail with ENOSYS. Some functions are actually named
  14927. something starting with __ and the normal name is an alias. */
  14928. #if defined __stub_$ac_func || defined __stub___$ac_func
  14929. choke me
  14930. #endif
  14931. int
  14932. main ()
  14933. {
  14934. return $ac_func ();
  14935. ;
  14936. return 0;
  14937. }
  14938. _ACEOF
  14939. rm -f conftest.$ac_objext conftest$ac_exeext
  14940. if { (ac_try="$ac_link"
  14941. case "(($ac_try" in
  14942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14943. *) ac_try_echo=$ac_try;;
  14944. esac
  14945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14946. (eval "$ac_link") 2>conftest.er1
  14947. ac_status=$?
  14948. grep -v '^ *+' conftest.er1 >conftest.err
  14949. rm -f conftest.er1
  14950. cat conftest.err >&5
  14951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14952. (exit $ac_status); } && {
  14953. test -z "$ac_cxx_werror_flag" ||
  14954. test ! -s conftest.err
  14955. } && test -s conftest$ac_exeext &&
  14956. $as_test_x conftest$ac_exeext; then
  14957. eval "$as_ac_var=yes"
  14958. else
  14959. echo "$as_me: failed program was:" >&5
  14960. sed 's/^/| /' conftest.$ac_ext >&5
  14961. eval "$as_ac_var=no"
  14962. fi
  14963. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14964. conftest$ac_exeext conftest.$ac_ext
  14965. fi
  14966. ac_res=`eval echo '${'$as_ac_var'}'`
  14967. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14968. echo "${ECHO_T}$ac_res" >&6; }
  14969. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14970. cat >>confdefs.h <<_ACEOF
  14971. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14972. _ACEOF
  14973. fi
  14974. done
  14975. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14976. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14977. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14978. echo $ECHO_N "(cached) $ECHO_C" >&6
  14979. else
  14980. cat >conftest.$ac_ext <<_ACEOF
  14981. /* confdefs.h. */
  14982. _ACEOF
  14983. cat confdefs.h >>conftest.$ac_ext
  14984. cat >>conftest.$ac_ext <<_ACEOF
  14985. /* end confdefs.h. */
  14986. #include <stdio.h>
  14987. int
  14988. main ()
  14989. {
  14990. #ifndef _snprintf
  14991. char *p = (char *) _snprintf;
  14992. #endif
  14993. ;
  14994. return 0;
  14995. }
  14996. _ACEOF
  14997. rm -f conftest.$ac_objext
  14998. if { (ac_try="$ac_compile"
  14999. case "(($ac_try" in
  15000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15001. *) ac_try_echo=$ac_try;;
  15002. esac
  15003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15004. (eval "$ac_compile") 2>conftest.er1
  15005. ac_status=$?
  15006. grep -v '^ *+' conftest.er1 >conftest.err
  15007. rm -f conftest.er1
  15008. cat conftest.err >&5
  15009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15010. (exit $ac_status); } && {
  15011. test -z "$ac_cxx_werror_flag" ||
  15012. test ! -s conftest.err
  15013. } && test -s conftest.$ac_objext; then
  15014. ac_cv_have_decl__snprintf=yes
  15015. else
  15016. echo "$as_me: failed program was:" >&5
  15017. sed 's/^/| /' conftest.$ac_ext >&5
  15018. ac_cv_have_decl__snprintf=no
  15019. fi
  15020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15021. fi
  15022. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15023. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  15024. if test $ac_cv_have_decl__snprintf = yes; then
  15025. gt_value=1
  15026. else
  15027. gt_value=0
  15028. fi
  15029. cat >>confdefs.h <<_ACEOF
  15030. #define HAVE_DECL__SNPRINTF $gt_value
  15031. _ACEOF
  15032. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15033. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  15034. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15035. echo $ECHO_N "(cached) $ECHO_C" >&6
  15036. else
  15037. cat >conftest.$ac_ext <<_ACEOF
  15038. /* confdefs.h. */
  15039. _ACEOF
  15040. cat confdefs.h >>conftest.$ac_ext
  15041. cat >>conftest.$ac_ext <<_ACEOF
  15042. /* end confdefs.h. */
  15043. #include <stdio.h>
  15044. int
  15045. main ()
  15046. {
  15047. #ifndef _snwprintf
  15048. char *p = (char *) _snwprintf;
  15049. #endif
  15050. ;
  15051. return 0;
  15052. }
  15053. _ACEOF
  15054. rm -f conftest.$ac_objext
  15055. if { (ac_try="$ac_compile"
  15056. case "(($ac_try" in
  15057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15058. *) ac_try_echo=$ac_try;;
  15059. esac
  15060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15061. (eval "$ac_compile") 2>conftest.er1
  15062. ac_status=$?
  15063. grep -v '^ *+' conftest.er1 >conftest.err
  15064. rm -f conftest.er1
  15065. cat conftest.err >&5
  15066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15067. (exit $ac_status); } && {
  15068. test -z "$ac_cxx_werror_flag" ||
  15069. test ! -s conftest.err
  15070. } && test -s conftest.$ac_objext; then
  15071. ac_cv_have_decl__snwprintf=yes
  15072. else
  15073. echo "$as_me: failed program was:" >&5
  15074. sed 's/^/| /' conftest.$ac_ext >&5
  15075. ac_cv_have_decl__snwprintf=no
  15076. fi
  15077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15078. fi
  15079. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  15080. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  15081. if test $ac_cv_have_decl__snwprintf = yes; then
  15082. gt_value=1
  15083. else
  15084. gt_value=0
  15085. fi
  15086. cat >>confdefs.h <<_ACEOF
  15087. #define HAVE_DECL__SNWPRINTF $gt_value
  15088. _ACEOF
  15089. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  15090. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  15091. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  15092. echo $ECHO_N "(cached) $ECHO_C" >&6
  15093. else
  15094. cat >conftest.$ac_ext <<_ACEOF
  15095. /* confdefs.h. */
  15096. _ACEOF
  15097. cat confdefs.h >>conftest.$ac_ext
  15098. cat >>conftest.$ac_ext <<_ACEOF
  15099. /* end confdefs.h. */
  15100. #include <stdio.h>
  15101. int
  15102. main ()
  15103. {
  15104. #ifndef getc_unlocked
  15105. char *p = (char *) getc_unlocked;
  15106. #endif
  15107. ;
  15108. return 0;
  15109. }
  15110. _ACEOF
  15111. rm -f conftest.$ac_objext
  15112. if { (ac_try="$ac_compile"
  15113. case "(($ac_try" in
  15114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15115. *) ac_try_echo=$ac_try;;
  15116. esac
  15117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15118. (eval "$ac_compile") 2>conftest.er1
  15119. ac_status=$?
  15120. grep -v '^ *+' conftest.er1 >conftest.err
  15121. rm -f conftest.er1
  15122. cat conftest.err >&5
  15123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15124. (exit $ac_status); } && {
  15125. test -z "$ac_cxx_werror_flag" ||
  15126. test ! -s conftest.err
  15127. } && test -s conftest.$ac_objext; then
  15128. ac_cv_have_decl_getc_unlocked=yes
  15129. else
  15130. echo "$as_me: failed program was:" >&5
  15131. sed 's/^/| /' conftest.$ac_ext >&5
  15132. ac_cv_have_decl_getc_unlocked=no
  15133. fi
  15134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15135. fi
  15136. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  15137. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  15138. if test $ac_cv_have_decl_getc_unlocked = yes; then
  15139. gt_value=1
  15140. else
  15141. gt_value=0
  15142. fi
  15143. cat >>confdefs.h <<_ACEOF
  15144. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  15145. _ACEOF
  15146. case $gt_cv_func_printf_posix in
  15147. *yes) HAVE_POSIX_PRINTF=1 ;;
  15148. *) HAVE_POSIX_PRINTF=0 ;;
  15149. esac
  15150. if test "$ac_cv_func_asprintf" = yes; then
  15151. HAVE_ASPRINTF=1
  15152. else
  15153. HAVE_ASPRINTF=0
  15154. fi
  15155. if test "$ac_cv_func_snprintf" = yes; then
  15156. HAVE_SNPRINTF=1
  15157. else
  15158. HAVE_SNPRINTF=0
  15159. fi
  15160. if test "$ac_cv_func_wprintf" = yes; then
  15161. HAVE_WPRINTF=1
  15162. else
  15163. HAVE_WPRINTF=0
  15164. fi
  15165. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  15166. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  15167. if test "${am_cv_langinfo_codeset+set}" = set; then
  15168. echo $ECHO_N "(cached) $ECHO_C" >&6
  15169. else
  15170. cat >conftest.$ac_ext <<_ACEOF
  15171. /* confdefs.h. */
  15172. _ACEOF
  15173. cat confdefs.h >>conftest.$ac_ext
  15174. cat >>conftest.$ac_ext <<_ACEOF
  15175. /* end confdefs.h. */
  15176. #include <langinfo.h>
  15177. int
  15178. main ()
  15179. {
  15180. char* cs = nl_langinfo(CODESET); return !cs;
  15181. ;
  15182. return 0;
  15183. }
  15184. _ACEOF
  15185. rm -f conftest.$ac_objext conftest$ac_exeext
  15186. if { (ac_try="$ac_link"
  15187. case "(($ac_try" in
  15188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15189. *) ac_try_echo=$ac_try;;
  15190. esac
  15191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15192. (eval "$ac_link") 2>conftest.er1
  15193. ac_status=$?
  15194. grep -v '^ *+' conftest.er1 >conftest.err
  15195. rm -f conftest.er1
  15196. cat conftest.err >&5
  15197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15198. (exit $ac_status); } && {
  15199. test -z "$ac_cxx_werror_flag" ||
  15200. test ! -s conftest.err
  15201. } && test -s conftest$ac_exeext &&
  15202. $as_test_x conftest$ac_exeext; then
  15203. am_cv_langinfo_codeset=yes
  15204. else
  15205. echo "$as_me: failed program was:" >&5
  15206. sed 's/^/| /' conftest.$ac_ext >&5
  15207. am_cv_langinfo_codeset=no
  15208. fi
  15209. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15210. conftest$ac_exeext conftest.$ac_ext
  15211. fi
  15212. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  15213. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  15214. if test $am_cv_langinfo_codeset = yes; then
  15215. cat >>confdefs.h <<\_ACEOF
  15216. #define HAVE_LANGINFO_CODESET 1
  15217. _ACEOF
  15218. fi
  15219. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  15220. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  15221. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  15222. echo $ECHO_N "(cached) $ECHO_C" >&6
  15223. else
  15224. cat >conftest.$ac_ext <<_ACEOF
  15225. /* confdefs.h. */
  15226. _ACEOF
  15227. cat confdefs.h >>conftest.$ac_ext
  15228. cat >>conftest.$ac_ext <<_ACEOF
  15229. /* end confdefs.h. */
  15230. #include <locale.h>
  15231. int
  15232. main ()
  15233. {
  15234. return LC_MESSAGES
  15235. ;
  15236. return 0;
  15237. }
  15238. _ACEOF
  15239. rm -f conftest.$ac_objext conftest$ac_exeext
  15240. if { (ac_try="$ac_link"
  15241. case "(($ac_try" in
  15242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15243. *) ac_try_echo=$ac_try;;
  15244. esac
  15245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15246. (eval "$ac_link") 2>conftest.er1
  15247. ac_status=$?
  15248. grep -v '^ *+' conftest.er1 >conftest.err
  15249. rm -f conftest.er1
  15250. cat conftest.err >&5
  15251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15252. (exit $ac_status); } && {
  15253. test -z "$ac_cxx_werror_flag" ||
  15254. test ! -s conftest.err
  15255. } && test -s conftest$ac_exeext &&
  15256. $as_test_x conftest$ac_exeext; then
  15257. gt_cv_val_LC_MESSAGES=yes
  15258. else
  15259. echo "$as_me: failed program was:" >&5
  15260. sed 's/^/| /' conftest.$ac_ext >&5
  15261. gt_cv_val_LC_MESSAGES=no
  15262. fi
  15263. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15264. conftest$ac_exeext conftest.$ac_ext
  15265. fi
  15266. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  15267. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  15268. if test $gt_cv_val_LC_MESSAGES = yes; then
  15269. cat >>confdefs.h <<\_ACEOF
  15270. #define HAVE_LC_MESSAGES 1
  15271. _ACEOF
  15272. fi
  15273. if test "$enable_shared" = yes; then
  15274. case "$host_os" in
  15275. mingw* | cygwin*) is_woe32dll=yes ;;
  15276. *) is_woe32dll=no ;;
  15277. esac
  15278. else
  15279. is_woe32dll=no
  15280. fi
  15281. WOE32DLL=$is_woe32dll
  15282. case "$host_os" in
  15283. mingw* | cygwin*) is_woe32=yes ;;
  15284. *) is_woe32=no ;;
  15285. esac
  15286. WOE32=$is_woe32
  15287. if test $WOE32 = yes; then
  15288. if test -n "$ac_tool_prefix"; then
  15289. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15290. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15291. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15292. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15293. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15294. echo $ECHO_N "(cached) $ECHO_C" >&6
  15295. else
  15296. if test -n "$WINDRES"; then
  15297. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15298. else
  15299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15300. for as_dir in $PATH
  15301. do
  15302. IFS=$as_save_IFS
  15303. test -z "$as_dir" && as_dir=.
  15304. for ac_exec_ext in '' $ac_executable_extensions; do
  15305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15306. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15307. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15308. break 2
  15309. fi
  15310. done
  15311. done
  15312. IFS=$as_save_IFS
  15313. fi
  15314. fi
  15315. WINDRES=$ac_cv_prog_WINDRES
  15316. if test -n "$WINDRES"; then
  15317. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15318. echo "${ECHO_T}$WINDRES" >&6; }
  15319. else
  15320. { echo "$as_me:$LINENO: result: no" >&5
  15321. echo "${ECHO_T}no" >&6; }
  15322. fi
  15323. fi
  15324. if test -z "$ac_cv_prog_WINDRES"; then
  15325. ac_ct_WINDRES=$WINDRES
  15326. # Extract the first word of "windres", so it can be a program name with args.
  15327. set dummy windres; ac_word=$2
  15328. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15329. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15330. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15331. echo $ECHO_N "(cached) $ECHO_C" >&6
  15332. else
  15333. if test -n "$ac_ct_WINDRES"; then
  15334. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15335. else
  15336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15337. for as_dir in $PATH
  15338. do
  15339. IFS=$as_save_IFS
  15340. test -z "$as_dir" && as_dir=.
  15341. for ac_exec_ext in '' $ac_executable_extensions; do
  15342. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15343. ac_cv_prog_ac_ct_WINDRES="windres"
  15344. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15345. break 2
  15346. fi
  15347. done
  15348. done
  15349. IFS=$as_save_IFS
  15350. fi
  15351. fi
  15352. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15353. if test -n "$ac_ct_WINDRES"; then
  15354. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15355. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15356. else
  15357. { echo "$as_me:$LINENO: result: no" >&5
  15358. echo "${ECHO_T}no" >&6; }
  15359. fi
  15360. if test "x$ac_ct_WINDRES" = x; then
  15361. WINDRES=""
  15362. else
  15363. case $cross_compiling:$ac_tool_warned in
  15364. yes:)
  15365. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15366. whose name does not start with the host triplet. If you think this
  15367. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15368. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15369. whose name does not start with the host triplet. If you think this
  15370. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15371. ac_tool_warned=yes ;;
  15372. esac
  15373. WINDRES=$ac_ct_WINDRES
  15374. fi
  15375. else
  15376. WINDRES="$ac_cv_prog_WINDRES"
  15377. fi
  15378. fi
  15379. case "$host_os" in
  15380. hpux*) LTLIBC="" ;;
  15381. *) LTLIBC="-lc" ;;
  15382. esac
  15383. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15384. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15385. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15386. echo $ECHO_N "(cached) $ECHO_C" >&6
  15387. else
  15388. gt_save_LIBS="$LIBS"
  15389. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15390. cat >conftest.$ac_ext <<_ACEOF
  15391. /* confdefs.h. */
  15392. _ACEOF
  15393. cat confdefs.h >>conftest.$ac_ext
  15394. cat >>conftest.$ac_ext <<_ACEOF
  15395. /* end confdefs.h. */
  15396. #include <CoreFoundation/CFPreferences.h>
  15397. int
  15398. main ()
  15399. {
  15400. CFPreferencesCopyAppValue(NULL, NULL)
  15401. ;
  15402. return 0;
  15403. }
  15404. _ACEOF
  15405. rm -f conftest.$ac_objext conftest$ac_exeext
  15406. if { (ac_try="$ac_link"
  15407. case "(($ac_try" in
  15408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15409. *) ac_try_echo=$ac_try;;
  15410. esac
  15411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15412. (eval "$ac_link") 2>conftest.er1
  15413. ac_status=$?
  15414. grep -v '^ *+' conftest.er1 >conftest.err
  15415. rm -f conftest.er1
  15416. cat conftest.err >&5
  15417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15418. (exit $ac_status); } && {
  15419. test -z "$ac_cxx_werror_flag" ||
  15420. test ! -s conftest.err
  15421. } && test -s conftest$ac_exeext &&
  15422. $as_test_x conftest$ac_exeext; then
  15423. gt_cv_func_CFPreferencesCopyAppValue=yes
  15424. else
  15425. echo "$as_me: failed program was:" >&5
  15426. sed 's/^/| /' conftest.$ac_ext >&5
  15427. gt_cv_func_CFPreferencesCopyAppValue=no
  15428. fi
  15429. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15430. conftest$ac_exeext conftest.$ac_ext
  15431. LIBS="$gt_save_LIBS"
  15432. fi
  15433. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15434. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15435. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15436. cat >>confdefs.h <<\_ACEOF
  15437. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15438. _ACEOF
  15439. fi
  15440. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15441. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15442. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15443. echo $ECHO_N "(cached) $ECHO_C" >&6
  15444. else
  15445. gt_save_LIBS="$LIBS"
  15446. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15447. cat >conftest.$ac_ext <<_ACEOF
  15448. /* confdefs.h. */
  15449. _ACEOF
  15450. cat confdefs.h >>conftest.$ac_ext
  15451. cat >>conftest.$ac_ext <<_ACEOF
  15452. /* end confdefs.h. */
  15453. #include <CoreFoundation/CFLocale.h>
  15454. int
  15455. main ()
  15456. {
  15457. CFLocaleCopyCurrent();
  15458. ;
  15459. return 0;
  15460. }
  15461. _ACEOF
  15462. rm -f conftest.$ac_objext conftest$ac_exeext
  15463. if { (ac_try="$ac_link"
  15464. case "(($ac_try" in
  15465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15466. *) ac_try_echo=$ac_try;;
  15467. esac
  15468. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15469. (eval "$ac_link") 2>conftest.er1
  15470. ac_status=$?
  15471. grep -v '^ *+' conftest.er1 >conftest.err
  15472. rm -f conftest.er1
  15473. cat conftest.err >&5
  15474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15475. (exit $ac_status); } && {
  15476. test -z "$ac_cxx_werror_flag" ||
  15477. test ! -s conftest.err
  15478. } && test -s conftest$ac_exeext &&
  15479. $as_test_x conftest$ac_exeext; then
  15480. gt_cv_func_CFLocaleCopyCurrent=yes
  15481. else
  15482. echo "$as_me: failed program was:" >&5
  15483. sed 's/^/| /' conftest.$ac_ext >&5
  15484. gt_cv_func_CFLocaleCopyCurrent=no
  15485. fi
  15486. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15487. conftest$ac_exeext conftest.$ac_ext
  15488. LIBS="$gt_save_LIBS"
  15489. fi
  15490. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15491. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15492. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15493. cat >>confdefs.h <<\_ACEOF
  15494. #define HAVE_CFLOCALECOPYCURRENT 1
  15495. _ACEOF
  15496. fi
  15497. INTL_MACOSX_LIBS=
  15498. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15499. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15500. fi
  15501. BUILD_INCLUDED_LIBINTL=no
  15502. USE_INCLUDED_LIBINTL=no
  15503. LIBINTL=
  15504. LTLIBINTL=
  15505. POSUB=
  15506. case " $gt_needs " in
  15507. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15508. *" need-ngettext "*) gt_api_version=2 ;;
  15509. *) gt_api_version=1 ;;
  15510. esac
  15511. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15512. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15513. if test "$USE_NLS" = "yes"; then
  15514. gt_use_preinstalled_gnugettext=no
  15515. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15516. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15517. # Check whether --with-included-gettext was given.
  15518. if test "${with_included_gettext+set}" = set; then
  15519. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15520. else
  15521. nls_cv_force_use_gnu_gettext=no
  15522. fi
  15523. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15524. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15525. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15526. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15527. if test $gt_api_version -ge 3; then
  15528. gt_revision_test_code='
  15529. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15530. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15531. #endif
  15532. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15533. '
  15534. else
  15535. gt_revision_test_code=
  15536. fi
  15537. if test $gt_api_version -ge 2; then
  15538. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15539. else
  15540. gt_expression_test_code=
  15541. fi
  15542. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15543. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15544. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15545. echo $ECHO_N "(cached) $ECHO_C" >&6
  15546. else
  15547. cat >conftest.$ac_ext <<_ACEOF
  15548. /* confdefs.h. */
  15549. _ACEOF
  15550. cat confdefs.h >>conftest.$ac_ext
  15551. cat >>conftest.$ac_ext <<_ACEOF
  15552. /* end confdefs.h. */
  15553. #include <libintl.h>
  15554. $gt_revision_test_code
  15555. extern int _nl_msg_cat_cntr;
  15556. extern int *_nl_domain_bindings;
  15557. int
  15558. main ()
  15559. {
  15560. bindtextdomain ("", "");
  15561. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15562. ;
  15563. return 0;
  15564. }
  15565. _ACEOF
  15566. rm -f conftest.$ac_objext conftest$ac_exeext
  15567. if { (ac_try="$ac_link"
  15568. case "(($ac_try" in
  15569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15570. *) ac_try_echo=$ac_try;;
  15571. esac
  15572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15573. (eval "$ac_link") 2>conftest.er1
  15574. ac_status=$?
  15575. grep -v '^ *+' conftest.er1 >conftest.err
  15576. rm -f conftest.er1
  15577. cat conftest.err >&5
  15578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15579. (exit $ac_status); } && {
  15580. test -z "$ac_cxx_werror_flag" ||
  15581. test ! -s conftest.err
  15582. } && test -s conftest$ac_exeext &&
  15583. $as_test_x conftest$ac_exeext; then
  15584. eval "$gt_func_gnugettext_libc=yes"
  15585. else
  15586. echo "$as_me: failed program was:" >&5
  15587. sed 's/^/| /' conftest.$ac_ext >&5
  15588. eval "$gt_func_gnugettext_libc=no"
  15589. fi
  15590. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15591. conftest$ac_exeext conftest.$ac_ext
  15592. fi
  15593. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15594. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15595. echo "${ECHO_T}$ac_res" >&6; }
  15596. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15597. use_additional=yes
  15598. acl_save_prefix="$prefix"
  15599. prefix="$acl_final_prefix"
  15600. acl_save_exec_prefix="$exec_prefix"
  15601. exec_prefix="$acl_final_exec_prefix"
  15602. eval additional_includedir=\"$includedir\"
  15603. eval additional_libdir=\"$libdir\"
  15604. exec_prefix="$acl_save_exec_prefix"
  15605. prefix="$acl_save_prefix"
  15606. # Check whether --with-libintl-prefix was given.
  15607. if test "${with_libintl_prefix+set}" = set; then
  15608. withval=$with_libintl_prefix;
  15609. if test "X$withval" = "Xno"; then
  15610. use_additional=no
  15611. else
  15612. if test "X$withval" = "X"; then
  15613. acl_save_prefix="$prefix"
  15614. prefix="$acl_final_prefix"
  15615. acl_save_exec_prefix="$exec_prefix"
  15616. exec_prefix="$acl_final_exec_prefix"
  15617. eval additional_includedir=\"$includedir\"
  15618. eval additional_libdir=\"$libdir\"
  15619. exec_prefix="$acl_save_exec_prefix"
  15620. prefix="$acl_save_prefix"
  15621. else
  15622. additional_includedir="$withval/include"
  15623. additional_libdir="$withval/$acl_libdirstem"
  15624. fi
  15625. fi
  15626. fi
  15627. LIBINTL=
  15628. LTLIBINTL=
  15629. INCINTL=
  15630. LIBINTL_PREFIX=
  15631. rpathdirs=
  15632. ltrpathdirs=
  15633. names_already_handled=
  15634. names_next_round='intl '
  15635. while test -n "$names_next_round"; do
  15636. names_this_round="$names_next_round"
  15637. names_next_round=
  15638. for name in $names_this_round; do
  15639. already_handled=
  15640. for n in $names_already_handled; do
  15641. if test "$n" = "$name"; then
  15642. already_handled=yes
  15643. break
  15644. fi
  15645. done
  15646. if test -z "$already_handled"; then
  15647. names_already_handled="$names_already_handled $name"
  15648. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15649. eval value=\"\$HAVE_LIB$uppername\"
  15650. if test -n "$value"; then
  15651. if test "$value" = yes; then
  15652. eval value=\"\$LIB$uppername\"
  15653. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15654. eval value=\"\$LTLIB$uppername\"
  15655. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15656. else
  15657. :
  15658. fi
  15659. else
  15660. found_dir=
  15661. found_la=
  15662. found_so=
  15663. found_a=
  15664. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15665. if test -n "$acl_shlibext"; then
  15666. shrext=".$acl_shlibext" # typically: shrext=.so
  15667. else
  15668. shrext=
  15669. fi
  15670. if test $use_additional = yes; then
  15671. dir="$additional_libdir"
  15672. if test -n "$acl_shlibext"; then
  15673. if test -f "$dir/$libname$shrext"; then
  15674. found_dir="$dir"
  15675. found_so="$dir/$libname$shrext"
  15676. else
  15677. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15678. ver=`(cd "$dir" && \
  15679. for f in "$libname$shrext".*; do echo "$f"; done \
  15680. | sed -e "s,^$libname$shrext\\\\.,," \
  15681. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15682. | sed 1q ) 2>/dev/null`
  15683. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15684. found_dir="$dir"
  15685. found_so="$dir/$libname$shrext.$ver"
  15686. fi
  15687. else
  15688. eval library_names=\"$acl_library_names_spec\"
  15689. for f in $library_names; do
  15690. if test -f "$dir/$f"; then
  15691. found_dir="$dir"
  15692. found_so="$dir/$f"
  15693. break
  15694. fi
  15695. done
  15696. fi
  15697. fi
  15698. fi
  15699. if test "X$found_dir" = "X"; then
  15700. if test -f "$dir/$libname.$acl_libext"; then
  15701. found_dir="$dir"
  15702. found_a="$dir/$libname.$acl_libext"
  15703. fi
  15704. fi
  15705. if test "X$found_dir" != "X"; then
  15706. if test -f "$dir/$libname.la"; then
  15707. found_la="$dir/$libname.la"
  15708. fi
  15709. fi
  15710. fi
  15711. if test "X$found_dir" = "X"; then
  15712. for x in $LDFLAGS $LTLIBINTL; do
  15713. acl_save_prefix="$prefix"
  15714. prefix="$acl_final_prefix"
  15715. acl_save_exec_prefix="$exec_prefix"
  15716. exec_prefix="$acl_final_exec_prefix"
  15717. eval x=\"$x\"
  15718. exec_prefix="$acl_save_exec_prefix"
  15719. prefix="$acl_save_prefix"
  15720. case "$x" in
  15721. -L*)
  15722. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15723. if test -n "$acl_shlibext"; then
  15724. if test -f "$dir/$libname$shrext"; then
  15725. found_dir="$dir"
  15726. found_so="$dir/$libname$shrext"
  15727. else
  15728. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15729. ver=`(cd "$dir" && \
  15730. for f in "$libname$shrext".*; do echo "$f"; done \
  15731. | sed -e "s,^$libname$shrext\\\\.,," \
  15732. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15733. | sed 1q ) 2>/dev/null`
  15734. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15735. found_dir="$dir"
  15736. found_so="$dir/$libname$shrext.$ver"
  15737. fi
  15738. else
  15739. eval library_names=\"$acl_library_names_spec\"
  15740. for f in $library_names; do
  15741. if test -f "$dir/$f"; then
  15742. found_dir="$dir"
  15743. found_so="$dir/$f"
  15744. break
  15745. fi
  15746. done
  15747. fi
  15748. fi
  15749. fi
  15750. if test "X$found_dir" = "X"; then
  15751. if test -f "$dir/$libname.$acl_libext"; then
  15752. found_dir="$dir"
  15753. found_a="$dir/$libname.$acl_libext"
  15754. fi
  15755. fi
  15756. if test "X$found_dir" != "X"; then
  15757. if test -f "$dir/$libname.la"; then
  15758. found_la="$dir/$libname.la"
  15759. fi
  15760. fi
  15761. ;;
  15762. esac
  15763. if test "X$found_dir" != "X"; then
  15764. break
  15765. fi
  15766. done
  15767. fi
  15768. if test "X$found_dir" != "X"; then
  15769. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15770. if test "X$found_so" != "X"; then
  15771. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15772. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15773. else
  15774. haveit=
  15775. for x in $ltrpathdirs; do
  15776. if test "X$x" = "X$found_dir"; then
  15777. haveit=yes
  15778. break
  15779. fi
  15780. done
  15781. if test -z "$haveit"; then
  15782. ltrpathdirs="$ltrpathdirs $found_dir"
  15783. fi
  15784. if test "$acl_hardcode_direct" = yes; then
  15785. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15786. else
  15787. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15788. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15789. haveit=
  15790. for x in $rpathdirs; do
  15791. if test "X$x" = "X$found_dir"; then
  15792. haveit=yes
  15793. break
  15794. fi
  15795. done
  15796. if test -z "$haveit"; then
  15797. rpathdirs="$rpathdirs $found_dir"
  15798. fi
  15799. else
  15800. haveit=
  15801. for x in $LDFLAGS $LIBINTL; do
  15802. acl_save_prefix="$prefix"
  15803. prefix="$acl_final_prefix"
  15804. acl_save_exec_prefix="$exec_prefix"
  15805. exec_prefix="$acl_final_exec_prefix"
  15806. eval x=\"$x\"
  15807. exec_prefix="$acl_save_exec_prefix"
  15808. prefix="$acl_save_prefix"
  15809. if test "X$x" = "X-L$found_dir"; then
  15810. haveit=yes
  15811. break
  15812. fi
  15813. done
  15814. if test -z "$haveit"; then
  15815. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15816. fi
  15817. if test "$acl_hardcode_minus_L" != no; then
  15818. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15819. else
  15820. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15821. fi
  15822. fi
  15823. fi
  15824. fi
  15825. else
  15826. if test "X$found_a" != "X"; then
  15827. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15828. else
  15829. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15830. fi
  15831. fi
  15832. additional_includedir=
  15833. case "$found_dir" in
  15834. */$acl_libdirstem | */$acl_libdirstem/)
  15835. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15836. LIBINTL_PREFIX="$basedir"
  15837. additional_includedir="$basedir/include"
  15838. ;;
  15839. esac
  15840. if test "X$additional_includedir" != "X"; then
  15841. if test "X$additional_includedir" != "X/usr/include"; then
  15842. haveit=
  15843. if test "X$additional_includedir" = "X/usr/local/include"; then
  15844. if test -n "$GCC"; then
  15845. case $host_os in
  15846. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15847. esac
  15848. fi
  15849. fi
  15850. if test -z "$haveit"; then
  15851. for x in $CPPFLAGS $INCINTL; do
  15852. acl_save_prefix="$prefix"
  15853. prefix="$acl_final_prefix"
  15854. acl_save_exec_prefix="$exec_prefix"
  15855. exec_prefix="$acl_final_exec_prefix"
  15856. eval x=\"$x\"
  15857. exec_prefix="$acl_save_exec_prefix"
  15858. prefix="$acl_save_prefix"
  15859. if test "X$x" = "X-I$additional_includedir"; then
  15860. haveit=yes
  15861. break
  15862. fi
  15863. done
  15864. if test -z "$haveit"; then
  15865. if test -d "$additional_includedir"; then
  15866. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15867. fi
  15868. fi
  15869. fi
  15870. fi
  15871. fi
  15872. if test -n "$found_la"; then
  15873. save_libdir="$libdir"
  15874. case "$found_la" in
  15875. */* | *\\*) . "$found_la" ;;
  15876. *) . "./$found_la" ;;
  15877. esac
  15878. libdir="$save_libdir"
  15879. for dep in $dependency_libs; do
  15880. case "$dep" in
  15881. -L*)
  15882. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15883. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15884. haveit=
  15885. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15886. if test -n "$GCC"; then
  15887. case $host_os in
  15888. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15889. esac
  15890. fi
  15891. fi
  15892. if test -z "$haveit"; then
  15893. haveit=
  15894. for x in $LDFLAGS $LIBINTL; do
  15895. acl_save_prefix="$prefix"
  15896. prefix="$acl_final_prefix"
  15897. acl_save_exec_prefix="$exec_prefix"
  15898. exec_prefix="$acl_final_exec_prefix"
  15899. eval x=\"$x\"
  15900. exec_prefix="$acl_save_exec_prefix"
  15901. prefix="$acl_save_prefix"
  15902. if test "X$x" = "X-L$additional_libdir"; then
  15903. haveit=yes
  15904. break
  15905. fi
  15906. done
  15907. if test -z "$haveit"; then
  15908. if test -d "$additional_libdir"; then
  15909. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15910. fi
  15911. fi
  15912. haveit=
  15913. for x in $LDFLAGS $LTLIBINTL; do
  15914. acl_save_prefix="$prefix"
  15915. prefix="$acl_final_prefix"
  15916. acl_save_exec_prefix="$exec_prefix"
  15917. exec_prefix="$acl_final_exec_prefix"
  15918. eval x=\"$x\"
  15919. exec_prefix="$acl_save_exec_prefix"
  15920. prefix="$acl_save_prefix"
  15921. if test "X$x" = "X-L$additional_libdir"; then
  15922. haveit=yes
  15923. break
  15924. fi
  15925. done
  15926. if test -z "$haveit"; then
  15927. if test -d "$additional_libdir"; then
  15928. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15929. fi
  15930. fi
  15931. fi
  15932. fi
  15933. ;;
  15934. -R*)
  15935. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15936. if test "$enable_rpath" != no; then
  15937. haveit=
  15938. for x in $rpathdirs; do
  15939. if test "X$x" = "X$dir"; then
  15940. haveit=yes
  15941. break
  15942. fi
  15943. done
  15944. if test -z "$haveit"; then
  15945. rpathdirs="$rpathdirs $dir"
  15946. fi
  15947. haveit=
  15948. for x in $ltrpathdirs; do
  15949. if test "X$x" = "X$dir"; then
  15950. haveit=yes
  15951. break
  15952. fi
  15953. done
  15954. if test -z "$haveit"; then
  15955. ltrpathdirs="$ltrpathdirs $dir"
  15956. fi
  15957. fi
  15958. ;;
  15959. -l*)
  15960. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15961. ;;
  15962. *.la)
  15963. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15964. ;;
  15965. *)
  15966. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15967. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15968. ;;
  15969. esac
  15970. done
  15971. fi
  15972. else
  15973. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15974. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15975. fi
  15976. fi
  15977. fi
  15978. done
  15979. done
  15980. if test "X$rpathdirs" != "X"; then
  15981. if test -n "$acl_hardcode_libdir_separator"; then
  15982. alldirs=
  15983. for found_dir in $rpathdirs; do
  15984. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15985. done
  15986. acl_save_libdir="$libdir"
  15987. libdir="$alldirs"
  15988. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15989. libdir="$acl_save_libdir"
  15990. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15991. else
  15992. for found_dir in $rpathdirs; do
  15993. acl_save_libdir="$libdir"
  15994. libdir="$found_dir"
  15995. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15996. libdir="$acl_save_libdir"
  15997. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15998. done
  15999. fi
  16000. fi
  16001. if test "X$ltrpathdirs" != "X"; then
  16002. for found_dir in $ltrpathdirs; do
  16003. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  16004. done
  16005. fi
  16006. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  16007. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  16008. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  16009. echo $ECHO_N "(cached) $ECHO_C" >&6
  16010. else
  16011. gt_save_CPPFLAGS="$CPPFLAGS"
  16012. CPPFLAGS="$CPPFLAGS $INCINTL"
  16013. gt_save_LIBS="$LIBS"
  16014. LIBS="$LIBS $LIBINTL"
  16015. cat >conftest.$ac_ext <<_ACEOF
  16016. /* confdefs.h. */
  16017. _ACEOF
  16018. cat confdefs.h >>conftest.$ac_ext
  16019. cat >>conftest.$ac_ext <<_ACEOF
  16020. /* end confdefs.h. */
  16021. #include <libintl.h>
  16022. $gt_revision_test_code
  16023. extern int _nl_msg_cat_cntr;
  16024. extern
  16025. #ifdef __cplusplus
  16026. "C"
  16027. #endif
  16028. const char *_nl_expand_alias (const char *);
  16029. int
  16030. main ()
  16031. {
  16032. bindtextdomain ("", "");
  16033. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16034. ;
  16035. return 0;
  16036. }
  16037. _ACEOF
  16038. rm -f conftest.$ac_objext conftest$ac_exeext
  16039. if { (ac_try="$ac_link"
  16040. case "(($ac_try" in
  16041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16042. *) ac_try_echo=$ac_try;;
  16043. esac
  16044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16045. (eval "$ac_link") 2>conftest.er1
  16046. ac_status=$?
  16047. grep -v '^ *+' conftest.er1 >conftest.err
  16048. rm -f conftest.er1
  16049. cat conftest.err >&5
  16050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16051. (exit $ac_status); } && {
  16052. test -z "$ac_cxx_werror_flag" ||
  16053. test ! -s conftest.err
  16054. } && test -s conftest$ac_exeext &&
  16055. $as_test_x conftest$ac_exeext; then
  16056. eval "$gt_func_gnugettext_libintl=yes"
  16057. else
  16058. echo "$as_me: failed program was:" >&5
  16059. sed 's/^/| /' conftest.$ac_ext >&5
  16060. eval "$gt_func_gnugettext_libintl=no"
  16061. fi
  16062. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16063. conftest$ac_exeext conftest.$ac_ext
  16064. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  16065. LIBS="$LIBS $LIBICONV"
  16066. cat >conftest.$ac_ext <<_ACEOF
  16067. /* confdefs.h. */
  16068. _ACEOF
  16069. cat confdefs.h >>conftest.$ac_ext
  16070. cat >>conftest.$ac_ext <<_ACEOF
  16071. /* end confdefs.h. */
  16072. #include <libintl.h>
  16073. $gt_revision_test_code
  16074. extern int _nl_msg_cat_cntr;
  16075. extern
  16076. #ifdef __cplusplus
  16077. "C"
  16078. #endif
  16079. const char *_nl_expand_alias (const char *);
  16080. int
  16081. main ()
  16082. {
  16083. bindtextdomain ("", "");
  16084. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16085. ;
  16086. return 0;
  16087. }
  16088. _ACEOF
  16089. rm -f conftest.$ac_objext conftest$ac_exeext
  16090. if { (ac_try="$ac_link"
  16091. case "(($ac_try" in
  16092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16093. *) ac_try_echo=$ac_try;;
  16094. esac
  16095. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16096. (eval "$ac_link") 2>conftest.er1
  16097. ac_status=$?
  16098. grep -v '^ *+' conftest.er1 >conftest.err
  16099. rm -f conftest.er1
  16100. cat conftest.err >&5
  16101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16102. (exit $ac_status); } && {
  16103. test -z "$ac_cxx_werror_flag" ||
  16104. test ! -s conftest.err
  16105. } && test -s conftest$ac_exeext &&
  16106. $as_test_x conftest$ac_exeext; then
  16107. LIBINTL="$LIBINTL $LIBICONV"
  16108. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  16109. eval "$gt_func_gnugettext_libintl=yes"
  16110. else
  16111. echo "$as_me: failed program was:" >&5
  16112. sed 's/^/| /' conftest.$ac_ext >&5
  16113. fi
  16114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16115. conftest$ac_exeext conftest.$ac_ext
  16116. fi
  16117. CPPFLAGS="$gt_save_CPPFLAGS"
  16118. LIBS="$gt_save_LIBS"
  16119. fi
  16120. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  16121. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16122. echo "${ECHO_T}$ac_res" >&6; }
  16123. fi
  16124. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  16125. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  16126. && test "$PACKAGE" != gettext-runtime \
  16127. && test "$PACKAGE" != gettext-tools; }; then
  16128. gt_use_preinstalled_gnugettext=yes
  16129. else
  16130. LIBINTL=
  16131. LTLIBINTL=
  16132. INCINTL=
  16133. fi
  16134. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  16135. nls_cv_use_gnu_gettext=yes
  16136. fi
  16137. fi
  16138. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  16139. BUILD_INCLUDED_LIBINTL=yes
  16140. USE_INCLUDED_LIBINTL=yes
  16141. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  16142. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  16143. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  16144. fi
  16145. CATOBJEXT=
  16146. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16147. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16148. CATOBJEXT=.gmo
  16149. fi
  16150. if test -n "$INTL_MACOSX_LIBS"; then
  16151. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16152. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16153. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  16154. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  16155. fi
  16156. fi
  16157. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  16158. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  16159. cat >>confdefs.h <<\_ACEOF
  16160. #define ENABLE_NLS 1
  16161. _ACEOF
  16162. else
  16163. USE_NLS=no
  16164. fi
  16165. fi
  16166. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  16167. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  16168. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  16169. echo "${ECHO_T}$USE_NLS" >&6; }
  16170. if test "$USE_NLS" = "yes"; then
  16171. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  16172. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  16173. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16174. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16175. gt_source="external libintl"
  16176. else
  16177. gt_source="libc"
  16178. fi
  16179. else
  16180. gt_source="included intl directory"
  16181. fi
  16182. { echo "$as_me:$LINENO: result: $gt_source" >&5
  16183. echo "${ECHO_T}$gt_source" >&6; }
  16184. fi
  16185. if test "$USE_NLS" = "yes"; then
  16186. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  16187. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  16188. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  16189. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  16190. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  16191. echo "${ECHO_T}$LIBINTL" >&6; }
  16192. for element in $INCINTL; do
  16193. haveit=
  16194. for x in $CPPFLAGS; do
  16195. acl_save_prefix="$prefix"
  16196. prefix="$acl_final_prefix"
  16197. acl_save_exec_prefix="$exec_prefix"
  16198. exec_prefix="$acl_final_exec_prefix"
  16199. eval x=\"$x\"
  16200. exec_prefix="$acl_save_exec_prefix"
  16201. prefix="$acl_save_prefix"
  16202. if test "X$x" = "X$element"; then
  16203. haveit=yes
  16204. break
  16205. fi
  16206. done
  16207. if test -z "$haveit"; then
  16208. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  16209. fi
  16210. done
  16211. fi
  16212. cat >>confdefs.h <<\_ACEOF
  16213. #define HAVE_GETTEXT 1
  16214. _ACEOF
  16215. cat >>confdefs.h <<\_ACEOF
  16216. #define HAVE_DCGETTEXT 1
  16217. _ACEOF
  16218. fi
  16219. POSUB=po
  16220. fi
  16221. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  16222. BUILD_INCLUDED_LIBINTL=yes
  16223. fi
  16224. nls_cv_header_intl=
  16225. nls_cv_header_libgt=
  16226. DATADIRNAME=share
  16227. INSTOBJEXT=.mo
  16228. GENCAT=gencat
  16229. INTLOBJS=
  16230. if test "$USE_INCLUDED_LIBINTL" = yes; then
  16231. INTLOBJS="\$(GETTOBJS)"
  16232. fi
  16233. INTL_LIBTOOL_SUFFIX_PREFIX=
  16234. INTLLIBS="$LIBINTL"
  16235. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  16236. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  16237. if test "${ac_cv_lib_error_at_line+set}" = set; then
  16238. echo $ECHO_N "(cached) $ECHO_C" >&6
  16239. else
  16240. cat >conftest.$ac_ext <<_ACEOF
  16241. /* confdefs.h. */
  16242. _ACEOF
  16243. cat confdefs.h >>conftest.$ac_ext
  16244. cat >>conftest.$ac_ext <<_ACEOF
  16245. /* end confdefs.h. */
  16246. #include <error.h>
  16247. int
  16248. main ()
  16249. {
  16250. error_at_line (0, 0, "", 0, "an error occurred");
  16251. ;
  16252. return 0;
  16253. }
  16254. _ACEOF
  16255. rm -f conftest.$ac_objext conftest$ac_exeext
  16256. if { (ac_try="$ac_link"
  16257. case "(($ac_try" in
  16258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16259. *) ac_try_echo=$ac_try;;
  16260. esac
  16261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16262. (eval "$ac_link") 2>conftest.er1
  16263. ac_status=$?
  16264. grep -v '^ *+' conftest.er1 >conftest.err
  16265. rm -f conftest.er1
  16266. cat conftest.err >&5
  16267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16268. (exit $ac_status); } && {
  16269. test -z "$ac_cxx_werror_flag" ||
  16270. test ! -s conftest.err
  16271. } && test -s conftest$ac_exeext &&
  16272. $as_test_x conftest$ac_exeext; then
  16273. ac_cv_lib_error_at_line=yes
  16274. else
  16275. echo "$as_me: failed program was:" >&5
  16276. sed 's/^/| /' conftest.$ac_ext >&5
  16277. ac_cv_lib_error_at_line=no
  16278. fi
  16279. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16280. conftest$ac_exeext conftest.$ac_ext
  16281. fi
  16282. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16283. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16284. if test $ac_cv_lib_error_at_line = no; then
  16285. case " $LIBOBJS " in
  16286. *" error.$ac_objext "* ) ;;
  16287. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16288. ;;
  16289. esac
  16290. fi
  16291. if test $ac_cv_c_compiler_gnu = yes; then
  16292. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16293. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16294. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16295. echo $ECHO_N "(cached) $ECHO_C" >&6
  16296. else
  16297. ac_pattern="Autoconf.*'x'"
  16298. cat >conftest.$ac_ext <<_ACEOF
  16299. /* confdefs.h. */
  16300. _ACEOF
  16301. cat confdefs.h >>conftest.$ac_ext
  16302. cat >>conftest.$ac_ext <<_ACEOF
  16303. /* end confdefs.h. */
  16304. #include <sgtty.h>
  16305. Autoconf TIOCGETP
  16306. _ACEOF
  16307. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16308. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16309. ac_cv_prog_gcc_traditional=yes
  16310. else
  16311. ac_cv_prog_gcc_traditional=no
  16312. fi
  16313. rm -f conftest*
  16314. if test $ac_cv_prog_gcc_traditional = no; then
  16315. cat >conftest.$ac_ext <<_ACEOF
  16316. /* confdefs.h. */
  16317. _ACEOF
  16318. cat confdefs.h >>conftest.$ac_ext
  16319. cat >>conftest.$ac_ext <<_ACEOF
  16320. /* end confdefs.h. */
  16321. #include <termio.h>
  16322. Autoconf TCGETA
  16323. _ACEOF
  16324. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16325. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16326. ac_cv_prog_gcc_traditional=yes
  16327. fi
  16328. rm -f conftest*
  16329. fi
  16330. fi
  16331. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16332. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16333. if test $ac_cv_prog_gcc_traditional = yes; then
  16334. CC="$CC -traditional"
  16335. fi
  16336. fi
  16337. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16338. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16339. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16340. echo $ECHO_N "(cached) $ECHO_C" >&6
  16341. else
  16342. if test "$cross_compiling" = yes; then
  16343. ac_cv_func_memcmp_working=no
  16344. else
  16345. cat >conftest.$ac_ext <<_ACEOF
  16346. /* confdefs.h. */
  16347. _ACEOF
  16348. cat confdefs.h >>conftest.$ac_ext
  16349. cat >>conftest.$ac_ext <<_ACEOF
  16350. /* end confdefs.h. */
  16351. $ac_includes_default
  16352. int
  16353. main ()
  16354. {
  16355. /* Some versions of memcmp are not 8-bit clean. */
  16356. char c0 = '\100', c1 = '\200', c2 = '\201';
  16357. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16358. return 1;
  16359. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16360. or more and with at least one buffer not starting on a 4-byte boundary.
  16361. William Lewis provided this test program. */
  16362. {
  16363. char foo[21];
  16364. char bar[21];
  16365. int i;
  16366. for (i = 0; i < 4; i++)
  16367. {
  16368. char *a = foo + i;
  16369. char *b = bar + i;
  16370. strcpy (a, "--------01111111");
  16371. strcpy (b, "--------10000000");
  16372. if (memcmp (a, b, 16) >= 0)
  16373. return 1;
  16374. }
  16375. return 0;
  16376. }
  16377. ;
  16378. return 0;
  16379. }
  16380. _ACEOF
  16381. rm -f conftest$ac_exeext
  16382. if { (ac_try="$ac_link"
  16383. case "(($ac_try" in
  16384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16385. *) ac_try_echo=$ac_try;;
  16386. esac
  16387. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16388. (eval "$ac_link") 2>&5
  16389. ac_status=$?
  16390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16391. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  16398. ac_status=$?
  16399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16400. (exit $ac_status); }; }; then
  16401. ac_cv_func_memcmp_working=yes
  16402. else
  16403. echo "$as_me: program exited with status $ac_status" >&5
  16404. echo "$as_me: failed program was:" >&5
  16405. sed 's/^/| /' conftest.$ac_ext >&5
  16406. ( exit $ac_status )
  16407. ac_cv_func_memcmp_working=no
  16408. fi
  16409. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16410. fi
  16411. fi
  16412. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16413. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16414. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16415. *" memcmp.$ac_objext "* ) ;;
  16416. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16417. ;;
  16418. esac
  16419. for ac_header in $ac_header_list
  16420. do
  16421. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16422. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16423. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16424. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16425. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16426. echo $ECHO_N "(cached) $ECHO_C" >&6
  16427. fi
  16428. ac_res=`eval echo '${'$as_ac_Header'}'`
  16429. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16430. echo "${ECHO_T}$ac_res" >&6; }
  16431. else
  16432. # Is the header compilable?
  16433. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16434. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16435. cat >conftest.$ac_ext <<_ACEOF
  16436. /* confdefs.h. */
  16437. _ACEOF
  16438. cat confdefs.h >>conftest.$ac_ext
  16439. cat >>conftest.$ac_ext <<_ACEOF
  16440. /* end confdefs.h. */
  16441. $ac_includes_default
  16442. #include <$ac_header>
  16443. _ACEOF
  16444. rm -f conftest.$ac_objext
  16445. if { (ac_try="$ac_compile"
  16446. case "(($ac_try" in
  16447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16448. *) ac_try_echo=$ac_try;;
  16449. esac
  16450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16451. (eval "$ac_compile") 2>conftest.er1
  16452. ac_status=$?
  16453. grep -v '^ *+' conftest.er1 >conftest.err
  16454. rm -f conftest.er1
  16455. cat conftest.err >&5
  16456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16457. (exit $ac_status); } && {
  16458. test -z "$ac_cxx_werror_flag" ||
  16459. test ! -s conftest.err
  16460. } && test -s conftest.$ac_objext; then
  16461. ac_header_compiler=yes
  16462. else
  16463. echo "$as_me: failed program was:" >&5
  16464. sed 's/^/| /' conftest.$ac_ext >&5
  16465. ac_header_compiler=no
  16466. fi
  16467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16468. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16469. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16470. # Is the header present?
  16471. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16472. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16473. cat >conftest.$ac_ext <<_ACEOF
  16474. /* confdefs.h. */
  16475. _ACEOF
  16476. cat confdefs.h >>conftest.$ac_ext
  16477. cat >>conftest.$ac_ext <<_ACEOF
  16478. /* end confdefs.h. */
  16479. #include <$ac_header>
  16480. _ACEOF
  16481. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16482. case "(($ac_try" in
  16483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16484. *) ac_try_echo=$ac_try;;
  16485. esac
  16486. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16487. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16488. ac_status=$?
  16489. grep -v '^ *+' conftest.er1 >conftest.err
  16490. rm -f conftest.er1
  16491. cat conftest.err >&5
  16492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16493. (exit $ac_status); } >/dev/null && {
  16494. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16495. test ! -s conftest.err
  16496. }; then
  16497. ac_header_preproc=yes
  16498. else
  16499. echo "$as_me: failed program was:" >&5
  16500. sed 's/^/| /' conftest.$ac_ext >&5
  16501. ac_header_preproc=no
  16502. fi
  16503. rm -f conftest.err conftest.$ac_ext
  16504. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16505. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16506. # So? What about this header?
  16507. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16508. yes:no: )
  16509. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16510. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16511. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16512. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16513. ac_header_preproc=yes
  16514. ;;
  16515. no:yes:* )
  16516. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16517. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16518. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16519. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16520. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16521. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16522. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16523. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16524. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16525. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16526. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16527. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16528. ( cat <<\_ASBOX
  16529. ## ----------------------------------------------- ##
  16530. ## Report this to t-tujikawa@users.sourceforge.net ##
  16531. ## ----------------------------------------------- ##
  16532. _ASBOX
  16533. ) | sed "s/^/$as_me: WARNING: /" >&2
  16534. ;;
  16535. esac
  16536. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16537. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16538. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16539. echo $ECHO_N "(cached) $ECHO_C" >&6
  16540. else
  16541. eval "$as_ac_Header=\$ac_header_preproc"
  16542. fi
  16543. ac_res=`eval echo '${'$as_ac_Header'}'`
  16544. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16545. echo "${ECHO_T}$ac_res" >&6; }
  16546. fi
  16547. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16548. cat >>confdefs.h <<_ACEOF
  16549. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16550. _ACEOF
  16551. fi
  16552. done
  16553. for ac_func in $ac_func_list
  16554. do
  16555. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16556. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16557. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16558. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16559. echo $ECHO_N "(cached) $ECHO_C" >&6
  16560. else
  16561. cat >conftest.$ac_ext <<_ACEOF
  16562. /* confdefs.h. */
  16563. _ACEOF
  16564. cat confdefs.h >>conftest.$ac_ext
  16565. cat >>conftest.$ac_ext <<_ACEOF
  16566. /* end confdefs.h. */
  16567. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16568. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16569. #define $ac_func innocuous_$ac_func
  16570. /* System header to define __stub macros and hopefully few prototypes,
  16571. which can conflict with char $ac_func (); below.
  16572. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16573. <limits.h> exists even on freestanding compilers. */
  16574. #ifdef __STDC__
  16575. # include <limits.h>
  16576. #else
  16577. # include <assert.h>
  16578. #endif
  16579. #undef $ac_func
  16580. /* Override any GCC internal prototype to avoid an error.
  16581. Use char because int might match the return type of a GCC
  16582. builtin and then its argument prototype would still apply. */
  16583. #ifdef __cplusplus
  16584. extern "C"
  16585. #endif
  16586. char $ac_func ();
  16587. /* The GNU C library defines this for functions which it implements
  16588. to always fail with ENOSYS. Some functions are actually named
  16589. something starting with __ and the normal name is an alias. */
  16590. #if defined __stub_$ac_func || defined __stub___$ac_func
  16591. choke me
  16592. #endif
  16593. int
  16594. main ()
  16595. {
  16596. return $ac_func ();
  16597. ;
  16598. return 0;
  16599. }
  16600. _ACEOF
  16601. rm -f conftest.$ac_objext conftest$ac_exeext
  16602. if { (ac_try="$ac_link"
  16603. case "(($ac_try" in
  16604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16605. *) ac_try_echo=$ac_try;;
  16606. esac
  16607. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16608. (eval "$ac_link") 2>conftest.er1
  16609. ac_status=$?
  16610. grep -v '^ *+' conftest.er1 >conftest.err
  16611. rm -f conftest.er1
  16612. cat conftest.err >&5
  16613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16614. (exit $ac_status); } && {
  16615. test -z "$ac_cxx_werror_flag" ||
  16616. test ! -s conftest.err
  16617. } && test -s conftest$ac_exeext &&
  16618. $as_test_x conftest$ac_exeext; then
  16619. eval "$as_ac_var=yes"
  16620. else
  16621. echo "$as_me: failed program was:" >&5
  16622. sed 's/^/| /' conftest.$ac_ext >&5
  16623. eval "$as_ac_var=no"
  16624. fi
  16625. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16626. conftest$ac_exeext conftest.$ac_ext
  16627. fi
  16628. ac_res=`eval echo '${'$as_ac_var'}'`
  16629. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16630. echo "${ECHO_T}$ac_res" >&6; }
  16631. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16632. cat >>confdefs.h <<_ACEOF
  16633. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16634. _ACEOF
  16635. fi
  16636. done
  16637. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16638. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16639. if test "${ac_cv_func_working_mktime+set}" = set; then
  16640. echo $ECHO_N "(cached) $ECHO_C" >&6
  16641. else
  16642. if test "$cross_compiling" = yes; then
  16643. ac_cv_func_working_mktime=no
  16644. else
  16645. cat >conftest.$ac_ext <<_ACEOF
  16646. /* confdefs.h. */
  16647. _ACEOF
  16648. cat confdefs.h >>conftest.$ac_ext
  16649. cat >>conftest.$ac_ext <<_ACEOF
  16650. /* end confdefs.h. */
  16651. /* Test program from Paul Eggert and Tony Leneis. */
  16652. #ifdef TIME_WITH_SYS_TIME
  16653. # include <sys/time.h>
  16654. # include <time.h>
  16655. #else
  16656. # ifdef HAVE_SYS_TIME_H
  16657. # include <sys/time.h>
  16658. # else
  16659. # include <time.h>
  16660. # endif
  16661. #endif
  16662. #include <limits.h>
  16663. #include <stdlib.h>
  16664. #ifdef HAVE_UNISTD_H
  16665. # include <unistd.h>
  16666. #endif
  16667. #ifndef HAVE_ALARM
  16668. # define alarm(X) /* empty */
  16669. #endif
  16670. /* Work around redefinition to rpl_putenv by other config tests. */
  16671. #undef putenv
  16672. static time_t time_t_max;
  16673. static time_t time_t_min;
  16674. /* Values we'll use to set the TZ environment variable. */
  16675. static char *tz_strings[] = {
  16676. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16677. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16678. };
  16679. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16680. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16681. Based on a problem report from Andreas Jaeger. */
  16682. static int
  16683. spring_forward_gap ()
  16684. {
  16685. /* glibc (up to about 1998-10-07) failed this test. */
  16686. struct tm tm;
  16687. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16688. instead of "TZ=America/Vancouver" in order to detect the bug even
  16689. on systems that don't support the Olson extension, or don't have the
  16690. full zoneinfo tables installed. */
  16691. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16692. tm.tm_year = 98;
  16693. tm.tm_mon = 3;
  16694. tm.tm_mday = 5;
  16695. tm.tm_hour = 2;
  16696. tm.tm_min = 0;
  16697. tm.tm_sec = 0;
  16698. tm.tm_isdst = -1;
  16699. return mktime (&tm) != (time_t) -1;
  16700. }
  16701. static int
  16702. mktime_test1 (now)
  16703. time_t now;
  16704. {
  16705. struct tm *lt;
  16706. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16707. }
  16708. static int
  16709. mktime_test (now)
  16710. time_t now;
  16711. {
  16712. return (mktime_test1 (now)
  16713. && mktime_test1 ((time_t) (time_t_max - now))
  16714. && mktime_test1 ((time_t) (time_t_min + now)));
  16715. }
  16716. static int
  16717. irix_6_4_bug ()
  16718. {
  16719. /* Based on code from Ariel Faigon. */
  16720. struct tm tm;
  16721. tm.tm_year = 96;
  16722. tm.tm_mon = 3;
  16723. tm.tm_mday = 0;
  16724. tm.tm_hour = 0;
  16725. tm.tm_min = 0;
  16726. tm.tm_sec = 0;
  16727. tm.tm_isdst = -1;
  16728. mktime (&tm);
  16729. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16730. }
  16731. static int
  16732. bigtime_test (j)
  16733. int j;
  16734. {
  16735. struct tm tm;
  16736. time_t now;
  16737. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16738. now = mktime (&tm);
  16739. if (now != (time_t) -1)
  16740. {
  16741. struct tm *lt = localtime (&now);
  16742. if (! (lt
  16743. && lt->tm_year == tm.tm_year
  16744. && lt->tm_mon == tm.tm_mon
  16745. && lt->tm_mday == tm.tm_mday
  16746. && lt->tm_hour == tm.tm_hour
  16747. && lt->tm_min == tm.tm_min
  16748. && lt->tm_sec == tm.tm_sec
  16749. && lt->tm_yday == tm.tm_yday
  16750. && lt->tm_wday == tm.tm_wday
  16751. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16752. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16753. return 0;
  16754. }
  16755. return 1;
  16756. }
  16757. static int
  16758. year_2050_test ()
  16759. {
  16760. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16761. ignoring leap seconds. */
  16762. unsigned long int answer = 2527315200UL;
  16763. struct tm tm;
  16764. time_t t;
  16765. tm.tm_year = 2050 - 1900;
  16766. tm.tm_mon = 2 - 1;
  16767. tm.tm_mday = 1;
  16768. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16769. tm.tm_isdst = -1;
  16770. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16771. instead of "TZ=America/Vancouver" in order to detect the bug even
  16772. on systems that don't support the Olson extension, or don't have the
  16773. full zoneinfo tables installed. */
  16774. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16775. t = mktime (&tm);
  16776. /* Check that the result is either a failure, or close enough
  16777. to the correct answer that we can assume the discrepancy is
  16778. due to leap seconds. */
  16779. return (t == (time_t) -1
  16780. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16781. }
  16782. int
  16783. main ()
  16784. {
  16785. time_t t, delta;
  16786. int i, j;
  16787. /* This test makes some buggy mktime implementations loop.
  16788. Give up after 60 seconds; a mktime slower than that
  16789. isn't worth using anyway. */
  16790. alarm (60);
  16791. for (;;)
  16792. {
  16793. t = (time_t_max << 1) + 1;
  16794. if (t <= time_t_max)
  16795. break;
  16796. time_t_max = t;
  16797. }
  16798. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16799. delta = time_t_max / 997; /* a suitable prime number */
  16800. for (i = 0; i < N_STRINGS; i++)
  16801. {
  16802. if (tz_strings[i])
  16803. putenv (tz_strings[i]);
  16804. for (t = 0; t <= time_t_max - delta; t += delta)
  16805. if (! mktime_test (t))
  16806. return 1;
  16807. if (! (mktime_test ((time_t) 1)
  16808. && mktime_test ((time_t) (60 * 60))
  16809. && mktime_test ((time_t) (60 * 60 * 24))))
  16810. return 1;
  16811. for (j = 1; ; j <<= 1)
  16812. if (! bigtime_test (j))
  16813. return 1;
  16814. else if (INT_MAX / 2 < j)
  16815. break;
  16816. if (! bigtime_test (INT_MAX))
  16817. return 1;
  16818. }
  16819. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16820. }
  16821. _ACEOF
  16822. rm -f conftest$ac_exeext
  16823. if { (ac_try="$ac_link"
  16824. case "(($ac_try" in
  16825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16826. *) ac_try_echo=$ac_try;;
  16827. esac
  16828. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16829. (eval "$ac_link") 2>&5
  16830. ac_status=$?
  16831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16832. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16833. { (case "(($ac_try" in
  16834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16835. *) ac_try_echo=$ac_try;;
  16836. esac
  16837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16838. (eval "$ac_try") 2>&5
  16839. ac_status=$?
  16840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16841. (exit $ac_status); }; }; then
  16842. ac_cv_func_working_mktime=yes
  16843. else
  16844. echo "$as_me: program exited with status $ac_status" >&5
  16845. echo "$as_me: failed program was:" >&5
  16846. sed 's/^/| /' conftest.$ac_ext >&5
  16847. ( exit $ac_status )
  16848. ac_cv_func_working_mktime=no
  16849. fi
  16850. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16851. fi
  16852. fi
  16853. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16854. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  16855. if test $ac_cv_func_working_mktime = no; then
  16856. case " $LIBOBJS " in
  16857. *" mktime.$ac_objext "* ) ;;
  16858. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16859. ;;
  16860. esac
  16861. fi
  16862. for ac_header in stdlib.h unistd.h
  16863. do
  16864. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16865. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16866. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16867. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16868. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16869. echo $ECHO_N "(cached) $ECHO_C" >&6
  16870. fi
  16871. ac_res=`eval echo '${'$as_ac_Header'}'`
  16872. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16873. echo "${ECHO_T}$ac_res" >&6; }
  16874. else
  16875. # Is the header compilable?
  16876. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16877. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16878. cat >conftest.$ac_ext <<_ACEOF
  16879. /* confdefs.h. */
  16880. _ACEOF
  16881. cat confdefs.h >>conftest.$ac_ext
  16882. cat >>conftest.$ac_ext <<_ACEOF
  16883. /* end confdefs.h. */
  16884. $ac_includes_default
  16885. #include <$ac_header>
  16886. _ACEOF
  16887. rm -f conftest.$ac_objext
  16888. if { (ac_try="$ac_compile"
  16889. case "(($ac_try" in
  16890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16891. *) ac_try_echo=$ac_try;;
  16892. esac
  16893. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16894. (eval "$ac_compile") 2>conftest.er1
  16895. ac_status=$?
  16896. grep -v '^ *+' conftest.er1 >conftest.err
  16897. rm -f conftest.er1
  16898. cat conftest.err >&5
  16899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16900. (exit $ac_status); } && {
  16901. test -z "$ac_cxx_werror_flag" ||
  16902. test ! -s conftest.err
  16903. } && test -s conftest.$ac_objext; then
  16904. ac_header_compiler=yes
  16905. else
  16906. echo "$as_me: failed program was:" >&5
  16907. sed 's/^/| /' conftest.$ac_ext >&5
  16908. ac_header_compiler=no
  16909. fi
  16910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16911. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16912. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16913. # Is the header present?
  16914. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16915. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16916. cat >conftest.$ac_ext <<_ACEOF
  16917. /* confdefs.h. */
  16918. _ACEOF
  16919. cat confdefs.h >>conftest.$ac_ext
  16920. cat >>conftest.$ac_ext <<_ACEOF
  16921. /* end confdefs.h. */
  16922. #include <$ac_header>
  16923. _ACEOF
  16924. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16925. case "(($ac_try" in
  16926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16927. *) ac_try_echo=$ac_try;;
  16928. esac
  16929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16930. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16931. ac_status=$?
  16932. grep -v '^ *+' conftest.er1 >conftest.err
  16933. rm -f conftest.er1
  16934. cat conftest.err >&5
  16935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16936. (exit $ac_status); } >/dev/null && {
  16937. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16938. test ! -s conftest.err
  16939. }; then
  16940. ac_header_preproc=yes
  16941. else
  16942. echo "$as_me: failed program was:" >&5
  16943. sed 's/^/| /' conftest.$ac_ext >&5
  16944. ac_header_preproc=no
  16945. fi
  16946. rm -f conftest.err conftest.$ac_ext
  16947. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16948. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16949. # So? What about this header?
  16950. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16951. yes:no: )
  16952. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16953. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16954. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16955. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16956. ac_header_preproc=yes
  16957. ;;
  16958. no:yes:* )
  16959. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16960. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16961. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16962. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16963. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16964. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16965. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16966. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16967. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16968. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16969. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16970. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16971. ( cat <<\_ASBOX
  16972. ## ----------------------------------------------- ##
  16973. ## Report this to t-tujikawa@users.sourceforge.net ##
  16974. ## ----------------------------------------------- ##
  16975. _ASBOX
  16976. ) | sed "s/^/$as_me: WARNING: /" >&2
  16977. ;;
  16978. esac
  16979. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16980. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16981. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16982. echo $ECHO_N "(cached) $ECHO_C" >&6
  16983. else
  16984. eval "$as_ac_Header=\$ac_header_preproc"
  16985. fi
  16986. ac_res=`eval echo '${'$as_ac_Header'}'`
  16987. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16988. echo "${ECHO_T}$ac_res" >&6; }
  16989. fi
  16990. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16991. cat >>confdefs.h <<_ACEOF
  16992. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16993. _ACEOF
  16994. fi
  16995. done
  16996. for ac_func in getpagesize
  16997. do
  16998. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16999. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17000. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17001. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17002. echo $ECHO_N "(cached) $ECHO_C" >&6
  17003. else
  17004. cat >conftest.$ac_ext <<_ACEOF
  17005. /* confdefs.h. */
  17006. _ACEOF
  17007. cat confdefs.h >>conftest.$ac_ext
  17008. cat >>conftest.$ac_ext <<_ACEOF
  17009. /* end confdefs.h. */
  17010. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17011. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17012. #define $ac_func innocuous_$ac_func
  17013. /* System header to define __stub macros and hopefully few prototypes,
  17014. which can conflict with char $ac_func (); below.
  17015. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17016. <limits.h> exists even on freestanding compilers. */
  17017. #ifdef __STDC__
  17018. # include <limits.h>
  17019. #else
  17020. # include <assert.h>
  17021. #endif
  17022. #undef $ac_func
  17023. /* Override any GCC internal prototype to avoid an error.
  17024. Use char because int might match the return type of a GCC
  17025. builtin and then its argument prototype would still apply. */
  17026. #ifdef __cplusplus
  17027. extern "C"
  17028. #endif
  17029. char $ac_func ();
  17030. /* The GNU C library defines this for functions which it implements
  17031. to always fail with ENOSYS. Some functions are actually named
  17032. something starting with __ and the normal name is an alias. */
  17033. #if defined __stub_$ac_func || defined __stub___$ac_func
  17034. choke me
  17035. #endif
  17036. int
  17037. main ()
  17038. {
  17039. return $ac_func ();
  17040. ;
  17041. return 0;
  17042. }
  17043. _ACEOF
  17044. rm -f conftest.$ac_objext conftest$ac_exeext
  17045. if { (ac_try="$ac_link"
  17046. case "(($ac_try" in
  17047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17048. *) ac_try_echo=$ac_try;;
  17049. esac
  17050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17051. (eval "$ac_link") 2>conftest.er1
  17052. ac_status=$?
  17053. grep -v '^ *+' conftest.er1 >conftest.err
  17054. rm -f conftest.er1
  17055. cat conftest.err >&5
  17056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17057. (exit $ac_status); } && {
  17058. test -z "$ac_cxx_werror_flag" ||
  17059. test ! -s conftest.err
  17060. } && test -s conftest$ac_exeext &&
  17061. $as_test_x conftest$ac_exeext; then
  17062. eval "$as_ac_var=yes"
  17063. else
  17064. echo "$as_me: failed program was:" >&5
  17065. sed 's/^/| /' conftest.$ac_ext >&5
  17066. eval "$as_ac_var=no"
  17067. fi
  17068. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17069. conftest$ac_exeext conftest.$ac_ext
  17070. fi
  17071. ac_res=`eval echo '${'$as_ac_var'}'`
  17072. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17073. echo "${ECHO_T}$ac_res" >&6; }
  17074. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17075. cat >>confdefs.h <<_ACEOF
  17076. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17077. _ACEOF
  17078. fi
  17079. done
  17080. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17081. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17082. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17083. echo $ECHO_N "(cached) $ECHO_C" >&6
  17084. else
  17085. if test "$cross_compiling" = yes; then
  17086. ac_cv_func_mmap_fixed_mapped=no
  17087. else
  17088. cat >conftest.$ac_ext <<_ACEOF
  17089. /* confdefs.h. */
  17090. _ACEOF
  17091. cat confdefs.h >>conftest.$ac_ext
  17092. cat >>conftest.$ac_ext <<_ACEOF
  17093. /* end confdefs.h. */
  17094. $ac_includes_default
  17095. /* malloc might have been renamed as rpl_malloc. */
  17096. #undef malloc
  17097. /* Thanks to Mike Haertel and Jim Avera for this test.
  17098. Here is a matrix of mmap possibilities:
  17099. mmap private not fixed
  17100. mmap private fixed at somewhere currently unmapped
  17101. mmap private fixed at somewhere already mapped
  17102. mmap shared not fixed
  17103. mmap shared fixed at somewhere currently unmapped
  17104. mmap shared fixed at somewhere already mapped
  17105. For private mappings, we should verify that changes cannot be read()
  17106. back from the file, nor mmap's back from the file at a different
  17107. address. (There have been systems where private was not correctly
  17108. implemented like the infamous i386 svr4.0, and systems where the
  17109. VM page cache was not coherent with the file system buffer cache
  17110. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17111. For shared mappings, we should conversely verify that changes get
  17112. propagated back to all the places they're supposed to be.
  17113. Grep wants private fixed already mapped.
  17114. The main things grep needs to know about mmap are:
  17115. * does it exist and is it safe to write into the mmap'd area
  17116. * how to use it (BSD variants) */
  17117. #include <fcntl.h>
  17118. #include <sys/mman.h>
  17119. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17120. char *malloc ();
  17121. #endif
  17122. /* This mess was copied from the GNU getpagesize.h. */
  17123. #ifndef HAVE_GETPAGESIZE
  17124. /* Assume that all systems that can run configure have sys/param.h. */
  17125. # ifndef HAVE_SYS_PARAM_H
  17126. # define HAVE_SYS_PARAM_H 1
  17127. # endif
  17128. # ifdef _SC_PAGESIZE
  17129. # define getpagesize() sysconf(_SC_PAGESIZE)
  17130. # else /* no _SC_PAGESIZE */
  17131. # ifdef HAVE_SYS_PARAM_H
  17132. # include <sys/param.h>
  17133. # ifdef EXEC_PAGESIZE
  17134. # define getpagesize() EXEC_PAGESIZE
  17135. # else /* no EXEC_PAGESIZE */
  17136. # ifdef NBPG
  17137. # define getpagesize() NBPG * CLSIZE
  17138. # ifndef CLSIZE
  17139. # define CLSIZE 1
  17140. # endif /* no CLSIZE */
  17141. # else /* no NBPG */
  17142. # ifdef NBPC
  17143. # define getpagesize() NBPC
  17144. # else /* no NBPC */
  17145. # ifdef PAGESIZE
  17146. # define getpagesize() PAGESIZE
  17147. # endif /* PAGESIZE */
  17148. # endif /* no NBPC */
  17149. # endif /* no NBPG */
  17150. # endif /* no EXEC_PAGESIZE */
  17151. # else /* no HAVE_SYS_PARAM_H */
  17152. # define getpagesize() 8192 /* punt totally */
  17153. # endif /* no HAVE_SYS_PARAM_H */
  17154. # endif /* no _SC_PAGESIZE */
  17155. #endif /* no HAVE_GETPAGESIZE */
  17156. int
  17157. main ()
  17158. {
  17159. char *data, *data2, *data3;
  17160. int i, pagesize;
  17161. int fd;
  17162. pagesize = getpagesize ();
  17163. /* First, make a file with some known garbage in it. */
  17164. data = (char *) malloc (pagesize);
  17165. if (!data)
  17166. return 1;
  17167. for (i = 0; i < pagesize; ++i)
  17168. *(data + i) = rand ();
  17169. umask (0);
  17170. fd = creat ("conftest.mmap", 0600);
  17171. if (fd < 0)
  17172. return 1;
  17173. if (write (fd, data, pagesize) != pagesize)
  17174. return 1;
  17175. close (fd);
  17176. /* Next, try to mmap the file at a fixed address which already has
  17177. something else allocated at it. If we can, also make sure that
  17178. we see the same garbage. */
  17179. fd = open ("conftest.mmap", O_RDWR);
  17180. if (fd < 0)
  17181. return 1;
  17182. data2 = (char *) malloc (2 * pagesize);
  17183. if (!data2)
  17184. return 1;
  17185. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17186. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17187. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17188. return 1;
  17189. for (i = 0; i < pagesize; ++i)
  17190. if (*(data + i) != *(data2 + i))
  17191. return 1;
  17192. /* Finally, make sure that changes to the mapped area do not
  17193. percolate back to the file as seen by read(). (This is a bug on
  17194. some variants of i386 svr4.0.) */
  17195. for (i = 0; i < pagesize; ++i)
  17196. *(data2 + i) = *(data2 + i) + 1;
  17197. data3 = (char *) malloc (pagesize);
  17198. if (!data3)
  17199. return 1;
  17200. if (read (fd, data3, pagesize) != pagesize)
  17201. return 1;
  17202. for (i = 0; i < pagesize; ++i)
  17203. if (*(data + i) != *(data3 + i))
  17204. return 1;
  17205. close (fd);
  17206. return 0;
  17207. }
  17208. _ACEOF
  17209. rm -f conftest$ac_exeext
  17210. if { (ac_try="$ac_link"
  17211. case "(($ac_try" in
  17212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17213. *) ac_try_echo=$ac_try;;
  17214. esac
  17215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17216. (eval "$ac_link") 2>&5
  17217. ac_status=$?
  17218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17219. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17220. { (case "(($ac_try" in
  17221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17222. *) ac_try_echo=$ac_try;;
  17223. esac
  17224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17225. (eval "$ac_try") 2>&5
  17226. ac_status=$?
  17227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17228. (exit $ac_status); }; }; then
  17229. ac_cv_func_mmap_fixed_mapped=yes
  17230. else
  17231. echo "$as_me: program exited with status $ac_status" >&5
  17232. echo "$as_me: failed program was:" >&5
  17233. sed 's/^/| /' conftest.$ac_ext >&5
  17234. ( exit $ac_status )
  17235. ac_cv_func_mmap_fixed_mapped=no
  17236. fi
  17237. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17238. fi
  17239. fi
  17240. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17241. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17242. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17243. cat >>confdefs.h <<\_ACEOF
  17244. #define HAVE_MMAP 1
  17245. _ACEOF
  17246. fi
  17247. rm -f conftest.mmap
  17248. for ac_header in sys/select.h sys/socket.h
  17249. do
  17250. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17251. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17252. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17253. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17254. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17255. echo $ECHO_N "(cached) $ECHO_C" >&6
  17256. fi
  17257. ac_res=`eval echo '${'$as_ac_Header'}'`
  17258. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17259. echo "${ECHO_T}$ac_res" >&6; }
  17260. else
  17261. # Is the header compilable?
  17262. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17263. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17264. cat >conftest.$ac_ext <<_ACEOF
  17265. /* confdefs.h. */
  17266. _ACEOF
  17267. cat confdefs.h >>conftest.$ac_ext
  17268. cat >>conftest.$ac_ext <<_ACEOF
  17269. /* end confdefs.h. */
  17270. $ac_includes_default
  17271. #include <$ac_header>
  17272. _ACEOF
  17273. rm -f conftest.$ac_objext
  17274. if { (ac_try="$ac_compile"
  17275. case "(($ac_try" in
  17276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17277. *) ac_try_echo=$ac_try;;
  17278. esac
  17279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17280. (eval "$ac_compile") 2>conftest.er1
  17281. ac_status=$?
  17282. grep -v '^ *+' conftest.er1 >conftest.err
  17283. rm -f conftest.er1
  17284. cat conftest.err >&5
  17285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17286. (exit $ac_status); } && {
  17287. test -z "$ac_cxx_werror_flag" ||
  17288. test ! -s conftest.err
  17289. } && test -s conftest.$ac_objext; then
  17290. ac_header_compiler=yes
  17291. else
  17292. echo "$as_me: failed program was:" >&5
  17293. sed 's/^/| /' conftest.$ac_ext >&5
  17294. ac_header_compiler=no
  17295. fi
  17296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17297. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17298. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17299. # Is the header present?
  17300. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17301. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17302. cat >conftest.$ac_ext <<_ACEOF
  17303. /* confdefs.h. */
  17304. _ACEOF
  17305. cat confdefs.h >>conftest.$ac_ext
  17306. cat >>conftest.$ac_ext <<_ACEOF
  17307. /* end confdefs.h. */
  17308. #include <$ac_header>
  17309. _ACEOF
  17310. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17311. case "(($ac_try" in
  17312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17313. *) ac_try_echo=$ac_try;;
  17314. esac
  17315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17316. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17317. ac_status=$?
  17318. grep -v '^ *+' conftest.er1 >conftest.err
  17319. rm -f conftest.er1
  17320. cat conftest.err >&5
  17321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17322. (exit $ac_status); } >/dev/null && {
  17323. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17324. test ! -s conftest.err
  17325. }; then
  17326. ac_header_preproc=yes
  17327. else
  17328. echo "$as_me: failed program was:" >&5
  17329. sed 's/^/| /' conftest.$ac_ext >&5
  17330. ac_header_preproc=no
  17331. fi
  17332. rm -f conftest.err conftest.$ac_ext
  17333. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17334. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17335. # So? What about this header?
  17336. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17337. yes:no: )
  17338. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17339. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17340. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17341. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17342. ac_header_preproc=yes
  17343. ;;
  17344. no:yes:* )
  17345. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17346. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17347. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17348. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17349. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17350. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17351. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17352. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17353. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17354. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17355. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17356. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17357. ( cat <<\_ASBOX
  17358. ## ----------------------------------------------- ##
  17359. ## Report this to t-tujikawa@users.sourceforge.net ##
  17360. ## ----------------------------------------------- ##
  17361. _ASBOX
  17362. ) | sed "s/^/$as_me: WARNING: /" >&2
  17363. ;;
  17364. esac
  17365. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17366. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17367. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17368. echo $ECHO_N "(cached) $ECHO_C" >&6
  17369. else
  17370. eval "$as_ac_Header=\$ac_header_preproc"
  17371. fi
  17372. ac_res=`eval echo '${'$as_ac_Header'}'`
  17373. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17374. echo "${ECHO_T}$ac_res" >&6; }
  17375. fi
  17376. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17377. cat >>confdefs.h <<_ACEOF
  17378. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17379. _ACEOF
  17380. fi
  17381. done
  17382. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17383. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17384. if test "${ac_cv_func_select_args+set}" = set; then
  17385. echo $ECHO_N "(cached) $ECHO_C" >&6
  17386. else
  17387. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17388. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17389. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17390. cat >conftest.$ac_ext <<_ACEOF
  17391. /* confdefs.h. */
  17392. _ACEOF
  17393. cat confdefs.h >>conftest.$ac_ext
  17394. cat >>conftest.$ac_ext <<_ACEOF
  17395. /* end confdefs.h. */
  17396. $ac_includes_default
  17397. #ifdef HAVE_SYS_SELECT_H
  17398. # include <sys/select.h>
  17399. #endif
  17400. #ifdef HAVE_SYS_SOCKET_H
  17401. # include <sys/socket.h>
  17402. #endif
  17403. int
  17404. main ()
  17405. {
  17406. extern int select ($ac_arg1,
  17407. $ac_arg234, $ac_arg234, $ac_arg234,
  17408. $ac_arg5);
  17409. ;
  17410. return 0;
  17411. }
  17412. _ACEOF
  17413. rm -f conftest.$ac_objext
  17414. if { (ac_try="$ac_compile"
  17415. case "(($ac_try" in
  17416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17417. *) ac_try_echo=$ac_try;;
  17418. esac
  17419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17420. (eval "$ac_compile") 2>conftest.er1
  17421. ac_status=$?
  17422. grep -v '^ *+' conftest.er1 >conftest.err
  17423. rm -f conftest.er1
  17424. cat conftest.err >&5
  17425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17426. (exit $ac_status); } && {
  17427. test -z "$ac_cxx_werror_flag" ||
  17428. test ! -s conftest.err
  17429. } && test -s conftest.$ac_objext; then
  17430. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17431. else
  17432. echo "$as_me: failed program was:" >&5
  17433. sed 's/^/| /' conftest.$ac_ext >&5
  17434. fi
  17435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17436. done
  17437. done
  17438. done
  17439. # Provide a safe default value.
  17440. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17441. fi
  17442. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17443. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17444. ac_save_IFS=$IFS; IFS=','
  17445. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17446. IFS=$ac_save_IFS
  17447. shift
  17448. cat >>confdefs.h <<_ACEOF
  17449. #define SELECT_TYPE_ARG1 $1
  17450. _ACEOF
  17451. cat >>confdefs.h <<_ACEOF
  17452. #define SELECT_TYPE_ARG234 ($2)
  17453. _ACEOF
  17454. cat >>confdefs.h <<_ACEOF
  17455. #define SELECT_TYPE_ARG5 ($3)
  17456. _ACEOF
  17457. rm -f conftest*
  17458. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17459. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17460. if test "${ac_cv_type_signal+set}" = set; then
  17461. echo $ECHO_N "(cached) $ECHO_C" >&6
  17462. else
  17463. cat >conftest.$ac_ext <<_ACEOF
  17464. /* confdefs.h. */
  17465. _ACEOF
  17466. cat confdefs.h >>conftest.$ac_ext
  17467. cat >>conftest.$ac_ext <<_ACEOF
  17468. /* end confdefs.h. */
  17469. #include <sys/types.h>
  17470. #include <signal.h>
  17471. int
  17472. main ()
  17473. {
  17474. return *(signal (0, 0)) (0) == 1;
  17475. ;
  17476. return 0;
  17477. }
  17478. _ACEOF
  17479. rm -f conftest.$ac_objext
  17480. if { (ac_try="$ac_compile"
  17481. case "(($ac_try" in
  17482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17483. *) ac_try_echo=$ac_try;;
  17484. esac
  17485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17486. (eval "$ac_compile") 2>conftest.er1
  17487. ac_status=$?
  17488. grep -v '^ *+' conftest.er1 >conftest.err
  17489. rm -f conftest.er1
  17490. cat conftest.err >&5
  17491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17492. (exit $ac_status); } && {
  17493. test -z "$ac_cxx_werror_flag" ||
  17494. test ! -s conftest.err
  17495. } && test -s conftest.$ac_objext; then
  17496. ac_cv_type_signal=int
  17497. else
  17498. echo "$as_me: failed program was:" >&5
  17499. sed 's/^/| /' conftest.$ac_ext >&5
  17500. ac_cv_type_signal=void
  17501. fi
  17502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17503. fi
  17504. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17505. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17506. cat >>confdefs.h <<_ACEOF
  17507. #define RETSIGTYPE $ac_cv_type_signal
  17508. _ACEOF
  17509. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17510. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17511. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17512. echo $ECHO_N "(cached) $ECHO_C" >&6
  17513. else
  17514. rm -f conftest.sym conftest.file
  17515. echo >conftest.file
  17516. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17517. if test "$cross_compiling" = yes; then
  17518. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17519. else
  17520. cat >conftest.$ac_ext <<_ACEOF
  17521. /* confdefs.h. */
  17522. _ACEOF
  17523. cat confdefs.h >>conftest.$ac_ext
  17524. cat >>conftest.$ac_ext <<_ACEOF
  17525. /* end confdefs.h. */
  17526. $ac_includes_default
  17527. int
  17528. main ()
  17529. {
  17530. struct stat sbuf;
  17531. /* Linux will dereference the symlink and fail.
  17532. That is better in the sense that it means we will not
  17533. have to compile and use the lstat wrapper. */
  17534. return lstat ("conftest.sym/", &sbuf) == 0;
  17535. ;
  17536. return 0;
  17537. }
  17538. _ACEOF
  17539. rm -f conftest$ac_exeext
  17540. if { (ac_try="$ac_link"
  17541. case "(($ac_try" in
  17542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17543. *) ac_try_echo=$ac_try;;
  17544. esac
  17545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17546. (eval "$ac_link") 2>&5
  17547. ac_status=$?
  17548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17549. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17550. { (case "(($ac_try" in
  17551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17552. *) ac_try_echo=$ac_try;;
  17553. esac
  17554. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17555. (eval "$ac_try") 2>&5
  17556. ac_status=$?
  17557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17558. (exit $ac_status); }; }; then
  17559. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17560. else
  17561. echo "$as_me: program exited with status $ac_status" >&5
  17562. echo "$as_me: failed program was:" >&5
  17563. sed 's/^/| /' conftest.$ac_ext >&5
  17564. ( exit $ac_status )
  17565. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17566. fi
  17567. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17568. fi
  17569. else
  17570. # If the `ln -s' command failed, then we probably don't even
  17571. # have an lstat function.
  17572. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17573. fi
  17574. rm -f conftest.sym conftest.file
  17575. fi
  17576. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17577. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17578. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17579. cat >>confdefs.h <<_ACEOF
  17580. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17581. _ACEOF
  17582. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17583. case " $LIBOBJS " in
  17584. *" lstat.$ac_objext "* ) ;;
  17585. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17586. ;;
  17587. esac
  17588. fi
  17589. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17590. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17591. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17592. echo $ECHO_N "(cached) $ECHO_C" >&6
  17593. else
  17594. if test "$cross_compiling" = yes; then
  17595. ac_cv_func_stat_empty_string_bug=yes
  17596. else
  17597. cat >conftest.$ac_ext <<_ACEOF
  17598. /* confdefs.h. */
  17599. _ACEOF
  17600. cat confdefs.h >>conftest.$ac_ext
  17601. cat >>conftest.$ac_ext <<_ACEOF
  17602. /* end confdefs.h. */
  17603. $ac_includes_default
  17604. int
  17605. main ()
  17606. {
  17607. struct stat sbuf;
  17608. return stat ("", &sbuf) == 0;
  17609. ;
  17610. return 0;
  17611. }
  17612. _ACEOF
  17613. rm -f conftest$ac_exeext
  17614. if { (ac_try="$ac_link"
  17615. case "(($ac_try" in
  17616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17617. *) ac_try_echo=$ac_try;;
  17618. esac
  17619. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17620. (eval "$ac_link") 2>&5
  17621. ac_status=$?
  17622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17623. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17624. { (case "(($ac_try" in
  17625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17626. *) ac_try_echo=$ac_try;;
  17627. esac
  17628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17629. (eval "$ac_try") 2>&5
  17630. ac_status=$?
  17631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17632. (exit $ac_status); }; }; then
  17633. ac_cv_func_stat_empty_string_bug=no
  17634. else
  17635. echo "$as_me: program exited with status $ac_status" >&5
  17636. echo "$as_me: failed program was:" >&5
  17637. sed 's/^/| /' conftest.$ac_ext >&5
  17638. ( exit $ac_status )
  17639. ac_cv_func_stat_empty_string_bug=yes
  17640. fi
  17641. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17642. fi
  17643. fi
  17644. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17645. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17646. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17647. case " $LIBOBJS " in
  17648. *" stat.$ac_objext "* ) ;;
  17649. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17650. ;;
  17651. esac
  17652. cat >>confdefs.h <<_ACEOF
  17653. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17654. _ACEOF
  17655. fi
  17656. for ac_func in strftime
  17657. do
  17658. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17659. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17660. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17661. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17662. echo $ECHO_N "(cached) $ECHO_C" >&6
  17663. else
  17664. cat >conftest.$ac_ext <<_ACEOF
  17665. /* confdefs.h. */
  17666. _ACEOF
  17667. cat confdefs.h >>conftest.$ac_ext
  17668. cat >>conftest.$ac_ext <<_ACEOF
  17669. /* end confdefs.h. */
  17670. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17671. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17672. #define $ac_func innocuous_$ac_func
  17673. /* System header to define __stub macros and hopefully few prototypes,
  17674. which can conflict with char $ac_func (); below.
  17675. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17676. <limits.h> exists even on freestanding compilers. */
  17677. #ifdef __STDC__
  17678. # include <limits.h>
  17679. #else
  17680. # include <assert.h>
  17681. #endif
  17682. #undef $ac_func
  17683. /* Override any GCC internal prototype to avoid an error.
  17684. Use char because int might match the return type of a GCC
  17685. builtin and then its argument prototype would still apply. */
  17686. #ifdef __cplusplus
  17687. extern "C"
  17688. #endif
  17689. char $ac_func ();
  17690. /* The GNU C library defines this for functions which it implements
  17691. to always fail with ENOSYS. Some functions are actually named
  17692. something starting with __ and the normal name is an alias. */
  17693. #if defined __stub_$ac_func || defined __stub___$ac_func
  17694. choke me
  17695. #endif
  17696. int
  17697. main ()
  17698. {
  17699. return $ac_func ();
  17700. ;
  17701. return 0;
  17702. }
  17703. _ACEOF
  17704. rm -f conftest.$ac_objext conftest$ac_exeext
  17705. if { (ac_try="$ac_link"
  17706. case "(($ac_try" in
  17707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17708. *) ac_try_echo=$ac_try;;
  17709. esac
  17710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17711. (eval "$ac_link") 2>conftest.er1
  17712. ac_status=$?
  17713. grep -v '^ *+' conftest.er1 >conftest.err
  17714. rm -f conftest.er1
  17715. cat conftest.err >&5
  17716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17717. (exit $ac_status); } && {
  17718. test -z "$ac_cxx_werror_flag" ||
  17719. test ! -s conftest.err
  17720. } && test -s conftest$ac_exeext &&
  17721. $as_test_x conftest$ac_exeext; then
  17722. eval "$as_ac_var=yes"
  17723. else
  17724. echo "$as_me: failed program was:" >&5
  17725. sed 's/^/| /' conftest.$ac_ext >&5
  17726. eval "$as_ac_var=no"
  17727. fi
  17728. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17729. conftest$ac_exeext conftest.$ac_ext
  17730. fi
  17731. ac_res=`eval echo '${'$as_ac_var'}'`
  17732. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17733. echo "${ECHO_T}$ac_res" >&6; }
  17734. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17735. cat >>confdefs.h <<_ACEOF
  17736. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17737. _ACEOF
  17738. else
  17739. # strftime is in -lintl on SCO UNIX.
  17740. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17741. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17742. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17743. echo $ECHO_N "(cached) $ECHO_C" >&6
  17744. else
  17745. ac_check_lib_save_LIBS=$LIBS
  17746. LIBS="-lintl $LIBS"
  17747. cat >conftest.$ac_ext <<_ACEOF
  17748. /* confdefs.h. */
  17749. _ACEOF
  17750. cat confdefs.h >>conftest.$ac_ext
  17751. cat >>conftest.$ac_ext <<_ACEOF
  17752. /* end confdefs.h. */
  17753. /* Override any GCC internal prototype to avoid an error.
  17754. Use char because int might match the return type of a GCC
  17755. builtin and then its argument prototype would still apply. */
  17756. #ifdef __cplusplus
  17757. extern "C"
  17758. #endif
  17759. char strftime ();
  17760. int
  17761. main ()
  17762. {
  17763. return strftime ();
  17764. ;
  17765. return 0;
  17766. }
  17767. _ACEOF
  17768. rm -f conftest.$ac_objext conftest$ac_exeext
  17769. if { (ac_try="$ac_link"
  17770. case "(($ac_try" in
  17771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17772. *) ac_try_echo=$ac_try;;
  17773. esac
  17774. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17775. (eval "$ac_link") 2>conftest.er1
  17776. ac_status=$?
  17777. grep -v '^ *+' conftest.er1 >conftest.err
  17778. rm -f conftest.er1
  17779. cat conftest.err >&5
  17780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17781. (exit $ac_status); } && {
  17782. test -z "$ac_cxx_werror_flag" ||
  17783. test ! -s conftest.err
  17784. } && test -s conftest$ac_exeext &&
  17785. $as_test_x conftest$ac_exeext; then
  17786. ac_cv_lib_intl_strftime=yes
  17787. else
  17788. echo "$as_me: failed program was:" >&5
  17789. sed 's/^/| /' conftest.$ac_ext >&5
  17790. ac_cv_lib_intl_strftime=no
  17791. fi
  17792. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17793. conftest$ac_exeext conftest.$ac_ext
  17794. LIBS=$ac_check_lib_save_LIBS
  17795. fi
  17796. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17797. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17798. if test $ac_cv_lib_intl_strftime = yes; then
  17799. cat >>confdefs.h <<\_ACEOF
  17800. #define HAVE_STRFTIME 1
  17801. _ACEOF
  17802. LIBS="-lintl $LIBS"
  17803. fi
  17804. fi
  17805. done
  17806. for ac_func in vprintf
  17807. do
  17808. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17809. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17810. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17811. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17812. echo $ECHO_N "(cached) $ECHO_C" >&6
  17813. else
  17814. cat >conftest.$ac_ext <<_ACEOF
  17815. /* confdefs.h. */
  17816. _ACEOF
  17817. cat confdefs.h >>conftest.$ac_ext
  17818. cat >>conftest.$ac_ext <<_ACEOF
  17819. /* end confdefs.h. */
  17820. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17821. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17822. #define $ac_func innocuous_$ac_func
  17823. /* System header to define __stub macros and hopefully few prototypes,
  17824. which can conflict with char $ac_func (); below.
  17825. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17826. <limits.h> exists even on freestanding compilers. */
  17827. #ifdef __STDC__
  17828. # include <limits.h>
  17829. #else
  17830. # include <assert.h>
  17831. #endif
  17832. #undef $ac_func
  17833. /* Override any GCC internal prototype to avoid an error.
  17834. Use char because int might match the return type of a GCC
  17835. builtin and then its argument prototype would still apply. */
  17836. #ifdef __cplusplus
  17837. extern "C"
  17838. #endif
  17839. char $ac_func ();
  17840. /* The GNU C library defines this for functions which it implements
  17841. to always fail with ENOSYS. Some functions are actually named
  17842. something starting with __ and the normal name is an alias. */
  17843. #if defined __stub_$ac_func || defined __stub___$ac_func
  17844. choke me
  17845. #endif
  17846. int
  17847. main ()
  17848. {
  17849. return $ac_func ();
  17850. ;
  17851. return 0;
  17852. }
  17853. _ACEOF
  17854. rm -f conftest.$ac_objext conftest$ac_exeext
  17855. if { (ac_try="$ac_link"
  17856. case "(($ac_try" in
  17857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17858. *) ac_try_echo=$ac_try;;
  17859. esac
  17860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17861. (eval "$ac_link") 2>conftest.er1
  17862. ac_status=$?
  17863. grep -v '^ *+' conftest.er1 >conftest.err
  17864. rm -f conftest.er1
  17865. cat conftest.err >&5
  17866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17867. (exit $ac_status); } && {
  17868. test -z "$ac_cxx_werror_flag" ||
  17869. test ! -s conftest.err
  17870. } && test -s conftest$ac_exeext &&
  17871. $as_test_x conftest$ac_exeext; then
  17872. eval "$as_ac_var=yes"
  17873. else
  17874. echo "$as_me: failed program was:" >&5
  17875. sed 's/^/| /' conftest.$ac_ext >&5
  17876. eval "$as_ac_var=no"
  17877. fi
  17878. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17879. conftest$ac_exeext conftest.$ac_ext
  17880. fi
  17881. ac_res=`eval echo '${'$as_ac_var'}'`
  17882. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17883. echo "${ECHO_T}$ac_res" >&6; }
  17884. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17885. cat >>confdefs.h <<_ACEOF
  17886. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17887. _ACEOF
  17888. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17889. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17890. if test "${ac_cv_func__doprnt+set}" = set; then
  17891. echo $ECHO_N "(cached) $ECHO_C" >&6
  17892. else
  17893. cat >conftest.$ac_ext <<_ACEOF
  17894. /* confdefs.h. */
  17895. _ACEOF
  17896. cat confdefs.h >>conftest.$ac_ext
  17897. cat >>conftest.$ac_ext <<_ACEOF
  17898. /* end confdefs.h. */
  17899. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17900. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17901. #define _doprnt innocuous__doprnt
  17902. /* System header to define __stub macros and hopefully few prototypes,
  17903. which can conflict with char _doprnt (); below.
  17904. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17905. <limits.h> exists even on freestanding compilers. */
  17906. #ifdef __STDC__
  17907. # include <limits.h>
  17908. #else
  17909. # include <assert.h>
  17910. #endif
  17911. #undef _doprnt
  17912. /* Override any GCC internal prototype to avoid an error.
  17913. Use char because int might match the return type of a GCC
  17914. builtin and then its argument prototype would still apply. */
  17915. #ifdef __cplusplus
  17916. extern "C"
  17917. #endif
  17918. char _doprnt ();
  17919. /* The GNU C library defines this for functions which it implements
  17920. to always fail with ENOSYS. Some functions are actually named
  17921. something starting with __ and the normal name is an alias. */
  17922. #if defined __stub__doprnt || defined __stub____doprnt
  17923. choke me
  17924. #endif
  17925. int
  17926. main ()
  17927. {
  17928. return _doprnt ();
  17929. ;
  17930. return 0;
  17931. }
  17932. _ACEOF
  17933. rm -f conftest.$ac_objext conftest$ac_exeext
  17934. if { (ac_try="$ac_link"
  17935. case "(($ac_try" in
  17936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17937. *) ac_try_echo=$ac_try;;
  17938. esac
  17939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17940. (eval "$ac_link") 2>conftest.er1
  17941. ac_status=$?
  17942. grep -v '^ *+' conftest.er1 >conftest.err
  17943. rm -f conftest.er1
  17944. cat conftest.err >&5
  17945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17946. (exit $ac_status); } && {
  17947. test -z "$ac_cxx_werror_flag" ||
  17948. test ! -s conftest.err
  17949. } && test -s conftest$ac_exeext &&
  17950. $as_test_x conftest$ac_exeext; then
  17951. ac_cv_func__doprnt=yes
  17952. else
  17953. echo "$as_me: failed program was:" >&5
  17954. sed 's/^/| /' conftest.$ac_ext >&5
  17955. ac_cv_func__doprnt=no
  17956. fi
  17957. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17958. conftest$ac_exeext conftest.$ac_ext
  17959. fi
  17960. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17961. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  17962. if test $ac_cv_func__doprnt = yes; then
  17963. cat >>confdefs.h <<\_ACEOF
  17964. #define HAVE_DOPRNT 1
  17965. _ACEOF
  17966. fi
  17967. fi
  17968. done
  17969. for ac_func in __argz_count \
  17970. __argz_next \
  17971. __argz_stringify \
  17972. atexit \
  17973. daemon \
  17974. ftruncate \
  17975. getcwd \
  17976. gethostbyaddr \
  17977. gethostbyname \
  17978. getpagesize \
  17979. inet_ntoa \
  17980. memchr \
  17981. memmove \
  17982. mempcpy \
  17983. memset \
  17984. mkdir \
  17985. munmap \
  17986. nl_langinfo \
  17987. posix_memalign \
  17988. putenv \
  17989. rmdir \
  17990. select \
  17991. setlocale \
  17992. sleep \
  17993. socket \
  17994. stpcpy \
  17995. strcasecmp \
  17996. strchr \
  17997. strcspn \
  17998. strdup \
  17999. strerror \
  18000. strncasecmp \
  18001. strstr \
  18002. strtol \
  18003. strtoul \
  18004. strtoull \
  18005. tzset \
  18006. unsetenv \
  18007. usleep
  18008. do
  18009. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18010. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18011. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18012. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18013. echo $ECHO_N "(cached) $ECHO_C" >&6
  18014. else
  18015. cat >conftest.$ac_ext <<_ACEOF
  18016. /* confdefs.h. */
  18017. _ACEOF
  18018. cat confdefs.h >>conftest.$ac_ext
  18019. cat >>conftest.$ac_ext <<_ACEOF
  18020. /* end confdefs.h. */
  18021. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18022. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18023. #define $ac_func innocuous_$ac_func
  18024. /* System header to define __stub macros and hopefully few prototypes,
  18025. which can conflict with char $ac_func (); below.
  18026. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18027. <limits.h> exists even on freestanding compilers. */
  18028. #ifdef __STDC__
  18029. # include <limits.h>
  18030. #else
  18031. # include <assert.h>
  18032. #endif
  18033. #undef $ac_func
  18034. /* Override any GCC internal prototype to avoid an error.
  18035. Use char because int might match the return type of a GCC
  18036. builtin and then its argument prototype would still apply. */
  18037. #ifdef __cplusplus
  18038. extern "C"
  18039. #endif
  18040. char $ac_func ();
  18041. /* The GNU C library defines this for functions which it implements
  18042. to always fail with ENOSYS. Some functions are actually named
  18043. something starting with __ and the normal name is an alias. */
  18044. #if defined __stub_$ac_func || defined __stub___$ac_func
  18045. choke me
  18046. #endif
  18047. int
  18048. main ()
  18049. {
  18050. return $ac_func ();
  18051. ;
  18052. return 0;
  18053. }
  18054. _ACEOF
  18055. rm -f conftest.$ac_objext conftest$ac_exeext
  18056. if { (ac_try="$ac_link"
  18057. case "(($ac_try" in
  18058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18059. *) ac_try_echo=$ac_try;;
  18060. esac
  18061. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18062. (eval "$ac_link") 2>conftest.er1
  18063. ac_status=$?
  18064. grep -v '^ *+' conftest.er1 >conftest.err
  18065. rm -f conftest.er1
  18066. cat conftest.err >&5
  18067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18068. (exit $ac_status); } && {
  18069. test -z "$ac_cxx_werror_flag" ||
  18070. test ! -s conftest.err
  18071. } && test -s conftest$ac_exeext &&
  18072. $as_test_x conftest$ac_exeext; then
  18073. eval "$as_ac_var=yes"
  18074. else
  18075. echo "$as_me: failed program was:" >&5
  18076. sed 's/^/| /' conftest.$ac_ext >&5
  18077. eval "$as_ac_var=no"
  18078. fi
  18079. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18080. conftest$ac_exeext conftest.$ac_ext
  18081. fi
  18082. ac_res=`eval echo '${'$as_ac_var'}'`
  18083. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18084. echo "${ECHO_T}$ac_res" >&6; }
  18085. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18086. cat >>confdefs.h <<_ACEOF
  18087. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18088. _ACEOF
  18089. fi
  18090. done
  18091. if test "x$enable_epoll" = "xyes"; then
  18092. for ac_func in epoll_create
  18093. do
  18094. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18095. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18096. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18097. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18098. echo $ECHO_N "(cached) $ECHO_C" >&6
  18099. else
  18100. cat >conftest.$ac_ext <<_ACEOF
  18101. /* confdefs.h. */
  18102. _ACEOF
  18103. cat confdefs.h >>conftest.$ac_ext
  18104. cat >>conftest.$ac_ext <<_ACEOF
  18105. /* end confdefs.h. */
  18106. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18107. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18108. #define $ac_func innocuous_$ac_func
  18109. /* System header to define __stub macros and hopefully few prototypes,
  18110. which can conflict with char $ac_func (); below.
  18111. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18112. <limits.h> exists even on freestanding compilers. */
  18113. #ifdef __STDC__
  18114. # include <limits.h>
  18115. #else
  18116. # include <assert.h>
  18117. #endif
  18118. #undef $ac_func
  18119. /* Override any GCC internal prototype to avoid an error.
  18120. Use char because int might match the return type of a GCC
  18121. builtin and then its argument prototype would still apply. */
  18122. #ifdef __cplusplus
  18123. extern "C"
  18124. #endif
  18125. char $ac_func ();
  18126. /* The GNU C library defines this for functions which it implements
  18127. to always fail with ENOSYS. Some functions are actually named
  18128. something starting with __ and the normal name is an alias. */
  18129. #if defined __stub_$ac_func || defined __stub___$ac_func
  18130. choke me
  18131. #endif
  18132. int
  18133. main ()
  18134. {
  18135. return $ac_func ();
  18136. ;
  18137. return 0;
  18138. }
  18139. _ACEOF
  18140. rm -f conftest.$ac_objext conftest$ac_exeext
  18141. if { (ac_try="$ac_link"
  18142. case "(($ac_try" in
  18143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18144. *) ac_try_echo=$ac_try;;
  18145. esac
  18146. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18147. (eval "$ac_link") 2>conftest.er1
  18148. ac_status=$?
  18149. grep -v '^ *+' conftest.er1 >conftest.err
  18150. rm -f conftest.er1
  18151. cat conftest.err >&5
  18152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18153. (exit $ac_status); } && {
  18154. test -z "$ac_cxx_werror_flag" ||
  18155. test ! -s conftest.err
  18156. } && test -s conftest$ac_exeext &&
  18157. $as_test_x conftest$ac_exeext; then
  18158. eval "$as_ac_var=yes"
  18159. else
  18160. echo "$as_me: failed program was:" >&5
  18161. sed 's/^/| /' conftest.$ac_ext >&5
  18162. eval "$as_ac_var=no"
  18163. fi
  18164. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18165. conftest$ac_exeext conftest.$ac_ext
  18166. fi
  18167. ac_res=`eval echo '${'$as_ac_var'}'`
  18168. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18169. echo "${ECHO_T}$ac_res" >&6; }
  18170. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18171. cat >>confdefs.h <<_ACEOF
  18172. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18173. _ACEOF
  18174. have_epoll=yes
  18175. fi
  18176. done
  18177. if test "x$have_epoll" = "xyes"; then
  18178. cat >>confdefs.h <<\_ACEOF
  18179. #define HAVE_EPOLL 1
  18180. _ACEOF
  18181. fi
  18182. fi
  18183. if test "x$have_epoll" = "xyes"; then
  18184. HAVE_EPOLL_TRUE=
  18185. HAVE_EPOLL_FALSE='#'
  18186. else
  18187. HAVE_EPOLL_TRUE='#'
  18188. HAVE_EPOLL_FALSE=
  18189. fi
  18190. for ac_func in posix_fallocate
  18191. do
  18192. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18193. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18194. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18195. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18196. echo $ECHO_N "(cached) $ECHO_C" >&6
  18197. else
  18198. cat >conftest.$ac_ext <<_ACEOF
  18199. /* confdefs.h. */
  18200. _ACEOF
  18201. cat confdefs.h >>conftest.$ac_ext
  18202. cat >>conftest.$ac_ext <<_ACEOF
  18203. /* end confdefs.h. */
  18204. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18205. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18206. #define $ac_func innocuous_$ac_func
  18207. /* System header to define __stub macros and hopefully few prototypes,
  18208. which can conflict with char $ac_func (); below.
  18209. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18210. <limits.h> exists even on freestanding compilers. */
  18211. #ifdef __STDC__
  18212. # include <limits.h>
  18213. #else
  18214. # include <assert.h>
  18215. #endif
  18216. #undef $ac_func
  18217. /* Override any GCC internal prototype to avoid an error.
  18218. Use char because int might match the return type of a GCC
  18219. builtin and then its argument prototype would still apply. */
  18220. #ifdef __cplusplus
  18221. extern "C"
  18222. #endif
  18223. char $ac_func ();
  18224. /* The GNU C library defines this for functions which it implements
  18225. to always fail with ENOSYS. Some functions are actually named
  18226. something starting with __ and the normal name is an alias. */
  18227. #if defined __stub_$ac_func || defined __stub___$ac_func
  18228. choke me
  18229. #endif
  18230. int
  18231. main ()
  18232. {
  18233. return $ac_func ();
  18234. ;
  18235. return 0;
  18236. }
  18237. _ACEOF
  18238. rm -f conftest.$ac_objext conftest$ac_exeext
  18239. if { (ac_try="$ac_link"
  18240. case "(($ac_try" in
  18241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18242. *) ac_try_echo=$ac_try;;
  18243. esac
  18244. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18245. (eval "$ac_link") 2>conftest.er1
  18246. ac_status=$?
  18247. grep -v '^ *+' conftest.er1 >conftest.err
  18248. rm -f conftest.er1
  18249. cat conftest.err >&5
  18250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18251. (exit $ac_status); } && {
  18252. test -z "$ac_cxx_werror_flag" ||
  18253. test ! -s conftest.err
  18254. } && test -s conftest$ac_exeext &&
  18255. $as_test_x conftest$ac_exeext; then
  18256. eval "$as_ac_var=yes"
  18257. else
  18258. echo "$as_me: failed program was:" >&5
  18259. sed 's/^/| /' conftest.$ac_ext >&5
  18260. eval "$as_ac_var=no"
  18261. fi
  18262. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18263. conftest$ac_exeext conftest.$ac_ext
  18264. fi
  18265. ac_res=`eval echo '${'$as_ac_var'}'`
  18266. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18267. echo "${ECHO_T}$ac_res" >&6; }
  18268. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18269. cat >>confdefs.h <<_ACEOF
  18270. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18271. _ACEOF
  18272. have_posix_fallocate=yes
  18273. fi
  18274. done
  18275. if test "x$have_posix_fallocate" = "xyes"; then
  18276. HAVE_POSIX_FALLOCATE_TRUE=
  18277. HAVE_POSIX_FALLOCATE_FALSE='#'
  18278. else
  18279. HAVE_POSIX_FALLOCATE_TRUE='#'
  18280. HAVE_POSIX_FALLOCATE_FALSE=
  18281. fi
  18282. for ac_func in asctime_r
  18283. do
  18284. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18285. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18286. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18287. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18288. echo $ECHO_N "(cached) $ECHO_C" >&6
  18289. else
  18290. cat >conftest.$ac_ext <<_ACEOF
  18291. /* confdefs.h. */
  18292. _ACEOF
  18293. cat confdefs.h >>conftest.$ac_ext
  18294. cat >>conftest.$ac_ext <<_ACEOF
  18295. /* end confdefs.h. */
  18296. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18297. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18298. #define $ac_func innocuous_$ac_func
  18299. /* System header to define __stub macros and hopefully few prototypes,
  18300. which can conflict with char $ac_func (); below.
  18301. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18302. <limits.h> exists even on freestanding compilers. */
  18303. #ifdef __STDC__
  18304. # include <limits.h>
  18305. #else
  18306. # include <assert.h>
  18307. #endif
  18308. #undef $ac_func
  18309. /* Override any GCC internal prototype to avoid an error.
  18310. Use char because int might match the return type of a GCC
  18311. builtin and then its argument prototype would still apply. */
  18312. #ifdef __cplusplus
  18313. extern "C"
  18314. #endif
  18315. char $ac_func ();
  18316. /* The GNU C library defines this for functions which it implements
  18317. to always fail with ENOSYS. Some functions are actually named
  18318. something starting with __ and the normal name is an alias. */
  18319. #if defined __stub_$ac_func || defined __stub___$ac_func
  18320. choke me
  18321. #endif
  18322. int
  18323. main ()
  18324. {
  18325. return $ac_func ();
  18326. ;
  18327. return 0;
  18328. }
  18329. _ACEOF
  18330. rm -f conftest.$ac_objext conftest$ac_exeext
  18331. if { (ac_try="$ac_link"
  18332. case "(($ac_try" in
  18333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18334. *) ac_try_echo=$ac_try;;
  18335. esac
  18336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18337. (eval "$ac_link") 2>conftest.er1
  18338. ac_status=$?
  18339. grep -v '^ *+' conftest.er1 >conftest.err
  18340. rm -f conftest.er1
  18341. cat conftest.err >&5
  18342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18343. (exit $ac_status); } && {
  18344. test -z "$ac_cxx_werror_flag" ||
  18345. test ! -s conftest.err
  18346. } && test -s conftest$ac_exeext &&
  18347. $as_test_x conftest$ac_exeext; then
  18348. eval "$as_ac_var=yes"
  18349. else
  18350. echo "$as_me: failed program was:" >&5
  18351. sed 's/^/| /' conftest.$ac_ext >&5
  18352. eval "$as_ac_var=no"
  18353. fi
  18354. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18355. conftest$ac_exeext conftest.$ac_ext
  18356. fi
  18357. ac_res=`eval echo '${'$as_ac_var'}'`
  18358. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18359. echo "${ECHO_T}$ac_res" >&6; }
  18360. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18361. cat >>confdefs.h <<_ACEOF
  18362. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18363. _ACEOF
  18364. if true; then
  18365. HAVE_ASCTIME_R_TRUE=
  18366. HAVE_ASCTIME_R_FALSE='#'
  18367. else
  18368. HAVE_ASCTIME_R_TRUE='#'
  18369. HAVE_ASCTIME_R_FALSE=
  18370. fi
  18371. else
  18372. if false; then
  18373. HAVE_ASCTIME_R_TRUE=
  18374. HAVE_ASCTIME_R_FALSE='#'
  18375. else
  18376. HAVE_ASCTIME_R_TRUE='#'
  18377. HAVE_ASCTIME_R_FALSE=
  18378. fi
  18379. fi
  18380. done
  18381. for ac_func in basename
  18382. do
  18383. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18384. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18385. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18386. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18387. echo $ECHO_N "(cached) $ECHO_C" >&6
  18388. else
  18389. cat >conftest.$ac_ext <<_ACEOF
  18390. /* confdefs.h. */
  18391. _ACEOF
  18392. cat confdefs.h >>conftest.$ac_ext
  18393. cat >>conftest.$ac_ext <<_ACEOF
  18394. /* end confdefs.h. */
  18395. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18396. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18397. #define $ac_func innocuous_$ac_func
  18398. /* System header to define __stub macros and hopefully few prototypes,
  18399. which can conflict with char $ac_func (); below.
  18400. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18401. <limits.h> exists even on freestanding compilers. */
  18402. #ifdef __STDC__
  18403. # include <limits.h>
  18404. #else
  18405. # include <assert.h>
  18406. #endif
  18407. #undef $ac_func
  18408. /* Override any GCC internal prototype to avoid an error.
  18409. Use char because int might match the return type of a GCC
  18410. builtin and then its argument prototype would still apply. */
  18411. #ifdef __cplusplus
  18412. extern "C"
  18413. #endif
  18414. char $ac_func ();
  18415. /* The GNU C library defines this for functions which it implements
  18416. to always fail with ENOSYS. Some functions are actually named
  18417. something starting with __ and the normal name is an alias. */
  18418. #if defined __stub_$ac_func || defined __stub___$ac_func
  18419. choke me
  18420. #endif
  18421. int
  18422. main ()
  18423. {
  18424. return $ac_func ();
  18425. ;
  18426. return 0;
  18427. }
  18428. _ACEOF
  18429. rm -f conftest.$ac_objext conftest$ac_exeext
  18430. if { (ac_try="$ac_link"
  18431. case "(($ac_try" in
  18432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18433. *) ac_try_echo=$ac_try;;
  18434. esac
  18435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18436. (eval "$ac_link") 2>conftest.er1
  18437. ac_status=$?
  18438. grep -v '^ *+' conftest.er1 >conftest.err
  18439. rm -f conftest.er1
  18440. cat conftest.err >&5
  18441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18442. (exit $ac_status); } && {
  18443. test -z "$ac_cxx_werror_flag" ||
  18444. test ! -s conftest.err
  18445. } && test -s conftest$ac_exeext &&
  18446. $as_test_x conftest$ac_exeext; then
  18447. eval "$as_ac_var=yes"
  18448. else
  18449. echo "$as_me: failed program was:" >&5
  18450. sed 's/^/| /' conftest.$ac_ext >&5
  18451. eval "$as_ac_var=no"
  18452. fi
  18453. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18454. conftest$ac_exeext conftest.$ac_ext
  18455. fi
  18456. ac_res=`eval echo '${'$as_ac_var'}'`
  18457. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18458. echo "${ECHO_T}$ac_res" >&6; }
  18459. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18460. cat >>confdefs.h <<_ACEOF
  18461. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18462. _ACEOF
  18463. if true; then
  18464. HAVE_BASENAME_TRUE=
  18465. HAVE_BASENAME_FALSE='#'
  18466. else
  18467. HAVE_BASENAME_TRUE='#'
  18468. HAVE_BASENAME_FALSE=
  18469. fi
  18470. else
  18471. if false; then
  18472. HAVE_BASENAME_TRUE=
  18473. HAVE_BASENAME_FALSE='#'
  18474. else
  18475. HAVE_BASENAME_TRUE='#'
  18476. HAVE_BASENAME_FALSE=
  18477. fi
  18478. fi
  18479. done
  18480. for ac_func in gai_strerror
  18481. do
  18482. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18483. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18484. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18485. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18486. echo $ECHO_N "(cached) $ECHO_C" >&6
  18487. else
  18488. cat >conftest.$ac_ext <<_ACEOF
  18489. /* confdefs.h. */
  18490. _ACEOF
  18491. cat confdefs.h >>conftest.$ac_ext
  18492. cat >>conftest.$ac_ext <<_ACEOF
  18493. /* end confdefs.h. */
  18494. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18495. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18496. #define $ac_func innocuous_$ac_func
  18497. /* System header to define __stub macros and hopefully few prototypes,
  18498. which can conflict with char $ac_func (); below.
  18499. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18500. <limits.h> exists even on freestanding compilers. */
  18501. #ifdef __STDC__
  18502. # include <limits.h>
  18503. #else
  18504. # include <assert.h>
  18505. #endif
  18506. #undef $ac_func
  18507. /* Override any GCC internal prototype to avoid an error.
  18508. Use char because int might match the return type of a GCC
  18509. builtin and then its argument prototype would still apply. */
  18510. #ifdef __cplusplus
  18511. extern "C"
  18512. #endif
  18513. char $ac_func ();
  18514. /* The GNU C library defines this for functions which it implements
  18515. to always fail with ENOSYS. Some functions are actually named
  18516. something starting with __ and the normal name is an alias. */
  18517. #if defined __stub_$ac_func || defined __stub___$ac_func
  18518. choke me
  18519. #endif
  18520. int
  18521. main ()
  18522. {
  18523. return $ac_func ();
  18524. ;
  18525. return 0;
  18526. }
  18527. _ACEOF
  18528. rm -f conftest.$ac_objext conftest$ac_exeext
  18529. if { (ac_try="$ac_link"
  18530. case "(($ac_try" in
  18531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18532. *) ac_try_echo=$ac_try;;
  18533. esac
  18534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18535. (eval "$ac_link") 2>conftest.er1
  18536. ac_status=$?
  18537. grep -v '^ *+' conftest.er1 >conftest.err
  18538. rm -f conftest.er1
  18539. cat conftest.err >&5
  18540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18541. (exit $ac_status); } && {
  18542. test -z "$ac_cxx_werror_flag" ||
  18543. test ! -s conftest.err
  18544. } && test -s conftest$ac_exeext &&
  18545. $as_test_x conftest$ac_exeext; then
  18546. eval "$as_ac_var=yes"
  18547. else
  18548. echo "$as_me: failed program was:" >&5
  18549. sed 's/^/| /' conftest.$ac_ext >&5
  18550. eval "$as_ac_var=no"
  18551. fi
  18552. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18553. conftest$ac_exeext conftest.$ac_ext
  18554. fi
  18555. ac_res=`eval echo '${'$as_ac_var'}'`
  18556. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18557. echo "${ECHO_T}$ac_res" >&6; }
  18558. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18559. cat >>confdefs.h <<_ACEOF
  18560. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18561. _ACEOF
  18562. if true; then
  18563. HAVE_GAI_STRERROR_TRUE=
  18564. HAVE_GAI_STRERROR_FALSE='#'
  18565. else
  18566. HAVE_GAI_STRERROR_TRUE='#'
  18567. HAVE_GAI_STRERROR_FALSE=
  18568. fi
  18569. else
  18570. if false; then
  18571. HAVE_GAI_STRERROR_TRUE=
  18572. HAVE_GAI_STRERROR_FALSE='#'
  18573. else
  18574. HAVE_GAI_STRERROR_TRUE='#'
  18575. HAVE_GAI_STRERROR_FALSE=
  18576. fi
  18577. fi
  18578. done
  18579. for ac_func in getaddrinfo
  18580. do
  18581. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18582. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18583. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18584. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18585. echo $ECHO_N "(cached) $ECHO_C" >&6
  18586. else
  18587. cat >conftest.$ac_ext <<_ACEOF
  18588. /* confdefs.h. */
  18589. _ACEOF
  18590. cat confdefs.h >>conftest.$ac_ext
  18591. cat >>conftest.$ac_ext <<_ACEOF
  18592. /* end confdefs.h. */
  18593. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18594. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18595. #define $ac_func innocuous_$ac_func
  18596. /* System header to define __stub macros and hopefully few prototypes,
  18597. which can conflict with char $ac_func (); below.
  18598. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18599. <limits.h> exists even on freestanding compilers. */
  18600. #ifdef __STDC__
  18601. # include <limits.h>
  18602. #else
  18603. # include <assert.h>
  18604. #endif
  18605. #undef $ac_func
  18606. /* Override any GCC internal prototype to avoid an error.
  18607. Use char because int might match the return type of a GCC
  18608. builtin and then its argument prototype would still apply. */
  18609. #ifdef __cplusplus
  18610. extern "C"
  18611. #endif
  18612. char $ac_func ();
  18613. /* The GNU C library defines this for functions which it implements
  18614. to always fail with ENOSYS. Some functions are actually named
  18615. something starting with __ and the normal name is an alias. */
  18616. #if defined __stub_$ac_func || defined __stub___$ac_func
  18617. choke me
  18618. #endif
  18619. int
  18620. main ()
  18621. {
  18622. return $ac_func ();
  18623. ;
  18624. return 0;
  18625. }
  18626. _ACEOF
  18627. rm -f conftest.$ac_objext conftest$ac_exeext
  18628. if { (ac_try="$ac_link"
  18629. case "(($ac_try" in
  18630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18631. *) ac_try_echo=$ac_try;;
  18632. esac
  18633. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18634. (eval "$ac_link") 2>conftest.er1
  18635. ac_status=$?
  18636. grep -v '^ *+' conftest.er1 >conftest.err
  18637. rm -f conftest.er1
  18638. cat conftest.err >&5
  18639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18640. (exit $ac_status); } && {
  18641. test -z "$ac_cxx_werror_flag" ||
  18642. test ! -s conftest.err
  18643. } && test -s conftest$ac_exeext &&
  18644. $as_test_x conftest$ac_exeext; then
  18645. eval "$as_ac_var=yes"
  18646. else
  18647. echo "$as_me: failed program was:" >&5
  18648. sed 's/^/| /' conftest.$ac_ext >&5
  18649. eval "$as_ac_var=no"
  18650. fi
  18651. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18652. conftest$ac_exeext conftest.$ac_ext
  18653. fi
  18654. ac_res=`eval echo '${'$as_ac_var'}'`
  18655. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18656. echo "${ECHO_T}$ac_res" >&6; }
  18657. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18658. cat >>confdefs.h <<_ACEOF
  18659. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18660. _ACEOF
  18661. if true; then
  18662. HAVE_GETADDRINFO_TRUE=
  18663. HAVE_GETADDRINFO_FALSE='#'
  18664. else
  18665. HAVE_GETADDRINFO_TRUE='#'
  18666. HAVE_GETADDRINFO_FALSE=
  18667. fi
  18668. else
  18669. if false; then
  18670. HAVE_GETADDRINFO_TRUE=
  18671. HAVE_GETADDRINFO_FALSE='#'
  18672. else
  18673. HAVE_GETADDRINFO_TRUE='#'
  18674. HAVE_GETADDRINFO_FALSE=
  18675. fi
  18676. fi
  18677. done
  18678. for ac_func in gettimeofday
  18679. do
  18680. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18681. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18682. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18683. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18684. echo $ECHO_N "(cached) $ECHO_C" >&6
  18685. else
  18686. cat >conftest.$ac_ext <<_ACEOF
  18687. /* confdefs.h. */
  18688. _ACEOF
  18689. cat confdefs.h >>conftest.$ac_ext
  18690. cat >>conftest.$ac_ext <<_ACEOF
  18691. /* end confdefs.h. */
  18692. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18693. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18694. #define $ac_func innocuous_$ac_func
  18695. /* System header to define __stub macros and hopefully few prototypes,
  18696. which can conflict with char $ac_func (); below.
  18697. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18698. <limits.h> exists even on freestanding compilers. */
  18699. #ifdef __STDC__
  18700. # include <limits.h>
  18701. #else
  18702. # include <assert.h>
  18703. #endif
  18704. #undef $ac_func
  18705. /* Override any GCC internal prototype to avoid an error.
  18706. Use char because int might match the return type of a GCC
  18707. builtin and then its argument prototype would still apply. */
  18708. #ifdef __cplusplus
  18709. extern "C"
  18710. #endif
  18711. char $ac_func ();
  18712. /* The GNU C library defines this for functions which it implements
  18713. to always fail with ENOSYS. Some functions are actually named
  18714. something starting with __ and the normal name is an alias. */
  18715. #if defined __stub_$ac_func || defined __stub___$ac_func
  18716. choke me
  18717. #endif
  18718. int
  18719. main ()
  18720. {
  18721. return $ac_func ();
  18722. ;
  18723. return 0;
  18724. }
  18725. _ACEOF
  18726. rm -f conftest.$ac_objext conftest$ac_exeext
  18727. if { (ac_try="$ac_link"
  18728. case "(($ac_try" in
  18729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18730. *) ac_try_echo=$ac_try;;
  18731. esac
  18732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18733. (eval "$ac_link") 2>conftest.er1
  18734. ac_status=$?
  18735. grep -v '^ *+' conftest.er1 >conftest.err
  18736. rm -f conftest.er1
  18737. cat conftest.err >&5
  18738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18739. (exit $ac_status); } && {
  18740. test -z "$ac_cxx_werror_flag" ||
  18741. test ! -s conftest.err
  18742. } && test -s conftest$ac_exeext &&
  18743. $as_test_x conftest$ac_exeext; then
  18744. eval "$as_ac_var=yes"
  18745. else
  18746. echo "$as_me: failed program was:" >&5
  18747. sed 's/^/| /' conftest.$ac_ext >&5
  18748. eval "$as_ac_var=no"
  18749. fi
  18750. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18751. conftest$ac_exeext conftest.$ac_ext
  18752. fi
  18753. ac_res=`eval echo '${'$as_ac_var'}'`
  18754. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18755. echo "${ECHO_T}$ac_res" >&6; }
  18756. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18757. cat >>confdefs.h <<_ACEOF
  18758. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18759. _ACEOF
  18760. if true; then
  18761. HAVE_GETTIMEOFDAY_TRUE=
  18762. HAVE_GETTIMEOFDAY_FALSE='#'
  18763. else
  18764. HAVE_GETTIMEOFDAY_TRUE='#'
  18765. HAVE_GETTIMEOFDAY_FALSE=
  18766. fi
  18767. else
  18768. if false; then
  18769. HAVE_GETTIMEOFDAY_TRUE=
  18770. HAVE_GETTIMEOFDAY_FALSE='#'
  18771. else
  18772. HAVE_GETTIMEOFDAY_TRUE='#'
  18773. HAVE_GETTIMEOFDAY_FALSE=
  18774. fi
  18775. fi
  18776. done
  18777. for ac_func in inet_aton
  18778. do
  18779. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18780. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18781. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18782. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18783. echo $ECHO_N "(cached) $ECHO_C" >&6
  18784. else
  18785. cat >conftest.$ac_ext <<_ACEOF
  18786. /* confdefs.h. */
  18787. _ACEOF
  18788. cat confdefs.h >>conftest.$ac_ext
  18789. cat >>conftest.$ac_ext <<_ACEOF
  18790. /* end confdefs.h. */
  18791. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18792. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18793. #define $ac_func innocuous_$ac_func
  18794. /* System header to define __stub macros and hopefully few prototypes,
  18795. which can conflict with char $ac_func (); below.
  18796. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18797. <limits.h> exists even on freestanding compilers. */
  18798. #ifdef __STDC__
  18799. # include <limits.h>
  18800. #else
  18801. # include <assert.h>
  18802. #endif
  18803. #undef $ac_func
  18804. /* Override any GCC internal prototype to avoid an error.
  18805. Use char because int might match the return type of a GCC
  18806. builtin and then its argument prototype would still apply. */
  18807. #ifdef __cplusplus
  18808. extern "C"
  18809. #endif
  18810. char $ac_func ();
  18811. /* The GNU C library defines this for functions which it implements
  18812. to always fail with ENOSYS. Some functions are actually named
  18813. something starting with __ and the normal name is an alias. */
  18814. #if defined __stub_$ac_func || defined __stub___$ac_func
  18815. choke me
  18816. #endif
  18817. int
  18818. main ()
  18819. {
  18820. return $ac_func ();
  18821. ;
  18822. return 0;
  18823. }
  18824. _ACEOF
  18825. rm -f conftest.$ac_objext conftest$ac_exeext
  18826. if { (ac_try="$ac_link"
  18827. case "(($ac_try" in
  18828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18829. *) ac_try_echo=$ac_try;;
  18830. esac
  18831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18832. (eval "$ac_link") 2>conftest.er1
  18833. ac_status=$?
  18834. grep -v '^ *+' conftest.er1 >conftest.err
  18835. rm -f conftest.er1
  18836. cat conftest.err >&5
  18837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18838. (exit $ac_status); } && {
  18839. test -z "$ac_cxx_werror_flag" ||
  18840. test ! -s conftest.err
  18841. } && test -s conftest$ac_exeext &&
  18842. $as_test_x conftest$ac_exeext; then
  18843. eval "$as_ac_var=yes"
  18844. else
  18845. echo "$as_me: failed program was:" >&5
  18846. sed 's/^/| /' conftest.$ac_ext >&5
  18847. eval "$as_ac_var=no"
  18848. fi
  18849. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18850. conftest$ac_exeext conftest.$ac_ext
  18851. fi
  18852. ac_res=`eval echo '${'$as_ac_var'}'`
  18853. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18854. echo "${ECHO_T}$ac_res" >&6; }
  18855. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18856. cat >>confdefs.h <<_ACEOF
  18857. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18858. _ACEOF
  18859. if true; then
  18860. HAVE_INET_ATON_TRUE=
  18861. HAVE_INET_ATON_FALSE='#'
  18862. else
  18863. HAVE_INET_ATON_TRUE='#'
  18864. HAVE_INET_ATON_FALSE=
  18865. fi
  18866. else
  18867. if false; then
  18868. HAVE_INET_ATON_TRUE=
  18869. HAVE_INET_ATON_FALSE='#'
  18870. else
  18871. HAVE_INET_ATON_TRUE='#'
  18872. HAVE_INET_ATON_FALSE=
  18873. fi
  18874. fi
  18875. done
  18876. for ac_func in localtime_r
  18877. do
  18878. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18879. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18880. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18881. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18882. echo $ECHO_N "(cached) $ECHO_C" >&6
  18883. else
  18884. cat >conftest.$ac_ext <<_ACEOF
  18885. /* confdefs.h. */
  18886. _ACEOF
  18887. cat confdefs.h >>conftest.$ac_ext
  18888. cat >>conftest.$ac_ext <<_ACEOF
  18889. /* end confdefs.h. */
  18890. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18891. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18892. #define $ac_func innocuous_$ac_func
  18893. /* System header to define __stub macros and hopefully few prototypes,
  18894. which can conflict with char $ac_func (); below.
  18895. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18896. <limits.h> exists even on freestanding compilers. */
  18897. #ifdef __STDC__
  18898. # include <limits.h>
  18899. #else
  18900. # include <assert.h>
  18901. #endif
  18902. #undef $ac_func
  18903. /* Override any GCC internal prototype to avoid an error.
  18904. Use char because int might match the return type of a GCC
  18905. builtin and then its argument prototype would still apply. */
  18906. #ifdef __cplusplus
  18907. extern "C"
  18908. #endif
  18909. char $ac_func ();
  18910. /* The GNU C library defines this for functions which it implements
  18911. to always fail with ENOSYS. Some functions are actually named
  18912. something starting with __ and the normal name is an alias. */
  18913. #if defined __stub_$ac_func || defined __stub___$ac_func
  18914. choke me
  18915. #endif
  18916. int
  18917. main ()
  18918. {
  18919. return $ac_func ();
  18920. ;
  18921. return 0;
  18922. }
  18923. _ACEOF
  18924. rm -f conftest.$ac_objext conftest$ac_exeext
  18925. if { (ac_try="$ac_link"
  18926. case "(($ac_try" in
  18927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18928. *) ac_try_echo=$ac_try;;
  18929. esac
  18930. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18931. (eval "$ac_link") 2>conftest.er1
  18932. ac_status=$?
  18933. grep -v '^ *+' conftest.er1 >conftest.err
  18934. rm -f conftest.er1
  18935. cat conftest.err >&5
  18936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18937. (exit $ac_status); } && {
  18938. test -z "$ac_cxx_werror_flag" ||
  18939. test ! -s conftest.err
  18940. } && test -s conftest$ac_exeext &&
  18941. $as_test_x conftest$ac_exeext; then
  18942. eval "$as_ac_var=yes"
  18943. else
  18944. echo "$as_me: failed program was:" >&5
  18945. sed 's/^/| /' conftest.$ac_ext >&5
  18946. eval "$as_ac_var=no"
  18947. fi
  18948. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18949. conftest$ac_exeext conftest.$ac_ext
  18950. fi
  18951. ac_res=`eval echo '${'$as_ac_var'}'`
  18952. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18953. echo "${ECHO_T}$ac_res" >&6; }
  18954. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18955. cat >>confdefs.h <<_ACEOF
  18956. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18957. _ACEOF
  18958. if true; then
  18959. HAVE_LOCALTIME_R_TRUE=
  18960. HAVE_LOCALTIME_R_FALSE='#'
  18961. else
  18962. HAVE_LOCALTIME_R_TRUE='#'
  18963. HAVE_LOCALTIME_R_FALSE=
  18964. fi
  18965. else
  18966. if false; then
  18967. HAVE_LOCALTIME_R_TRUE=
  18968. HAVE_LOCALTIME_R_FALSE='#'
  18969. else
  18970. HAVE_LOCALTIME_R_TRUE='#'
  18971. HAVE_LOCALTIME_R_FALSE=
  18972. fi
  18973. fi
  18974. done
  18975. for ac_func in strptime
  18976. do
  18977. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18978. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18979. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18980. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18981. echo $ECHO_N "(cached) $ECHO_C" >&6
  18982. else
  18983. cat >conftest.$ac_ext <<_ACEOF
  18984. /* confdefs.h. */
  18985. _ACEOF
  18986. cat confdefs.h >>conftest.$ac_ext
  18987. cat >>conftest.$ac_ext <<_ACEOF
  18988. /* end confdefs.h. */
  18989. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18990. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18991. #define $ac_func innocuous_$ac_func
  18992. /* System header to define __stub macros and hopefully few prototypes,
  18993. which can conflict with char $ac_func (); below.
  18994. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18995. <limits.h> exists even on freestanding compilers. */
  18996. #ifdef __STDC__
  18997. # include <limits.h>
  18998. #else
  18999. # include <assert.h>
  19000. #endif
  19001. #undef $ac_func
  19002. /* Override any GCC internal prototype to avoid an error.
  19003. Use char because int might match the return type of a GCC
  19004. builtin and then its argument prototype would still apply. */
  19005. #ifdef __cplusplus
  19006. extern "C"
  19007. #endif
  19008. char $ac_func ();
  19009. /* The GNU C library defines this for functions which it implements
  19010. to always fail with ENOSYS. Some functions are actually named
  19011. something starting with __ and the normal name is an alias. */
  19012. #if defined __stub_$ac_func || defined __stub___$ac_func
  19013. choke me
  19014. #endif
  19015. int
  19016. main ()
  19017. {
  19018. return $ac_func ();
  19019. ;
  19020. return 0;
  19021. }
  19022. _ACEOF
  19023. rm -f conftest.$ac_objext conftest$ac_exeext
  19024. if { (ac_try="$ac_link"
  19025. case "(($ac_try" in
  19026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19027. *) ac_try_echo=$ac_try;;
  19028. esac
  19029. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19030. (eval "$ac_link") 2>conftest.er1
  19031. ac_status=$?
  19032. grep -v '^ *+' conftest.er1 >conftest.err
  19033. rm -f conftest.er1
  19034. cat conftest.err >&5
  19035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19036. (exit $ac_status); } && {
  19037. test -z "$ac_cxx_werror_flag" ||
  19038. test ! -s conftest.err
  19039. } && test -s conftest$ac_exeext &&
  19040. $as_test_x conftest$ac_exeext; then
  19041. eval "$as_ac_var=yes"
  19042. else
  19043. echo "$as_me: failed program was:" >&5
  19044. sed 's/^/| /' conftest.$ac_ext >&5
  19045. eval "$as_ac_var=no"
  19046. fi
  19047. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19048. conftest$ac_exeext conftest.$ac_ext
  19049. fi
  19050. ac_res=`eval echo '${'$as_ac_var'}'`
  19051. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19052. echo "${ECHO_T}$ac_res" >&6; }
  19053. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19054. cat >>confdefs.h <<_ACEOF
  19055. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19056. _ACEOF
  19057. if true; then
  19058. HAVE_STRPTIME_TRUE=
  19059. HAVE_STRPTIME_FALSE='#'
  19060. else
  19061. HAVE_STRPTIME_TRUE='#'
  19062. HAVE_STRPTIME_FALSE=
  19063. fi
  19064. else
  19065. if false; then
  19066. HAVE_STRPTIME_TRUE=
  19067. HAVE_STRPTIME_FALSE='#'
  19068. else
  19069. HAVE_STRPTIME_TRUE='#'
  19070. HAVE_STRPTIME_FALSE=
  19071. fi
  19072. fi
  19073. done
  19074. for ac_func in timegm
  19075. do
  19076. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19077. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19078. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19079. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19080. echo $ECHO_N "(cached) $ECHO_C" >&6
  19081. else
  19082. cat >conftest.$ac_ext <<_ACEOF
  19083. /* confdefs.h. */
  19084. _ACEOF
  19085. cat confdefs.h >>conftest.$ac_ext
  19086. cat >>conftest.$ac_ext <<_ACEOF
  19087. /* end confdefs.h. */
  19088. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19089. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19090. #define $ac_func innocuous_$ac_func
  19091. /* System header to define __stub macros and hopefully few prototypes,
  19092. which can conflict with char $ac_func (); below.
  19093. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19094. <limits.h> exists even on freestanding compilers. */
  19095. #ifdef __STDC__
  19096. # include <limits.h>
  19097. #else
  19098. # include <assert.h>
  19099. #endif
  19100. #undef $ac_func
  19101. /* Override any GCC internal prototype to avoid an error.
  19102. Use char because int might match the return type of a GCC
  19103. builtin and then its argument prototype would still apply. */
  19104. #ifdef __cplusplus
  19105. extern "C"
  19106. #endif
  19107. char $ac_func ();
  19108. /* The GNU C library defines this for functions which it implements
  19109. to always fail with ENOSYS. Some functions are actually named
  19110. something starting with __ and the normal name is an alias. */
  19111. #if defined __stub_$ac_func || defined __stub___$ac_func
  19112. choke me
  19113. #endif
  19114. int
  19115. main ()
  19116. {
  19117. return $ac_func ();
  19118. ;
  19119. return 0;
  19120. }
  19121. _ACEOF
  19122. rm -f conftest.$ac_objext conftest$ac_exeext
  19123. if { (ac_try="$ac_link"
  19124. case "(($ac_try" in
  19125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19126. *) ac_try_echo=$ac_try;;
  19127. esac
  19128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19129. (eval "$ac_link") 2>conftest.er1
  19130. ac_status=$?
  19131. grep -v '^ *+' conftest.er1 >conftest.err
  19132. rm -f conftest.er1
  19133. cat conftest.err >&5
  19134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19135. (exit $ac_status); } && {
  19136. test -z "$ac_cxx_werror_flag" ||
  19137. test ! -s conftest.err
  19138. } && test -s conftest$ac_exeext &&
  19139. $as_test_x conftest$ac_exeext; then
  19140. eval "$as_ac_var=yes"
  19141. else
  19142. echo "$as_me: failed program was:" >&5
  19143. sed 's/^/| /' conftest.$ac_ext >&5
  19144. eval "$as_ac_var=no"
  19145. fi
  19146. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19147. conftest$ac_exeext conftest.$ac_ext
  19148. fi
  19149. ac_res=`eval echo '${'$as_ac_var'}'`
  19150. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19151. echo "${ECHO_T}$ac_res" >&6; }
  19152. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19153. cat >>confdefs.h <<_ACEOF
  19154. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19155. _ACEOF
  19156. if true; then
  19157. HAVE_TIMEGM_TRUE=
  19158. HAVE_TIMEGM_FALSE='#'
  19159. else
  19160. HAVE_TIMEGM_TRUE='#'
  19161. HAVE_TIMEGM_FALSE=
  19162. fi
  19163. else
  19164. if false; then
  19165. HAVE_TIMEGM_TRUE=
  19166. HAVE_TIMEGM_FALSE='#'
  19167. else
  19168. HAVE_TIMEGM_TRUE='#'
  19169. HAVE_TIMEGM_FALSE=
  19170. fi
  19171. fi
  19172. done
  19173. case "$target" in
  19174. *mingw*)
  19175. if true; then
  19176. HAVE_GETADDRINFO_TRUE=
  19177. HAVE_GETADDRINFO_FALSE='#'
  19178. else
  19179. HAVE_GETADDRINFO_TRUE='#'
  19180. HAVE_GETADDRINFO_FALSE=
  19181. fi
  19182. if false; then
  19183. HAVE_GAI_STRERROR_TRUE=
  19184. HAVE_GAI_STRERROR_FALSE='#'
  19185. else
  19186. HAVE_GAI_STRERROR_TRUE='#'
  19187. HAVE_GAI_STRERROR_FALSE=
  19188. fi
  19189. ;;
  19190. esac
  19191. { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  19192. echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
  19193. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  19194. echo $ECHO_N "(cached) $ECHO_C" >&6
  19195. else
  19196. cat >conftest.$ac_ext <<_ACEOF
  19197. /* confdefs.h. */
  19198. _ACEOF
  19199. cat confdefs.h >>conftest.$ac_ext
  19200. cat >>conftest.$ac_ext <<_ACEOF
  19201. /* end confdefs.h. */
  19202. #include <netinet/in.h>
  19203. int
  19204. main ()
  19205. {
  19206. static struct sockaddr_in ac_aggr;
  19207. if (ac_aggr.sin_len)
  19208. return 0;
  19209. ;
  19210. return 0;
  19211. }
  19212. _ACEOF
  19213. rm -f conftest.$ac_objext
  19214. if { (ac_try="$ac_compile"
  19215. case "(($ac_try" in
  19216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19217. *) ac_try_echo=$ac_try;;
  19218. esac
  19219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19220. (eval "$ac_compile") 2>conftest.er1
  19221. ac_status=$?
  19222. grep -v '^ *+' conftest.er1 >conftest.err
  19223. rm -f conftest.er1
  19224. cat conftest.err >&5
  19225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19226. (exit $ac_status); } && {
  19227. test -z "$ac_cxx_werror_flag" ||
  19228. test ! -s conftest.err
  19229. } && test -s conftest.$ac_objext; then
  19230. ac_cv_member_struct_sockaddr_in_sin_len=yes
  19231. else
  19232. echo "$as_me: failed program was:" >&5
  19233. sed 's/^/| /' conftest.$ac_ext >&5
  19234. cat >conftest.$ac_ext <<_ACEOF
  19235. /* confdefs.h. */
  19236. _ACEOF
  19237. cat confdefs.h >>conftest.$ac_ext
  19238. cat >>conftest.$ac_ext <<_ACEOF
  19239. /* end confdefs.h. */
  19240. #include <netinet/in.h>
  19241. int
  19242. main ()
  19243. {
  19244. static struct sockaddr_in ac_aggr;
  19245. if (sizeof ac_aggr.sin_len)
  19246. return 0;
  19247. ;
  19248. return 0;
  19249. }
  19250. _ACEOF
  19251. rm -f conftest.$ac_objext
  19252. if { (ac_try="$ac_compile"
  19253. case "(($ac_try" in
  19254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19255. *) ac_try_echo=$ac_try;;
  19256. esac
  19257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19258. (eval "$ac_compile") 2>conftest.er1
  19259. ac_status=$?
  19260. grep -v '^ *+' conftest.er1 >conftest.err
  19261. rm -f conftest.er1
  19262. cat conftest.err >&5
  19263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19264. (exit $ac_status); } && {
  19265. test -z "$ac_cxx_werror_flag" ||
  19266. test ! -s conftest.err
  19267. } && test -s conftest.$ac_objext; then
  19268. ac_cv_member_struct_sockaddr_in_sin_len=yes
  19269. else
  19270. echo "$as_me: failed program was:" >&5
  19271. sed 's/^/| /' conftest.$ac_ext >&5
  19272. ac_cv_member_struct_sockaddr_in_sin_len=no
  19273. fi
  19274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19275. fi
  19276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19277. fi
  19278. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  19279. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  19280. if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
  19281. cat >>confdefs.h <<\_ACEOF
  19282. #define HAVE_SOCKADDR_IN_SIN_LEN 1
  19283. _ACEOF
  19284. fi
  19285. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19286. cat >confcache <<\_ACEOF
  19287. # This file is a shell script that caches the results of configure
  19288. # tests run on this system so they can be shared between configure
  19289. # scripts and configure runs, see configure's option --config-cache.
  19290. # It is not useful on other systems. If it contains results you don't
  19291. # want to keep, you may remove or edit it.
  19292. #
  19293. # config.status only pays attention to the cache file if you give it
  19294. # the --recheck option to rerun configure.
  19295. #
  19296. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19297. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19298. # following values.
  19299. _ACEOF
  19300. # The following way of writing the cache mishandles newlines in values,
  19301. # but we know of no workaround that is simple, portable, and efficient.
  19302. # So, we kill variables containing newlines.
  19303. # Ultrix sh set writes to stderr and can't be redirected directly,
  19304. # and sets the high bit in the cache file unless we assign to the vars.
  19305. (
  19306. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19307. eval ac_val=\$$ac_var
  19308. case $ac_val in #(
  19309. *${as_nl}*)
  19310. case $ac_var in #(
  19311. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19312. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19313. esac
  19314. case $ac_var in #(
  19315. _ | IFS | as_nl) ;; #(
  19316. *) $as_unset $ac_var ;;
  19317. esac ;;
  19318. esac
  19319. done
  19320. (set) 2>&1 |
  19321. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19322. *${as_nl}ac_space=\ *)
  19323. # `set' does not quote correctly, so add quotes (double-quote
  19324. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19325. sed -n \
  19326. "s/'/'\\\\''/g;
  19327. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19328. ;; #(
  19329. *)
  19330. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19331. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19332. ;;
  19333. esac |
  19334. sort
  19335. ) |
  19336. sed '
  19337. /^ac_cv_env_/b end
  19338. t clear
  19339. :clear
  19340. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19341. t end
  19342. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19343. :end' >>confcache
  19344. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19345. if test -w "$cache_file"; then
  19346. test "x$cache_file" != "x/dev/null" &&
  19347. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19348. echo "$as_me: updating cache $cache_file" >&6;}
  19349. cat confcache >$cache_file
  19350. else
  19351. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19352. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19353. fi
  19354. fi
  19355. rm -f confcache
  19356. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19357. # Let make expand exec_prefix.
  19358. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19359. DEFS=-DHAVE_CONFIG_H
  19360. ac_libobjs=
  19361. ac_ltlibobjs=
  19362. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19363. # 1. Remove the extension, and $U if already installed.
  19364. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19365. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19366. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19367. # will be set to the directory where LIBOBJS objects are built.
  19368. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19369. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19370. done
  19371. LIBOBJS=$ac_libobjs
  19372. LTLIBOBJS=$ac_ltlibobjs
  19373. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19374. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19375. Usually this means the macro was only invoked conditionally." >&5
  19376. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19377. Usually this means the macro was only invoked conditionally." >&2;}
  19378. { (exit 1); exit 1; }; }
  19379. fi
  19380. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19381. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19382. Usually this means the macro was only invoked conditionally." >&5
  19383. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19384. Usually this means the macro was only invoked conditionally." >&2;}
  19385. { (exit 1); exit 1; }; }
  19386. fi
  19387. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19388. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19389. Usually this means the macro was only invoked conditionally." >&5
  19390. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19391. Usually this means the macro was only invoked conditionally." >&2;}
  19392. { (exit 1); exit 1; }; }
  19393. fi
  19394. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19395. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19396. Usually this means the macro was only invoked conditionally." >&5
  19397. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19398. Usually this means the macro was only invoked conditionally." >&2;}
  19399. { (exit 1); exit 1; }; }
  19400. fi
  19401. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  19402. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  19403. Usually this means the macro was only invoked conditionally." >&5
  19404. echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  19405. Usually this means the macro was only invoked conditionally." >&2;}
  19406. { (exit 1); exit 1; }; }
  19407. fi
  19408. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  19409. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19410. Usually this means the macro was only invoked conditionally." >&5
  19411. echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  19412. Usually this means the macro was only invoked conditionally." >&2;}
  19413. { (exit 1); exit 1; }; }
  19414. fi
  19415. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  19416. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  19417. Usually this means the macro was only invoked conditionally." >&5
  19418. echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  19419. Usually this means the macro was only invoked conditionally." >&2;}
  19420. { (exit 1); exit 1; }; }
  19421. fi
  19422. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19423. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19424. Usually this means the macro was only invoked conditionally." >&5
  19425. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19426. Usually this means the macro was only invoked conditionally." >&2;}
  19427. { (exit 1); exit 1; }; }
  19428. fi
  19429. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19430. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19431. Usually this means the macro was only invoked conditionally." >&5
  19432. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19433. Usually this means the macro was only invoked conditionally." >&2;}
  19434. { (exit 1); exit 1; }; }
  19435. fi
  19436. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19437. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19438. Usually this means the macro was only invoked conditionally." >&5
  19439. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19440. Usually this means the macro was only invoked conditionally." >&2;}
  19441. { (exit 1); exit 1; }; }
  19442. fi
  19443. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19444. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19445. Usually this means the macro was only invoked conditionally." >&5
  19446. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19447. Usually this means the macro was only invoked conditionally." >&2;}
  19448. { (exit 1); exit 1; }; }
  19449. fi
  19450. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19451. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19452. Usually this means the macro was only invoked conditionally." >&5
  19453. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19454. Usually this means the macro was only invoked conditionally." >&2;}
  19455. { (exit 1); exit 1; }; }
  19456. fi
  19457. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19458. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19459. Usually this means the macro was only invoked conditionally." >&5
  19460. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19461. Usually this means the macro was only invoked conditionally." >&2;}
  19462. { (exit 1); exit 1; }; }
  19463. fi
  19464. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19465. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19466. Usually this means the macro was only invoked conditionally." >&5
  19467. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19468. Usually this means the macro was only invoked conditionally." >&2;}
  19469. { (exit 1); exit 1; }; }
  19470. fi
  19471. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19472. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19473. Usually this means the macro was only invoked conditionally." >&5
  19474. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19475. Usually this means the macro was only invoked conditionally." >&2;}
  19476. { (exit 1); exit 1; }; }
  19477. fi
  19478. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19479. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19480. Usually this means the macro was only invoked conditionally." >&5
  19481. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19482. Usually this means the macro was only invoked conditionally." >&2;}
  19483. { (exit 1); exit 1; }; }
  19484. fi
  19485. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19486. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19487. Usually this means the macro was only invoked conditionally." >&5
  19488. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19489. Usually this means the macro was only invoked conditionally." >&2;}
  19490. { (exit 1); exit 1; }; }
  19491. fi
  19492. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19493. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19494. Usually this means the macro was only invoked conditionally." >&5
  19495. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19496. Usually this means the macro was only invoked conditionally." >&2;}
  19497. { (exit 1); exit 1; }; }
  19498. fi
  19499. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19500. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19501. Usually this means the macro was only invoked conditionally." >&5
  19502. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19503. Usually this means the macro was only invoked conditionally." >&2;}
  19504. { (exit 1); exit 1; }; }
  19505. fi
  19506. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  19507. { { echo "$as_me:$LINENO: error: conditional \"HAVE_EPOLL\" was never defined.
  19508. Usually this means the macro was only invoked conditionally." >&5
  19509. echo "$as_me: error: conditional \"HAVE_EPOLL\" was never defined.
  19510. Usually this means the macro was only invoked conditionally." >&2;}
  19511. { (exit 1); exit 1; }; }
  19512. fi
  19513. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  19514. { { echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  19515. Usually this means the macro was only invoked conditionally." >&5
  19516. echo "$as_me: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  19517. Usually this means the macro was only invoked conditionally." >&2;}
  19518. { (exit 1); exit 1; }; }
  19519. fi
  19520. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19521. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19522. Usually this means the macro was only invoked conditionally." >&5
  19523. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19524. Usually this means the macro was only invoked conditionally." >&2;}
  19525. { (exit 1); exit 1; }; }
  19526. fi
  19527. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19528. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19529. Usually this means the macro was only invoked conditionally." >&5
  19530. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19531. Usually this means the macro was only invoked conditionally." >&2;}
  19532. { (exit 1); exit 1; }; }
  19533. fi
  19534. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19535. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19536. Usually this means the macro was only invoked conditionally." >&5
  19537. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19538. Usually this means the macro was only invoked conditionally." >&2;}
  19539. { (exit 1); exit 1; }; }
  19540. fi
  19541. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19542. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19543. Usually this means the macro was only invoked conditionally." >&5
  19544. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19545. Usually this means the macro was only invoked conditionally." >&2;}
  19546. { (exit 1); exit 1; }; }
  19547. fi
  19548. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19549. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19550. Usually this means the macro was only invoked conditionally." >&5
  19551. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19552. Usually this means the macro was only invoked conditionally." >&2;}
  19553. { (exit 1); exit 1; }; }
  19554. fi
  19555. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19556. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19557. Usually this means the macro was only invoked conditionally." >&5
  19558. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19559. Usually this means the macro was only invoked conditionally." >&2;}
  19560. { (exit 1); exit 1; }; }
  19561. fi
  19562. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19563. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19564. Usually this means the macro was only invoked conditionally." >&5
  19565. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19566. Usually this means the macro was only invoked conditionally." >&2;}
  19567. { (exit 1); exit 1; }; }
  19568. fi
  19569. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19570. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19571. Usually this means the macro was only invoked conditionally." >&5
  19572. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19573. Usually this means the macro was only invoked conditionally." >&2;}
  19574. { (exit 1); exit 1; }; }
  19575. fi
  19576. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19577. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19578. Usually this means the macro was only invoked conditionally." >&5
  19579. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19580. Usually this means the macro was only invoked conditionally." >&2;}
  19581. { (exit 1); exit 1; }; }
  19582. fi
  19583. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19584. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19585. Usually this means the macro was only invoked conditionally." >&5
  19586. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19587. Usually this means the macro was only invoked conditionally." >&2;}
  19588. { (exit 1); exit 1; }; }
  19589. fi
  19590. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19591. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19592. Usually this means the macro was only invoked conditionally." >&5
  19593. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19594. Usually this means the macro was only invoked conditionally." >&2;}
  19595. { (exit 1); exit 1; }; }
  19596. fi
  19597. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19598. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19599. Usually this means the macro was only invoked conditionally." >&5
  19600. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19601. Usually this means the macro was only invoked conditionally." >&2;}
  19602. { (exit 1); exit 1; }; }
  19603. fi
  19604. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19605. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19606. Usually this means the macro was only invoked conditionally." >&5
  19607. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19608. Usually this means the macro was only invoked conditionally." >&2;}
  19609. { (exit 1); exit 1; }; }
  19610. fi
  19611. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19612. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19613. Usually this means the macro was only invoked conditionally." >&5
  19614. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19615. Usually this means the macro was only invoked conditionally." >&2;}
  19616. { (exit 1); exit 1; }; }
  19617. fi
  19618. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19619. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19620. Usually this means the macro was only invoked conditionally." >&5
  19621. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19622. Usually this means the macro was only invoked conditionally." >&2;}
  19623. { (exit 1); exit 1; }; }
  19624. fi
  19625. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19626. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19627. Usually this means the macro was only invoked conditionally." >&5
  19628. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19629. Usually this means the macro was only invoked conditionally." >&2;}
  19630. { (exit 1); exit 1; }; }
  19631. fi
  19632. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19633. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19634. Usually this means the macro was only invoked conditionally." >&5
  19635. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19636. Usually this means the macro was only invoked conditionally." >&2;}
  19637. { (exit 1); exit 1; }; }
  19638. fi
  19639. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19640. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19641. Usually this means the macro was only invoked conditionally." >&5
  19642. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19643. Usually this means the macro was only invoked conditionally." >&2;}
  19644. { (exit 1); exit 1; }; }
  19645. fi
  19646. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19647. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19648. Usually this means the macro was only invoked conditionally." >&5
  19649. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19650. Usually this means the macro was only invoked conditionally." >&2;}
  19651. { (exit 1); exit 1; }; }
  19652. fi
  19653. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19654. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19655. Usually this means the macro was only invoked conditionally." >&5
  19656. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19657. Usually this means the macro was only invoked conditionally." >&2;}
  19658. { (exit 1); exit 1; }; }
  19659. fi
  19660. : ${CONFIG_STATUS=./config.status}
  19661. ac_clean_files_save=$ac_clean_files
  19662. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19663. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19664. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19665. cat >$CONFIG_STATUS <<_ACEOF
  19666. #! $SHELL
  19667. # Generated by $as_me.
  19668. # Run this file to recreate the current configuration.
  19669. # Compiler output produced by configure, useful for debugging
  19670. # configure, is in config.log if it exists.
  19671. debug=false
  19672. ac_cs_recheck=false
  19673. ac_cs_silent=false
  19674. SHELL=\${CONFIG_SHELL-$SHELL}
  19675. _ACEOF
  19676. cat >>$CONFIG_STATUS <<\_ACEOF
  19677. ## --------------------- ##
  19678. ## M4sh Initialization. ##
  19679. ## --------------------- ##
  19680. # Be more Bourne compatible
  19681. DUALCASE=1; export DUALCASE # for MKS sh
  19682. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19683. emulate sh
  19684. NULLCMD=:
  19685. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19686. # is contrary to our usage. Disable this feature.
  19687. alias -g '${1+"$@"}'='"$@"'
  19688. setopt NO_GLOB_SUBST
  19689. else
  19690. case `(set -o) 2>/dev/null` in
  19691. *posix*) set -o posix ;;
  19692. esac
  19693. fi
  19694. # PATH needs CR
  19695. # Avoid depending upon Character Ranges.
  19696. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19697. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19698. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19699. as_cr_digits='0123456789'
  19700. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19701. # The user is always right.
  19702. if test "${PATH_SEPARATOR+set}" != set; then
  19703. echo "#! /bin/sh" >conf$$.sh
  19704. echo "exit 0" >>conf$$.sh
  19705. chmod +x conf$$.sh
  19706. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19707. PATH_SEPARATOR=';'
  19708. else
  19709. PATH_SEPARATOR=:
  19710. fi
  19711. rm -f conf$$.sh
  19712. fi
  19713. # Support unset when possible.
  19714. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19715. as_unset=unset
  19716. else
  19717. as_unset=false
  19718. fi
  19719. # IFS
  19720. # We need space, tab and new line, in precisely that order. Quoting is
  19721. # there to prevent editors from complaining about space-tab.
  19722. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19723. # splitting by setting IFS to empty value.)
  19724. as_nl='
  19725. '
  19726. IFS=" "" $as_nl"
  19727. # Find who we are. Look in the path if we contain no directory separator.
  19728. case $0 in
  19729. *[\\/]* ) as_myself=$0 ;;
  19730. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19731. for as_dir in $PATH
  19732. do
  19733. IFS=$as_save_IFS
  19734. test -z "$as_dir" && as_dir=.
  19735. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19736. done
  19737. IFS=$as_save_IFS
  19738. ;;
  19739. esac
  19740. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19741. # in which case we are not to be found in the path.
  19742. if test "x$as_myself" = x; then
  19743. as_myself=$0
  19744. fi
  19745. if test ! -f "$as_myself"; then
  19746. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19747. { (exit 1); exit 1; }
  19748. fi
  19749. # Work around bugs in pre-3.0 UWIN ksh.
  19750. for as_var in ENV MAIL MAILPATH
  19751. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19752. done
  19753. PS1='$ '
  19754. PS2='> '
  19755. PS4='+ '
  19756. # NLS nuisances.
  19757. for as_var in \
  19758. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19759. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19760. LC_TELEPHONE LC_TIME
  19761. do
  19762. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19763. eval $as_var=C; export $as_var
  19764. else
  19765. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19766. fi
  19767. done
  19768. # Required to use basename.
  19769. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19770. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19771. as_expr=expr
  19772. else
  19773. as_expr=false
  19774. fi
  19775. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19776. as_basename=basename
  19777. else
  19778. as_basename=false
  19779. fi
  19780. # Name of the executable.
  19781. as_me=`$as_basename -- "$0" ||
  19782. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19783. X"$0" : 'X\(//\)$' \| \
  19784. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19785. echo X/"$0" |
  19786. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19787. s//\1/
  19788. q
  19789. }
  19790. /^X\/\(\/\/\)$/{
  19791. s//\1/
  19792. q
  19793. }
  19794. /^X\/\(\/\).*/{
  19795. s//\1/
  19796. q
  19797. }
  19798. s/.*/./; q'`
  19799. # CDPATH.
  19800. $as_unset CDPATH
  19801. as_lineno_1=$LINENO
  19802. as_lineno_2=$LINENO
  19803. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19804. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19805. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19806. # uniformly replaced by the line number. The first 'sed' inserts a
  19807. # line-number line after each line using $LINENO; the second 'sed'
  19808. # does the real work. The second script uses 'N' to pair each
  19809. # line-number line with the line containing $LINENO, and appends
  19810. # trailing '-' during substitution so that $LINENO is not a special
  19811. # case at line end.
  19812. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19813. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19814. # E. McMahon (1931-1989) for sed's syntax. :-)
  19815. sed -n '
  19816. p
  19817. /[$]LINENO/=
  19818. ' <$as_myself |
  19819. sed '
  19820. s/[$]LINENO.*/&-/
  19821. t lineno
  19822. b
  19823. :lineno
  19824. N
  19825. :loop
  19826. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19827. t loop
  19828. s/-\n.*//
  19829. ' >$as_me.lineno &&
  19830. chmod +x "$as_me.lineno" ||
  19831. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19832. { (exit 1); exit 1; }; }
  19833. # Don't try to exec as it changes $[0], causing all sort of problems
  19834. # (the dirname of $[0] is not the place where we might find the
  19835. # original and so on. Autoconf is especially sensitive to this).
  19836. . "./$as_me.lineno"
  19837. # Exit status is that of the last command.
  19838. exit
  19839. }
  19840. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19841. as_dirname=dirname
  19842. else
  19843. as_dirname=false
  19844. fi
  19845. ECHO_C= ECHO_N= ECHO_T=
  19846. case `echo -n x` in
  19847. -n*)
  19848. case `echo 'x\c'` in
  19849. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19850. *) ECHO_C='\c';;
  19851. esac;;
  19852. *)
  19853. ECHO_N='-n';;
  19854. esac
  19855. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19856. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19857. as_expr=expr
  19858. else
  19859. as_expr=false
  19860. fi
  19861. rm -f conf$$ conf$$.exe conf$$.file
  19862. if test -d conf$$.dir; then
  19863. rm -f conf$$.dir/conf$$.file
  19864. else
  19865. rm -f conf$$.dir
  19866. mkdir conf$$.dir
  19867. fi
  19868. echo >conf$$.file
  19869. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19870. as_ln_s='ln -s'
  19871. # ... but there are two gotchas:
  19872. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19873. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19874. # In both cases, we have to default to `cp -p'.
  19875. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19876. as_ln_s='cp -p'
  19877. elif ln conf$$.file conf$$ 2>/dev/null; then
  19878. as_ln_s=ln
  19879. else
  19880. as_ln_s='cp -p'
  19881. fi
  19882. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19883. rmdir conf$$.dir 2>/dev/null
  19884. if mkdir -p . 2>/dev/null; then
  19885. as_mkdir_p=:
  19886. else
  19887. test -d ./-p && rmdir ./-p
  19888. as_mkdir_p=false
  19889. fi
  19890. if test -x / >/dev/null 2>&1; then
  19891. as_test_x='test -x'
  19892. else
  19893. if ls -dL / >/dev/null 2>&1; then
  19894. as_ls_L_option=L
  19895. else
  19896. as_ls_L_option=
  19897. fi
  19898. as_test_x='
  19899. eval sh -c '\''
  19900. if test -d "$1"; then
  19901. test -d "$1/.";
  19902. else
  19903. case $1 in
  19904. -*)set "./$1";;
  19905. esac;
  19906. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19907. ???[sx]*):;;*)false;;esac;fi
  19908. '\'' sh
  19909. '
  19910. fi
  19911. as_executable_p=$as_test_x
  19912. # Sed expression to map a string onto a valid CPP name.
  19913. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19914. # Sed expression to map a string onto a valid variable name.
  19915. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19916. exec 6>&1
  19917. # Save the log message, to keep $[0] and so on meaningful, and to
  19918. # report actual input values of CONFIG_FILES etc. instead of their
  19919. # values after options handling.
  19920. ac_log="
  19921. This file was extended by aria2 $as_me 1.3.2, which was
  19922. generated by GNU Autoconf 2.61. Invocation command line was
  19923. CONFIG_FILES = $CONFIG_FILES
  19924. CONFIG_HEADERS = $CONFIG_HEADERS
  19925. CONFIG_LINKS = $CONFIG_LINKS
  19926. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19927. $ $0 $@
  19928. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19929. "
  19930. _ACEOF
  19931. cat >>$CONFIG_STATUS <<_ACEOF
  19932. # Files that config.status was made for.
  19933. config_files="$ac_config_files"
  19934. config_headers="$ac_config_headers"
  19935. config_commands="$ac_config_commands"
  19936. _ACEOF
  19937. cat >>$CONFIG_STATUS <<\_ACEOF
  19938. ac_cs_usage="\
  19939. \`$as_me' instantiates files from templates according to the
  19940. current configuration.
  19941. Usage: $0 [OPTIONS] [FILE]...
  19942. -h, --help print this help, then exit
  19943. -V, --version print version number and configuration settings, then exit
  19944. -q, --quiet do not print progress messages
  19945. -d, --debug don't remove temporary files
  19946. --recheck update $as_me by reconfiguring in the same conditions
  19947. --file=FILE[:TEMPLATE]
  19948. instantiate the configuration file FILE
  19949. --header=FILE[:TEMPLATE]
  19950. instantiate the configuration header FILE
  19951. Configuration files:
  19952. $config_files
  19953. Configuration headers:
  19954. $config_headers
  19955. Configuration commands:
  19956. $config_commands
  19957. Report bugs to <bug-autoconf@gnu.org>."
  19958. _ACEOF
  19959. cat >>$CONFIG_STATUS <<_ACEOF
  19960. ac_cs_version="\\
  19961. aria2 config.status 1.3.2
  19962. configured by $0, generated by GNU Autoconf 2.61,
  19963. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19964. Copyright (C) 2006 Free Software Foundation, Inc.
  19965. This config.status script is free software; the Free Software Foundation
  19966. gives unlimited permission to copy, distribute and modify it."
  19967. ac_pwd='$ac_pwd'
  19968. srcdir='$srcdir'
  19969. INSTALL='$INSTALL'
  19970. MKDIR_P='$MKDIR_P'
  19971. _ACEOF
  19972. cat >>$CONFIG_STATUS <<\_ACEOF
  19973. # If no file are specified by the user, then we need to provide default
  19974. # value. By we need to know if files were specified by the user.
  19975. ac_need_defaults=:
  19976. while test $# != 0
  19977. do
  19978. case $1 in
  19979. --*=*)
  19980. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19981. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19982. ac_shift=:
  19983. ;;
  19984. *)
  19985. ac_option=$1
  19986. ac_optarg=$2
  19987. ac_shift=shift
  19988. ;;
  19989. esac
  19990. case $ac_option in
  19991. # Handling of the options.
  19992. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19993. ac_cs_recheck=: ;;
  19994. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19995. echo "$ac_cs_version"; exit ;;
  19996. --debug | --debu | --deb | --de | --d | -d )
  19997. debug=: ;;
  19998. --file | --fil | --fi | --f )
  19999. $ac_shift
  20000. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20001. ac_need_defaults=false;;
  20002. --header | --heade | --head | --hea )
  20003. $ac_shift
  20004. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20005. ac_need_defaults=false;;
  20006. --he | --h)
  20007. # Conflict between --help and --header
  20008. { echo "$as_me: error: ambiguous option: $1
  20009. Try \`$0 --help' for more information." >&2
  20010. { (exit 1); exit 1; }; };;
  20011. --help | --hel | -h )
  20012. echo "$ac_cs_usage"; exit ;;
  20013. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20014. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20015. ac_cs_silent=: ;;
  20016. # This is an error.
  20017. -*) { echo "$as_me: error: unrecognized option: $1
  20018. Try \`$0 --help' for more information." >&2
  20019. { (exit 1); exit 1; }; } ;;
  20020. *) ac_config_targets="$ac_config_targets $1"
  20021. ac_need_defaults=false ;;
  20022. esac
  20023. shift
  20024. done
  20025. ac_configure_extra_args=
  20026. if $ac_cs_silent; then
  20027. exec 6>/dev/null
  20028. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20029. fi
  20030. _ACEOF
  20031. cat >>$CONFIG_STATUS <<_ACEOF
  20032. if \$ac_cs_recheck; then
  20033. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20034. CONFIG_SHELL=$SHELL
  20035. export CONFIG_SHELL
  20036. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20037. fi
  20038. _ACEOF
  20039. cat >>$CONFIG_STATUS <<\_ACEOF
  20040. exec 5>>config.log
  20041. {
  20042. echo
  20043. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20044. ## Running $as_me. ##
  20045. _ASBOX
  20046. echo "$ac_log"
  20047. } >&5
  20048. _ACEOF
  20049. cat >>$CONFIG_STATUS <<_ACEOF
  20050. #
  20051. # INIT-COMMANDS
  20052. #
  20053. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20054. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  20055. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  20056. # from automake < 1.5.
  20057. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  20058. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  20059. LINGUAS="${LINGUAS-%UNSET%}"
  20060. _ACEOF
  20061. cat >>$CONFIG_STATUS <<\_ACEOF
  20062. # Handling of arguments.
  20063. for ac_config_target in $ac_config_targets
  20064. do
  20065. case $ac_config_target in
  20066. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20067. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20068. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  20069. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20070. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  20071. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  20072. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  20073. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  20074. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  20075. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  20076. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  20077. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20078. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20079. { (exit 1); exit 1; }; };;
  20080. esac
  20081. done
  20082. # If the user did not use the arguments to specify the items to instantiate,
  20083. # then the envvar interface is used. Set only those that are not.
  20084. # We use the long form for the default assignment because of an extremely
  20085. # bizarre bug on SunOS 4.1.3.
  20086. if $ac_need_defaults; then
  20087. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20088. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20089. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20090. fi
  20091. # Have a temporary directory for convenience. Make it in the build tree
  20092. # simply because there is no reason against having it here, and in addition,
  20093. # creating and moving files from /tmp can sometimes cause problems.
  20094. # Hook for its removal unless debugging.
  20095. # Note that there is a small window in which the directory will not be cleaned:
  20096. # after its creation but before its name has been assigned to `$tmp'.
  20097. $debug ||
  20098. {
  20099. tmp=
  20100. trap 'exit_status=$?
  20101. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20102. ' 0
  20103. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20104. }
  20105. # Create a (secure) tmp directory for tmp files.
  20106. {
  20107. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20108. test -n "$tmp" && test -d "$tmp"
  20109. } ||
  20110. {
  20111. tmp=./conf$$-$RANDOM
  20112. (umask 077 && mkdir "$tmp")
  20113. } ||
  20114. {
  20115. echo "$me: cannot create a temporary directory in ." >&2
  20116. { (exit 1); exit 1; }
  20117. }
  20118. #
  20119. # Set up the sed scripts for CONFIG_FILES section.
  20120. #
  20121. # No need to generate the scripts if there are no CONFIG_FILES.
  20122. # This happens for instance when ./config.status config.h
  20123. if test -n "$CONFIG_FILES"; then
  20124. _ACEOF
  20125. ac_delim='%!_!# '
  20126. for ac_last_try in false false false false false :; do
  20127. cat >conf$$subs.sed <<_ACEOF
  20128. SHELL!$SHELL$ac_delim
  20129. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20130. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20131. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20132. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20133. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20134. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20135. exec_prefix!$exec_prefix$ac_delim
  20136. prefix!$prefix$ac_delim
  20137. program_transform_name!$program_transform_name$ac_delim
  20138. bindir!$bindir$ac_delim
  20139. sbindir!$sbindir$ac_delim
  20140. libexecdir!$libexecdir$ac_delim
  20141. datarootdir!$datarootdir$ac_delim
  20142. datadir!$datadir$ac_delim
  20143. sysconfdir!$sysconfdir$ac_delim
  20144. sharedstatedir!$sharedstatedir$ac_delim
  20145. localstatedir!$localstatedir$ac_delim
  20146. includedir!$includedir$ac_delim
  20147. oldincludedir!$oldincludedir$ac_delim
  20148. docdir!$docdir$ac_delim
  20149. infodir!$infodir$ac_delim
  20150. htmldir!$htmldir$ac_delim
  20151. dvidir!$dvidir$ac_delim
  20152. pdfdir!$pdfdir$ac_delim
  20153. psdir!$psdir$ac_delim
  20154. libdir!$libdir$ac_delim
  20155. localedir!$localedir$ac_delim
  20156. mandir!$mandir$ac_delim
  20157. DEFS!$DEFS$ac_delim
  20158. ECHO_C!$ECHO_C$ac_delim
  20159. ECHO_N!$ECHO_N$ac_delim
  20160. ECHO_T!$ECHO_T$ac_delim
  20161. LIBS!$LIBS$ac_delim
  20162. build_alias!$build_alias$ac_delim
  20163. host_alias!$host_alias$ac_delim
  20164. target_alias!$target_alias$ac_delim
  20165. build!$build$ac_delim
  20166. build_cpu!$build_cpu$ac_delim
  20167. build_vendor!$build_vendor$ac_delim
  20168. build_os!$build_os$ac_delim
  20169. host!$host$ac_delim
  20170. host_cpu!$host_cpu$ac_delim
  20171. host_vendor!$host_vendor$ac_delim
  20172. host_os!$host_os$ac_delim
  20173. target!$target$ac_delim
  20174. target_cpu!$target_cpu$ac_delim
  20175. target_vendor!$target_vendor$ac_delim
  20176. target_os!$target_os$ac_delim
  20177. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20178. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20179. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20180. am__isrc!$am__isrc$ac_delim
  20181. CYGPATH_W!$CYGPATH_W$ac_delim
  20182. PACKAGE!$PACKAGE$ac_delim
  20183. VERSION!$VERSION$ac_delim
  20184. ACLOCAL!$ACLOCAL$ac_delim
  20185. AUTOCONF!$AUTOCONF$ac_delim
  20186. AUTOMAKE!$AUTOMAKE$ac_delim
  20187. AUTOHEADER!$AUTOHEADER$ac_delim
  20188. MAKEINFO!$MAKEINFO$ac_delim
  20189. install_sh!$install_sh$ac_delim
  20190. STRIP!$STRIP$ac_delim
  20191. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20192. mkdir_p!$mkdir_p$ac_delim
  20193. AWK!$AWK$ac_delim
  20194. SET_MAKE!$SET_MAKE$ac_delim
  20195. am__leading_dot!$am__leading_dot$ac_delim
  20196. AMTAR!$AMTAR$ac_delim
  20197. am__tar!$am__tar$ac_delim
  20198. am__untar!$am__untar$ac_delim
  20199. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20200. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20201. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20202. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20203. CXX!$CXX$ac_delim
  20204. CXXFLAGS!$CXXFLAGS$ac_delim
  20205. LDFLAGS!$LDFLAGS$ac_delim
  20206. CPPFLAGS!$CPPFLAGS$ac_delim
  20207. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20208. EXEEXT!$EXEEXT$ac_delim
  20209. OBJEXT!$OBJEXT$ac_delim
  20210. DEPDIR!$DEPDIR$ac_delim
  20211. am__include!$am__include$ac_delim
  20212. am__quote!$am__quote$ac_delim
  20213. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20214. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20215. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20216. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20217. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20218. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20219. CC!$CC$ac_delim
  20220. CFLAGS!$CFLAGS$ac_delim
  20221. ac_ct_CC!$ac_ct_CC$ac_delim
  20222. CCDEPMODE!$CCDEPMODE$ac_delim
  20223. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20224. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20225. _ACEOF
  20226. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20227. break
  20228. elif $ac_last_try; then
  20229. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20230. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20231. { (exit 1); exit 1; }; }
  20232. else
  20233. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20234. fi
  20235. done
  20236. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20237. if test -n "$ac_eof"; then
  20238. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20239. ac_eof=`expr $ac_eof + 1`
  20240. fi
  20241. cat >>$CONFIG_STATUS <<_ACEOF
  20242. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20243. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20244. _ACEOF
  20245. sed '
  20246. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20247. s/^/s,@/; s/!/@,|#_!!_#|/
  20248. :n
  20249. t n
  20250. s/'"$ac_delim"'$/,g/; t
  20251. s/$/\\/; p
  20252. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20253. ' >>$CONFIG_STATUS <conf$$subs.sed
  20254. rm -f conf$$subs.sed
  20255. cat >>$CONFIG_STATUS <<_ACEOF
  20256. CEOF$ac_eof
  20257. _ACEOF
  20258. ac_delim='%!_!# '
  20259. for ac_last_try in false false false false false :; do
  20260. cat >conf$$subs.sed <<_ACEOF
  20261. RANLIB!$RANLIB$ac_delim
  20262. YACC!$YACC$ac_delim
  20263. YFLAGS!$YFLAGS$ac_delim
  20264. CXXCPP!$CXXCPP$ac_delim
  20265. GREP!$GREP$ac_delim
  20266. EGREP!$EGREP$ac_delim
  20267. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20268. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20269. XML_LIBS!$XML_LIBS$ac_delim
  20270. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20271. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20272. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20273. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20274. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20275. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20276. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20277. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20278. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20279. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20280. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20281. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20282. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20283. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20284. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20285. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20286. ENABLE_SSL_TRUE!$ENABLE_SSL_TRUE$ac_delim
  20287. ENABLE_SSL_FALSE!$ENABLE_SSL_FALSE$ac_delim
  20288. ca_bundle!$ca_bundle$ac_delim
  20289. HAVE_LIBGNUTLS_TRUE!$HAVE_LIBGNUTLS_TRUE$ac_delim
  20290. HAVE_LIBGNUTLS_FALSE!$HAVE_LIBGNUTLS_FALSE$ac_delim
  20291. HAVE_LIBSSL_TRUE!$HAVE_LIBSSL_TRUE$ac_delim
  20292. HAVE_LIBSSL_FALSE!$HAVE_LIBSSL_FALSE$ac_delim
  20293. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20294. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20295. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20296. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20297. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20298. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20299. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20300. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20301. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20302. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20303. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20304. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20305. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20306. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20307. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20308. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20309. ALLOCA!$ALLOCA$ac_delim
  20310. USE_NLS!$USE_NLS$ac_delim
  20311. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20312. MSGFMT!$MSGFMT$ac_delim
  20313. GMSGFMT!$GMSGFMT$ac_delim
  20314. MSGFMT_015!$MSGFMT_015$ac_delim
  20315. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20316. XGETTEXT!$XGETTEXT$ac_delim
  20317. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20318. MSGMERGE!$MSGMERGE$ac_delim
  20319. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20320. GLIBC2!$GLIBC2$ac_delim
  20321. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20322. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20323. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20324. LIBPTH!$LIBPTH$ac_delim
  20325. LTLIBPTH!$LTLIBPTH$ac_delim
  20326. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20327. LIBTHREAD!$LIBTHREAD$ac_delim
  20328. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20329. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20330. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20331. LIBICONV!$LIBICONV$ac_delim
  20332. LTLIBICONV!$LTLIBICONV$ac_delim
  20333. INTLBISON!$INTLBISON$ac_delim
  20334. GLIBC21!$GLIBC21$ac_delim
  20335. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20336. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20337. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20338. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20339. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20340. WOE32DLL!$WOE32DLL$ac_delim
  20341. WOE32!$WOE32$ac_delim
  20342. WINDRES!$WINDRES$ac_delim
  20343. LTLIBC!$LTLIBC$ac_delim
  20344. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20345. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20346. CATOBJEXT!$CATOBJEXT$ac_delim
  20347. DATADIRNAME!$DATADIRNAME$ac_delim
  20348. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20349. GENCAT!$GENCAT$ac_delim
  20350. INTLOBJS!$INTLOBJS$ac_delim
  20351. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20352. INTLLIBS!$INTLLIBS$ac_delim
  20353. LIBINTL!$LIBINTL$ac_delim
  20354. LTLIBINTL!$LTLIBINTL$ac_delim
  20355. POSUB!$POSUB$ac_delim
  20356. LIBOBJS!$LIBOBJS$ac_delim
  20357. HAVE_EPOLL_TRUE!$HAVE_EPOLL_TRUE$ac_delim
  20358. _ACEOF
  20359. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20360. break
  20361. elif $ac_last_try; then
  20362. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20363. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20364. { (exit 1); exit 1; }; }
  20365. else
  20366. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20367. fi
  20368. done
  20369. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20370. if test -n "$ac_eof"; then
  20371. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20372. ac_eof=`expr $ac_eof + 1`
  20373. fi
  20374. cat >>$CONFIG_STATUS <<_ACEOF
  20375. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20376. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20377. _ACEOF
  20378. sed '
  20379. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20380. s/^/s,@/; s/!/@,|#_!!_#|/
  20381. :n
  20382. t n
  20383. s/'"$ac_delim"'$/,g/; t
  20384. s/$/\\/; p
  20385. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20386. ' >>$CONFIG_STATUS <conf$$subs.sed
  20387. rm -f conf$$subs.sed
  20388. cat >>$CONFIG_STATUS <<_ACEOF
  20389. CEOF$ac_eof
  20390. _ACEOF
  20391. ac_delim='%!_!# '
  20392. for ac_last_try in false false false false false :; do
  20393. cat >conf$$subs.sed <<_ACEOF
  20394. HAVE_EPOLL_FALSE!$HAVE_EPOLL_FALSE$ac_delim
  20395. HAVE_POSIX_FALLOCATE_TRUE!$HAVE_POSIX_FALLOCATE_TRUE$ac_delim
  20396. HAVE_POSIX_FALLOCATE_FALSE!$HAVE_POSIX_FALLOCATE_FALSE$ac_delim
  20397. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20398. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20399. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20400. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20401. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20402. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20403. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20404. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20405. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20406. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20407. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20408. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20409. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20410. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20411. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20412. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20413. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20414. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20415. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20416. _ACEOF
  20417. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
  20418. break
  20419. elif $ac_last_try; then
  20420. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20421. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20422. { (exit 1); exit 1; }; }
  20423. else
  20424. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20425. fi
  20426. done
  20427. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20428. if test -n "$ac_eof"; then
  20429. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20430. ac_eof=`expr $ac_eof + 1`
  20431. fi
  20432. cat >>$CONFIG_STATUS <<_ACEOF
  20433. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20434. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20435. _ACEOF
  20436. sed '
  20437. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20438. s/^/s,@/; s/!/@,|#_!!_#|/
  20439. :n
  20440. t n
  20441. s/'"$ac_delim"'$/,g/; t
  20442. s/$/\\/; p
  20443. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20444. ' >>$CONFIG_STATUS <conf$$subs.sed
  20445. rm -f conf$$subs.sed
  20446. cat >>$CONFIG_STATUS <<_ACEOF
  20447. :end
  20448. s/|#_!!_#|//g
  20449. CEOF$ac_eof
  20450. _ACEOF
  20451. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20452. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20453. # trailing colons and then remove the whole line if VPATH becomes empty
  20454. # (actually we leave an empty line to preserve line numbers).
  20455. if test "x$srcdir" = x.; then
  20456. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20457. s/:*\$(srcdir):*/:/
  20458. s/:*\${srcdir}:*/:/
  20459. s/:*@srcdir@:*/:/
  20460. s/^\([^=]*=[ ]*\):*/\1/
  20461. s/:*$//
  20462. s/^[^=]*=[ ]*$//
  20463. }'
  20464. fi
  20465. cat >>$CONFIG_STATUS <<\_ACEOF
  20466. fi # test -n "$CONFIG_FILES"
  20467. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20468. do
  20469. case $ac_tag in
  20470. :[FHLC]) ac_mode=$ac_tag; continue;;
  20471. esac
  20472. case $ac_mode$ac_tag in
  20473. :[FHL]*:*);;
  20474. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20475. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20476. { (exit 1); exit 1; }; };;
  20477. :[FH]-) ac_tag=-:-;;
  20478. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20479. esac
  20480. ac_save_IFS=$IFS
  20481. IFS=:
  20482. set x $ac_tag
  20483. IFS=$ac_save_IFS
  20484. shift
  20485. ac_file=$1
  20486. shift
  20487. case $ac_mode in
  20488. :L) ac_source=$1;;
  20489. :[FH])
  20490. ac_file_inputs=
  20491. for ac_f
  20492. do
  20493. case $ac_f in
  20494. -) ac_f="$tmp/stdin";;
  20495. *) # Look for the file first in the build tree, then in the source tree
  20496. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20497. # because $ac_f cannot contain `:'.
  20498. test -f "$ac_f" ||
  20499. case $ac_f in
  20500. [\\/$]*) false;;
  20501. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20502. esac ||
  20503. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20504. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20505. { (exit 1); exit 1; }; };;
  20506. esac
  20507. ac_file_inputs="$ac_file_inputs $ac_f"
  20508. done
  20509. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20510. # use $as_me), people would be surprised to read:
  20511. # /* config.h. Generated by config.status. */
  20512. configure_input="Generated from "`IFS=:
  20513. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20514. if test x"$ac_file" != x-; then
  20515. configure_input="$ac_file. $configure_input"
  20516. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20517. echo "$as_me: creating $ac_file" >&6;}
  20518. fi
  20519. case $ac_tag in
  20520. *:-:* | *:-) cat >"$tmp/stdin";;
  20521. esac
  20522. ;;
  20523. esac
  20524. ac_dir=`$as_dirname -- "$ac_file" ||
  20525. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20526. X"$ac_file" : 'X\(//\)[^/]' \| \
  20527. X"$ac_file" : 'X\(//\)$' \| \
  20528. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20529. echo X"$ac_file" |
  20530. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20531. s//\1/
  20532. q
  20533. }
  20534. /^X\(\/\/\)[^/].*/{
  20535. s//\1/
  20536. q
  20537. }
  20538. /^X\(\/\/\)$/{
  20539. s//\1/
  20540. q
  20541. }
  20542. /^X\(\/\).*/{
  20543. s//\1/
  20544. q
  20545. }
  20546. s/.*/./; q'`
  20547. { as_dir="$ac_dir"
  20548. case $as_dir in #(
  20549. -*) as_dir=./$as_dir;;
  20550. esac
  20551. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20552. as_dirs=
  20553. while :; do
  20554. case $as_dir in #(
  20555. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20556. *) as_qdir=$as_dir;;
  20557. esac
  20558. as_dirs="'$as_qdir' $as_dirs"
  20559. as_dir=`$as_dirname -- "$as_dir" ||
  20560. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20561. X"$as_dir" : 'X\(//\)[^/]' \| \
  20562. X"$as_dir" : 'X\(//\)$' \| \
  20563. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20564. echo X"$as_dir" |
  20565. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20566. s//\1/
  20567. q
  20568. }
  20569. /^X\(\/\/\)[^/].*/{
  20570. s//\1/
  20571. q
  20572. }
  20573. /^X\(\/\/\)$/{
  20574. s//\1/
  20575. q
  20576. }
  20577. /^X\(\/\).*/{
  20578. s//\1/
  20579. q
  20580. }
  20581. s/.*/./; q'`
  20582. test -d "$as_dir" && break
  20583. done
  20584. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20585. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20586. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20587. { (exit 1); exit 1; }; }; }
  20588. ac_builddir=.
  20589. case "$ac_dir" in
  20590. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20591. *)
  20592. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20593. # A ".." for each directory in $ac_dir_suffix.
  20594. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20595. case $ac_top_builddir_sub in
  20596. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20597. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20598. esac ;;
  20599. esac
  20600. ac_abs_top_builddir=$ac_pwd
  20601. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20602. # for backward compatibility:
  20603. ac_top_builddir=$ac_top_build_prefix
  20604. case $srcdir in
  20605. .) # We are building in place.
  20606. ac_srcdir=.
  20607. ac_top_srcdir=$ac_top_builddir_sub
  20608. ac_abs_top_srcdir=$ac_pwd ;;
  20609. [\\/]* | ?:[\\/]* ) # Absolute name.
  20610. ac_srcdir=$srcdir$ac_dir_suffix;
  20611. ac_top_srcdir=$srcdir
  20612. ac_abs_top_srcdir=$srcdir ;;
  20613. *) # Relative name.
  20614. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20615. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20616. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20617. esac
  20618. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20619. case $ac_mode in
  20620. :F)
  20621. #
  20622. # CONFIG_FILE
  20623. #
  20624. case $INSTALL in
  20625. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20626. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20627. esac
  20628. ac_MKDIR_P=$MKDIR_P
  20629. case $MKDIR_P in
  20630. [\\/$]* | ?:[\\/]* ) ;;
  20631. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20632. esac
  20633. _ACEOF
  20634. cat >>$CONFIG_STATUS <<\_ACEOF
  20635. # If the template does not know about datarootdir, expand it.
  20636. # FIXME: This hack should be removed a few years after 2.60.
  20637. ac_datarootdir_hack=; ac_datarootdir_seen=
  20638. case `sed -n '/datarootdir/ {
  20639. p
  20640. q
  20641. }
  20642. /@datadir@/p
  20643. /@docdir@/p
  20644. /@infodir@/p
  20645. /@localedir@/p
  20646. /@mandir@/p
  20647. ' $ac_file_inputs` in
  20648. *datarootdir*) ac_datarootdir_seen=yes;;
  20649. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20650. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20651. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20652. _ACEOF
  20653. cat >>$CONFIG_STATUS <<_ACEOF
  20654. ac_datarootdir_hack='
  20655. s&@datadir@&$datadir&g
  20656. s&@docdir@&$docdir&g
  20657. s&@infodir@&$infodir&g
  20658. s&@localedir@&$localedir&g
  20659. s&@mandir@&$mandir&g
  20660. s&\\\${datarootdir}&$datarootdir&g' ;;
  20661. esac
  20662. _ACEOF
  20663. # Neutralize VPATH when `$srcdir' = `.'.
  20664. # Shell code in configure.ac might set extrasub.
  20665. # FIXME: do we really want to maintain this feature?
  20666. cat >>$CONFIG_STATUS <<_ACEOF
  20667. sed "$ac_vpsub
  20668. $extrasub
  20669. _ACEOF
  20670. cat >>$CONFIG_STATUS <<\_ACEOF
  20671. :t
  20672. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20673. s&@configure_input@&$configure_input&;t t
  20674. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20675. s&@srcdir@&$ac_srcdir&;t t
  20676. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20677. s&@top_srcdir@&$ac_top_srcdir&;t t
  20678. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20679. s&@builddir@&$ac_builddir&;t t
  20680. s&@abs_builddir@&$ac_abs_builddir&;t t
  20681. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20682. s&@INSTALL@&$ac_INSTALL&;t t
  20683. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20684. $ac_datarootdir_hack
  20685. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20686. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20687. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20688. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20689. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20690. which seems to be undefined. Please make sure it is defined." >&5
  20691. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20692. which seems to be undefined. Please make sure it is defined." >&2;}
  20693. rm -f "$tmp/stdin"
  20694. case $ac_file in
  20695. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20696. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20697. esac
  20698. ;;
  20699. :H)
  20700. #
  20701. # CONFIG_HEADER
  20702. #
  20703. _ACEOF
  20704. # Transform confdefs.h into a sed script `conftest.defines', that
  20705. # substitutes the proper values into config.h.in to produce config.h.
  20706. rm -f conftest.defines conftest.tail
  20707. # First, append a space to every undef/define line, to ease matching.
  20708. echo 's/$/ /' >conftest.defines
  20709. # Then, protect against being on the right side of a sed subst, or in
  20710. # an unquoted here document, in config.status. If some macros were
  20711. # called several times there might be several #defines for the same
  20712. # symbol, which is useless. But do not sort them, since the last
  20713. # AC_DEFINE must be honored.
  20714. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20715. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20716. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20717. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20718. # just an empty string.
  20719. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20720. ac_dB='\\)[ (].*,\\1define\\2'
  20721. ac_dC=' '
  20722. ac_dD=' ,'
  20723. uniq confdefs.h |
  20724. sed -n '
  20725. t rset
  20726. :rset
  20727. s/^[ ]*#[ ]*define[ ][ ]*//
  20728. t ok
  20729. d
  20730. :ok
  20731. s/[\\&,]/\\&/g
  20732. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20733. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20734. ' >>conftest.defines
  20735. # Remove the space that was appended to ease matching.
  20736. # Then replace #undef with comments. This is necessary, for
  20737. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20738. # on some systems where configure will not decide to define it.
  20739. # (The regexp can be short, since the line contains either #define or #undef.)
  20740. echo 's/ $//
  20741. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20742. # Break up conftest.defines:
  20743. ac_max_sed_lines=50
  20744. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20745. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20746. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20747. # et cetera.
  20748. ac_in='$ac_file_inputs'
  20749. ac_out='"$tmp/out1"'
  20750. ac_nxt='"$tmp/out2"'
  20751. while :
  20752. do
  20753. # Write a here document:
  20754. cat >>$CONFIG_STATUS <<_ACEOF
  20755. # First, check the format of the line:
  20756. cat >"\$tmp/defines.sed" <<\\CEOF
  20757. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20758. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20759. b
  20760. :def
  20761. _ACEOF
  20762. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20763. echo 'CEOF
  20764. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20765. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20766. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20767. grep . conftest.tail >/dev/null || break
  20768. rm -f conftest.defines
  20769. mv conftest.tail conftest.defines
  20770. done
  20771. rm -f conftest.defines conftest.tail
  20772. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20773. cat >>$CONFIG_STATUS <<\_ACEOF
  20774. if test x"$ac_file" != x-; then
  20775. echo "/* $configure_input */" >"$tmp/config.h"
  20776. cat "$ac_result" >>"$tmp/config.h"
  20777. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20778. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20779. echo "$as_me: $ac_file is unchanged" >&6;}
  20780. else
  20781. rm -f $ac_file
  20782. mv "$tmp/config.h" $ac_file
  20783. fi
  20784. else
  20785. echo "/* $configure_input */"
  20786. cat "$ac_result"
  20787. fi
  20788. rm -f "$tmp/out12"
  20789. # Compute $ac_file's index in $config_headers.
  20790. _am_arg=$ac_file
  20791. _am_stamp_count=1
  20792. for _am_header in $config_headers :; do
  20793. case $_am_header in
  20794. $_am_arg | $_am_arg:* )
  20795. break ;;
  20796. * )
  20797. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20798. esac
  20799. done
  20800. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20801. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20802. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20803. X"$_am_arg" : 'X\(//\)$' \| \
  20804. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20805. echo X"$_am_arg" |
  20806. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20807. s//\1/
  20808. q
  20809. }
  20810. /^X\(\/\/\)[^/].*/{
  20811. s//\1/
  20812. q
  20813. }
  20814. /^X\(\/\/\)$/{
  20815. s//\1/
  20816. q
  20817. }
  20818. /^X\(\/\).*/{
  20819. s//\1/
  20820. q
  20821. }
  20822. s/.*/./; q'`/stamp-h$_am_stamp_count
  20823. ;;
  20824. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20825. echo "$as_me: executing $ac_file commands" >&6;}
  20826. ;;
  20827. esac
  20828. case $ac_file$ac_mode in
  20829. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20830. # Strip MF so we end up with the name of the file.
  20831. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20832. # Check whether this is an Automake generated Makefile or not.
  20833. # We used to match only the files named `Makefile.in', but
  20834. # some people rename them; so instead we look at the file content.
  20835. # Grep'ing the first line is not enough: some people post-process
  20836. # each Makefile.in and add a new line on top of each file to say so.
  20837. # Grep'ing the whole file is not good either: AIX grep has a line
  20838. # limit of 2048, but all sed's we know have understand at least 4000.
  20839. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20840. dirpart=`$as_dirname -- "$mf" ||
  20841. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20842. X"$mf" : 'X\(//\)[^/]' \| \
  20843. X"$mf" : 'X\(//\)$' \| \
  20844. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20845. echo X"$mf" |
  20846. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20847. s//\1/
  20848. q
  20849. }
  20850. /^X\(\/\/\)[^/].*/{
  20851. s//\1/
  20852. q
  20853. }
  20854. /^X\(\/\/\)$/{
  20855. s//\1/
  20856. q
  20857. }
  20858. /^X\(\/\).*/{
  20859. s//\1/
  20860. q
  20861. }
  20862. s/.*/./; q'`
  20863. else
  20864. continue
  20865. fi
  20866. # Extract the definition of DEPDIR, am__include, and am__quote
  20867. # from the Makefile without running `make'.
  20868. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20869. test -z "$DEPDIR" && continue
  20870. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20871. test -z "am__include" && continue
  20872. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20873. # When using ansi2knr, U may be empty or an underscore; expand it
  20874. U=`sed -n 's/^U = //p' < "$mf"`
  20875. # Find all dependency output files, they are included files with
  20876. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20877. # simplest approach to changing $(DEPDIR) to its actual value in the
  20878. # expansion.
  20879. for file in `sed -n "
  20880. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20881. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20882. # Make sure the directory exists.
  20883. test -f "$dirpart/$file" && continue
  20884. fdir=`$as_dirname -- "$file" ||
  20885. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20886. X"$file" : 'X\(//\)[^/]' \| \
  20887. X"$file" : 'X\(//\)$' \| \
  20888. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20889. echo X"$file" |
  20890. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20891. s//\1/
  20892. q
  20893. }
  20894. /^X\(\/\/\)[^/].*/{
  20895. s//\1/
  20896. q
  20897. }
  20898. /^X\(\/\/\)$/{
  20899. s//\1/
  20900. q
  20901. }
  20902. /^X\(\/\).*/{
  20903. s//\1/
  20904. q
  20905. }
  20906. s/.*/./; q'`
  20907. { as_dir=$dirpart/$fdir
  20908. case $as_dir in #(
  20909. -*) as_dir=./$as_dir;;
  20910. esac
  20911. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20912. as_dirs=
  20913. while :; do
  20914. case $as_dir in #(
  20915. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20916. *) as_qdir=$as_dir;;
  20917. esac
  20918. as_dirs="'$as_qdir' $as_dirs"
  20919. as_dir=`$as_dirname -- "$as_dir" ||
  20920. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20921. X"$as_dir" : 'X\(//\)[^/]' \| \
  20922. X"$as_dir" : 'X\(//\)$' \| \
  20923. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20924. echo X"$as_dir" |
  20925. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20926. s//\1/
  20927. q
  20928. }
  20929. /^X\(\/\/\)[^/].*/{
  20930. s//\1/
  20931. q
  20932. }
  20933. /^X\(\/\/\)$/{
  20934. s//\1/
  20935. q
  20936. }
  20937. /^X\(\/\).*/{
  20938. s//\1/
  20939. q
  20940. }
  20941. s/.*/./; q'`
  20942. test -d "$as_dir" && break
  20943. done
  20944. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20945. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20946. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20947. { (exit 1); exit 1; }; }; }
  20948. # echo "creating $dirpart/$file"
  20949. echo '# dummy' > "$dirpart/$file"
  20950. done
  20951. done
  20952. ;;
  20953. "po-directories":C)
  20954. for ac_file in $CONFIG_FILES; do
  20955. # Support "outfile[:infile[:infile...]]"
  20956. case "$ac_file" in
  20957. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20958. esac
  20959. # PO directories have a Makefile.in generated from Makefile.in.in.
  20960. case "$ac_file" in */Makefile.in)
  20961. # Adjust a relative srcdir.
  20962. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20963. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20964. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20965. # In autoconf-2.13 it is called $ac_given_srcdir.
  20966. # In autoconf-2.50 it is called $srcdir.
  20967. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20968. case "$ac_given_srcdir" in
  20969. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20970. /*) top_srcdir="$ac_given_srcdir" ;;
  20971. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20972. esac
  20973. # Treat a directory as a PO directory if and only if it has a
  20974. # POTFILES.in file. This allows packages to have multiple PO
  20975. # directories under different names or in different locations.
  20976. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20977. rm -f "$ac_dir/POTFILES"
  20978. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20979. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20980. POMAKEFILEDEPS="POTFILES.in"
  20981. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20982. # on $ac_dir but don't depend on user-specified configuration
  20983. # parameters.
  20984. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20985. # The LINGUAS file contains the set of available languages.
  20986. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20987. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20988. fi
  20989. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20990. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20991. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20992. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20993. else
  20994. # The set of available languages was given in configure.in.
  20995. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20996. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20997. fi
  20998. # Compute POFILES
  20999. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21000. # Compute UPDATEPOFILES
  21001. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21002. # Compute DUMMYPOFILES
  21003. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21004. # Compute GMOFILES
  21005. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21006. case "$ac_given_srcdir" in
  21007. .) srcdirpre= ;;
  21008. *) srcdirpre='$(srcdir)/' ;;
  21009. esac
  21010. POFILES=
  21011. UPDATEPOFILES=
  21012. DUMMYPOFILES=
  21013. GMOFILES=
  21014. for lang in $ALL_LINGUAS; do
  21015. POFILES="$POFILES $srcdirpre$lang.po"
  21016. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  21017. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  21018. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  21019. done
  21020. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  21021. # environment variable.
  21022. INST_LINGUAS=
  21023. if test -n "$ALL_LINGUAS"; then
  21024. for presentlang in $ALL_LINGUAS; do
  21025. useit=no
  21026. if test "%UNSET%" != "$LINGUAS"; then
  21027. desiredlanguages="$LINGUAS"
  21028. else
  21029. desiredlanguages="$ALL_LINGUAS"
  21030. fi
  21031. for desiredlang in $desiredlanguages; do
  21032. # Use the presentlang catalog if desiredlang is
  21033. # a. equal to presentlang, or
  21034. # b. a variant of presentlang (because in this case,
  21035. # presentlang can be used as a fallback for messages
  21036. # which are not translated in the desiredlang catalog).
  21037. case "$desiredlang" in
  21038. "$presentlang"*) useit=yes;;
  21039. esac
  21040. done
  21041. if test $useit = yes; then
  21042. INST_LINGUAS="$INST_LINGUAS $presentlang"
  21043. fi
  21044. done
  21045. fi
  21046. CATALOGS=
  21047. if test -n "$INST_LINGUAS"; then
  21048. for lang in $INST_LINGUAS; do
  21049. CATALOGS="$CATALOGS $lang.gmo"
  21050. done
  21051. fi
  21052. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  21053. 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"
  21054. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  21055. if test -f "$f"; then
  21056. case "$f" in
  21057. *.orig | *.bak | *~) ;;
  21058. *) cat "$f" >> "$ac_dir/Makefile" ;;
  21059. esac
  21060. fi
  21061. done
  21062. fi
  21063. ;;
  21064. esac
  21065. done ;;
  21066. esac
  21067. done # for ac_tag
  21068. { (exit 0); exit 0; }
  21069. _ACEOF
  21070. chmod +x $CONFIG_STATUS
  21071. ac_clean_files=$ac_clean_files_save
  21072. # configure is writing to config.log, and then calls config.status.
  21073. # config.status does its own redirection, appending to config.log.
  21074. # Unfortunately, on DOS this fails, as config.log is still kept open
  21075. # by configure, so config.status won't be able to write to it; its
  21076. # output is simply discarded. So we exec the FD to /dev/null,
  21077. # effectively closing config.log, so it can be properly (re)opened and
  21078. # appended to by config.status. When coming back to configure, we
  21079. # need to make the FD available again.
  21080. if test "$no_create" != yes; then
  21081. ac_cs_success=:
  21082. ac_config_status_args=
  21083. test "$silent" = yes &&
  21084. ac_config_status_args="$ac_config_status_args --quiet"
  21085. exec 5>/dev/null
  21086. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21087. exec 5>>config.log
  21088. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21089. # would make configure fail if this is the last instruction.
  21090. $ac_cs_success || { (exit 1); exit 1; }
  21091. fi
  21092. echo " "
  21093. echo "Build: $build"
  21094. echo "Target: $target"
  21095. echo "Install prefix: $prefix"
  21096. echo "CFLAGS: $CFLAGS"
  21097. echo "CPPFLAGS: $CPPFLAGS"
  21098. echo "LDFLAGS: $LDFLAGS"
  21099. echo "LIBS: $LIBS"
  21100. echo "SQLite3: $have_sqlite3"
  21101. echo "GnuTLS: $have_libgnutls"
  21102. echo "OpenSSL: $have_openssl"
  21103. echo "CA Bundle: $ca_bundle"
  21104. echo "LibXML2: $have_libxml2"
  21105. echo "LibExpat: $have_libexpat"
  21106. echo "LibCares: $have_libcares"
  21107. echo "Libz: $have_libz"
  21108. echo "Epoll: $have_epoll"
  21109. echo "Bittorrent: $enable_bittorrent"
  21110. echo "Metalink: $enable_metalink"